add:手持盘点确认
This commit is contained in:
@@ -86,6 +86,8 @@ public class PadLargeMaterialBoxServiceImpl implements PdaLargeMaterialBoxServic
|
|||||||
private IStIvtMoveinvService iStIvtMoveinvService;
|
private IStIvtMoveinvService iStIvtMoveinvService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private IMdPbMeasureunitService iMdPbMeasureunitService;
|
private IMdPbMeasureunitService iMdPbMeasureunitService;
|
||||||
|
@Autowired
|
||||||
|
private IStIvtCheckmstService iStIvtCheckmstService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
@@ -574,6 +576,23 @@ public class PadLargeMaterialBoxServiceImpl implements PdaLargeMaterialBoxServic
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PdaResponse materialBoxInventoryConfirm(JSONObject reqParam) {
|
public PdaResponse materialBoxInventoryConfirm(JSONObject reqParam) {
|
||||||
|
/**
|
||||||
|
* {
|
||||||
|
* "check_id": "CHK202312150001", --盘点单id
|
||||||
|
* "check_code": "CHECK-20231215-001", --盘点单据号
|
||||||
|
* "checkdtl_id": "CHKDTL202312150001", --盘点单明细ID
|
||||||
|
* "check_result": "1", --状态
|
||||||
|
* "material_id": "M1001", --物料id
|
||||||
|
* "material_code": "MAT-001", --物料编码
|
||||||
|
* "material_name": "304不锈钢板材", --物料名称
|
||||||
|
* "struct_code": "WH-A-01-001", --点位
|
||||||
|
* "storagevehicle_code": "PALLET-001", --载具
|
||||||
|
* "pcsn": "SN202312150001", --批号
|
||||||
|
* "base_qty": 50, --库存数量
|
||||||
|
* "fac_qty": 48 -- 盘点数量
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
iStIvtCheckmstService.dtlCheckConfirm(JSONObject.toJavaObject(reqParam,StIvtCheckdtl.class));
|
||||||
return PdaResponse.requestOk();
|
return PdaResponse.requestOk();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -86,9 +86,9 @@
|
|||||||
LEFT JOIN md_cs_supplierbase sb ON sb.supp_code = gp.supp_code
|
LEFT JOIN md_cs_supplierbase sb ON sb.supp_code = gp.supp_code
|
||||||
<where>
|
<where>
|
||||||
mst.is_delete = '0'AND mst.status != '99'
|
mst.is_delete = '0'AND mst.status != '99'
|
||||||
<if test="reqParam.bill_code != null and reqParam.bill_code != ''">
|
<if test="bill_code != null and bill_code != ''">
|
||||||
AND
|
AND
|
||||||
mst.check_code = #{reqParam.bill_code}
|
mst.check_code = #{bill_code}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
ORDER BY mst.input_time,dtl.seq_no ASC
|
ORDER BY mst.input_time,dtl.seq_no ASC
|
||||||
|
|||||||
@@ -155,6 +155,10 @@ public class StIvtCheckmstServiceImpl extends ServiceImpl<StIvtCheckmstMapper, S
|
|||||||
@Transactional
|
@Transactional
|
||||||
public void dtlCheckConfirm(StIvtCheckdtl dao) {
|
public void dtlCheckConfirm(StIvtCheckdtl dao) {
|
||||||
StIvtCheckdtl dtlDao = iStIvtCheckdtlService.getById(dao.getCheckdtl_id());
|
StIvtCheckdtl dtlDao = iStIvtCheckdtlService.getById(dao.getCheckdtl_id());
|
||||||
|
String dtlVehicle = dtlDao.getStoragevehicle_code();
|
||||||
|
if (!dtlVehicle.equals(dao.getStoragevehicle_code())){
|
||||||
|
throw new BadRequestException("扫码托盘不属于当前盘点当");
|
||||||
|
}
|
||||||
dtlDao.setFac_qty(dao.getFac_qty());
|
dtlDao.setFac_qty(dao.getFac_qty());
|
||||||
// 是否异常 1-正常 2-异常
|
// 是否异常 1-正常 2-异常
|
||||||
dtlDao.setCheck_result(
|
dtlDao.setCheck_result(
|
||||||
|
|||||||
Reference in New Issue
Block a user