diff --git a/bonus-modules/bonus-project/src/main/resources/mapper/system/SupervisionUnitMapper.xml b/bonus-modules/bonus-project/src/main/resources/mapper/system/SupervisionUnitMapper.xml index c09e49a..59d1362 100644 --- a/bonus-modules/bonus-project/src/main/resources/mapper/system/SupervisionUnitMapper.xml +++ b/bonus-modules/bonus-project/src/main/resources/mapper/system/SupervisionUnitMapper.xml @@ -274,7 +274,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" on psp.sup_user_id = lsp.sup_persion_id left join sys_dict_data sdd on sdd.dict_value = psp.post and sdd.dict_type = 'sys_sup_post' and sdd.status = '0' - where psp.is_active = '1' + where psp.is_active = '1' and lsp.status = '0' and lsp.sup_uuid = (select uuid from pt_sup_info where sup_id = #{supId}) @@ -316,7 +316,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" on psp.sup_user_id = lsp.sup_persion_id left join sys_dict_data sdd on sdd.dict_value = psp.post and sdd.dict_type = 'sys_sup_post' and sdd.status = '0' - where psp.is_active = '1' + where psp.is_active = '1' and lsp.status = '0' and lsp.sup_uuid = (select uuid from pt_sup_info where sup_id = #{supId})