shiyunteng
3 天以前 c6db287f6c987060d615fd7ef5126511e051d5c6
platformx-device-biz/src/main/resources/mapper/PurchaseWinningLetterMapper.xml
@@ -24,4 +24,35 @@
        <result property="updateTime" column="update_time"/>
        <result property="delFlag" column="del_flag"/>
  </resultMap>
    <select id="pageNew" resultType="com.by4cloud.platformx.device.entity.vo.PurchaseWinningLetterPageVo">
      select
         pwl.id,
         pto.order_name,
         pwl.winning_code,
         pwl.purchase_plan_code ,
         pwl.device_code,
         pwl.device_name,
         pwl.arrival_month,
         pwl.quantity,
         pwl.total_winning_amount,
         pwl.location_used,
         pwl.winning_bidder,
         pwl.winning_name
      from
         purchase_winning_letter pwl
            join purchase_tendr_order pto on
            pwl.order_id = pto.id
      where
         pwl.del_flag = '0'
      <if test="queryDTO.orderName != null and queryDTO.orderName !=''">
         and pto.order_name like CONCAT('%', #{queryDTO.orderName}, '%')
      </if>
      <if test="queryDTO.winningName != null and queryDTO.winningName !=''">
         and pwl.winning_name like CONCAT('%', #{queryDTO.winningName}, '%')
      </if>
      <if test="queryDTO.winningCode != null and queryDTO.winningCode !=''">
         and pwl.winning_code like CONCAT('%', #{queryDTO.winningCode}, '%')
      </if>
         order by pwl.create_time desc
   </select>
</mapper>