基础信息导入导出,bug修复

master
anthonyywj2 3 years ago
parent 111c1fb990
commit f8fea9717d

@ -166,7 +166,7 @@ public class FilterUdiUtils {
udi = udi.substring(1); udi = udi.substring(1);
for (int i = 0; i < spilts.length; i++) { for (int i = 0; i < spilts.length; i++) {
String tempStr = spilts[i]; String tempStr = spilts[i];
if (tempStr != null && tempStr.length() > 1 && tempStr.substring(0, 1).equals("P")) { if (tempStr != null && tempStr.length() > 1 && tempStr.substring(0, 1).equals("M")) {
produceDate = tempStr.substring(1); produceDate = tempStr.substring(1);
} else if (tempStr != null && tempStr.length() > 1 && tempStr.substring(0, 1).equals("L")) { } else if (tempStr != null && tempStr.length() > 1 && tempStr.substring(0, 1).equals("L")) {
batchNo = tempStr.substring(1); batchNo = tempStr.substring(1);

@ -169,11 +169,10 @@
<insert id="importBasicUnitMaintain" keyProperty="id"> <insert id="importBasicUnitMaintain" keyProperty="id">
REPLACE REPLACE
INTO basic_corp INTO basic_corp
(id, thirdId, erpId, name, spell, ( thirdId, erpId, name, spell,
addr, status, type, creditNo, contact, mobile, thirdId1, thirdId2, thirdId3, thirdId4, addr, status, type, creditNo, contact, mobile, thirdId1, thirdId2, thirdId3, thirdId4,
thirdName, thirdName1, thirdName2, thirdName3, thirdName4, updateTime, corpType) thirdName, thirdName1, thirdName2, thirdName3, thirdName4, updateTime, corpType)
values ( values (
#{id},
#{thirdId}, #{thirdId},
#{erpId}, #{erpId},
#{name}, #{name},

@ -120,13 +120,14 @@
<insert id="insertUdiInfo" keyProperty="id" parameterType="com.glxp.sale.admin.entity.basic.UdiInfoEntity"> <insert id="insertUdiInfo" keyProperty="id" parameterType="com.glxp.sale.admin.entity.basic.UdiInfoEntity">
replace replace
INTO basic_products INTO basic_products
( (id,
nameCode,packRatio,packLevel,bhxjsl, nameCode,packRatio,packLevel,bhxjsl,
bhzxxsbzsl,zxxsbzbhsydysl,bhxjcpbm,bzcj,addType,deviceRecordKey, bhzxxsbzsl,zxxsbzbhsydysl,bhxjcpbm,bzcj,addType,deviceRecordKey,
cpmctymc,cplb,flbm,ggxh,qxlb,tyshxydm,ylqxzcrbarmc,zczbhhzbapzbh,ylqxzcrbarywmc,uuid,sjcpbm,versionNumber cpmctymc,cplb,flbm,ggxh,qxlb,tyshxydm,ylqxzcrbarmc,zczbhhzbapzbh,ylqxzcrbarywmc,uuid,sjcpbm,versionNumber
,diType,productType,scbssfbhph,scbssfbhxlh,scbssfbhscrq,scbssfbhsxrq) ,diType,productType,scbssfbhph,scbssfbhxlh,scbssfbhscrq,scbssfbhsxrq)
values values
( (
#{id},
#{nameCode}, #{nameCode},
#{packRatio}, #{packRatio},
#{packLevel}, #{packLevel},

@ -265,13 +265,14 @@
parameterType="com.glxp.sale.admin.entity.basic.UdiRelevanceEntity"> parameterType="com.glxp.sale.admin.entity.basic.UdiRelevanceEntity">
replace replace
INTO basic_udirel INTO basic_udirel
( (id,
thirdId,thirdName,uuid,isUseDy,updateTime, thirdId,thirdName,uuid,isUseDy,updateTime,
thirdId1,thirdId2,thirdId3,thirdId4,thirdName1,thirdName2,thirdName3,thirdName4,manufactory,measname,ybbm,sptm,isDisable,isLock thirdId1,thirdId2,thirdId3,thirdId4,thirdName1,thirdName2,thirdName3,thirdName4,manufactory,measname,ybbm,sptm,isDisable,isLock
,mainId,mainName,lockStatus,udplatCode,isAdavence ,mainId,mainName,lockStatus,udplatCode,isAdavence
) )
values values
( (
#{id},
#{thirdId}, #{thirdId},
#{thirdName}, #{thirdName},
#{uuid}, #{uuid},

Loading…
Cancel
Save