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