|
|
@@ -0,0 +1,91 @@
|
|
|
+<?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.xintong.visualinspection.visuallnspection_qzd.dao.QzdRecordDao">
|
|
|
+ <!--private Integer id;-->
|
|
|
+ <!--private Date creat_time;-->
|
|
|
+ <!--private Integer type;-->
|
|
|
+ <!--private String users;-->
|
|
|
+ <!--private Integer dept;-->
|
|
|
+ <!--private String addr;-->
|
|
|
+ <!--private Date received_time;-->
|
|
|
+ <!--private String car_info;-->
|
|
|
+ <!--private String car_user_info;-->
|
|
|
+ <!--private Date start_time;-->
|
|
|
+ <!--private Date arrive_time;-->
|
|
|
+ <!--private Date back_time;-->
|
|
|
+ <!--private Integer record_user;-->
|
|
|
+ <!--private Integer arrive_in_time;-->
|
|
|
+ <!--private Integer unimpeded_in_time;-->
|
|
|
+ <!--private Integer car_user_satisfaction;-->
|
|
|
+ <!--private String videos;-->
|
|
|
+ <!--private String pics;-->
|
|
|
+ <!--private Integer zxt_is_standard;-->
|
|
|
+ <!--private Integer is_explain;-->
|
|
|
+ <!--private Integer record_no_come;-->
|
|
|
+ <!--private Integer take_photo_upload;-->
|
|
|
+ <!--private Integer arrive_do_work;-->
|
|
|
+ <!--private String remarks;-->
|
|
|
+
|
|
|
+ <insert id="addRecord" useGeneratedKeys="true" keyProperty="id"
|
|
|
+ parameterType="com.xintong.visualinspection.bean.QzdRecord">
|
|
|
+ INSERT INTO record_info
|
|
|
+ (type,users,dept,addr,received_time,car_info,car_user_info,start_time,arrive_time,back_time,record_user,arrive_in_time,unimpeded_in_time,car_user_satisfaction,videos
|
|
|
+ ,pics,zxt_is_standard,is_explain,record_no_come,take_photo_upload,arrive_do_work,remarks)
|
|
|
+ VALUES
|
|
|
+ (#{type},#{users},#{dept},#{addr},#{received_time},#{car_info},#{car_user_info},#{start_time},#{arrive_time},#{back_time},#{record_user},#{arrive_in_time},#{unimpeded_in_time},#{car_user_satisfaction},#{videos}
|
|
|
+ ,#{pics},#{zxt_is_standard},#{is_explain},#{record_no_come},#{take_photo_upload},#{arrive_do_work},#{remarks}
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updateRecord" parameterType="com.xintong.visualinspection.bean.QzdRecord">
|
|
|
+ update
|
|
|
+ record_info
|
|
|
+ set
|
|
|
+ <if test="type != null">type = #{type}</if>
|
|
|
+ <if test="users != null">type = #{users}</if>
|
|
|
+ <if test="dept != null">type = #{dept}</if>
|
|
|
+ <if test="addr != null">type = #{addr}</if>
|
|
|
+ <if test="received_time != null">type = #{received_time}</if>
|
|
|
+ <if test="car_info != null">type = #{car_info}</if>
|
|
|
+ <if test="car_user_info != null">type = #{car_user_info}</if>
|
|
|
+ <if test="start_time != null">type = #{start_time}</if>
|
|
|
+ <if test="arrive_time != null">type = #{arrive_time}</if>
|
|
|
+ <if test="back_time != null">type = #{back_time}</if>
|
|
|
+ <if test="record_user != null">type = #{record_user}</if>
|
|
|
+ <if test="arrive_in_time != null">type = #{arrive_in_time}</if>
|
|
|
+ <if test="unimpeded_in_time != null">type = #{unimpeded_in_time}</if>
|
|
|
+ <if test="car_user_satisfaction != null">type = #{car_user_satisfaction}</if>
|
|
|
+ <if test="videos != null">type = #{videos}</if>
|
|
|
+ <if test="pics != null">type = #{pics}</if>
|
|
|
+ <if test="zxt_is_standard != null">type = #{zxt_is_standard}</if>
|
|
|
+ <if test="is_explain != null">type = #{is_explain}</if>
|
|
|
+ <if test="record_no_come != null">type = #{record_no_come}</if>
|
|
|
+ <if test="take_photo_upload != null">type = #{take_photo_upload}</if>
|
|
|
+ <if test="arrive_do_work != null">type = #{arrive_do_work}</if>
|
|
|
+ <if test="remarks != null">type = #{remarks}</if>
|
|
|
+ id=#{id}
|
|
|
+ WHERE
|
|
|
+ id = #{id}
|
|
|
+
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="getone" parameterType="com.xintong.visualinspection.bean.QzdRecord"
|
|
|
+ resultType="com.xintong.visualinspection.bean.QzdRecord">
|
|
|
+ select * from record_info where id = #{id}
|
|
|
+ ORDER BY received_time DESC
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getall" parameterType="com.xintong.visualinspection.bean.FwqCheckTask"
|
|
|
+ resultType="com.xintong.visualinspection.bean.FwqCheckTask">
|
|
|
+ select t.*
|
|
|
+ from record_info t
|
|
|
+ where 1=1
|
|
|
+
|
|
|
+ ORDER BY t.received_time DESC
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
+</mapper>
|
|
|
+
|
|
|
+
|