first commit

This commit is contained in:
2026-01-16 14:13:44 +08:00
commit 903ff8d495
34603 changed files with 8585054 additions and 0 deletions

View File

@ -0,0 +1,471 @@
<?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="quality.AbnormalQualityMapper" >
<resultMap id="BaseResultMap" type="com.sipai.entity.quality.AbnormalQuality" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
<result column="sendDept" property="senddept" jdbcType="VARCHAR" />
<result column="sender" property="sender" jdbcType="VARCHAR" />
<result column="sendTime" property="sendtime" jdbcType="TIMESTAMP" />
<result column="formNumber" property="formnumber" jdbcType="VARCHAR" />
<result column="acceptDept" property="acceptdept" jdbcType="VARCHAR" />
<result column="recipient" property="recipient" jdbcType="VARCHAR" />
<result column="acceptTime" property="accepttime" jdbcType="TIMESTAMP" />
<result column="confirmReceipt" property="confirmreceipt" jdbcType="VARCHAR" />
<result column="problemArea" property="problemarea" jdbcType="VARCHAR" />
<result column="severity" property="severity" jdbcType="VARCHAR" />
<result column="problemNumber" property="problemnumber" jdbcType="VARCHAR" />
<result column="descriptionBadPhenomena" property="descriptionbadphenomena" jdbcType="VARCHAR" />
<result column="Confirmor1" property="confirmor1" jdbcType="VARCHAR" />
<result column="date1" property="date1" jdbcType="TIMESTAMP" />
<result column="causeAnalysis" property="causeanalysis" jdbcType="VARCHAR" />
<result column="toDevelop" property="todevelop" jdbcType="VARCHAR" />
<result column="Confirmor2" property="confirmor2" jdbcType="VARCHAR" />
<result column="date2" property="date2" jdbcType="TIMESTAMP" />
<result column="EmergencyMeasuresPlan" property="emergencymeasuresplan" jdbcType="VARCHAR" />
<result column="estimatedFinishTime" property="estimatedfinishtime" jdbcType="TIMESTAMP" />
<result column="actualCompletionTime" property="actualcompletiontime" jdbcType="TIMESTAMP" />
<result column="toDevelop1" property="todevelop1" jdbcType="VARCHAR" />
<result column="Confirmor3" property="confirmor3" jdbcType="VARCHAR" />
<result column="date3" property="date3" jdbcType="TIMESTAMP" />
<result column="preventiveMeasures" property="preventivemeasures" jdbcType="VARCHAR" />
<result column="estimatedFinishTime1" property="estimatedfinishtime1" jdbcType="TIMESTAMP" />
<result column="actualCompletionTime1" property="actualcompletiontime1" jdbcType="TIMESTAMP" />
<result column="toDevelop2" property="todevelop2" jdbcType="VARCHAR" />
<result column="Confirmor4" property="confirmor4" jdbcType="VARCHAR" />
<result column="date4" property="date4" jdbcType="TIMESTAMP" />
<result column="effectTracking" property="effecttracking" jdbcType="VARCHAR" />
<result column="Confirmor5" property="confirmor5" jdbcType="VARCHAR" />
<result column="date5" property="date5" jdbcType="TIMESTAMP" />
</resultMap>
<sql id="Base_Column_List" >
id, insuser, insdt, sendDept, sender, sendTime, formNumber, acceptDept, recipient,
acceptTime, confirmReceipt, problemArea, severity, problemNumber, descriptionBadPhenomena,
Confirmor1, date1, causeAnalysis, toDevelop, Confirmor2, date2, EmergencyMeasuresPlan,
estimatedFinishTime, actualCompletionTime, toDevelop1, Confirmor3, date3, preventiveMeasures,
estimatedFinishTime1, actualCompletionTime1, toDevelop2, Confirmor4, date4, effectTracking,
Confirmor5, date5
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_abnormal_quality
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from tb_abnormal_quality
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.quality.AbnormalQuality" >
insert into tb_abnormal_quality (id, insuser, insdt,
sendDept, sender, sendTime,
formNumber, acceptDept, recipient,
acceptTime, confirmReceipt, problemArea,
severity, problemNumber, descriptionBadPhenomena,
Confirmor1, date1, causeAnalysis,
toDevelop, Confirmor2, date2,
EmergencyMeasuresPlan, estimatedFinishTime,
actualCompletionTime, toDevelop1, Confirmor3,
date3, preventiveMeasures, estimatedFinishTime1,
actualCompletionTime1, toDevelop2, Confirmor4,
date4, effectTracking, Confirmor5,
date5)
values (#{id,jdbcType=VARCHAR}, #{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP},
#{senddept,jdbcType=VARCHAR}, #{sender,jdbcType=VARCHAR}, #{sendtime,jdbcType=TIMESTAMP},
#{formnumber,jdbcType=VARCHAR}, #{acceptdept,jdbcType=VARCHAR}, #{recipient,jdbcType=VARCHAR},
#{accepttime,jdbcType=TIMESTAMP}, #{confirmreceipt,jdbcType=VARCHAR}, #{problemarea,jdbcType=VARCHAR},
#{severity,jdbcType=VARCHAR}, #{problemnumber,jdbcType=VARCHAR}, #{descriptionbadphenomena,jdbcType=VARCHAR},
#{confirmor1,jdbcType=VARCHAR}, #{date1,jdbcType=TIMESTAMP}, #{causeanalysis,jdbcType=VARCHAR},
#{todevelop,jdbcType=VARCHAR}, #{confirmor2,jdbcType=VARCHAR}, #{date2,jdbcType=TIMESTAMP},
#{emergencymeasuresplan,jdbcType=VARCHAR}, #{estimatedfinishtime,jdbcType=TIMESTAMP},
#{actualcompletiontime,jdbcType=TIMESTAMP}, #{todevelop1,jdbcType=VARCHAR}, #{confirmor3,jdbcType=VARCHAR},
#{date3,jdbcType=TIMESTAMP}, #{preventivemeasures,jdbcType=VARCHAR}, #{estimatedfinishtime1,jdbcType=TIMESTAMP},
#{actualcompletiontime1,jdbcType=TIMESTAMP}, #{todevelop2,jdbcType=VARCHAR}, #{confirmor4,jdbcType=VARCHAR},
#{date4,jdbcType=TIMESTAMP}, #{effecttracking,jdbcType=VARCHAR}, #{confirmor5,jdbcType=VARCHAR},
#{date5,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.quality.AbnormalQuality" >
insert into tb_abnormal_quality
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="insuser != null" >
insuser,
</if>
<if test="insdt != null" >
insdt,
</if>
<if test="senddept != null" >
sendDept,
</if>
<if test="sender != null" >
sender,
</if>
<if test="sendtime != null" >
sendTime,
</if>
<if test="formnumber != null" >
formNumber,
</if>
<if test="acceptdept != null" >
acceptDept,
</if>
<if test="recipient != null" >
recipient,
</if>
<if test="accepttime != null" >
acceptTime,
</if>
<if test="confirmreceipt != null" >
confirmReceipt,
</if>
<if test="problemarea != null" >
problemArea,
</if>
<if test="severity != null" >
severity,
</if>
<if test="problemnumber != null" >
problemNumber,
</if>
<if test="descriptionbadphenomena != null" >
descriptionBadPhenomena,
</if>
<if test="confirmor1 != null" >
Confirmor1,
</if>
<if test="date1 != null" >
date1,
</if>
<if test="causeanalysis != null" >
causeAnalysis,
</if>
<if test="todevelop != null" >
toDevelop,
</if>
<if test="confirmor2 != null" >
Confirmor2,
</if>
<if test="date2 != null" >
date2,
</if>
<if test="emergencymeasuresplan != null" >
EmergencyMeasuresPlan,
</if>
<if test="estimatedfinishtime != null" >
estimatedFinishTime,
</if>
<if test="actualcompletiontime != null" >
actualCompletionTime,
</if>
<if test="todevelop1 != null" >
toDevelop1,
</if>
<if test="confirmor3 != null" >
Confirmor3,
</if>
<if test="date3 != null" >
date3,
</if>
<if test="preventivemeasures != null" >
preventiveMeasures,
</if>
<if test="estimatedfinishtime1 != null" >
estimatedFinishTime1,
</if>
<if test="actualcompletiontime1 != null" >
actualCompletionTime1,
</if>
<if test="todevelop2 != null" >
toDevelop2,
</if>
<if test="confirmor4 != null" >
Confirmor4,
</if>
<if test="date4 != null" >
date4,
</if>
<if test="effecttracking != null" >
effectTracking,
</if>
<if test="confirmor5 != null" >
Confirmor5,
</if>
<if test="date5 != null" >
date5,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=VARCHAR},
</if>
<if test="insuser != null" >
#{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
#{insdt,jdbcType=TIMESTAMP},
</if>
<if test="senddept != null" >
#{senddept,jdbcType=VARCHAR},
</if>
<if test="sender != null" >
#{sender,jdbcType=VARCHAR},
</if>
<if test="sendtime != null" >
#{sendtime,jdbcType=TIMESTAMP},
</if>
<if test="formnumber != null" >
#{formnumber,jdbcType=VARCHAR},
</if>
<if test="acceptdept != null" >
#{acceptdept,jdbcType=VARCHAR},
</if>
<if test="recipient != null" >
#{recipient,jdbcType=VARCHAR},
</if>
<if test="accepttime != null" >
#{accepttime,jdbcType=TIMESTAMP},
</if>
<if test="confirmreceipt != null" >
#{confirmreceipt,jdbcType=VARCHAR},
</if>
<if test="problemarea != null" >
#{problemarea,jdbcType=VARCHAR},
</if>
<if test="severity != null" >
#{severity,jdbcType=VARCHAR},
</if>
<if test="problemnumber != null" >
#{problemnumber,jdbcType=VARCHAR},
</if>
<if test="descriptionbadphenomena != null" >
#{descriptionbadphenomena,jdbcType=VARCHAR},
</if>
<if test="confirmor1 != null" >
#{confirmor1,jdbcType=VARCHAR},
</if>
<if test="date1 != null" >
#{date1,jdbcType=TIMESTAMP},
</if>
<if test="causeanalysis != null" >
#{causeanalysis,jdbcType=VARCHAR},
</if>
<if test="todevelop != null" >
#{todevelop,jdbcType=VARCHAR},
</if>
<if test="confirmor2 != null" >
#{confirmor2,jdbcType=VARCHAR},
</if>
<if test="date2 != null" >
#{date2,jdbcType=TIMESTAMP},
</if>
<if test="emergencymeasuresplan != null" >
#{emergencymeasuresplan,jdbcType=VARCHAR},
</if>
<if test="estimatedfinishtime != null" >
#{estimatedfinishtime,jdbcType=TIMESTAMP},
</if>
<if test="actualcompletiontime != null" >
#{actualcompletiontime,jdbcType=TIMESTAMP},
</if>
<if test="todevelop1 != null" >
#{todevelop1,jdbcType=VARCHAR},
</if>
<if test="confirmor3 != null" >
#{confirmor3,jdbcType=VARCHAR},
</if>
<if test="date3 != null" >
#{date3,jdbcType=TIMESTAMP},
</if>
<if test="preventivemeasures != null" >
#{preventivemeasures,jdbcType=VARCHAR},
</if>
<if test="estimatedfinishtime1 != null" >
#{estimatedfinishtime1,jdbcType=TIMESTAMP},
</if>
<if test="actualcompletiontime1 != null" >
#{actualcompletiontime1,jdbcType=TIMESTAMP},
</if>
<if test="todevelop2 != null" >
#{todevelop2,jdbcType=VARCHAR},
</if>
<if test="confirmor4 != null" >
#{confirmor4,jdbcType=VARCHAR},
</if>
<if test="date4 != null" >
#{date4,jdbcType=TIMESTAMP},
</if>
<if test="effecttracking != null" >
#{effecttracking,jdbcType=VARCHAR},
</if>
<if test="confirmor5 != null" >
#{confirmor5,jdbcType=VARCHAR},
</if>
<if test="date5 != null" >
#{date5,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.quality.AbnormalQuality" >
update tb_abnormal_quality
<set >
<if test="insuser != null" >
insuser = #{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
insdt = #{insdt,jdbcType=TIMESTAMP},
</if>
<if test="senddept != null" >
sendDept = #{senddept,jdbcType=VARCHAR},
</if>
<if test="sender != null" >
sender = #{sender,jdbcType=VARCHAR},
</if>
<if test="sendtime != null" >
sendTime = #{sendtime,jdbcType=TIMESTAMP},
</if>
<if test="formnumber != null" >
formNumber = #{formnumber,jdbcType=VARCHAR},
</if>
<if test="acceptdept != null" >
acceptDept = #{acceptdept,jdbcType=VARCHAR},
</if>
<if test="recipient != null" >
recipient = #{recipient,jdbcType=VARCHAR},
</if>
<if test="accepttime != null" >
acceptTime = #{accepttime,jdbcType=TIMESTAMP},
</if>
<if test="confirmreceipt != null" >
confirmReceipt = #{confirmreceipt,jdbcType=VARCHAR},
</if>
<if test="problemarea != null" >
problemArea = #{problemarea,jdbcType=VARCHAR},
</if>
<if test="severity != null" >
severity = #{severity,jdbcType=VARCHAR},
</if>
<if test="problemnumber != null" >
problemNumber = #{problemnumber,jdbcType=VARCHAR},
</if>
<if test="descriptionbadphenomena != null" >
descriptionBadPhenomena = #{descriptionbadphenomena,jdbcType=VARCHAR},
</if>
<if test="confirmor1 != null" >
Confirmor1 = #{confirmor1,jdbcType=VARCHAR},
</if>
<if test="date1 != null" >
date1 = #{date1,jdbcType=TIMESTAMP},
</if>
<if test="causeanalysis != null" >
causeAnalysis = #{causeanalysis,jdbcType=VARCHAR},
</if>
<if test="todevelop != null" >
toDevelop = #{todevelop,jdbcType=VARCHAR},
</if>
<if test="confirmor2 != null" >
Confirmor2 = #{confirmor2,jdbcType=VARCHAR},
</if>
<if test="date2 != null" >
date2 = #{date2,jdbcType=TIMESTAMP},
</if>
<if test="emergencymeasuresplan != null" >
EmergencyMeasuresPlan = #{emergencymeasuresplan,jdbcType=VARCHAR},
</if>
<if test="estimatedfinishtime != null" >
estimatedFinishTime = #{estimatedfinishtime,jdbcType=TIMESTAMP},
</if>
<if test="actualcompletiontime != null" >
actualCompletionTime = #{actualcompletiontime,jdbcType=TIMESTAMP},
</if>
<if test="todevelop1 != null" >
toDevelop1 = #{todevelop1,jdbcType=VARCHAR},
</if>
<if test="confirmor3 != null" >
Confirmor3 = #{confirmor3,jdbcType=VARCHAR},
</if>
<if test="date3 != null" >
date3 = #{date3,jdbcType=TIMESTAMP},
</if>
<if test="preventivemeasures != null" >
preventiveMeasures = #{preventivemeasures,jdbcType=VARCHAR},
</if>
<if test="estimatedfinishtime1 != null" >
estimatedFinishTime1 = #{estimatedfinishtime1,jdbcType=TIMESTAMP},
</if>
<if test="actualcompletiontime1 != null" >
actualCompletionTime1 = #{actualcompletiontime1,jdbcType=TIMESTAMP},
</if>
<if test="todevelop2 != null" >
toDevelop2 = #{todevelop2,jdbcType=VARCHAR},
</if>
<if test="confirmor4 != null" >
Confirmor4 = #{confirmor4,jdbcType=VARCHAR},
</if>
<if test="date4 != null" >
date4 = #{date4,jdbcType=TIMESTAMP},
</if>
<if test="effecttracking != null" >
effectTracking = #{effecttracking,jdbcType=VARCHAR},
</if>
<if test="confirmor5 != null" >
Confirmor5 = #{confirmor5,jdbcType=VARCHAR},
</if>
<if test="date5 != null" >
date5 = #{date5,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.quality.AbnormalQuality" >
update tb_abnormal_quality
set insuser = #{insuser,jdbcType=VARCHAR},
insdt = #{insdt,jdbcType=TIMESTAMP},
sendDept = #{senddept,jdbcType=VARCHAR},
sender = #{sender,jdbcType=VARCHAR},
sendTime = #{sendtime,jdbcType=TIMESTAMP},
formNumber = #{formnumber,jdbcType=VARCHAR},
acceptDept = #{acceptdept,jdbcType=VARCHAR},
recipient = #{recipient,jdbcType=VARCHAR},
acceptTime = #{accepttime,jdbcType=TIMESTAMP},
confirmReceipt = #{confirmreceipt,jdbcType=VARCHAR},
problemArea = #{problemarea,jdbcType=VARCHAR},
severity = #{severity,jdbcType=VARCHAR},
problemNumber = #{problemnumber,jdbcType=VARCHAR},
descriptionBadPhenomena = #{descriptionbadphenomena,jdbcType=VARCHAR},
Confirmor1 = #{confirmor1,jdbcType=VARCHAR},
date1 = #{date1,jdbcType=TIMESTAMP},
causeAnalysis = #{causeanalysis,jdbcType=VARCHAR},
toDevelop = #{todevelop,jdbcType=VARCHAR},
Confirmor2 = #{confirmor2,jdbcType=VARCHAR},
date2 = #{date2,jdbcType=TIMESTAMP},
EmergencyMeasuresPlan = #{emergencymeasuresplan,jdbcType=VARCHAR},
estimatedFinishTime = #{estimatedfinishtime,jdbcType=TIMESTAMP},
actualCompletionTime = #{actualcompletiontime,jdbcType=TIMESTAMP},
toDevelop1 = #{todevelop1,jdbcType=VARCHAR},
Confirmor3 = #{confirmor3,jdbcType=VARCHAR},
date3 = #{date3,jdbcType=TIMESTAMP},
preventiveMeasures = #{preventivemeasures,jdbcType=VARCHAR},
estimatedFinishTime1 = #{estimatedfinishtime1,jdbcType=TIMESTAMP},
actualCompletionTime1 = #{actualcompletiontime1,jdbcType=TIMESTAMP},
toDevelop2 = #{todevelop2,jdbcType=VARCHAR},
Confirmor4 = #{confirmor4,jdbcType=VARCHAR},
date4 = #{date4,jdbcType=TIMESTAMP},
effectTracking = #{effecttracking,jdbcType=VARCHAR},
Confirmor5 = #{confirmor5,jdbcType=VARCHAR},
date5 = #{date5,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_abnormal_quality
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String" >
delete from tb_abnormal_quality
${where}
</delete>
</mapper>

View File

@ -0,0 +1,290 @@
<?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="quality.LeaveFactoryCheckMapper" >
<resultMap id="BaseResultMap" type="com.sipai.entity.quality.LeaveFactoryCheck" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
<result column="Equipmentname" property="equipmentname" jdbcType="VARCHAR" />
<result column="RatedVoltage" property="ratedvoltage" jdbcType="VARCHAR" />
<result column="RatedCurrent" property="ratedcurrent" jdbcType="VARCHAR" />
<result column="InstallationType" property="installationtype" jdbcType="VARCHAR" />
<result column="ReleaseModel" property="releasemodel" jdbcType="VARCHAR" />
<result column="Appendix" property="appendix" jdbcType="VARCHAR" />
<result column="PowerOperationV" property="poweroperationv" jdbcType="VARCHAR" />
<result column="ShuntReleaseV" property="shuntreleasev" jdbcType="VARCHAR" />
<result column="ClosingEMV" property="closingemv" jdbcType="VARCHAR" />
<result column="UnderVReleaseV" property="undervreleasev" jdbcType="VARCHAR" />
<result column="RemarkOverall" property="remarkoverall" jdbcType="VARCHAR" />
<result column="RemarkTable" property="remarktable" jdbcType="VARCHAR" />
<result column="InspectDate" property="inspectdate" jdbcType="TIMESTAMP" />
<result column="Inspector" property="inspector" jdbcType="VARCHAR" />
<result column="LeaveFactoryNo" property="leavefactoryno" jdbcType="VARCHAR" />
<result column="phaseA" property="phasea" jdbcType="VARCHAR" />
<result column="phaseB" property="phaseb" jdbcType="VARCHAR" />
<result column="phaseC" property="phasec" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
id, insuser, insdt, Equipmentname, RatedVoltage, RatedCurrent, InstallationType,
ReleaseModel, Appendix, PowerOperationV, ShuntReleaseV, ClosingEMV, UnderVReleaseV,
RemarkOverall, RemarkTable, InspectDate, Inspector,LeaveFactoryNo,phaseA,phaseB,phaseC
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_QM_LeaveFactoryCheck
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from TB_QM_LeaveFactoryCheck
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.quality.LeaveFactoryCheck" >
insert into TB_QM_LeaveFactoryCheck (id, insuser, insdt,
Equipmentname, RatedVoltage, RatedCurrent,
InstallationType, ReleaseModel, Appendix,
PowerOperationV, ShuntReleaseV, ClosingEMV,
UnderVReleaseV, RemarkOverall, RemarkTable,
InspectDate, Inspector,LeaveFactoryNo,phaseA,phaseB,phaseC)
values (#{id,jdbcType=VARCHAR}, #{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP},
#{equipmentname,jdbcType=VARCHAR}, #{ratedvoltage,jdbcType=VARCHAR}, #{ratedcurrent,jdbcType=VARCHAR},
#{installationtype,jdbcType=VARCHAR}, #{releasemodel,jdbcType=VARCHAR}, #{appendix,jdbcType=VARCHAR},
#{poweroperationv,jdbcType=VARCHAR}, #{shuntreleasev,jdbcType=VARCHAR}, #{closingemv,jdbcType=VARCHAR},
#{undervreleasev,jdbcType=VARCHAR}, #{remarkoverall,jdbcType=VARCHAR}, #{remarktable,jdbcType=VARCHAR},
#{inspectdate,jdbcType=TIMESTAMP}, #{inspector,jdbcType=VARCHAR}, #{leavefactoryno,jdbcType=VARCHAR},
#{phasea,jdbcType=VARCHAR}, #{phaseb,jdbcType=VARCHAR}, #{phasec,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.quality.LeaveFactoryCheck" >
insert into TB_QM_LeaveFactoryCheck
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="insuser != null" >
insuser,
</if>
<if test="insdt != null" >
insdt,
</if>
<if test="equipmentname != null" >
Equipmentname,
</if>
<if test="ratedvoltage != null" >
RatedVoltage,
</if>
<if test="ratedcurrent != null" >
RatedCurrent,
</if>
<if test="installationtype != null" >
InstallationType,
</if>
<if test="releasemodel != null" >
ReleaseModel,
</if>
<if test="appendix != null" >
Appendix,
</if>
<if test="poweroperationv != null" >
PowerOperationV,
</if>
<if test="shuntreleasev != null" >
ShuntReleaseV,
</if>
<if test="closingemv != null" >
ClosingEMV,
</if>
<if test="undervreleasev != null" >
UnderVReleaseV,
</if>
<if test="remarkoverall != null" >
RemarkOverall,
</if>
<if test="remarktable != null" >
RemarkTable,
</if>
<if test="inspectdate != null" >
InspectDate,
</if>
<if test="inspector != null" >
Inspector,
</if>
<if test="leavefactoryno != null" >
LeaveFactoryNo,
</if>
<if test="phasea != null" >
phaseA,
</if>
<if test="phaseb != null" >
phaseB,
</if>
<if test="phasec != null" >
phaseC,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=VARCHAR},
</if>
<if test="insuser != null" >
#{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
#{insdt,jdbcType=TIMESTAMP},
</if>
<if test="equipmentname != null" >
#{equipmentname,jdbcType=VARCHAR},
</if>
<if test="ratedvoltage != null" >
#{ratedvoltage,jdbcType=VARCHAR},
</if>
<if test="ratedcurrent != null" >
#{ratedcurrent,jdbcType=VARCHAR},
</if>
<if test="installationtype != null" >
#{installationtype,jdbcType=VARCHAR},
</if>
<if test="releasemodel != null" >
#{releasemodel,jdbcType=VARCHAR},
</if>
<if test="appendix != null" >
#{appendix,jdbcType=VARCHAR},
</if>
<if test="poweroperationv != null" >
#{poweroperationv,jdbcType=VARCHAR},
</if>
<if test="shuntreleasev != null" >
#{shuntreleasev,jdbcType=VARCHAR},
</if>
<if test="closingemv != null" >
#{closingemv,jdbcType=VARCHAR},
</if>
<if test="undervreleasev != null" >
#{undervreleasev,jdbcType=VARCHAR},
</if>
<if test="remarkoverall != null" >
#{remarkoverall,jdbcType=VARCHAR},
</if>
<if test="remarktable != null" >
#{remarktable,jdbcType=VARCHAR},
</if>
<if test="inspectdate != null" >
#{inspectdate,jdbcType=TIMESTAMP},
</if>
<if test="inspector != null" >
#{inspector,jdbcType=VARCHAR},
</if>
<if test="leavefactoryno != null" >
#{leavefactoryno,jdbcType=VARCHAR},
</if>
<if test="phasea != null" >
#{phasea,jdbcType=VARCHAR},
</if>
<if test="phaseb != null" >
#{phaseb,jdbcType=VARCHAR},
</if>
<if test="phasec != null" >
#{phasec,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.quality.LeaveFactoryCheck" >
update TB_QM_LeaveFactoryCheck
<set >
<if test="insuser != null" >
insuser = #{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
insdt = #{insdt,jdbcType=TIMESTAMP},
</if>
<if test="equipmentname != null" >
Equipmentname = #{equipmentname,jdbcType=VARCHAR},
</if>
<if test="ratedvoltage != null" >
RatedVoltage = #{ratedvoltage,jdbcType=VARCHAR},
</if>
<if test="ratedcurrent != null" >
RatedCurrent = #{ratedcurrent,jdbcType=VARCHAR},
</if>
<if test="installationtype != null" >
InstallationType = #{installationtype,jdbcType=VARCHAR},
</if>
<if test="releasemodel != null" >
ReleaseModel = #{releasemodel,jdbcType=VARCHAR},
</if>
<if test="appendix != null" >
Appendix = #{appendix,jdbcType=VARCHAR},
</if>
<if test="poweroperationv != null" >
PowerOperationV = #{poweroperationv,jdbcType=VARCHAR},
</if>
<if test="shuntreleasev != null" >
ShuntReleaseV = #{shuntreleasev,jdbcType=VARCHAR},
</if>
<if test="closingemv != null" >
ClosingEMV = #{closingemv,jdbcType=VARCHAR},
</if>
<if test="undervreleasev != null" >
UnderVReleaseV = #{undervreleasev,jdbcType=VARCHAR},
</if>
<if test="remarkoverall != null" >
RemarkOverall = #{remarkoverall,jdbcType=VARCHAR},
</if>
<if test="remarktable != null" >
RemarkTable = #{remarktable,jdbcType=VARCHAR},
</if>
<if test="inspectdate != null" >
InspectDate = #{inspectdate,jdbcType=TIMESTAMP},
</if>
<if test="inspector != null" >
Inspector = #{inspector,jdbcType=VARCHAR},
</if>
<if test="leavefactoryno != null" >
LeaveFactoryNo= #{leavefactoryno,jdbcType=VARCHAR},
</if>
<if test="phasea != null" >
phaseA= #{phasea,jdbcType=VARCHAR},
</if>
<if test="phaseb != null" >
phaseB= #{phaseb,jdbcType=VARCHAR},
</if>
<if test="phasec != null" >
phaseC= #{phasec,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.quality.LeaveFactoryCheck" >
update TB_QM_LeaveFactoryCheck
set insuser = #{insuser,jdbcType=VARCHAR},
insdt = #{insdt,jdbcType=TIMESTAMP},
Equipmentname = #{equipmentname,jdbcType=VARCHAR},
RatedVoltage = #{ratedvoltage,jdbcType=VARCHAR},
RatedCurrent = #{ratedcurrent,jdbcType=VARCHAR},
InstallationType = #{installationtype,jdbcType=VARCHAR},
ReleaseModel = #{releasemodel,jdbcType=VARCHAR},
Appendix = #{appendix,jdbcType=VARCHAR},
PowerOperationV = #{poweroperationv,jdbcType=VARCHAR},
ShuntReleaseV = #{shuntreleasev,jdbcType=VARCHAR},
ClosingEMV = #{closingemv,jdbcType=VARCHAR},
UnderVReleaseV = #{undervreleasev,jdbcType=VARCHAR},
RemarkOverall = #{remarkoverall,jdbcType=VARCHAR},
RemarkTable = #{remarktable,jdbcType=VARCHAR},
InspectDate = #{inspectdate,jdbcType=TIMESTAMP},
Inspector = #{inspector,jdbcType=VARCHAR},
LeaveFactoryNo = #{leavefactoryno,jdbcType=VARCHAR},
phaseA = #{phasea,jdbcType=VARCHAR},
phaseB = #{phaseb,jdbcType=VARCHAR},
phaseC = #{phasec,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from TB_QM_LeaveFactoryCheck
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String" >
delete from TB_QM_LeaveFactoryCheck
${where}
</delete>
</mapper>

View File

@ -0,0 +1,134 @@
<?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="quality.ProcedCustPrjMapper" >
<resultMap id="BaseResultMap" type="com.sipai.entity.quality.ProcedCustPrj" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
<result column="procedureid" property="procedureid" jdbcType="VARCHAR" />
<result column="customprojname" property="customprojname" jdbcType="VARCHAR" />
<result column="cpresult" property="cpresult" jdbcType="VARCHAR" />
<result column="enclosureurl" property="enclosureurl" jdbcType="VARCHAR" />
<association column="procedureid" property="procedurename" jdbcType="VARCHAR" select="selectProcedcode"></association>
</resultMap>
<select id="selectProcedcode" resultType="String" parameterType="java.lang.String" >
select procedurename from tb_process_task_procedure where id = #{procedureid,jdbcType=VARCHAR}
</select>
<sql id="Base_Column_List" >
id, insuser, insdt, procedureid, customprojname, cpresult, enclosureurl
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_quality_procedure_customproj
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from tb_quality_procedure_customproj
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.quality.ProcedCustPrj" >
insert into tb_quality_procedure_customproj (id, insuser, insdt,
procedureid, customprojname, cpresult,
enclosureurl)
values (#{id,jdbcType=VARCHAR}, #{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP},
#{procedureid,jdbcType=VARCHAR}, #{customprojname,jdbcType=VARCHAR}, #{cpresult,jdbcType=VARCHAR},
#{enclosureurl,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.quality.ProcedCustPrj" >
insert into tb_quality_procedure_customproj
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="insuser != null" >
insuser,
</if>
<if test="insdt != null" >
insdt,
</if>
<if test="procedureid != null" >
procedureid,
</if>
<if test="customprojname != null" >
customprojname,
</if>
<if test="cpresult != null" >
cpresult,
</if>
<if test="enclosureurl != null" >
enclosureurl,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=VARCHAR},
</if>
<if test="insuser != null" >
#{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
#{insdt,jdbcType=TIMESTAMP},
</if>
<if test="procedureid != null" >
#{procedureid,jdbcType=VARCHAR},
</if>
<if test="customprojname != null" >
#{customprojname,jdbcType=VARCHAR},
</if>
<if test="cpresult != null" >
#{cpresult,jdbcType=VARCHAR},
</if>
<if test="enclosureurl != null" >
#{enclosureurl,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.quality.ProcedCustPrj" >
update tb_quality_procedure_customproj
<set >
<if test="insuser != null" >
insuser = #{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
insdt = #{insdt,jdbcType=TIMESTAMP},
</if>
<if test="procedureid != null" >
procedureid = #{procedureid,jdbcType=VARCHAR},
</if>
<if test="customprojname != null" >
customprojname = #{customprojname,jdbcType=VARCHAR},
</if>
<if test="cpresult != null" >
cpresult = #{cpresult,jdbcType=VARCHAR},
</if>
<if test="enclosureurl != null" >
enclosureurl = #{enclosureurl,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.quality.ProcedCustPrj" >
update tb_quality_procedure_customproj
set insuser = #{insuser,jdbcType=VARCHAR},
insdt = #{insdt,jdbcType=TIMESTAMP},
procedureid = #{procedureid,jdbcType=VARCHAR},
customprojname = #{customprojname,jdbcType=VARCHAR},
cpresult = #{cpresult,jdbcType=VARCHAR},
enclosureurl = #{enclosureurl,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_quality_procedure_customproj
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String" >
delete from tb_quality_procedure_customproj
${where}
</delete>
</mapper>

View File

@ -0,0 +1,149 @@
<?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="quality.QEProjectMapper" >
<resultMap id="BaseResultMap" type="com.sipai.entity.quality.QEProject" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
<result column="productno" property="productno" jdbcType="VARCHAR" />
<result column="procedureid" property="procedureid" jdbcType="VARCHAR" />
<result column="projectname" property="projectname" jdbcType="VARCHAR" />
<association column="procedureid" property="procedurename" jdbcType="VARCHAR" select="selectProcedcode"></association>
</resultMap>
<select id="selectProcedcode" resultType="String" parameterType="java.lang.String" >
select procedurename from tb_process_task_procedure where id = #{procedureid,jdbcType=VARCHAR}
</select>
<sql id="Base_Column_List" >
id, insuser, insdt, productno, procedureid, projectname
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_quality_qeproject
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from tb_quality_qeproject
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.quality.QEProject" >
insert into tb_quality_qeproject (id, insuser, insdt,
productno, procedureid, projectname
)
values (#{id,jdbcType=VARCHAR}, #{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP},
#{productno,jdbcType=VARCHAR}, #{procedureid,jdbcType=VARCHAR}, #{projectname,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.quality.QEProject" >
insert into tb_quality_qeproject
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="insuser != null" >
insuser,
</if>
<if test="insdt != null" >
insdt,
</if>
<if test="productno != null" >
productno,
</if>
<if test="procedureid != null" >
procedureid,
</if>
<if test="projectname != null" >
projectname,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=VARCHAR},
</if>
<if test="insuser != null" >
#{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
#{insdt,jdbcType=TIMESTAMP},
</if>
<if test="productno != null" >
#{productno,jdbcType=VARCHAR},
</if>
<if test="procedureid != null" >
#{procedureid,jdbcType=VARCHAR},
</if>
<if test="projectname != null" >
#{projectname,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.quality.QEProject" >
update tb_quality_qeproject
<set >
<if test="insuser != null" >
insuser = #{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
insdt = #{insdt,jdbcType=TIMESTAMP},
</if>
<if test="productno != null" >
productno = #{productno,jdbcType=VARCHAR},
</if>
<if test="procedureid != null" >
procedureid = #{procedureid,jdbcType=VARCHAR},
</if>
<if test="projectname != null" >
projectname = #{projectname,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.quality.QEProject" >
update tb_quality_qeproject
set insuser = #{insuser,jdbcType=VARCHAR},
insdt = #{insdt,jdbcType=TIMESTAMP},
productno = #{productno,jdbcType=VARCHAR},
procedureid = #{procedureid,jdbcType=VARCHAR},
projectname = #{projectname,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_quality_qeproject
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String" >
delete from tb_quality_qeproject
${where}
</delete>
<resultMap id="GetProjResultMap" type="com.sipai.entity.quality.QEProject" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
<result column="productno" property="productno" jdbcType="VARCHAR" />
<result column="procedureid" property="procedureid" jdbcType="VARCHAR" />
<result column="projectname" property="projectname" jdbcType="VARCHAR" />
<result column="projresult" property="projresult" jdbcType="VARCHAR" />
<result column="recordid" property="recordid" jdbcType="VARCHAR" />
<association column="procedureid" property="procedurename" jdbcType="VARCHAR" select="selectProcedcode"></association>
</resultMap>
<select id="selectProjresultListByWhere" resultMap="GetProjResultMap" parameterType="java.lang.String" >
SELECT T.[id]
,T.[insuser]
,T.[insdt]
,[productno]
,[procedureid]
,[projectname]
,R.id AS recordid
,R.projresult AS projresult
FROM [PlantEngine_RLD].[dbo].[tb_quality_qeproject] T
left outer join [tb_quality_qerecord] R on T.id = R.projectid
${where}
</select>
</mapper>

View File

@ -0,0 +1,123 @@
<?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="quality.QERecordMapper" >
<resultMap id="BaseResultMap" type="com.sipai.entity.quality.QERecord" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
<result column="testingid" property="testingid" jdbcType="VARCHAR" />
<result column="projectid" property="projectid" jdbcType="VARCHAR" />
<result column="projresult" property="projresult" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
id, insuser, insdt, testingid, projectid, projresult
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_quality_qerecord
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from tb_quality_qerecord
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.quality.QERecord" >
insert into tb_quality_qerecord (id, insuser, insdt,
testingid, projectid, projresult
)
values (#{id,jdbcType=VARCHAR}, #{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP},
#{testingid,jdbcType=VARCHAR}, #{projectid,jdbcType=VARCHAR}, #{projresult,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.quality.QERecord" >
insert into tb_quality_qerecord
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="insuser != null" >
insuser,
</if>
<if test="insdt != null" >
insdt,
</if>
<if test="testingid != null" >
testingid,
</if>
<if test="projectid != null" >
projectid,
</if>
<if test="projresult != null" >
projresult,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=VARCHAR},
</if>
<if test="insuser != null" >
#{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
#{insdt,jdbcType=TIMESTAMP},
</if>
<if test="testingid != null" >
#{testingid,jdbcType=VARCHAR},
</if>
<if test="projectid != null" >
#{projectid,jdbcType=VARCHAR},
</if>
<if test="projresult != null" >
#{projresult,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.quality.QERecord" >
update tb_quality_qerecord
<set >
<if test="insuser != null" >
insuser = #{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
insdt = #{insdt,jdbcType=TIMESTAMP},
</if>
<if test="testingid != null" >
testingid = #{testingid,jdbcType=VARCHAR},
</if>
<if test="projectid != null" >
projectid = #{projectid,jdbcType=VARCHAR},
</if>
<if test="projresult != null" >
projresult = #{projresult,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.quality.QERecord" >
update tb_quality_qerecord
set insuser = #{insuser,jdbcType=VARCHAR},
insdt = #{insdt,jdbcType=TIMESTAMP},
testingid = #{testingid,jdbcType=VARCHAR},
projectid = #{projectid,jdbcType=VARCHAR},
projresult = #{projresult,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByTid" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_quality_qerecord
where testingid = #{testingid,jdbcType=VARCHAR}
</select>
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_quality_qerecord
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String" >
delete from tb_quality_qerecord
${where}
</delete>
</mapper>

View File

@ -0,0 +1,361 @@
<?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="quality.Statistics_CI_SubMapper">
<resultMap id="BaseResultMap" type="com.sipai.entity.quality.Statistics_CI_Sub">
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="insuser" jdbcType="VARCHAR" property="insuser" />
<result column="insdt" jdbcType="TIMESTAMP" property="insdt" />
<result column="workorderno" jdbcType="VARCHAR" property="workorderno" />
<result column="procedureno" jdbcType="VARCHAR" property="procedureno" />
<result column="workstationno" jdbcType="VARCHAR" property="workstationno" />
<result column="operator" jdbcType="VARCHAR" property="operator" />
<result column="productionno" jdbcType="VARCHAR" property="productionno" />
<result column="CNCStationNo" jdbcType="VARCHAR" property="cncstationno" />
<result column="inputNum" jdbcType="INTEGER" property="inputnum" />
<result column="goodProductionNum" jdbcType="INTEGER" property="goodproductionnum" />
<result column="reMONum" jdbcType="INTEGER" property="remonum" />
<result column="scrapNum" jdbcType="INTEGER" property="scrapnum" />
<result column="reWashNum" jdbcType="INTEGER" property="rewashnum" />
<result column="cjsh" jdbcType="INTEGER" property="cjsh" />
<result column="qwsb" jdbcType="INTEGER" property="qwsb" />
<result column="ymsh" jdbcType="INTEGER" property="ymsh" />
<result column="fmORwmt" jdbcType="INTEGER" property="fmorwmt" />
<result column="mfd" jdbcType="INTEGER" property="mfd" />
<result column="bb" jdbcType="INTEGER" property="bb" />
<result column="sh" jdbcType="INTEGER" property="sh" />
<result column="qdad" jdbcType="INTEGER" property="qdad" />
<result column="pl" jdbcType="INTEGER" property="pl" />
<result column="yzsb" jdbcType="INTEGER" property="yzsb" />
<result column="bbz" jdbcType="INTEGER" property="bbz" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="status" jdbcType="VARCHAR" property="status" />
</resultMap>
<sql id="Base_Column_List">
id, insuser, insdt, workorderno, procedureno, workstationno, operator, productionno,
CNCStationNo, inputNum, goodProductionNum, reMONum, scrapNum, reWashNum, cjsh, qwsb,
ymsh, fmORwmt, mfd, bb, sh, qdad, pl, yzsb, bbz, remark, status
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from tb_quality_statistics_completeinspection_sub
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from tb_quality_statistics_completeinspection_sub
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.quality.Statistics_CI_Sub">
insert into tb_quality_statistics_completeinspection_sub (id, insuser, insdt,
workorderno, procedureno, workstationno,
operator, productionno, CNCStationNo,
inputNum, goodProductionNum, reMONum,
scrapNum, reWashNum, cjsh,
qwsb, ymsh, fmORwmt,
mfd, bb, sh, qdad,
pl, yzsb, bbz, remark,
status)
values (#{id,jdbcType=VARCHAR}, #{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP},
#{workorderno,jdbcType=VARCHAR}, #{procedureno,jdbcType=VARCHAR}, #{workstationno,jdbcType=VARCHAR},
#{operator,jdbcType=VARCHAR}, #{productionno,jdbcType=VARCHAR}, #{cncstationno,jdbcType=VARCHAR},
#{inputnum,jdbcType=INTEGER}, #{goodproductionnum,jdbcType=INTEGER}, #{remonum,jdbcType=INTEGER},
#{scrapnum,jdbcType=INTEGER}, #{rewashnum,jdbcType=INTEGER}, #{cjsh,jdbcType=INTEGER},
#{qwsb,jdbcType=INTEGER}, #{ymsh,jdbcType=INTEGER}, #{fmorwmt,jdbcType=INTEGER},
#{mfd,jdbcType=INTEGER}, #{bb,jdbcType=INTEGER}, #{sh,jdbcType=INTEGER}, #{qdad,jdbcType=INTEGER},
#{pl,jdbcType=INTEGER}, #{yzsb,jdbcType=INTEGER}, #{bbz,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR},
#{status,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.quality.Statistics_CI_Sub">
insert into tb_quality_statistics_completeinspection_sub
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="insuser != null">
insuser,
</if>
<if test="insdt != null">
insdt,
</if>
<if test="workorderno != null">
workorderno,
</if>
<if test="procedureno != null">
procedureno,
</if>
<if test="workstationno != null">
workstationno,
</if>
<if test="operator != null">
operator,
</if>
<if test="productionno != null">
productionno,
</if>
<if test="cncstationno != null">
CNCStationNo,
</if>
<if test="inputnum != null">
inputNum,
</if>
<if test="goodproductionnum != null">
goodProductionNum,
</if>
<if test="remonum != null">
reMONum,
</if>
<if test="scrapnum != null">
scrapNum,
</if>
<if test="rewashnum != null">
reWashNum,
</if>
<if test="cjsh != null">
cjsh,
</if>
<if test="qwsb != null">
qwsb,
</if>
<if test="ymsh != null">
ymsh,
</if>
<if test="fmorwmt != null">
fmORwmt,
</if>
<if test="mfd != null">
mfd,
</if>
<if test="bb != null">
bb,
</if>
<if test="sh != null">
sh,
</if>
<if test="qdad != null">
qdad,
</if>
<if test="pl != null">
pl,
</if>
<if test="yzsb != null">
yzsb,
</if>
<if test="bbz != null">
bbz,
</if>
<if test="remark != null">
remark,
</if>
<if test="status != null">
status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="insuser != null">
#{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null">
#{insdt,jdbcType=TIMESTAMP},
</if>
<if test="workorderno != null">
#{workorderno,jdbcType=VARCHAR},
</if>
<if test="procedureno != null">
#{procedureno,jdbcType=VARCHAR},
</if>
<if test="workstationno != null">
#{workstationno,jdbcType=VARCHAR},
</if>
<if test="operator != null">
#{operator,jdbcType=VARCHAR},
</if>
<if test="productionno != null">
#{productionno,jdbcType=VARCHAR},
</if>
<if test="cncstationno != null">
#{cncstationno,jdbcType=VARCHAR},
</if>
<if test="inputnum != null">
#{inputnum,jdbcType=INTEGER},
</if>
<if test="goodproductionnum != null">
#{goodproductionnum,jdbcType=INTEGER},
</if>
<if test="remonum != null">
#{remonum,jdbcType=INTEGER},
</if>
<if test="scrapnum != null">
#{scrapnum,jdbcType=INTEGER},
</if>
<if test="rewashnum != null">
#{rewashnum,jdbcType=INTEGER},
</if>
<if test="cjsh != null">
#{cjsh,jdbcType=INTEGER},
</if>
<if test="qwsb != null">
#{qwsb,jdbcType=INTEGER},
</if>
<if test="ymsh != null">
#{ymsh,jdbcType=INTEGER},
</if>
<if test="fmorwmt != null">
#{fmorwmt,jdbcType=INTEGER},
</if>
<if test="mfd != null">
#{mfd,jdbcType=INTEGER},
</if>
<if test="bb != null">
#{bb,jdbcType=INTEGER},
</if>
<if test="sh != null">
#{sh,jdbcType=INTEGER},
</if>
<if test="qdad != null">
#{qdad,jdbcType=INTEGER},
</if>
<if test="pl != null">
#{pl,jdbcType=INTEGER},
</if>
<if test="yzsb != null">
#{yzsb,jdbcType=INTEGER},
</if>
<if test="bbz != null">
#{bbz,jdbcType=INTEGER},
</if>
<if test="remark != null">
#{remark,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.quality.Statistics_CI_Sub">
update tb_quality_statistics_completeinspection_sub
<set>
<if test="insuser != null">
insuser = #{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null">
insdt = #{insdt,jdbcType=TIMESTAMP},
</if>
<if test="workorderno != null">
workorderno = #{workorderno,jdbcType=VARCHAR},
</if>
<if test="procedureno != null">
procedureno = #{procedureno,jdbcType=VARCHAR},
</if>
<if test="workstationno != null">
workstationno = #{workstationno,jdbcType=VARCHAR},
</if>
<if test="operator != null">
operator = #{operator,jdbcType=VARCHAR},
</if>
<if test="productionno != null">
productionno = #{productionno,jdbcType=VARCHAR},
</if>
<if test="cncstationno != null">
CNCStationNo = #{cncstationno,jdbcType=VARCHAR},
</if>
<if test="inputnum != null">
inputNum = #{inputnum,jdbcType=INTEGER},
</if>
<if test="goodproductionnum != null">
goodProductionNum = #{goodproductionnum,jdbcType=INTEGER},
</if>
<if test="remonum != null">
reMONum = #{remonum,jdbcType=INTEGER},
</if>
<if test="scrapnum != null">
scrapNum = #{scrapnum,jdbcType=INTEGER},
</if>
<if test="rewashnum != null">
reWashNum = #{rewashnum,jdbcType=INTEGER},
</if>
<if test="cjsh != null">
cjsh = #{cjsh,jdbcType=INTEGER},
</if>
<if test="qwsb != null">
qwsb = #{qwsb,jdbcType=INTEGER},
</if>
<if test="ymsh != null">
ymsh = #{ymsh,jdbcType=INTEGER},
</if>
<if test="fmorwmt != null">
fmORwmt = #{fmorwmt,jdbcType=INTEGER},
</if>
<if test="mfd != null">
mfd = #{mfd,jdbcType=INTEGER},
</if>
<if test="bb != null">
bb = #{bb,jdbcType=INTEGER},
</if>
<if test="sh != null">
sh = #{sh,jdbcType=INTEGER},
</if>
<if test="qdad != null">
qdad = #{qdad,jdbcType=INTEGER},
</if>
<if test="pl != null">
pl = #{pl,jdbcType=INTEGER},
</if>
<if test="yzsb != null">
yzsb = #{yzsb,jdbcType=INTEGER},
</if>
<if test="bbz != null">
bbz = #{bbz,jdbcType=INTEGER},
</if>
<if test="remark != null">
remark = #{remark,jdbcType=VARCHAR},
</if>
<if test="status != null">
status = #{status,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.quality.Statistics_CI_Sub">
update tb_quality_statistics_completeinspection_sub
set insuser = #{insuser,jdbcType=VARCHAR},
insdt = #{insdt,jdbcType=TIMESTAMP},
workorderno = #{workorderno,jdbcType=VARCHAR},
procedureno = #{procedureno,jdbcType=VARCHAR},
workstationno = #{workstationno,jdbcType=VARCHAR},
operator = #{operator,jdbcType=VARCHAR},
productionno = #{productionno,jdbcType=VARCHAR},
CNCStationNo = #{cncstationno,jdbcType=VARCHAR},
inputNum = #{inputnum,jdbcType=INTEGER},
goodProductionNum = #{goodproductionnum,jdbcType=INTEGER},
reMONum = #{remonum,jdbcType=INTEGER},
scrapNum = #{scrapnum,jdbcType=INTEGER},
reWashNum = #{rewashnum,jdbcType=INTEGER},
cjsh = #{cjsh,jdbcType=INTEGER},
qwsb = #{qwsb,jdbcType=INTEGER},
ymsh = #{ymsh,jdbcType=INTEGER},
fmORwmt = #{fmorwmt,jdbcType=INTEGER},
mfd = #{mfd,jdbcType=INTEGER},
bb = #{bb,jdbcType=INTEGER},
sh = #{sh,jdbcType=INTEGER},
qdad = #{qdad,jdbcType=INTEGER},
pl = #{pl,jdbcType=INTEGER},
yzsb = #{yzsb,jdbcType=INTEGER},
bbz = #{bbz,jdbcType=INTEGER},
remark = #{remark,jdbcType=VARCHAR},
status = #{status,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectListByWhere" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from tb_quality_statistics_completeinspection_sub
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String">
delete from tb_quality_statistics_completeinspection_sub
${where}
</delete>
</mapper>

View File

@ -0,0 +1,288 @@
<?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="quality.testingRecordMapper" >
<resultMap id="BaseResultMap" type="com.sipai.entity.quality.TestingRecord" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="insuser" property="insuser" jdbcType="VARCHAR" />
<result column="insdt" property="insdt" jdbcType="TIMESTAMP" />
<result column="recordcode" property="recordcode" jdbcType="VARCHAR" />
<result column="procedureid" property="procedureid" jdbcType="VARCHAR" />
<result column="equipmentid" property="equipmentid" jdbcType="VARCHAR" />
<result column="workorderid" property="workorderid" jdbcType="VARCHAR" />
<result column="time" property="time" jdbcType="TIMESTAMP" />
<result column="timepart" property="timepart" jdbcType="VARCHAR" />
<result column="receivedquantity" property="receivedquantity" jdbcType="VARCHAR" />
<result column="returnquantity" property="returnquantity" jdbcType="VARCHAR" />
<result column="scrapquantity" property="scrapquantity" jdbcType="VARCHAR" />
<result column="instruction" property="instruction" jdbcType="VARCHAR" />
<result column="recordtype" property="recordtype" jdbcType="VARCHAR" />
<result column="testingtype" property="testingtype" jdbcType="VARCHAR" />
<result column="result" property="result" jdbcType="VARCHAR" />
<association column="workorderid" property="workorderno" jdbcType="VARCHAR" select="selectWO"></association>
<association column="procedureid" property="procedurename" jdbcType="VARCHAR" select="selectProN"></association>
<association column="equipmentid" property="equname" jdbcType="VARCHAR" select="selectEqu"></association>
</resultMap>
<select id="selectWO" resultType="String" parameterType="java.lang.String" >
select workorderNo from tb_work_order where Id = #{workorderid,jdbcType=VARCHAR}
</select>
<select id="selectProN" resultType="String" parameterType="java.lang.String" >
select procedurename from tb_process_task_procedure where procedurecode = #{procedureid,jdbcType=VARCHAR}
</select>
<select id="selectEqu" resultType="String" parameterType="java.lang.String" >
select [equipmentName]+[equipmentCardID] AS equname from TB_EM_EquipmentCard where id = #{equipmentid,jdbcType=VARCHAR}
</select>
<sql id="Base_Column_List" >
id, insuser, insdt, recordcode, procedureid, equipmentid, workorderid, time, timepart,
receivedquantity, returnquantity, scrapquantity, instruction, recordtype, testingtype,
result
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_quality_testingrecord
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from tb_quality_testingrecord
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sipai.entity.quality.TestingRecord" >
insert into tb_quality_testingrecord (id, insuser, insdt,
recordcode, procedureid, equipmentid,
workorderid, time, timepart,
receivedquantity, returnquantity, scrapquantity,
instruction, recordtype, testingtype,
result)
values (#{id,jdbcType=VARCHAR}, #{insuser,jdbcType=VARCHAR}, #{insdt,jdbcType=TIMESTAMP},
#{recordcode,jdbcType=VARCHAR}, #{procedureid,jdbcType=VARCHAR}, #{equipmentid,jdbcType=VARCHAR},
#{workorderid,jdbcType=VARCHAR}, #{time,jdbcType=TIMESTAMP}, #{timepart,jdbcType=VARCHAR},
#{receivedquantity,jdbcType=VARCHAR}, #{returnquantity,jdbcType=VARCHAR}, #{scrapquantity,jdbcType=VARCHAR},
#{instruction,jdbcType=VARCHAR}, #{recordtype,jdbcType=VARCHAR}, #{testingtype,jdbcType=VARCHAR},
#{result,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.quality.TestingRecord" >
insert into tb_quality_testingrecord
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="insuser != null" >
insuser,
</if>
<if test="insdt != null" >
insdt,
</if>
<if test="recordcode != null" >
recordcode,
</if>
<if test="procedureid != null" >
procedureid,
</if>
<if test="equipmentid != null" >
equipmentid,
</if>
<if test="workorderid != null" >
workorderid,
</if>
<if test="time != null" >
time,
</if>
<if test="timepart != null" >
timepart,
</if>
<if test="receivedquantity != null" >
receivedquantity,
</if>
<if test="returnquantity != null" >
returnquantity,
</if>
<if test="scrapquantity != null" >
scrapquantity,
</if>
<if test="instruction != null" >
instruction,
</if>
<if test="recordtype != null" >
recordtype,
</if>
<if test="testingtype != null" >
testingtype,
</if>
<if test="result != null" >
result,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=VARCHAR},
</if>
<if test="insuser != null" >
#{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
#{insdt,jdbcType=TIMESTAMP},
</if>
<if test="recordcode != null" >
#{recordcode,jdbcType=VARCHAR},
</if>
<if test="procedureid != null" >
#{procedureid,jdbcType=VARCHAR},
</if>
<if test="equipmentid != null" >
#{equipmentid,jdbcType=VARCHAR},
</if>
<if test="workorderid != null" >
#{workorderid,jdbcType=VARCHAR},
</if>
<if test="time != null" >
#{time,jdbcType=TIMESTAMP},
</if>
<if test="timepart != null" >
#{timepart,jdbcType=VARCHAR},
</if>
<if test="receivedquantity != null" >
#{receivedquantity,jdbcType=VARCHAR},
</if>
<if test="returnquantity != null" >
#{returnquantity,jdbcType=VARCHAR},
</if>
<if test="scrapquantity != null" >
#{scrapquantity,jdbcType=VARCHAR},
</if>
<if test="instruction != null" >
#{instruction,jdbcType=VARCHAR},
</if>
<if test="recordtype != null" >
#{recordtype,jdbcType=VARCHAR},
</if>
<if test="testingtype != null" >
#{testingtype,jdbcType=VARCHAR},
</if>
<if test="result != null" >
#{result,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.quality.TestingRecord" >
update tb_quality_testingrecord
<set >
<if test="insuser != null" >
insuser = #{insuser,jdbcType=VARCHAR},
</if>
<if test="insdt != null" >
insdt = #{insdt,jdbcType=TIMESTAMP},
</if>
<if test="recordcode != null" >
recordcode = #{recordcode,jdbcType=VARCHAR},
</if>
<if test="procedureid != null" >
procedureid = #{procedureid,jdbcType=VARCHAR},
</if>
<if test="equipmentid != null" >
equipmentid = #{equipmentid,jdbcType=VARCHAR},
</if>
<if test="workorderid != null" >
workorderid = #{workorderid,jdbcType=VARCHAR},
</if>
<if test="time != null" >
time = #{time,jdbcType=TIMESTAMP},
</if>
<if test="timepart != null" >
timepart = #{timepart,jdbcType=VARCHAR},
</if>
<if test="receivedquantity != null" >
receivedquantity = #{receivedquantity,jdbcType=VARCHAR},
</if>
<if test="returnquantity != null" >
returnquantity = #{returnquantity,jdbcType=VARCHAR},
</if>
<if test="scrapquantity != null" >
scrapquantity = #{scrapquantity,jdbcType=VARCHAR},
</if>
<if test="instruction != null" >
instruction = #{instruction,jdbcType=VARCHAR},
</if>
<if test="recordtype != null" >
recordtype = #{recordtype,jdbcType=VARCHAR},
</if>
<if test="testingtype != null" >
testingtype = #{testingtype,jdbcType=VARCHAR},
</if>
<if test="result != null" >
result = #{result,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.quality.TestingRecord" >
update tb_quality_testingrecord
set insuser = #{insuser,jdbcType=VARCHAR},
insdt = #{insdt,jdbcType=TIMESTAMP},
recordcode = #{recordcode,jdbcType=VARCHAR},
procedureid = #{procedureid,jdbcType=VARCHAR},
equipmentid = #{equipmentid,jdbcType=VARCHAR},
workorderid = #{workorderid,jdbcType=VARCHAR},
time = #{time,jdbcType=TIMESTAMP},
timepart = #{timepart,jdbcType=VARCHAR},
receivedquantity = #{receivedquantity,jdbcType=VARCHAR},
returnquantity = #{returnquantity,jdbcType=VARCHAR},
scrapquantity = #{scrapquantity,jdbcType=VARCHAR},
instruction = #{instruction,jdbcType=VARCHAR},
recordtype = #{recordtype,jdbcType=VARCHAR},
testingtype = #{testingtype,jdbcType=VARCHAR},
result = #{result,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_quality_testingrecord
${where}
</select>
<select id="getListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tb_quality_testingrecord
${where}
</select>
<select id="selectLastRcByEquid" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
top 1 [id] ,[equipmentid],[time],[recordtype],[testingtype],[result]
from tb_quality_testingrecord
${where}
</select>
<select id="selectCountByEquid" resultMap="BaseResultMap" parameterType="java.lang.String" >
select a.testingtype ,count(*) AS count from
(select testingtype from tb_quality_testingrecord where (testingtype = '3' or testingtype='4') and recordtype = 'QE'
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String" >
delete from tb_quality_testingrecord
${where}
</delete>
<select id="selectAmountListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select procedureid,
count(procedureid) AS receivedquantity,
count(case when result = 'OK' then 1 else null end) as returnquantity,
count(case when result = 'NG' then 1 else null end) as scrapquantity
from tb_quality_testingrecord
${where}
</select>
<select id="selectTimeAmountListByWhere" resultMap="BaseResultMap" parameterType="java.lang.String" >
select time,
count(procedureid) AS receivedquantity,
count(case when result = 'OK' then 1 else null end) as returnquantity,
count(case when result = 'NG' then 1 else null end) as scrapquantity
from tb_quality_testingrecord
${where}
</select>
</mapper>