Browse Source

加筛选条件

master
nili 3 years ago
parent
commit
ddc0bd50b3
  1. 6
      luigi-service/src/main/java/com/bzgame/server/luigi/service/bo/PoemService.java

6
luigi-service/src/main/java/com/bzgame/server/luigi/service/bo/PoemService.java

@ -107,6 +107,12 @@ public class PoemService {
case "status":
criteria.andStatusEqualTo(Integer.valueOf(x.getVal()));
break;
case "id":
criteria.andIdEqualTo(Integer.valueOf(x.getVal()));
break;
case "title":
criteria.andTitleLike(x.getVal() + "%");
break;
default:
throw new BizException(ExceptionCode.PARAM_ILLEGAL_WARN, "参数非法");
}

Loading…
Cancel
Save