| | |
| | | <select id="queryPageList" resultType="cn.gistack.sm.sg.VO.SgGxVO"> |
| | | select * from YWXT.SG_GX gx where 1=1 and GX_TYPE not in('sgzb','sgys') |
| | | <if test="dto.gxType != null and dto.gxType != ''"> |
| | | and gx.gx_type LIKE CONCAT('%', #{dto.gxType}, '%') |
| | | and gx.gx_type = #{dto.gxType} |
| | | <if test="dto.childTypeList != null and !dto.childTypeList.isEmpty()"> |
| | | or gx.gx_type in |
| | | <foreach collection="dto.childTypeList" open="(" close=")" separator="," item="id"> |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | | </if> |
| | | <if test="dto.gxName != null and dto.gxName != ''"> |
| | | and gx.gx_name LIKE CONCAT('%', #{dto.gxName}, '%') |
| | | </if> |
| | | <if test="dto.childTypeList>0 and dto.childTypeList != null"> |
| | | and gx.gx_type in |
| | | <foreach collection="dto.childTypeList" open="(" close=")" separator="," item="id"> |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | | </select> |
| | | <select id="queryStepByIds" resultType="cn.gistack.sm.sg.DO.SgGxStepDO"> |
| | |
| | | select * from YWXT.SG_GX where id = #{id} |
| | | </select> |
| | | <select id="childType" resultType="java.lang.String"> |
| | | select id from "YWXT"."BLADE_DICT_BIZ" where parent_id = (select id from "YWXT"."BLADE_DICT_BIZ" where dict_key = #{gxType}); |
| | | select dict_key from "YWXT"."BLADE_DICT_BIZ" where parent_id = (select id from "YWXT"."BLADE_DICT_BIZ" where dict_key = #{gxType}); |
| | | </select> |
| | | </mapper> |