Browse Source

fix: 大梦到mysql数据库迁移

liuc 5 months ago
parent
commit
b5cfa2eb62

+ 1 - 1
bound-link-api/sa-flow-common/src/main/java/com/cloud/sa/flow/commom/service/genSql/impl/GeneratorSqlForSqlServer.java

@@ -141,7 +141,7 @@ public class GeneratorSqlForSqlServer implements SqlGeneratorService {
     }
 
     public String getMaxSortIndex(String tableName, String mainTableId) {
-        return "SELECT isnull(max(sort_index),0) maxIndex FROM " + tableName + " WHERE flow_parent_id='" + mainTableId + "'";
+        return "SELECT ifnull(max(sort_index),0) maxIndex FROM " + tableName + " WHERE flow_parent_id='" + mainTableId + "'";
     }
 
     public String getDeleteSql(String tableName, String objectId) {

+ 1 - 1
bound-link-api/sa-flow-common/src/main/resources/mapper/StTaskitemMapper.xml

@@ -126,7 +126,7 @@
         LEFT JOIN st_instance t2 on t1.instanceid = t2.objectid
         LEFT JOIN view_user u on t2.originator = u.user_code
         <where>
-            t1.state in (2, 3) and isnull(auto_pass,0) !=1
+            t1.state in (2, 3) and ifnull(auto_pass,0) !=1
             <if test="form.userId != null and form.userId != ''">AND t1.participant = #{form.userId}</if>
             <if test="form.instanceName != null and form.instanceName != ''">AND t2.instance_name like
                 concat('%',#{form.instanceName},'%')