Commit 6800f45434b0b877be3e4e0d86626c0192c7d564

Authored by 房远帅
1 parent 72926a0a

资金协调手续:查询冻结的订货单列表-增加筛选条件

@@ -171,6 +171,12 @@ public class GetFundCoordinationBo extends BaseBo<FundCoordination> { @@ -171,6 +171,12 @@ public class GetFundCoordinationBo extends BaseBo<FundCoordination> {
171 @ApiModelProperty("审核状态") 171 @ApiModelProperty("审核状态")
172 private String status; 172 private String status;
173 173
  174 + /**
  175 + * 订货单位主键集合
  176 + */
  177 + @ApiModelProperty("订货单位主键集合")
  178 + private List<String> orderingUnitIds;
  179 +
174 public GetFundCoordinationBo() { 180 public GetFundCoordinationBo() {
175 181
176 } 182 }
@@ -212,6 +212,7 @@ public class FundCoordinationController extends DefaultBaseController { @@ -212,6 +212,7 @@ public class FundCoordinationController extends DefaultBaseController {
212 Map<String, List<ReceiptLedgerInfo>> map = query.stream() 212 Map<String, List<ReceiptLedgerInfo>> map = query.stream()
213 .collect(Collectors.groupingBy(ReceiptLedgerInfo::getCustomerId)); 213 .collect(Collectors.groupingBy(ReceiptLedgerInfo::getCustomerId));
214 StringBuilder customerNameStr = new StringBuilder(); 214 StringBuilder customerNameStr = new StringBuilder();
  215 + List<String> orderingUnitIds = new ArrayList<>();
215 //无限担保书 216 //无限担保书
216 StringBuilder unlimitedGuaranteeLetterStr = new StringBuilder(); 217 StringBuilder unlimitedGuaranteeLetterStr = new StringBuilder();
217 //订货单位集合 218 //订货单位集合
@@ -232,6 +233,7 @@ public class FundCoordinationController extends DefaultBaseController { @@ -232,6 +233,7 @@ public class FundCoordinationController extends DefaultBaseController {
232 String customerId = entry.getKey(); 233 String customerId = entry.getKey();
233 List<ReceiptLedgerInfo> receiptList = entry.getValue(); 234 List<ReceiptLedgerInfo> receiptList = entry.getValue();
234 customerNameStr.append(receiptList.get(0).getCustomerName()).append("、"); 235 customerNameStr.append(receiptList.get(0).getCustomerName()).append("、");
  236 + orderingUnitIds.add(customerId);
235 //无限担保书 237 //无限担保书
236 QueryUnlimitedGuaranteeLetterVo vo1 = new QueryUnlimitedGuaranteeLetterVo(); 238 QueryUnlimitedGuaranteeLetterVo vo1 = new QueryUnlimitedGuaranteeLetterVo();
237 vo1.setOrderingUnit(customerId); 239 vo1.setOrderingUnit(customerId);
@@ -329,6 +331,8 @@ public class FundCoordinationController extends DefaultBaseController { @@ -329,6 +331,8 @@ public class FundCoordinationController extends DefaultBaseController {
329 customerNameStr.deleteCharAt(customerNameStr.length() - 1); 331 customerNameStr.deleteCharAt(customerNameStr.length() - 1);
330 } 332 }
331 getFundCoordinationBo.setOrderingUnitName(customerNameStr.toString()); 333 getFundCoordinationBo.setOrderingUnitName(customerNameStr.toString());
  334 + //订货单位IDs
  335 + getFundCoordinationBo.setOrderingUnitIds(orderingUnitIds);
332 //无限担保书 336 //无限担保书
333 if (unlimitedGuaranteeLetterStr.length() > 0) { 337 if (unlimitedGuaranteeLetterStr.length() > 0) {
334 unlimitedGuaranteeLetterStr.deleteCharAt(unlimitedGuaranteeLetterStr.length() - 1); 338 unlimitedGuaranteeLetterStr.deleteCharAt(unlimitedGuaranteeLetterStr.length() - 1);
@@ -385,7 +389,7 @@ public class FundCoordinationController extends DefaultBaseController { @@ -385,7 +389,7 @@ public class FundCoordinationController extends DefaultBaseController {
385 */ 389 */
386 @ApiOperation("查询冻结的订货单列表") 390 @ApiOperation("查询冻结的订货单列表")
387 @GetMapping("/queryFreeze") 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 PageResult<PurchaseOrderInfo> pageResult = purchaseOrderInfoService.queryFreeze(getPageIndex(vo), getPageSize(vo), vo); 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,6 +5,7 @@ import com.lframework.starter.web.core.vo.PageVo;
5 import com.lframework.starter.web.core.vo.BaseVo; 5 import com.lframework.starter.web.core.vo.BaseVo;
6 import io.swagger.annotations.ApiModelProperty; 6 import io.swagger.annotations.ApiModelProperty;
7 import java.io.Serializable; 7 import java.io.Serializable;
  8 +import java.util.List;
8 9
9 @Data 10 @Data
10 public class QueryPurchaseOrderInfoVo extends PageVo implements BaseVo, Serializable { 11 public class QueryPurchaseOrderInfoVo extends PageVo implements BaseVo, Serializable {
@@ -116,4 +117,16 @@ public class QueryPurchaseOrderInfoVo extends PageVo implements BaseVo, Serializ @@ -116,4 +117,16 @@ public class QueryPurchaseOrderInfoVo extends PageVo implements BaseVo, Serializ
116 */ 117 */
117 @ApiModelProperty("是否冻结") 118 @ApiModelProperty("是否冻结")
118 private boolean freeze; 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,6 +164,18 @@
164 <if test="vo.contractId != null and vo.contractId != ''"> 164 <if test="vo.contractId != null and vo.contractId != ''">
165 AND tb.contract_id = #{vo.contractId} 165 AND tb.contract_id = #{vo.contractId}
166 </if> 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 </where> 179 </where>
168 ORDER BY tb.update_time DESC 180 ORDER BY tb.update_time DESC
169 </select> 181 </select>