Merge branch 'develop_master' into develop_3

This commit is contained in:
zhaokaiyao@91isoft.com
2021-11-19 14:29:43 +08:00
185 changed files with 10131 additions and 523 deletions
@@ -0,0 +1,209 @@
<?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.adc.da.slrs.esRevisePlan.dao.EsRevisePlanDao">
<sql id="pages">
<if test=" null != pageSize ">
LIMIT ${(page-1) * pageSize},${pageSize}
</if>
</sql>
<!-- 基础信息-->
<sql id="BaseInfo">
id,
es_name,
plan_status,
revise_status,
drafter,
res_person,
wg_leader,
draft_time,
release_time,
unit
</sql>
<resultMap id="BaseInfoMap" type="com.adc.da.slrs.esRevisePlan.entity.EsRevisePlan">
<id property="id" column="id"></id>
<result property="esName" column="es_name"></result>
<result property="planStatus" column="plan_status"></result>
<result property="reviseStatus" column="revise_status"></result>
<result property="drafter" column="drafter"></result>
<result property="resPerson" column="res_person"></result>
<result property="wgLeader" column="wg_leader"></result>
<result property="draftTime" column="draft_time"></result>
<result property="releaseTime" column="release_time"></result>
<result property="unit" column="unit"></result>
</resultMap>
<!-- 查询条件-->
<sql id="Conditions">
<where>
<if test="esName != null and esName != ''">
and es_name like concat('%',#{esName},'%')
</if>
<if test="planStatus != null and planStatus != ''">
and plan_status = #{planStatus}
</if>
<if test="reviseStatus != null and reviseStatus != ''">
and revise_status = #{reviseStatus}
</if>
<if test="drafter != null and drafter != ''">
and drafter = #{drafter}
</if>
<if test="resPerson != null and resPerson != ''">
and res_person = #{resPerson}
</if>
<if test="wgLeader != null and wgLeader != ''">
and wg_leader = #{wgLeader}
</if>
<if test="draftTime != null">
and DATE_FORMAT(draft_time,'%Y-%m-%d')=DATE_FORMAT(#{draftTime},'%Y-%m-%d')
</if>
<if test="releaseTime != null">
and DATE_FORMAT(release_time,'%Y-%m-%d')=DATE_FORMAT(#{releaseTime},'%Y-%m-%d')
</if>
<if test="unit != null and unit != ''">
and unit like concat('%',#{unit},'%')
</if>
</where>
</sql>
<select id="getTotal" resultType="java.lang.Integer" >
select count(*) from es_revise_plan
</select>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.esRevisePlan.entity.EsRevisePlan" resultType="java.lang.Integer" >
select count(*) from es_revise_plan
<include refid="Conditions"></include>
</select>
<!-- 查询所有-->
<select id="selectAll" resultMap="BaseInfoMap" >
select <include refid="BaseInfo"></include> from es_revise_plan
<include refid="pages">
</include>
</select>
<!-- 多条件查询-->
<select id="queryAll" parameterType="com.adc.da.slrs.esRevisePlan.entity.EsRevisePlan" resultMap="BaseInfoMap">
select <include refid="BaseInfo"></include> from es_revise_plan
<include refid="Conditions">
</include>
<include refid="pages">
</include>
</select>
<!-- 查询详情-->
<select id="selectOne" parameterType="java.lang.String" resultMap="BaseInfoMap">
select <include refid="BaseInfo"></include> from es_revise_plan
where id = #{id}
</select>
<!-- 修改-->
<update id="updateOne" parameterType="com.adc.da.slrs.esRevisePlan.entity.EsRevisePlan">
update es_revise_plan
<set>
<if test="id != null and id != ''">
id = #{id},
</if>
<if test="esName != null and esName != ''">
es_name = #{esName},
</if>
<if test="planStatus != null and planStatus != ''">
plan_status = #{planStatus},
</if>
<if test="reviseStatus != null and reviseStatus != ''">
revise_status = #{reviseStatus},
</if>
<if test="drafter != null and drafter != ''">
drafter = #{drafter},
</if>
<if test="resPerson != null and resPerson != ''">
res_person = #{resPerson},
</if>
<if test="wgLeader != null and wgLeader != ''">
wg_leader = #{wgLeader},
</if>
<if test="draftTime != null">
draft_time = #{draftTime},
</if>
<if test="releaseTime != null">
release_time = #{releaseTime},
</if>
<if test="unit != null and unit != ''">
unit = #{unit},
</if>
</set>
where id = #{id}
</update>
<!-- 插入一条数据-->
<insert id="insertOne" parameterType="com.adc.da.slrs.esRevisePlan.entity.EsRevisePlan">
insert into es_revise_plan
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
id,
</if>
<if test="esName != null and esName != ''">
es_name,
</if>
<if test="planStatus != null and planStatus != ''">
plan_status,
</if>
<if test="reviseStatus != null and reviseStatus != ''">
revise_status,
</if>
<if test="drafter != null and drafter != ''">
drafter,
</if>
<if test="resPerson != null and resPerson != ''">
res_person,
</if>
<if test="wgLeader != null and wgLeader != ''">
wg_leader,
</if>
<if test="draftTime != null">
draft_time,
</if>
<if test="releaseTime != null">
release_time,
</if>
<if test="unit != null and unit != ''">
unit,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
#{id},
</if>
<if test="esName != null and esName != ''">
#{esName},
</if>
<if test="planStatus != null and planStatus != ''">
#{planStatus},
</if>
<if test="reviseStatus != null and reviseStatus != ''">
#{reviseStatus},
</if>
<if test="drafter != null and drafter != ''">
#{drafter},
</if>
<if test="resPerson != null and resPerson != ''">
#{resPerson},
</if>
<if test="wgLeader != null and wgLeader != ''">
#{wgLeader},
</if>
<if test="draftTime != null">
#{draftTime},
</if>
<if test="releaseTime != null">
#{releaseTime},
</if>
<if test="unit != null and unit != ''">
#{unit},
</if>
</trim>
</insert>
<!-- 删除-->
<delete id="deleteOne" parameterType="java.lang.String">
delete from es_revise_plan where id = #{id}
</delete>
<!-- 批量删除-->
<delete id="deleteBatch" parameterType="java.lang.String">
delete from es_revise_plan where id in
<foreach collection="array" item="id" open="(" close=")" separator=",">
#{id}
</foreach>
</delete>
</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.adc.da.slrs.sapMeetInfo.dao.SapMeetingDao">
<sql id="BaseSelect">
id,title,date,content,type,attend,files
</sql>
<sql id="Search">
type = #{type}
</sql>
<insert id="insertMeeting" parameterType="com.adc.da.slrs.sapMeetInfo.entity.SapMeeting">
insert into sap_meeting
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="title != null">title,</if>
<if test="date != null">date,</if>
<if test="content != null">content,</if>
<if test="type != null">type,</if>
<if test="attend != null">attend,</if>
<if test="files != null">files,</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="title != null">#{title},</if>
<if test="date != null">#{date},</if>
<if test="content != null">#{content},</if>
<if test="type != null">#{type},</if>
<if test="attend != null">#{attend},</if>
<if test="files != null">#{files},</if>
</trim>
</insert>
<select id="selectMeetingsByDate" resultType="com.adc.da.slrs.sapMeetInfo.entity.SapMeeting" parameterType="java.util.Map">
select <include refid="BaseSelect"></include>
from sap_meeting
where date_format(date,'%Y%m%d') = date_format(#{date},'%Y%m%d')
and <include refid="Search"></include>
order by date
</select>
<select id="selectMeetingsByMonth" resultType="com.adc.da.slrs.sapMeetInfo.entity.SapMeeting" parameterType="java.util.Date">
select <include refid="BaseSelect"></include>
from sap_meeting
where DATE_FORMAT(date,'%Y-%m')=DATE_FORMAT(#{date},'%Y-%m')
and type = 1
</select>
<select id="selectMeetingsByMonthType" resultType="com.adc.da.slrs.sapMeetInfo.entity.SapMeeting" parameterType="java.util.Map">
select <include refid="BaseSelect"></include>
from sap_meeting
where DATE_FORMAT(date,'%Y-%m')=DATE_FORMAT(#{date},'%Y-%m')
and <include refid="Search"></include>
</select>
<select id="selectMeetingById" resultType="com.adc.da.slrs.sapMeetInfo.entity.SapMeeting" parameterType="java.lang.String">
select <include refid="BaseSelect"></include>
from sap_meeting
where id = #{id}
and <include refid="Search"></include>
</select>
<delete id="deleteById">
</delete>
<delete id="deleteByDate">
</delete>
<update id="updateMeeting">
</update>
</mapper>
@@ -54,7 +54,7 @@
<sql id="Group_Column_List_show" >
stand_status, replaced_stand_num, replace_stand_num,put_time,
issue_time, stand_en_name, stand_name, stand_code,
issue_time, stand_en_name, stand_name, stand_code,standStatusShow,
SAR_BUSSIONESS_STAND.id
</sql>
@@ -348,10 +348,67 @@
<!-- 分页查询条件 -->
<sql id="standSort_in">
ORDER BY
<if test='orderByA != null and orderByA != "" and order1 != null and order1 != ""'>
${orderByA} ${order1},
</if>
CASE
when tmp_tb.stand_code like concat('%', 'Q/FT A', '%') THEN 0
when tmp_tb.stand_code like concat('%', 'Q/FT B', '%') THEN 1
when tmp_tb.stand_code like concat('%', 'Q/FT E', '%') THEN 2
when tmp_tb.stand_code like concat('%', 'Q/FT F', '%') THEN 3
when tmp_tb.stand_code like concat('%', 'Q/FT G', '%') THEN 4
when tmp_tb.stand_code like concat('%', 'Q/FT M', '%') THEN 5
when tmp_tb.stand_code like concat('%', 'Q/FT Q', '%') THEN 6
when tmp_tb.stand_code like concat('%', 'Q/FT R', '%') THEN 7
when tmp_tb.stand_code like concat('%', 'Q/FT S', '%') THEN 8
when tmp_tb.stand_code like concat('%', 'Q/FT T', '%') THEN 9
when tmp_tb.stand_code like concat('%', 'Q/FT V', '%') THEN 10
when tmp_tb.stand_code like concat('%', 'Q/FT X', '%') THEN 11
when tmp_tb.stand_code like concat('%', 'Q/FT Y', '%') THEN 12
when tmp_tb.stand_code like concat('%', 'Q/FT Z', '%') THEN 13
when tmp_tb.stand_code like concat('%', 'Q/QCBFC', '%') THEN 14
when tmp_tb.stand_code like concat('%', '雷萨企标Q/FL', '%') THEN 15
when tmp_tb.stand_code like concat('%', 'Q/QCFLC', '%') THEN 16
ELSE 17
END,
tmp_tb.stand_sort ASC
</sql>
<sql id="standSort_out">
ORDER BY
CASE
when tmp_tb.stand_code like concat('%', 'Q/FT A', '%') THEN 0
when tmp_tb.stand_code like concat('%', 'Q/FT B', '%') THEN 1
when tmp_tb.stand_code like concat('%', 'Q/FT E', '%') THEN 2
when tmp_tb.stand_code like concat('%', 'Q/FT F', '%') THEN 3
when tmp_tb.stand_code like concat('%', 'Q/FT G', '%') THEN 4
when tmp_tb.stand_code like concat('%', 'Q/FT M', '%') THEN 5
when tmp_tb.stand_code like concat('%', 'Q/FT Q', '%') THEN 6
when tmp_tb.stand_code like concat('%', 'Q/FT R', '%') THEN 7
when tmp_tb.stand_code like concat('%', 'Q/FT S', '%') THEN 8
when tmp_tb.stand_code like concat('%', 'Q/FT T', '%') THEN 9
when tmp_tb.stand_code like concat('%', 'Q/FT V', '%') THEN 10
when tmp_tb.stand_code like concat('%', 'Q/FT X', '%') THEN 11
when tmp_tb.stand_code like concat('%', 'Q/FT Y', '%') THEN 12
when tmp_tb.stand_code like concat('%', 'Q/FT Z', '%') THEN 13
when tmp_tb.stand_code like concat('%', 'Q/QCBFC', '%') THEN 14
when tmp_tb.stand_code like concat('%', '雷萨企标Q/FL', '%') THEN 15
when tmp_tb.stand_code like concat('%', 'Q/QCFLC', '%') THEN 16
ELSE 17
END,
tmp_tb.stand_sort ASC,
tmp_tb.issue_time is null,tmp_tb.issue_time desc,tmp_tb.id
</sql>
<sql id="SarBussionInfo_Where_Clause">
left join SAR_BUSS_STAND_MENU ON SAR_BUSSIONESS_STAND.id = SAR_BUSS_STAND_MENU.buss_stand_id
left join TS_RESOURCE on SAR_BUSS_STAND_MENU.menu_id = TS_RESOURCE.id
left join SAR_BUSS_STAND_ATTR_INFO on (SAR_BUSS_STAND_ATTR_INFO.STAND_ID = SAR_BUSSIONESS_STAND.id and SAR_BUSS_STAND_ATTR_INFO.valid_flag=0)
LEFT JOIN TS_DICTYPE dicstandTextStatus ON (
dicstandTextStatus.dic_type_code = SAR_BUSSIONESS_STAND.text_status_buss
AND dicstandTextStatus.dic_id IS NOT NULL
AND dicstandTextStatus.valid_flag = 0
)
where 1=1
<trim suffixOverrides="," >
@@ -575,17 +632,15 @@
<select id="getBussionessStandInfoPage" resultMap="BaseResultMap" parameterType="com.adc.da.slrs.sarStandardsInfo.entity.SarBussionessStandEOPage">
select * from
(select tmp_tb.* from
(select <include refid="Base_Column_List_show" />
(select
dicstandTextStatus.DIC_TYPE_NAME AS standStatusShow,
<include refid="Base_Column_List_show" />
from SAR_BUSSIONESS_STAND
<include refid="SarBussionInfo_Where_Clause"/>
GROUP BY <include refid="Group_Column_List_show"/>
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
${pager.orderCondition}
</if>
<if test="sql != null and sql != ''" >
ORDER BY ${sql}
</if>
) tmp_tb limit ${pager.startIndex-1},${pageSize}) a
GROUP BY standStatusShow,<include refid="Group_Column_List_show"/>
) tmp_tb
<include refid="standSort_in"/>
limit ${pager.startIndex-1},${pageSize}) a
</select>
<!-- 企标复审使用-->
@@ -626,13 +681,13 @@
<!-- 条件查询后,用于导出标准信息数据-->
<select id="getSarBussionessStand" resultMap="BaseResultMapExcel" parameterType="com.adc.da.slrs.sarStandardsInfo.entity.SarBussionessStandEOPage">
select <include refid="Base_Column_List_show" />
from SAR_BUSSIONESS_STAND
<include refid="SarBussionInfo_Where_Clause"/>
GROUP BY <include refid="Group_Column_List_show"/>
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
${pager.orderCondition}
</if>
SELECT * FROM (
select <include refid="Base_Column_List_show" />
from SAR_BUSSIONESS_STAND
<include refid="SarBussionInfo_Where_Clause"/>
GROUP BY <include refid="Group_Column_List_show"/>
) tmp_tb
<include refid="standSort_in"/>
</select>
@@ -37,8 +37,15 @@
<!-- 只查询这个部门下的子一级人员-->
<select id="selectNextUser" resultMap="TsUser">
select * from ts_user
select ts_user.EMAIL,ts_user.ACCOUNT,ts_user.CREATION_TIME,ts_user.DISABLE_FLAG,ts_user.EXT_INFO,ts_user.USID,
ts_user.INSTITUTION_ID,ts_user.INSTITUTION_NAME,ts_user.MODIFY_TIME,ts_user.OPER_USER,ts_user.PASSWORD,ts_user.PHONE,
ts_user.POSITION_ID,ts_user.POSITION_NAME,ts_user.SEX,ts_user.SSO_ID,ts_user.STATE,ts_user.UNLOCK_FLAG,ts_user.USER_SOURCE,
ts_user.USER_TYPE,ts_user.VALID_FLAG,ts_user.WORK_NUM,concat(ts_user.UNAME,concat(concat("(",ts_user.ACCOUNT),")")) as uname
from ts_user
WHERE institution_id=#{institutionId}
<if test="userName != null and userName != '' ">
and ( ts_user.ACCOUNT like concat(concat('%',#{userName}),'%') or ts_user.UNAME like concat(concat('%',#{userName}),'%') )
</if>
</select>
<select id="selectTreeByIds" resultMap="TsInstitution">
@@ -7,7 +7,7 @@
<result column="modify_time" property="modifyTime" />
<result column="creation_time" property="creationTime" />
<result column="valid_flag" property="validFlag" />
<result column="use_model" property="useModule" />
<result column="use_model" property="useModel" />
<result column="att_id" property="attId" />
<result column="ori_att_id" property="oriAttId" />
<result column="laws_id" property="lawsId" />
@@ -50,8 +50,8 @@
<if test="validFlag != null" >
and valid_flag ${validFlagOperator} #{validFlag}
</if>
<if test="useModule != null" >
and use_model ${useModuleOperator} #{useModule}
<if test="useModel != null" >
and use_model ${useModuleOperator} #{useModel}
</if>
<if test="attId != null" >
and att_id ${attIdOperator} #{attId}
@@ -74,7 +74,7 @@
<if test="modifyTime != null" >modify_time,</if>
<if test="creationTime != null" >creation_time,</if>
<if test="validFlag != null" >valid_flag,</if>
<if test="useModule != null" >use_model,</if>
<if test="useModel != null" >use_model,</if>
<if test="attId != null" >att_id,</if>
<if test="lawsId != null" >laws_id,</if>
<if test="id != null" >id,</if>
@@ -89,7 +89,7 @@
<if test="modifyTime != null" >#{modifyTime, jdbcType=TIMESTAMP},</if>
<if test="creationTime != null" >#{creationTime, jdbcType=TIMESTAMP},</if>
<if test="validFlag != null" >#{validFlag, jdbcType=INTEGER},</if>
<if test="useModule != null" >#{useModule, jdbcType=VARCHAR},</if>
<if test="useModel != null" >#{useModel, jdbcType=VARCHAR},</if>
<if test="attId != null" >#{attId, jdbcType=VARCHAR},</if>
<if test="lawsId != null" >#{lawsId, jdbcType=VARCHAR},</if>
<if test="id != null" >#{id, jdbcType=VARCHAR},</if>
@@ -118,8 +118,8 @@
<if test="validFlag != null" >
valid_flag = #{validFlag},
</if>
<if test="useModule != null" >
use_model = #{useModule},
<if test="useModel != null" >
use_model = #{useModel},
</if>
<if test="attId != null" >
att_id = #{attId},
@@ -79,6 +79,12 @@
<sql id="SarStandardsInfo_in_left">
left join SAR_LAWS_MENU ON SAR_LAWS_STAND_INFO.id = SAR_LAWS_MENU.laws_id
LEFT JOIN TS_DICTYPE dicstandTextStatus ON (
dicstandTextStatus.dic_type_code = SAR_LAWS_STAND_INFO.LAWS_TEXT_STATE
AND dicstandTextStatus.dic_id IS NOT NULL
AND dicstandTextStatus.valid_flag = 0
)
left join SAR_LAWS_ATTR_INFO on (SAR_LAWS_ATTR_INFO.LAWS_ID = SAR_LAWS_STAND_INFO.id and SAR_LAWS_ATTR_INFO.valid_flag=0)
where 1=1 and SAR_LAWS_STAND_INFO.valid_flag=0
<trim suffixOverrides=",">
<!-- 基本搜索项 -->
@@ -175,22 +181,15 @@
and TS_PERSON_COLLECT.user_id=#{userId}
)
</if>
</trim>
</sql>
<sql id="SarStandardsInfo_out_left">
LEFT JOIN TS_DICTYPE dicstandTextStatus ON (
dicstandTextStatus.dic_type_code = a.LAWS_TEXT_STATE
AND dicstandTextStatus.dic_id IS NOT NULL
AND dicstandTextStatus.valid_flag = 0
)
left join SAR_LAWS_ATTR_INFO on (SAR_LAWS_ATTR_INFO.LAWS_ID = a.id and SAR_LAWS_ATTR_INFO.valid_flag=0)
where 1=1
<trim suffixOverrides=",">
<if test="advanceSearchStr != null and advanceSearchStr != ''">
and (${advanceSearchStr})
</if>
</trim>
</sql>
<sql id="SarStandardsInfo_out_left">
</sql>
<sql id="Base_Column_List_Show" >
DISTINCT SAR_LAWS_STAND_INFO.ID,
@@ -234,18 +233,6 @@
<!-- 查询SAR_LAWS_STAND_INFO列表 -->
<select id="getSarStandardsInfoPage" resultMap="BaseResultMap"
parameterType="com.adc.da.slrs.sarLawsStandInfo.entity.SarLawsStandInfoPage">
select
a.*,
dicstandTextStatus.DIC_TYPE_NAME AS standStatusShow,
(
CASE
WHEN SAR_LAWS_ATTR_INFO.XCXSSRQLAWS ='' THEN '9999-01-01'
ELSE SAR_LAWS_ATTR_INFO.XCXSSRQLAWS
END
) AS XCXSSRQLAWS
from
(select tmp_tb.* from
(
SELECT
DISTINCT SAR_LAWS_STAND_INFO.ID,
SAR_LAWS_STAND_INFO.LAWS_TYPE,
@@ -267,19 +254,27 @@
SAR_LAWS_STAND_INFO.LAWS_LABEL,
SAR_LAWS_STAND_INFO.LAWS_REMARK,
SAR_LAWS_STAND_INFO.COUNTRY,
SAR_LAWS_STAND_INFO.MODIFY_TIME
SAR_LAWS_STAND_INFO.MODIFY_TIME,
dicstandTextStatus.DIC_TYPE_NAME AS standStatusShow,
(
CASE
WHEN SAR_LAWS_ATTR_INFO.XCXSSRQLAWS ='' THEN '9999-01-01'
ELSE SAR_LAWS_ATTR_INFO.XCXSSRQLAWS
END
) AS XCXSSRQLAWS
from SAR_LAWS_STAND_INFO
<include refid="SarStandardsInfo_in_left"/>
) tmp_tb limit ${pager.startIndex-1},${pageSize}) a
<include refid="SarStandardsInfo_out_left"/>
order by
${orderByA} ${order1},a.id
<if test='orderByA != null and orderByA != "" and order1 != null and order1 != ""'>
${orderByA} ${order1},
</if>
SAR_LAWS_STAND_INFO.id
limit ${pager.startIndex-1},${pageSize}
</select>
<select id="getSarStandardsInfoCount" resultType="java.lang.Integer"
parameterType="com.adc.da.slrs.sarLawsStandInfo.entity.SarLawsStandInfoPage">
select count(1) from (select count(*) from SAR_LAWS_STAND_INFO
left join SAR_LAWS_ATTR_INFO on (SAR_LAWS_ATTR_INFO.LAWS_ID = SAR_LAWS_STAND_INFO.id and SAR_LAWS_ATTR_INFO.valid_flag=0)
<include refid="SarStandardsInfo_in_left"/>
GROUP BY SAR_LAWS_STAND_INFO.id) a
</select>
@@ -287,13 +282,35 @@
<select id="getSarStandardsExportInfo" resultMap="BaseResultMapExcel"
parameterType="com.adc.da.slrs.sarLawsStandInfo.entity.SarLawsStandInfoPage">
select
a.*,
DISTINCT SAR_LAWS_STAND_INFO.ID,
SAR_LAWS_STAND_INFO.LAWS_TYPE,
SAR_LAWS_STAND_INFO.LAWS_NUMBER,
SAR_LAWS_STAND_INFO.LAWS_NAME,
SAR_LAWS_STAND_INFO.LAWS_EN_NAME,
SAR_LAWS_STAND_INFO.LAWS_NO,
SAR_LAWS_STAND_INFO.ISSUE_TIME,
SAR_LAWS_STAND_INFO.ISSUE_COMPANY,
SAR_LAWS_STAND_INFO.COMMENT_CYCLE_START,
SAR_LAWS_STAND_INFO.COMMENT_CYCLE_END,
SAR_LAWS_STAND_INFO.LAWS_TEXT_STATE,
SAR_LAWS_STAND_INFO.LAWS_SYQY,
SAR_LAWS_STAND_INFO.LAWS_SYCX,
SAR_LAWS_STAND_INFO.IS_RELATE_ACCESS,
SAR_LAWS_STAND_INFO.LAWS_YEAR,
SAR_LAWS_STAND_INFO.LAWS_NOTISYNC_NUM,
SAR_LAWS_STAND_INFO.LAWS_BULLETIN,
SAR_LAWS_STAND_INFO.LAWS_LABEL,
SAR_LAWS_STAND_INFO.LAWS_REMARK,
SAR_LAWS_STAND_INFO.COUNTRY,
SAR_LAWS_STAND_INFO.MODIFY_TIME,
dicstandTextStatus.DIC_TYPE_NAME AS standStatusShow
from (select <include refid="Base_Column_List_Show"/>
from SAR_LAWS_ATTR_INFO
<include refid="SarStandardsInfo_in_left"/>) a
<include refid="SarStandardsInfo_out_left"/>
order by a.issue_time is null,a.issue_time desc,a.id
from SAR_LAWS_STAND_INFO
<include refid="SarStandardsInfo_in_left"/>
order by
<if test='orderByA != null and orderByA != "" and order1 != null and order1 != ""'>
${orderByA} ${order1},
</if>
SAR_LAWS_STAND_INFO.id
</select>
</mapper>
@@ -159,6 +159,31 @@
limit ${(page-1)*size},${page*size}
</select>
<select id="selectPagessolostar" resultType="java.lang.String">
SELECT
<if test="type == 'ProjectClassification' ">
distinct library.project_classification
</if>
<if test="type == 'ProjectStatus' ">
distinct library.project_status
</if>
FROM
sar_stand_project_library as library
LEFT JOIN sar_stand_project_team as team
ON team.project_code = library.project_number
WHERE
<if test="flag == 1">
library.id NOT IN ( SELECT project_id FROM sar_stand_project_relation )
</if>
<if test="flag == 2">
library.id IN ( SELECT project_id FROM sar_stand_project_relation )
</if>
<if test="flag == 4">
1=1
</if>
</select>
<select id="selectPagesWorkFlow"
resultType="com.adc.da.slrs.sarStandProjectLibrary.entity.SarStandProjectLibrary">
SELECT
@@ -223,6 +248,36 @@
limit ${(page-1)*size},${page*size}
</select>
<select id="selectPagesWorkFlowsolostar"
resultType="java.lang.String">
SELECT
<if test="type == 'ProjectClassification' ">
distinct library.project_classification
</if>
<if test="type == 'ProjectStatus' ">
distinct library.project_status
</if>
FROM
sar_stand_project_library as library
LEFT JOIN sar_stand_project_team as team ON team.project_code = library.project_number
WHERE
(
library.id IN (
SELECT DISTINCT
project_id
FROM
sar_stand_project_relation
WHERE
project_id NOT IN (
SELECT DISTINCT
STAND_ID
FROM
sar_stand_items
)
)
)
</select>
<select id="selectCountWorkFlow" resultType="java.lang.Integer">
SELECT
count(
@@ -54,6 +54,48 @@
SAR_STANDARDS_INFO.synopsis, SAR_STANDARDS_INFO.creation_user, SAR_STANDARDS_INFO.valid_flag,
SAR_STANDARDS_INFO.creation_time, SAR_STANDARDS_INFO.modify_time,SAR_STANDARDS_INFO.is_relate_access,SAR_STANDARDS_INFO.cite_stand,SAR_STANDARDS_INFO.cited_stand,SAR_STANDARDS_INFO.text_status,SAR_STANDARDS_INFO.STAND_SYSTEM
</sql>
<sql id="Base_Column_List_DIS" >
DISTINCT SAR_STANDARDS_INFO.id,
SAR_STANDARDS_INFO.stand_type,
SAR_STANDARDS_INFO.country,
SAR_STANDARDS_INFO.stand_sort,
SAR_STANDARDS_INFO.stand_number,
SAR_STANDARDS_INFO.stand_year,
SAR_STANDARDS_INFO.stand_name,
SAR_STANDARDS_INFO.stand_en_name,
SAR_STANDARDS_INFO.stand_state,
SAR_STANDARDS_INFO.stand_nature,
SAR_STANDARDS_INFO.issue_time,
SAR_STANDARDS_INFO.put_time,
SAR_STANDARDS_INFO.text_status,
SAR_STANDARDS_INFO.creation_user,
SAR_STANDARDS_INFO.valid_flag,
SAR_STANDARDS_INFO.creation_time,
SAR_STANDARDS_INFO.modify_time,
SAR_STANDARDS_INFO.STAND_SYSTEM,
SAR_STANDARDS_INFO.IS_RELATE_ACCESS,
SAR_STAND_ATTR_INFO.CHJL AS CHJL,
dicstandSort.DIC_TYPE_NAME AS standSortShow,
dicstandTextStatus.DIC_TYPE_NAME AS standTextStatusShow,
(
CASE
WHEN SAR_STAND_ATTR_INFO.SSRQ ='' THEN '9999-01-01'
ELSE SAR_STAND_ATTR_INFO.SSRQ
END
) AS SSRQ,
(
CASE
WHEN SAR_STAND_ATTR_INFO.ZCCSSRQ ='' THEN '9999-01-01'
ELSE SAR_STAND_ATTR_INFO.ZCCSSRQ
END
) AS ZCCSSRQ,
(
CASE
WHEN SAR_STAND_ATTR_INFO.XCXSSRQ ='' THEN '9999-01-01'
ELSE SAR_STAND_ATTR_INFO.XCXSSRQ
END
) AS XCXSSRQ
</sql>
<sql id="Base_Column_List_Show" >
SAR_STANDARDS_INFO.id, SAR_STANDARDS_INFO.stand_type, SAR_STANDARDS_INFO.country, SAR_STANDARDS_INFO.stand_sort,
@@ -544,6 +586,289 @@
</trim>
</sql>
<sql id="standSort_in">
ORDER BY
<if test='page.orderByA != null and page.orderByA != "" and page.order1 != null and page.order1 != ""'>
${page.orderByA} ${page.order1},
</if>
<if test='page.standType != null and page.standType == "INLAND"'>
CASE sar_standards_info.stand_sort
when 'GB' THEN 0
when 'GB/T' THEN 1
when 'QC/T' THEN 2
when 'JT' THEN 3
when 'JB' THEN 4
when 'GA' THEN 5
when 'GJB' THEN 6
when 'HJ' THEN 7
ELSE 8
END,
sar_standards_info.stand_sort ASC,sar_standards_info.STAND_NUMBER ASC,sar_standards_info.STAND_YEAR DESC,sar_standards_info.id
</if>
<if test='page.standType != null and page.standType == "FOREIGN"'>
CASE sar_standards_info.stand_sort
when 'ECE' THEN 0
when 'EU' THEN 1
when 'EC' THEN 2
when 'EEC' THEN 3
when 'ISO' THEN 4
when 'IEC' THEN 5
when 'GTR' THEN 6
when 'CFR' THEN 7
when 'JASO' THEN 8
when 'JIS' THEN 9
when 'GSO' THEN 10
when 'GOST' THEN 11
when 'ΓOCT' THEN 12
when 'TP' THEN 13
when 'SASO' THEN 14
when 'UAE' THEN 15
when 'CONTRAN' THEN 16
when 'DENATRAN' THEN 17
when 'ABNT NBR' THEN 18
when 'NBR' THEN 19
when 'INMETRO' THEN 20
when 'CONAMA' THEN 21
when 'Normative Instruction' THEN 22
when 'ADR' THEN 23
ELSE 24
END,
sar_standards_info.stand_sort ASC,sar_standards_info.STAND_NUMBER ASC,sar_standards_info.STAND_YEAR DESC,sar_standards_info.id
</if>
</sql>
<sql id="standSort_out">
<if test='standType != null and standType == "INLAND"'>
CASE a.stand_sort
when 'GB' THEN 0
when 'GB/T' THEN 1
when 'QC/T' THEN 2
when 'JT' THEN 3
when 'JB' THEN 4
when 'GA' THEN 5
when 'GJB' THEN 6
when 'HJ' THEN 7
ELSE 8
END,
a.stand_sort ASC,
</if>
<if test='standType != null and standType == "FOREIGN"'>
CASE a.stand_sort
when 'ECE' THEN 0
when 'EU' THEN 1
when 'EC' THEN 2
when 'EEC' THEN 3
when 'ISO' THEN 4
when 'IEC' THEN 5
when 'GTR' THEN 6
when 'CFR' THEN 7
when 'JASO' THEN 8
when 'JIS' THEN 9
when 'GSO' THEN 10
when 'GOST' THEN 11
when 'ΓOCT' THEN 12
when 'TP' THEN 13
when 'SASO' THEN 14
when 'UAE' THEN 15
when 'CONTRAN' THEN 16
when 'DENATRAN' THEN 17
when 'ABNT NBR' THEN 18
when 'NBR' THEN 19
when 'INMETRO' THEN 20
when 'CONAMA' THEN 21
when 'Normative Instruction' THEN 22
when 'ADR' THEN 23
ELSE 24
END,
a.stand_sort ASC,
</if>
</sql>
<sql id="standSort_out_2">
<if test='page.standType != null and page.standType == "INLAND"'>
CASE a.stand_sort
when 'GB' THEN 0
when 'GB/T' THEN 1
when 'QC/T' THEN 2
when 'JT' THEN 3
when 'JB' THEN 4
when 'GA' THEN 5
when 'GJB' THEN 6
when 'HJ' THEN 7
ELSE 8
END,
a.stand_sort ASC,
</if>
<if test='page.standType != null and page.standType == "FOREIGN"'>
CASE a.stand_sort
when 'ECE' THEN 0
when 'EU' THEN 1
when 'EC' THEN 2
when 'EEC' THEN 3
when 'ISO' THEN 4
when 'IEC' THEN 5
when 'GTR' THEN 6
when 'CFR' THEN 7
when 'JASO' THEN 8
when 'JIS' THEN 9
when 'GSO' THEN 10
when 'GOST' THEN 11
when 'ΓOCT' THEN 12
when 'TP' THEN 13
when 'SASO' THEN 14
when 'UAE' THEN 15
when 'CONTRAN' THEN 16
when 'DENATRAN' THEN 17
when 'ABNT NBR' THEN 18
when 'NBR' THEN 19
when 'INMETRO' THEN 20
when 'CONAMA' THEN 21
when 'Normative Instruction' THEN 22
when 'ADR' THEN 23
ELSE 24
END,
a.stand_sort ASC,
</if>
</sql>
<sql id="SarStandardsInfo_in_left_2">
left join SAR_STAND_MENU ON SAR_STANDARDS_INFO.id = SAR_STAND_MENU.stand_id
left join TS_DICTYPE dicstandSort on (dicstandSort.dic_type_code = SAR_STANDARDS_INFO.stand_sort and
dicstandSort.dic_id is not null and dicstandSort.valid_flag = 0 and dicstandSort.PARENT_ID is null)
LEFT JOIN TS_DICTYPE dicstandTextStatus ON (
dicstandTextStatus.dic_type_code = SAR_STANDARDS_INFO.text_status
AND dicstandTextStatus.dic_id IS NOT NULL
AND dicstandTextStatus.valid_flag = 0
)
left join SAR_STAND_ATTR_INFO on (SAR_STAND_ATTR_INFO.stand_id = SAR_STANDARDS_INFO.id and SAR_STAND_ATTR_INFO.valid_flag=0)
where 1=1 and SAR_STANDARDS_INFO.valid_flag=0
<trim suffixOverrides=",">
<!-- 标准分类 国内标准,国外标准 必要搜索项 -->
<if test='page.standType != null and page.standType != "ALL"'>
and stand_type = #{page.standType}
</if>
<!-- 基本搜索项 -->
<!-- 国家、地区 -->
<if test="page.country != null and page.country != ''">
and country = #{page.country}
</if>
<!-- 标准编号111 -->
<if test="page.standNumber != null and page.standNumber != ''">
and (
(concat(SAR_STANDARDS_INFO.STAND_SORT,' ',SAR_STANDARDS_INFO.STAND_NUMBER,'-',
SAR_STANDARDS_INFO.STAND_YEAR) like concat(concat('%',#{page.standNumber}),'%') and SAR_STANDARDS_INFO.STAND_YEAR != '')
or (concat(SAR_STANDARDS_INFO.STAND_SORT,' ',SAR_STANDARDS_INFO.STAND_NUMBER) like concat(concat('%',#{page.standNumber}),'%')
and SAR_STANDARDS_INFO.STAND_YEAR = '')
or (stand_name like concat(concat('%',#{page.standNumber}),'%'))
)
</if>
<!-- 标准名称 -->
<if test="page.standName != null and page.standName != ''">
and stand_name like concat(concat('%',#{page.standName}),'%')
or STAND_NUMBER like concat(concat('%',#{page.standName}),'%')
or STAND_YEAR like concat(concat('%',#{page.standName}),'%')
or STAND_SORT like concat(concat('%',#{page.standName}),'%')
</if>
<if test="page.standEnName != null and page.standEnName != ''">
and stand_en_name like concat(concat('%',#{page.standEnName}),'%')
</if>
<!-- 标准状态 -->
<if test="page.standState != null and page.standState != ''">
and stand_state = #{page.standState}
</if>
<!-- 高级检索项 -->
<!-- 标准性质 -->
<if test="page.standNature != null and page.standNature != ''">
and stand_nature = #{page.standNature}
</if>
<!-- 代替标准 允许输入的时候输入多个-->
<if test="page.replaceStandNum != null and page.replaceStandNum != ''">
and replace_stand_num like concat(concat('%',#{page.replaceStandNum}),'%')
</if>
<!-- 被代替标准 -->
<if test="page.replacedStandNum != null and page.replacedStandNum != ''">
and replaced_stand_num like concat(concat('%',#{page.replacedStandNum}),'%')
</if>
<if test="page.isRelateAccess != null and page.isRelateAccess != ''" >
and is_relate_access = #{page.isRelateAccess}
</if>
<!-- 目录判断 -->
<if test="page.menuId != null and page.menuId !='nomenu' and page.menuAllChildrenIdList != null">
and SAR_STAND_MENU.MENU_ID in
<foreach collection="page.menuAllChildrenIdList" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<!-- 新修改需求,根据角色查询有权限的菜单数据-->
<if test="page.menuRoleList != null">
and SAR_STAND_MENU.MENU_ID in
<foreach collection="page.menuRoleList" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<!-- <if test="(menuId == null or menuId =='') and standType =='FOREIGN'">-->
<!-- and SAR_STAND_MENU.MENU_ID in (-->
<!-- select TS_RESOURCE.id from TS_RESOURCE start with id=(select TS_RESOURCE.id from TS_RESOURCE WHERE parent_id is null-->
<!-- and sor_divide-->
<!-- ='FOREIGN_STAND') connect by prior id= parent_id-->
<!-- )-->
<!-- </if>-->
<!-- 导出数据过程中,选择的id -->
<if test="page.idlist != null">
and SAR_STANDARDS_INFO.id in
<foreach collection="page.idlist" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="page.standSort != null and page.standSort != ''" >
and SAR_STANDARDS_INFO.stand_sort = #{page.standSort}
</if>
<!--标准年份-->
<if test="page.standYear != null and page.standYear != ''">
and SAR_STANDARDS_INFO.STAND_YEAR = #{page.standYear}
</if>
<if test="page.issueTime != null and page.issueTime != ''">
and DATE_FORMAT(SAR_STANDARDS_INFO.ISSUE_TIME ,'%Y-%m-%d') = #{page.issueTime}
</if>
<!--内容摘要-->
<if test="page.synopsis != null and page.synopsis != ''" >
AND dbms_lob.instr(SYNOPSIS, #{page.synopsis} ,1,1) > 0
</if>
<!--文本状态-->
<if test="page.textStatus != null and page.textStatus != ''" >
and SAR_STANDARDS_INFO.TEXT_STATUS = #{page.textStatus}
</if>
<!--是否纳入法规清单-->
<if test="page.isRelateAccess != null and page.isRelateAccess != ''" >
and SAR_STANDARDS_INFO.IS_RELATE_ACCESS = #{page.isRelateAccess}
</if>
<if test="page.collectMenuId != null and page.collectMenuId != ''">
and SAR_STANDARDS_INFO.id in (
select COLLECT_RES_ID from TS_PERSON_COLLECT where TS_PERSON_COLLECT.VALID_FLAG=0
and (collect_type='INLAND_STAND' or collect_type='FOREIGN_STAND')
and TS_PERSON_COLLECT.user_id=#{page.userId}
)
</if>
<!-- out -->
<if test='page.labelMenuId != null and page.labelMenuId == "gxhbq"'>
and SAR_STAND_ATTR_INFO.GXHBQ is not null
</if>
<if test='page.labelMenuId != null and page.labelMenuId != "gxhbq"'>
and SAR_STAND_ATTR_INFO.GXHBQ like concat(concat('%',#{page.labelMenuId}),'%')
</if>
<!--适用车型-->
<if test="page.applyArctic != null and page.applyArctic != ''">
and SAR_STAND_ATTR_INFO.CLLX = #{page.applyArctic}
</if>
<if test="page.advanceSearchStr != null and page.advanceSearchStr != ''">
and (${page.advanceSearchStr})
</if>
</trim>
</sql>
<sql id="SarStandardsInfo_in_left">
left join SAR_STAND_MENU ON SAR_STANDARDS_INFO.id = SAR_STAND_MENU.stand_id
where 1=1 and SAR_STANDARDS_INFO.valid_flag=0
@@ -601,36 +926,6 @@
</foreach>
</if>
<!-- 游离态标准查询 -->
<!-- <if test="menuId != null and menuId =='nomenu' and standType =='INLAND'">
and SAR_STAND_MENU.MENU_ID = (select TS_RESOURCE.id from TS_RESOURCE WHERE parent_id is null and sor_divide
='INLAND_STAND')
&lt;!&ndash;-查询游离态标准,编号和名称是分开的 &ndash;&gt;
<if test="standNumber != null">
and ((concat(SAR_STANDARDS_INFO.STAND_SORT,' ',SAR_STANDARDS_INFO.STAND_NUMBER,'-',
SAR_STANDARDS_INFO.STAND_YEAR) like concat(concat('%',#{standNumber}),'%') and SAR_STANDARDS_INFO.STAND_YEAR is not null)
or (concat(SAR_STANDARDS_INFO.STAND_SORT,' ',SAR_STANDARDS_INFO.STAND_NUMBER) like concat(concat('%',#{standNumber}),'%')
and SAR_STANDARDS_INFO.STAND_YEAR is null))
</if>
</if>
<if test="menuId != null and menuId =='nomenu' and standType =='FOREIGN'">
and SAR_STAND_MENU.MENU_ID = (select TS_RESOURCE.id from TS_RESOURCE WHERE parent_id is null and sor_divide
='FOREIGN_STAND')
<if test="standNumber != null">
and ((concat(SAR_STANDARDS_INFO.STAND_SORT,' ',SAR_STANDARDS_INFO.STAND_NUMBER,'-',
SAR_STANDARDS_INFO.STAND_YEAR) like concat(concat('%',#{standNumber}),'%') and SAR_STANDARDS_INFO.STAND_YEAR is not null)
or (concat(SAR_STANDARDS_INFO.STAND_SORT,' ',SAR_STANDARDS_INFO.STAND_NUMBER) like concat(concat('%',#{standNumber}),'%')
and SAR_STANDARDS_INFO.STAND_YEAR is null))
</if>
</if> -->
<!-- 当第一次进入页面未选择记录时-->
<!-- <if test="(menuId == null or menuId =='') and standType =='INLAND'">-->
<!-- and SAR_STAND_MENU.MENU_ID in (-->
<!-- select TS_RESOURCE.id from TS_RESOURCE start with id=(select TS_RESOURCE.id from TS_RESOURCE WHERE parent_id is null-->
<!-- and sor_divide-->
<!-- ='INLAND_STAND') connect by prior id= parent_id-->
<!-- )-->
<!-- </if>-->
<!-- 新修改需求,根据角色查询有权限的菜单数据-->
<if test="menuRoleList != null">
and SAR_STAND_MENU.MENU_ID in
@@ -686,88 +981,25 @@
</trim>
</sql>
<sql id="SarStandardsInfo_out_left">
left join TS_DICTYPE dicstandSort on (dicstandSort.dic_type_code = a.stand_sort and
dicstandSort.dic_id is not null and dicstandSort.valid_flag = 0 and dicstandSort.PARENT_ID is null)
LEFT JOIN TS_DICTYPE dicstandTextStatus ON (
dicstandTextStatus.dic_type_code = a.text_status
AND dicstandTextStatus.dic_id IS NOT NULL
AND dicstandTextStatus.valid_flag = 0
)
left join SAR_STAND_ATTR_INFO on (SAR_STAND_ATTR_INFO.stand_id = a.id and SAR_STAND_ATTR_INFO.valid_flag=0)
where 1=1
<if test='labelMenuId != null and labelMenuId == "gxhbq"'>
and SAR_STAND_ATTR_INFO.GXHBQ is not null
</if>
<if test='labelMenuId != null and labelMenuId != "gxhbq"'>
and SAR_STAND_ATTR_INFO.GXHBQ like concat(concat('%',#{labelMenuId}),'%')
</if>
<!--适用车型-->
<if test="applyArctic != null and applyArctic != ''">
and SAR_STAND_ATTR_INFO.CLLX = #{applyArctic}
</if>
<trim suffixOverrides=",">
<if test="advanceSearchStr != null and advanceSearchStr != ''">
and (${advanceSearchStr})
</if>
</trim>
</sql>
<!-- 分页查询-->
<select id="getSarStandardsInfoPage" resultMap="BaseResultMap"
parameterType="com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfoEOPage">
select
a.*,
SAR_STAND_ATTR_INFO.CHJL AS CHJL,
dicstandSort.DIC_TYPE_NAME AS standSortShow,
dicstandTextStatus.DIC_TYPE_NAME AS standTextStatusShow,
(
CASE
WHEN SAR_STAND_ATTR_INFO.SSRQ ='' THEN '9999-01-01'
ELSE SAR_STAND_ATTR_INFO.SSRQ
END
) AS SSRQ,
(
CASE
WHEN SAR_STAND_ATTR_INFO.ZCCSSRQ ='' THEN '9999-01-01'
ELSE SAR_STAND_ATTR_INFO.ZCCSSRQ
END
) AS ZCCSSRQ,
(
CASE
WHEN SAR_STAND_ATTR_INFO.XCXSSRQ ='' THEN '9999-01-01'
ELSE SAR_STAND_ATTR_INFO.XCXSSRQ
END
) AS XCXSSRQ
from
(select tmp_tb.* from
(
SELECT
DISTINCT SAR_STANDARDS_INFO.id,
SAR_STANDARDS_INFO.stand_type,
SAR_STANDARDS_INFO.country,
SAR_STANDARDS_INFO.stand_sort,
SAR_STANDARDS_INFO.stand_number,
SAR_STANDARDS_INFO.stand_year,
SAR_STANDARDS_INFO.stand_name,
SAR_STANDARDS_INFO.stand_en_name,
SAR_STANDARDS_INFO.stand_state,
SAR_STANDARDS_INFO.stand_nature,
SAR_STANDARDS_INFO.issue_time,
SAR_STANDARDS_INFO.put_time,
SAR_STANDARDS_INFO.text_status,
SAR_STANDARDS_INFO.creation_user,
SAR_STANDARDS_INFO.valid_flag,
SAR_STANDARDS_INFO.creation_time,
SAR_STANDARDS_INFO.modify_time,
SAR_STANDARDS_INFO.STAND_SYSTEM,
SAR_STANDARDS_INFO.IS_RELATE_ACCESS
<include refid="Base_Column_List_DIS"/>
from SAR_STANDARDS_INFO
<include refid="SarStandardsInfo_in_left"/>
) tmp_tb limit ${pager.startIndex-1},${pageSize}) a
<include refid="SarStandardsInfo_out_left"/>
order by
${orderByA} ${order1},a.id
<include refid="SarStandardsInfo_in_left_2"/>
<if test="mark == 999 ">
and sar_standards_info.ID in (select distinct stand_id from sar_stand_items)
</if>
<if test='page.orderByA != null and page.orderByA != "" and page.order1 != null and page.order1 != ""
and page.standType != null and page.standType != "" '>
<include refid="standSort_in"/>
</if>
limit ${page.pager.startIndex-1},${page.pageSize}
</select>
<!--FIELD(SAR_STANDARDS_INFO.issue_time,'已发布'), FIELD(SAR_STANDARDS_INFO.issue_time,'TBD'), FIELD(SAR_STANDARDS_INFO.issue_time,'N/A') ,-->
<!--if(isnull(SAR_STANDARDS_INFO.issue_time),0,1) desc ,-->
@@ -805,10 +1037,16 @@
and stand_type = #{standType}
</if>
<if test="standNumber != null">
and ((concat(dicstandSort.DIC_TYPE_NAME,' ',SAR_STANDARDS_INFO.STAND_NUMBER,'-',
SAR_STANDARDS_INFO.STAND_YEAR) = ( #{standNumber}) and SAR_STANDARDS_INFO.STAND_YEAR != '')
or (concat(dicstandSort.DIC_TYPE_NAME,' ',SAR_STANDARDS_INFO.STAND_NUMBER) = ( #{standNumber})
and SAR_STANDARDS_INFO.STAND_YEAR = '')
and (
( ( #{standNumber}) like CONCAT('%',dicstandSort.DIC_TYPE_NAME,'%')
and
( #{standNumber}) like CONCAT('%',SAR_STANDARDS_INFO.STAND_NUMBER,'%')
and
( #{standNumber}) like CONCAT('%',SAR_STANDARDS_INFO.STAND_YEAR,'%') and SAR_STANDARDS_INFO.STAND_YEAR != '')
or (( #{standNumber}) like CONCAT('%',dicstandSort.DIC_TYPE_NAME,'%')
and
( #{standNumber}) like CONCAT('%',SAR_STANDARDS_INFO.STAND_NUMBER,'%')
and SAR_STANDARDS_INFO.STAND_YEAR = '')
)
</if>
<if test="sychronId != null">
@@ -897,11 +1135,18 @@
<select id="getSarStandardsExportInfo" resultMap="BaseResultMapExcel"
parameterType="com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfoEOPage">
select<include refid="Base_Column_List_Show"/>
from SAR_STANDARDS_INFO
<include refid="SarStandardsInfo_Where_Clause"/>
GROUP BY <include refid="Group_Column_List_Show"/>
order by SAR_STANDARDS_INFO.issue_time is null,SAR_STANDARDS_INFO.issue_time desc,SAR_STANDARDS_INFO.id
select a.* from (
select<include refid="Base_Column_List_Show"/>
from SAR_STANDARDS_INFO
<include refid="SarStandardsInfo_Where_Clause"/>
GROUP BY <include refid="Group_Column_List_Show"/>
) a
order by
<if test='orderByA != null and orderByA != "" and order1 != null and order1 != ""'>
${orderByA} ${order1},
</if>
<include refid="standSort_out"/>
a.STAND_NUMBER ASC,a.STAND_YEAR DESC,a.id
</select>
<select id="selectStandardsInfoByKey" resultMap="BaseResultMap" parameterType="java.lang.String">
@@ -0,0 +1,5 @@
<?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.adc.da.slrs.spaMeetInfo.dao.SapAttendeeDao">
</mapper>
@@ -0,0 +1,5 @@
<?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.adc.da.slrs.spaMeetInfo.dao.SapFilesDao">
</mapper>
@@ -0,0 +1,5 @@
<?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.adc.da.slrs.spaMeetInfo.dao.SapMeetingDao">
</mapper>
@@ -0,0 +1,22 @@
<?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.adc.da.slrs.wgDept.dao.WgDeptDao">
<select id="researchDatas" resultType="com.adc.da.slrs.wgDept.entity.WgDeptShow">
select wg_dept.* ,ts_user.UNAME as name ,ts_user.PHONE as phone ,ts_user.EMAIL as email,ts_user.INSTITUTION_ID as deptId
,ts_user.INSTITUTION_NAME as deptName
from wg_dept
left join ts_user on ts_user.ACCOUNT = wg_dept.dept_people_id
where wg_dept.wg_id =#{data}
</select>
<select id="researchAllDatas" resultType="com.adc.da.slrs.wgDept.entity.WgDeptShow">
select wg_dept.* ,ts_user.UNAME as name ,ts_user.PHONE as phone ,ts_user.EMAIL as email,ts_user.INSTITUTION_ID as deptId
,ts_user.INSTITUTION_NAME as deptName
from wg_dept
left join ts_user on ts_user.ACCOUNT = wg_dept.dept_people_id
left join wg_work_group on wg_work_group.id = wg_dept.wg_id
where wg_work_group.type = #{type}
</select>
</mapper>
@@ -0,0 +1,29 @@
<?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.adc.da.slrs.wgMeetingInfo.dao.WgMeetingInfoDao">
<resultMap id="WgMeetingInfos" type="com.adc.da.slrs.wgMeetingInfo.entity.WgMeetingInfo">
<id property="id" column="id"/>
<result property="wgId" column="wg_id"/>
<result property="meetingTime" column="meeting_time"/>
<result property="meetingName" column="meeting_name"/>
<result property="meetingReport" column="meeting_report"/>
<result property="joinfile" column="joinfile"/>
<result property="joinId" column="join_id"/>
<association property="joinMeetingPeopleInfo" javaType="java.util.List" column="id"
select="com.adc.da.slrs.wgMeetingUserRelation.dao.WgMeetingUserRelationDao.getMeetingPeoples"/>
</resultMap>
<select id="researchDatas" resultMap="WgMeetingInfos">
select * from wg_meeting_info where wg_meeting_info.wg_id = #{data}
</select>
<select id="researchAllDatas" resultType="com.adc.da.slrs.wgMeetingInfo.entity.WgMeetingInfo">
select * from wg_meeting_info
left join wg_work_group on wg_work_group.id = wg_meeting_info.wg_id
where wg_work_group.type = #{type}
</select>
</mapper>
@@ -0,0 +1,21 @@
<?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.adc.da.slrs.wgMeetingUserRelation.dao.WgMeetingUserRelationDao">
<select id="getMeetingPeoples"
resultType="com.adc.da.slrs.wgMeetingUserRelation.entity.WgMeetingUserRelationShow">
select wg_meeting_user_relation.*,ts_user.UNAME as name from wg_meeting_user_relation
left join ts_user on ts_user.ACCOUNT = wg_meeting_user_relation.user_id
where wg_meeting_user_relation.meeting_id = #{meetId}
</select>
<select id="getMeetingAllPeoples"
resultType="com.adc.da.slrs.wgMeetingUserRelation.entity.WgMeetingUserRelationShow">
select wg_meeting_user_relation.*,ts_user.UNAME as name from wg_meeting_user_relation
left join ts_user on ts_user.ACCOUNT = wg_meeting_user_relation.user_id
left join wg_meeting_info on wg_meeting_info.id = wg_meeting_user_relation.meeting_id
left join wg_work_group on wg_work_group.id = wg_meeting_info.wg_id
where wg_work_group.type = #{type}
</select>
</mapper>
@@ -0,0 +1,22 @@
<?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.adc.da.slrs.wgNetInfo.dao.WgNetInfoDao">
<select id="researchDatas" resultType="com.adc.da.slrs.wgNetInfo.entity.WgNetInfoDTO">
select wg_net_info.net_id,ts_user.UNAME as name ,ts_user.PHONE as phone, ts_user.EMAIL as email
,wg_net_info.id,wg_net_info.wg_id , wg_net_info.join_id
from wg_net_info
left join ts_user on ts_user.ACCOUNT = wg_net_info.net_id
where wg_net_info.wg_id =#{data}
</select>
<select id="researchAllDatas" resultType="com.adc.da.slrs.wgNetInfo.entity.WgNetInfoDTO">
select wg_net_info.net_id,ts_user.UNAME as name ,ts_user.PHONE as phone, ts_user.EMAIL as email
,wg_net_info.id,wg_net_info.wg_id , wg_net_info.join_id
from wg_net_info
left join ts_user on ts_user.ACCOUNT = wg_net_info.net_id
left join wg_work_group on wg_work_group.id = wg_net_info.wg_id
where wg_work_group.type = #{type}
</select>
</mapper>
@@ -0,0 +1,16 @@
<?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.adc.da.slrs.wgPayInfo.dao.WgPayInfoDao">
<select id="researchDatas" resultType="com.adc.da.slrs.wgPayInfo.entity.WgPayInfo">
select * from wg_pay_info where wg_pay_info.wg_id = #{data}
</select>
<select id="researchAllDatas" resultType="com.adc.da.slrs.wgPayInfo.entity.WgPayInfo">
select * from wg_pay_info
left join wg_work_group on wg_work_group.id=wg_pay_info.wg_id
where wg_work_group.type = #{type}
</select>
</mapper>
@@ -0,0 +1,42 @@
<?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.adc.da.slrs.wgStandorpolicyInfo.dao.WgStandorpolicyInfoDao">
<select id="researchDatas" resultType="com.adc.da.slrs.wgStandorpolicyInfo.entity.WgStandorpolicyInfo">
select wg_standorpolicy_info.id , wg_standorpolicy_info.stand_id , wg_work_group.pid as wgId from wg_standorpolicy_info
left join wg_work_group on wg_work_group.id = wg_standorpolicy_info.wg_id
</select>
<select id="researchAllDatas" resultType="com.adc.da.slrs.wgStandorpolicyInfo.entity.WgStandorpolicyInfo">
select wg_standorpolicy_info.id ,wg_standorpolicy_info.wg_id , wg_standorpolicy_info.stand_id
<if test="type == 0 ">
, sar_standards_info.STAND_NAME as name ,sar_standards_info.STAND_TYPE as dataType
</if>
<if test="type == 1 ">
,sar_laws_stand_info.LAWS_NAME as name
</if>
from wg_standorpolicy_info
left join wg_work_group on wg_work_group.id = wg_standorpolicy_info.wg_id
<if test="type == 0">
left join sar_standards_info on sar_standards_info.ID = wg_standorpolicy_info.stand_id
</if>
<if test="type == 1">
left join sar_laws_stand_info on sar_laws_stand_info.ID = wg_standorpolicy_info.stand_id
</if>
where wg_work_group.type = #{type}
</select>
<select id="researchAllDatasPartTwo" resultType="com.adc.da.slrs.wgStandorpolicyInfo.entity.WgStandorpolicyInfo">
select wg_standorpolicy_info.id ,wg_standorpolicy_info.wg_id , wg_standorpolicy_info.stand_id
<if test="type == 0 ">
, sar_bussioness_stand.STAND_NAME as name
</if>
from wg_standorpolicy_info
left join wg_work_group on wg_work_group.id = wg_standorpolicy_info.wg_id
<if test="type == 0">
left join sar_bussioness_stand on sar_bussioness_stand.ID = wg_standorpolicy_info.stand_id
</if>
where wg_work_group.type = #{type}
</select>
</mapper>
@@ -0,0 +1,53 @@
<?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.adc.da.slrs.wgWorkGroup.dao.WgWorkGroupDao">
<resultMap id="WgWorkGroups" type="com.adc.da.slrs.wgWorkGroup.entity.WgWorkGroupShowDTO">
<id property="id" column="id"/>
<result property="types" column="type"/>
<result property="name" column="name"/>
<result property="pid" column="pid"/>
<result property="number" column="number"/>
<result property="nature" column="nature"/>
<result property="status" column="status"/>
<result property="changeTime" jdbcType="DATE" column="change_time"/>
<result property="standerArea" column="stander_area"/>
<result property="mark" column="mark"/>
<result property="level" column="level"/>
<!--<association property="wgPayInfos" javaType="java.util.List" column="id"-->
<!--select="com.adc.da.slrs.wgPayInfo.dao.WgPayInfoDao.researchDatas"/>-->
<!--<association property="wgStandorpolicyInfos" javaType="java.util.List" column="id"-->
<!--select="com.adc.da.slrs.wgStandorpolicyInfo.dao.WgStandorpolicyInfoDao.researchDatas"/>-->
<!--<association property="wgDepts" javaType="java.util.List" column="id"-->
<!--select="com.adc.da.slrs.wgDept.dao.WgDeptDao.researchDatas"/>-->
<!--<association property="wgNetInfos" javaType="java.util.List" column="id"-->
<!--select="com.adc.da.slrs.wgNetInfo.dao.WgNetInfoDao.researchDatas"/>-->
<!--<association property="wgMeetingInfos" javaType="java.util.List" column="id"-->
<!--select="com.adc.da.slrs.wgMeetingInfo.dao.WgMeetingInfoDao.researchDatas"/>-->
<!--<association property="children" javaType="java.util.List" column="id"-->
<!--select="researchDownLevel"/>-->
</resultMap>
<select id="researchDatas" resultMap="WgWorkGroups">
select * from wg_work_group where wg_work_group.type =#{type} and wg_work_group.pid in
<foreach collection="data" index="index" item="item" open="(" separator="," close=")">
#{item.id}
</foreach>
</select>
<select id="researchDownLevel" resultMap="WgWorkGroups">
select * from wg_work_group where wg_work_group.pid = #{data}
</select>
<select id="researchDownCheck" resultType="com.adc.da.slrs.wgWorkGroup.entity.WgWorkGroup">
select * from wg_work_group where wg_work_group.pid = #{data} and wg_work_group.status = #{status}
</select>
<select id="researchAllData" resultMap="WgWorkGroups">
select * from wg_work_group where wg_work_group.type =#{type}
</select>
</mapper>
@@ -0,0 +1,133 @@
<?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.adc.da.slrs.wgdCensusLeo.dao.WgdCgfyDao">
<sql id="pages">
<if test=" null != pageSize ">
LIMIT ${(page-1) * pageSize},${pageSize}
</if>
</sql>
<!-- 基础信息-->
<sql id="BaseInfo">
id,type,number,name,pages,cost
</sql>
<!-- 查询条件-->
<sql id="Conditions">
where 1=1
<if test="id != null and id != ''">
and id = #{id}
</if>
<if test="type != null and type != ''">
and type like concat('%',#{type},'%')
</if>
<if test="number != null and number != ''">
and number like concat('%',#{number},'%')
</if>
<if test="name != null and name != ''">
and name like concat('%',#{name},'%')
</if>
<if test="pages != null and pages != ''">
and pages = #{pages}
</if>
<if test="cost != null and cost != ''">
and cost = #{cost}
</if>
</sql>
<select id="getTotal" resultType="java.lang.Integer">
select count(*) from wgd_cgfy
</select>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdCgfy" resultType="java.lang.Integer">
select count(*) from wgd_cgfy
<include refid="Conditions"></include>
</select>
<select id="selectAll" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdCgfy">
select <include refid="BaseInfo"></include> from wgd_cgfy
</select>
<select id="queryAll" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdCgfy" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdCgfy">
select <include refid="BaseInfo"></include> from wgd_cgfy
<include refid="Conditions"></include>
<include refid="pages"></include>
</select>
<select id="selectOne" parameterType="java.lang.String" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdCgfy">
select <include refid="BaseInfo"></include> from wgd_cgfy
where id = #{id}
</select>
<!-- 修改-->
<update id="updateOne" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdCgfy">
update wgd_cgfy
<set>
<if test="type != null and type != ''">
type = #{type},
</if>
<if test="number != null and number != ''">
number = #{number},
</if>
<if test="name != null and name != ''">
name = #{name},
</if>
<if test="pages != null and pages != ''">
pages = #{pages},
</if>
<if test="cost != null and cost != ''">
cost = #{cost},
</if>
</set>
where id = #{id}
</update>
<!-- 插入一条数据-->
<insert id="insertOne" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdCgfy">
insert into wgd_cgfy
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
id,
</if>
<if test="type != null and type != ''">
type,
</if>
<if test="number != null and number != ''">
number,
</if>
<if test="name != null and name != ''">
name,
</if>
<if test="pages != null and pages != ''">
pages,
</if>
<if test="cost != null and cost != ''">
cost,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
#{id},
</if>
<if test="type != null and type != ''">
#{type},
</if>
<if test="number != null and number != ''">
#{number},
</if>
<if test="name != null and name != ''">
#{name},
</if>
<if test="pages != null and pages != ''">
#{pages},
</if>
<if test="cost != null and cost != ''">
#{cost},
</if>
</trim>
</insert>
<!-- 删除-->
<delete id="deleteOne" parameterType="java.lang.String">
delete from wgd_cgfy where id = #{id}
</delete>
<!-- 批量删除-->
<delete id="deleteBatch" parameterType="java.lang.String">
delete from wgd_cgfy where id in
<foreach collection="array" item="id" open="(" close=")" separator=",">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,154 @@
<?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.adc.da.slrs.wgdCensusLeo.dao.WgdFyfyDao">
<!-- 基础信息-->
<sql id="BaseInfo">
id,type,number,name,translation,pages,cost,time
</sql>
<!-- 查询条件-->
<sql id="Conditions">
<where>
<if test="id != null and id != ''">
and id = #{id}
</if>
<if test="type != null and type != ''">
and type like concat('%',#{type},'%')
</if>
<if test="number != null and number != ''">
and number like concat('%',#{number},'%')
</if>
<if test="name != null and name != ''">
and name like concat('%',#{name},'%')
</if>
<if test="translation != null and translation != ''">
and translation like concat('%',#{translation},'%')
</if>
<if test="pages != null and pages != ''">
and pages = #{pages}
</if>
<if test="cost != null and cost != ''">
and cost = #{cost}
</if>
<if test="time != null and time != ''">
and time = #{time}
</if>
</where>
</sql>
<select id="getTotal" resultType="java.lang.Integer">
select count(*) from wgd_fyfy
</select>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdFyfy" resultType="java.lang.Integer">
select count(*) from wgd_fyfy
<include refid="Conditions"></include>
</select>
<!-- 查询所有-->
<select id="selectAll" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdFyfy">
select <include refid="BaseInfo"></include> from wgd_fyfy
</select>
<!-- 多条件查询-->
<select id="queryAll" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdFyfy" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdFyfy">
select <include refid="BaseInfo"></include> from wgd_fyfy
<include refid="Conditions"></include>
</select>
<!-- 查询详情-->
<select id="selectOne" parameterType="java.lang.String" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdFyfy">
select <include refid="BaseInfo"></include> from wgd_fyfy
where id = #{id}
</select>
<!-- 修改-->
<update id="updateOne" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdFyfy">
update wgd_fyfy
<set>
<if test="type != null and type != ''">
type = #{type},
</if>
<if test="number != null and number != ''">
number = #{number},
</if>
<if test="name != null and name != ''">
name = #{name},
</if>
<if test="translation != null and translation != ''">
translation = #{translation},
</if>
<if test="pages != null and pages != ''">
pages = #{pages},
</if>
<if test="cost != null and cost != ''">
cost = #{cost},
</if>
<if test="time != null and time != ''">
time = #{time},
</if>
</set>
where id = #{id}
</update>
<!-- 插入一条数据-->
<insert id="insertOne" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdFyfy">
insert into wgd_fyfy
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
id,
</if>
<if test="type != null and type != ''">
type,
</if>
<if test="number != null and number != ''">
number,
</if>
<if test="name != null and name != ''">
name,
</if>
<if test="translation != null and translation != ''">
translation,
</if>
<if test="pages != null and pages != ''">
pages,
</if>
<if test="cost != null and cost != ''">
cost,
</if>
<if test="time != null and time != ''">
time,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
#{id},
</if>
<if test="type != null and type != ''">
#{type},
</if>
<if test="number != null and number != ''">
#{number},
</if>
<if test="name != null and name != ''">
#{name},
</if>
<if test="translation != null and translation != ''">
#{translation},
</if>
<if test="pages != null and pages != ''">
#{pages},
</if>
<if test="cost != null and cost != ''">
#{cost},
</if>
<if test="time != null and time != ''">
#{time},
</if>
</trim>
</insert>
<!-- 删除-->
<delete id="deleteOne" parameterType="java.lang.String">
delete from wgd_fyfy where id = #{id}
</delete>
<!-- 批量删除-->
<delete id="deleteBatch" parameterType="java.lang.String">
delete from wgd_fyfy where id in
<foreach collection="array" item="id" open="(" close=")" separator=",">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,134 @@
<?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.adc.da.slrs.wgdCensusLeo.dao.WgdSrbDao">
<!-- 基础信息-->
<sql id="BaseInfo">
id,name,number,source,cost,time
</sql>
<!-- 查询条件-->
<sql id="Conditions">
<where>
<if test="id != null and id != ''">
and id = #{id}
</if>
<if test="name != null and name != ''">
and name like concat('%',#{name},'%')
</if>
<if test="number != null and number != ''">
and number like concat('%',#{number},'%')
</if>
<if test="source != null and source != ''">
and source = #{source}
</if>
<if test="cost != null and cost != ''">
and cost = #{cost}
</if>
<if test="time != null and time != ''">
and time = #{time}
</if>
</where>
</sql>
<select id="getTotal" resultType="java.lang.Integer">
select count(*) from wgd_srb
</select>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdSrb" resultType="java.lang.Integer">
select count(*) from wgd_srb
<include refid="Conditions"></include>
</select>
<!-- 查询所有-->
<select id="selectAll" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdSrb">
select <include refid="BaseInfo"></include> from wgd_srb
</select>
<!-- 多条件查询-->
<select id="queryAll" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdSrb" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdSrb">
select <include refid="BaseInfo"></include> from wgd_srb
<include refid="Conditions"></include>
</select>
<!-- 查询详情-->
<select id="selectOne" parameterType="java.lang.String" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdSrb">
select <include refid="BaseInfo"></include> from wgd_srb
where id = #{id}
</select>
<!-- 修改-->
<update id="updateOne" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdSrb">
update wgd_srb
<set>
<if test="name != null and name != ''">
name = #{name},
</if>
<if test="number != null and number != ''">
number = #{number},
</if>
<if test="source != null and source != ''">
source = #{source},
</if>
<if test="cost != null and cost != ''">
cost = #{cost},
</if>
<if test="time != null and time != ''">
time = #{time},
</if>
</set>
where id = #{id}
</update>
<!-- 插入一条数据-->
<insert id="insertOne" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdSrb">
insert into wgd_srb
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
id,
</if>
<if test="name != null and name != ''">
name,
</if>
<if test="number != null and number != ''">
number,
</if>
<if test="source != null and source != ''">
source,
</if>
<if test="cost != null and cost != ''">
cost,
</if>
<if test="time != null and time != ''">
time,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
#{id},
</if>
<if test="name != null and name != ''">
#{name},
</if>
<if test="number != null and number != ''">
#{number},
</if>
<if test="source != null and source != ''">
#{source},
</if>
<if test="cost != null and cost != ''">
#{cost},
</if>
<if test="time != null and time != ''">
#{time},
</if>
</trim>
</insert>
<!-- 删除-->
<delete id="deleteOne" parameterType="java.lang.String">
delete from wgd_srb where id = #{id}
</delete>
<!-- 批量删除-->
<delete id="deleteBatch" parameterType="java.lang.String">
delete from wgd_srb where id in
<foreach collection="array" item="id" open="(" close=")" separator=",">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,226 @@
<?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.adc.da.slrs.wgdCensusLeo.dao.WgdWbtjDao">
<!-- 基础信息-->
<sql id="BaseInfo">
id,host,meeting,time,place,contributions,occurs,expenses,user,leadership,participants,information,recording,Issues
</sql>
<!-- 查询条件-->
<sql id="Conditions">
<where>
<if test="id != null and id != ''">
and id = #{id}
</if>
<if test="host != null and host != ''">
and host like concat('%',#{host},'%')
</if>
<if test="meeting != null and meeting != ''">
and meeting like concat('%',#{meeting},'%')
</if>
<if test="time != null and time != ''">
and time like concat('%',#{time},'%')
</if>
<if test="place != null and place != ''">
and place = #{place}
</if>
<if test="contributions != null and contributions != ''">
and contributions = #{contributions}
</if>
<if test="occurs != null and occurs != ''">
and occurs = #{occurs}
</if>
<if test="expenses != null and expenses != ''">
and expenses = #{expenses}
</if>
<if test="user != null and user != ''">
and user = #{user}
</if>
<if test="leadership != null and leadership != ''">
and leadership = #{leadership}
</if>
<if test="participants != null and participants != ''">
and participants = #{participants}
</if>
<if test="information != null and information != ''">
and information = #{information}
</if>
<if test="recording != null and recording != ''">
and recording = #{recording}
</if>
<if test="Issues != null and Issues != ''">
and Issues = #{Issues}
</if>
</where>
</sql>
<select id="getTotal" resultType="java.lang.Integer">
select count(*) from wgd_wbtj
</select>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbtj" resultType="java.lang.Integer">
select count(*) from wgd_wbtj
<include refid="Conditions"></include>
</select>
<!-- 查询所有-->
<select id="selectAll" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbtj">
select <include refid="BaseInfo"></include> from wgd_wbtj
</select>
<!-- 多条件查询-->
<select id="queryAll" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbtj" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbtj">
select <include refid="BaseInfo"></include> from wgd_wbtj
<include refid="Conditions"></include>
</select>
<!-- 查询详情-->
<select id="selectOne" parameterType="java.lang.String" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbtj">
select <include refid="BaseInfo"></include> from wgd_wbtj
where id = #{id}
</select>
<!-- 修改-->
<update id="updateOne" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbtj">
update wgd_wbtj
<set>
<if test="host != null and host != ''">
host = #{host},
</if>
<if test="meeting != null and meeting != ''">
meeting = #{meeting},
</if>
<if test="time != null and time != ''">
time = #{time},
</if>
<if test="place != null and place != ''">
place = #{place},
</if>
<if test="contributions != null and contributions != ''">
contributions = #{contributions},
</if>
<if test="occurs != null and occurs != ''">
occurs = #{occurs},
</if>
<if test="expenses != null and expenses != ''">
expenses = #{expenses},
</if>
<if test="user != null and user != ''">
user = #{user},
</if>
<if test="leadership != null and leadership != ''">
leadership = #{leadership},
</if>
<if test="participants != null and participants != ''">
participants = #{participants},
</if>
<if test="information != null and information != ''">
information = #{information},
</if>
<if test="recording != null and recording != ''">
recording = #{recording},
</if>
<if test="Issues != null and Issues != ''">
Issues = #{Issues},
</if>
</set>
where id = #{id}
</update>
<!-- 插入一条数据-->
<insert id="insertOne" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbtj">
insert into wgd_wbtj
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
id,
</if>
<if test="host != null and host != ''">
host,
</if>
<if test="meeting != null and meeting != ''">
meeting,
</if>
<if test="time != null and time != ''">
time,
</if>
<if test="place != null and place != ''">
place,
</if>
<if test="contributions != null and contributions != ''">
contributions,
</if>
<if test="occurs != null and occurs != ''">
occurs,
</if>
<if test="expenses != null and expenses != ''">
expenses,
</if>
<if test="user != null and user != ''">
user,
</if>
<if test="leadership != null and leadership != ''">
leadership,
</if>
<if test="participants != null and participants != ''">
participants,
</if>
<if test="information != null and information != ''">
information,
</if>
<if test="recording != null and recording != ''">
recording,
</if>
<if test="Issues != null and Issues != ''">
Issues,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
#{id},
</if>
<if test="host != null and host != ''">
#{host},
</if>
<if test="meeting != null and meeting != ''">
#{meeting},
</if>
<if test="time != null and time != ''">
#{time},
</if>
<if test="place != null and place != ''">
#{place},
</if>
<if test="contributions != null and contributions != ''">
#{contributions},
</if>
<if test="occurs != null and occurs != ''">
#{occurs},
</if>
<if test="expenses != null and expenses != ''">
#{expenses},
</if>
<if test="user != null and user != ''">
#{user},
</if>
<if test="leadership != null and leadership != ''">
#{leadership},
</if>
<if test="participants != null and participants != ''">
#{participants},
</if>
<if test="information != null and information != ''">
#{information},
</if>
<if test="recording != null and recording != ''">
#{recording},
</if>
<if test="Issues != null and Issues != ''">
#{Issues},
</if>
</trim>
</insert>
<!-- 删除-->
<delete id="deleteOne" parameterType="java.lang.String">
delete from wgd_wbtj where id = #{id}
</delete>
<!-- 批量删除-->
<delete id="deleteBatch" parameterType="java.lang.String">
delete from wgd_wbtj where id in
<foreach collection="array" item="id" open="(" close=")" separator=",">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,323 @@
<?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.adc.da.slrs.wgdCensusLeo.dao.WgdWbxdDao">
<!-- 基础信息-->
<sql id="BaseInfo">
id,stage,number,name,project_id,project_name,type,preside,data_start,data_implement,body,drafting,data_record,report,participants,celebrity,cost_marking,cost_other,revised,status,signature,remark
</sql>
<!-- 查询条件-->
<sql id="Conditions">
<where>
<if test="id != null and id != ''">
and id = #{id}
</if>
<if test="stage != null and stage != ''">
and stage like concat('%',#{stage},'%')
</if>
<if test="number != null and number != ''">
and number like concat('%',#{number},'%')
</if>
<if test="name != null and name != ''">
and name like concat('%',#{name},'%')
</if>
<if test="project_id != null and project_id != ''">
and project_id = #{project_id}
</if>
<if test="project_name != null and project_name != ''">
and project_name = #{project_name}
</if>
<if test="type != null and type != ''">
and type = #{type}
</if>
<if test="preside != null and preside != ''">
and preside = #{preside}
</if>
<if test="data_start != null and data_start != ''">
and data_start = #{data_start}
</if>
<if test="data_implement != null and data_implement != ''">
and data_implement = #{data_implement}
</if>
<if test="body != null and body != ''">
and body = #{body}
</if>
<if test="drafting != null and drafting != ''">
and drafting = #{drafting}
</if>
<if test="data_record != null and data_record != ''">
and data_record = #{data_record}
</if>
<if test="report != null and report != ''">
and report = #{report}
</if>
<if test="participants != null and participants != ''">
and participants = #{participants}
</if>
<if test="celebrity != null and celebrity != ''">
and celebrity = #{celebrity}
</if>
<if test="cost_marking != null and cost_marking != ''">
and cost_marking = #{cost_marking}
</if>
<if test="cost_other != null and cost_other != ''">
and cost_other = #{cost_other}
</if>
<if test="revised != null and revised != ''">
and revised = #{revised}
</if>
<if test="status != null and status != ''">
and status = #{status}
</if>
<if test="signature != null and signature != ''">
and signature = #{signature}
</if>
<if test="remark != null and remark != ''">
and remark = #{remark}
</if>
</where>
</sql>
<select id="getTotal" resultType="java.lang.Integer">
select count(*) from wgd_wbxd
</select>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbxd" resultType="java.lang.Integer">
select count(*) from wgd_wbxd
<include refid="Conditions"></include>
</select>
<!-- 查询所有-->
<select id="selectAll" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbxd">
select <include refid="BaseInfo"></include> from wgd_wbxd
</select>
<!-- 多条件查询-->
<select id="queryAll" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbxd" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbxd">
select <include refid="BaseInfo"></include> from wgd_wbxd
<include refid="Conditions"></include>
</select>
<!-- 查询详情-->
<select id="selectOne" parameterType="java.lang.String" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbxd">
select <include refid="BaseInfo"></include> from wgd_wbxd
where id = #{id}
</select>
<!-- 修改-->
<update id="updateOne" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbxd">
update wgd_wbxd
<set>
<if test="stage != null and stage != ''">
stage = #{stage},
</if>
<if test="number != null and number != ''">
number = #{number},
</if>
<if test="name != null and name != ''">
name = #{name},
</if>
<if test="project_id != null and project_id != ''">
project_id = #{project_id},
</if>
<if test="project_name != null and project_name != ''">
project_name = #{project_name},
</if>
<if test="type != null and type != ''">
type = #{type},
</if>
<if test="preside != null and preside != ''">
preside = #{preside},
</if>
<if test="data_start != null and data_start != ''">
data_start = #{data_start},
</if>
<if test="data_implement != null and data_implement != ''">
data_implement = #{data_implement},
</if>
<if test="body != null and body != ''">
body = #{body},
</if>
<if test="drafting != null and drafting != ''">
drafting = #{drafting},
</if>
<if test="data_record != null and data_record != ''">
data_record = #{data_record},
</if>
<if test="report != null and report != ''">
report = #{report},
</if>
<if test="participants != null and participants != ''">
participants = #{participants},
</if>
<if test="celebrity != null and celebrity != ''">
celebrity = #{celebrity},
</if>
<if test="cost_marking != null and cost_marking != ''">
cost_marking = #{cost_marking},
</if>
<if test="cost_other != null and cost_other != ''">
cost_other = #{cost_other},
</if>
<if test="revised != null and revised != ''">
revised = #{revised},
</if>
<if test="status != null and status != ''">
status = #{status},
</if>
<if test="signature != null and signature != ''">
signature = #{signature},
</if>
<if test="remark != null and remark != ''">
remark = #{remark},
</if>
</set>
where id = #{id}
</update>
<!-- 插入一条数据-->
<insert id="insertOne" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbxd">
insert into wgd_wbxd
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
id,
</if>
<if test="stage != null and stage != ''">
stage,
</if>
<if test="number != null and number != ''">
number,
</if>
<if test="name != null and name != ''">
name,
</if>
<if test="project_id != null and project_id != ''">
project_id,
</if>
<if test="project_name != null and project_name != ''">
project_name,
</if>
<if test="type != null and type != ''">
type,
</if>
<if test="preside != null and preside != ''">
preside,
</if>
<if test="data_start != null and data_start != ''">
data_start,
</if>
<if test="data_implement != null and data_implement != ''">
data_implement,
</if>
<if test="body != null and body != ''">
body,
</if>
<if test="drafting != null and drafting != ''">
drafting,
</if>
<if test="data_record != null and data_record != ''">
data_record,
</if>
<if test="report != null and report != ''">
report,
</if>
<if test="participants != null and participants != ''">
participants,
</if>
<if test="celebrity != null and celebrity != ''">
celebrity,
</if>
<if test="cost_marking != null and cost_marking != ''">
cost_marking,
</if>
<if test="cost_other != null and cost_other != ''">
cost_other,
</if>
<if test="revised != null and revised != ''">
revised,
</if>
<if test="status != null and status != ''">
status,
</if>
<if test="signature != null and signature != ''">
signature,
</if>
<if test="remark != null and remark != ''">
remark,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
#{id},
</if>
<if test="stage != null and stage != ''">
#{stage},
</if>
<if test="number != null and number != ''">
#{number},
</if>
<if test="name != null and name != ''">
#{name},
</if>
<if test="project_id != null and project_id != ''">
#{project_id},
</if>
<if test="project_name != null and project_name != ''">
#{project_name},
</if>
<if test="type != null and type != ''">
#{type},
</if>
<if test="preside != null and preside != ''">
#{preside},
</if>
<if test="data_start != null and data_start != ''">
#{data_start},
</if>
<if test="data_implement != null and data_implement != ''">
#{data_implement},
</if>
<if test="body != null and body != ''">
#{body},
</if>
<if test="drafting != null and drafting != ''">
#{drafting},
</if>
<if test="data_record != null and data_record != ''">
#{data_record},
</if>
<if test="report != null and report != ''">
#{report},
</if>
<if test="participants != null and participants != ''">
#{participants},
</if>
<if test="celebrity != null and celebrity != ''">
#{celebrity},
</if>
<if test="cost_marking != null and cost_marking != ''">
#{cost_marking},
</if>
<if test="cost_other != null and cost_other != ''">
#{cost_other},
</if>
<if test="revised != null and revised != ''">
#{revised},
</if>
<if test="status != null and status != ''">
#{status},
</if>
<if test="signature != null and signature != ''">
#{signature},
</if>
<if test="remark != null and remark != ''">
#{remark},
</if>
</trim>
</insert>
<!-- 删除-->
<delete id="deleteOne" parameterType="java.lang.String">
delete from wgd_wbxd where id = #{id}
</delete>
<!-- 批量删除-->
<delete id="deleteBatch" parameterType="java.lang.String">
delete from wgd_wbxd where id in
<foreach collection="array" item="id" open="(" close=")" separator=",">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,122 @@
<?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.adc.da.slrs.wgdCensusLeo.dao.WgdZcbDao">
<!-- 基础信息-->
<sql id="BaseInfo">
id,name,cost,use,annex
</sql>
<!-- 查询条件-->
<sql id="Conditions">
<where>
<if test="id != null and id != ''">
and id = #{id}
</if>
<if test="name != null and name != ''">
and name like concat('%',#{name},'%')
</if>
<if test="cost != null and cost != ''">
and cost like concat('%',#{cost},'%')
</if>
<if test="use != null and use != ''">
and use like concat('%',#{use},'%')
</if>
<if test="annex != null and annex != ''">
and annex = #{annex}
</if>
</where>
</sql>
<select id="getTotal" resultType="java.lang.Integer">
select count(*) from wgd_zcb
</select>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdZcb" resultType="java.lang.Integer">
select count(*) from wgd_zcb
<include refid="Conditions"></include>
</select>
<!-- 查询所有-->
<select id="selectAll" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdZcb">
select <include refid="BaseInfo"></include> from wgd_zcb
</select>
<!-- 多条件查询-->
<select id="queryAll" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdZcb" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdZcb">
select <include refid="BaseInfo"></include> from wgd_zcb
<include refid="Conditions"></include>
</select>
<!-- 查询详情-->
<select id="selectOne" parameterType="java.lang.String" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdZcb">
select <include refid="BaseInfo"></include> from wgd_zcb
where id = #{id}
</select>
<!-- 修改-->
<update id="updateOne" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdZcb">
update wgd_zcb
<set>
<if test="name != null and name != ''">
name = #{name},
</if>
<if test="cost != null and cost != ''">
cost = #{cost},
</if>
<if test="use != null and use != ''">
use = #{use},
</if>
<if test="annex != null and annex != ''">
annex = #{annex},
</if>
</set>
where id = #{id}
</update>
<!-- 插入一条数据-->
<insert id="insertOne" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdZcb">
insert into wgd_zcb
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
id,
</if>
<if test="name != null and name != ''">
name,
</if>
<if test="cost != null and cost != ''">
cost,
</if>
<if test="use != null and use != ''">
use,
</if>
<if test="annex != null and annex != ''">
annex,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
#{id},
</if>
<if test="name != null and name != ''">
#{name},
</if>
<if test="cost != null and cost != ''">
#{cost},
</if>
<if test="use != null and use != ''">
#{use},
</if>
<if test="annex != null and annex != ''">
#{annex},
</if>
</trim>
</insert>
<!-- 删除-->
<delete id="deleteOne" parameterType="java.lang.String">
delete from wgd_zcb where id = #{id}
</delete>
<!-- 批量删除-->
<delete id="deleteBatch" parameterType="java.lang.String">
delete from wgd_zcb where id in
<foreach collection="array" item="id" open="(" close=")" separator=",">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,161 @@
<?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.adc.da.slrs.wgdCensusZ.dao.WgdAssocCostDao">
<sql id="pages">
<if test=" null != pageSize ">
LIMIT ${(page-1) * pageSize},${pageSize}
</if>
</sql>
<!-- 基础信息-->
<sql id="BaseInfo">
id,sc_name,ssc_name,wg_name,pay_standard,pay_reality,cost_outlay,annual_payment
</sql>
<!-- 查询条件-->
<sql id="Conditions">
<where>
<if test="id != null and id != ''">
and id = #{id}
</if>
<if test="scName != null and scName != ''">
and (
sc_name like concat('%',#{scName} ,'%')
ssc_name like concat('%',#{scName} ,'%')
wg_name like concat('%',#{scName} ,'%')
)
</if>
<if test="payStandard != null and payStandard != ''">
and pay_standard = #{payStandard}
</if>
<if test="payReality != null and payReality != ''">
and pay_reality = #{payReality}
</if>
<if test="costOutlay != null and costOutlay != ''">
and cost_outlay = #{costOutlay}
</if>
<if test="annualPayment != null and annualPayment != ''">
and annual_payment = #{annualPayment}
</if>
</where>
</sql>
<select id="getTotal" resultType="java.lang.Integer">
select count(*) from wgd_assoc_cost
</select>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdAssocCost" resultType="java.lang.Integer">
select count(*) from wgd_assoc_cost
<include refid="Conditions"></include>
</select>
<!-- 查询所有-->
<select id="selectAll" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdAssocCost">
select <include refid="BaseInfo"></include> from wgd_assoc_cost
<include refid="pages"></include>
</select>
<!-- 多条件查询-->
<select id="queryAll" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdAssocCost" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdAssocCost">
select <include refid="BaseInfo"></include> from wgd_assoc_cost
<include refid="Conditions"></include>
<include refid="pages"></include>
</select>
<!-- 查询详情-->
<select id="selectOne" parameterType="java.lang.String" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdAssocCost">
select <include refid="BaseInfo"></include> from wgd_assoc_cost
where id = #{id}
</select>
<!-- 修改-->
<update id="updateOne" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdAssocCost">
update wgd_assoc_cost
<set>
<if test="scName != null and scName != ''">
sc_name = #{scName},
</if>
<if test="sscName != null and sscName != ''">
ssc_name = #{sscName},
</if>
<if test="wgName != null and wgName != ''">
wg_name = #{wgName},
</if>
<if test="payStandard != null">
pay_standard = #{payStandard},
</if>
<if test="payReality != null">
pay_reality = #{payReality},
</if>
<if test="costOutlay != null">
cost_outlay = #{costOutlay},
</if>
<if test="annualPayment != null">
annual_payment = #{annualPayment},
</if>
</set>
where id = #{id}
</update>
<!-- 插入一条数据-->
<insert id="insertOne" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdAssocCost">
insert into wgd_assoc_cost
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
id,
</if>
<if test="scName != null and scName != ''">
sc_name,
</if>
<if test="sscName != null and sscName != ''">
ssc_name,
</if>
<if test="wgName != null and wgName != ''">
wg_name,
</if>
<if test="payStandard != null and payStandard != ''">
pay_standard,
</if>
<if test="payReality != null and payReality != ''">
pay_reality,
</if>
<if test="costOutlay != null and costOutlay != ''">
cost_outlay,
</if>
<if test="annualPayment != null and annualPayment != ''">
annual_payment,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
#{id},
</if>
<if test="scName != null and scName != ''">
#{scName},
</if>
<if test="sscName != null and sscName != ''">
#{sscName},
</if>
<if test="wgName != null and wgName != ''">
#{wgName},
</if>
<if test="payStandard != null and payStandard != ''">
#{payStandard},
</if>
<if test="payReality != null and payReality != ''">
#{payReality},
</if>
<if test="costOutlay != null and costOutlay != ''">
#{costOutlay},
</if>
<if test="annualPayment != null and annualPayment != ''">
#{annualPayment},
</if>
</trim>
</insert>
<!-- 删除-->
<delete id="deleteOne" parameterType="java.lang.String">
delete from wgd_assoc_cost where id = #{id}
</delete>
<!-- 批量删除-->
<delete id="deleteBatch" parameterType="java.lang.String">
delete from wgd_assoc_cost where id in
<foreach collection="array" item="id" open="(" close=")" separator=",">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,467 @@
<?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.adc.da.slrs.wgdCensusZ.dao.WgdAssocInfoDao">
<sql id="pages">
<if test=" null != pageSize ">
LIMIT ${(page-1) * pageSize},${pageSize}
</if>
</sql>
<sql id="BaseInfo">
id,sc_name,ssc_name,wg_name,role,attend,standard,charge,leader,ini_time,
cur_time,cost_standard,cost_outlay,last_pay_time,pay_period,handler,
department,as_proper,as_status,as_contact,tel,mail,
p17,p18,p19,p20,p21,p22,p23,p24,p25,p26,p27,p28,p29,p30,p31,p32
</sql>
<sql id="Conditions">
WHERE 1=1
<if test="id != null and id != ''">
and id = #{id}
</if>
<if test="scName != null and scName != ''">
and (
sc_name like concat('%',#{scName} ,'%')
ssc_name like concat('%',#{scName} ,'%')
wg_name like concat('%',#{scName} ,'%')
)
</if>
<if test="role != null and role != ''">
and role = #{role}
</if>
<if test="attend != null and attend != ''">
and attend = #{attend}
</if>
<if test="standard != null and standard != ''">
and standard = #{standard}
</if>
<if test="charge != null and charge != ''">
and charge = #{charge}
</if>
<if test="leader != null and leader != ''">
and leader = #{leader}
</if>
<if test="iniTime != null">
and DATE_FORMAT(ini_time,'%Y%m%d') = DATE_FORMAT(iniTime,'%Y%m%d')
</if>
<if test="curTime != null">
and DATE_FORMAT(cur_time,'%Y%m%d') = DATE_FORMAT(curTime,'%Y%m%d')
</if>
<if test="costStandard != null and costStandard != ''">
and cost_standard = #{costStandard}
</if>
<if test="costOutlay != null and costOutlay != ''">
and cost_outlay = #{costOutlay}
</if>
<if test="lastPayTime != null">
and DATE_FORMAT(last_pay_time,'%Y%m%d') = DATE_FORMAT(lastPayTime,'%Y%m%d')
</if>
<if test="payPeriod != null and payPeriod != ''">
and pay_period = #{payPeriod}
</if>
<if test="handler != null and handler != ''">
and handler = #{handler}
</if>
<if test="department != null and department != ''">
and department = #{department}
</if>
<if test="asProper != null and asProper != ''">
and as_proper = #{asProper}
</if>
<if test="asStatus != null and asStatus != ''">
and as_status = #{asStatus}
</if>
<if test="asContact != null and asContact != ''">
and as_contact = #{asContact}
</if>
<if test="tel != null and tel != ''">
and tel = #{tel}
</if>
<if test="mail != null and mail != ''">
and mail = #{mail}
</if>
</sql>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdAssocInfo" resultType="java.lang.Integer">
select count(*) from wgd_assoc_info
<include refid="Conditions"></include>
</select>
<select id="selectAll" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdAssocInfo">
select <include refid="BaseInfo"></include> from wgd_assoc_info
</select>
<!-- 查询-->
<select id="queryAll" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdAssocInfo" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdAssocInfo">
select <include refid="BaseInfo"></include> from wgd_assoc_info
<include refid="Conditions"></include>
<include refid="pages"></include>
</select>
<select id="selectOne" parameterType="java.lang.String" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdAssocInfo">
select <include refid="BaseInfo"></include> from wgd_assoc_info
where id = #{id}
</select>
<!-- 更新-->
<update id="updateOne" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdAssocInfo">
update wgd_assoc_info
<set>
<if test="scName != null and scName != ''">
sc_name = #{scName},
</if>
<if test="sscName != null and sscName != ''">
ssc_name = #{sscName},
</if>
<if test="wgName != null and wgName != ''">
wg_name = #{wgName},
</if>
<if test="role != null and role != ''">
role = #{role},
</if>
<if test="attend != null and attend != ''">
attend = #{attend},
</if>
<if test="standard != null and standard != ''">
standard = #{standard},
</if>
<if test="charge != null and charge != ''">
charge = #{charge},
</if>
<if test="leader != null and leader != ''">
leader = #{leader},
</if>
<if test="iniTime != null">
ini_time = #{iniTime},
</if>
<if test="curTime != null">
cur_time = #{curTime},
</if>
<if test="costStandard != null and costStandard != ''">
cost_standard = #{costStandard},
</if>
<if test="costOutlay != null and costOutlay != ''">
cost_outlay = #{costOutlay},
</if>
<if test="lastPayTime != null">
last_pay_time = #{lastPayTime},
</if>
<if test="payPeriod != null and payPeriod != ''">
pay_period = #{payPeriod},
</if>
<if test="handler != null and handler != ''">
handler = #{handler},
</if>
<if test="department != null and department != ''">
department = #{department},
</if>
<if test="asProper != null and asProper != ''">
as_proper = #{asProper},
</if>
<if test="asStatus != null and asStatus != ''">
as_status = #{asStatus},
</if>
<if test="asContact != null and asContact != ''">
as_contact = #{asContact},
</if>
<if test="tel != null and tel != ''">
tel = #{tel},
</if>
<if test="mail != null and mail != ''">
mail = #{mail},
</if>
<if test="p17 != null and p17 != ''">
p17 = #{p17},
</if>
<if test="p18 != null and p18 != ''">
p18 = #{p18},
</if>
<if test="p19 != null and p19 != ''">
p19 = #{p19},
</if>
<if test="p20 != null and p20 != ''">
p20 = #{p20},
</if>
<if test="p21 != null and p21 != ''">
p21 = #{p21},
</if>
<if test="p22 != null and p22 != ''">
p22 = #{p22},
</if>
<if test="p23 != null and p23 != ''">
p23 = #{p23},
</if>
<if test="p24 != null and p24 != ''">
p24 = #{p24},
</if>
<if test="p25 != null and p25 != ''">
p25 = #{p25},
</if>
<if test="p26 != null and p26 != ''">
p26 = #{p26},
</if>
<if test="p27 != null and p27 != ''">
p27 = #{p27},
</if>
<if test="p28 != null and p28 != ''">
p28 = #{p28},
</if>
<if test="p29 != null and p29 != ''">
p29 = #{p29},
</if>
<if test="p30 != null and p30 != ''">
p30 = #{p30},
</if>
<if test="p31 != null and p31 != ''">
p31 = #{p31},
</if>
<if test="p32 != null and p32 != ''">
p32 = #{p32},
</if>
</set>
where id = #{id}
</update>
<!-- 新增-->
<insert id="insertOne" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdAssocInfo">
insert into wgd_assoc_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
id,
</if>
<if test="scName != null and scName != ''">
sc_name,
</if>
<if test="sscName != null and sscName != ''">
ssc_name,
</if>
<if test="wgName != null and wgName != ''">
wg_name,
</if>
<if test="role != null and role != ''">
role,
</if>
<if test="attend != null and attend != ''">
attend,
</if>
<if test="standard != null and standard != ''">
standard,
</if>
<if test="charge != null and charge != ''">
charge,
</if>
<if test="leader != null and leader != ''">
leader,
</if>
<if test="iniTime != null">
ini_time,
</if>
<if test="curTime != null">
cur_time,
</if>
<if test="costStandard != null and costStandard != ''">
cost_standard,
</if>
<if test="costOutlay != null and costOutlay != ''">
cost_outlay,
</if>
<if test="lastPayTime != null">
last_pay_time,
</if>
<if test="payPeriod != null and payPeriod != ''">
pay_period,
</if>
<if test="handler != null and handler != ''">
handler,
</if>
<if test="department != null and department != ''">
department,
</if>
<if test="asProper != null and asProper != ''">
as_proper,
</if>
<if test="asStatus != null and asStatus != ''">
as_status,
</if>
<if test="asContact != null and asContact != ''">
as_contact,
</if>
<if test="tel != null and tel != ''">
tel,
</if>
<if test="mail != null and mail != ''">
mail,
</if>
<if test="p17 != null and p17 != ''">
p17,
</if>
<if test="p18 != null and p18 != ''">
p18,
</if>
<if test="p19 != null and p19 != ''">
p19,
</if>
<if test="p20 != null and p20 != ''">
p20,
</if>
<if test="p21 != null and p21 != ''">
p21,
</if>
<if test="p22 != null and p22 != ''">
p22,
</if>
<if test="p23 != null and p23 != ''">
p23,
</if>
<if test="p24 != null and p24 != ''">
p24,
</if>
<if test="p25 != null and p25 != ''">
p25,
</if>
<if test="p26 != null and p26 != ''">
p26,
</if>
<if test="p27 != null and p27 != ''">
p27,
</if>
<if test="p28 != null and p28 != ''">
p28,
</if>
<if test="p29 != null and p29 != ''">
p29,
</if>
<if test="p30 != null and p30 != ''">
p30,
</if>
<if test="p31 != null and p31 != ''">
p31,
</if>
<if test="p32 != null and p32 != ''">
p32,
</if>
</trim>
values
<trim suffixOverrides="," suffix=")" prefix="(">
<if test="id != null and id != ''">
#{id},
</if>
<if test="scName != null and scName != ''">
#{scName},
</if>
<if test="sscName != null and sscName != ''">
#{sscName},
</if>
<if test="wgName != null and wgName != ''">
#{wgName},
</if>
<if test="role != null and role != ''">
#{role},
</if>
<if test="attend != null and attend != ''">
#{attend},
</if>
<if test="standard != null and standard != ''">
#{standard},
</if>
<if test="charge != null and charge != ''">
#{charge},
</if>
<if test="leader != null and leader != ''">
#{leader},
</if>
<if test="iniTime != null">
#{iniTime},
</if>
<if test="curTime != null">
#{curTime},
</if>
<if test="costStandard != null and costStandard != ''">
#{costStandard},
</if>
<if test="costOutlay != null and costOutlay != ''">
#{costOutlay},
</if>
<if test="lastPayTime != null">
#{lastPayTime},
</if>
<if test="payPeriod != null and payPeriod != ''">
#{payPeriod},
</if>
<if test="handler != null and handler != ''">
#{handler},
</if>
<if test="department != null and department != ''">
#{department},
</if>
<if test="asProper != null and asProper != ''">
#{asProper},
</if>
<if test="asStatus != null and asStatus != ''">
#{asStatus},
</if>
<if test="asContact != null and asContact != ''">
#{asContact},
</if>
<if test="tel != null and tel != ''">
#{tel},
</if>
<if test="mail != null and mail != ''">
#{mail},
</if>
<if test="p17 != null and p17 != ''">
#{p17},
</if>
<if test="p18 != null and p18 != ''">
#{p18},
</if>
<if test="p19 != null and p19 != ''">
#{p19},
</if>
<if test="p20 != null and p20 != ''">
#{p20},
</if>
<if test="p21 != null and p21 != ''">
#{p21},
</if>
<if test="p22 != null and p22 != ''">
#{p22},
</if>
<if test="p23 != null and p23 != ''">
#{p23},
</if>
<if test="p24 != null and p24 != ''">
#{p24},
</if>
<if test="p25 != null and p25 != ''">
#{p25},
</if>
<if test="p26 != null and p26 != ''">
#{p26},
</if>
<if test="p27 != null and p27 != ''">
#{p27},
</if>
<if test="p28 != null and p28 != ''">
#{p28},
</if>
<if test="p29 != null and p29 != ''">
#{p29},
</if>
<if test="p30 != null and p30 != ''">
#{p30},
</if>
<if test="p31 != null and p31 != ''">
#{p31},
</if>
<if test="p32 != null and p32 != ''">
#{p32},
</if>
</trim>
</insert>
<delete id="deleteOne" parameterType="java.lang.String">
delete from wgd_assoc_info where id = #{id}
</delete>
<!-- 删除-->
<delete id="deleteBatch" parameterType="java.lang.String">
delete from wgd_assoc_info where id in
<foreach item="id" collection="array" open="(" close=")" separator=",">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,241 @@
<?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.adc.da.slrs.wgdCensusZ.dao.WgdCommiInfoDao">
<sql id="pages">
<if test=" null != pageSize ">
LIMIT ${(page-1) * pageSize},${pageSize}
</if>
</sql>
<sql id="BaseInfo">
id,unit,sc_name,ssc_name,wg_name,role,attend,cur_time,job,department,
tel,term,certificate,account,password,remark
</sql>
<sql id="Conditions">
where 1=1
<if test="id != null and id != ''">
and id = #{id}
</if>
<if test="unit != null and unit != ''">
and unit = #{unit}
</if>
<if test="scName != null and scName != ''">
and (
sc_name like concat('%',#{scName} ,'%')
ssc_name like concat('%',#{scName} ,'%')
wg_name like concat('%',#{scName} ,'%')
)
</if>
<if test="role != null and role != ''">
and role = #{role}
</if>
<if test="attend != null and attend != ''">
and attend = #{attend}
</if>
<if test="curTime != null">
and DATE_FORMAT(cur_time,'%Y%m%d') = DATE_FORMAT(curTime,'%Y%m%d')
</if>
<if test="job != null and job != ''">
and job = #{job}
</if>
<if test="department != null and department != ''">
and department = #{department}
</if>
<if test="tel != null and tel != ''">
and tel = #{tel}
</if>
<if test="term != null and term != ''">
and term = #{term}
</if>
<if test="certificate != null and certificate != ''">
and certificate = #{certificate}
</if>
<if test="account != null and account != ''">
and account = #{account}
</if>
<if test="remark != null and remark != ''">
and remark = #{remark}
</if>
</sql>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdCommiInfo" resultType="java.lang.Integer">
select count(*) from wgd_commi_info
<include refid="Conditions"></include>
</select>
<select id="selectAll" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdCommiInfo">
select <include refid="BaseInfo"></include> from wgd_commi_info
</select>
<select id="queryAll" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdCommiInfo" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdCommiInfo">
select <include refid="BaseInfo"></include> from wgd_commi_info
<include refid="Conditions"></include>
<include refid="pages"></include>
</select>
<select id="selectOne" parameterType="java.lang.String" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdCommiInfo">
select <include refid="BaseInfo"></include> from wgd_commi_info
where id = #{id}
</select>
<update id="updateOne" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdCommiInfo">
update wgd_commi_info
<set>
<if test="unit != null and unit != ''">
unit = #{unit},
</if>
<if test="scName != null and scName != ''">
sc_name = #{scName},
</if>
<if test="sscName != null and sscName != ''">
ssc_name = #{sscName},
</if>
<if test="wgName != null and wgName != ''">
wg_name = #{wgName},
</if>
<if test="role != null and role != ''">
role = #{role},
</if>
<if test="attend != null and attend != ''">
attend = #{attend},
</if>
<if test="curTime != null">
cur_time = #{curTime},
</if>
<if test="job != null and job != ''">
job = #{job},
</if>
<if test="department != null and department != ''">
department = #{department},
</if>
<if test="tel != null and tel != ''">
tel = #{tel},
</if>
<if test="term != null and term != ''">
term = #{term},
</if>
<if test="certificate != null and certificate != ''">
certificate = #{certificate},
</if>
<if test="account != null and account != ''">
account = #{account},
</if>
<if test="password != null and password != ''">
password = #{password},
</if>
<if test="remark != null and remark != ''">
remark = #{remark},
</if>
</set>
where id = #{id}
</update>
<insert id="insertOne" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdCommiInfo">
insert into wgd_commi_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
id,
</if>
<if test="unit != null and unit != ''">
unit,
</if>
<if test="scName != null and scName != ''">
sc_name,
</if>
<if test="sscName != null and sscName != ''">
ssc_name,
</if>
<if test="wgName != null and wgName != ''">
wg_name,
</if>
<if test="role != null and role != ''">
role,
</if>
<if test="attend != null and attend != ''">
attend,
</if>
<if test="curTime != null">
cur_time,
</if>
<if test="job != null and job != ''">
job,
</if>
<if test="department != null and department != ''">
department,
</if>
<if test="tel != null and tel != ''">
tel,
</if>
<if test="term != null and term != ''">
term,
</if>
<if test="certificate != null and certificate != ''">
certificate,
</if>
<if test="account != null and account != ''">
account,
</if>
<if test="password != null and password != ''">
password,
</if>
<if test="remark != null and remark != ''">
remark,
</if>
</trim>
values
<trim prefix="(" suffixOverrides="," suffix=")">
<if test="id != null and id != ''">
#{id},
</if>
<if test="unit != null and unit != ''">
#{unit},
</if>
<if test="scName != null and scName != ''">
#{scName},
</if>
<if test="sscName != null and sscName != ''">
#{sscName},
</if>
<if test="wgName != null and wgName != ''">
#{wgName},
</if>
<if test="role != null and role != ''">
#{role},
</if>
<if test="attend != null and attend != ''">
#{attend},
</if>
<if test="curTime != null">
#{curTime},
</if>
<if test="job != null and job != ''">
#{job},
</if>
<if test="department != null and department != ''">
#{department},
</if>
<if test="tel != null and tel != ''">
#{tel},
</if>
<if test="term != null and term != ''">
#{term},
</if>
<if test="certificate != null and certificate != ''">
#{certificate},
</if>
<if test="account != null and account != ''">
#{account},
</if>
<if test="password != null and password != ''">
#{password},
</if>
<if test="remark != null and remark != ''">
#{remark},
</if>
</trim>
</insert>
<delete id="deleteOne" parameterType="java.lang.String">
delete from wgd_commi_info where id = #{id}
</delete>
<delete id="deleteBatch" parameterType="java.lang.String">
delete from wgd_commi_info where id in
<foreach collection="array" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,124 @@
<?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.adc.da.slrs.wgdCensusZ.dao.WgdExReviseCostDao">
<sql id="pages">
<if test=" null != pageSize ">
LIMIT ${(page-1) * pageSize},${pageSize}
</if>
</sql>
<sql id="BaseInfo">
id,type,pro_id,pro_name,cost_outlay,cost
</sql>
<sql id="Conditions">
where 1=1
<if test="id != null and id != ''">
and id = #{id}
</if>
<if test="type != null and type != ''">
and type = #{type}
</if>
<if test="proId != null and proId != ''">
and pro_id = #{proId}
</if>
<if test="proName != null and proName != ''">
and pro_name = #{proName}
</if>
<if test="cost != null and cost != ''">
and cost = #{cost}
</if>
<if test="costOutlay != null and costOutlay != ''">
and cost_outlay = #{costOutlay}
</if>
</sql>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdExReviseCost" resultType="java.lang.Integer">
select count(*) from wgd_ex_revise_cost
<include refid="Conditions"></include>
</select>
<select id="selectAll" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdExReviseCost">
select <include refid="BaseInfo"></include> from wgd_ex_revise_cost
</select>
<select id="queryAll" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdExReviseCost" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdExReviseCost">
select <include refid="BaseInfo"></include> from wgd_ex_revise_cost
<include refid="Conditions"></include>
<include refid="pages"></include>
</select>
<select id="selectOne" parameterType="java.lang.String" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdExReviseCost">
select <include refid="BaseInfo"></include> from wgd_ex_revise_cost
where id = #{id}
</select>
<update id="updateOne" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdExReviseCost">
update wgd_ex_revise_cost
<set>
<if test="type != null">
type = #{type},
</if>
<if test="proId != null">
pro_id = #{proId},
</if>
<if test="proName != null">
pro_name = #{proName},
</if>
<if test="cost != null">
cost = #{cost},
</if>
<if test="costOutlay != null">
cost_outlay = #{costOutlay},
</if>
</set>
where id = #{id}
</update>
<insert id="insertOne" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdExReviseCost">
insert into wgd_ex_revise_cost
<trim prefix="(" suffixOverrides="," suffix=")">
<if test="id != null">
id,
</if>
<if test="type != null">
type,
</if>
<if test="proId != null">
pro_id,
</if>
<if test="proName != null">
pro_name,
</if>
<if test="cost != null">
cost,
</if>
<if test="costOutlay != null">
cost_outlay,
</if>
</trim>
values
<trim prefix="(" suffixOverrides="," suffix=")">
<if test="id != null">
#{id},
</if>
<if test="type != null">
#{type},
</if>
<if test="proId != null">
#{proId},
</if>
<if test="proName != null">
#{proName},
</if>
<if test="cost != null">
#{cost},
</if>
<if test="costOutlay != null">
#{costOutlay},
</if>
</trim>
</insert>
<delete id="deleteOne" parameterType="java.lang.String">
delete from wgd_ex_revise_cost where id = #{id}
</delete>
<delete id="deleteBatch" parameterType="java.lang.String">
delete from wgd_ex_revise_cost where id in
<foreach collection="array" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,137 @@
<?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.adc.da.slrs.wgdCensusZ.dao.WgdMeetCostDao">
<sql id="pages">
<if test=" null != pageSize ">
LIMIT ${(page-1) * pageSize},${pageSize}
</if>
</sql>
<sql id="BaseInfo">
id,unit,meet_name,meet_time,pay_standard,pay_reality,cost_outlay
</sql>
<sql id="Conditions">
where 1=1
<if test="id != null and id != ''">
and id = #{id}
</if>
<if test="unit != null and unit != ''">
and unit = #{unit}
</if>
<if test="meetName != null and meetName != ''">
and meet_name = #{meetName}
</if>
<if test="meetTime != null">
and DATE_FORMAT(meet_time,'%Y%m%d') = DATE_FORMAT(#{meetTime},'%Y%m%d')
</if>
<if test="payStandard != null and payStandard != ''">
and pay_standard = #{payStandard}
</if>
<if test="payReality != null and payReality != ''">
and pay_reality = #{payReality}
</if>
<if test="costOutlay != null and costOutlay != ''">
and cost_outlay = #{costOutlay}
</if>
</sql>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdMeetCost" resultType="java.lang.Integer">
select count(*) from wgd_meet_cost
<include refid="Conditions"></include>
</select>
<select id="selectAll" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdMeetCost">
select <include refid="BaseInfo"></include> from wgd_meet_cost
</select>
<select id="queryAll" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdMeetCost" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdMeetCost">
select <include refid="BaseInfo"></include> from wgd_meet_cost
<include refid="Conditions"></include>
<include refid="pages"></include>
</select>
<select id="selectOne" parameterType="java.lang.String" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdMeetCost">
select <include refid="BaseInfo"></include> from wgd_meet_cost
where id = #{id}
</select>
<update id="updateOne" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdMeetCost">
update wgd_meet_cost
<set>
<if test="unit != null">
unit = #{unit},
</if>
<if test="meetName != null">
meet_name = #{meetName},
</if>
<if test="meetTime">
meet_time = #{meetTime},
</if>
<if test="payStandard != null">
pay_standard = #{payStandard},
</if>
<if test="payReality != null">
pay_reality = #{payReality},
</if>
<if test="costOutlay != null">
cost_outlay = #{costOutlay},
</if>
</set>
where id = #{id}
</update>
<insert id="insertOne" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdMeetCost">
insert into wgd_meet_cost
<trim prefix="(" suffixOverrides="," suffix=")">
<if test="id != null and id != ''">
id,
</if>
<if test="unit != null and unit != ''">
unit,
</if>
<if test="meetName != null and meetName != ''">
meet_name,
</if>
<if test="meetTime != null">
meet_time,
</if>
<if test="payStandard != null and payStandard != ''">
pay_standard,
</if>
<if test="payReality != null and payReality != ''">
pay_reality,
</if>
<if test="costOutlay != null and costOutlay != ''">
cost_outlay,
</if>
</trim>
values
<trim prefix="(" suffixOverrides="," suffix=")">
<if test="id != null and id != ''">
#{id},
</if>
<if test="unit != null and unit != ''">
#{unit},
</if>
<if test="meetName != null and meetName != ''">
#{meetName},
</if>
<if test="meetTime != null">
#{meetTime},
</if>
<if test="payStandard != null and payStandard != ''">
#{payStandard},
</if>
<if test="payReality != null and payReality != ''">
#{payReality},
</if>
<if test="costOutlay != null and costOutlay != ''">
#{costOutlay},
</if>
</trim>
</insert>
<delete id="deleteOne" parameterType="java.lang.String">
delete from wgd_meet_cost where id = #{id}
</delete>
<delete id="deleteBatch" parameterType="java.lang.String">
delete from wgd_meet_cost where id in
<foreach collection="array" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>