znpt-backend/core/src/main/resources/mapper/BiddingInfoMapper.xml

15 lines
824 B
XML
Raw Normal View History

2025-07-28 18:19:42 +08:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.dite.znpt.mapper.BiddingInfoMapper">
2025-07-28 23:35:44 +08:00
<select id="listBiddingInfoResp" resultType="com.dite.znpt.domain.vo.BiddingInfoResp">
2025-07-29 15:41:04 +08:00
SELECT bi.bidding_info_id, bi.bidding_project, bi.bidding_company, bi.bidding_amount, bi.bidding_deadline, bi.info_entry_time, bi.source, bi.source_website, ai.file_name, ai.attach_path
2025-07-28 23:35:44 +08:00
FROM bidding_info bi
LEFT JOIN attach_info ai ON bi.bidding_file_id = ai.attach_id
<where>
<if test="projectName != null and projectName != ''">
AND bi.bidding_project LIKE concat ('%', #{projectName}, '%')
</if>
</where>
</select>
2025-07-28 18:19:42 +08:00
</mapper>