编号bug修复\手册增加工程技术标准、方案图生成逻辑
This commit is contained in:
parent
f7245555df
commit
b54118c293
Binary file not shown.
@ -32,7 +32,7 @@ public class ProcesNumberUtil {
|
||||
RowMap result = DBSql.getMap(String.format(querySql, levelCode, regionCode));
|
||||
//如果没有就新增
|
||||
if (result == null) {
|
||||
String sql = "insert into BO_ACT_PROCESSNUMBER (ID,LEVELNUM,REGIONCODE,PROCESS_NUMBERS,SYSTEM_NUMBERS,FORM_NUMBERS) values ('%s', '%s', '%s', %s, %s, %s)";
|
||||
String sql = "insert into BO_ACT_PROCESSNUMBER (ID,LEVELNUM,REGIONCODE,PROCESS_NUMBERS,SYSTEM_NUMBERS,FORM_NUMBERS) values ('%s', '%s', '%s', '%s', '%s','%s')";
|
||||
String id = UUIDGener.getUUID();
|
||||
int update = DBSql.update(String.format(sql, id, levelCode, regionCode, nowNum + 1, 1, 1));
|
||||
return "001";
|
||||
@ -52,9 +52,9 @@ public class ProcesNumberUtil {
|
||||
RowMap result = DBSql.getMap(String.format(querySql, levelCode, regionCode));
|
||||
//如果没有就新增
|
||||
if (result == null) {
|
||||
String sql = "insert into BO_ACT_PROCESSNUMBER (ID,LEVELNUM,REGIONCODE,PROCESS_NUMBERS,SYSTEM_NUMBERS,FORM_NUMBERS,ENGINEERING_NUMBERS) values ('%s', '%s', '%s', %s, %s, %s,%s)";
|
||||
String sql = "insert into BO_ACT_PROCESSNUMBER (ID,LEVELNUM,REGIONCODE,PROCESS_NUMBERS,SYSTEM_NUMBERS,FORM_NUMBERS,ENGINEERING_NUMBERS) values ('%s', '%s', '%s', '%s', '%s', '%s','%s')";
|
||||
String id = UUIDGener.getUUID();
|
||||
DBSql.update(String.format(sql, id, levelCode, regionCode, 1, 1, 1));
|
||||
DBSql.update(String.format(sql, id, levelCode, regionCode, 1, nowNum + 1, 1,1));
|
||||
return "001";
|
||||
}
|
||||
nowNum = result.getInt("SYSTEM_NUMBERS");
|
||||
@ -72,9 +72,9 @@ public class ProcesNumberUtil {
|
||||
RowMap result = DBSql.getMap(String.format(querySql, levelCode, regionCode));
|
||||
//如果没有就新增
|
||||
if (result == null) {
|
||||
String sql = "insert into BO_ACT_PROCESSNUMBER (ID,LEVELNUM,REGIONCODE,PROCESS_NUMBERS,SYSTEM_NUMBERS,FORM_NUMBERS,ENGINEERING_NUMBERS) values ('%s', '%s', '%s', %s, %s, %s,%s)";
|
||||
String sql = "insert into BO_ACT_PROCESSNUMBER (ID,LEVELNUM,REGIONCODE,PROCESS_NUMBERS,SYSTEM_NUMBERS,FORM_NUMBERS,ENGINEERING_NUMBERS) values ('%s', '%s', '%s', '%s', '%s', '%s','%s')";
|
||||
String id = UUIDGener.getUUID();
|
||||
DBSql.update(String.format(sql, id, levelCode, regionCode, 1, 1, 1));
|
||||
DBSql.update(String.format(sql, id, levelCode, regionCode, 1, 1, nowNum + 1,1));
|
||||
return "001";
|
||||
}
|
||||
nowNum = result.getInt("FORM_NUMBERS");
|
||||
@ -91,7 +91,7 @@ public class ProcesNumberUtil {
|
||||
RowMap result = DBSql.getMap(String.format(querySql, levelCode, regionCode));
|
||||
//如果没有就新增
|
||||
if (result == null) {
|
||||
String sql = "insert into BO_ACT_PROCESSNUMBER (ID,LEVELNUM,REGIONCODE,PROCESS_NUMBERS,SYSTEM_NUMBERS,FORM_NUMBERS,ENGINEERING_NUMBERS) values ('%s', '%s', '%s', %s, %s, %s,%s)";
|
||||
String sql = "insert into BO_ACT_PROCESSNUMBER (ID,LEVELNUM,REGIONCODE,PROCESS_NUMBERS,SYSTEM_NUMBERS,FORM_NUMBERS,ENGINEERING_NUMBERS) values ('%s', '%s', '%s', '%s', '%s', '%s','%s')";
|
||||
String id = UUIDGener.getUUID();
|
||||
DBSql.update(String.format(sql, id, levelCode, regionCode, 1, 1, 1,nowNum + 1));
|
||||
return "001";
|
||||
|
||||
@ -2580,7 +2580,7 @@ public class ProcessPublishWeb extends ActionWeb {
|
||||
taskId = object.getJSONObject("data").getString("taskId");
|
||||
else
|
||||
throw new AWSException("创建流程手册失败:" + uuid);
|
||||
} else if ("control.policy".equals(model.getMethodId())) {
|
||||
} else if ("control.policy".equals(model.getMethodId()) || "engineering.standard".equals(model.getMethodId()) || "process.scheme".equals(model.getMethodId())) {
|
||||
taskId = PALRepositoryQueryAPIManager.getInstance().createOutputReportZd(wsId, _uc.getUID(), teamId, uuid);
|
||||
JSONObject object = JSONObject.parseObject(taskId);
|
||||
if ("ok".equals(object.getString("result")))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user