|
|
|
@ -384,6 +384,61 @@ |
|
|
|
|
</if> |
|
|
|
|
</where> |
|
|
|
|
</update> |
|
|
|
|
<update id="updateCommodityByZxbm" parameterType="com.dxhy.order.baseservice.module.commodity.model.CommodityCodeEntity"> |
|
|
|
|
<bind name="dataType" value="${dataType}"/> |
|
|
|
|
update commodity_code |
|
|
|
|
<set> |
|
|
|
|
<if test="commodityCode.ggxh != null"> |
|
|
|
|
specification_model = #{commodityCode.ggxh,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.xmdw != null"> |
|
|
|
|
metering_unit = #{commodityCode.xmdw,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.ycbz != null"> |
|
|
|
|
hide_the_logo = #{commodityCode.ycbz,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.lslbs != null"> |
|
|
|
|
preferential_policies_type = #{commodityCode.lslbs,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.yhzcbs != null"> |
|
|
|
|
enjoy_preferential_policies = #{commodityCode.yhzcbs,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.spbm != null"> |
|
|
|
|
tax_class_code = #{commodityCode.spbm,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.spjc != null"> |
|
|
|
|
tax_class_abbreviation = #{commodityCode.spjc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.zzstsgl != null"> |
|
|
|
|
zzstsgl = #{commodityCode.zzstsgl,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="dataType == 0"> |
|
|
|
|
modify_time = now(), |
|
|
|
|
</if> |
|
|
|
|
<if test="dataType == 1"> |
|
|
|
|
modify_time = SYSDATE, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.modifyUserId != null"> |
|
|
|
|
modify_user_id = #{commodityCode.modifyUserId,jdbcType=CHAR}, |
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
<if test="commodityCode.collectIdent != null"> |
|
|
|
|
collect_ident = #{commodityCode.collectIdent,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.cpy != null"> |
|
|
|
|
cpy = #{commodityCode.cpy,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
</set> |
|
|
|
|
<where> |
|
|
|
|
<if test="map.zxbm != null"> |
|
|
|
|
and encoding = #{map.zxbm,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="map.entId != null"> |
|
|
|
|
and ent_id = #{map.entId,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
</where> |
|
|
|
|
</update> |
|
|
|
|
<update id="batchUpdateCommodity" parameterType="com.dxhy.order.baseservice.module.commodity.model.CommodityCodeEntity"> |
|
|
|
|
<bind name="dataType" value="${dataType}"/> |
|
|
|
|
update commodity_code |
|
|
|
|