|
|
|
@ -3,9 +3,9 @@
|
|
|
|
|
<mapper namespace="com.glxp.api.dao.thrsys.ThrProductsDao">
|
|
|
|
|
<select id="filterThrProducts" parameterType="com.glxp.api.req.thrsys.FilterThrProductsRequest"
|
|
|
|
|
resultType="com.glxp.api.entity.thrsys.ThrProductsEntity">
|
|
|
|
|
SELECT *,cb.userName as createByName
|
|
|
|
|
SELECT *, cb.userName as createByName
|
|
|
|
|
FROM thr_products
|
|
|
|
|
LEFT JOIN auth_user cb ON thr_products.createUser = cb.id
|
|
|
|
|
LEFT JOIN auth_user cb ON thr_products.createUser = cb.id
|
|
|
|
|
<where>
|
|
|
|
|
<if test="name != '' and name != null">
|
|
|
|
|
AND name LIKE concat('%', #{name}, '%')
|
|
|
|
@ -203,7 +203,7 @@
|
|
|
|
|
#{price},
|
|
|
|
|
#{createUser},
|
|
|
|
|
#{createTime},
|
|
|
|
|
#{updateUser}, #{manufactoryCode}, #{supCode},#{type})
|
|
|
|
|
#{updateUser}, #{manufactoryCode}, #{supCode}, #{type})
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<select id="selectByLastTime" resultType="com.glxp.api.entity.thrsys.ThrProductsEntity">
|
|
|
|
@ -219,7 +219,7 @@
|
|
|
|
|
cplb, flbm, qxlb, ybbm, sptm, tyshxydm, zczbhhzbapzbh, ylqxzcrbarmc, ylqxzcrbarywmc, cpms,
|
|
|
|
|
thirdSysFk, updateTime, supName, model, standard, qtbm, zczyxqz, remark, remark1, remark2, remark3,
|
|
|
|
|
price,
|
|
|
|
|
createUser, createTime, updateUser, manufactoryCode, supCode,type)
|
|
|
|
|
createUser, createTime, updateUser, manufactoryCode, supCode, type)
|
|
|
|
|
values
|
|
|
|
|
<foreach collection="list" index="index" item="item" open="(" close=")" separator=",">
|
|
|
|
|
#{item.code},
|
|
|
|
@ -252,7 +252,7 @@
|
|
|
|
|
#{item.price},
|
|
|
|
|
#{item.createUser},
|
|
|
|
|
#{item.createTime},
|
|
|
|
|
#{item.updateUser}, #{manufactoryCode}, #{supCode} , #{type}
|
|
|
|
|
#{item.updateUser}, #{manufactoryCode}, #{supCode}, #{type}
|
|
|
|
|
</foreach>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -330,7 +330,7 @@
|
|
|
|
|
price = #{price,jdbcType=VARCHAR},
|
|
|
|
|
manufactoryCode = #{manufactoryCode,jdbcType=VARCHAR},
|
|
|
|
|
supCode = #{supCode,jdbcType=VARCHAR},
|
|
|
|
|
type = #{type,jdbcType=VARCHAR}
|
|
|
|
|
type = #{type,jdbcType=VARCHAR}
|
|
|
|
|
</set>
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
</update>
|
|
|
|
@ -338,14 +338,11 @@
|
|
|
|
|
<select id="filterThrProductsByMainId" resultType="com.glxp.api.entity.thrsys.ThrProductsEntity">
|
|
|
|
|
SELECT *
|
|
|
|
|
FROM thr_products
|
|
|
|
|
LEFT JOIN basic_udirel ON thr_products.code = basic_udirel.mainId
|
|
|
|
|
LEFT JOIN basic_udirel ON thr_products.code = basic_udirel.mainId
|
|
|
|
|
<where>
|
|
|
|
|
<if test="relId != '' and relId != null">
|
|
|
|
|
AND basic_udirel.id = #{relId}
|
|
|
|
|
AND basic_udirel.id = #{relId}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
|