parent
6ad60418e7
commit
e34228fddb
|
@ -14,7 +14,11 @@ public class FormmainEntity extends BaseEntity {
|
|||
private String field0003;
|
||||
private String field0009;
|
||||
private String field0014;
|
||||
private String field0015;
|
||||
private String field0016;
|
||||
private String field0017;
|
||||
private String field0024;
|
||||
private String field0028;
|
||||
|
||||
public String getField0001() {
|
||||
return field0001;
|
||||
|
@ -63,4 +67,36 @@ public class FormmainEntity extends BaseEntity {
|
|||
public void setField0024(String field0024) {
|
||||
this.field0024 = field0024;
|
||||
}
|
||||
|
||||
public String getField0017() {
|
||||
return field0017;
|
||||
}
|
||||
|
||||
public void setField0017(String field0017) {
|
||||
this.field0017 = field0017;
|
||||
}
|
||||
|
||||
public String getField0015() {
|
||||
return field0015;
|
||||
}
|
||||
|
||||
public void setField0015(String field0015) {
|
||||
this.field0015 = field0015;
|
||||
}
|
||||
|
||||
public String getField0016() {
|
||||
return field0016;
|
||||
}
|
||||
|
||||
public void setField0016(String field0016) {
|
||||
this.field0016 = field0016;
|
||||
}
|
||||
|
||||
public String getField0028() {
|
||||
return field0028;
|
||||
}
|
||||
|
||||
public void setField0028(String field0028) {
|
||||
this.field0028 = field0028;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
|
||||
|
||||
<!-- 供应商底表 -->
|
||||
<update id="entity_update_0229" parameterType = "com.hzya.frame.seeyon.ydc.entity.FormmainEntity" >
|
||||
update formmain_0229 set
|
||||
<update id="entity_update_0056" parameterType = "com.hzya.frame.seeyon.ydc.entity.FormmainEntity" >
|
||||
update formmain_0056 set
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="field0002 != null and field0002 != ''"> field0002 = #{field0002}</if>
|
||||
<if test="field0001 != null and field0001 != ''"> field0001 = #{field0001}</if>
|
||||
</trim>
|
||||
where field0001 = #{field0001}
|
||||
where field0017 = #{field0017}
|
||||
</update>
|
||||
|
||||
<!-- 客户底表 -->
|
||||
|
@ -23,12 +23,12 @@
|
|||
</update>
|
||||
|
||||
<!-- 存货底表 -->
|
||||
<update id="entity_update_0231" parameterType = "com.hzya.frame.seeyon.ydc.entity.FormmainEntity" >
|
||||
update formmain_0231 set
|
||||
<update id="entity_update_0055" parameterType = "com.hzya.frame.seeyon.ydc.entity.FormmainEntity" >
|
||||
update formmain_0055 set
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="field0014 != null and field0014 != ''"> field0014 = #{field0014}</if>
|
||||
<if test="field0002 != null and field0002 != ''"> field0002 = #{field0002}</if>
|
||||
</trim>
|
||||
where field0009 = #{field0009} and field0024 = #{field0024}
|
||||
where field0016 = #{field0016} and field0028 = #{field0028}
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package com.hzya.frame.seeyon.ydc.service.impl;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
import com.hzya.frame.seeyon.ydc.dao.IFormmainDao;
|
||||
|
@ -34,7 +35,9 @@ public class FormmainServiceImpl extends BaseService<FormmainEntity, String> imp
|
|||
@DS("#entity.dataSourceCode")
|
||||
@Override
|
||||
public void updateSupplierCode(FormmainEntity entity) {
|
||||
formmainDao.update("com.hzya.frame.seeyon.ydc.dao.impl.FormmainDaoImpl.entity_update_0229",entity);
|
||||
if (null != entity && StrUtil.isNotEmpty(entity.getField0001()) && StrUtil.isNotEmpty(entity.getField0017())){
|
||||
formmainDao.update("com.hzya.frame.seeyon.ydc.dao.impl.FormmainDaoImpl.entity_update_0056",entity);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -45,7 +48,11 @@ public class FormmainServiceImpl extends BaseService<FormmainEntity, String> imp
|
|||
@DS("#entity.dataSourceCode")
|
||||
@Override
|
||||
public void updateCustomerCode(FormmainEntity entity) {
|
||||
formmainDao.update("com.hzya.frame.seeyon.ydc.dao.impl.FormmainDaoImpl.entity_update_0230",entity);
|
||||
if (null != entity
|
||||
&& StrUtil.isNotEmpty(entity.getField0002())
|
||||
&& StrUtil.isNotEmpty(entity.getField0001())){
|
||||
formmainDao.update("com.hzya.frame.seeyon.ydc.dao.impl.FormmainDaoImpl.entity_update_0230",entity);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -56,6 +63,10 @@ public class FormmainServiceImpl extends BaseService<FormmainEntity, String> imp
|
|||
@DS("#entity.dataSourceCode")
|
||||
@Override
|
||||
public void updateInventoryCode(FormmainEntity entity) {
|
||||
formmainDao.update("com.hzya.frame.seeyon.ydc.dao.impl.FormmainDaoImpl.entity_update_0231",entity);
|
||||
if (null != entity
|
||||
&& StrUtil.isNotEmpty(entity.getField0016())
|
||||
&& StrUtil.isNotEmpty(entity.getField0028())){
|
||||
formmainDao.update("com.hzya.frame.seeyon.ydc.dao.impl.FormmainDaoImpl.entity_update_0055",entity);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue