代码更新

This commit is contained in:
ludj
2022-12-23 14:24:05 +08:00
parent 7c20ee7d2b
commit a2dae50e5d
6 changed files with 23 additions and 7 deletions

View File

@@ -27,6 +27,7 @@ public class CallMaterialController {
@PostMapping("/queryPoint") @PostMapping("/queryPoint")
@Log("查询区域点位") @Log("查询区域点位")
@ApiOperation("查询区域点位") @ApiOperation("查询区域点位")
@SaIgnore
public ResponseEntity<Object> queryPoint() { public ResponseEntity<Object> queryPoint() {
return new ResponseEntity<>(callMaterialService.queryPoint(), HttpStatus.OK); return new ResponseEntity<>(callMaterialService.queryPoint(), HttpStatus.OK);
} }
@@ -34,6 +35,7 @@ public class CallMaterialController {
@PostMapping("/confirm") @PostMapping("/confirm")
@Log("叫料确定") @Log("叫料确定")
@ApiOperation("叫料确定") @ApiOperation("叫料确定")
@SaIgnore
public ResponseEntity<Object> confirm(@RequestBody JSONObject whereJson) { public ResponseEntity<Object> confirm(@RequestBody JSONObject whereJson) {
return new ResponseEntity<>(callMaterialService.confirm(whereJson), HttpStatus.OK); return new ResponseEntity<>(callMaterialService.confirm(whereJson), HttpStatus.OK);
} }

View File

@@ -28,6 +28,7 @@ public class CallVehicleController {
@PostMapping("/queryPoint") @PostMapping("/queryPoint")
@Log("查询区域点位") @Log("查询区域点位")
@ApiOperation("查询区域点位") @ApiOperation("查询区域点位")
@SaIgnore
public ResponseEntity<Object> queryPoint() { public ResponseEntity<Object> queryPoint() {
return new ResponseEntity<>(callVehicleService.queryPoint(), HttpStatus.OK); return new ResponseEntity<>(callVehicleService.queryPoint(), HttpStatus.OK);
} }
@@ -35,6 +36,7 @@ public class CallVehicleController {
@PostMapping("/confirm") @PostMapping("/confirm")
@Log("呼叫空托盘确定") @Log("呼叫空托盘确定")
@ApiOperation("呼叫空托盘确定") @ApiOperation("呼叫空托盘确定")
@SaIgnore
public ResponseEntity<Object> confirm(@RequestBody JSONObject whereJson) { public ResponseEntity<Object> confirm(@RequestBody JSONObject whereJson) {
return new ResponseEntity<>(callVehicleService.confirm(whereJson), HttpStatus.OK); return new ResponseEntity<>(callVehicleService.confirm(whereJson), HttpStatus.OK);
} }

View File

@@ -27,6 +27,7 @@ public class SendMaterialController {
@PostMapping("/queryPoint") @PostMapping("/queryPoint")
@Log("查询区域点位") @Log("查询区域点位")
@ApiOperation("查询区域点位") @ApiOperation("查询区域点位")
@SaIgnore
public ResponseEntity<Object> queryPoint() { public ResponseEntity<Object> queryPoint() {
return new ResponseEntity<>(sendMaterialService.queryPoint(), HttpStatus.OK); return new ResponseEntity<>(sendMaterialService.queryPoint(), HttpStatus.OK);
} }
@@ -34,6 +35,7 @@ public class SendMaterialController {
@PostMapping("/confirm") @PostMapping("/confirm")
@Log("送料确定") @Log("送料确定")
@ApiOperation("送料确定") @ApiOperation("送料确定")
@SaIgnore
public ResponseEntity<Object> confirm(@RequestBody JSONObject whereJson) { public ResponseEntity<Object> confirm(@RequestBody JSONObject whereJson) {
return new ResponseEntity<>(sendMaterialService.confirm(whereJson), HttpStatus.OK); return new ResponseEntity<>(sendMaterialService.confirm(whereJson), HttpStatus.OK);
} }

View File

@@ -29,7 +29,7 @@ public class SendMaterialServiceImpl implements SendMaterialService {
JSONObject resultJson = new JSONObject(); JSONObject resultJson = new JSONObject();
for (int i = 0; i < regionArr.size(); i++) { for (int i = 0; i < regionArr.size(); i++) {
JSONObject jsonRegion = regionArr.getJSONObject(i); JSONObject jsonRegion = regionArr.getJSONObject(i);
JSONArray pointArr = WQL.getWO("PDA_SENDMATERIAL_01").addParam("flag", "2").addParam("region_id", jsonRegion.getString("region_id")).process().getResultJSONArray(0); JSONArray pointArr = WQL.getWO("PDA_SENDMATERIAL_01").addParam("flag", "2").addParam("region_code", jsonRegion.getString("region_code")).process().getResultJSONArray(0);
jsonRegion.put("pointArr", pointArr); jsonRegion.put("pointArr", pointArr);
} }
resultJson.put("regionja", regionArr); resultJson.put("regionja", regionArr);
@@ -43,7 +43,7 @@ public class SendMaterialServiceImpl implements SendMaterialService {
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public JSONObject confirm(JSONObject whereJson) { public JSONObject confirm(JSONObject whereJson) {
JSONObject result = new JSONObject(); JSONObject result = new JSONObject();
// 1、准备参数point_code、type2为共挤区域8为豪凯区域 // 1、准备参数point_code、type2为共挤区域8为豪凯区域,7为油漆线满料
JSONObject param = new JSONObject(); JSONObject param = new JSONObject();
String region_id = whereJson.getString("region_id"); String region_id = whereJson.getString("region_id");
@@ -51,6 +51,7 @@ public class SendMaterialServiceImpl implements SendMaterialService {
String region_code = jsonObject.getString("region_code"); String region_code = jsonObject.getString("region_code");
if (StrUtil.equals(region_code, "GJQY01")) param.put("type", "2"); if (StrUtil.equals(region_code, "GJQY01")) param.put("type", "2");
if (StrUtil.equals(region_code, "HKQY01")) param.put("type", "8"); if (StrUtil.equals(region_code, "HKQY01")) param.put("type", "8");
if (StrUtil.equals(region_code, "YQQY01")) param.put("type", "7");
param.put("point_code", whereJson.getString("point_code")); param.put("point_code", whereJson.getString("point_code"));
param.put("material_num", whereJson.getString("qty")); param.put("material_num", whereJson.getString("qty"));

View File

@@ -15,6 +15,7 @@
################################################# #################################################
输入.flag TYPEAS s_string 输入.flag TYPEAS s_string
输入.region_id TYPEAS s_string 输入.region_id TYPEAS s_string
输入.region_code TYPEAS s_string
[临时表] [临时表]
--这边列出来的临时表就会在运行期动态创建 --这边列出来的临时表就会在运行期动态创建
@@ -47,7 +48,7 @@
FROM FROM
sch_base_region sch_base_region
WHERE WHERE
region_code in ('HKQY01','GJQY01') region_code in ('HKQY01','GJQY01','YQQY01')
ENDSELECT ENDSELECT
ENDQUERY ENDQUERY
@@ -64,11 +65,17 @@
WHERE WHERE
is_used = '1' is_used = '1'
AND is_delete = '0' AND is_delete = '0'
AND point_type = '3' OPTION 输入.region_code = "YQQY01"
point_type = '4'
OPTION 输入.region_id <> ""
region_id = 输入.region_id
ENDOPTION ENDOPTION
OPTION 输入.region_code <> "YQQY01"
point_type = '3'
ENDOPTION
OPTION 输入.region_code <> ""
region_code = 输入.region_code
ENDOPTION
ENDSELECT ENDSELECT
ENDQUERY ENDQUERY

View File

@@ -29,6 +29,7 @@ public class SendVehicleController {
@PostMapping("/queryPoint") @PostMapping("/queryPoint")
@Log("查询区域点位") @Log("查询区域点位")
@ApiOperation("查询区域点位") @ApiOperation("查询区域点位")
@SaIgnore
public ResponseEntity<Object> queryPoint() { public ResponseEntity<Object> queryPoint() {
return new ResponseEntity<>(sendVehicleService.queryPoint(), HttpStatus.OK); return new ResponseEntity<>(sendVehicleService.queryPoint(), HttpStatus.OK);
} }
@@ -36,6 +37,7 @@ public class SendVehicleController {
@PostMapping("/confirm") @PostMapping("/confirm")
@Log("送空托盘确定") @Log("送空托盘确定")
@ApiOperation("送空托盘确定") @ApiOperation("送空托盘确定")
@SaIgnore
public ResponseEntity<Object> confirm(@RequestBody JSONObject whereJson) { public ResponseEntity<Object> confirm(@RequestBody JSONObject whereJson) {
return new ResponseEntity<>(sendVehicleService.confirm(whereJson), HttpStatus.OK); return new ResponseEntity<>(sendVehicleService.confirm(whereJson), HttpStatus.OK);
} }