|
@@ -62,18 +62,18 @@ public interface ApsBlankOrderDao extends BaseMapper<ApsBlankOrderDo> {
|
|
|
"</if></script>")
|
|
|
List<ApsBlankOrderVo> getOrdersHasNotLockProcess(@Param("hasIds") String hasIds, @Param("tenantId") String tenantId);
|
|
|
|
|
|
- @Select("UPDATE aps_process_operation set LOCKMARK=null where LOCKMARK='y' and DELETED='0' and " +
|
|
|
+ @Update("UPDATE aps_process_operation set LOCKMARK=null where LOCKMARK='y' and DELETED='0' and " +
|
|
|
"BLANKID in (SELECT ID FROM aps_blank_order where DELETED='0' and SCHEDULINGSTATUS='10' and ID in (${hasIds}))")
|
|
|
void setLockMarkNullByToAps(@Param("hasIds") String hasIds);
|
|
|
|
|
|
- @Update("delete from aps_process_operation_process_equ where BLANKID in (${blankids}) and (CANCELROLL is null or CANCELROLL<PLANPROCESSRALL)")
|
|
|
+ @Delete("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}) " +
|
|
|
+ @Update("UPDATE aps_process_operation_process_equ set LOCKMARK='n' where DELETED='0' and BLANKID in (${hasIds}) " +
|
|
|
"and (LOCKMARKDETAIL is null or LOCKMARKDETAIL != 'y')")
|
|
|
void setProDetailLockMark(@Param("hasIds") String hasIds);
|
|
|
|