Commit 4af4d5fa authored by caotao's avatar caotao

列表合并后后端代码调整

parent bb5a6af5
...@@ -46,16 +46,16 @@ ...@@ -46,16 +46,16 @@
<if test="dto.useUnitName != null and dto.useUnitName != ''"> <if test="dto.useUnitName != null and dto.useUnitName != ''">
and ur.use_unit_name like concat('%',#{dto.useUnitName},'%') and ur.use_unit_name like concat('%',#{dto.useUnitName},'%')
</if> </if>
<if test="roleIds != null and dto.dataType == 'jg'"> <if test="roleIds != null and dto.dataType == 'supervision'">
<foreach collection='roleIds' item='role' open='and (' close=')' separator='or'> <foreach collection='roleIds' item='role' open='and (' close=')' separator='or'>
instance_status like concat('%',#{role},'%') instance_status like concat('%',#{role},'%')
</foreach> </foreach>
</if> </if>
<if test="dto.dataType == 'jg' "> <if test="dto.dataType == 'supervision' ">
and ur.receive_org_code = #{dto.unitCode} and ur.receive_org_code = #{dto.receiveOrgCode}
</if> </if>
<if test="dto.dataType == 'company' "> <if test="dto.dataType == 'company' ">
and ur.use_unit_credit_code = #{dto.unitCode} and ur.use_unit_credit_code = #{dto.useUnitCreditCode}
</if> </if>
</where> </where>
order by ur.rec_date desc order by ur.rec_date desc
......
...@@ -95,6 +95,14 @@ public class JgChangeRegistrationReformController extends BaseController { ...@@ -95,6 +95,14 @@ public class JgChangeRegistrationReformController extends BaseController {
@RequestParam(value = "current") int current, @RequestParam(value = "current") int current,
@RequestParam(value = "size") int size) { @RequestParam(value = "size") int size) {
Page<Map<String, Object>> page = new Page<>(current, size); Page<Map<String, Object>> page = new Page<>(current, size);
ReginParams reginParams = getSelectedOrgInfo();
if(reginParams.getCompany().getLevel().equals(COMPANY_TYPE_COMPANY)){
dto.setDataType(COMPANY_TYPE_COMPANY);
dto.setUnitCode(reginParams.getCompany().getCompanyCode());
} else {
dto.setDataType(COMPANY_TYPE_SUPERVISION);
dto.setReceiveOrgCode(reginParams.getCompany().getCompanyCode());
}
return ResponseHelper.buildResponse(jgChangeRegistrationReformServiceImpl.getList(dto, page, dto.getRoleIds())); return ResponseHelper.buildResponse(jgChangeRegistrationReformServiceImpl.getList(dto, page, dto.getRoleIds()));
} }
......
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