|
@@ -31,11 +31,11 @@ public interface ApsBlankOrderDao extends BaseMapper<ApsBlankOrderDo> {
|
|
|
List<ApsBlankOrderVo> getByOrderId(@Param("orderId") String orderId);
|
|
|
|
|
|
@Select("select a.*,b.DELIVERYDATE from aps_blank_order a LEFT JOIN aps_production_order b on a.PRODUCTIONORDERID=b.ID " +
|
|
|
- "where (a.LOCKMARK is null or a.LOCKMARK='n') and a.DELETED='0' and b.DELETED='0' and b.SCHEDULSTATUS='待发布' and a.ID not in (${hasIds})")
|
|
|
+ "where (a.LOCKMARK is null or a.LOCKMARK='n') and a.DELETED='0' and b.DELETED='0' and b.PRODUCTIONSTATUS='20' and a.ID not in (${hasIds})")
|
|
|
List<ApsBlankOrderVo> getFbNotLock(@Param("hasIds") String hasIds);
|
|
|
|
|
|
@Select("select a.*,b.DELIVERYDATE from aps_blank_order a LEFT JOIN aps_production_order b on a.PRODUCTIONORDERID=b.ID " +
|
|
|
- "where b.SCHEDULSTATUS='待发布' and (a.LOCKMARK='n' or a.LOCKMARK is null) and a.DELETED='0' and b.DELETED='0' and b.TENANTID = #{tenantId}")
|
|
|
+ "where b.PRODUCTIONSTATUS='20' and (a.LOCKMARK='n' or a.LOCKMARK is null) and a.DELETED='0' and b.DELETED='0' and b.TENANTID = #{tenantId}")
|
|
|
List<ApsBlankOrderVo> getNotLockOrders(@Param("tenantId") String tenantId);
|
|
|
|
|
|
@Update("update aps_blank_order set CRAFTROUTEID = #{craftrouteid} where ID=#{blankId} ")
|