66 changed files with 1274 additions and 258 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.BsSgcDfBydyzbMapper"> |
||||
|
|
||||
|
<sql id="info"> |
||||
|
select sd.id, sd.dike_code, sd.power_type, sd.dike_name, sd.create_uid, sd.update_uid, sd.create_time, |
||||
|
sd.update_time, sd.ower_dept, sd.remark, sd.relation, |
||||
|
sj.* |
||||
|
from bs_sgc_df_bydyzb sd |
||||
|
left join att_dike_base sj on sd.dike_code = sj.dike_code |
||||
|
|
||||
|
</sql> |
||||
|
|
||||
|
<resultMap id="col" type="BsSgcDfBydyzb"> |
||||
|
<id property="id" column="id"/> |
||||
|
<result property="dikeCode" column="dike_code"/> |
||||
|
<result property="dikeName" column="dike_name"/> |
||||
|
<result property="powerType" column="power_type"/> |
||||
|
</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> |
||||
|
<if test="powerType != null and powerType != ''"> |
||||
|
and sd.power_type like concat(#{powerType},'%') |
||||
|
</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> |
||||
|
<if test="powerType != null and powerType != ''"> |
||||
|
and sd.power_type like concat(#{powerType},'%') |
||||
|
</if> |
||||
|
and sj.EXPR_DATE is null |
||||
|
</where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,78 @@ |
|||||
|
<?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.BsSgcDfFxwzMapper"> |
||||
|
|
||||
|
<sql id="info"> |
||||
|
select sd.id, sd.material_name, sd.person_name, sd.person_phone,sd.person_level, |
||||
|
sd.material_number, sd.procurement_time, sd.material_type,sd.shelf_life, |
||||
|
sj.* |
||||
|
from bs_sgc_df_fxwz sd |
||||
|
left join att_dike_base sj on sd.dike_code = sj.dike_code |
||||
|
|
||||
|
</sql> |
||||
|
|
||||
|
<resultMap id="col" type="BsSgcDfFxwz"> |
||||
|
<id property="id" column="id"/> |
||||
|
<result property="dikeCode" column="dike_code"/> |
||||
|
<result property="dikeName" column="dike_name"/> |
||||
|
<result property="materialName" column="material_name"/> |
||||
|
<result property="personName" column="person_name"/> |
||||
|
<result property="personPhone" column="person_phone"/> |
||||
|
<result property="personLevel" column="person_level"/> |
||||
|
<result property="materialNumber" column="material_number"/> |
||||
|
<result property="procurementTime" column="procurement_time"/> |
||||
|
<result property="materialType" column="material_type"/> |
||||
|
<result property="shelfLife" column="shelf_life"/> |
||||
|
</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> |
||||
|
<if test="materialName != null and materialName != ''"> |
||||
|
and sd.material_name like concat(#{materialName},'%') |
||||
|
</if> |
||||
|
<if test="personName != null and personName != ''"> |
||||
|
and sd.person_name like concat(#{personName},'%') |
||||
|
</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> |
||||
|
<if test="materialName != null and materialName != ''"> |
||||
|
and sd.material_name like concat(#{materialName},'%') |
||||
|
</if> |
||||
|
<if test="personName != null and personName != ''"> |
||||
|
and sd.person_name like concat(#{personName},'%') |
||||
|
</if> |
||||
|
and sj.EXPR_DATE is null |
||||
|
</where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,71 @@ |
|||||
|
<?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.BsSgcDfYaxxMapper"> |
||||
|
|
||||
|
<sql id="info"> |
||||
|
select sd.id, sd.dike_id, sd.dike_code, sd.dike_name, sd.dike_type, |
||||
|
sd.engineer_scale, sd.person_name, sd.type, sd.implementation_time, sd.plan_content, sd.photo, |
||||
|
sj.* |
||||
|
from bs_sgc_df_yaxx 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="dikeType" column="dike_type"/> |
||||
|
<result property="engineerScale" column="engineer_scale"/> |
||||
|
<result property="personName" column="person_name"/> |
||||
|
<result property="type" column="type"/> |
||||
|
<result property="implementationTime" column="implementation_time"/> |
||||
|
<result property="planContent" column="plan_content"/> |
||||
|
<result property="photo" column="photo"/> |
||||
|
</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> |
||||
|
<if test="type != null and type != ''"> |
||||
|
and sd.type like concat(#{type},'%') |
||||
|
</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> |
||||
|
<if test="type != null and type != ''"> |
||||
|
and sd.type like concat(#{type},'%') |
||||
|
</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.BsSgcSzBydyzbMapper"> |
||||
|
|
||||
|
<sql id="info"> |
||||
|
select sd.id, sd.waga_code, sd.power_type, sd.waga_name, sd.create_uid, sd.update_uid, sd.create_time, |
||||
|
sd.update_time, sd.ower_dept, sd.remark, sd.relation, |
||||
|
sj.* |
||||
|
from bs_sgc_sz_bydyzb sd |
||||
|
left join att_waga_base sj on sd.waga_code = sj.WAGA_CODE |
||||
|
|
||||
|
</sql> |
||||
|
|
||||
|
<resultMap id="col" type="BsSgcSzBydyzb"> |
||||
|
<id property="id" column="id"/> |
||||
|
<result property="wagaCode" column="waga_code"/> |
||||
|
<result property="wagaName" column="waga_name"/> |
||||
|
<result property="powerType" column="power_type"/> |
||||
|
</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> |
||||
|
<if test="powerType != null and powerType != ''"> |
||||
|
and sd.power_type like concat(#{powerType},'%') |
||||
|
</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> |
||||
|
<if test="powerType != null and powerType != ''"> |
||||
|
and sd.power_type like concat(#{powerType},'%') |
||||
|
</if> |
||||
|
and sj.EXPR_DATE is null |
||||
|
</where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,77 @@ |
|||||
|
<?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.BsSgcSzFxwzMapper"> |
||||
|
|
||||
|
<sql id="info"> |
||||
|
select sd.id, sd.material_name, sd.person_name, sd.person_phone,sd.person_level, |
||||
|
sd.material_number, sd.procurement_time, sd.material_type,sd.shelf_life, |
||||
|
sj.* |
||||
|
from bs_sgc_sz_fxwz sd |
||||
|
left join att_waga_base sj on sd.waga_code = sj.waga_code |
||||
|
|
||||
|
</sql> |
||||
|
|
||||
|
<resultMap id="col" type="BsSgcSzFxwz"> |
||||
|
<id property="id" column="id"/> |
||||
|
<result property="wagaCode" column="waga_code"/> |
||||
|
<result property="wagaName" column="waga_name"/> |
||||
|
<result property="materialName" column="material_name"/> |
||||
|
<result property="personName" column="person_name"/> |
||||
|
<result property="personPhone" column="person_phone"/> |
||||
|
<result property="personLevel" column="person_level"/> |
||||
|
<result property="materialNumber" column="material_number"/> |
||||
|
<result property="procurementTime" column="procurement_time"/> |
||||
|
<result property="materialType" column="material_type"/> |
||||
|
<result property="shelfLife" column="shelf_life"/> |
||||
|
</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> |
||||
|
<if test="materialName != null and materialName != ''"> |
||||
|
and sd.material_name like concat(#{materialName},'%') |
||||
|
</if> |
||||
|
<if test="personName != null and personName != ''"> |
||||
|
and sd.person_name like concat(#{personName},'%') |
||||
|
</if> |
||||
|
and sj.EXPR_DATE is null |
||||
|
</where> |
||||
|
order by sd.create_time desc LIMIT #{pageNum},#{pageSize}; |
||||
|
</select> |
||||
|
|
||||
|
<select id="getCount" resultMap="col"> |
||||
|
<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> |
||||
|
<if test="materialName != null and materialName != ''"> |
||||
|
and sd.material_name like concat(#{materialName},'%') |
||||
|
</if> |
||||
|
<if test="personName != null and personName != ''"> |
||||
|
and sd.person_name like concat(#{personName},'%') |
||||
|
</if> |
||||
|
and sj.EXPR_DATE is null |
||||
|
</where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,71 @@ |
|||||
|
<?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.BsSgcSzYaxxMapper"> |
||||
|
|
||||
|
<sql id="info"> |
||||
|
select sd.id, sd.waga_id, sd.waga_code, sd.waga_name, sd.waga_type, |
||||
|
sd.engineer_scale, sd.person_name, sd.type, sd.implementation_time, sd.plan_content, sd.photo, |
||||
|
sj.* |
||||
|
from bs_sgc_sz_yaxx 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="wagaType" column="waga_type"/> |
||||
|
<result property="engineerScale" column="engineer_scale"/> |
||||
|
<result property="personName" column="person_name"/> |
||||
|
<result property="type" column="type"/> |
||||
|
<result property="implementationTime" column="implementation_time"/> |
||||
|
<result property="planContent" column="plan_content"/> |
||||
|
<result property="photo" column="photo"/> |
||||
|
</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> |
||||
|
<if test="type != null and type != ''"> |
||||
|
and sd.type like concat(#{type},'%') |
||||
|
</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> |
||||
|
<if test="type != null and type != ''"> |
||||
|
and sd.type like concat(#{type},'%') |
||||
|
</if> |
||||
|
and sj.EXPR_DATE is null |
||||
|
</where> |
||||
|
</select> |
||||
|
</mapper> |
Loading…
Reference in new issue