智业接口对接,第三方产品信息,仓库修改

fengcang
anthonyywj2 3 years ago
parent 36dd7ba530
commit 25886a0416

@ -164,9 +164,12 @@ public class InvWarehouseServiceImpl implements InvWarehouseService {
Object thirdId = ReflectUtil.getFieldValue(invWarehouseEntity, sys.getThirdId()); Object thirdId = ReflectUtil.getFieldValue(invWarehouseEntity, sys.getThirdId());
if (null != thirdId) { if (null != thirdId) {
ThrInvWarehouseEntity thrInvWarehouseEntity = thrInvWarehouseDao.selectByCode(String.valueOf(thirdId)); ThrInvWarehouseEntity thrInvWarehouseEntity = thrInvWarehouseDao.selectByCode(String.valueOf(thirdId));
if (thrInvWarehouseEntity != null) {
response.setThirdId(thrInvWarehouseEntity.getCode()); response.setThirdId(thrInvWarehouseEntity.getCode());
response.setThirdName(thrInvWarehouseEntity.getName()); response.setThirdName(thrInvWarehouseEntity.getName());
} }
}
result.add(response); result.add(response);
} else if (sys.getThirdId().equals("thirdId1")) { } else if (sys.getThirdId().equals("thirdId1")) {
InvWarehouseThirdSysResponse response = new InvWarehouseThirdSysResponse(); InvWarehouseThirdSysResponse response = new InvWarehouseThirdSysResponse();
@ -175,9 +178,11 @@ public class InvWarehouseServiceImpl implements InvWarehouseService {
Object thirdId = ReflectUtil.getFieldValue(invWarehouseEntity, sys.getThirdId()); Object thirdId = ReflectUtil.getFieldValue(invWarehouseEntity, sys.getThirdId());
if (null != thirdId) { if (null != thirdId) {
ThrInvWarehouseEntity thrInvWarehouseEntity = thrInvWarehouseDao.selectByCode(String.valueOf(thirdId)); ThrInvWarehouseEntity thrInvWarehouseEntity = thrInvWarehouseDao.selectByCode(String.valueOf(thirdId));
if (thrInvWarehouseEntity != null) {
response.setThirdId(thrInvWarehouseEntity.getCode()); response.setThirdId(thrInvWarehouseEntity.getCode());
response.setThirdName(thrInvWarehouseEntity.getName()); response.setThirdName(thrInvWarehouseEntity.getName());
} }
}
result.add(response); result.add(response);
} else if (sys.getThirdId().equals("thirdId2")) { } else if (sys.getThirdId().equals("thirdId2")) {
InvWarehouseThirdSysResponse response = new InvWarehouseThirdSysResponse(); InvWarehouseThirdSysResponse response = new InvWarehouseThirdSysResponse();
@ -186,9 +191,11 @@ public class InvWarehouseServiceImpl implements InvWarehouseService {
Object thirdId = ReflectUtil.getFieldValue(invWarehouseEntity, sys.getThirdId()); Object thirdId = ReflectUtil.getFieldValue(invWarehouseEntity, sys.getThirdId());
if (null != thirdId) { if (null != thirdId) {
ThrInvWarehouseEntity thrInvWarehouseEntity = thrInvWarehouseDao.selectByCode(String.valueOf(thirdId)); ThrInvWarehouseEntity thrInvWarehouseEntity = thrInvWarehouseDao.selectByCode(String.valueOf(thirdId));
if (thrInvWarehouseEntity != null) {
response.setThirdId(thrInvWarehouseEntity.getCode()); response.setThirdId(thrInvWarehouseEntity.getCode());
response.setThirdName(thrInvWarehouseEntity.getName()); response.setThirdName(thrInvWarehouseEntity.getName());
} }
}
result.add(response); result.add(response);
} else if (sys.getThirdId().equals("thirdId3")) { } else if (sys.getThirdId().equals("thirdId3")) {
InvWarehouseThirdSysResponse response = new InvWarehouseThirdSysResponse(); InvWarehouseThirdSysResponse response = new InvWarehouseThirdSysResponse();
@ -197,9 +204,11 @@ public class InvWarehouseServiceImpl implements InvWarehouseService {
Object thirdId = ReflectUtil.getFieldValue(invWarehouseEntity, sys.getThirdId()); Object thirdId = ReflectUtil.getFieldValue(invWarehouseEntity, sys.getThirdId());
if (null != thirdId) { if (null != thirdId) {
ThrInvWarehouseEntity thrInvWarehouseEntity = thrInvWarehouseDao.selectByCode(String.valueOf(thirdId)); ThrInvWarehouseEntity thrInvWarehouseEntity = thrInvWarehouseDao.selectByCode(String.valueOf(thirdId));
if (thrInvWarehouseEntity != null) {
response.setThirdId(thrInvWarehouseEntity.getCode()); response.setThirdId(thrInvWarehouseEntity.getCode());
response.setThirdName(thrInvWarehouseEntity.getName()); response.setThirdName(thrInvWarehouseEntity.getName());
} }
}
result.add(response); result.add(response);
} else if (sys.getThirdId().equals("thirdId4")) { } else if (sys.getThirdId().equals("thirdId4")) {
InvWarehouseThirdSysResponse response = new InvWarehouseThirdSysResponse(); InvWarehouseThirdSysResponse response = new InvWarehouseThirdSysResponse();
@ -208,9 +217,11 @@ public class InvWarehouseServiceImpl implements InvWarehouseService {
Object thirdId = ReflectUtil.getFieldValue(invWarehouseEntity, sys.getThirdId()); Object thirdId = ReflectUtil.getFieldValue(invWarehouseEntity, sys.getThirdId());
if (null != thirdId) { if (null != thirdId) {
ThrInvWarehouseEntity thrInvWarehouseEntity = thrInvWarehouseDao.selectByCode(String.valueOf(thirdId)); ThrInvWarehouseEntity thrInvWarehouseEntity = thrInvWarehouseDao.selectByCode(String.valueOf(thirdId));
if (thrInvWarehouseEntity != null) {
response.setThirdId(thrInvWarehouseEntity.getCode()); response.setThirdId(thrInvWarehouseEntity.getCode());
response.setThirdName(thrInvWarehouseEntity.getName()); response.setThirdName(thrInvWarehouseEntity.getName());
} }
}
result.add(response); result.add(response);
} }
} }

@ -119,7 +119,7 @@ public class ThrProductsDlService {
} }
int page = 1; int page = 1;
int limit = 100; int limit = 50;
while (page != -1) { while (page != -1) {
FilterErpGoodsRequest filterErpGoodsRequest = new FilterErpGoodsRequest(); FilterErpGoodsRequest filterErpGoodsRequest = new FilterErpGoodsRequest();
BeanUtils.copyProperties(filterThrProductsRequest, filterErpGoodsRequest); BeanUtils.copyProperties(filterThrProductsRequest, filterErpGoodsRequest);

@ -30,7 +30,7 @@
( (
code,name,measname,spec,registerNo,manufactory, code,name,measname,spec,registerNo,manufactory,
cplb,flbm,qxlb,ybbm,sptm,tyshxydm,zczbhhzbapzbh,ylqxzcrbarmc,ylqxzcrbarywmc,cpms, cplb,flbm,qxlb,ybbm,sptm,tyshxydm,zczbhhzbapzbh,ylqxzcrbarmc,ylqxzcrbarywmc,cpms,
thirdSysFk,updateTime ,genKeyFk ,supName ) thirdSysFk,updateTime ,genKeyFk ,supName,price )
values values
( (
#{code}, #{code},
@ -41,7 +41,7 @@
#{manufactory}, #{manufactory},
#{cplb}, #{flbm}, #{qxlb}, #{ybbm},#{sptm}, #{cplb}, #{flbm}, #{qxlb}, #{ybbm},#{sptm},
#{tyshxydm}, #{zczbhhzbapzbh}, #{ylqxzcrbarmc}, #{ylqxzcrbarywmc},#{cpms} #{tyshxydm}, #{zczbhhzbapzbh}, #{ylqxzcrbarmc}, #{ylqxzcrbarywmc},#{cpms}
#{thirdSysFk},#{updateTime},#{genKeyFk},#{supName} #{thirdSysFk},#{updateTime},#{genKeyFk},#{supName},#{price}
) )
</insert> </insert>
@ -50,7 +50,7 @@
( (
code,name,measname,spec,registerNo,manufactory, code,name,measname,spec,registerNo,manufactory,
cplb,flbm,qxlb,ybbm,sptm,tyshxydm,zczbhhzbapzbh,ylqxzcrbarmc,ylqxzcrbarywmc,cpms, cplb,flbm,qxlb,ybbm,sptm,tyshxydm,zczbhhzbapzbh,ylqxzcrbarmc,ylqxzcrbarywmc,cpms,
thirdSysFk ,updateTime ,genKeyFk,supName ) thirdSysFk ,updateTime ,genKeyFk,supName,price )
values values
<foreach collection="products" item="item" index="index" <foreach collection="products" item="item" index="index"
separator=","> separator=",">
@ -63,7 +63,7 @@
#{item.manufactory}, #{item.manufactory},
#{item.cplb}, #{item.flbm}, #{item.qxlb}, #{item.ybbm},#{item.sptm}, #{item.cplb}, #{item.flbm}, #{item.qxlb}, #{item.ybbm},#{item.sptm},
#{item.tyshxydm}, #{item.zczbhhzbapzbh}, #{item.ylqxzcrbarmc}, #{item.ylqxzcrbarywmc},#{item.cpms}, #{item.tyshxydm}, #{item.zczbhhzbapzbh}, #{item.ylqxzcrbarmc}, #{item.ylqxzcrbarywmc},#{item.cpms},
#{item.thirdSysFk} ,#{item.updateTime},#{item.genKeyFk} ,#{item.supName} ) #{item.thirdSysFk} ,#{item.updateTime},#{item.genKeyFk} ,#{item.supName} ,{item.price} )
</foreach> </foreach>
</insert> </insert>
<delete id="deleteById" parameterType="Map"> <delete id="deleteById" parameterType="Map">

Loading…
Cancel
Save