| | |
| | | <if test="dto.skName != null and dto.skName != ''"> |
| | | and info.sk_name like concat(concat('%',#{dto.skName}),'%') |
| | | </if> |
| | | <if test="dto.lot != null and dto.lot != ''"> |
| | | and info.lot = #{dto.lot} |
| | | </if> |
| | | <if test="dto.resCd != null and dto.resCd != '' "> |
| | | and info.sk_id like CONCAT(CONCAT('%', #{dto.resCd}), '%') |
| | | </if> |
| | |
| | | </if> |
| | | <if test="dto.isBegin != null and dto.isBegin == 2"> |
| | | and info.status = 0 |
| | | </if> |
| | | <if test="dto.buildStage != null and dto.buildStage != ''"> |
| | | and info.build_stage = #{dto.buildStage} |
| | | </if> |
| | | <if test="dto.projectIds != null and dto.projectIds.size > 0"> |
| | | and info.id in |
| | |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | | ORDER BY pro.status desc ,pro.project_progress desc |
| | | |
| | | </select> |
| | | <select id="progressList" resultType="cn.gistack.sm.sg.VO.SgProjectInfoVO"> |
| | | SELECT |
| | |
| | | pro.deviceStatus, |
| | | pro.projectStatus, |
| | | pro.reportId, |
| | | pro.lon_lat |
| | | from |
| | | pro.lon_lat, |
| | | pro.project_progress |
| | | from |
| | | (SELECT |
| | | pro.id, |
| | | pro.project_name, |
| | |
| | | pro.lon_lat, |
| | | dria."county_cd" AS countyCode, |
| | | att."guid" AS cityCode, |
| | | ad."ad_code" AS provinceCode |
| | | ad."ad_code" AS provinceCode, |
| | | pro.project_progress |
| | | FROM |
| | | ywxt.sg_project_info pro |
| | | LEFT JOIN ywxt.sg_device d ON pro.id = d.program_id |
| | |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | | ORDER BY pro.projectStatus desc ,pro.project_progress desc |
| | | </select> |
| | | <select id="selectVOById" resultType="cn.gistack.sm.sg.VO.SgProjectInfoVO"> |
| | | select * from ywxt.sg_project_info pro where pro.id = #{proframId} |
| | |
| | | WHERE u.id = #{userId} |
| | | |
| | | </select> |
| | | <select id="queryDept" resultType="cn.gistack.sm.sg.VO.SgAllDeptOrUser"> |
| | | select id,full_name as name from "YWXT"."BLADE_DEPT" |
| | | </select> |
| | | <select id="queryUser" resultType="cn.gistack.sm.sg.VO.SgAllDeptOrUser"> |
| | | select id,real_name as name from "YWXT"."BLADE_USER"; |
| | | </select> |
| | | <select id="projectTree" resultType="cn.gistack.sm.sg.VO.SgProjectTreeVO"> |
| | | SELECT |
| | | info.id, |
| | | dria."city_nm", |
| | | dria."province_nm", |
| | | dria."county_nm", |
| | | dria."res_nm" |
| | | FROM |
| | | YWXT.SG_PROJECT_INFO info |
| | | LEFT JOIN SJZT_DW."dim_res_info_a" dria ON dria."res_cd" = info.sk_id |
| | | WHERE |
| | | 1 =1 |
| | | <if test="dto.buildStage != null and dto.buildStage != ''"> |
| | | and info.build_stage = #{dto.buildStage} |
| | | </if> |
| | | </select> |
| | | </mapper> |