发布流程默认填充全部
This commit is contained in:
parent
8fe872eff1
commit
a437d32e28
Binary file not shown.
@ -4334,7 +4334,21 @@ public class ProcessPublishWeb extends ActionWeb {
|
||||
RowMap result = DBSql.getMap(String.format(sql, level1, level2, level3, company, region, product));
|
||||
ResponseObject ro = ResponseObject.newOkResponse();
|
||||
ro.put("data", result == null ? "" : result);
|
||||
return ro.toString();
|
||||
|
||||
|
||||
//查询区域流程
|
||||
RowMap adaptRowMap = DBSql.getMap("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 ADAPT_NAME_THE_COMPANY=?", level1, level2, level3,level4,company);
|
||||
if(adaptRowMap.size()==1){
|
||||
ro.put("ADAPT_REGION_NAME",adaptRowMap.getString("ADAPT_REGION_NAME"));
|
||||
}
|
||||
|
||||
//查询产品流程
|
||||
RowMap applicableRowMap = DBSql.getMap("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 ADAPT_NAME_THE_COMPANY=?", level1, level2, level3,level4,company);
|
||||
if(adaptRowMap.size()==1){
|
||||
ro.put("APPLICABLE_PRODUCT",applicableRowMap.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));
|
||||
@ -4342,6 +4356,20 @@ public class ProcessPublishWeb extends ActionWeb {
|
||||
RowMap result = DBSql.getMap(String.format(sql, level1, level2, level3, level4, company, region, product));
|
||||
ResponseObject ro = ResponseObject.newOkResponse();
|
||||
ro.put("data", result == null ? "" : result);
|
||||
|
||||
//查询区域流程
|
||||
RowMap adaptRowMap = DBSql.getMap("select ADAPT_REGION_NAME from BO_ACT_AUTH_INFO where LEVEL_1_PROCESS_NAME=? and LEVEL_2_PROCESS_NAME=? AND LEVEL_3_PROCESS_NAME=? LEVEL_4_PROCESS_NAME=?", level1, level2, level3,company);
|
||||
if(adaptRowMap.size()==1){
|
||||
ro.put("ADAPT_REGION_NAME",adaptRowMap.getString("ADAPT_REGION_NAME"));
|
||||
}
|
||||
|
||||
//查询产品流程
|
||||
RowMap applicableRowMap = DBSql.getMap("select APPLICABLE_PRODUCT from BO_ACT_AUTH_INFO where LEVEL_1_PROCESS_NAME=? and LEVEL_2_PROCESS_NAME=? AND LEVEL_3_PROCESS_NAME=? LEVEL_4_PROCESS_NAME=?", level1, level2, level3,company);
|
||||
if(adaptRowMap.size()==1){
|
||||
ro.put("APPLICABLE_PRODUCT",applicableRowMap.getString("APPLICABLE_PRODUCT"));
|
||||
}
|
||||
|
||||
|
||||
return ro.toString();
|
||||
}
|
||||
|
||||
|
||||
@ -10,7 +10,6 @@ import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import com.actionsoft.apps.coe.pal.datamigration.RepositoryAttribute;
|
||||
import com.actionsoft.apps.coe.pal.pal.repository.dao.CoeProcessLevelDaoFacotory;
|
||||
import com.actionsoft.exception.AWSDataAccessException;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user