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>
|
|
|
|
|
<!--修改质量数据-->
|
|
|
|
|
<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>
|
|
|
|
|
</mapper>
|