单据再次出库

dengbao
anthonywj 2 years ago
parent 4a40fa99dd
commit e266ae4e7b

@ -193,8 +193,9 @@ public class UdiContrastController {
productInfoService.insertProductInfos(productInfoEntityList);
newUuid = productInfoEntityList.get(0).getUuid();
}
} else {
return ResultVOUtils.error(500, "实时获取国家库数据失败!");
}
udiInfoEntities = udiDlHttpClient.getUdiByUuid(newUuid);
udiProductService.deleteByUuid(udiCombineRequest.getUuid());
for (UdiProductEntity udiProductEntity : udiInfoEntities) {

@ -2,6 +2,7 @@ package com.glxp.api.http;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil;
import com.glxp.api.constant.ConstantStatus;
import com.glxp.api.entity.basic.ProductInfoEntity;
import com.glxp.api.entity.basic.UdiProductEntity;
@ -33,7 +34,8 @@ public class NmpaUdiClient {
productInfoFilterRequest.setPage(1);
productInfoFilterRequest.setLimit(100);
productInfoFilterRequest.setUuid(uuid);
if (StrUtil.isEmpty(uuid))
return null;
List<ProductInfoEntity> productInfoEntityList = productInfoService.findAll(productInfoFilterRequest);
List<UdiProductEntity> udiInfoEntities = new ArrayList<>();
String myUuid = UuidUtils.getUUId();

@ -154,6 +154,7 @@ public class IoAddInoutService {
} else {
orderEntity.setStatus(ConstantStatus.ORDER_STATS_ERROR);
orderEntity.setUpdateTime(new Date());
orderEntity.setErrMsg(result);
orderService.update(orderEntity);
insertList.clear();
return;
@ -682,7 +683,10 @@ public class IoAddInoutService {
int count = 0;
if (filterList != null) {
for (IoCodeTempEntity temp : filterList) {
if (temp.getCode().equals(codeEntity.getCode())) {
if (temp.getCode().equals(codeEntity.getCode())
&& StrUtil.trimToEmpty(temp.getSerialNo()).equals(StrUtil.trimToEmpty(codeEntity.getSerialNo()))
&& StrUtil.trimToEmpty(temp.getInBatchNo()).equals(StrUtil.trimToEmpty(codeEntity.getInBatchNo()))
) {
count = count + 1;
}
}
@ -693,7 +697,6 @@ public class IoAddInoutService {
return null;
}
public String checkOriginCode(IoCodeTempEntity warehouseEntity) {
UdiEntity udiEntity = FilterUdiUtils.getUdi(warehouseEntity.getCode());

@ -16,7 +16,7 @@
qxlb, tyshxydm, zczbhhzbapzbh,
ylqxzcrbarmc, ylqxzcrbarywmc, updateTime,
supName, model, `standard`,
qtbm, zczyxqz, relId, type)
qtbm, zczyxqz, relId, type, deviceRecordKey)
values
<foreach collection="list" index="index" item="item" separator=",">
(#{item.uuid},
@ -25,6 +25,8 @@
#{item.auditTime},
#{item.remark},
#{item.auditUser},
#{item.status},
#{item.thirdSysFk},
#{item.code},
@ -41,7 +43,8 @@
, #{item.name}, #{item.spec}, #{item.registerNo}, #{item.cplb}
, #{item.flbm}, #{item.qxlb}, #{item.tyshxydm}, #{item.zczbhhzbapzbh}
, #{item.ylqxzcrbarmc}, #{item.ylqxzcrbarywmc}, #{item.updateTime}, #{item.supName}, #{item.model}
, #{item.standard}, #{item.qtbm}, #{item.standard}, #{item.zczyxqz}, #{item.type})
, #{item.standard}, #{item.qtbm}, #{item.standard}, #{item.zczyxqz}, #{item.type},
#{item.deviceRecordKey})
</foreach>
</insert>

Loading…
Cancel
Save