shenyijian
2024-06-21 f20611265f7d34fd4fbcdfdaff6cb9cccd0b25fc
skjcmanager/skjcmanager-service/skjcmanager-sm/src/main/java/cn/gistack/sm/sg/mapper/SgProjectInfoMapper.xml
@@ -5,10 +5,10 @@
    <select id="queryPageList" resultType="cn.gistack.sm.sg.DO.SgProjectInfoDO">
        select * from YWXT.SG_PROJECT_INFO info where 1=1
        <if test="dto.projectName != null and dto.projectName != ''">
            and info.project_name = #{dto.projectName}
            and info.project_name like concat( concat ('%',#{dto.projectName}),'%')
        </if>
        <if test="dto.skName != null and dto.skName != ''">
            and info.sk_name = #{dto.skName}
            and info.sk_name like concat(concat('%',#{dto.skName}),'%')
        </if>
    </select>
    <select id="queryStepByProject" resultType="cn.gistack.sm.sg.VO.SgProjectInfoVO">
@@ -23,7 +23,10 @@
        d.id as dId,
        step.gx_step_name,
        step.gx_step_num,
        re.STATUS
        re.STATUS as reportStatus,
        d.STATUS as deviceStatus,
        pro.STATUS as projectStatus,
        re.id as reportId
        FROM
        ywxt.sg_project_info pro
        LEFT JOIN ywxt.sg_device d ON pro.id = d.program_id
@@ -46,6 +49,12 @@
            de.STATUS as deviceStatus
        FROM
            ywxt.sg_project_info pro
                LEFT JOIN ywxt.sg_device de ON pro.id = de.program_id
                LEFT JOIN ywxt.sg_device de ON pro.id = de.program_id where 1=1
    <if test="dto.status != null">
        and pro.status = #{dto.status}
    </if>
     <if test="dto.projectName != null and dto.projectName != ''">
         and pro.project_name like CONCAT(CONCAT('%',#{dto.projectName}),'%')
     </if>
    </select>
</mapper>