|
|
@ -68,9 +68,15 @@ public class FunctionServiceImpl extends BaseServiceImpl<FunctionDao, FunctionEn |
|
|
|
|
|
|
|
private QueryWrapper<FunctionEntity> getWrapper(Map<String, Object> params){ |
|
|
|
String id = (String)params.get(FieldConstant.ID_HUMP); |
|
|
|
String functionName = (String)params.get("functionName"); |
|
|
|
String functionGroup = (String)params.get("functionGroup"); |
|
|
|
String shoppingStatus = (String)params.get("shoppingStatus"); |
|
|
|
|
|
|
|
QueryWrapper<FunctionEntity> wrapper = new QueryWrapper<>(); |
|
|
|
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
|
|
|
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id) |
|
|
|
.like(StringUtils.isNotBlank(functionName), "FUNCTION_NAME", functionName) |
|
|
|
.eq(StringUtils.isNotBlank(functionGroup), "FUNCTION_GROUP", functionGroup) |
|
|
|
.eq(StringUtils.isNotBlank(shoppingStatus), "SHOPPING_STATUS", shoppingStatus); |
|
|
|
|
|
|
|
return wrapper; |
|
|
|
} |
|
|
|