Commit 0a5be0028fe9d3c437f53fbcbdce868692465321

Authored by 王言钊
1 parent 31f7c240

update

src/main/java/com/cnlive/shenhe/serviceImpl/CommentsServiceImpl.java
... ... @@ -78,7 +78,7 @@ public class CommentsServiceImpl {
78 78 }
79 79  
80 80 public PageInfo<ShyComments> getPage(CommentsDTO commentsDTO) {
81   - logger.info("接受参数对象为,CommentsDTO:{}",JSONObject.toJSON(commentsDTO));
  81 + logger.info("接受参数对象为,CommentsDTO:{}", JSONObject.toJSON(commentsDTO));
82 82 Example example = new Example(ShyComments.class);
83 83 Example.Criteria criteria = example.createCriteria();
84 84 if (CommonUtils.isNotEmpty(commentsDTO.getOrderByClause())) {
... ... @@ -120,15 +120,6 @@ public class CommentsServiceImpl {
120 120 }
121 121 }
122 122  
123   - //if (CommonUtils.isNotNull(commentsDTO.getState())) {
124   - // Example.Criteria criteria1 = example.createCriteria();
125   - // String[] stas = String.valueOf(commentsDTO.getState()).split(",");
126   - // for (String s : stas) {
127   - // criteria1.orEqualTo("state", s);
128   - // }
129   - // example.and(criteria1);
130   - //}
131   -
132 123 if (CommonUtils.isNotNull(commentsDTO.getState()) && commentsDTO.getState() != 3) {
133 124 criteria.andEqualTo("state", commentsDTO.getState());
134 125 } else if (CommonUtils.isNotNull(commentsDTO.getState()) && commentsDTO.getState() == 3) {
... ...