|
|
|
@ -19,11 +19,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="checkEffect" column="check_effect" /> |
|
|
|
<result property="checkQuality" column="check_quality" /> |
|
|
|
<result property="serviceExperience" column="service_experience" /> |
|
|
|
<result property="checkEffectiveness" column="check_effectiveness" /> |
|
|
|
<result property="proceduralLegality" column="procedural_legality" /> |
|
|
|
<result property="batchId" column="batch_id" /> |
|
|
|
<result property="satisfactionLevel" column="satisfaction_level" /> |
|
|
|
<result property="otherProblemSwitch" column="other_problem_switch" /> |
|
|
|
<result property="problem1" column="problem1" /> |
|
|
|
<result property="problem2" column="problem2" /> |
|
|
|
<result property="problem3" column="problem3" /> |
|
|
|
<result property="problem4" column="problem4" /> |
|
|
|
<result property="problem5" column="problem5" /> |
|
|
|
</resultMap> |
|
|
|
<!-- ,enterprise_number,enterprise_name--> |
|
|
|
<sql id="selectEnterpriseEvaluateVo"> |
|
|
|
select id, enforcement_name, enforcement_id, evaluate_description, linkman, linkman_tel, |
|
|
|
authorization, create_time,inspection_efficiency ,check_effect,check_quality ,service_experience from enterprise_evaluate |
|
|
|
authorization, create_time,inspection_efficiency ,check_effect,check_quality ,service_experience,check_effectiveness,procedural_legality, |
|
|
|
batch_id,satisfaction_level,other_problem_switch,problem1,problem2,problem3,problem4,problem5 from enterprise_evaluate |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectEnterpriseEvaluateList" parameterType="EnterpriseEvaluate" resultMap="EnterpriseEvaluateResult"> |
|
|
|
@ -35,6 +46,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="linkman != null and linkman != ''"> and linkman = #{linkman}</if> |
|
|
|
<if test="linkmanTel != null and linkmanTel != ''"> and linkman_tel = #{linkmanTel}</if> |
|
|
|
<if test="authorization != null "> and authorization = #{authorization}</if> |
|
|
|
<if test="createTime != null "> and create_time = #{createTime}</if> |
|
|
|
<if test="inspectionEfficiency != null "> and inspection_efficiency = #{inspectionEfficiency}</if> |
|
|
|
<if test="checkEffect != null "> and check_effect = #{checkEffect}</if> |
|
|
|
<if test="serviceExperience != null "> and service_experience = #{serviceExperience}</if> |
|
|
|
<if test="checkQuality != null "> and check_quality = #{checkQuality}</if> |
|
|
|
<if test="checkEffectiveness != null "> and check_effectiveness = #{checkEffectiveness}</if> |
|
|
|
<if test="proceduralLegality != null "> and procedural_legality = #{proceduralLegality}</if> |
|
|
|
<if test="batchId != null and batchId != ''"> and batch_id = #{batchId}</if> |
|
|
|
<if test="satisfactionLevel != null "> and satisfaction_level = #{satisfactionLevel}</if> |
|
|
|
<if test="otherProblemSwitch != null "> and other_problem_switch = #{otherProblemSwitch}</if> |
|
|
|
<if test="problem1 != null "> and problem1 = #{problem1}</if> |
|
|
|
<if test="problem2 != null "> and problem2 = #{problem2}</if> |
|
|
|
<if test="problem3 != null "> and problem3 = #{problem3}</if> |
|
|
|
<if test="problem4 != null "> and problem4 = #{problem4}</if> |
|
|
|
<if test="problem5 != null "> and problem5 = #{problem5}</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
|
@ -69,6 +95,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="checkQuality != null ">check_quality,</if> |
|
|
|
<if test="serviceExperience != null ">service_experience,</if> |
|
|
|
<if test="batchId != null and batchId != '' ">batch_id,</if> |
|
|
|
<if test="checkEffectiveness != null ">check_effectiveness,</if> |
|
|
|
<if test="proceduralLegality != null ">procedural_legality,</if> |
|
|
|
<if test="satisfactionLevel != null ">satisfaction_level,</if> |
|
|
|
<if test="otherProblemSwitch != null ">other_problem_switch,</if> |
|
|
|
<if test="problem1 != null ">problem1,</if> |
|
|
|
<if test="problem2 != null ">problem2,</if> |
|
|
|
<if test="problem3 != null ">problem3,</if> |
|
|
|
<if test="problem4 != null ">problem4,</if> |
|
|
|
<if test="problem5 != null ">problem5,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null and id != ''">#{id},</if> |
|
|
|
@ -84,6 +119,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="checkQuality != null ">#{checkQuality},</if> |
|
|
|
<if test="serviceExperience != null ">#{serviceExperience},</if> |
|
|
|
<if test="batchId != null and batchId != '' ">#{batchId},</if> |
|
|
|
<if test="checkEffectiveness != null ">#{checkEffectiveness},</if> |
|
|
|
<if test="proceduralLegality != null ">#{proceduralLegality},</if> |
|
|
|
<if test="satisfactionLevel != null ">#{satisfactionLevel},</if> |
|
|
|
<if test="otherProblemSwitch != null ">#{otherProblemSwitch},</if> |
|
|
|
<if test="problem1 != null ">#{problem1},</if> |
|
|
|
<if test="problem2 != null ">#{problem2},</if> |
|
|
|
<if test="problem3 != null ">#{problem3},</if> |
|
|
|
<if test="problem4 != null ">#{problem4},</if> |
|
|
|
<if test="problem5 != null ">#{problem5},</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
|
@ -97,6 +141,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="linkmanTel != null and linkmanTel != ''">linkman_tel = #{linkmanTel},</if> |
|
|
|
<if test="authorization != null ">authorization = #{authorization},</if> |
|
|
|
<if test="createTime != null ">create_time = #{createTime},</if> |
|
|
|
<if test="inspectionEfficiency != null ">inspection_efficiency = #{inspectionEfficiency},</if> |
|
|
|
<if test="checkEffect != null ">check_effect = #{checkEffect},</if> |
|
|
|
<if test="serviceExperience != null ">service_experience = #{serviceExperience},</if> |
|
|
|
<if test="checkQuality != null ">check_quality = #{checkQuality},</if> |
|
|
|
<if test="checkEffectiveness != null ">check_effectiveness = #{checkEffectiveness},</if> |
|
|
|
<if test="proceduralLegality != null ">procedural_legality = #{proceduralLegality},</if> |
|
|
|
<if test="batchId != null and batchId != ''">batch_id = #{batchId},</if> |
|
|
|
<if test="satisfactionLevel != null ">satisfaction_level = #{satisfactionLevel},</if> |
|
|
|
<if test="otherProblemSwitch != null ">other_problem_switch = #{otherProblemSwitch},</if> |
|
|
|
<if test="problem1 != null ">problem1 = #{problem1},</if> |
|
|
|
<if test="problem2 != null ">problem2 = #{problem2},</if> |
|
|
|
<if test="problem3 != null ">problem3 = #{problem3},</if> |
|
|
|
<if test="problem4 != null ">problem4 = #{problem4},</if> |
|
|
|
<if test="problem5 != null ">problem5 = #{problem5},</if> |
|
|
|
</trim> |
|
|
|
where id = #{id} |
|
|
|
</update> |
|
|
|
|