Browse Source

党员中心户查询条件

dev_power_axis
YUJT 3 years ago
parent
commit
6daf8a2098
  1. 10
      epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/service/impl/PowerKernelHouseholdServiceImpl.java

10
epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/service/impl/PowerKernelHouseholdServiceImpl.java

@ -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;
}

Loading…
Cancel
Save