8 changed files with 93 additions and 8 deletions
@ -0,0 +1,45 @@ |
|||
<?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.kms.earlyStage.mapper.ProjectBidPrequMapper"> |
|||
|
|||
<sql id="info"> |
|||
select |
|||
project_name, |
|||
bp.* |
|||
|
|||
from bs_slgc_qqjd_pro_bid_prequ bp |
|||
left join bs_slgc_qqjd_spe_pro_proposal pp |
|||
on pp.pro_no = bp.pro_no and pp.project_code = bp.project_code |
|||
</sql> |
|||
|
|||
<resultMap id="ProjectBidPrequ" type="ProjectBidPrequ"> |
|||
<id property="id" column="id"/> |
|||
<result property="bidProjectName" column="project_name"/> |
|||
<result property="fileGainTime" column="FILE_GAIN_TIME"/> |
|||
<result property="reportTime" column="REPORT_TIME"/> |
|||
<result property="projectCode" column="project_code"/> |
|||
<result property="createTime" column="create_time"/> |
|||
</resultMap> |
|||
|
|||
|
|||
<select id="getList" resultMap="ProjectBidPrequ"> |
|||
<bind name="pageNum" value="(pageNum-1)*pageSize"></bind> |
|||
<include refid="info"/> |
|||
<where> |
|||
<if test="proNo!=null and proNo!=''"> |
|||
and bp.pro_no=#{proNo} |
|||
</if> |
|||
<if test="fileGainTime!=null"> |
|||
and FILE_GAIN_TIME=#{fileGainTime} |
|||
</if> |
|||
<if test="projectCode!=null and projectCode!=''"> |
|||
and bp.project_code like concat('%',#{projectCode},'%') |
|||
</if> |
|||
</where> |
|||
order by bp.${orderBy} desc LIMIT #{pageNum},#{pageSize}; |
|||
</select> |
|||
|
|||
|
|||
</mapper> |
Loading…
Reference in new issue