2021-03-30 15:37:53 +08:00
|
|
|
<?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.tenlion.twoduty.dao.partypunishinfo.IPartyPunishInfoDao">
|
|
|
|
|
|
|
|
<resultMap id="partyPunishInfoDTO" type="com.tenlion.twoduty.pojo.dtos.partypunishinfo.PartyPunishInfoDTO">
|
|
|
|
<result column="report_id" property="reportId"/>
|
|
|
|
<result column="duty_index_lib_id" property="dutyIndexLibId"/>
|
|
|
|
<result column="person_name" property="personName"/>
|
|
|
|
<result column="party_org" property="partyOrg"/>
|
|
|
|
<result column="party_discipline" property="partyDiscipline"/>
|
|
|
|
<result column="gov_discipline" property="govDiscipline"/>
|
|
|
|
<result column="punish_time" property="punishTime"/>
|
|
|
|
<result column="announce_time" property="announceTime"/>
|
|
|
|
<result column="announce_scope" property="announceScope"/>
|
|
|
|
<result column="put_in_file_time" property="putInFileTime"/>
|
|
|
|
<result column="job_wages_change" property="jobWagesChange"/>
|
|
|
|
<result column="job_wages_rise" property="jobWagesRise"/>
|
|
|
|
<result column="year_examine_level" property="yearExamineLevel"/>
|
|
|
|
<result column="year_bonus_info" property="yearBonusInfo"/>
|
|
|
|
<result column="achievement_bouns" property="achievementBouns"/>
|
|
|
|
<result column="remarks" property="remarks"/>
|
|
|
|
<result column="creator" property="creator"/>
|
|
|
|
<result column="gmt_create" property="gmtCreate"/>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
<resultMap id="partyPunishInfoBO" type="com.tenlion.twoduty.pojo.bos.partypunishinfo.PartyPunishInfoBO">
|
|
|
|
<result column="report_id" property="reportId"/>
|
|
|
|
<result column="duty_index_lib_id" property="dutyIndexLibId"/>
|
|
|
|
<result column="person_name" property="personName"/>
|
|
|
|
<result column="party_org" property="partyOrg"/>
|
|
|
|
<result column="party_discipline" property="partyDiscipline"/>
|
|
|
|
<result column="gov_discipline" property="govDiscipline"/>
|
|
|
|
<result column="punish_time" property="punishTime"/>
|
|
|
|
<result column="announce_time" property="announceTime"/>
|
|
|
|
<result column="announce_scope" property="announceScope"/>
|
|
|
|
<result column="put_in_file_time" property="putInFileTime"/>
|
|
|
|
<result column="job_wages_change" property="jobWagesChange"/>
|
|
|
|
<result column="job_wages_rise" property="jobWagesRise"/>
|
|
|
|
<result column="year_examine_level" property="yearExamineLevel"/>
|
|
|
|
<result column="year_bonus_info" property="yearBonusInfo"/>
|
|
|
|
<result column="achievement_bouns" property="achievementBouns"/>
|
|
|
|
<result column="remarks" property="remarks"/>
|
|
|
|
<result column="creator" property="creator"/>
|
|
|
|
<result column="gmt_create" property="gmtCreate"/>
|
|
|
|
<result column="modifier" property="modifier"/>
|
|
|
|
<result column="gmt_modified" property="gmtModified"/>
|
|
|
|
<result column="is_delete" property="isDelete"/>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
<resultMap id="partyPunishInfoPO" type="com.tenlion.twoduty.pojo.pos.partypunishinfo.PartyPunishInfoPO">
|
|
|
|
<result column="report_id" property="reportId"/>
|
|
|
|
<result column="duty_index_lib_id" property="dutyIndexLibId"/>
|
|
|
|
<result column="person_name" property="personName"/>
|
|
|
|
<result column="party_org" property="partyOrg"/>
|
|
|
|
<result column="party_discipline" property="partyDiscipline"/>
|
|
|
|
<result column="gov_discipline" property="govDiscipline"/>
|
|
|
|
<result column="punish_time" property="punishTime"/>
|
|
|
|
<result column="announce_time" property="announceTime"/>
|
|
|
|
<result column="announce_scope" property="announceScope"/>
|
|
|
|
<result column="put_in_file_time" property="putInFileTime"/>
|
|
|
|
<result column="job_wages_change" property="jobWagesChange"/>
|
|
|
|
<result column="job_wages_rise" property="jobWagesRise"/>
|
|
|
|
<result column="year_examine_level" property="yearExamineLevel"/>
|
|
|
|
<result column="year_bonus_info" property="yearBonusInfo"/>
|
|
|
|
<result column="achievement_bouns" property="achievementBouns"/>
|
|
|
|
<result column="remarks" property="remarks"/>
|
|
|
|
<result column="creator" property="creator"/>
|
|
|
|
<result column="gmt_create" property="gmtCreate"/>
|
|
|
|
<result column="modifier" property="modifier"/>
|
|
|
|
<result column="gmt_modified" property="gmtModified"/>
|
|
|
|
<result column="is_delete" property="isDelete"/>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
<!-- 新增 -->
|
|
|
|
<insert id="save" parameterType="map">
|
|
|
|
INSERT INTO t_party_punish_info(
|
|
|
|
report_id,
|
|
|
|
duty_index_lib_id,
|
|
|
|
person_name,
|
|
|
|
party_org,
|
|
|
|
party_discipline,
|
|
|
|
gov_discipline,
|
|
|
|
punish_time,
|
|
|
|
announce_time,
|
|
|
|
announce_scope,
|
|
|
|
put_in_file_time,
|
|
|
|
job_wages_change,
|
|
|
|
job_wages_rise,
|
|
|
|
year_examine_level,
|
|
|
|
year_bonus_info,
|
|
|
|
achievement_bouns,
|
|
|
|
remarks,
|
|
|
|
creator,
|
|
|
|
gmt_create,
|
|
|
|
modifier,
|
|
|
|
gmt_modified,
|
|
|
|
is_delete
|
|
|
|
) VALUES(
|
|
|
|
#{reportId},
|
|
|
|
#{dutyIndexLibId},
|
|
|
|
#{personName},
|
|
|
|
#{partyOrg},
|
|
|
|
#{partyDiscipline},
|
|
|
|
#{govDiscipline},
|
|
|
|
#{punishTime},
|
|
|
|
#{announceTime},
|
|
|
|
#{announceScope},
|
|
|
|
#{putInFileTime},
|
|
|
|
#{jobWagesChange},
|
|
|
|
#{jobWagesRise},
|
|
|
|
#{yearExamineLevel},
|
|
|
|
#{yearBonusInfo},
|
|
|
|
#{achievementBouns},
|
|
|
|
#{remarks},
|
|
|
|
#{creator},
|
|
|
|
#{gmtCreate},
|
|
|
|
#{modifier},
|
|
|
|
#{gmtModified},
|
|
|
|
#{isDelete}
|
|
|
|
)
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
<!-- 删除 -->
|
|
|
|
<update id="remove" parameterType="map">
|
|
|
|
UPDATE
|
|
|
|
t_party_punish_info
|
|
|
|
SET
|
|
|
|
gmt_modified = #{gmtModified},
|
|
|
|
modifier = #{modifier},
|
|
|
|
is_delete = 1
|
|
|
|
WHERE
|
|
|
|
report_id IN
|
|
|
|
<foreach collection="reportIds" index="index" open="(" separator="," close=")">
|
|
|
|
#{reportIds[${index}]}
|
|
|
|
</foreach>
|
|
|
|
</update>
|
|
|
|
|
|
|
|
<!-- 删除(物理) -->
|
|
|
|
<update id="delete" parameterType="map">
|
|
|
|
DELETE FROM
|
|
|
|
t_party_punish_info
|
|
|
|
WHERE
|
|
|
|
report_id IN
|
|
|
|
<foreach collection="reportIds" index="index" open="(" separator="," close=")">
|
|
|
|
#{reportIds[${index}]}
|
|
|
|
</foreach>
|
|
|
|
</update>
|
|
|
|
|
|
|
|
<!-- 修改 -->
|
|
|
|
<update id="update" parameterType="map">
|
|
|
|
UPDATE
|
|
|
|
t_party_punish_info
|
|
|
|
SET
|
|
|
|
<if test="personName != null and personName != ''">
|
|
|
|
person_name = #{personName},
|
|
|
|
</if>
|
|
|
|
<if test="partyOrg != null and partyOrg != ''">
|
|
|
|
party_org = #{partyOrg},
|
|
|
|
</if>
|
|
|
|
<if test="partyDiscipline != null and partyDiscipline != ''">
|
|
|
|
party_discipline = #{partyDiscipline},
|
|
|
|
</if>
|
|
|
|
<if test="govDiscipline != null and govDiscipline != ''">
|
|
|
|
gov_discipline = #{govDiscipline},
|
|
|
|
</if>
|
|
|
|
<if test="punishTime != null and punishTime != ''">
|
|
|
|
punish_time = #{punishTime},
|
|
|
|
</if>
|
|
|
|
<if test="announceTime != null and announceTime != ''">
|
|
|
|
announce_time = #{announceTime},
|
|
|
|
</if>
|
|
|
|
<if test="announceScope != null and announceScope != ''">
|
|
|
|
announce_scope = #{announceScope},
|
|
|
|
</if>
|
|
|
|
<if test="putInFileTime != null and putInFileTime != ''">
|
|
|
|
put_in_file_time = #{putInFileTime},
|
|
|
|
</if>
|
|
|
|
<if test="jobWagesChange != null and jobWagesChange != ''">
|
|
|
|
job_wages_change = #{jobWagesChange},
|
|
|
|
</if>
|
|
|
|
<if test="jobWagesRise != null and jobWagesRise != ''">
|
|
|
|
job_wages_rise = #{jobWagesRise},
|
|
|
|
</if>
|
|
|
|
<if test="yearExamineLevel != null and yearExamineLevel != ''">
|
|
|
|
year_examine_level = #{yearExamineLevel},
|
|
|
|
</if>
|
|
|
|
<if test="yearBonusInfo != null and yearBonusInfo != ''">
|
|
|
|
year_bonus_info = #{yearBonusInfo},
|
|
|
|
</if>
|
|
|
|
<if test="achievementBouns != null and achievementBouns != ''">
|
|
|
|
achievement_bouns = #{achievementBouns},
|
|
|
|
</if>
|
|
|
|
<if test="remarks != null and remarks != ''">
|
|
|
|
remarks = #{remarks},
|
|
|
|
</if>
|
2021-03-30 18:01:49 +08:00
|
|
|
gmt_modified = #{gmtModified},
|
|
|
|
modifier = #{modifier}
|
2021-03-30 15:37:53 +08:00
|
|
|
WHERE
|
|
|
|
report_id = #{reportId}
|
|
|
|
</update>
|
|
|
|
|
|
|
|
<!-- 详情 -->
|
|
|
|
<select id="get" parameterType="map" resultMap="partyPunishInfoDTO">
|
|
|
|
SELECT
|
|
|
|
t1.report_id,
|
|
|
|
t1.duty_index_lib_id,
|
|
|
|
t1.person_name,
|
|
|
|
t1.party_org,
|
|
|
|
t1.party_discipline,
|
|
|
|
t1.gov_discipline,
|
|
|
|
t1.punish_time,
|
|
|
|
t1.announce_time,
|
|
|
|
t1.announce_scope,
|
|
|
|
t1.put_in_file_time,
|
|
|
|
t1.job_wages_change,
|
|
|
|
t1.job_wages_rise,
|
|
|
|
t1.year_examine_level,
|
|
|
|
t1.year_bonus_info,
|
|
|
|
t1.achievement_bouns,
|
|
|
|
t1.remarks
|
|
|
|
|
|
|
|
FROM
|
|
|
|
t_party_punish_info t1
|
|
|
|
WHERE
|
|
|
|
t1.is_delete = 0
|
|
|
|
AND
|
|
|
|
t1.report_id = #{reportId}
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<!-- 详情 -->
|
|
|
|
<select id="getBO" parameterType="map" resultMap="partyPunishInfoBO">
|
|
|
|
SELECT
|
|
|
|
t1.report_id,
|
|
|
|
t1.duty_index_lib_id,
|
|
|
|
t1.person_name,
|
|
|
|
t1.party_org,
|
|
|
|
t1.party_discipline,
|
|
|
|
t1.gov_discipline,
|
|
|
|
t1.punish_time,
|
|
|
|
t1.announce_time,
|
|
|
|
t1.announce_scope,
|
|
|
|
t1.put_in_file_time,
|
|
|
|
t1.job_wages_change,
|
|
|
|
t1.job_wages_rise,
|
|
|
|
t1.year_examine_level,
|
|
|
|
t1.year_bonus_info,
|
|
|
|
t1.achievement_bouns,
|
|
|
|
t1.remarks,
|
|
|
|
t1.creator,
|
|
|
|
t1.gmt_create,
|
|
|
|
t1.modifier,
|
|
|
|
t1.gmt_modified,
|
|
|
|
t1.is_delete
|
|
|
|
FROM
|
|
|
|
t_party_punish_info t1
|
|
|
|
WHERE
|
|
|
|
t1.is_delete = 0
|
|
|
|
AND
|
|
|
|
t1.report_id = #{reportId}
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<!-- 详情 -->
|
|
|
|
<select id="getPO" parameterType="map" resultMap="partyPunishInfoPO">
|
|
|
|
SELECT
|
|
|
|
t1.report_id,
|
|
|
|
t1.duty_index_lib_id,
|
|
|
|
t1.person_name,
|
|
|
|
t1.party_org,
|
|
|
|
t1.party_discipline,
|
|
|
|
t1.gov_discipline,
|
|
|
|
t1.punish_time,
|
|
|
|
t1.announce_time,
|
|
|
|
t1.announce_scope,
|
|
|
|
t1.put_in_file_time,
|
|
|
|
t1.job_wages_change,
|
|
|
|
t1.job_wages_rise,
|
|
|
|
t1.year_examine_level,
|
|
|
|
t1.year_bonus_info,
|
|
|
|
t1.achievement_bouns,
|
|
|
|
t1.remarks,
|
|
|
|
t1.creator,
|
|
|
|
t1.gmt_create,
|
|
|
|
t1.modifier,
|
|
|
|
t1.gmt_modified,
|
|
|
|
t1.is_delete
|
|
|
|
FROM
|
|
|
|
t_party_punish_info t1
|
|
|
|
WHERE
|
|
|
|
t1.is_delete = 0
|
|
|
|
AND
|
|
|
|
t1.report_id = #{reportId}
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<!-- 列表 -->
|
|
|
|
<select id="list" parameterType="map" resultMap="partyPunishInfoDTO">
|
|
|
|
SELECT
|
|
|
|
t1.report_id,
|
|
|
|
t1.duty_index_lib_id,
|
|
|
|
t1.person_name,
|
|
|
|
t1.party_org,
|
|
|
|
t1.party_discipline,
|
|
|
|
t1.gov_discipline,
|
|
|
|
t1.punish_time,
|
|
|
|
t1.announce_time,
|
|
|
|
t1.announce_scope,
|
|
|
|
t1.put_in_file_time,
|
|
|
|
t1.job_wages_change,
|
|
|
|
t1.job_wages_rise,
|
|
|
|
t1.year_examine_level,
|
|
|
|
t1.year_bonus_info,
|
|
|
|
t1.achievement_bouns,
|
|
|
|
t1.remarks,
|
|
|
|
t1.creator,
|
|
|
|
t1.gmt_create
|
|
|
|
FROM
|
|
|
|
t_party_punish_info t1
|
|
|
|
WHERE
|
|
|
|
t1.is_delete = 0
|
|
|
|
<if test="keywords != null and keywords != ''">
|
|
|
|
AND (
|
|
|
|
<!-- 这里添加其他条件 -->
|
|
|
|
t1.person_name LIKE CONCAT('%', #{keywords}, '%')
|
|
|
|
)
|
|
|
|
</if>
|
|
|
|
<if test="startTime != null and startTime != ''">
|
|
|
|
AND
|
|
|
|
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
|
|
|
</if>
|
|
|
|
<if test="endTime != null and endTime != ''">
|
|
|
|
AND
|
|
|
|
LEFT(t1.gmt_create, 10) <![CDATA[ <= ]]> #{endTime}
|
|
|
|
</if>
|
2021-03-30 18:01:49 +08:00
|
|
|
<if test="indexLibId != null and indexLibId != ''">
|
|
|
|
AND t1.duty_index_lib_id = {indexLibId}
|
|
|
|
</if>
|
2021-03-30 15:37:53 +08:00
|
|
|
</select>
|
|
|
|
|
|
|
|
<!-- 列表 -->
|
|
|
|
<select id="listBO" parameterType="map" resultMap="partyPunishInfoBO">
|
|
|
|
SELECT
|
|
|
|
t1.report_id,
|
|
|
|
t1.duty_index_lib_id,
|
|
|
|
t1.person_name,
|
|
|
|
t1.party_org,
|
|
|
|
t1.party_discipline,
|
|
|
|
t1.gov_discipline,
|
|
|
|
t1.punish_time,
|
|
|
|
t1.announce_time,
|
|
|
|
t1.announce_scope,
|
|
|
|
t1.put_in_file_time,
|
|
|
|
t1.job_wages_change,
|
|
|
|
t1.job_wages_rise,
|
|
|
|
t1.year_examine_level,
|
|
|
|
t1.year_bonus_info,
|
|
|
|
t1.achievement_bouns,
|
|
|
|
t1.remarks,
|
|
|
|
t1.creator,
|
|
|
|
t1.gmt_create,
|
|
|
|
t1.modifier,
|
|
|
|
t1.gmt_modified,
|
|
|
|
t1.is_delete
|
|
|
|
FROM
|
|
|
|
t_party_punish_info t1
|
|
|
|
WHERE
|
|
|
|
t1.is_delete = 0
|
|
|
|
<if test="keywords != null and keywords != ''">
|
|
|
|
AND (
|
|
|
|
<!-- 这里添加其他条件 -->
|
|
|
|
t1.person_name LIKE CONCAT('%', #{keywords}, '%')
|
|
|
|
)
|
|
|
|
</if>
|
|
|
|
<if test="startTime != null and startTime != ''">
|
|
|
|
AND
|
|
|
|
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
|
|
|
</if>
|
|
|
|
<if test="endTime != null and endTime != ''">
|
|
|
|
AND
|
|
|
|
LEFT(t1.gmt_create, 10) <![CDATA[ <= ]]> #{endTime}
|
|
|
|
</if>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<!-- 列表 -->
|
|
|
|
<select id="listPO" parameterType="map" resultMap="partyPunishInfoPO">
|
|
|
|
SELECT
|
|
|
|
t1.report_id,
|
|
|
|
t1.duty_index_lib_id,
|
|
|
|
t1.person_name,
|
|
|
|
t1.party_org,
|
|
|
|
t1.party_discipline,
|
|
|
|
t1.gov_discipline,
|
|
|
|
t1.punish_time,
|
|
|
|
t1.announce_time,
|
|
|
|
t1.announce_scope,
|
|
|
|
t1.put_in_file_time,
|
|
|
|
t1.job_wages_change,
|
|
|
|
t1.job_wages_rise,
|
|
|
|
t1.year_examine_level,
|
|
|
|
t1.year_bonus_info,
|
|
|
|
t1.achievement_bouns,
|
|
|
|
t1.remarks,
|
|
|
|
t1.creator,
|
|
|
|
t1.gmt_create,
|
|
|
|
t1.modifier,
|
|
|
|
t1.gmt_modified,
|
|
|
|
t1.is_delete
|
|
|
|
FROM
|
|
|
|
t_party_punish_info t1
|
|
|
|
WHERE
|
|
|
|
t1.is_delete = 0
|
|
|
|
<if test="keywords != null and keywords != ''">
|
|
|
|
AND (
|
|
|
|
<!-- 这里添加其他条件 -->
|
|
|
|
t1.person_name LIKE CONCAT('%', #{keywords}, '%')
|
|
|
|
)
|
|
|
|
</if>
|
|
|
|
<if test="startTime != null and startTime != ''">
|
|
|
|
AND
|
|
|
|
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
|
|
|
</if>
|
|
|
|
<if test="endTime != null and endTime != ''">
|
|
|
|
AND
|
|
|
|
LEFT(t1.gmt_create, 10) <![CDATA[ <= ]]> #{endTime}
|
|
|
|
</if>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<!-- 统计 -->
|
|
|
|
<select id="count" parameterType="map" resultType="Integer">
|
|
|
|
SELECT
|
|
|
|
COUNT(*)
|
|
|
|
FROM
|
|
|
|
t_party_punish_info t1
|
|
|
|
WHERE
|
|
|
|
t1.is_delete = 0
|
|
|
|
</select>
|
|
|
|
|
|
|
|
</mapper>
|