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.math.BigDecimal;
import java.util.Date; import java.util.Date;
import java.util.List;
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Data @Data
@ -48,6 +49,8 @@ public class SOIssueNotifyOrderMaterialListData extends SOIssueNotifyOrderMateri
private String userName; private String userName;
private String userDisplay; private String userDisplay;
// 申请日期 // 申请日期
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date notifyDate; private Date notifyDate;
// 车间 // 车间
private String workShopName; private String workShopName;
@ -55,6 +58,7 @@ public class SOIssueNotifyOrderMaterialListData extends SOIssueNotifyOrderMateri
private String endDate; private String endDate;
// 分页参数 // 分页参数
List<String> workShopList;
private Integer page = 1; private Integer page = 1;
private Integer limit = 100; 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"> <if test="query.endDate != null">
AND #{query.endDate} <![CDATA[>=]]> h.NotifyDate AND #{query.endDate} <![CDATA[>=]]> h.NotifyDate
</if> </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> </where>
ORDER BY m.NotifyNo, o.needDate, m.ItemNo ORDER BY m.NotifyNo, o.needDate, m.ItemNo
</select> </select>
@ -497,6 +509,7 @@ RecordVersion,OutWorkOrderFlag,ProjectID,OrderType,AuthRuleID,bu)
AND m.timeout_reason is null AND m.timeout_reason is null
AND h.Status = '已下达' AND h.Status = '已下达'
AND (h.confirm_status = '未确认' OR h.confirm_status IS NULL) AND (h.confirm_status = '未确认' OR h.confirm_status IS NULL)
AND w.WorkShopId in ('WS005','WS006')
</where> </where>
ORDER BY m.NotifyNo, o.needDate, m.ItemNo ORDER BY m.NotifyNo, o.needDate, m.ItemNo

Loading…
Cancel
Save