25 changed files with 413 additions and 178 deletions
@ -0,0 +1,52 @@ |
|||||
|
package org.nl.wms.pda_manage.ios_manage.controller; |
||||
|
|
||||
|
|
||||
|
import cn.dev33.satoken.annotation.SaIgnore; |
||||
|
import com.alibaba.fastjson.JSONObject; |
||||
|
import lombok.RequiredArgsConstructor; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.nl.common.logging.annotation.Log; |
||||
|
import org.nl.wms.pda_manage.ios_manage.service.PdaMoveStorService; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.http.HttpStatus; |
||||
|
import org.springframework.http.ResponseEntity; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import static org.nl.common.utils.ValidationUtil.assertNotBlankJson; |
||||
|
|
||||
|
/** |
||||
|
* 手持入库管理 |
||||
|
* |
||||
|
* @author Liuxy |
||||
|
* @since 2025-06-06 |
||||
|
*/ |
||||
|
@RestController |
||||
|
@RequiredArgsConstructor |
||||
|
@RequestMapping("/api/pda/movestor") |
||||
|
@Slf4j |
||||
|
@SaIgnore |
||||
|
public class PdaMoveStorController { |
||||
|
|
||||
|
@Autowired |
||||
|
private PdaMoveStorService pdaMoveStorService; |
||||
|
|
||||
|
|
||||
|
@PostMapping("/move") |
||||
|
@Log("移库确认") |
||||
|
public ResponseEntity<Object> move(@RequestBody JSONObject whereJson) { |
||||
|
return new ResponseEntity<>(pdaMoveStorService.move(whereJson),HttpStatus.OK); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 组盘入库获取物料明细 |
||||
|
*/ |
||||
|
@PostMapping("/querydtl") |
||||
|
@Log("组盘入库获取物料明细") |
||||
|
public ResponseEntity<Object> querydtl(@RequestBody JSONObject whereJson) { |
||||
|
return new ResponseEntity<>(pdaMoveStorService.querydtl(whereJson),HttpStatus.OK); |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,33 @@ |
|||||
|
package org.nl.wms.pda_manage.ios_manage.service; |
||||
|
|
||||
|
import com.alibaba.fastjson.JSONObject; |
||||
|
import org.nl.wms.pda_manage.util.PdaResponse; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* <p> |
||||
|
* 手持IOS 服务类 |
||||
|
* </p> |
||||
|
* |
||||
|
* @author Liuxy |
||||
|
* @since 2025-06-05 |
||||
|
*/ |
||||
|
public interface PdaMoveStorService { |
||||
|
|
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 组盘确认 |
||||
|
* @return PdaResponse |
||||
|
*/ |
||||
|
PdaResponse move(JSONObject whereJson); |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 查询组盘物料明细 |
||||
|
* |
||||
|
* @return PdaResponse |
||||
|
*/ |
||||
|
List<JSONObject> querydtl(JSONObject whereJson); |
||||
|
} |
@ -0,0 +1,38 @@ |
|||||
|
package org.nl.wms.pda_manage.ios_manage.service.impl; |
||||
|
|
||||
|
import cn.hutool.core.util.ObjectUtil; |
||||
|
import com.alibaba.fastjson.JSONObject; |
||||
|
import org.nl.wms.pda_manage.ios_manage.service.PdaMoveStorService; |
||||
|
import org.nl.wms.pda_manage.util.PdaResponse; |
||||
|
import org.nl.wms.warehouse_manage.service.dao.mapper.MdPbGroupplateMapper; |
||||
|
import org.nl.wms.warehouse_manage.service.dao.mapper.StIvtMoveinvdtlMapper; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import javax.annotation.Resource; |
||||
|
import java.util.*; |
||||
|
|
||||
|
|
||||
|
@Service |
||||
|
public class PdaMoveStorServiceImpl implements PdaMoveStorService { |
||||
|
|
||||
|
@Resource |
||||
|
private StIvtMoveinvdtlMapper stIvtMoveinvdtlMapper; |
||||
|
|
||||
|
@Override |
||||
|
public PdaResponse move(JSONObject whereJson) { |
||||
|
// 移出货位编码
|
||||
|
String struct_code = whereJson.getString("struct_code"); |
||||
|
// 载具号
|
||||
|
String vehicle_code = whereJson.getString("vehicle_code"); |
||||
|
// 移入货位
|
||||
|
String move_struct_code = whereJson.getString("move_struct_code"); |
||||
|
|
||||
|
return PdaResponse.requestOk(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public List<JSONObject> querydtl(JSONObject whereJson) { |
||||
|
return stIvtMoveinvdtlMapper.querydtl(whereJson); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue