You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
2.2 KiB
58 lines
2.2 KiB
1 year ago
|
<?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="com.kms.yg.sz.mapper.BsSgcSzFzrMapper">
|
||
|
|
||
|
<sql id="info">
|
||
|
select sj.waga_name,
|
||
|
sf.*
|
||
|
from bs_sgc_sz_fzr sf
|
||
|
left join bs_sgc_sz_safe_jbxx sj on sf.waga_id = sj.id
|
||
|
</sql>
|
||
|
|
||
|
|
||
|
<resultMap type="BsSgcSzFzr" id="BsSgcSzFzr">
|
||
|
<id property="id" column="id" />
|
||
|
<result property="wagaName" column="waga_name"/>
|
||
|
<result property="name" column="name"/>
|
||
|
<result property="unit" column="unit"/>
|
||
|
<result property="duties" column="duties"/>
|
||
|
<result property="phone" column="phone"/>
|
||
|
<result property="type" column="type"/>
|
||
|
<result property="competentDepartment" column="competent_department"/>
|
||
|
<result property="competentDepartmentDuties" column="competent_department_duties"/>
|
||
|
<result property="effectiveDate" column="effective_date"/>
|
||
|
<result property="createTime" column="create_time"/>
|
||
|
</resultMap>
|
||
|
|
||
|
<!--<select id="selectList1" resultMap="Result">
|
||
|
<bind name="pageNum" value="(pageNum-1)*pageSize"></bind>
|
||
|
SELECT sluice_name, adcd, COUNT(1) number,sluice_code
|
||
|
FROM bs_sgc_sz_bzbp
|
||
|
<where>
|
||
|
<if test="sluiceName != null and sluiceName != ''">
|
||
|
sluice_name like concat('%', #{sluiceName}, '%')
|
||
|
</if>
|
||
|
<if test="adcd != null and adcd != ''">
|
||
|
and adcd like concat(#{adcd},'%')
|
||
|
</if>
|
||
|
</where>
|
||
|
GROUP BY sluice_code
|
||
|
ORDER BY create_time DESC
|
||
|
LIMIT #{pageNum}, #{pageSize}
|
||
|
</select>-->
|
||
|
|
||
|
<select id="getList" resultMap="BsSgcSzFzr">
|
||
|
<bind name="pageNum" value="(pageNum-1)*pageSize"></bind>
|
||
|
<include refid="info"></include>
|
||
|
<where>
|
||
|
<if test="wagaId!=null and wagaId!=''">
|
||
|
and waga_id =#{wagaId}
|
||
|
</if>
|
||
|
<include refid="com.kms.system.mapper.SysXzqhMapper.xzqhCondition"></include>
|
||
|
</where>
|
||
|
order by ${orderBy} desc LIMIT #{pageNum},#{pageSize};
|
||
|
</select>
|
||
|
</mapper>
|