|
@@ -28,6 +28,20 @@
|
|
|
|
|
|
<select id="querySupplier" resultMap="rmlyh" parameterMap="pmlyh">
|
|
|
select * from FoodSupplier item
|
|
|
+ <where>
|
|
|
+ <if test="FoodSupplierID!= null">
|
|
|
+ and item.FoodSupplierID = #{FoodSupplierID}
|
|
|
+ </if>
|
|
|
+ <if test="FoodSupplierName!= null">
|
|
|
+ and item.FoodSupplierName like concat('%',#{FoodSupplierName},'%')
|
|
|
+ </if>
|
|
|
+ <if test="FoodSupplierLink!= null">
|
|
|
+ and item.FoodSupplierLink like concat('%',#{FoodSupplierLink},'%')
|
|
|
+ </if>
|
|
|
+ <if test="FoodSupplierStatus != null">
|
|
|
+ and item.FoodSupplierStatus = #{FoodSupplierStatus}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
</select>
|
|
|
<select id="queryLoginlyh" resultMap="rmlyh" parameterMap="pmlyh">
|
|
|
select item.FoodSupplierName,item.FoodSupplierLink,item.FoodSupplierStatus,item.FoodSupplierID from FoodSupplier item where item.FoodSupplierLink = #{FoodSupplierLink} and item.FoodSupplierPass = #{FoodSupplierPass}
|