Browse Source

查询添加车间修改

master
shenzhouyu 1 month ago
parent
commit
3a22992d08
  1. 4
      src/main/java/com/xujie/sys/modules/orderIssure/entity/SOIssueNotifyOrderMaterialListData.java
  2. 13
      src/main/resources/mapper/orderIssure/IssureNotifyMapper.xml

4
src/main/java/com/xujie/sys/modules/orderIssure/entity/SOIssueNotifyOrderMaterialListData.java

@ -9,6 +9,7 @@ import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
@EqualsAndHashCode(callSuper = true)
@Data
@ -48,6 +49,8 @@ public class SOIssueNotifyOrderMaterialListData extends SOIssueNotifyOrderMateri
private String userName;
private String userDisplay;
// 申请日期
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date notifyDate;
// 车间
private String workShopName;
@ -55,6 +58,7 @@ public class SOIssueNotifyOrderMaterialListData extends SOIssueNotifyOrderMateri
private String endDate;
// 分页参数
List<String> workShopList;
private Integer page = 1;
private Integer limit = 100;

13
src/main/resources/mapper/orderIssure/IssureNotifyMapper.xml

@ -445,6 +445,18 @@ RecordVersion,OutWorkOrderFlag,ProjectID,OrderType,AuthRuleID,bu)
<if test="query.endDate != null">
AND #{query.endDate} <![CDATA[>=]]> h.NotifyDate
</if>
<choose>
<when test="query.workShopList != null and query.workShopList.size >0">
AND w.WorkShopId IN (
<foreach collection="query.workShopList" item="item" separator=",">
#{item}
</foreach>
)
</when>
<otherwise>
AND w.WorkShopId in ('WS005','WS006')
</otherwise>
</choose>
</where>
ORDER BY m.NotifyNo, o.needDate, m.ItemNo
</select>
@ -497,6 +509,7 @@ RecordVersion,OutWorkOrderFlag,ProjectID,OrderType,AuthRuleID,bu)
AND m.timeout_reason is null
AND h.Status = '已下达'
AND (h.confirm_status = '未确认' OR h.confirm_status IS NULL)
AND w.WorkShopId in ('WS005','WS006')
</where>
ORDER BY m.NotifyNo, o.needDate, m.ItemNo

Loading…
Cancel
Save