|
|
@ -54,13 +54,15 @@ public class PowerKernelHouseholdServiceImpl extends BaseServiceImpl<PowerKernel |
|
|
|
return ConvertUtils.sourceToTarget(entityList, PowerKernelHouseholdDTO.class); |
|
|
|
} |
|
|
|
|
|
|
|
private QueryWrapper<PowerKernelHouseholdEntity> getWrapper(Map<String, Object> params){ |
|
|
|
String id = (String)params.get(FieldConstant.ID_HUMP); |
|
|
|
String axisStructId = (String)params.get("axisStructId"); |
|
|
|
private QueryWrapper<PowerKernelHouseholdEntity> getWrapper(Map<String, Object> params) { |
|
|
|
String id = (String) params.get(FieldConstant.ID_HUMP); |
|
|
|
String axisStructId = (String) params.get("axisStructId"); |
|
|
|
String ownerName = (String) params.get("ownerName"); |
|
|
|
|
|
|
|
QueryWrapper<PowerKernelHouseholdEntity> wrapper = new QueryWrapper<>(); |
|
|
|
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id) |
|
|
|
.eq(StringUtils.isNotBlank(axisStructId), "STRUCT_REFERENCE_ID", axisStructId); |
|
|
|
.eq(StringUtils.isNotBlank(axisStructId), "STRUCT_REFERENCE_ID", axisStructId) |
|
|
|
.like(StringUtils.isNotBlank(ownerName), "OWNER_NAME", ownerName); |
|
|
|
|
|
|
|
return wrapper; |
|
|
|
} |
|
|
|