|
|
|
@ -548,6 +548,319 @@ |
|
|
|
|
</trim> |
|
|
|
|
</insert> |
|
|
|
|
|
|
|
|
|
<insert id="insertCommodityOnDuplicateKey" parameterType="com.dxhy.order.baseservice.module.commodity.model.CommodityCodeEntity"> |
|
|
|
|
<bind name="dataType" value="${dataType}"/> |
|
|
|
|
|
|
|
|
|
insert into commodity_code |
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
|
|
<if test="id != null"> |
|
|
|
|
id, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityId != null"> |
|
|
|
|
commodity_id, |
|
|
|
|
</if> |
|
|
|
|
<if test="sortId != null"> |
|
|
|
|
sort_id, |
|
|
|
|
</if> |
|
|
|
|
<if test="xhfNsrsbh != null"> |
|
|
|
|
xhf_nsrsbh, |
|
|
|
|
</if> |
|
|
|
|
<if test="xmmc != null"> |
|
|
|
|
merchandise_name, |
|
|
|
|
</if> |
|
|
|
|
<if test="zxbm != null"> |
|
|
|
|
encoding, |
|
|
|
|
</if> |
|
|
|
|
<if test="spsm != null"> |
|
|
|
|
tax_items, |
|
|
|
|
</if> |
|
|
|
|
<if test="spjm != null"> |
|
|
|
|
brief_code, |
|
|
|
|
</if> |
|
|
|
|
<if test="sl != null"> |
|
|
|
|
tax_rate, |
|
|
|
|
</if> |
|
|
|
|
<if test="ggxh != null"> |
|
|
|
|
specification_model, |
|
|
|
|
</if> |
|
|
|
|
<if test="xmdw != null"> |
|
|
|
|
metering_unit, |
|
|
|
|
</if> |
|
|
|
|
<if test="xmdj != null"> |
|
|
|
|
unit_price, |
|
|
|
|
</if> |
|
|
|
|
<if test="hsbz != null"> |
|
|
|
|
tax_logo, |
|
|
|
|
</if> |
|
|
|
|
<if test="ycbz != null"> |
|
|
|
|
hide_the_logo, |
|
|
|
|
</if> |
|
|
|
|
<if test="yhzcbs != null"> |
|
|
|
|
enjoy_preferential_policies, |
|
|
|
|
</if> |
|
|
|
|
<if test="spbm != null"> |
|
|
|
|
tax_class_code, |
|
|
|
|
</if> |
|
|
|
|
<if test="ssflMc != null"> |
|
|
|
|
tax_classification_name, |
|
|
|
|
</if> |
|
|
|
|
<if test="lslbs != null"> |
|
|
|
|
preferential_policies_type, |
|
|
|
|
</if> |
|
|
|
|
<if test="zzstsgl != null"> |
|
|
|
|
zzstsgl, |
|
|
|
|
</if> |
|
|
|
|
<if test="userId != null"> |
|
|
|
|
user_id, |
|
|
|
|
</if> |
|
|
|
|
create_time, |
|
|
|
|
modify_time, |
|
|
|
|
<if test="modifyUserId != null"> |
|
|
|
|
modify_user_id, |
|
|
|
|
</if> |
|
|
|
|
<if test="groupId != null"> |
|
|
|
|
group_id, |
|
|
|
|
</if> |
|
|
|
|
<if test="bz != null"> |
|
|
|
|
description, |
|
|
|
|
</if> |
|
|
|
|
<if test="xhfMc != null"> |
|
|
|
|
enterprise_name, |
|
|
|
|
</if> |
|
|
|
|
<if test="dataSource != null"> |
|
|
|
|
data_source, |
|
|
|
|
</if> |
|
|
|
|
<if test="matchingState != null"> |
|
|
|
|
matching_state, |
|
|
|
|
</if> |
|
|
|
|
<if test="dataState != null"> |
|
|
|
|
data_state, |
|
|
|
|
</if> |
|
|
|
|
<if test="spjc != null"> |
|
|
|
|
tax_class_abbreviation, |
|
|
|
|
</if> |
|
|
|
|
<if test="collectIdent != null"> |
|
|
|
|
collect_ident, |
|
|
|
|
</if> |
|
|
|
|
<if test="cpy != null"> |
|
|
|
|
cpy, |
|
|
|
|
</if> |
|
|
|
|
<if test="bmbBbh != null"> |
|
|
|
|
bmb_bbh, |
|
|
|
|
</if> |
|
|
|
|
<if test="jdc != null"> |
|
|
|
|
jdc, |
|
|
|
|
</if> |
|
|
|
|
</trim> |
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
|
<if test="id != null"> |
|
|
|
|
#{id,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityId != null"> |
|
|
|
|
#{commodityId,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="sortId != null"> |
|
|
|
|
#{sortId,jdbcType=BIGINT}, |
|
|
|
|
</if> |
|
|
|
|
<if test="xhfNsrsbh != null"> |
|
|
|
|
#{xhfNsrsbh,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="xmmc != null"> |
|
|
|
|
#{xmmc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="zxbm != null"> |
|
|
|
|
#{zxbm,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="spsm != null"> |
|
|
|
|
#{spsm,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="spjm != null"> |
|
|
|
|
#{spjm,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="sl != null"> |
|
|
|
|
#{sl,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="ggxh != null"> |
|
|
|
|
#{ggxh,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="xmdw != null"> |
|
|
|
|
#{xmdw,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="xmdj != null"> |
|
|
|
|
#{xmdj,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="hsbz != null"> |
|
|
|
|
#{hsbz,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="ycbz != null"> |
|
|
|
|
#{ycbz,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="yhzcbs != null"> |
|
|
|
|
#{yhzcbs,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="spbm != null"> |
|
|
|
|
#{spbm,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="ssflMc != null"> |
|
|
|
|
#{ssflMc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="lslbs != null"> |
|
|
|
|
#{lslbs,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="zzstsgl != null"> |
|
|
|
|
#{zzstsgl,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="userId != null"> |
|
|
|
|
#{userId,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="dataType == 0"> |
|
|
|
|
now(), |
|
|
|
|
now(), |
|
|
|
|
</if> |
|
|
|
|
<if test="dataType == 1"> |
|
|
|
|
SYSDATE, |
|
|
|
|
SYSDATE, |
|
|
|
|
</if> |
|
|
|
|
<if test="modifyUserId != null"> |
|
|
|
|
#{modifyUserId,jdbcType=CHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="groupId != null"> |
|
|
|
|
#{groupId,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="bz != null"> |
|
|
|
|
#{bz,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="xhfMc != null"> |
|
|
|
|
#{xhfMc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="dataSource != null"> |
|
|
|
|
#{dataSource,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="matchingState != null"> |
|
|
|
|
#{matchingState,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="dataState != null"> |
|
|
|
|
#{dataState,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="spjc != null"> |
|
|
|
|
#{spjc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="collectIdent != null"> |
|
|
|
|
#{collectIdent,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="cpy != null"> |
|
|
|
|
#{cpy,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="bmbBbh != null"> |
|
|
|
|
#{bmbBbh,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="jdc != null"> |
|
|
|
|
#{jdc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
</trim> |
|
|
|
|
ON DUPLICATE KEY UPDATE |
|
|
|
|
<trim suffixOverrides=","> |
|
|
|
|
<if test="id != null"> |
|
|
|
|
id = VALUES(id), |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityId != null"> |
|
|
|
|
commodity_id = VALUES(commodity_id), |
|
|
|
|
</if> |
|
|
|
|
<if test="sortId != null"> |
|
|
|
|
sort_id = VALUES(sort_id), |
|
|
|
|
</if> |
|
|
|
|
<if test="xhfNsrsbh != null"> |
|
|
|
|
xhf_nsrsbh = VALUES(xhf_nsrsbh), |
|
|
|
|
</if> |
|
|
|
|
<if test="xmmc != null"> |
|
|
|
|
merchandise_name = VALUES(merchandise_name), |
|
|
|
|
</if> |
|
|
|
|
<if test="zxbm != null"> |
|
|
|
|
encoding = VALUES(encoding), |
|
|
|
|
</if> |
|
|
|
|
<if test="spsm != null"> |
|
|
|
|
tax_items = VALUES(tax_items), |
|
|
|
|
</if> |
|
|
|
|
<if test="spjm != null"> |
|
|
|
|
brief_code = VALUES(brief_code), |
|
|
|
|
</if> |
|
|
|
|
<if test="sl != null"> |
|
|
|
|
tax_rate = VALUES(tax_rate), |
|
|
|
|
</if> |
|
|
|
|
<if test="ggxh != null"> |
|
|
|
|
specification_model = VALUES(specification_model), |
|
|
|
|
</if> |
|
|
|
|
<if test="xmdw != null"> |
|
|
|
|
metering_unit = VALUES(metering_unit), |
|
|
|
|
</if> |
|
|
|
|
<if test="xmdj != null"> |
|
|
|
|
unit_price = VALUES(unit_price), |
|
|
|
|
</if> |
|
|
|
|
<if test="hsbz != null"> |
|
|
|
|
tax_logo = VALUES(tax_logo), |
|
|
|
|
</if> |
|
|
|
|
<if test="ycbz != null"> |
|
|
|
|
hide_the_logo = VALUES(hide_the_logo), |
|
|
|
|
</if> |
|
|
|
|
<if test="yhzcbs != null"> |
|
|
|
|
enjoy_preferential_policies = VALUES(enjoy_preferential_policies), |
|
|
|
|
</if> |
|
|
|
|
<if test="spbm != null"> |
|
|
|
|
tax_class_code = VALUES(tax_class_code), |
|
|
|
|
</if> |
|
|
|
|
<if test="ssflMc != null"> |
|
|
|
|
tax_classification_name = VALUES(tax_classification_name), |
|
|
|
|
</if> |
|
|
|
|
<if test="lslbs != null"> |
|
|
|
|
preferential_policies_type = VALUES(preferential_policies_type), |
|
|
|
|
</if> |
|
|
|
|
<if test="zzstsgl != null"> |
|
|
|
|
zzstsgl = VALUES(zzstsgl), |
|
|
|
|
</if> |
|
|
|
|
<if test="userId != null"> |
|
|
|
|
user_id = VALUES(user_id), |
|
|
|
|
</if> |
|
|
|
|
create_time = VALUES(create_time), |
|
|
|
|
modify_time = VALUES(modify_time), |
|
|
|
|
<if test="modifyUserId != null"> |
|
|
|
|
modify_user_id = VALUES(modify_user_id), |
|
|
|
|
</if> |
|
|
|
|
<if test="groupId != null"> |
|
|
|
|
group_id = VALUES(group_id), |
|
|
|
|
</if> |
|
|
|
|
<if test="bz != null"> |
|
|
|
|
description = VALUES(description), |
|
|
|
|
</if> |
|
|
|
|
<if test="xhfMc != null"> |
|
|
|
|
enterprise_name = VALUES(enterprise_name), |
|
|
|
|
</if> |
|
|
|
|
<if test="dataSource != null"> |
|
|
|
|
data_source = VALUES(data_source), |
|
|
|
|
</if> |
|
|
|
|
<if test="matchingState != null"> |
|
|
|
|
matching_state = VALUES(matching_state), |
|
|
|
|
</if> |
|
|
|
|
<if test="dataState != null"> |
|
|
|
|
data_state = VALUES(data_state), |
|
|
|
|
</if> |
|
|
|
|
<if test="spjc != null"> |
|
|
|
|
tax_class_abbreviation = VALUES(tax_class_abbreviation), |
|
|
|
|
</if> |
|
|
|
|
<if test="collectIdent != null"> |
|
|
|
|
collect_ident = VALUES(collect_ident), |
|
|
|
|
</if> |
|
|
|
|
<if test="cpy != null"> |
|
|
|
|
cpy = VALUES(cpy), |
|
|
|
|
</if> |
|
|
|
|
<if test="bmbBbh != null"> |
|
|
|
|
bmb_bbh = VALUES(bmb_bbh), |
|
|
|
|
</if> |
|
|
|
|
<if test="jdc != null"> |
|
|
|
|
jdc = VALUES(jdc), |
|
|
|
|
</if> |
|
|
|
|
</trim> |
|
|
|
|
</insert> |
|
|
|
|
|
|
|
|
|
<update id="updateByGropId" parameterType="String"> |
|
|
|
|
UPDATE commodity_code |
|
|
|
|
SET |
|
|
|
|