Commit b8d855d1 authored by 周健威's avatar 周健威

优惠券,权限相关

parent 2dac0d21
...@@ -37,9 +37,9 @@ public class GroupController extends BaseController<GroupBiz, Group> { ...@@ -37,9 +37,9 @@ public class GroupController extends BaseController<GroupBiz, Group> {
@RequestMapping(value = "/list", method = RequestMethod.GET) @RequestMapping(value = "/list", method = RequestMethod.GET)
@ResponseBody @ResponseBody
public List<Group> list(String name,String groupType) { public List<Group> list(String name,String groupType) {
if(StringUtils.isBlank(name)&&StringUtils.isBlank(groupType)) { // if(StringUtils.isBlank(name)&&StringUtils.isBlank(groupType)) {
return new ArrayList<Group>(); // return new ArrayList<Group>();
} // }
Example example = new Example(Group.class); Example example = new Example(Group.class);
if (StringUtils.isNotBlank(name)) { if (StringUtils.isNotBlank(name)) {
example.createCriteria().andLike("name", "%" + name + "%"); example.createCriteria().andLike("name", "%" + name + "%");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment