2025-10-13 13:13:34 +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.SjProjectQualityMapper">
|
|
|
|
|
<!--新增数据-->
|
|
|
|
|
<insert id="addData">
|
|
|
|
|
insert into sj_project_quality(
|
|
|
|
|
pro_type,pro_structure,total_item,
|
|
|
|
|
accept_item,accept_table,accept_qualified_table,
|
|
|
|
|
accept_rate,accept_tb_rate,main_accept_num,
|
|
|
|
|
main_one_accept_num,main_accept_rate,comm_accept,
|
2025-10-17 14:46:26 +08:00
|
|
|
comm_one_accept,comm_accept_rate
|
|
|
|
|
)values (#{proType},#{proStructure},#{totalItem},#{acceptItem},#{acceptTable},#{acceptQualifiedTable},
|
|
|
|
|
#{acceptRate},#{acceptTbRate},#{mainAcceptNum},#{mainOneAcceptNum},#{mainAcceptRate},#{commAccept},
|
|
|
|
|
#{commOneAccept},#{commAcceptRate}
|
2025-10-13 13:13:34 +08:00
|
|
|
)
|
|
|
|
|
</insert>
|
2026-01-15 10:05:08 +08:00
|
|
|
<insert id="newAddData">
|
|
|
|
|
insert into sj_project_mass(
|
|
|
|
|
team_name,content_inspection,inspection_date,
|
|
|
|
|
inspection_results,inspection_url
|
|
|
|
|
)values (#{teamName},#{contentInspection},#{inspectionDate},#{inspectionResults},#{inspectionUrl})
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="newUpdateData">
|
|
|
|
|
update sj_project_mass set team_name=#{teamName},content_inspection=#{contentInspection},
|
|
|
|
|
inspection_date=#{inspectionDate},inspection_results=#{inspectionResults},
|
|
|
|
|
inspection_url=#{inspectionUrl}
|
|
|
|
|
where id=#{id}
|
|
|
|
|
</insert>
|
|
|
|
|
<delete id="newDelete">
|
|
|
|
|
delete from sj_project_mass where id=#{id}
|
|
|
|
|
</delete>
|
2025-10-13 13:13:34 +08:00
|
|
|
<!--修改质量数据-->
|
|
|
|
|
<update id="updateData">
|
|
|
|
|
update sj_project_quality set pro_type=#{proType},pro_structure=#{proStructure},total_item=#{totalItem},
|
|
|
|
|
accept_item=#{acceptItem},accept_table=#{acceptTable},accept_qualified_table=#{acceptQualifiedTable},
|
|
|
|
|
accept_rate=#{acceptRate},accept_tb_rate=#{acceptTbRate},main_accept_num=#{mainAcceptRate},
|
|
|
|
|
main_one_accept_num=#{mainOneAcceptNum},main_accept_rate=#{mainAcceptRate},comm_accept=#{commAccept},
|
2025-10-17 14:46:26 +08:00
|
|
|
comm_one_accept=#{commOneAccept},comm_accept_rate=#{commAcceptRate}
|
2025-10-13 13:13:34 +08:00
|
|
|
where id=#{id}
|
|
|
|
|
</update>
|
|
|
|
|
<delete id="delete">
|
|
|
|
|
delete from sj_project_quality where id=#{id}
|
|
|
|
|
</delete>
|
|
|
|
|
<!-- -->
|
|
|
|
|
<select id="getList" resultType="com.securitycontrol.entity.background.vo.SjProjectQualityVo">
|
|
|
|
|
select id, pro_type proType,
|
|
|
|
|
pro_structure proStructure,
|
|
|
|
|
total_item totalItem,
|
|
|
|
|
accept_item acceptItem,
|
|
|
|
|
accept_table acceptTable,
|
|
|
|
|
accept_qualified_table acceptQualifiedTable,
|
|
|
|
|
accept_rate acceptRate,
|
|
|
|
|
accept_tb_rate acceptTbRate,
|
|
|
|
|
main_accept_num mainAcceptNum,
|
|
|
|
|
main_one_accept_num mainOneAcceptNum,
|
|
|
|
|
main_accept_rate mainAcceptRate,
|
|
|
|
|
comm_accept commAccept ,
|
2025-10-17 14:46:26 +08:00
|
|
|
comm_one_accept commOneAccept,
|
2025-10-13 13:13:34 +08:00
|
|
|
comm_accept_rate commAcceptRate
|
|
|
|
|
from sj_project_quality
|
|
|
|
|
<where>
|
|
|
|
|
<if test="proType!=null and proType!=''">
|
|
|
|
|
pro_type like concat('%',#{proType},'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="proStructure!=null and proStructure!=''">
|
|
|
|
|
pro_structure like concat('%',#{proStructure},'%')
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getDetails" resultType="com.securitycontrol.entity.background.vo.SjProjectQualityVo">
|
|
|
|
|
select id, pro_type proType,
|
|
|
|
|
pro_structure proStructure,
|
|
|
|
|
total_item totalItem,
|
|
|
|
|
accept_item acceptItem,
|
|
|
|
|
accept_table acceptTable,
|
|
|
|
|
accept_qualified_table acceptQualifiedTable,
|
|
|
|
|
accept_rate acceptRate,
|
|
|
|
|
accept_tb_rate acceptTbRate,
|
|
|
|
|
main_accept_num mainAcceptNum,
|
|
|
|
|
main_one_accept_num mainOneAcceptNum,
|
|
|
|
|
main_accept_rate mainAcceptRate,
|
|
|
|
|
comm_accept commAccept ,
|
2025-10-17 14:46:26 +08:00
|
|
|
comm_one_accept commOneAccept,
|
2025-10-13 13:13:34 +08:00
|
|
|
comm_accept_rate commAcceptRate
|
|
|
|
|
from sj_project_quality
|
|
|
|
|
where id=#{id}
|
|
|
|
|
</select>
|
2026-01-15 10:05:08 +08:00
|
|
|
<select id="getNewList" resultType="com.securitycontrol.entity.background.vo.SjProjectMassVo">
|
|
|
|
|
select id,
|
|
|
|
|
team_name teamName,
|
|
|
|
|
content_inspection contentInspection,
|
|
|
|
|
inspection_date inspectionDate,
|
|
|
|
|
inspection_results inspectionResults,
|
|
|
|
|
inspection_url inspectionUrl
|
|
|
|
|
from sj_project_mass
|
|
|
|
|
<where>
|
|
|
|
|
<if test="keyWord!=null and keyWord!=''">
|
|
|
|
|
(team_name like concat('%',#{keyWord},'%')
|
|
|
|
|
or content_inspection like concat('%',#{keyWord},'%')
|
|
|
|
|
or inspection_results like concat('%',#{keyWord},'%'))
|
|
|
|
|
</if>
|
|
|
|
|
<if test="startDate!=null and startDate!='' and endDate!=null and endDate!=''">
|
|
|
|
|
and DATE(inspection_date) BETWEEN #{startDate} and #{endDate}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getNewDetails" resultType="com.securitycontrol.entity.background.vo.SjProjectMassVo">
|
|
|
|
|
select id,
|
|
|
|
|
team_name teamName,
|
|
|
|
|
content_inspection contentInspection,
|
|
|
|
|
inspection_date inspectionDate,
|
|
|
|
|
inspection_results inspectionResults,
|
|
|
|
|
inspection_url inspectionUrl
|
|
|
|
|
from sj_project_mass where id=#{id}
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|