|
|
|
@ -213,12 +213,6 @@ public class SDEnregyServiceImpl extends SDEnregyServiceAbstract { |
|
|
|
|
return AjaxResult.success("success", respStr); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
|
|
DecimalFormat g=new DecimalFormat("0000000000"); |
|
|
|
|
|
|
|
|
|
String code = String.format("%10s","60121A").replace(" ","0"); |
|
|
|
|
System.out.println(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private static void structureBuyerEntity(BuyerEntity buyerEntity,MdmGmfxxtbReqBO tempMdmGmfxxtbReqBO){ |
|
|
|
|
buyerEntity.setTaxpayerCode(tempMdmGmfxxtbReqBO.getDESC14()); |
|
|
|
@ -323,6 +317,7 @@ public class SDEnregyServiceImpl extends SDEnregyServiceAbstract { |
|
|
|
|
reqBO.setCODE(code); |
|
|
|
|
List<CommodityCodeEntity> commodityCodeEntities = commodityMapper.queryByCommoditySpbmCompany(reqBO.getCODE()); |
|
|
|
|
List<CommodityCodeEntity> collect = commodityCodeEntities.stream().filter(t -> "-1".equals(t.getXhfNsrsbh())).collect(Collectors.toList()); |
|
|
|
|
String ggxh = StringUtils.isNotBlank(reqBO.getDESCSHORT())&& reqBO.getDESCSHORT().contains("_")? reqBO.getDESCSHORT().substring(reqBO.getDESCSHORT().indexOf("_") + 1) : ""; |
|
|
|
|
if(collect != null && collect.size() > 0){ |
|
|
|
|
matchCommodityCode(commodityCodeEntity); |
|
|
|
|
commodityCodeEntity.setXmmc(reqBO.getDESC1()); |
|
|
|
@ -330,6 +325,7 @@ public class SDEnregyServiceImpl extends SDEnregyServiceAbstract { |
|
|
|
|
commodityCodeEntity.setXmdw(reqBO.getDESC5()); |
|
|
|
|
commodityCodeEntity.setCreateTime(new Date()); |
|
|
|
|
commodityCodeEntity.setBz(reqBO.getDESCSHORT()); |
|
|
|
|
commodityCodeEntity.setGgxh(ggxh); |
|
|
|
|
commodityCodeEntity.setUUID(reqBO.getUUID()); |
|
|
|
|
commodityCodeEntity.setWlflbm(reqBO.getCATEGORYCODE()); |
|
|
|
|
if(StringUtils.isNotBlank(reqBO.getCATEGORYNAME())){ |
|
|
|
@ -356,6 +352,7 @@ public class SDEnregyServiceImpl extends SDEnregyServiceAbstract { |
|
|
|
|
commodityCodeEntity.setCreateTime(new Date()); |
|
|
|
|
commodityCodeEntity.setBz(reqBO.getDESCSHORT()); |
|
|
|
|
commodityCodeEntity.setUUID(reqBO.getUUID()); |
|
|
|
|
commodityCodeEntity.setGgxh(ggxh); |
|
|
|
|
commodityCodeEntity.setWlflbm(reqBO.getCATEGORYCODE()); |
|
|
|
|
if(StringUtils.isNotBlank(reqBO.getCATEGORYNAME())){ |
|
|
|
|
commodityCodeEntity.setWlflmc(reqBO.getCATEGORYNAME()); |
|
|
|
@ -387,7 +384,6 @@ public class SDEnregyServiceImpl extends SDEnregyServiceAbstract { |
|
|
|
|
} |
|
|
|
|
return list; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 根据规则进行物料匹配 |
|
|
|
|
* |
|
|
|
|