Selaa lähdekoodia

调度排程开发

fangpy 5 kuukautta sitten
vanhempi
commit
16310b4e1a

+ 5 - 1
cx-aps/cx-aps-common/src/main/java/com/rongwei/bscommon/sys/dao/ApsBlankOrderDao.java

@@ -69,8 +69,12 @@ public interface ApsBlankOrderDao extends BaseMapper<ApsBlankOrderDo> {
     @Update("delete from aps_process_operation_process_equ where BLANKID in (${blankids}) and (CANCELROLL is null or CANCELROLL<PLANPROCESSRALL)")
     void deleteBlankDetail(@Param("blankids") String blankids);
 
+//    @Select("UPDATE aps_process_operation_process_equ set LOCKMARK='n' where DELETED='0' and BLANKID in (${hasIds}) " +
+//            "and PROCESSID NOT IN (select ID from aps_process_operation where DELETED='0' and BLANKID in (${hasIds}) AND LOCKMARK='y')")
+//    void setProDetailLockMark(@Param("hasIds") String hasIds);
+
     @Select("UPDATE aps_process_operation_process_equ set LOCKMARK='n' where DELETED='0' and BLANKID in (${hasIds}) " +
-            "and PROCESSID NOT IN (select ID from aps_process_operation where DELETED='0' and BLANKID in (${hasIds}) AND LOCKMARK='y')")
+            "and ID NOT IN (select ID from aps_process_operation_process_equ where DELETED='0' and BLANKID in (${hasIds}) AND LOCKMARKDETAIL='y')")
     void setProDetailLockMark(@Param("hasIds") String hasIds);
 
     @Select("select * FROM (\n" +