feature:物料引用功能bug修复

release
gaorl 2 years ago
parent cd58239900
commit 646b9e907c
  1. 2
      order-management-consumer/src/main/java/com/dxhy/order/consumer/dao/GroupCommodityCodeMapper.java
  2. 25
      order-management-consumer/src/main/resources/mybatis/mapper/GroupCommodityCodeMapper.xml

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

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

Loading…
Cancel
Save