feat: 手持空载具入库
This commit is contained in:
@@ -43,6 +43,12 @@ public class PdaCommonController {
|
|||||||
public ResponseEntity<Object> getSectList(@RequestBody JSONObject whereJson) {
|
public ResponseEntity<Object> getSectList(@RequestBody JSONObject whereJson) {
|
||||||
return new ResponseEntity<>(pdaCommonService.getSectList(whereJson), HttpStatus.OK);
|
return new ResponseEntity<>(pdaCommonService.getSectList(whereJson), HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
@PostMapping("/inEmptyVehicle")
|
||||||
|
@Log("空载具入库-呼叫入库")
|
||||||
|
@SaIgnore
|
||||||
|
public ResponseEntity<Object> inEmptyVehicle(@RequestBody JSONObject whereJson) {
|
||||||
|
return new ResponseEntity<>(pdaCommonService.inEmptyVehicle(whereJson), HttpStatus.OK);
|
||||||
|
}
|
||||||
@PostMapping("/confirmBagAssembly")
|
@PostMapping("/confirmBagAssembly")
|
||||||
@Log("物料组袋-确认组袋")
|
@Log("物料组袋-确认组袋")
|
||||||
@SaIgnore
|
@SaIgnore
|
||||||
|
|||||||
@@ -34,4 +34,11 @@ public interface PdaCommonService {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
PdaResponse confirmPalletAssembly(AssemblyPalletParam param);
|
PdaResponse confirmPalletAssembly(AssemblyPalletParam param);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 空托盘入库
|
||||||
|
* @param param
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
PdaResponse inEmptyVehicle(JSONObject param);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ import org.nl.wms.sch_manage.service.dao.SchBaseTask;
|
|||||||
import org.nl.wms.sch_manage.service.util.tasks.EmpVehicleOutTask;
|
import org.nl.wms.sch_manage.service.util.tasks.EmpVehicleOutTask;
|
||||||
import org.nl.wms.warehouse_management.enums.IOSEnum;
|
import org.nl.wms.warehouse_management.enums.IOSEnum;
|
||||||
import org.nl.wms.warehouse_management.service.IMdPbGroupplateService;
|
import org.nl.wms.warehouse_management.service.IMdPbGroupplateService;
|
||||||
|
import org.nl.wms.warehouse_management.service.VehicleInService;
|
||||||
import org.nl.wms.warehouse_management.service.VehicleOutService;
|
import org.nl.wms.warehouse_management.service.VehicleOutService;
|
||||||
import org.nl.wms.warehouse_management.service.dao.GroupPlate;
|
import org.nl.wms.warehouse_management.service.dao.GroupPlate;
|
||||||
import org.redisson.api.RLock;
|
import org.redisson.api.RLock;
|
||||||
@@ -44,6 +45,8 @@ public class PdaCommonServiceImpl implements PdaCommonService {
|
|||||||
@Resource
|
@Resource
|
||||||
private VehicleOutService vehicleOutService;
|
private VehicleOutService vehicleOutService;
|
||||||
@Resource
|
@Resource
|
||||||
|
private VehicleInService vehicleInService;
|
||||||
|
@Resource
|
||||||
private IStructattrService iStructattrService;
|
private IStructattrService iStructattrService;
|
||||||
@Resource
|
@Resource
|
||||||
private ISchBaseTaskService taskService;
|
private ISchBaseTaskService taskService;
|
||||||
@@ -156,7 +159,7 @@ public class PdaCommonServiceImpl implements PdaCommonService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PdaResponse confirmPalletAssembly(AssemblyPalletParam param) {
|
public PdaResponse confirmPalletAssembly(AssemblyPalletParam param) {
|
||||||
// storagevehicleinfoService.getByCode(param.getVehicle_code());
|
storagevehicleinfoService.getByCode(param.getVehicle_code());
|
||||||
List<GroupPlate> groupPlates = param.getGroup_plates();
|
List<GroupPlate> groupPlates = param.getGroup_plates();
|
||||||
for (GroupPlate groupPlate : groupPlates) {
|
for (GroupPlate groupPlate : groupPlates) {
|
||||||
groupPlate.setVehicle_code(param.getVehicle_code());
|
groupPlate.setVehicle_code(param.getVehicle_code());
|
||||||
@@ -165,4 +168,11 @@ public class PdaCommonServiceImpl implements PdaCommonService {
|
|||||||
groupplateService.updateBatchById(groupPlates);
|
groupplateService.updateBatchById(groupPlates);
|
||||||
return PdaResponse.requestOk("组盘成功!");
|
return PdaResponse.requestOk("组盘成功!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PdaResponse inEmptyVehicle(JSONObject param) {
|
||||||
|
log.info("手持请求空托盘入库:{}", param);
|
||||||
|
vehicleInService.create(param);
|
||||||
|
return PdaResponse.requestOk();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user