|
|
|
@ -249,64 +249,64 @@ |
|
|
|
|
<bind name="dataType" value="${dataType}"/> |
|
|
|
|
update commodity_code |
|
|
|
|
<set> |
|
|
|
|
<if test="commodityCode.commodityId != null"> |
|
|
|
|
<if test="commodityCode.commodityId != null and commodityCode.commodityId != ''"> |
|
|
|
|
commodity_id = #{commodityCode.commodityId,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.sortId != null"> |
|
|
|
|
<if test="commodityCode.sortId != null and commodityCode.sortId != ''"> |
|
|
|
|
sort_id = #{commodityCode.sortId,jdbcType=BIGINT}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.xhfNsrsbh != null"> |
|
|
|
|
<if test="commodityCode.xhfNsrsbh != null and commodityCode.xhfNsrsbh != ''"> |
|
|
|
|
xhf_nsrsbh = #{commodityCode.xhfNsrsbh,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.xmmc != null"> |
|
|
|
|
<if test="commodityCode.xmmc != null and commodityCode.xmmc != ''"> |
|
|
|
|
merchandise_name = #{commodityCode.xmmc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.zxbm != null"> |
|
|
|
|
<if test="commodityCode.zxbm != null and commodityCode.zxbm != ''"> |
|
|
|
|
encoding = #{commodityCode.zxbm,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.spsm != null"> |
|
|
|
|
<if test="commodityCode.spsm != null and commodityCode.spsm != ''"> |
|
|
|
|
tax_items = #{commodityCode.spsm,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.spjm != null"> |
|
|
|
|
<if test="commodityCode.spjm != null and commodityCode.spjm != ''"> |
|
|
|
|
brief_code = #{commodityCode.spjm,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.sl != null"> |
|
|
|
|
<if test="commodityCode.sl != null and commodityCode.sl != ''"> |
|
|
|
|
tax_rate = #{commodityCode.sl,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.ggxh != null"> |
|
|
|
|
<if test="commodityCode.ggxh != null and commodityCode.ggxh != ''"> |
|
|
|
|
specification_model = #{commodityCode.ggxh,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.xmdw != null"> |
|
|
|
|
<if test="commodityCode.xmdw != null and commodityCode.xmdw != ''"> |
|
|
|
|
metering_unit = #{commodityCode.xmdw,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.xmdj != null"> |
|
|
|
|
<if test="commodityCode.xmdj != null and commodityCode.xmdj != ''"> |
|
|
|
|
unit_price = #{commodityCode.xmdj,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.hsbz != null"> |
|
|
|
|
<if test="commodityCode.hsbz != null and commodityCode.hsbz != ''"> |
|
|
|
|
tax_logo = #{commodityCode.hsbz,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.ycbz != null"> |
|
|
|
|
<if test="commodityCode.ycbz != null and commodityCode.ycbz != ''"> |
|
|
|
|
hide_the_logo = #{commodityCode.ycbz,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.yhzcbs != null"> |
|
|
|
|
<if test="commodityCode.yhzcbs != null and commodityCode.yhzcbs != ''"> |
|
|
|
|
enjoy_preferential_policies = #{commodityCode.yhzcbs,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.spbm != null"> |
|
|
|
|
<if test="commodityCode.spbm != null and commodityCode.spbm != ''"> |
|
|
|
|
tax_class_code = #{commodityCode.spbm,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.ssflMc != null"> |
|
|
|
|
<if test="commodityCode.ssflMc != null and commodityCode.ssflMc != ''"> |
|
|
|
|
tax_classification_name = #{commodityCode.ssflMc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.lslbs != null"> |
|
|
|
|
<if test="commodityCode.lslbs != null and commodityCode.lslbs != ''"> |
|
|
|
|
preferential_policies_type = #{commodityCode.lslbs,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.zzstsgl != null"> |
|
|
|
|
<if test="commodityCode.zzstsgl != null and commodityCode.zzstsgl != ''"> |
|
|
|
|
zzstsgl = #{commodityCode.zzstsgl,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.userId != null"> |
|
|
|
|
<if test="commodityCode.userId != null and commodityCode.userId != ''"> |
|
|
|
|
user_id = #{commodityCode.userId,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.createTime != null"> |
|
|
|
|
<if test="commodityCode.createTime != null and commodityCode.createTime != ''"> |
|
|
|
|
create_time = #{commodityCode.createTime,jdbcType=TIMESTAMP}, |
|
|
|
|
</if> |
|
|
|
|
<if test="dataType == 0"> |
|
|
|
@ -315,55 +315,55 @@ |
|
|
|
|
<if test="dataType == 1"> |
|
|
|
|
modify_time = SYSDATE, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.modifyUserId != null"> |
|
|
|
|
<if test="commodityCode.modifyUserId != null and commodityCode.modifyUserId != ''"> |
|
|
|
|
modify_user_id = #{commodityCode.modifyUserId,jdbcType=CHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.groupId != null"> |
|
|
|
|
<if test="commodityCode.groupId != null and commodityCode.groupId != ''"> |
|
|
|
|
group_id = #{commodityCode.groupId,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.bz != null"> |
|
|
|
|
<if test="commodityCode.bz != null and commodityCode.bz != ''"> |
|
|
|
|
description = #{commodityCode.bz,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.xhfMc != null"> |
|
|
|
|
<if test="commodityCode.xhfMc != null and commodityCode.xhfMc != ''"> |
|
|
|
|
enterprise_name = #{commodityCode.xhfMc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.dataSource != null"> |
|
|
|
|
<if test="commodityCode.dataSource != null and commodityCode.dataSource != ''"> |
|
|
|
|
data_source = #{commodityCode.dataSource,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.matchingState != null"> |
|
|
|
|
<if test="commodityCode.matchingState != null and commodityCode.matchingState != ''"> |
|
|
|
|
matching_state = #{commodityCode.matchingState,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.dataState != null"> |
|
|
|
|
<if test="commodityCode.dataState != null and commodityCode.dataState != ''"> |
|
|
|
|
data_state = #{commodityCode.dataState,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.spjc != null"> |
|
|
|
|
<if test="commodityCode.spjc != null and commodityCode.spjc != ''"> |
|
|
|
|
tax_class_abbreviation = #{commodityCode.spjc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.collectIdent != null"> |
|
|
|
|
<if test="commodityCode.collectIdent != null and commodityCode.collectIdent != ''"> |
|
|
|
|
collect_ident = #{commodityCode.collectIdent,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.cpy != null"> |
|
|
|
|
<if test="commodityCode.cpy != null and commodityCode.cpy != ''"> |
|
|
|
|
cpy = #{commodityCode.cpy,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.bmbBbh != null"> |
|
|
|
|
<if test="commodityCode.bmbBbh != null and commodityCode.bmbBbh != ''"> |
|
|
|
|
bmb_bbh = #{commodityCode.bmbBbh,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.jdc != null"> |
|
|
|
|
<if test="commodityCode.jdc != null and commodityCode.jdc != ''"> |
|
|
|
|
jdc = #{commodityCode.jdc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.wlflbm != null"> |
|
|
|
|
<if test="commodityCode.wlflbm != null and commodityCode.wlflbm != ''"> |
|
|
|
|
wlflbm = #{commodityCode.wlflbm,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.wlflmc != null"> |
|
|
|
|
<if test="commodityCode.wlflmc != null and commodityCode.wlflmc != ''"> |
|
|
|
|
wlflmc = #{commodityCode.wlflmc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.entId != null"> |
|
|
|
|
<if test="commodityCode.entId != null and commodityCode.entId != ''"> |
|
|
|
|
ent_id = #{commodityCode.entId,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.tswl != null"> |
|
|
|
|
<if test="commodityCode.tswl != null and commodityCode.tswl != ''"> |
|
|
|
|
tswl = #{commodityCode.tswl,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.invoiceName != null"> |
|
|
|
|
<if test="commodityCode.invoiceName != null and commodityCode.invoiceName != ''"> |
|
|
|
|
invoice_name = #{commodityCode.invoiceName,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
@ -395,28 +395,28 @@ |
|
|
|
|
<bind name="dataType" value="${dataType}"/> |
|
|
|
|
update commodity_code |
|
|
|
|
<set> |
|
|
|
|
<if test="commodityCode.ggxh != null"> |
|
|
|
|
<if test="commodityCode.ggxh != null and commodityCode.ggxh != ''"> |
|
|
|
|
specification_model = #{commodityCode.ggxh,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.xmdw != null"> |
|
|
|
|
<if test="commodityCode.xmdw != null and commodityCode.xmdw != ''"> |
|
|
|
|
metering_unit = #{commodityCode.xmdw,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.ycbz != null"> |
|
|
|
|
<if test="commodityCode.ycbz != null and commodityCode.ycbz != ''"> |
|
|
|
|
hide_the_logo = #{commodityCode.ycbz,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.lslbs != null"> |
|
|
|
|
<if test="commodityCode.lslbs != null and commodityCode.lslbs != ''"> |
|
|
|
|
preferential_policies_type = #{commodityCode.lslbs,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.yhzcbs != null"> |
|
|
|
|
<if test="commodityCode.yhzcbs != null and commodityCode.yhzcbs != ''"> |
|
|
|
|
enjoy_preferential_policies = #{commodityCode.yhzcbs,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.spbm != null"> |
|
|
|
|
<if test="commodityCode.spbm != null and commodityCode.spbm != ''"> |
|
|
|
|
tax_class_code = #{commodityCode.spbm,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.spjc != null"> |
|
|
|
|
<if test="commodityCode.spjc != null and commodityCode.spjc != ''"> |
|
|
|
|
tax_class_abbreviation = #{commodityCode.spjc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.zzstsgl != null"> |
|
|
|
|
<if test="commodityCode.zzstsgl != null and commodityCode.zzstsgl != ''"> |
|
|
|
|
zzstsgl = #{commodityCode.zzstsgl,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="dataType == 0"> |
|
|
|
@ -425,16 +425,19 @@ |
|
|
|
|
<if test="dataType == 1"> |
|
|
|
|
modify_time = SYSDATE, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.modifyUserId != null"> |
|
|
|
|
<if test="commodityCode.modifyUserId != null and commodityCode.modifyUserId != ''"> |
|
|
|
|
modify_user_id = #{commodityCode.modifyUserId,jdbcType=CHAR}, |
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
<if test="commodityCode.collectIdent != null"> |
|
|
|
|
<if test="commodityCode.collectIdent != null and commodityCode.collectIdent != ''"> |
|
|
|
|
collect_ident = #{commodityCode.collectIdent,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.cpy != null"> |
|
|
|
|
<if test="commodityCode.cpy != null and commodityCode.cpy != ''"> |
|
|
|
|
cpy = #{commodityCode.cpy,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.dataSource != null and commodityCode.dataSource != ''"> |
|
|
|
|
data_source = #{commodityCode.dataSource,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
</set> |
|
|
|
|
<where> |
|
|
|
@ -450,60 +453,66 @@ |
|
|
|
|
<bind name="dataType" value="${dataType}"/> |
|
|
|
|
update commodity_code |
|
|
|
|
<set> |
|
|
|
|
<if test="commodityCode.zxbm != null"> |
|
|
|
|
<if test="commodityCode.zxbm != null and commodityCode.zxbm != ''"> |
|
|
|
|
encoding = #{commodityCode.zxbm,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.xmdw != null"> |
|
|
|
|
<if test="commodityCode.xmdw != null and commodityCode.xmdw != ''"> |
|
|
|
|
metering_unit = #{commodityCode.xmdw,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.createTime != null"> |
|
|
|
|
<if test="commodityCode.createTime != null and commodityCode.createTime != ''"> |
|
|
|
|
create_time = #{commodityCode.createTime,jdbcType=TIMESTAMP}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.bz != null"> |
|
|
|
|
<if test="commodityCode.modifyTime != null and commodityCode.modifyTime != ''"> |
|
|
|
|
modify_time = #{commodityCode.modifyTime,jdbcType=TIMESTAMP}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.bz != null and commodityCode.bz != ''"> |
|
|
|
|
description = #{commodityCode.bz,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.wlflbm != null"> |
|
|
|
|
<if test="commodityCode.wlflbm != null and commodityCode.wlflbm != ''"> |
|
|
|
|
wlflbm = #{commodityCode.wlflbm,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.wlflmc != null"> |
|
|
|
|
<if test="commodityCode.wlflmc != null and commodityCode.wlflmc != ''"> |
|
|
|
|
wlflmc = #{commodityCode.wlflmc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.ggxh != null"> |
|
|
|
|
<if test="commodityCode.ggxh != null and commodityCode.ggxh != ''"> |
|
|
|
|
specification_model = #{commodityCode.ggxh,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.commodityId != null"> |
|
|
|
|
<if test="commodityCode.commodityId != null and commodityCode.commodityId != ''"> |
|
|
|
|
commodity_id = #{commodityCode.commodityId,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.sortId != null"> |
|
|
|
|
<if test="commodityCode.sortId != null and commodityCode.sortId != ''"> |
|
|
|
|
sort_id = #{commodityCode.sortId,jdbcType=BIGINT}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.xmmc != null"> |
|
|
|
|
<if test="commodityCode.xmmc != null and commodityCode.xmmc != ''"> |
|
|
|
|
merchandise_name = #{commodityCode.xmmc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.zzstsgl != null"> |
|
|
|
|
<if test="commodityCode.zzstsgl != null and commodityCode.zzstsgl != ''"> |
|
|
|
|
zzstsgl = #{commodityCode.zzstsgl,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.spjc != null"> |
|
|
|
|
<if test="commodityCode.spjc != null and commodityCode.spjc != ''"> |
|
|
|
|
tax_class_abbreviation = #{commodityCode.spjc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.spbm != null"> |
|
|
|
|
<if test="commodityCode.spbm != null and commodityCode.spbm != ''"> |
|
|
|
|
tax_class_code = #{commodityCode.spbm,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.ssflMc != null"> |
|
|
|
|
<if test="commodityCode.ssflMc != null and commodityCode.ssflMc != ''"> |
|
|
|
|
tax_classification_name = #{commodityCode.ssflMc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.yhzcbs != null"> |
|
|
|
|
<if test="commodityCode.yhzcbs != null and commodityCode.yhzcbs != ''"> |
|
|
|
|
enjoy_preferential_policies = #{commodityCode.yhzcbs,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.hsbz != null"> |
|
|
|
|
<if test="commodityCode.hsbz != null and commodityCode.hsbz != ''"> |
|
|
|
|
tax_logo = #{commodityCode.hsbz,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.spjm != null"> |
|
|
|
|
<if test="commodityCode.spjm != null and commodityCode.spjm != ''"> |
|
|
|
|
brief_code = #{commodityCode.spjm,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.sl != null"> |
|
|
|
|
<if test="commodityCode.sl != null and commodityCode.sl != ''"> |
|
|
|
|
tax_rate = #{commodityCode.sl,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.dataSource != null and commodityCode.dataSource != ''"> |
|
|
|
|
data_source = #{commodityCode.dataSource,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
</set> |
|
|
|
|
<where> |
|
|
|
|
id in |
|
|
|
@ -1271,12 +1280,12 @@ |
|
|
|
|
<if test="encoding != null and encoding != ''"> |
|
|
|
|
cc.encoding =#{encoding} |
|
|
|
|
</if> |
|
|
|
|
<if test="merchandiseName != null and merchandiseName != ''"> |
|
|
|
|
and cc.merchandise_name =#{merchandiseName} |
|
|
|
|
</if> |
|
|
|
|
<if test="entId != null and entId != ''"> |
|
|
|
|
and cc.ent_id =#{entId} |
|
|
|
|
</if> |
|
|
|
|
<if test="merchandiseName != null and merchandiseName != ''"> |
|
|
|
|
and cc.merchandise_name =#{merchandiseName} |
|
|
|
|
</if> |
|
|
|
|
</where> |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|