2025-10-17 14:46:26 +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.securitycontrol.background.mapper.SjEfficiencyMapper">
|
|
|
|
|
<insert id="addData">
|
|
|
|
|
insert into sj_efficiency_analysis(
|
|
|
|
|
create_time,weather
|
|
|
|
|
)values (#{createTime},#{weather})
|
|
|
|
|
</insert>
|
|
|
|
|
<update id="updateData">
|
|
|
|
|
update sj_efficiency_analysis set create_time=#{createTime},weather=#{weather}
|
|
|
|
|
where id=#{id}
|
|
|
|
|
</update>
|
|
|
|
|
<delete id="delete">
|
|
|
|
|
delete from sj_efficiency_analysis where id=#{id}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<select id="getList" resultType="com.securitycontrol.entity.background.vo.SjEfficiencyVo">
|
|
|
|
|
select id, create_time createTime,weather
|
|
|
|
|
from sj_efficiency_analysis
|
|
|
|
|
<where>
|
|
|
|
|
<if test="weather!=null and weather!=''">
|
|
|
|
|
weather like concat('%',#{weather},'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="createTime!=null and createTime!=''">
|
|
|
|
|
and create_time =#{createTime}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getDetails" resultType="com.securitycontrol.entity.background.vo.SjEfficiencyVo">
|
|
|
|
|
select id, create_time createTime,weather
|
|
|
|
|
from sj_efficiency_analysis
|
|
|
|
|
where id=#{id}
|
|
|
|
|
</select>
|
2026-01-23 09:27:28 +08:00
|
|
|
|
|
|
|
|
<select id="getNewList" resultType="com.securitycontrol.entity.background.vo.SjNewZylllWarnVo">
|
|
|
|
|
select id, tx_time txTime, content, create_time createTime,
|
|
|
|
|
remark,project_id bidCode, pro_name proName
|
|
|
|
|
from sj_new_benefit_analysis sjw
|
|
|
|
|
left join tb_project tp on sjw.project_id=tp.bid_code
|
|
|
|
|
<where>
|
|
|
|
|
data_type = '整体效能分析'
|
|
|
|
|
<if test="keyWord!=null and keyWord!=''">
|
2026-01-23 11:17:52 +08:00
|
|
|
and (tx_time =#{keyWord} or
|
|
|
|
|
content like concat('%',#{keyWord},'%')
|
|
|
|
|
)
|
2026-01-23 09:27:28 +08:00
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
2026-01-23 10:06:43 +08:00
|
|
|
<insert id="addNewData">
|
2026-01-23 09:27:28 +08:00
|
|
|
insert into sj_new_benefit_analysis(tx_time,content,data_type,create_time,project_id)
|
|
|
|
|
values(#{txTime},#{content},#{dataType},now(),#{bidCode})
|
2026-01-23 10:06:43 +08:00
|
|
|
</insert>
|
2026-01-23 09:27:28 +08:00
|
|
|
|
|
|
|
|
<update id="updateNewData">
|
|
|
|
|
update sj_new_benefit_analysis
|
|
|
|
|
<set>
|
|
|
|
|
<if test="txTime!=null and txTime!=''">
|
|
|
|
|
tx_time= #{txTime},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="content!=null and content!=''">
|
|
|
|
|
content= #{content},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where id= #{id}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<select id="getNewDetails" resultType="com.securitycontrol.entity.background.vo.SjNewZylllWarnVo">
|
|
|
|
|
select id, tx_time txTime, content, create_time createTime,
|
|
|
|
|
remark,project_id bidCode, pro_name proName
|
|
|
|
|
from sj_new_benefit_analysis sjw
|
|
|
|
|
left join tb_project tp on sjw.project_id=tp.bid_code
|
|
|
|
|
where id= #{id}
|
|
|
|
|
</select>
|
|
|
|
|
|
2026-01-23 11:17:52 +08:00
|
|
|
<delete id="deleteNewData">
|
2026-01-23 09:27:28 +08:00
|
|
|
delete from sj_new_benefit_analysis where id=#{id}
|
2026-01-23 11:17:52 +08:00
|
|
|
</delete>
|
2026-01-23 09:27:28 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|