feat: 原版分配任务查看

This commit is contained in:
2025-06-20 11:01:43 +08:00
parent da39877815
commit bcf6ffe93c
4 changed files with 30 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
package org.nl.b_lms.storage_manage.ios.service.iostorInv;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import org.nl.b_lms.storage_manage.ios.service.iostorInv.dao.StIvtIostorinv;
@@ -81,7 +82,6 @@ public interface IStIvtIostorinvOutService extends IService<StIvtIostorinv> {
*/
void allDiv(JSONObject whereJson);
/**
* 手工分配
* @param whereJson{

View File

@@ -85,4 +85,9 @@ public class CheckOutBillController {
iStIvtIostorinvOutService.allDiv(whereJson);
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
}
@GetMapping("/getOutBillTask")
@Log("查询出库单分配任务")
public ResponseEntity<Object> getOutBillTask(@RequestParam Map whereJson) {
return new ResponseEntity<>(checkOutBillService.getOutBillTask(whereJson), HttpStatus.OK);
}
}

View File

@@ -53,4 +53,12 @@ public interface CheckOutBillService {
JSONArray queryBox(JSONObject whereJson);
JSONArray getOutBillDis2(Map whereJson);
/**
* 查询出库单分配任务
*
* @param whereJson /
* @return
*/
JSONArray getOutBillTask(Map whereJson);
}

View File

@@ -137,4 +137,20 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
.getResultJSONArray(0);
return jo;
}
@Override
public JSONArray getOutBillTask(Map whereJson) {
HashMap<String, String> map = new HashMap<>(whereJson);
map.put("flag", "10");
if ("true".equals(map.get("checked"))) {
map.put("task_status", "99");
}
JSONArray jo = new JSONArray();
if (map.containsKey("iostorinvdtl_id")) {
jo = WQL.getWO("QST_IVT_CHECKOUTBILL")
.addParamMap(map)
.process()
.getResultJSONArray(0);
}
return jo;
}
}