vue打包

This commit is contained in:
zhal 2024-07-29 15:19:19 +08:00
parent 6443ac3e81
commit 21cd546de3
2 changed files with 75 additions and 20 deletions

View File

@ -3502,7 +3502,7 @@ public class ProcessPublishWeb extends ActionWeb {
if (fileList != null && fileList.size() > 0)
for (UpfileModel upfileModel : fileList){
String type = upfileModel.getType();
if(methodId.contains("control") || methodId.contains("process")){
if(!methodId.equals("control.policy") && methodId.contains("process") && !methodId.equals("engineering.standard")){
if ("s".equals(upfileModel.getType())) {
JSONObject jb = new JSONObject();
//按照附件编号排序
@ -4582,6 +4582,8 @@ public class ProcessPublishWeb extends ActionWeb {
return ro.toString();
}
/**
* 全部根据中文去找
* 根据表单内容 获取权限矩阵的审批人
@ -4608,44 +4610,97 @@ public class ProcessPublishWeb extends ActionWeb {
//查询区域流程
List<RowMap> adaptRowMap = DBSql.getMaps("select ADAPT_REGION_NAME from BO_ACT_AUTH_INFO where LEVEL_1_PROCESS_NAME=? AND LEVEL_2_PROCESS_NAME=? AND LEVEL_3_PROCESS_NAME=? ", level1, level2, level3);
if(adaptRowMap.size()==1){
ro.put("ADAPT_REGION_NAME",adaptRowMap.get(0).getString("ADAPT_REGION_NAME"));
}
List<RowMap> adaptRowMap = DBSql.getMaps("select ADAPT_REGION_NAME from BO_ACT_AUTH_INFO where LEVEL_1_PROCESS_NAME=? AND LEVEL_2_PROCESS_NAME=? AND LEVEL_3_PROCESS_NAME=? ", level1, level2, level3);
if(adaptRowMap.size()>0){
ro.put("ADAPT_REGION_NAME",adaptRowMap.get(0).getString("ADAPT_REGION_NAME"));
}
//查询产品流程
//查询产品流程
List<RowMap> applicableRowMap = DBSql.getMaps("select APPLICABLE_PRODUCT from BO_ACT_AUTH_INFO where LEVEL_1_PROCESS_NAME=? AND LEVEL_2_PROCESS_NAME=? AND LEVEL_3_PROCESS_NAME=? ", level1, level2, level3);
if(adaptRowMap.size()==1){
ro.put("APPLICABLE_PRODUCT",applicableRowMap.get(0).getString("APPLICABLE_PRODUCT"));
}
if(adaptRowMap.size()>0){
ro.put("APPLICABLE_PRODUCT",applicableRowMap.get(0).getString("APPLICABLE_PRODUCT"));
}
return ro.toString();
return ro.toString();
} else {
//l1 l2 l3 l4 保存到表里
DBSql.update(String.format("update BO_ACT_COE_PUBLISH set LEVEL_1_PROCESS_NAME='%s',LEVEL_2_PROCESS_NAME='%s',LEVEL_3_PROCESS_NAME='%s',LEVEL_4_PROCESS_NAME='%s' where BINDID='%s'", level1, level2, level3, level4, bindid));
String sql = "select AUDITOR1,AUDITOR_NO_1,L1_SP,AUDITOR2,AUDITOR_NO_2,L2_SP,AUDITOR3,AUDITOR_NO_3,L3_SP,AUDITOR4,AUDITOR_NO_4,L4_SP from BO_ACT_AUTH_INFO where LEVEL_1_PROCESS_NAME='%s' and LEVEL_2_PROCESS_NAME='%s' and LEVEL_3_PROCESS_NAME='%s' and LEVEL_4_PROCESS_NAME='%s' and ORGNAME='%s' and ADAPT_REGION_NAME='%s' and APPLICABLE_PRODUCT='%s'";
System.out.println(company+region+product);
RowMap result = DBSql.getMap(String.format(sql, level1, level2, level3, level4, company, region, product));
ResponseObject ro = ResponseObject.newOkResponse();
ro.put("data", result == null ? "" : result);
//查询区域流程
List<RowMap> adaptRowMap = DBSql.getMaps("select ADAPT_REGION_NAME from BO_ACT_AUTH_INFO where LEVEL_1_PROCESS_NAME=? AND LEVEL_2_PROCESS_NAME=? AND LEVEL_3_PROCESS_NAME=? AND LEVEL_4_PROCESS_NAME=? ", level1, level2, level3,level4);
if(adaptRowMap.size()==1){
ro.put("ADAPT_REGION_NAME",adaptRowMap.get(0).getString("ADAPT_REGION_NAME"));
}
//查询区域流程
List<RowMap> adaptRowMap = DBSql.getMaps("select ADAPT_REGION_NAME from BO_ACT_AUTH_INFO where LEVEL_1_PROCESS_NAME=? AND LEVEL_2_PROCESS_NAME=? AND LEVEL_3_PROCESS_NAME=? AND LEVEL_4_PROCESS_NAME=? ", level1, level2, level3,level4);
if(adaptRowMap.size()>0){
ro.put("ADAPT_REGION_NAME",adaptRowMap.get(0).getString("ADAPT_REGION_NAME"));
}
//查询产品流程
//查询产品流程
List<RowMap> applicableRowMap = DBSql.getMaps("select APPLICABLE_PRODUCT from BO_ACT_AUTH_INFO where LEVEL_1_PROCESS_NAME=? AND LEVEL_2_PROCESS_NAME=? AND LEVEL_3_PROCESS_NAME=? AND LEVEL_4_PROCESS_NAME=? ", level1, level2, level3,level4);
if(adaptRowMap.size()==1){
ro.put("APPLICABLE_PRODUCT",applicableRowMap.get(0).getString("APPLICABLE_PRODUCT"));
}
if(adaptRowMap.size()>0){
ro.put("APPLICABLE_PRODUCT",applicableRowMap.get(0).getString("APPLICABLE_PRODUCT"));
}
return ro.toString();
}
}
public String getApproveInfoByUnit(UserContext me, String level1, String level2, String level3, String level4, String company, String region, String product, String bindid) {
ProcessInstance processInstance = SDK.getProcessAPI().getInstanceById(bindid);
if (processInstance.getProcessDefId().equals("obj_fb1c7a54b98b412187388c8bab407362") || processInstance.getProcessDefId().equals("obj_5609e1d265dc4e7094c617f20be353dd") ) {
//l1 l2 l3 l4 保存到表里
DBSql.update(String.format("update BO_ACT_COE_PUBLISH set LEVEL_1_PROCESS_NAME='%s',LEVEL_2_PROCESS_NAME='%s',LEVEL_3_PROCESS_NAME='%s' where BINDID='%s'", level1, level2, level3, bindid));
String sql = "select AUDITOR1,AUDITOR_NO_1,L1_SP,AUDITOR2,AUDITOR_NO_2,L2_SP,AUDITOR3,AUDITOR_NO_3,L3_SP from BO_ACT_AUTH_INFO where LEVEL_1_PROCESS_NAME='%s' and LEVEL_2_PROCESS_NAME='%s' and LEVEL_3_PROCESS_NAME='%s' and ORGNAME='%s' and ADAPT_REGION_NAME='%s' and APPLICABLE_PRODUCT='%s'";
RowMap result = DBSql.getMap(String.format(sql, level1, level2, level3, company, region, product));
ResponseObject ro = ResponseObject.newOkResponse();
ro.put("data", result == null ? "" : result);
//查询区域流程
List<RowMap> adaptRowMap = DBSql.getMaps("select ADAPT_REGION_NAME from BO_ACT_AUTH_INFO where LEVEL_1_PROCESS_NAME=? AND LEVEL_2_PROCESS_NAME=? AND LEVEL_3_PROCESS_NAME=? AND ADAPT_NAME_THE_COMPANY=?", level1, level2, level3,region);
if(adaptRowMap.size()>0){
ro.put("ADAPT_REGION_NAME",adaptRowMap.get(0).getString("ADAPT_REGION_NAME"));
}
//查询产品流程
List<RowMap> applicableRowMap = DBSql.getMaps("select APPLICABLE_PRODUCT from BO_ACT_AUTH_INFO where LEVEL_1_PROCESS_NAME=? AND LEVEL_2_PROCESS_NAME=? AND LEVEL_3_PROCESS_NAME=? AND ADAPT_NAME_THE_COMPANY=? ", level1, level2, level3,region);
if(adaptRowMap.size()>0){
ro.put("APPLICABLE_PRODUCT",applicableRowMap.get(0).getString("APPLICABLE_PRODUCT"));
}
return ro.toString();
} else {
//l1 l2 l3 l4 保存到表里
DBSql.update(String.format("update BO_ACT_COE_PUBLISH set LEVEL_1_PROCESS_NAME='%s',LEVEL_2_PROCESS_NAME='%s',LEVEL_3_PROCESS_NAME='%s',LEVEL_4_PROCESS_NAME='%s' where BINDID='%s'", level1, level2, level3, level4, bindid));
String sql = "select AUDITOR1,AUDITOR_NO_1,L1_SP,AUDITOR2,AUDITOR_NO_2,L2_SP,AUDITOR3,AUDITOR_NO_3,L3_SP,AUDITOR4,AUDITOR_NO_4,L4_SP from BO_ACT_AUTH_INFO where LEVEL_1_PROCESS_NAME='%s' and LEVEL_2_PROCESS_NAME='%s' and LEVEL_3_PROCESS_NAME='%s' and LEVEL_4_PROCESS_NAME='%s' and ORGNAME='%s' and ADAPT_REGION_NAME='%s' and APPLICABLE_PRODUCT='%s'";
RowMap result = DBSql.getMap(String.format(sql, level1, level2, level3, level4, company, region, product));
ResponseObject ro = ResponseObject.newOkResponse();
ro.put("data", result == null ? "" : result);
//查询区域流程
List<RowMap> adaptRowMap = DBSql.getMaps("select ADAPT_REGION_NAME from BO_ACT_AUTH_INFO where LEVEL_1_PROCESS_NAME=? AND LEVEL_2_PROCESS_NAME=? AND LEVEL_3_PROCESS_NAME=? AND LEVEL_4_PROCESS_NAME=? AND ORGNAME=?", level1, level2, level3,level4,company);
if(adaptRowMap.size()>0){
ro.put("ADAPT_REGION_NAME",adaptRowMap.get(0).getString("ADAPT_REGION_NAME"));
}
//查询产品流程
List<RowMap> applicableRowMap = DBSql.getMaps("select APPLICABLE_PRODUCT from BO_ACT_AUTH_INFO where LEVEL_1_PROCESS_NAME=? AND LEVEL_2_PROCESS_NAME=? AND LEVEL_3_PROCESS_NAME=? AND LEVEL_4_PROCESS_NAME=? AND ORGNAME=?", level1, level2, level3,level4,company);
if(adaptRowMap.size()>0){
ro.put("APPLICABLE_PRODUCT",applicableRowMap.get(0).getString("APPLICABLE_PRODUCT"));
}
return ro.toString();
}
}
/**
* 录入权限矩阵的时候获取默认的单位信息和单位编码~
*