Quellcode durchsuchen

研究生sop流程修改

wangliang vor 1 Jahr
Ursprung
Commit
7f36a81a55

BIN
sop-api/src/main/resources/cloudMarkSopFlow.zip


+ 1 - 1
sop-business/src/main/java/com/qmth/sop/business/exec/MySQLExec.java

@@ -105,7 +105,7 @@ public class MySQLExec {
                 string = string.replaceAll("\\#\\{dynamicFields\\}", stringJoiner.toString());
                 IOUtils.write(string.getBytes(StandardCharsets.UTF_8), new FileOutputStream(file));
 
-                String cmdarray[] = {"mysql -h" + this.host + " -P" + this.port + " -u" + this.username + " -p" + this.password + " " + this.databaseName, "source " + file.getPath()};
+                String cmdarray[] = {"mysql -h" + this.host + " -P" + this.port + " -u" + this.username + " -p" + this.password + " " + this.databaseName, "source " + file.getAbsolutePath()};
                 Runtime runtime = Runtime.getRuntime();
                 Process process = null;
                 try {

+ 5 - 1
sop-business/src/main/resources/db/log/wangliang_update_log.sql

@@ -1136,4 +1136,8 @@ SET name='新增违规 ', url='AddViolation', `type`='LINK', parent_id=42, `sequ
 WHERE id=186;
 
 ALTER TABLE t_d_form_widget CHANGE COLUMN handle_time handle TINYINT DEFAULT 0
-    COMMENT '处理时限,0:不处理,1:可处理' NOT NULL;
+    COMMENT '处理时限,0:不处理,1:可处理' NOT NULL;
+
+UPDATE sys_privilege
+SET name='重启', url='Restart', `type`='LINK', parent_id=47, `sequence`=3, property='AUTH', related='1016', enable=1, default_auth=0, front_display=1
+WHERE id=202;