feature:无物料编码的情况,在开票后存储物料编码自定义生成18位物料编码

release
gaorl 2 years ago
parent 81eb078d16
commit fd62a414f6
  1. 5
      order-management-base-service/src/main/java/com/dxhy/order/baseservice/module/commodity/service/impl/CommodityServiceImpl.java

@ -615,14 +615,15 @@ public class CommodityServiceImpl implements CommodityService {
CommodityCodeCheckQuery commodityCodeCheckQuery = new CommodityCodeCheckQuery();
commodityCodeCheckQuery.setXmmc(xmmc);
commodityCodeCheckQuery.setZxbm(receiveSpxxReq.getZxbm());
String zxbm = StringUtils.isNotBlank(receiveSpxxReq.getZxbm()) ? receiveSpxxReq.getZxbm() : baseService.getGenerateShotKey();
commodityCodeCheckQuery.setZxbm(zxbm);
commodityCodeCheckQuery.setGgxh(receiveSpxxReq.getGgxh());
commodityCodeCheckQuery.setXmdw(receiveSpxxReq.getXmdw());
commodityCodeCheckQuery.setXmdj(receiveSpxxReq.getXmdj());
commodityCodeCheckQuery.setSl(receiveSpxxReq.getSl());
commodityCodeCheckQuery.setDeptId(receiveSpxxReq.getEntId());
Map<String,String> map = new HashMap<>();
map.put("zxbm", receiveSpxxReq.getZxbm());
map.put("zxbm",zxbm);
map.put("entId",receiveSpxxReq.getEntId());
log.debug("{}校验名称是否存在 参数:{}", LOGGER_MSG, map);

Loading…
Cancel
Save