Commit 9b57150dfcbad67160a0b59af6ea4a517d5e594e
Merge branch 'master_cj_zq' into master_sample_order
Showing
3 changed files
with
17 additions
and
0 deletions
| ... | ... | @@ -583,6 +583,11 @@ public class PurchaseOrderInfoServiceImpl extends BaseMpServiceImpl<PurchaseOrde |
| 583 | 583 | Assert.greaterThanZero(pageSize); |
| 584 | 584 | vo.setFreeze(true); |
| 585 | 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 | 591 | List<PurchaseOrderInfo> datas = getBaseMapper().query(vo); |
| 587 | 592 | if (CollectionUtils.isNotEmpty(datas)) { |
| 588 | 593 | List<String> ids = datas.stream() | ... | ... |
| ... | ... | @@ -135,4 +135,10 @@ public class QueryPurchaseOrderInfoVo extends PageVo implements BaseVo, Serializ |
| 135 | 135 | */ |
| 136 | 136 | @ApiModelProperty("排除主键集合") |
| 137 | 137 | private List<String> excludeIds; |
| 138 | + | |
| 139 | + /** | |
| 140 | + * 状态集合 | |
| 141 | + */ | |
| 142 | + @ApiModelProperty("状态集合") | |
| 143 | + private List<String> includeStatus; | |
| 138 | 144 | } | ... | ... |
| ... | ... | @@ -183,6 +183,12 @@ |
| 183 | 183 | #{id} |
| 184 | 184 | </foreach> |
| 185 | 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 | 192 | </where> |
| 187 | 193 | ORDER BY tb.update_time DESC |
| 188 | 194 | </select> | ... | ... |