Selaa lähdekoodia

辊类型优化

DLC 6 kuukautta sitten
vanhempi
commit
348f0aed57

+ 3 - 2
cx-aps/cx-aps-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ApsProcessOperationServiceImpl.java

@@ -1453,8 +1453,9 @@ public class ApsProcessOperationServiceImpl extends ServiceImpl<ApsProcessOperat
             if (changeZJEquDoList != null && changeZJEquDoList.size() > 0) {
                 for (ApsProcessOperationEquDo zjequ : changeZJEquDoList) {
                     String levelStr = "";
-                    if (!zjequ.getRemark().equals("add")) {
-                        levelStr = String.format(" and IFNULL(e.ROLLERID,‘%s’)='%s'", zjequ.getRoption() == null ? "" : zjequ.getRoption());
+                    if (StringUtils.isNotBlank(zjequ.getRemark()) && !zjequ.getRemark().equals("add")) {
+                        String rollerid = zjequ.getRoption() == null ? "" : zjequ.getRoption();
+                        levelStr = String.format(" and IFNULL(e.ROLLERID,'%s')='%s'", rollerid, rollerid);
                     }
                     apsProcessOperationDao.updateZJProcessEqu(params.getBlankid(), zjequ.getResourceid(), levelStr, zjequ.getRollerid(), zjequ.getRollertype(), params.getLevel());
                 }