<?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="cn.gistack.sm.sg.mapper.SgGxMapper">
|
|
<select id="queryPageList" resultType="cn.gistack.sm.sg.VO.SgGxVO">
|
select * from YWXT.SG_GX gx where 1=1
|
<if test="dto.gxType != null and dto.gxType != ''">
|
and gx.gx_type LIKE CONCAT('%', #{dto.gxType}, '%')
|
</if>
|
<if test="dto.gxName != null and dto.gxName != ''">
|
and gx.gx_name LIKE CONCAT('%', #{dto.gxName}, '%')
|
</if>
|
</select>
|
<select id="queryStepByIds" resultType="cn.gistack.sm.sg.DO.SgGxStepDO">
|
select * from YWXT.SG_GX_STEP step where 1=1
|
<if test="ids.size>0 and ids != null">
|
and step.gx_info_id in
|
<foreach collection="ids" open="(" close=")" separator="," item="id">
|
#{id}
|
</foreach>
|
</if>
|
</select>
|
<select id="selectByGxType" resultType="cn.gistack.sm.sg.VO.SgGxVO">
|
select * from YWXT.SG_GX where gx_type = #{gxType}
|
</select>
|
<select id="getById" resultType="cn.gistack.sm.sg.VO.SgGxVO">
|
select * from YWXT.SG_GX where id = #{id}
|
</select>
|
</mapper>
|