物料同步
This commit is contained in:
parent
2dabaf6403
commit
47048f6468
|
@ -39,7 +39,7 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<update id="entity_update" parameterType="com.hzya.frame.plugin.zjmaterielsynchronizationevent.entity.ZjMaterielSynchronizationEventEntity">
|
<update id="updatewlbm" parameterType="com.hzya.frame.plugin.zjmaterielsynchronizationevent.entity.ZjMaterielSynchronizationEventEntity">
|
||||||
update formson_0275 set
|
update formson_0275 set
|
||||||
<trim suffix="" suffixOverrides=",">
|
<trim suffix="" suffixOverrides=",">
|
||||||
<if test="field0005 != null and field0005 !='' ">field0005 =#{field0005},</if>
|
<if test="field0005 != null and field0005 !='' ">field0005 =#{field0005},</if>
|
||||||
|
|
|
@ -286,8 +286,9 @@ public class ZjMaterielSynchronizationEventServiceImpl extends BaseService<ZjMat
|
||||||
//定制化字段
|
//定制化字段
|
||||||
inventoryEntity.setDataSourceCode(zju8);
|
inventoryEntity.setDataSourceCode(zju8);
|
||||||
inventoryEntity.setAcc_name("UFDATA_999_2025.dbo.");
|
inventoryEntity.setAcc_name("UFDATA_999_2025.dbo.");
|
||||||
inventoryEntity.setCacc_id("999");
|
inventoryEntity.setCacc_id("025");
|
||||||
|
|
||||||
|
logger.error("物料编码"+wlcode);
|
||||||
//inventoryEntity.setAcc_name("UFDATA_998_2014.dbo.");
|
//inventoryEntity.setAcc_name("UFDATA_998_2014.dbo.");
|
||||||
//inventoryEntity.setCacc_id("998");
|
//inventoryEntity.setCacc_id("998");
|
||||||
inventoryEntity.setcInvCode(wlcode.toString());//物料编码
|
inventoryEntity.setcInvCode(wlcode.toString());//物料编码
|
||||||
|
@ -298,12 +299,17 @@ public class ZjMaterielSynchronizationEventServiceImpl extends BaseService<ZjMat
|
||||||
//inventoryEntity.setcInvCCode(entity.getField0008code());// todo 品牌
|
//inventoryEntity.setcInvCCode(entity.getField0008code());// todo 品牌
|
||||||
//inventoryEntity.setcInvCCode(entity.getField0034code());// todo 客户名
|
//inventoryEntity.setcInvCCode(entity.getField0034code());// todo 客户名
|
||||||
//inventoryEntity.setcInvCCode(entity.getField0017code());// todo 工艺属性
|
//inventoryEntity.setcInvCCode(entity.getField0017code());// todo 工艺属性
|
||||||
inventoryEntity.setcDefWareHouse(entity.getField0040code());// todo 仓库名称(值需要转换)
|
inventoryEntity.setcDefWareHouse(entity.getField0040code());// 仓库名称(值需要转换)
|
||||||
//inventoryEntity.setcInvCCode(entity.getField0012code());// todo 优选等级
|
//inventoryEntity.setcInvCCode(entity.getField0012code());// todo 优选等级
|
||||||
//inventoryEntity.setbSrvItem(entity.getField0039());// todo 开发号(值需要转换)
|
//inventoryEntity.setbSrvItem(entity.getField0039());// todo 开发号(值需要转换)
|
||||||
//inventoryEntity.setcInvCCode(entity.getField0042code());// todo 物料属性
|
//inventoryEntity.setcInvCCode(entity.getField0042code());// todo 物料属性
|
||||||
//inventoryEntity.setbProxyForeign(entity.getField0022code());// 是否委外
|
if(entity.getField0022code() != null && "是".equals(entity.getField0022code())){
|
||||||
//inventoryEntity.setcInvCCode(entity.getField0022code());// todo 计划属性字段不确定
|
inventoryEntity.setbProxyForeign("1");// 是否委外
|
||||||
|
inventoryEntity.setbPurchase("1");// 计划属性
|
||||||
|
}else {
|
||||||
|
inventoryEntity.setbProxyForeign("0");// 是否委外
|
||||||
|
inventoryEntity.setbPurchase("0");// 计划属性
|
||||||
|
}
|
||||||
//inventoryEntity.setcInvCCode(entity.getField0033code());// todo 产品阶段
|
//inventoryEntity.setcInvCCode(entity.getField0033code());// todo 产品阶段
|
||||||
//inventoryEntity.setcInvCCode(entity.getField0032code());// todo 负责人
|
//inventoryEntity.setcInvCCode(entity.getField0032code());// todo 负责人
|
||||||
savedata.add(inventoryEntity);
|
savedata.add(inventoryEntity);
|
||||||
|
|
|
@ -2503,7 +2503,6 @@
|
||||||
<if test="cCommodity != null and cCommodity !='' "> cCommodity = #{cCommodity},</if>
|
<if test="cCommodity != null and cCommodity !='' "> cCommodity = #{cCommodity},</if>
|
||||||
<if test="iRecipeBatch != null and iRecipeBatch !='' "> iRecipeBatch = #{iRecipeBatch},</if>
|
<if test="iRecipeBatch != null and iRecipeBatch !='' "> iRecipeBatch = #{iRecipeBatch},</if>
|
||||||
<if test="cNotPatentName != null and cNotPatentName !='' "> cNotPatentName = #{cNotPatentName},</if>
|
<if test="cNotPatentName != null and cNotPatentName !='' "> cNotPatentName = #{cNotPatentName},</if>
|
||||||
<if test="pubufts != null and pubufts !='' "> pubufts = #{pubufts},</if>
|
|
||||||
<if test="bPromotSales != null and bPromotSales !='' "> bPromotSales = #{bPromotSales},</if>
|
<if test="bPromotSales != null and bPromotSales !='' "> bPromotSales = #{bPromotSales},</if>
|
||||||
<if test="iPlanPolicy != null and iPlanPolicy !='' "> iPlanPolicy = #{iPlanPolicy},</if>
|
<if test="iPlanPolicy != null and iPlanPolicy !='' "> iPlanPolicy = #{iPlanPolicy},</if>
|
||||||
<if test="iROPMethod != null and iROPMethod !='' "> iROPMethod = #{iROPMethod},</if>
|
<if test="iROPMethod != null and iROPMethod !='' "> iROPMethod = #{iROPMethod},</if>
|
||||||
|
|
Loading…
Reference in New Issue