Просмотр исходного кода

修改原有付款审核列表(加入咨询师查看逻辑)

Signed-off-by: anderx <312518615@qq.com>
anderx лет назад: 5
Родитель
Сommit
5c454b6871

+ 6 - 0
src/main/java/com/goafanti/common/mapper/ThirdPartyCompanyMapper.xml

@@ -520,6 +520,9 @@
 		<if test="lvl==1">
 		<if test="lvl==1">
 		and c.finance_id in (select id from admin where superior_id= #{aid} )
 		and c.finance_id in (select id from admin where superior_id= #{aid} )
 		</if>
 		</if>
+		<if test="lvl==3">
+		and b.task_receiver= #{aid}
+		</if>
 		<if test="contractNo !=null">
 		<if test="contractNo !=null">
 		and c.contract_no like concat('%', #{contractNo},'%')
 		and c.contract_no like concat('%', #{contractNo},'%')
 		</if>
 		</if>
@@ -564,6 +567,9 @@
 		<if test="lvl==1">
 		<if test="lvl==1">
 		and c.finance_id in (select id from admin where superior_id= #{aid} )
 		and c.finance_id in (select id from admin where superior_id= #{aid} )
 		</if>
 		</if>
+		<if test="lvl==3">
+		and b.task_receiver= #{aid}
+		</if>
 		<if test="contractNo !=null">
 		<if test="contractNo !=null">
 		and c.contract_no like concat('%', #{contractNo},'%')
 		and c.contract_no like concat('%', #{contractNo},'%')
 		</if>
 		</if>

+ 2 - 0
src/main/java/com/goafanti/organization/service/impl/ThirdPartyCompanyServiceImpl.java

@@ -573,6 +573,8 @@ public class ThirdPartyCompanyServiceImpl extends  BaseMybatisDao<ThirdPartyComp
 				TokenManager.hasRole(AFTConstants.CED)||TokenManager.hasRole(AFTConstants.SUPERADMIN)||
 				TokenManager.hasRole(AFTConstants.CED)||TokenManager.hasRole(AFTConstants.SUPERADMIN)||
 				TokenManager.hasRole(AFTConstants.APPROVAL_DECISION)) {
 				TokenManager.hasRole(AFTConstants.APPROVAL_DECISION)) {
 			map.put("lvl", 2);
 			map.put("lvl", 2);
+		}else  if (TokenManager.hasRole(AFTConstants.TECH)||TokenManager.hasRole(AFTConstants.TECH_MANAGER)) {
+			map.put("lvl", 3);
 		}else  {
 		}else  {
 			map.put("lvl", 0);
 			map.put("lvl", 0);
 		}
 		}