<?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.ruoyi.project.tr.criterionDetail.mapper.CriterionDetailMapper">
|
|
<resultMap type="com.ruoyi.project.tr.criterionDetail.domain.CriterionDetail" id="CriterionDetailResult">
|
<result property="detailId" column="detail_id" />
|
<result property="createBy" column="create_by" />
|
<result property="createTime" column="create_time" />
|
<result property="updateBy" column="update_by" />
|
<result property="updateTime" column="update_time" />
|
<result property="remark" column="remark" />
|
|
<result property="orderNum" column="order_num" />
|
|
<result property="companyId" column="company_id" />
|
<result property="methodId" column="method_id" />
|
<result property="criterionId" column="criterion_id" />
|
<result property="detailScore" column="detail_score" />
|
<result property="lsLBiaozhun" column="LS_L_biaozhun" />
|
<result property="lsSDengji" column="LS_S_dengji" />
|
<result property="lsSFalu" column="LS_S_falu" />
|
<result property="lsSRenyuan" column="LS_S_renyuan" />
|
<result property="lsSJingjiSunshi" column="LS_S_jingji_sunshi" />
|
<result property="lsSTinggong" column="LS_S_tinggong" />
|
<result property="lsSQiyeXingxiang" column="LS_S_qiye_xingxiang" />
|
<result property="lecLKenengxing" column="LEC_L_kenengxing" />
|
<result property="lecEBiaozhun" column="LEC_E_biaozhun" />
|
<result property="lecCFalu" column="LEC_C_falu" />
|
<result property="lecCRenyuanShangwang" column="LEC_C_renyuan_shangwang" />
|
<result property="lecCJingjiSunshi" column="LEC_C_jingji_sunshi" />
|
<result property="lecCTinggong" column="LEC_C_tinggong" />
|
<result property="lecCGongsiXingxiang" column="LEC_C_gongsi_xingxiang" />
|
<result property="mesMBiaozhun" column="MES_M_biaozhun" />
|
<result property="mesEE1" column="MES_E_E1" />
|
<result property="mesEE2" column="MES_E_E2" />
|
<result property="mesSFalu" column="MES_S_falu" />
|
<result property="mesSRenyuanShangwang" column="MES_S_renyuan_shangwang" />
|
<result property="mesSJingjiSunshi" column="MES_S_jingji_sunshi" />
|
<result property="mesSTinggong" column="MES_S_tinggong" />
|
|
<result property="rsRKenengxing" column="RS_R_kenengxing" />
|
<result property="rsRDingxing" column="RS_R_dingxing" />
|
<result property="rsRDingliang" column="RS_R_dingliang" />
|
<result property="rsSDengji" column="RS_S_dengji" />
|
<result property="rsSRenyuan" column="RS_S_renyuan" />
|
<result property="rsSCaichanSunshi" column="RS_S_caichan_sunshi" />
|
<result property="rsSShehuiYingxiang" column="RS_S_shehui_yingxiang" />
|
</resultMap>
|
|
<sql id="selectCriterionDetailVo">
|
select detail_id, create_by, create_time, update_by, update_time, remark,
|
order_num, company_id, method_id, criterion_id, detail_score,
|
LS_L_biaozhun, LS_S_dengji, LS_S_falu, LS_S_renyuan, LS_S_jingji_sunshi, LS_S_tinggong, LS_S_qiye_xingxiang,
|
LEC_L_kenengxing, LEC_E_biaozhun, LEC_C_falu, LEC_C_renyuan_shangwang, LEC_C_jingji_sunshi, LEC_C_tinggong, LEC_C_gongsi_xingxiang,
|
MES_M_biaozhun, MES_E_E1, MES_E_E2, MES_S_falu, MES_S_renyuan_shangwang, MES_S_jingji_sunshi, MES_S_tinggong,
|
RS_R_kenengxing, RS_R_dingxing, RS_R_dingliang, RS_S_dengji, RS_S_renyuan, RS_S_caichan_sunshi, RS_S_shehui_yingxiang
|
from tr_criterion_detail
|
</sql>
|
|
|
<select id="selectCriterionDetailList" parameterType="CriterionDetail" resultMap="CriterionDetailResult">
|
<include refid="selectCriterionDetailVo"/>
|
<where>
|
<if test="orderNum != null "> and order_num = #{orderNum}</if>
|
<if test="companyId != null "> and company_id = #{companyId}</if>
|
<if test="methodId != null "> and method_id = #{methodId}</if>
|
<if test="criterionId != null "> and criterion_id = #{criterionId}</if>
|
<if test="detailScore != null "> and detail_score = #{detailScore}</if>
|
<if test="lsLBiaozhun != null and lsLBiaozhun != ''"> and LS_L_biaozhun = #{lsLBiaozhun}</if>
|
<if test="lsSDengji != null and lsSDengji != ''"> and LS_S_dengji = #{lsSDengji}</if>
|
<if test="lsSFalu != null and lsSFalu != ''"> and LS_S_falu = #{lsSFalu}</if>
|
<if test="lsSRenyuan != null and lsSRenyuan != ''"> and LS_S_renyuan = #{lsSRenyuan}</if>
|
<if test="lsSJingjiSunshi != null and lsSJingjiSunshi != ''"> and LS_S_jingji_sunshi = #{lsSJingjiSunshi}</if>
|
<if test="lsSTinggong != null and lsSTinggong != ''"> and LS_S_tinggong = #{lsSTinggong}</if>
|
<if test="lsSQiyeXingxiang != null and lsSQiyeXingxiang != ''"> and LS_S_qiye_xingxiang = #{lsSQiyeXingxiang}</if>
|
<if test="lecLKenengxing != null and lecLKenengxing != ''"> and LEC_L_kenengxing = #{lecLKenengxing}</if>
|
<if test="lecEBiaozhun != null and lecEBiaozhun != ''"> and LEC_E_biaozhun = #{lecEBiaozhun}</if>
|
<if test="lecCFalu != null and lecCFalu != ''"> and LEC_C_falu = #{lecCFalu}</if>
|
<if test="lecCRenyuanShangwang != null and lecCRenyuanShangwang != ''"> and LEC_C_renyuan_shangwang = #{lecCRenyuanShangwang}</if>
|
<if test="lecCJingjiSunshi != null and lecCJingjiSunshi != ''"> and LEC_C_jingji_sunshi = #{lecCJingjiSunshi}</if>
|
<if test="lecCTinggong != null and lecCTinggong != ''"> and LEC_C_tinggong = #{lecCTinggong}</if>
|
<if test="lecCGongsiXingxiang != null and lecCGongsiXingxiang != ''"> and LEC_C_gongsi_xingxiang = #{lecCGongsiXingxiang}</if>
|
<if test="mesMBiaozhun != null and mesMBiaozhun != ''"> and MES_M_biaozhun = #{mesMBiaozhun}</if>
|
<if test="mesEE1 != null and mesEE1 != ''"> and MES_E_E1 = #{mesEE1}</if>
|
<if test="mesEE2 != null and mesEE2 != ''"> and MES_E_E2 = #{mesEE2}</if>
|
<if test="mesSFalu != null and mesSFalu != ''"> and MES_S_falu = #{mesSFalu}</if>
|
<if test="mesSRenyuanShangwang != null and mesSRenyuanShangwang != ''"> and MES_S_renyuan_shangwang = #{mesSRenyuanShangwang}</if>
|
<if test="mesSJingjiSunshi != null and mesSJingjiSunshi != ''"> and MES_S_jingji_sunshi = #{mesSJingjiSunshi}</if>
|
<if test="mesSTinggong != null and mesSTinggong != ''"> and MES_S_tinggong = #{mesSTinggong}</if>
|
<if test="rsRKenengxing != null and rsRKenengxing != ''"> and RS_R_kenengxing = #{rsRKenengxing}</if>
|
<if test="rsRDingxing != null and rsRDingxing != ''"> and RS_R_dingxing = #{rsRDingxing}</if>
|
<if test="rsRDingliang != null and rsRDingliang != ''"> and RS_R_dingliang = #{rsRDingliang}</if>
|
<if test="rsSDengji != null and rsSDengji != ''"> and RS_S_dengji = #{rsSDengji}</if>
|
<if test="rsSRenyuan != null and rsSRenyuan != ''"> and RS_S_renyuan = #{rsSRenyuan}</if>
|
<if test="rsSCaichanSunshi != null and rsSCaichanSunshi != ''"> and RS_S_caichan_sunshi = #{rsSCaichanSunshi}</if>
|
<if test="rsSShehuiYingxiang != null and rsSShehuiYingxiang != ''"> and RS_S_shehui_yingxiang = #{rsSShehuiYingxiang}</if>
|
</where>
|
order by method_id ASC ,criterion_id ASC ,order_num ASC
|
</select>
|
|
<select id="selectCriterionDetailById" parameterType="Long" resultMap="CriterionDetailResult">
|
<include refid="selectCriterionDetailVo"/>
|
where detail_id = #{detailId}
|
</select>
|
|
<insert id="insertCriterionDetail" parameterType="CriterionDetail" useGeneratedKeys="true" keyProperty="detailId">
|
insert into tr_criterion_detail
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
<if test="createTime != null ">create_time,</if>
|
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
<if test="updateTime != null ">update_time,</if>
|
<if test="remark != null and remark != ''">remark,</if>
|
<if test="orderNum != null ">order_num,</if>
|
<if test="companyId != null ">company_id,</if>
|
<if test="methodId != null ">method_id,</if>
|
<if test="criterionId != null ">criterion_id,</if>
|
<if test="detailScore != null ">detail_score,</if>
|
<if test="lsLBiaozhun != null and lsLBiaozhun != ''">LS_L_biaozhun,</if>
|
<if test="lsSDengji != null and lsSDengji != ''">LS_S_dengji,</if>
|
<if test="lsSFalu != null and lsSFalu != ''">LS_S_falu,</if>
|
<if test="lsSRenyuan != null and lsSRenyuan != ''">LS_S_renyuan,</if>
|
<if test="lsSJingjiSunshi != null and lsSJingjiSunshi != ''">LS_S_jingji_sunshi,</if>
|
<if test="lsSTinggong != null and lsSTinggong != ''">LS_S_tinggong,</if>
|
<if test="lsSQiyeXingxiang != null and lsSQiyeXingxiang != ''">LS_S_qiye_xingxiang,</if>
|
<if test="lecLKenengxing != null and lecLKenengxing != ''">LEC_L_kenengxing,</if>
|
<if test="lecEBiaozhun != null and lecEBiaozhun != ''">LEC_E_biaozhun,</if>
|
<if test="lecCFalu != null and lecCFalu != ''">LEC_C_falu,</if>
|
<if test="lecCRenyuanShangwang != null and lecCRenyuanShangwang != ''">LEC_C_renyuan_shangwang,</if>
|
<if test="lecCJingjiSunshi != null and lecCJingjiSunshi != ''">LEC_C_jingji_sunshi,</if>
|
<if test="lecCTinggong != null and lecCTinggong != ''">LEC_C_tinggong,</if>
|
<if test="lecCGongsiXingxiang != null and lecCGongsiXingxiang != ''">LEC_C_gongsi_xingxiang,</if>
|
<if test="mesMBiaozhun != null and mesMBiaozhun != ''">MES_M_biaozhun,</if>
|
<if test="mesEE1 != null and mesEE1 != ''">MES_E_E1,</if>
|
<if test="mesEE2 != null and mesEE2 != ''">MES_E_E2,</if>
|
<if test="mesSFalu != null and mesSFalu != ''">MES_S_falu,</if>
|
<if test="mesSRenyuanShangwang != null and mesSRenyuanShangwang != ''">MES_S_renyuan_shangwang,</if>
|
<if test="mesSJingjiSunshi != null and mesSJingjiSunshi != ''">MES_S_jingji_sunshi,</if>
|
<if test="mesSTinggong != null and mesSTinggong != ''">MES_S_tinggong,</if>
|
<if test="rsRKenengxing != null and rsRKenengxing != ''">RS_R_kenengxing,</if>
|
<if test="rsRDingxing != null and rsRDingxing != ''">RS_R_dingxing,</if>
|
<if test="rsRDingliang != null and rsRDingliang != ''">RS_R_dingliang,</if>
|
<if test="rsSDengji != null and rsSDengji != ''">RS_S_dengji,</if>
|
<if test="rsSRenyuan != null and rsSRenyuan != ''">RS_S_renyuan,</if>
|
<if test="rsSCaichanSunshi != null and rsSCaichanSunshi != ''">RS_S_caichan_sunshi,</if>
|
<if test="rsSShehuiYingxiang != null and rsSShehuiYingxiang != ''">RS_S_shehui_yingxiang,</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
<if test="createTime != null ">#{createTime},</if>
|
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
<if test="updateTime != null ">#{updateTime},</if>
|
<if test="remark != null and remark != ''">#{remark},</if>
|
<if test="orderNum != null ">#{orderNum},</if>
|
<if test="companyId != null ">#{companyId},</if>
|
<if test="methodId != null ">#{methodId},</if>
|
<if test="criterionId != null ">#{criterionId},</if>
|
<if test="detailScore != null ">#{detailScore},</if>
|
<if test="lsLBiaozhun != null and lsLBiaozhun != ''">#{lsLBiaozhun},</if>
|
<if test="lsSDengji != null and lsSDengji != ''">#{lsSDengji},</if>
|
<if test="lsSFalu != null and lsSFalu != ''">#{lsSFalu},</if>
|
<if test="lsSRenyuan != null and lsSRenyuan != ''">#{lsSRenyuan},</if>
|
<if test="lsSJingjiSunshi != null and lsSJingjiSunshi != ''">#{lsSJingjiSunshi},</if>
|
<if test="lsSTinggong != null and lsSTinggong != ''">#{lsSTinggong},</if>
|
<if test="lsSQiyeXingxiang != null and lsSQiyeXingxiang != ''">#{lsSQiyeXingxiang},</if>
|
<if test="lecLKenengxing != null and lecLKenengxing != ''">#{lecLKenengxing},</if>
|
<if test="lecEBiaozhun != null and lecEBiaozhun != ''">#{lecEBiaozhun},</if>
|
<if test="lecCFalu != null and lecCFalu != ''">#{lecCFalu},</if>
|
<if test="lecCRenyuanShangwang != null and lecCRenyuanShangwang != ''">#{lecCRenyuanShangwang},</if>
|
<if test="lecCJingjiSunshi != null and lecCJingjiSunshi != ''">#{lecCJingjiSunshi},</if>
|
<if test="lecCTinggong != null and lecCTinggong != ''">#{lecCTinggong},</if>
|
<if test="lecCGongsiXingxiang != null and lecCGongsiXingxiang != ''">#{lecCGongsiXingxiang},</if>
|
<if test="mesMBiaozhun != null and mesMBiaozhun != ''">#{mesMBiaozhun},</if>
|
<if test="mesEE1 != null and mesEE1 != ''">#{mesEE1},</if>
|
<if test="mesEE2 != null and mesEE2 != ''">#{mesEE2},</if>
|
<if test="mesSFalu != null and mesSFalu != ''">#{mesSFalu},</if>
|
<if test="mesSRenyuanShangwang != null and mesSRenyuanShangwang != ''">#{mesSRenyuanShangwang},</if>
|
<if test="mesSJingjiSunshi != null and mesSJingjiSunshi != ''">#{mesSJingjiSunshi},</if>
|
<if test="mesSTinggong != null and mesSTinggong != ''">#{mesSTinggong},</if>
|
<if test="rsRKenengxing != null and rsRKenengxing != ''">#{rsRKenengxing},</if>
|
<if test="rsRDingxing != null and rsRDingxing != ''">#{rsRDingxing},</if>
|
<if test="rsRDingliang != null and rsRDingliang != ''">#{rsRDingliang},</if>
|
<if test="rsSDengji != null and rsSDengji != ''">#{rsSDengji},</if>
|
<if test="rsSRenyuan != null and rsSRenyuan != ''">#{rsSRenyuan},</if>
|
<if test="rsSCaichanSunshi != null and rsSCaichanSunshi != ''">#{rsSCaichanSunshi},</if>
|
<if test="rsSShehuiYingxiang != null and rsSShehuiYingxiang != ''">#{rsSShehuiYingxiang},</if>
|
</trim>
|
</insert>
|
|
<update id="updateCriterionDetail" parameterType="CriterionDetail">
|
update tr_criterion_detail
|
<trim prefix="SET" suffixOverrides=",">
|
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
<if test="createTime != null ">create_time = #{createTime},</if>
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
<if test="updateTime != null ">update_time = #{updateTime},</if>
|
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
<if test="orderNum != null ">order_num = #{orderNum},</if>
|
<if test="companyId != null ">company_id = #{companyId},</if>
|
<if test="methodId != null ">method_id = #{methodId},</if>
|
<if test="criterionId != null ">criterion_id = #{criterionId},</if>
|
<if test="detailScore != null ">detail_score = #{detailScore},</if>
|
<if test="lsLBiaozhun != null and lsLBiaozhun != ''">LS_L_biaozhun = #{lsLBiaozhun},</if>
|
<if test="lsSDengji != null and lsSDengji != ''">LS_S_dengji = #{lsSDengji},</if>
|
<if test="lsSFalu != null and lsSFalu != ''">LS_S_falu = #{lsSFalu},</if>
|
<if test="lsSRenyuan != null and lsSRenyuan != ''">LS_S_renyuan = #{lsSRenyuan},</if>
|
<if test="lsSJingjiSunshi != null and lsSJingjiSunshi != ''">LS_S_jingji_sunshi = #{lsSJingjiSunshi},</if>
|
<if test="lsSTinggong != null and lsSTinggong != ''">LS_S_tinggong = #{lsSTinggong},</if>
|
<if test="lsSQiyeXingxiang != null and lsSQiyeXingxiang != ''">LS_S_qiye_xingxiang = #{lsSQiyeXingxiang},</if>
|
<if test="lecLKenengxing != null and lecLKenengxing != ''">LEC_L_kenengxing = #{lecLKenengxing},</if>
|
<if test="lecEBiaozhun != null and lecEBiaozhun != ''">LEC_E_biaozhun = #{lecEBiaozhun},</if>
|
<if test="lecCFalu != null and lecCFalu != ''">LEC_C_falu = #{lecCFalu},</if>
|
<if test="lecCRenyuanShangwang != null and lecCRenyuanShangwang != ''">LEC_C_renyuan_shangwang = #{lecCRenyuanShangwang},</if>
|
<if test="lecCJingjiSunshi != null and lecCJingjiSunshi != ''">LEC_C_jingji_sunshi = #{lecCJingjiSunshi},</if>
|
<if test="lecCTinggong != null and lecCTinggong != ''">LEC_C_tinggong = #{lecCTinggong},</if>
|
<if test="lecCGongsiXingxiang != null and lecCGongsiXingxiang != ''">LEC_C_gongsi_xingxiang = #{lecCGongsiXingxiang},</if>
|
<if test="mesMBiaozhun != null and mesMBiaozhun != ''">MES_M_biaozhun = #{mesMBiaozhun},</if>
|
<if test="mesEE1 != null and mesEE1 != ''">MES_E_E1 = #{mesEE1},</if>
|
<if test="mesEE2 != null and mesEE2 != ''">MES_E_E2 = #{mesEE2},</if>
|
<if test="mesSFalu != null and mesSFalu != ''">MES_S_falu = #{mesSFalu},</if>
|
<if test="mesSRenyuanShangwang != null and mesSRenyuanShangwang != ''">MES_S_renyuan_shangwang = #{mesSRenyuanShangwang},</if>
|
<if test="mesSJingjiSunshi != null and mesSJingjiSunshi != ''">MES_S_jingji_sunshi = #{mesSJingjiSunshi},</if>
|
<if test="mesSTinggong != null and mesSTinggong != ''">MES_S_tinggong = #{mesSTinggong},</if>
|
<if test="rsRKenengxing != null and rsRKenengxing != ''">RS_R_kenengxing = #{rsRKenengxing},</if>
|
<if test="rsRDingxing != null and rsRDingxing != ''">RS_R_dingxing = #{rsRDingxing},</if>
|
<if test="rsRDingliang != null and rsRDingliang != ''">RS_R_dingliang = #{rsRDingliang},</if>
|
<if test="rsSDengji != null and rsSDengji != ''">RS_S_dengji = #{rsSDengji},</if>
|
<if test="rsSRenyuan != null and rsSRenyuan != ''">RS_S_renyuan = #{rsSRenyuan},</if>
|
<if test="rsSCaichanSunshi != null and rsSCaichanSunshi != ''">RS_S_caichan_sunshi = #{rsSCaichanSunshi},</if>
|
<if test="rsSShehuiYingxiang != null and rsSShehuiYingxiang != ''">RS_S_shehui_yingxiang = #{rsSShehuiYingxiang},</if>
|
</trim>
|
where detail_id = #{detailId}
|
</update>
|
|
<delete id="deleteCriterionDetailById" parameterType="Long">
|
delete from tr_criterion_detail where detail_id = #{detailId}
|
</delete>
|
|
<delete id="deleteCriterionDetailByIds" parameterType="String">
|
delete from tr_criterion_detail where detail_id in
|
<foreach item="detailId" collection="array" open="(" separator="," close=")">
|
#{detailId}
|
</foreach>
|
</delete>
|
|
</mapper>
|