|
|
|
@ -120,9 +120,9 @@ public class SDEnregyServiceImpl extends SDEnregyServiceAbstract { |
|
|
|
|
for (int i = 0; i < mdmGmfxxtbReqBOS.size(); i++) { |
|
|
|
|
MdmGmfxxtbReqBO tempMdmGmfxxtbReqBO = mdmGmfxxtbReqBOS.get(i); |
|
|
|
|
BuyerEntity entity = new BuyerEntity(); |
|
|
|
|
|
|
|
|
|
DecimalFormat g=new DecimalFormat("0000000000"); |
|
|
|
|
String code = g.format(Integer.valueOf(tempMdmGmfxxtbReqBO.getCODE())); |
|
|
|
|
String code = String.format("%10s",tempMdmGmfxxtbReqBO.getCODE()).replace(" ","0"); |
|
|
|
|
// DecimalFormat g=new DecimalFormat("0000000000");
|
|
|
|
|
// String code = g.format(Integer.valueOf(tempMdmGmfxxtbReqBO.getCODE()));
|
|
|
|
|
tempMdmGmfxxtbReqBO.setCODE(code); |
|
|
|
|
BuyerEntity queryBuyerEntity = new BuyerEntity(); |
|
|
|
|
queryBuyerEntity.setBuyerCode(tempMdmGmfxxtbReqBO.getCODE()); |
|
|
|
@ -213,6 +213,13 @@ 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()); |
|
|
|
|
buyerEntity.setPurchaseName(tempMdmGmfxxtbReqBO.getDESC1()); |
|
|
|
@ -310,8 +317,9 @@ public class SDEnregyServiceImpl extends SDEnregyServiceAbstract { |
|
|
|
|
CommodityCodeEntity commodityCodeEntity = new CommodityCodeEntity(); |
|
|
|
|
commodityCodeEntity.setWlflbm(reqBO.getCATEGORYCODE()); |
|
|
|
|
// 1.先去所有子公司库中匹配税编,以第一条为准;如果未匹配到,再去根据物料编码匹配
|
|
|
|
|
DecimalFormat g=new DecimalFormat("000000000000000000"); |
|
|
|
|
String code = g.format(Integer.valueOf(reqBO.getCODE())); |
|
|
|
|
// DecimalFormat g=new DecimalFormat("000000000000000000");
|
|
|
|
|
// String code = g.format(Integer.valueOf(reqBO.getCODE()));
|
|
|
|
|
String code = String.format("%18s",reqBO.getCODE()).replace(" ","0"); |
|
|
|
|
reqBO.setCODE(code); |
|
|
|
|
List<CommodityCodeEntity> commodityCodeEntities = commodityMapper.queryByCommoditySpbmCompany(reqBO.getCODE()); |
|
|
|
|
if(commodityCodeEntities != null && commodityCodeEntities.size() > 0){ |
|
|
|
|