<?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.gkhy.exam.system.mapper.StandardizedQualityMapper">
|
<update id="updateStandardizedQualityById" parameterType="com.gkhy.exam.system.domain.StandardizedQuality">
|
UPDATE standardized_quality
|
<set>
|
<if test="companyId != null and companyId != ''" >
|
company_id = #{companyId},
|
</if>
|
<if test="companyName != null and companyName != ''" >
|
company_name = #{companyName},
|
</if>
|
<if test="qualityName != null and qualityName !=''" >
|
quality_name = #{qualityName},
|
</if>
|
<if test="filePath != null and filePath !=''" >
|
file_path = #{filePath},
|
</if>
|
<if test="format != null and format !=''" >
|
format = #{format},
|
</if>
|
<if test="delFlag != null and delFlag != ''" >
|
del_flag = #{delFlag},
|
</if>
|
<if test="createBy != null" >
|
create_by = #{createBy},
|
</if>
|
<if test="createTime != null" >
|
create_time = #{createTime},
|
</if>
|
<if test="updateBy != null" >
|
update_by = #{updateBy},
|
</if>
|
<if test="updateTime != null" >
|
update_time = #{updateTime}
|
</if>
|
</set>
|
where id = #{id}
|
</update>
|
|
<select id="selectStandardizedQualityList" resultType="com.gkhy.exam.system.domain.StandardizedQuality">
|
SELECT
|
`id`,
|
`company_id`,
|
`company_name`,
|
`quality_name`,
|
`file_path`,
|
`format`,
|
`del_flag`,
|
`create_by`,
|
`create_time`,
|
`update_by`,
|
`update_time`
|
FROM
|
standardized_quality
|
WHERE
|
del_flag = 0
|
|
<if test="companyId!=null and companyId!=''">
|
and company_id = #{companyId}
|
</if>
|
ORDER BY
|
create_time DESC
|
</select>
|
</mapper>
|