|
@ -102,7 +102,7 @@ public class IcFormController { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 获取居民信息表单 |
|
|
* 获取居民信息表单 【dynamic=null】查询全部;否则查询对应的item |
|
|
* |
|
|
* |
|
|
* @param formDto |
|
|
* @param formDto |
|
|
* @return com.epmet.commons.tools.utils.Result<CustomerFormResultDTO> |
|
|
* @return com.epmet.commons.tools.utils.Result<CustomerFormResultDTO> |
|
@ -114,16 +114,13 @@ public class IcFormController { |
|
|
if (StringUtils.isBlank(formDto.getCustomerId())){ |
|
|
if (StringUtils.isBlank(formDto.getCustomerId())){ |
|
|
formDto.setCustomerId(customerId); |
|
|
formDto.setCustomerId(customerId); |
|
|
} |
|
|
} |
|
|
if (formDto.getDynamic() == null){ |
|
|
|
|
|
formDto.setDynamic(true); |
|
|
|
|
|
} |
|
|
|
|
|
ValidatorUtils.validateEntity(formDto,CustomerFormQueryDTO.AddUserInternalGroup.class); |
|
|
ValidatorUtils.validateEntity(formDto,CustomerFormQueryDTO.AddUserInternalGroup.class); |
|
|
return new Result<CustomerFormResultDTO>().ok(icFormService.getCustomerForm(formDto)); |
|
|
return new Result<CustomerFormResultDTO>().ok(icFormService.getCustomerForm(formDto)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 获取居民信息的查询条件,组件列表 |
|
|
* 获取居民信息的查询条件,组件列表 【dynamic=null】查询全部;否则查询对应的item |
|
|
* |
|
|
* |
|
|
* @param tokenDto |
|
|
* @param tokenDto |
|
|
* @param formDto |
|
|
* @param formDto |
|
@ -134,9 +131,6 @@ public class IcFormController { |
|
|
@PostMapping("conditionlist") |
|
|
@PostMapping("conditionlist") |
|
|
public Result<List<ConditionResultDTO>> queryConditionList(@LoginUser TokenDto tokenDto, @RequestBody CustomerFormQueryDTO formDto){ |
|
|
public Result<List<ConditionResultDTO>> queryConditionList(@LoginUser TokenDto tokenDto, @RequestBody CustomerFormQueryDTO formDto){ |
|
|
formDto.setCustomerId(tokenDto.getCustomerId()); |
|
|
formDto.setCustomerId(tokenDto.getCustomerId()); |
|
|
if (formDto.getDynamic() == null){ |
|
|
|
|
|
formDto.setDynamic(true); |
|
|
|
|
|
} |
|
|
|
|
|
ValidatorUtils.validateEntity(formDto,CustomerFormQueryDTO.AddUserInternalGroup.class); |
|
|
ValidatorUtils.validateEntity(formDto,CustomerFormQueryDTO.AddUserInternalGroup.class); |
|
|
return new Result<List<ConditionResultDTO>>().ok(icFormItemService.queryConditionList(formDto)); |
|
|
return new Result<List<ConditionResultDTO>>().ok(icFormItemService.queryConditionList(formDto)); |
|
|
} |
|
|
} |
|
|