|
|
|
@ -414,12 +414,33 @@ |
|
|
|
|
<if test="commodityCode.sortId != null"> |
|
|
|
|
sort_id = #{commodityCode.sortId,jdbcType=BIGINT}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.xhfNsrsbh != null"> |
|
|
|
|
xhf_nsrsbh = #{commodityCode.xhfNsrsbh,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.xmmc != null"> |
|
|
|
|
merchandise_name = #{commodityCode.xmmc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.zzstsgl != null"> |
|
|
|
|
zzstsgl = #{commodityCode.zzstsgl,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.spjc != null"> |
|
|
|
|
tax_class_abbreviation = #{commodityCode.spjc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.spbm != null"> |
|
|
|
|
tax_class_code = #{commodityCode.spbm,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.ssflMc != null"> |
|
|
|
|
tax_classification_name = #{commodityCode.ssflMc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.yhzcbs != null"> |
|
|
|
|
enjoy_preferential_policies = #{commodityCode.yhzcbs,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.hsbz != null"> |
|
|
|
|
tax_logo = #{commodityCode.hsbz,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.spjm != null"> |
|
|
|
|
brief_code = #{commodityCode.spjm,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="commodityCode.sl != null"> |
|
|
|
|
tax_rate = #{commodityCode.sl,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
</set> |
|
|
|
|
<where> |
|
|
|
|
id in |
|
|
|
@ -1178,6 +1199,24 @@ |
|
|
|
|
WHERE cc.encoding =#{spbm} |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="queryCountByEntAndEncode" resultType="java.lang.Integer"> |
|
|
|
|
SELECT |
|
|
|
|
count(*) |
|
|
|
|
FROM |
|
|
|
|
commodity_code cc |
|
|
|
|
<where> |
|
|
|
|
<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> |
|
|
|
|
</where> |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 通用条件查询 --> |
|
|
|
|
<select id="queryCommodityInfoListByMap" resultMap="commodityCodeResultMap"> |
|
|
|
|