|
@@ -60,6 +60,7 @@ public class EVisaTaskCheckController {
|
|
|
|
|
|
private final JdbcTemplate jdbcTemplate;
|
|
|
|
|
|
+
|
|
|
/**
|
|
|
* 检查所选的流程环节处理人是否具有审批权限(三大填报页、日志列表的批量上报、首件列表的批量上报)
|
|
|
*/
|
|
@@ -80,7 +81,16 @@ public class EVisaTaskCheckController {
|
|
|
//获取这些审批人在当前合同段的权限
|
|
|
List<JSONObject> userRoleList = this.saveUserInfoByProjectClient.queryUserContractRole(customFlowUserList, json.getString("contractId"));
|
|
|
if (userRoleList == null || userRoleList.size() <= 0) {
|
|
|
- return R.data(300, false, "所选审批人均未找到当前表格所需要的签字岗位,请联系服务人员处理");
|
|
|
+ //查看当前项目下是否有监理合同段关联此合同段
|
|
|
+ Long contractId = jdbcTemplate.queryForObject("SELECT id from m_contract_info mci WHERE contract_type = 2 \n" +
|
|
|
+ "and id in (SELECT contract_id_jlyz FROM m_contract_relation_jlyz WHERE contract_id_sg = " + json.getString("contractId")+")",Long.class);
|
|
|
+ if (contractId == null) {
|
|
|
+ return R.data(300, false, "所选审批人均未找到当前表格所需要的签字岗位,请联系服务人员处理");
|
|
|
+ }
|
|
|
+ userRoleList = this.saveUserInfoByProjectClient.queryUserContractRole(customFlowUserList, contractId+"");
|
|
|
+ if (userRoleList == null || userRoleList.size() <= 0){
|
|
|
+ return R.data(300, false, "所选审批人均未找到当前表格所需要的签字岗位,请联系服务人员处理");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//获取电签配置
|
|
@@ -134,7 +144,16 @@ public class EVisaTaskCheckController {
|
|
|
//获取这些审批人在当前合同段的权限
|
|
|
List<JSONObject> userRoleList = this.saveUserInfoByProjectClient.queryUserContractRole(customFlowUserList, json.getString("contractId"));
|
|
|
if (userRoleList == null || userRoleList.size() <= 0) {
|
|
|
- return R.data(300, false, "所选审批人均未找到当前表格所需要的签字岗位,请联系服务人员处理");
|
|
|
+ //查看当前项目下是否有监理合同段关联此合同段
|
|
|
+ Long contractId = jdbcTemplate.queryForObject("SELECT id from m_contract_info mci WHERE contract_type = 2 \n" +
|
|
|
+ "and id in (SELECT contract_id_jlyz FROM m_contract_relation_jlyz WHERE contract_id_sg = " + json.getString("contractId")+")",Long.class);
|
|
|
+ if (contractId == null) {
|
|
|
+ return R.data(300, false, "所选审批人均未找到当前表格所需要的签字岗位,请联系服务人员处理");
|
|
|
+ }
|
|
|
+ userRoleList = this.saveUserInfoByProjectClient.queryUserContractRole(customFlowUserList, contractId+"");
|
|
|
+ if (userRoleList == null || userRoleList.size() <= 0){
|
|
|
+ return R.data(300, false, "所选审批人均未找到当前表格所需要的签字岗位,请联系服务人员处理");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//获取电签配置
|