add:手持盘点确认

This commit is contained in:
zhangzq
2025-09-09 16:12:55 +08:00
parent 08e7c87012
commit 2727e5424f
3 changed files with 26 additions and 3 deletions

View File

@@ -86,6 +86,8 @@ public class PadLargeMaterialBoxServiceImpl implements PdaLargeMaterialBoxServic
private IStIvtMoveinvService iStIvtMoveinvService;
@Autowired
private IMdPbMeasureunitService iMdPbMeasureunitService;
@Autowired
private IStIvtCheckmstService iStIvtCheckmstService;
@Override
@Transactional(rollbackFor = Exception.class)
@@ -574,6 +576,23 @@ public class PadLargeMaterialBoxServiceImpl implements PdaLargeMaterialBoxServic
@Override
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();
}
@@ -799,4 +818,4 @@ public class PadLargeMaterialBoxServiceImpl implements PdaLargeMaterialBoxServic
data.put("ivt_qty", storagevehicleext == null ? 0 : storagevehicleext.getCanuse_qty());
return PdaResponse.requestParamOk(data);
}
}
}

View File

@@ -86,9 +86,9 @@
LEFT JOIN md_cs_supplierbase sb ON sb.supp_code = gp.supp_code
<where>
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
mst.check_code = #{reqParam.bill_code}
mst.check_code = #{bill_code}
</if>
</where>
ORDER BY mst.input_time,dtl.seq_no ASC

View File

@@ -155,6 +155,10 @@ public class StIvtCheckmstServiceImpl extends ServiceImpl<StIvtCheckmstMapper, S
@Transactional
public void dtlCheckConfirm(StIvtCheckdtl dao) {
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());
// 是否异常 1-正常 2-异常
dtlDao.setCheck_result(