13 changed files with 334 additions and 0 deletions
@ -0,0 +1,45 @@ |
|||
<?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.BsSgcDfBzhjsMapper"> |
|||
|
|||
<sql id="info"> |
|||
select * |
|||
from bs_sgc_df_bzhjs sf |
|||
left join bs_sgc_df_safe_jbxx sj on sf.dike_code = sj.dike_code |
|||
|
|||
</sql> |
|||
|
|||
<resultMap id="col" type="BsSgcDfBzhjs"> |
|||
<id property="id" column="id"/> |
|||
<result property="dikeCode" column="dike_code"/> |
|||
<result property="dikeName" column="dike_name"/> |
|||
<result property="dikeType" column="dike_type"/> |
|||
<result property="unit" column="ADM_DEP"/> |
|||
<result property="engScal" column="eng_scal"/> |
|||
<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="dikeType!=null and dikeType!=''"> |
|||
and sj.dike_type = #{dikeType} |
|||
</if> |
|||
<if test="dikeName!=null and dikeName!=''"> |
|||
and sj.dike_name LIKE concat('%',#{dikeName},'%') |
|||
</if> |
|||
|
|||
<if test="adcd!=null and adcd !=''"> |
|||
and sj.adcd like concat(#{adcd},'%') |
|||
</if> |
|||
<if test="id!=null and id!=''"> |
|||
and sf.id=#{id} |
|||
</if> |
|||
</where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,47 @@ |
|||
<?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.BsSgcDfDaglMapper"> |
|||
|
|||
<sql id="info"> |
|||
select * |
|||
from bs_sgc_df_dagl sd |
|||
left join bs_sgc_df_safe_jbxx sj on sd.dike_code = sj.dike_code |
|||
|
|||
</sql> |
|||
|
|||
<resultMap id="col" type="BsSgcDfDagl"> |
|||
<id property="id" column="id"/> |
|||
<result property="dikeCode" column="dike_code"/> |
|||
<result property="dikeName" column="dike_name"/> |
|||
<result property="dikeType" column="dike_type"/> |
|||
<result property="unit" column="ADM_DEP"/> |
|||
<result property="engScal" column="eng_scal"/> |
|||
<result property="adcd" column="adcd"/> |
|||
<result property="regulationsAttachment" column="regulations_attachment"/> |
|||
<result property="planAttachment" column="plan_attachment"/> |
|||
</resultMap> |
|||
|
|||
|
|||
|
|||
<select id="getList" resultMap="col"> |
|||
<bind name="pageNum" value="(pageNum-1)*pageSize"></bind> |
|||
<include refid="info"></include> |
|||
<where> |
|||
<if test="dikeType!=null and dikeType!=''"> |
|||
and sj.dike_type = #{dikeType} |
|||
</if> |
|||
<if test="dikeName!=null and dikeName!=''"> |
|||
and sj.dike_name LIKE concat('%',#{dikeName},'%') |
|||
</if> |
|||
|
|||
<if test="adcd!=null and adcd !=''"> |
|||
and sj.adcd like concat(#{adcd},'%') |
|||
</if> |
|||
<if test="id!=null and id!=''"> |
|||
and sd.id=#{id} |
|||
</if> |
|||
</where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,45 @@ |
|||
<?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.BsSgcDfJfglMapper"> |
|||
|
|||
<sql id="info"> |
|||
select * |
|||
from bs_sgc_df_jfgl sf |
|||
left join bs_sgc_df_safe_jbxx sj on sf.dike_code = sj.dike_code |
|||
|
|||
</sql> |
|||
|
|||
<resultMap id="col" type="BsSgcDfJfgl"> |
|||
<id property="id" column="id"/> |
|||
<result property="dikeCode" column="dike_code"/> |
|||
<result property="dikeName" column="dike_name"/> |
|||
<result property="dikeType" column="dike_type"/> |
|||
<result property="unit" column="ADM_DEP"/> |
|||
<result property="engScal" column="eng_scal"/> |
|||
<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="dikeType!=null and dikeType!=''"> |
|||
and sj.dike_type = #{dikeType} |
|||
</if> |
|||
<if test="dikeName!=null and dikeName!=''"> |
|||
and sj.dike_name LIKE concat('%',#{dikeName},'%') |
|||
</if> |
|||
|
|||
<if test="adcd!=null and adcd !=''"> |
|||
and sj.adcd like concat(#{adcd},'%') |
|||
</if> |
|||
<if test="id!=null and id!=''"> |
|||
and sf.id=#{id} |
|||
</if> |
|||
</where> |
|||
</select> |
|||
</mapper> |
Loading…
Reference in new issue