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.
33 lines
1.3 KiB
33 lines
1.3 KiB
<?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.df.mapper.BsSgcDfBzbpMapper">
|
|
|
|
|
|
<resultMap type="com.kms.yg.df.domain.BsSgcDfBzbp" id="Result">
|
|
<id property="id" column="id" />
|
|
<result property="embankmentName" column="embankment_name" />
|
|
<result property="adcd" column="adcd" />
|
|
<result property="number" column="number" />
|
|
<result property="embankmentCode" column="embankment_code" />
|
|
|
|
</resultMap>
|
|
|
|
<select id="selectList1" resultMap="Result">
|
|
<bind name="pageNum" value="(pageNum-1)*pageSize"></bind>
|
|
SELECT embankment_name, adcd, COUNT(1) number,embankment_code
|
|
FROM bs_sgc_df_bzbp
|
|
<where>
|
|
<if test="embankmentName != null and embankmentName != ''">
|
|
embankment_name like concat('%', #{embankmentName}, '%')
|
|
</if>
|
|
<if test="adcd != null and adcd != ''">
|
|
and adcd like concat(#{adcd},'%')
|
|
</if>
|
|
</where>
|
|
GROUP BY embankment_code
|
|
ORDER BY create_time DESC
|
|
LIMIT #{pageNum}, #{pageSize}
|
|
</select>
|
|
</mapper>
|
|
|