63 changed files with 925 additions and 65 deletions
@ -0,0 +1,65 @@ |
|||
<?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.BsSgcDfDsjMapper"> |
|||
|
|||
<sql id="info"> |
|||
select sd.id,sd. dike_code,sd. dike_name,sd.year,sd. highest_level, sd.discharge_volume, |
|||
sd.abnormal_condition, sd.conclusion, sd.Supervise, |
|||
sj.adcd |
|||
from bs_sgc_df_dsj sd |
|||
left join att_dike_base sj on sd.dike_code = sj.dike_CODE |
|||
|
|||
</sql> |
|||
|
|||
<resultMap id="col" type="BsSgcDfDsj"> |
|||
<id property="id" column="id"/> |
|||
<result property="dikeCode" column="dike_code"/> |
|||
<result property="dikeName" column="dike_name"/> |
|||
<result property="year" column="year"/> |
|||
<result property="adcd" column="adcd"/> |
|||
<result property="highestLevel" column="highest_level"/> |
|||
<result property="dischargeVolume" column="discharge_volume"/> |
|||
<result property="abnormalCondition" column="abnormal_condition"/> |
|||
<result property="conclusion" column="conclusion"/> |
|||
<result property="Supervise" column="Supervise"/> |
|||
</resultMap> |
|||
|
|||
|
|||
|
|||
<select id="getList" resultMap="col"> |
|||
<bind name="pageNum" value="(pageNum-1)*pageSize"></bind> |
|||
<include refid="info"></include> |
|||
<where> |
|||
<if test="dikeName!=null and dikeName!=''"> |
|||
and sj.dike_NAME LIKE concat('%',#{dikeName},'%') |
|||
</if> |
|||
<if test="dikeCode != null and dikeCode != ''"> |
|||
and sj.dike_CODE = #{dikeCode} |
|||
</if> |
|||
<if test="adcd!=null and adcd !=''"> |
|||
and sj.adcd like concat(#{adcd},'%') |
|||
</if> |
|||
and sj.EXPR_DATE is null |
|||
</where> |
|||
order by sd.create_time desc LIMIT #{pageNum},#{pageSize}; |
|||
</select> |
|||
|
|||
<select id="getCount" resultMap="col"> |
|||
<bind name="pageNum" value="(pageNum-1)*pageSize"></bind> |
|||
<include refid="info"></include> |
|||
<where> |
|||
<if test="dikeName!=null and dikeName!=''"> |
|||
and sj.dike_NAME LIKE concat('%',#{dikeName},'%') |
|||
</if> |
|||
<if test="dikeCode != null and dikeCode != ''"> |
|||
and sj.dike_CODE = #{dikeCode} |
|||
</if> |
|||
<if test="adcd!=null and adcd !=''"> |
|||
and sj.adcd like concat(#{adcd},'%') |
|||
</if> |
|||
and sj.EXPR_DATE is null |
|||
</where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,60 @@ |
|||
<?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.BsSgcDfGltzMapper"> |
|||
|
|||
<sql id="info"> |
|||
select sd.id,sd.dike_code,sd. dike_name,sd. type, sd.file, |
|||
sj.adcd |
|||
from bs_sgc_df_gltz sd |
|||
left join att_dike_base sj on sd.dike_code = sj.dike_CODE |
|||
|
|||
</sql> |
|||
|
|||
<resultMap id="col" type="BsSgcDfYaxx"> |
|||
<id property="id" column="id"/> |
|||
<result property="dikeCode" column="dike_code"/> |
|||
<result property="dikeName" column="dike_name"/> |
|||
<result property="type" column="type"/> |
|||
<result property="file" column="file"/> |
|||
<result property="adcd" column="adcd"/> |
|||
</resultMap> |
|||
|
|||
|
|||
|
|||
<select id="getList" resultMap="col"> |
|||
<bind name="pageNum" value="(pageNum-1)*pageSize"></bind> |
|||
<include refid="info"></include> |
|||
<where> |
|||
<if test="dikeName!=null and dikeName!=''"> |
|||
and sj.dike_NAME LIKE concat('%',#{dikeName},'%') |
|||
</if> |
|||
<if test="dikeCode != null and dikeCode != ''"> |
|||
and sj.dike_CODE = #{dikeCode} |
|||
</if> |
|||
<if test="adcd!=null and adcd !=''"> |
|||
and sj.adcd like concat(#{adcd},'%') |
|||
</if> |
|||
and sj.EXPR_DATE is null |
|||
</where> |
|||
order by sd.create_time desc LIMIT #{pageNum},#{pageSize}; |
|||
</select> |
|||
|
|||
<select id="getCount" resultMap="col"> |
|||
<bind name="pageNum" value="(pageNum-1)*pageSize"></bind> |
|||
<include refid="info"></include> |
|||
<where> |
|||
<if test="dikeName!=null and dikeName!=''"> |
|||
and sj.dike_NAME LIKE concat('%',#{dikeName},'%') |
|||
</if> |
|||
<if test="dikeCode != null and dikeCode != ''"> |
|||
and sj.dike_CODE = #{dikeCode} |
|||
</if> |
|||
<if test="adcd!=null and adcd !=''"> |
|||
and sj.adcd like concat(#{adcd},'%') |
|||
</if> |
|||
and sj.EXPR_DATE is null |
|||
</where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,59 @@ |
|||
<?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.BsSgcDfGzscMapper"> |
|||
|
|||
<sql id="info"> |
|||
select sd.id,sd. dike_code,sd. dike_name, sd.file, |
|||
sj.adcd |
|||
from bs_sgc_df_gzsc sd |
|||
left join att_dike_base sj on sd.dike_code = sj.dike_CODE |
|||
|
|||
</sql> |
|||
|
|||
<resultMap id="col" type="BsSgcDfGzsc"> |
|||
<id property="id" column="id"/> |
|||
<result property="dikeCode" column="dike_code"/> |
|||
<result property="dikeName" column="dike_name"/> |
|||
<result property="file" column="file"/> |
|||
<result property="adcd" column="adcd"/> |
|||
</resultMap> |
|||
|
|||
|
|||
|
|||
<select id="getList" resultMap="col"> |
|||
<bind name="pageNum" value="(pageNum-1)*pageSize"></bind> |
|||
<include refid="info"></include> |
|||
<where> |
|||
<if test="dikeName!=null and dikeName!=''"> |
|||
and sj.dike_NAME LIKE concat('%',#{dikeName},'%') |
|||
</if> |
|||
<if test="dikeCode != null and dikeCode != ''"> |
|||
and sj.dike_CODE = #{dikeCode} |
|||
</if> |
|||
<if test="adcd!=null and adcd !=''"> |
|||
and sj.adcd like concat(#{adcd},'%') |
|||
</if> |
|||
and sj.EXPR_DATE is null |
|||
</where> |
|||
order by sd.create_time desc LIMIT #{pageNum},#{pageSize}; |
|||
</select> |
|||
|
|||
<select id="getCount" resultMap="col"> |
|||
<bind name="pageNum" value="(pageNum-1)*pageSize"></bind> |
|||
<include refid="info"></include> |
|||
<where> |
|||
<if test="dikeName!=null and dikeName!=''"> |
|||
and sj.dike_NAME LIKE concat('%',#{dikeName},'%') |
|||
</if> |
|||
<if test="dikeCode != null and dikeCode != ''"> |
|||
and sj.dike_CODE = #{dikeCode} |
|||
</if> |
|||
<if test="adcd!=null and adcd !=''"> |
|||
and sj.adcd like concat(#{adcd},'%') |
|||
</if> |
|||
and sj.EXPR_DATE is null |
|||
</where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,65 @@ |
|||
<?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.BsSgcSzDsjMapper"> |
|||
|
|||
<sql id="info"> |
|||
select sd.id,sd. waga_code,sd. waga_name,sd.year,sd. highest_level, sd.discharge_volume, |
|||
sd.abnormal_condition, sd.conclusion, sd.Supervise, |
|||
sj.adcd |
|||
from bs_sgc_sz_dsj sd |
|||
left join att_waga_base sj on sd.waga_code = sj.WAGA_CODE |
|||
|
|||
</sql> |
|||
|
|||
<resultMap id="col" type="BsSgcSzDsj"> |
|||
<id property="id" column="id"/> |
|||
<result property="wagaCode" column="waga_code"/> |
|||
<result property="wagaName" column="waga_name"/> |
|||
<result property="year" column="year"/> |
|||
<result property="adcd" column="adcd"/> |
|||
<result property="highestLevel" column="highest_level"/> |
|||
<result property="dischargeVolume" column="discharge_volume"/> |
|||
<result property="abnormalCondition" column="abnormal_condition"/> |
|||
<result property="conclusion" column="conclusion"/> |
|||
<result property="Supervise" column="Supervise"/> |
|||
</resultMap> |
|||
|
|||
|
|||
|
|||
<select id="getList" resultMap="col"> |
|||
<bind name="pageNum" value="(pageNum-1)*pageSize"></bind> |
|||
<include refid="info"></include> |
|||
<where> |
|||
<if test="wagaName!=null and wagaName!=''"> |
|||
and sj.WAGA_NAME LIKE concat('%',#{wagaName},'%') |
|||
</if> |
|||
<if test="wagaCode != null and wagaCode != ''"> |
|||
and sj.WAGA_CODE = #{wagaCode} |
|||
</if> |
|||
<if test="adcd!=null and adcd !=''"> |
|||
and sj.adcd like concat(#{adcd},'%') |
|||
</if> |
|||
and sj.EXPR_DATE is null |
|||
</where> |
|||
order by sd.create_time desc LIMIT #{pageNum},#{pageSize}; |
|||
</select> |
|||
|
|||
<select id="getCount" resultMap="col"> |
|||
<bind name="pageNum" value="(pageNum-1)*pageSize"></bind> |
|||
<include refid="info"></include> |
|||
<where> |
|||
<if test="wagaName!=null and wagaName!=''"> |
|||
and sj.WAGA_NAME LIKE concat('%',#{wagaName},'%') |
|||
</if> |
|||
<if test="wagaCode != null and wagaCode != ''"> |
|||
and sj.WAGA_CODE = #{wagaCode} |
|||
</if> |
|||
<if test="adcd!=null and adcd !=''"> |
|||
and sj.adcd like concat(#{adcd},'%') |
|||
</if> |
|||
and sj.EXPR_DATE is null |
|||
</where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,60 @@ |
|||
<?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.BsSgcSzGltzMapper"> |
|||
|
|||
<sql id="info"> |
|||
select sd.id,sd. waga_code,sd. waga_name,sd. type, sd.file, |
|||
sj.adcd |
|||
from bs_sgc_sz_gltz sd |
|||
left join att_waga_base sj on sd.waga_code = sj.WAGA_CODE |
|||
|
|||
</sql> |
|||
|
|||
<resultMap id="col" type="BsSgcSzYaxx"> |
|||
<id property="id" column="id"/> |
|||
<result property="wagaCode" column="waga_code"/> |
|||
<result property="wagaName" column="waga_name"/> |
|||
<result property="type" column="type"/> |
|||
<result property="file" column="file"/> |
|||
<result property="adcd" column="adcd"/> |
|||
</resultMap> |
|||
|
|||
|
|||
|
|||
<select id="getList" resultMap="col"> |
|||
<bind name="pageNum" value="(pageNum-1)*pageSize"></bind> |
|||
<include refid="info"></include> |
|||
<where> |
|||
<if test="wagaName!=null and wagaName!=''"> |
|||
and sj.WAGA_NAME LIKE concat('%',#{wagaName},'%') |
|||
</if> |
|||
<if test="wagaCode != null and wagaCode != ''"> |
|||
and sj.WAGA_CODE = #{wagaCode} |
|||
</if> |
|||
<if test="adcd!=null and adcd !=''"> |
|||
and sj.adcd like concat(#{adcd},'%') |
|||
</if> |
|||
and sj.EXPR_DATE is null |
|||
</where> |
|||
order by sd.create_time desc LIMIT #{pageNum},#{pageSize}; |
|||
</select> |
|||
|
|||
<select id="getCount" resultMap="col"> |
|||
<bind name="pageNum" value="(pageNum-1)*pageSize"></bind> |
|||
<include refid="info"></include> |
|||
<where> |
|||
<if test="wagaName!=null and wagaName!=''"> |
|||
and sj.WAGA_NAME LIKE concat('%',#{wagaName},'%') |
|||
</if> |
|||
<if test="wagaCode != null and wagaCode != ''"> |
|||
and sj.WAGA_CODE = #{wagaCode} |
|||
</if> |
|||
<if test="adcd!=null and adcd !=''"> |
|||
and sj.adcd like concat(#{adcd},'%') |
|||
</if> |
|||
and sj.EXPR_DATE is null |
|||
</where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,59 @@ |
|||
<?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.BsSgcSzGzscMapper"> |
|||
|
|||
<sql id="info"> |
|||
select sd.id,sd. waga_code,sd. waga_name, sd.file, |
|||
sj.adcd |
|||
from bs_sgc_sz_gzsc sd |
|||
left join att_waga_base sj on sd.waga_code = sj.WAGA_CODE |
|||
|
|||
</sql> |
|||
|
|||
<resultMap id="col" type="BsSgcSzGzsc"> |
|||
<id property="id" column="id"/> |
|||
<result property="wagaCode" column="waga_code"/> |
|||
<result property="wagaName" column="waga_name"/> |
|||
<result property="file" column="file"/> |
|||
<result property="adcd" column="adcd"/> |
|||
</resultMap> |
|||
|
|||
|
|||
|
|||
<select id="getList" resultMap="col"> |
|||
<bind name="pageNum" value="(pageNum-1)*pageSize"></bind> |
|||
<include refid="info"></include> |
|||
<where> |
|||
<if test="wagaName!=null and wagaName!=''"> |
|||
and sj.WAGA_NAME LIKE concat('%',#{wagaName},'%') |
|||
</if> |
|||
<if test="wagaCode != null and wagaCode != ''"> |
|||
and sj.WAGA_CODE = #{wagaCode} |
|||
</if> |
|||
<if test="adcd!=null and adcd !=''"> |
|||
and sj.adcd like concat(#{adcd},'%') |
|||
</if> |
|||
and sj.EXPR_DATE is null |
|||
</where> |
|||
order by sd.create_time desc LIMIT #{pageNum},#{pageSize}; |
|||
</select> |
|||
|
|||
<select id="getCount" resultMap="col"> |
|||
<bind name="pageNum" value="(pageNum-1)*pageSize"></bind> |
|||
<include refid="info"></include> |
|||
<where> |
|||
<if test="wagaName!=null and wagaName!=''"> |
|||
and sj.WAGA_NAME LIKE concat('%',#{wagaName},'%') |
|||
</if> |
|||
<if test="wagaCode != null and wagaCode != ''"> |
|||
and sj.WAGA_CODE = #{wagaCode} |
|||
</if> |
|||
<if test="adcd!=null and adcd !=''"> |
|||
and sj.adcd like concat(#{adcd},'%') |
|||
</if> |
|||
and sj.EXPR_DATE is null |
|||
</where> |
|||
</select> |
|||
</mapper> |
Loading…
Reference in new issue