Commit c08029bd authored by chenzhao's avatar chenzhao

历史无证增补增加筛选

parent 8bad3e42
...@@ -39,6 +39,9 @@ ...@@ -39,6 +39,9 @@
<select id="queryByUseUnitCreditCode" resultType="com.yeejoin.amos.boot.module.jg.api.dto.JgUseRegistrationManageDto"> <select id="queryByUseUnitCreditCode" resultType="com.yeejoin.amos.boot.module.jg.api.dto.JgUseRegistrationManageDto">
<include refid="page_list"/> <include refid="page_list"/>
from tzs_jg_use_registration_manage tjurm from tzs_jg_use_registration_manage tjurm
<if test="dto.regType != null and dto.regType != '' ">
LEFT JOIN tzs_jg_use_registration ur on ur.use_registration_code = tjurm.use_registration_code
</if>
<where> <where>
tjurm.is_delete = 0 tjurm.is_delete = 0
<if test="dto.useUnitCreditCode != null and dto.useUnitCreditCode != ''"> <if test="dto.useUnitCreditCode != null and dto.useUnitCreditCode != ''">
...@@ -62,8 +65,8 @@ ...@@ -62,8 +65,8 @@
<if test="dto.isCyl != null and dto.isCyl == 1 "> <if test="dto.isCyl != null and dto.isCyl == 1 ">
AND tjurm.reg_type != '车用气瓶登记' AND tjurm.reg_type != '车用气瓶登记'
</if> </if>
<if test="dto.whetherVehicleCylinder != null and dto.whetherVehicleCylinder == 1 "> <if test="dto.regType != null and dto.regType != '' ">
AND tjurm.reg_type = '车用气瓶登记' AND ur.reg_type in (0,2)
</if> </if>
ORDER BY tjurm.rec_date DESC ORDER BY tjurm.rec_date DESC
</where> </where>
......
...@@ -36,20 +36,21 @@ ...@@ -36,20 +36,21 @@
and tjvi.use_unit_credit_code = #{dto.useUnitCode} and tjvi.use_unit_credit_code = #{dto.useUnitCode}
</if> </if>
<if test="dto.dataType == 'supervision' and client == 'jgAudit' "> <if test="dto.dataType == 'supervision' and client == 'jgAudit' ">
AND tjvi.receive_company_code = #{dto.useUnitCreditCode} AND tjvi.receive_company_code = #{dto.useUnitCreditCode}
AND tjvi.status <![CDATA[<>]]> '使用单位待提交' AND tjvi.status <![CDATA[<>]]> '使用单位待提交'
<if test="dto.orgBranchCode != null and dto.orgBranchCode != ''">
and tjvi.org_branch_code = #{dto.orgBranchCode}
</if>
</if> </if>
<if test="dto.dataType == 'supervision' and client != 'jgAudit' "> <if test="dto.dataType == 'company' ">
AND tjvi.org_branch_code LIKE CONCAT(#{dto.orgBranchCode}, '%')
</if>
<if test="dto.dataType == 'company'">
and tjvi.use_unit_credit_code = #{dto.useUnitCreditCode} and tjvi.use_unit_credit_code = #{dto.useUnitCreditCode}
<if test="dto.orgBranchCode != null and dto.orgBranchCode != ''"> </if>
and tjvi.org_branch_code = #{dto.orgBranchCode} <if test="dto.orgBranchCode != null and dto.orgBranchCode != ''">
</if> <choose>
<when test="client == 'jgAudit'">
and tjvi.org_branch_code = #{dto.orgBranchCode}
</when>
<otherwise>
AND tjvi.org_branch_code LIKE CONCAT(#{dto.orgBranchCode}, '%')
</otherwise>
</choose>
</if> </if>
</where> </where>
order by order by
......
...@@ -154,7 +154,7 @@ public class EquipmentCategoryController extends BaseController { ...@@ -154,7 +154,7 @@ public class EquipmentCategoryController extends BaseController {
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(httpMethod = "GET", value = "装备分类列表全部数据查询", notes = "装备分类列表全部数据查询") @ApiOperation(httpMethod = "GET", value = "装备分类列表全部数据查询", notes = "装备分类列表全部数据查询")
@GetMapping(value = "/tree") @GetMapping(value = "/tree")
public ResponseModel<Object> tree(@RequestParam(value = "code", required = false) String code) throws Exception { public ResponseModel<Object> tree(@RequestParam(value = "code", required = false) String code,@RequestParam(value = "dataSource", required = false) String dataSource) throws Exception {
if (ObjectUtils.isEmpty(code)) { if (ObjectUtils.isEmpty(code)) {
return ResponseHelper.buildResponse(new ArrayList<>()); return ResponseHelper.buildResponse(new ArrayList<>());
} }
...@@ -165,6 +165,13 @@ public class EquipmentCategoryController extends BaseController { ...@@ -165,6 +165,13 @@ public class EquipmentCategoryController extends BaseController {
Menu menu = new Menu(root.getId(), root.getName(), 0L, 0); Menu menu = new Menu(root.getId(), root.getName(), 0L, 0);
List<Menu> menus = TreeParser.getTree(root.getId(), list, EquipmentCategory.class.getName(), "getId", 0, "getName", List<Menu> menus = TreeParser.getTree(root.getId(), list, EquipmentCategory.class.getName(), "getId", 0, "getName",
"getParentId", null, "getCode"); "getParentId", null, "getCode");
if (Objects.nonNull(dataSource)&&"jg_his_black".equals(dataSource)){
for (Menu menu1 : menus) {
if (menu1.getName().equals("特种气瓶")){
menu1.setName("特种气瓶"+"(非车用气瓶)");
}
}
}
menu.setChildren(menus); menu.setChildren(menus);
List<Menu> tree = new ArrayList<>(); List<Menu> tree = new ArrayList<>();
tree.add(menu); tree.add(menu);
......
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