|
|
@@ -14,7 +14,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="supplierCreator" column="supplierCreator" />
|
|
|
<result property="supplierCreateddate" column="supplierCreateddate" />
|
|
|
<result property="supplierType" column="supplierType"/>
|
|
|
- <result property="cusareaId" column="cusareaId"></result>
|
|
|
+ <result property="cusareaId" column="cusareaId"/>
|
|
|
<result property="tid" column="tid"/>
|
|
|
</resultMap>
|
|
|
|
|
|
@@ -34,7 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="supplierRemark != null and supplierRemark != ''"> and supplierRemark = #{supplierRemark}</if>
|
|
|
<if test="supplierCreator != null and supplierCreator != ''"> and supplierCreator = #{supplierCreator}</if>
|
|
|
<if test="supplierCreateddate != null and supplierCreateddate != ''"> and supplierCreateddate = #{supplierCreateddate}</if>
|
|
|
- <if test="supplierType != null and supplierType != ''"> and supplierType = #{supplierType}</if>
|
|
|
+ <if test="supplierType != null and supplierType != ''"> and a.supplierType = #{supplierType}</if>
|
|
|
<if test="cusareaId != null and cusareaId != ''">and cusareaId = #{cusareaId}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
@@ -102,4 +102,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</foreach>
|
|
|
and tid = #{tid}
|
|
|
</delete>
|
|
|
+
|
|
|
+ <select id="selectWmsSupplierListResVoList"
|
|
|
+ resultType="com.yunfeiyun.agmp.tss.domain.resvo.WmsSupplierListResVo">
|
|
|
+ select supplierId, supplierName, supplierLinkman, supplierLinktel, supplierLinkaddress, supplierRemark, supplierCreator, supplierCreateddate,supplierType, b.resUrl as supplierPreview, b.resId as supplierQualificationResId, cusareaId from WmsSupplier a
|
|
|
+ LEFT JOIN SysRes b on b.resBusId = a.supplierId
|
|
|
+ <where>
|
|
|
+ a.tid = #{tid}
|
|
|
+ <if test="supplierName != null and supplierName != ''"> and supplierName like concat('%', #{supplierName}, '%')</if>
|
|
|
+ <if test="supplierLinkman != null and supplierLinkman != ''"> and supplierLinkman = #{supplierLinkman}</if>
|
|
|
+ <if test="supplierLinktel != null and supplierLinktel != ''"> and supplierLinktel = #{supplierLinktel}</if>
|
|
|
+ <if test="supplierLinkaddress != null and supplierLinkaddress != ''"> and supplierLinkaddress = #{supplierLinkaddress}</if>
|
|
|
+ <if test="supplierRemark != null and supplierRemark != ''"> and supplierRemark = #{supplierRemark}</if>
|
|
|
+ <if test="supplierCreator != null and supplierCreator != ''"> and supplierCreator = #{supplierCreator}</if>
|
|
|
+ <if test="supplierCreateddate != null and supplierCreateddate != ''"> and supplierCreateddate = #{supplierCreateddate}</if>
|
|
|
+ <if test="supplierType != null and supplierType != ''"> and a.supplierType = #{supplierType}</if>
|
|
|
+ <if test="cusareaId != null and cusareaId != ''">and cusareaId = #{cusareaId}</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
</mapper>
|