数据分析接口

This commit is contained in:
方亮 2026-01-23 11:17:52 +08:00
parent b1af74129c
commit c6e3a4fde3
3 changed files with 70 additions and 33 deletions

View File

@ -23,17 +23,49 @@ public class SjProjectManageVo {
*/ */
private String dataContent; private String dataContent;
/**
* 作业内容
*/
private String workContent; private String workContent;
/**
* 风险等级
*/
private String riskLevel; private String riskLevel;
/**
* 作业开始时间
*/
private String workStartTime; private String workStartTime;
/**
* 作业结束时间
*/
private String workEndTime; private String workEndTime;
/**
* 计划状态
*/
private String planStatus; private String planStatus;
/**
* 今日风险
*/
private String todayRisk; private String todayRisk;
/**
* 备注
*/
private String remark; private String remark;
/**
* 措施
*/
private String measureData; private String measureData;
/**
* 附件
*/
private String filePath; private String filePath;
/**
* 创建时间
*/
private String createTime; private String createTime;
/**
* 修改时间
*/
private String updateTime; private String updateTime;
private String bidCode; private String bidCode;

View File

@ -40,7 +40,9 @@
<where> <where>
data_type = '整体效能分析' data_type = '整体效能分析'
<if test="keyWord!=null and keyWord!=''"> <if test="keyWord!=null and keyWord!=''">
and tx_time =#{keyWord} and (tx_time =#{keyWord} or
content like concat('%',#{keyWord},'%')
)
</if> </if>
</where> </where>
</select> </select>
@ -71,9 +73,9 @@
where id= #{id} where id= #{id}
</select> </select>
<select id="deleteNewData" resultType="java.lang.Integer"> <delete id="deleteNewData">
delete from sj_new_benefit_analysis where id=#{id} delete from sj_new_benefit_analysis where id=#{id}
</select> </delete>
</mapper> </mapper>

View File

@ -1,36 +1,36 @@
<?xml version="1.0" encoding="UTF-8" ?> <?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" > <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.securitycontrol.background.mapper.SjProjectManageMapper"> <mapper namespace="com.securitycontrol.background.mapper.SjProjectManageMapper">
<!-- <insert id="addData">--> <insert id="addData">
<!-- insert into sj_project_manage(--> insert into sj_project_manage(
<!-- data_type,date_time,data_money,data_content--> data_type,date_time,data_money,data_content
<!-- )values (#{dataType},#{dateTime},#{dataMoney},#{dataContent})--> )values (#{dataType},#{dateTime},#{dataMoney},#{dataContent})
<!-- </insert>--> </insert>
<!-- <update id="updateData">--> <update id="updateData">
<!-- update sj_project_manage set--> update sj_project_manage set
<!-- date_time=#{dateTime},data_money=#{dataMoney},data_content=#{dataContent}--> date_time=#{dateTime},data_money=#{dataMoney},data_content=#{dataContent}
<!-- </update>--> </update>
<!-- <delete id="delete">--> <delete id="delete">
<!-- delete from sj_project_manage where id=#{id}--> delete from sj_project_manage where id=#{id}
<!-- </delete>--> </delete>
<!-- &lt;!&ndash;查询数据&ndash;&gt;--> <!--查询数据-->
<!-- <select id="getList" resultType="com.securitycontrol.entity.background.vo.SjProjectManageVo">--> <select id="getList" resultType="com.securitycontrol.entity.background.vo.SjProjectManageVo">
<!-- select id, data_type dataType, date_time dateTime, data_money dataMoney, data_content dataContent--> select id, data_type dataType, date_time dateTime, data_money dataMoney, data_content dataContent
<!-- from sj_project_manage--> from sj_project_manage
<!-- where data_type=#{dataType}--> where data_type=#{dataType}
<!-- <if test="dateTime!=null and dateTime!=''">--> <if test="dateTime!=null and dateTime!=''">
<!-- and date_time=#{dateTime}--> and date_time=#{dateTime}
<!-- </if>--> </if>
<!-- </select>--> </select>
<!-- <select id="getDetails" resultType="com.securitycontrol.entity.background.vo.SjProjectManageVo">--> <select id="getDetails" resultType="com.securitycontrol.entity.background.vo.SjProjectManageVo">
<!-- select id, data_type dataType, date_time dateTime, data_money dataMoney, data_content dataContent--> select id, data_type dataType, date_time dateTime, data_money dataMoney, data_content dataContent
<!-- from sj_project_manage--> from sj_project_manage
<!-- where id=#{id}--> where id=#{id}
<!-- </select>--> </select>
<select id="getNewList" resultType="com.securitycontrol.entity.background.vo.SjProjectManageVo"> <select id="getNewList" resultType="com.securitycontrol.entity.background.vo.SjProjectManageVo">
select id, work_content workContent, risk_level riskLevel, plan_start_time workStartTime, plan_end_time workEndTime, select id, work_content workContent, risk_level riskLevel, sjm.plan_start_time workStartTime, sjm.plan_end_time workEndTime,
plan_status planStatus,today_risk todayRisk, remark, measure_data measureData, file_path filePath, plan_status planStatus,today_risk todayRisk, remark, measure_data measureData, file_path filePath,
create_time createTime, update_time updateTime, bid_code bidCode, pro_name proName create_time createTime, update_time updateTime, bid_code bidCode, pro_name proName
from sj_new_project_manmage sjm from sj_new_project_manmage sjm
@ -178,11 +178,14 @@
<if test="content!=null and content!=''"> <if test="content!=null and content!=''">
content= #{content}, content= #{content},
</if> </if>
<if test="bidCode!=null and bidCode!=''">
project_id= #{bidCode},
</if>
</set> </set>
where id= #{id} where id= #{id}
</update> </update>
<select id="delAsyncWarnList" resultType="java.lang.Integer"> <delete id="delAsyncWarnList">
delete from sj_new_async_warn where id=#{id} delete from sj_new_async_warn where id=#{id}
</select> </delete>
</mapper> </mapper>