物料同步
This commit is contained in:
parent
47048f6468
commit
276f2cc6e6
|
@ -276,12 +276,22 @@ public class ZjMaterielSynchronizationEventServiceImpl extends BaseService<ZjMat
|
|||
//物料编码
|
||||
InventoryEntity inventoryEntity = new InventoryEntity();
|
||||
//设置全部字段属性
|
||||
if("修改".equals(entity.getField0018code())){
|
||||
InventoryEntity queryCz = new InventoryEntity();
|
||||
queryCz.setDataSourceCode(zju8);
|
||||
queryCz.setcInvCode(entity.getField0005());
|
||||
List<InventoryEntity> queryCzList = inventoryDao.query(queryCz);
|
||||
if(queryCzList != null && queryCzList.size() > 0){
|
||||
BeanUtils.copyProperties(inventoryEntity,queryCzList.get(0));
|
||||
}
|
||||
}else {
|
||||
for (int i1 = 0; i1 < inventoryEntities.size(); i1++) {
|
||||
if(inventoryEntities.get(i1).getcInvCode().equals(entity.getField0043code())){
|
||||
BeanUtils.copyProperties(inventoryEntity,inventoryEntities.get(i1));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
entity.setField0005(wlcode.toString());
|
||||
//定制化字段
|
||||
inventoryEntity.setDataSourceCode(zju8);
|
||||
|
@ -299,7 +309,7 @@ public class ZjMaterielSynchronizationEventServiceImpl extends BaseService<ZjMat
|
|||
//inventoryEntity.setcInvCCode(entity.getField0008code());// todo 品牌
|
||||
//inventoryEntity.setcInvCCode(entity.getField0034code());// todo 客户名
|
||||
//inventoryEntity.setcInvCCode(entity.getField0017code());// todo 工艺属性
|
||||
inventoryEntity.setcDefWareHouse(entity.getField0040code());// 仓库名称(值需要转换)
|
||||
inventoryEntity.setcDefWareHouse(entity.getField0040code());// 仓库名称
|
||||
//inventoryEntity.setcInvCCode(entity.getField0012code());// todo 优选等级
|
||||
//inventoryEntity.setbSrvItem(entity.getField0039());// todo 开发号(值需要转换)
|
||||
//inventoryEntity.setcInvCCode(entity.getField0042code());// todo 物料属性
|
||||
|
|
|
@ -2416,7 +2416,6 @@
|
|||
<if test="cInvDefine1 != null and cInvDefine1 !='' "> cInvDefine1 = #{cInvDefine1},</if>
|
||||
<if test="cInvDefine2 != null and cInvDefine2 !='' "> cInvDefine2 = #{cInvDefine2},</if>
|
||||
<if test="cInvDefine3 != null and cInvDefine3 !='' "> cInvDefine3 = #{cInvDefine3},</if>
|
||||
<if test="I_id != null ">I_id = #{I_id},</if>
|
||||
<if test="bInvType != null and bInvType !='' "> bInvType = #{bInvType},</if>
|
||||
<if test="iInvMPCost != null ">iInvMPCost = #{iInvMPCost},</if>
|
||||
<if test="cQuality != null and cQuality !='' "> cQuality = #{cQuality},</if>
|
||||
|
|
Loading…
Reference in New Issue