Merge remote-tracking branch 'origin/release' into release

release
zhenghaiyang@ele-cloud.com 2 years ago
commit ef1abb205e
  1. 17
      order-management-base-service/src/main/resources/mybatis/mapper/CommodityMapper.xml
  2. 2
      order-management-consumer/src/main/java/com/dxhy/order/consumer/dao/GroupCommodityCodeMapper.java
  3. 25
      order-management-consumer/src/main/resources/mybatis/mapper/GroupCommodityCodeMapper.xml

@ -51,7 +51,7 @@
tax_rate, specification_model, metering_unit, unit_price, tax_logo, hide_the_logo, tax_rate, specification_model, metering_unit, unit_price, tax_logo, hide_the_logo,
enjoy_preferential_policies, tax_class_code, tax_classification_name, preferential_policies_type,zzstsgl, enjoy_preferential_policies, tax_class_code, tax_classification_name, preferential_policies_type,zzstsgl,
user_id, create_time, modify_time, modify_user_id, group_id,enterprise_name,data_source, user_id, create_time, modify_time, modify_user_id, group_id,enterprise_name,data_source,
matching_state,data_state,tax_class_abbreviation,description,collect_ident,cpy,bmb_bbh,jdc,wlflbm,wlflmc,ent_id,tswl matching_state,data_state,tax_class_abbreviation,description,collect_ident,cpy,bmb_bbh,jdc,wlflbm,wlflmc,ent_id,tswl,invoice_name
</sql> </sql>
@ -357,6 +357,10 @@
<if test="commodityCode.tswl != null"> <if test="commodityCode.tswl != null">
tswl = #{commodityCode.tswl,jdbcType=VARCHAR}, tswl = #{commodityCode.tswl,jdbcType=VARCHAR},
</if> </if>
<if test="commodityCode.invoiceName != null">
invoice_name = #{commodityCode.invoiceName,jdbcType=VARCHAR},
</if>
</set> </set>
<where> <where>
<if test="commodityCode.id != null and commodityCode.id != ''"> <if test="commodityCode.id != null and commodityCode.id != ''">
@ -619,7 +623,7 @@
#{tswl,jdbcType=VARCHAR}, #{tswl,jdbcType=VARCHAR},
</if> </if>
<if test="invoiceName != null"> <if test="invoiceName != null">
invoiceName, #{invoiceName,jdbcType=VARCHAR},
</if> </if>
</trim> </trim>
</insert> </insert>
@ -740,6 +744,9 @@
<if test="tswl != null"> <if test="tswl != null">
tswl, tswl,
</if> </if>
<if test="invoiceName != null">
invoice_name,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null"> <if test="id != null">
@ -858,6 +865,9 @@
<if test="tswl != null"> <if test="tswl != null">
#{tswl,jdbcType=VARCHAR}, #{tswl,jdbcType=VARCHAR},
</if> </if>
<if test="invoiceName != null">
#{invoice_name,jdbcType=VARCHAR},
</if>
</trim> </trim>
ON DUPLICATE KEY UPDATE ON DUPLICATE KEY UPDATE
<trim suffixOverrides=","> <trim suffixOverrides=",">
@ -971,6 +981,9 @@
<if test="tswl != null"> <if test="tswl != null">
tswl = VALUES(tswl), tswl = VALUES(tswl),
</if> </if>
<if test="invoiceName != null">
invoice_name = VALUES(invoice_name),
</if>
</trim> </trim>
</insert> </insert>

@ -21,7 +21,7 @@ public interface GroupCommodityCodeMapper {
*/ */
List<CommodityCodeEntity> queryGroupCommodityCodeList(CommodityCodeEntity commodityCodeEntity); List<CommodityCodeEntity> queryGroupCommodityCodeList(CommodityCodeEntity commodityCodeEntity);
CommodityCodeEntity queryCommodityCodeList(CommodityCodeEntity commodityCodeEntity); CommodityCodeEntity queryCommodityCodeList(@Param("commodityCodeEntity") CommodityCodeEntity commodityCodeEntity);
/** /**

@ -124,16 +124,15 @@
<bind name="dataType" value="${dataType}"/> <bind name="dataType" value="${dataType}"/>
<include refid="baseSelect"/> <include refid="baseSelect"/>
<where> <where>
<if test="encoding != null and encoding != ''"> <if test="commodityCodeEntity.zxbm != null and commodityCodeEntity.zxbm != ''">
cc.encoding = #{zxbm} cc.encoding = #{commodityCodeEntity.zxbm}
</if> </if>
<if test="commodityId != null and commodityId != ''" > <if test="commodityCodeEntity.commodityId != null and commodityCodeEntity.commodityId != ''" >
cc.commodity_id = #{commodityId} AND cc.commodity_id = #{commodityCodeEntity.commodityId}
</if> </if>
<if test="xhfNsrsbh != null and xhfNsrsbh != ''"> <if test="commodityCodeEntity.xhfNsrsbh != null and commodityCodeEntity.xhfNsrsbh != ''">
AND cc.xhf_nsrsbh = #{xhfNsrsbh} AND cc.xhf_nsrsbh = #{commodityCodeEntity.xhfNsrsbh}
</if> </if>
ORDER BY cc.create_time DESC
</where> </where>
ORDER BY cc.create_time DESC ORDER BY cc.create_time DESC
@ -399,7 +398,7 @@
</trim> </trim>
</insert> </insert>
<update id="updateCommodityCode" > <update id="updateCommodityCode" >
UPDATE buyer_manage_info UPDATE commodity_code
<set> <set>
<if test="commodityId != null"> <if test="commodityId != null">
commodity_id = #{commodityId}, commodity_id = #{commodityId},
@ -455,8 +454,12 @@
<if test="userId != null"> <if test="userId != null">
user_id = #{userId}, user_id = #{userId},
</if> </if>
create_time, <if test="createTime != null">
modify_time, create_time = #{createTime},
</if>
<if test="modifyTime != null">
modify_time = #{modifyTime},
</if>
<if test="modifyUserId != null"> <if test="modifyUserId != null">
modify_user_id = #{modifyUserId}, modify_user_id = #{modifyUserId},
</if> </if>
@ -504,7 +507,7 @@
</if> </if>
</set> </set>
<where> <where>
id = #{buyer.id,jdbcType=VARCHAR} id = #{id,jdbcType=VARCHAR}
</where> </where>
</update> </update>

Loading…
Cancel
Save