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); 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="zxbm != null and zxbm != ''"> <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