feat: 全部分配

This commit is contained in:
2025-06-20 09:52:45 +08:00
parent d1183097c4
commit da39877815
3 changed files with 28 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ package org.nl.wms.st.outbill.rest;
import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.nl.b_lms.storage_manage.ios.enums.IOSEnum;
import org.nl.b_lms.storage_manage.ios.service.iostorInv.IStIvtIostorinvOutService;
import org.nl.common.TableDataInfo;
import org.nl.common.domain.query.PageQuery;
@@ -17,6 +18,7 @@ import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.Map;
/**
* 出库单管理
@@ -72,4 +74,15 @@ public class CheckOutBillController {
public ResponseEntity<Object> getInvTypes() {
return new ResponseEntity<>(dictService.getInvTypes(), HttpStatus.OK);
}
@GetMapping("/getOutBillDis2")
@Log("查询未出库单分配")
public ResponseEntity<Object> getOutBillDis2(@RequestParam Map whereJson) {
return new ResponseEntity<>(checkOutBillService.getOutBillDis2(whereJson), HttpStatus.OK);
}
@PostMapping("/allDiv")
@Log("出库单全部分配")
public ResponseEntity<Object> allDiv(@RequestBody JSONObject whereJson) {
iStIvtIostorinvOutService.allDiv(whereJson);
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
}
}

View File

@@ -14,6 +14,7 @@ import org.nl.wms.st.outbill.service.vo.OutBillTaskVo;
import org.nl.wms.st.outbill.service.vo.StockMaterialVo;
import java.util.List;
import java.util.Map;
/**
* @Author: lyd
@@ -50,4 +51,6 @@ public interface CheckOutBillService {
* @return
*/
JSONArray queryBox(JSONObject whereJson);
JSONArray getOutBillDis2(Map whereJson);
}

View File

@@ -29,8 +29,10 @@ import org.nl.wms.stat.service.vo.PastStructPageVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
/**
* @Author: lyd
@@ -125,4 +127,14 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
}
return array;
}
@Override
public JSONArray getOutBillDis2(Map whereJson) {
whereJson.put("flag", "52");
JSONArray jo = WQL.getWO("QST_IVT_CHECKOUTBILL")
.addParamMap((HashMap) whereJson)
.process()
.getResultJSONArray(0);
return jo;
}
}