|
|
@ -160,6 +160,51 @@ order by create_date desc |
|
|
|
</where> |
|
|
|
order by u.create_date desc |
|
|
|
</select> |
|
|
|
<select id="getProjectAndChildInfoPageListNew" resultMap="HuzhouProjectinfoMap" parameterType="com.easy.admin.modules.huzhou.entity.HuzhouProjectinfo"> |
|
|
|
SELECT * from huzhou_projectinfo u |
|
|
|
<where> |
|
|
|
<include refid="selectAuthSql"/> |
|
|
|
<if test="info.projectName!=null and info.projectName!=''"> |
|
|
|
<bind name="tempStr" value="'%' + info.projectName + '%'" /> |
|
|
|
and u.project_name like #{tempStr} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="info.adminDivision!=null and info.adminDivision!=''"> |
|
|
|
<bind name="tempStr" value="'%' + info.adminDivision + '%'" /> |
|
|
|
and u.admin_division like #{tempStr} |
|
|
|
</if> |
|
|
|
<if test="info.dutyWorkplace!=null and info.dutyWorkplace!=''"> |
|
|
|
<bind name="tempStr" value="'%' + info.dutyWorkplace + '%'" /> |
|
|
|
and u.duty_workplace like #{tempStr} |
|
|
|
</if> |
|
|
|
<if test="info.workplaceProperties!=null and info.workplaceProperties!=''"> |
|
|
|
<bind name="tempStr" value="'%' + info.workplaceProperties + '%'" /> |
|
|
|
and u.workplace_properties like #{tempStr} |
|
|
|
</if> |
|
|
|
<if test="info.dutyWorkplace!=null and info.dutyWorkplace!=''"> |
|
|
|
<bind name="tempStr" value="'%' + info.dutyWorkplace + '%'" /> |
|
|
|
and u.duty_workplace like #{tempStr} |
|
|
|
</if> |
|
|
|
<if test="info.reformName!=null and info.reformName!=''"> |
|
|
|
and u.reform_name = #{info.reformName} |
|
|
|
</if> |
|
|
|
<if test="info.superLeader!=null and info.superLeader!=''"> |
|
|
|
and u.super_leader = #{info.superLeader} |
|
|
|
</if> |
|
|
|
<if test="info.stage!=null and info.stage!=''"> |
|
|
|
and u.stage >= #{info.stage} |
|
|
|
</if> |
|
|
|
<choose> |
|
|
|
<when test="stageList!=null"> |
|
|
|
and u.stage in |
|
|
|
<foreach item="stage" index="index" collection="stageList" open="(" separator="," close=")"> |
|
|
|
#{stage} |
|
|
|
</foreach> |
|
|
|
</when> |
|
|
|
</choose> |
|
|
|
</where> |
|
|
|
order by u.create_date desc |
|
|
|
</select> |
|
|
|
<select id="selectchildrenMapList" resultType="com.easy.admin.modules.huzhou.entity.HuzhouSubProjectinfo"> |
|
|
|
select * from huzhou_sub_projectinfo where project_id = #{id} order by create_date desc |
|
|
|
</select> |
|
|
|