Commit 9b57150dfcbad67160a0b59af6ea4a517d5e594e

Authored by 房远帅
2 parents a9a8705e cce1bef5

Merge branch 'master_cj_zq' into master_sample_order

@@ -583,6 +583,11 @@ public class PurchaseOrderInfoServiceImpl extends BaseMpServiceImpl<PurchaseOrde @@ -583,6 +583,11 @@ public class PurchaseOrderInfoServiceImpl extends BaseMpServiceImpl<PurchaseOrde
583 Assert.greaterThanZero(pageSize); 583 Assert.greaterThanZero(pageSize);
584 vo.setFreeze(true); 584 vo.setFreeze(true);
585 PageHelperUtil.startPage(pageIndex, pageSize); 585 PageHelperUtil.startPage(pageIndex, pageSize);
  586 + List<String> includeStatus = new ArrayList<>();
  587 + includeStatus.add("ISSUED");
  588 + includeStatus.add("WAIT");
  589 + includeStatus.add("TRANSIT");
  590 + vo.setIncludeStatus(includeStatus);
586 List<PurchaseOrderInfo> datas = getBaseMapper().query(vo); 591 List<PurchaseOrderInfo> datas = getBaseMapper().query(vo);
587 if (CollectionUtils.isNotEmpty(datas)) { 592 if (CollectionUtils.isNotEmpty(datas)) {
588 List<String> ids = datas.stream() 593 List<String> ids = datas.stream()
@@ -135,4 +135,10 @@ public class QueryPurchaseOrderInfoVo extends PageVo implements BaseVo, Serializ @@ -135,4 +135,10 @@ public class QueryPurchaseOrderInfoVo extends PageVo implements BaseVo, Serializ
135 */ 135 */
136 @ApiModelProperty("排除主键集合") 136 @ApiModelProperty("排除主键集合")
137 private List<String> excludeIds; 137 private List<String> excludeIds;
  138 +
  139 + /**
  140 + * 状态集合
  141 + */
  142 + @ApiModelProperty("状态集合")
  143 + private List<String> includeStatus;
138 } 144 }
@@ -183,6 +183,12 @@ @@ -183,6 +183,12 @@
183 #{id} 183 #{id}
184 </foreach> 184 </foreach>
185 </if> 185 </if>
  186 + <if test="vo.includeStatus != null and !vo.includeStatus.isEmpty()">
  187 + AND tb.status IN
  188 + <foreach collection="vo.includeStatus" item="status" open="(" separator="," close=")">
  189 + #{status}
  190 + </foreach>
  191 + </if>
186 </where> 192 </where>
187 ORDER BY tb.update_time DESC 193 ORDER BY tb.update_time DESC
188 </select> 194 </select>