10/24 bug优化1.0

panjc_field_management
wangwei 9 months ago
parent e5fd1d64f9
commit d5f3142c43

@ -2194,8 +2194,12 @@ public class IoCodeTempController extends BaseController {
//扫码数量-1 //扫码数量-1
int orderCount = orderDetailCodeEntity.getCount(); int orderCount = orderDetailCodeEntity.getCount();
orderDetailCodeEntity.setCount(orderCount - count); orderDetailCodeEntity.setCount(orderCount - count);
int reCount;
int reCount = count * udiCalCountUtil.getActCount(codeTempEntity.getNameCode()); if (bussinessTypeEntity.isUse()) {
reCount = count * udiCalCountUtil.getUseActCount(udiRelevanceResponses.get(0));
} else {
reCount = count * udiCalCountUtil.getCirActCount(udiRelevanceResponses.get(0));
}
orderDetailCodeEntity.setReCount(IntUtil.value(orderDetailCodeEntity.getReCount()) - reCount); orderDetailCodeEntity.setReCount(IntUtil.value(orderDetailCodeEntity.getReCount()) - reCount);
ioOrderDetailCodeService.update(orderDetailCodeEntity); ioOrderDetailCodeService.update(orderDetailCodeEntity);
} }

@ -432,6 +432,10 @@ public class IoOrderController extends BaseController {
if (fifoCodeEntity == null && StrUtil.isEmpty(fifoCodeEntity.getSerialNo())) { if (fifoCodeEntity == null && StrUtil.isEmpty(fifoCodeEntity.getSerialNo())) {
return ResultVOUtils.error(500, "当前追溯码:" + fifoCodeEntity.getCode() + "未上货!"); return ResultVOUtils.error(500, "当前追溯码:" + fifoCodeEntity.getCode() + "未上货!");
} }
//校验工位库存
if (fifoCodeEntity.getTotalCount() < codeTempEntity.getReCount()){
return ResultVOUtils.error(500, "当前码:库存不足!");
}
} }
} }

@ -70,4 +70,5 @@ public class PurOrderDetailResponse {
private String packUnit; private String packUnit;
private String prepnSpec; private String prepnSpec;
private String prepnUnit; private String prepnUnit;
} }

@ -148,10 +148,6 @@ public class IoCollectOrderService extends ServiceImpl<IoCollectOrderMapper, IoC
SpGetHttpClient spGetHttpClient; SpGetHttpClient spGetHttpClient;
public IoCollectOrder getByBillNo(String billNo) { public IoCollectOrder getByBillNo(String billNo) {
return collectOrderMapper.selectOne(new LambdaQueryWrapper<IoCollectOrder>().eq(IoCollectOrder::getBillNo, billNo).last("limit 1")); return collectOrderMapper.selectOne(new LambdaQueryWrapper<IoCollectOrder>().eq(IoCollectOrder::getBillNo, billNo).last("limit 1"));
} }
@ -320,6 +316,7 @@ public class IoCollectOrderService extends ServiceImpl<IoCollectOrderMapper, IoC
.orderCirType(sysWorkplaceDocumentEntity.getOrderCirType()) .orderCirType(sysWorkplaceDocumentEntity.getOrderCirType())
.splitStatus(0) .splitStatus(0)
.tagStatus(1) .tagStatus(1)
.remark(ioOrderEntity.getRemark())
.build(); .build();
if (collectOrder.getWorkPlaceCode() != null) { if (collectOrder.getWorkPlaceCode() != null) {
collectOrder.setTagStatus(1); collectOrder.setTagStatus(1);

@ -1517,7 +1517,6 @@ public class HeartService {
orderEntity.setProcessStatus(ConstantStatus.ORDER_DEAL_POST); orderEntity.setProcessStatus(ConstantStatus.ORDER_DEAL_POST);
orderEntity.setOrderType(ConstantStatus.ORDER_TYPE_SCAN); orderEntity.setOrderType(ConstantStatus.ORDER_TYPE_SCAN);
orderEntity.setStatus(ConstantStatus.ORDER_STATUS_CHECK_REW); orderEntity.setStatus(ConstantStatus.ORDER_STATUS_CHECK_REW);
//todo 单据备注没有传过来需要自助那边改掉
orderEntity.setId(null); orderEntity.setId(null);
orderService.insertOrder(orderEntity); orderService.insertOrder(orderEntity);
insetOrderDb(syncDataResponse, orderEntity); insetOrderDb(syncDataResponse, orderEntity);

@ -25,6 +25,7 @@
pur_apply_detail.*, pur_apply_detail.*,
basic_products.nameCode nameCode, basic_products.nameCode nameCode,
basic_products.ggxh spec, basic_products.ggxh spec,
basic_products.packUnit,
basic_products.manufactory, basic_products.manufactory,
basic_products.ylqxzcrbarmc, basic_products.ylqxzcrbarmc,
basic_products.spmc, basic_products.spmc,
@ -204,6 +205,6 @@
</if> </if>
and (pur_apply.status = 3 or saf.status = 3) and (pur_apply.status = 3 or saf.status = 3)
</where> </where>
GROUP BY basic_products.uuid # GROUP BY basic_products.uuid
</select> </select>
</mapper> </mapper>

Loading…
Cancel
Save