feat: 手持空载具入库
This commit is contained in:
@@ -43,6 +43,12 @@ public class PdaCommonController {
|
||||
public ResponseEntity<Object> getSectList(@RequestBody JSONObject whereJson) {
|
||||
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")
|
||||
@Log("物料组袋-确认组袋")
|
||||
@SaIgnore
|
||||
|
||||
@@ -34,4 +34,11 @@ public interface PdaCommonService {
|
||||
* @return
|
||||
*/
|
||||
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.warehouse_management.enums.IOSEnum;
|
||||
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.dao.GroupPlate;
|
||||
import org.redisson.api.RLock;
|
||||
@@ -44,6 +45,8 @@ public class PdaCommonServiceImpl implements PdaCommonService {
|
||||
@Resource
|
||||
private VehicleOutService vehicleOutService;
|
||||
@Resource
|
||||
private VehicleInService vehicleInService;
|
||||
@Resource
|
||||
private IStructattrService iStructattrService;
|
||||
@Resource
|
||||
private ISchBaseTaskService taskService;
|
||||
@@ -156,7 +159,7 @@ public class PdaCommonServiceImpl implements PdaCommonService {
|
||||
|
||||
@Override
|
||||
public PdaResponse confirmPalletAssembly(AssemblyPalletParam param) {
|
||||
// storagevehicleinfoService.getByCode(param.getVehicle_code());
|
||||
storagevehicleinfoService.getByCode(param.getVehicle_code());
|
||||
List<GroupPlate> groupPlates = param.getGroup_plates();
|
||||
for (GroupPlate groupPlate : groupPlates) {
|
||||
groupPlate.setVehicle_code(param.getVehicle_code());
|
||||
@@ -165,4 +168,11 @@ public class PdaCommonServiceImpl implements PdaCommonService {
|
||||
groupplateService.updateBatchById(groupPlates);
|
||||
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