Showing
4 changed files
with
36 additions
and
1 deletions
| ... | ... | @@ -171,6 +171,12 @@ public class GetFundCoordinationBo extends BaseBo<FundCoordination> { |
| 171 | 171 | @ApiModelProperty("审核状态") |
| 172 | 172 | private String status; |
| 173 | 173 | |
| 174 | + /** | |
| 175 | + * 订货单位主键集合 | |
| 176 | + */ | |
| 177 | + @ApiModelProperty("订货单位主键集合") | |
| 178 | + private List<String> orderingUnitIds; | |
| 179 | + | |
| 174 | 180 | public GetFundCoordinationBo() { |
| 175 | 181 | |
| 176 | 182 | } | ... | ... |
xingyun-sc/src/main/java/com/lframework/xingyun/sc/controller/ledger/FundCoordinationController.java
| ... | ... | @@ -212,6 +212,7 @@ public class FundCoordinationController extends DefaultBaseController { |
| 212 | 212 | Map<String, List<ReceiptLedgerInfo>> map = query.stream() |
| 213 | 213 | .collect(Collectors.groupingBy(ReceiptLedgerInfo::getCustomerId)); |
| 214 | 214 | StringBuilder customerNameStr = new StringBuilder(); |
| 215 | + List<String> orderingUnitIds = new ArrayList<>(); | |
| 215 | 216 | //无限担保书 |
| 216 | 217 | StringBuilder unlimitedGuaranteeLetterStr = new StringBuilder(); |
| 217 | 218 | //订货单位集合 |
| ... | ... | @@ -232,6 +233,7 @@ public class FundCoordinationController extends DefaultBaseController { |
| 232 | 233 | String customerId = entry.getKey(); |
| 233 | 234 | List<ReceiptLedgerInfo> receiptList = entry.getValue(); |
| 234 | 235 | customerNameStr.append(receiptList.get(0).getCustomerName()).append("、"); |
| 236 | + orderingUnitIds.add(customerId); | |
| 235 | 237 | //无限担保书 |
| 236 | 238 | QueryUnlimitedGuaranteeLetterVo vo1 = new QueryUnlimitedGuaranteeLetterVo(); |
| 237 | 239 | vo1.setOrderingUnit(customerId); |
| ... | ... | @@ -329,6 +331,8 @@ public class FundCoordinationController extends DefaultBaseController { |
| 329 | 331 | customerNameStr.deleteCharAt(customerNameStr.length() - 1); |
| 330 | 332 | } |
| 331 | 333 | getFundCoordinationBo.setOrderingUnitName(customerNameStr.toString()); |
| 334 | + //订货单位IDs | |
| 335 | + getFundCoordinationBo.setOrderingUnitIds(orderingUnitIds); | |
| 332 | 336 | //无限担保书 |
| 333 | 337 | if (unlimitedGuaranteeLetterStr.length() > 0) { |
| 334 | 338 | unlimitedGuaranteeLetterStr.deleteCharAt(unlimitedGuaranteeLetterStr.length() - 1); |
| ... | ... | @@ -385,7 +389,7 @@ public class FundCoordinationController extends DefaultBaseController { |
| 385 | 389 | */ |
| 386 | 390 | @ApiOperation("查询冻结的订货单列表") |
| 387 | 391 | @GetMapping("/queryFreeze") |
| 388 | - public InvokeResult<PageResult<GetPurchaseOrderInfoBo>> queryFreeze(@Valid QueryPurchaseOrderInfoVo vo) { | |
| 392 | + public InvokeResult<PageResult<GetPurchaseOrderInfoBo>> queryFreeze(@Valid @RequestBody QueryPurchaseOrderInfoVo vo) { | |
| 389 | 393 | |
| 390 | 394 | PageResult<PurchaseOrderInfo> pageResult = purchaseOrderInfoService.queryFreeze(getPageIndex(vo), getPageSize(vo), vo); |
| 391 | 395 | ... | ... |
| ... | ... | @@ -5,6 +5,7 @@ import com.lframework.starter.web.core.vo.PageVo; |
| 5 | 5 | import com.lframework.starter.web.core.vo.BaseVo; |
| 6 | 6 | import io.swagger.annotations.ApiModelProperty; |
| 7 | 7 | import java.io.Serializable; |
| 8 | +import java.util.List; | |
| 8 | 9 | |
| 9 | 10 | @Data |
| 10 | 11 | public class QueryPurchaseOrderInfoVo extends PageVo implements BaseVo, Serializable { |
| ... | ... | @@ -116,4 +117,16 @@ public class QueryPurchaseOrderInfoVo extends PageVo implements BaseVo, Serializ |
| 116 | 117 | */ |
| 117 | 118 | @ApiModelProperty("是否冻结") |
| 118 | 119 | private boolean freeze; |
| 120 | + | |
| 121 | + /** | |
| 122 | + * 订货单位主键集合 | |
| 123 | + */ | |
| 124 | + @ApiModelProperty("订货单位主键集合") | |
| 125 | + private List<String> orderingUnitIds; | |
| 126 | + | |
| 127 | + /** | |
| 128 | + * 排除主键集合 | |
| 129 | + */ | |
| 130 | + @ApiModelProperty("排除主键集合") | |
| 131 | + private List<String> excludeIds; | |
| 119 | 132 | } | ... | ... |
| ... | ... | @@ -164,6 +164,18 @@ |
| 164 | 164 | <if test="vo.contractId != null and vo.contractId != ''"> |
| 165 | 165 | AND tb.contract_id = #{vo.contractId} |
| 166 | 166 | </if> |
| 167 | + <if test="vo.orderingUnitIds != null and !vo.orderingUnitIds.isEmpty()"> | |
| 168 | + AND tb.ordering_unit IN | |
| 169 | + <foreach collection="vo.orderingUnitIds" item="orderingUnit" open="(" separator="," close=")"> | |
| 170 | + #{orderingUnit} | |
| 171 | + </foreach> | |
| 172 | + </if> | |
| 173 | + <if test="vo.excludeIds != null and !vo.excludeIds.isEmpty()"> | |
| 174 | + AND tb.id NOT IN | |
| 175 | + <foreach collection="vo.excludeIds" item="id" open="(" separator="," close=")"> | |
| 176 | + #{id} | |
| 177 | + </foreach> | |
| 178 | + </if> | |
| 167 | 179 | </where> |
| 168 | 180 | ORDER BY tb.update_time DESC |
| 169 | 181 | </select> | ... | ... |