|
@@ -0,0 +1,105 @@
|
|
|
|
|
+<?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.ydtech.modules.sendProject.dao.SendProjectMapper">
|
|
|
|
|
+
|
|
|
|
|
+ <resultMap id="SendProjectEntityMap" type="com.ydtech.modules.sendProject.entity.SendProjectEntity">
|
|
|
|
|
+ <result property="id" column="id"/>
|
|
|
|
|
+ <result property="httpPost" column="http_post"/>
|
|
|
|
|
+ <result property="totalAmount" column="total_amount"/>
|
|
|
|
|
+ <result property="userName" column="user_name" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result property="userCarNum" column="user_car_num" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result property="userPhone" column="user_phone" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result property="httpResponse" column="http_response"/>
|
|
|
|
|
+ <result property="sendState" column="send_state" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result property="sendUuid" column="send_uuid" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result property="failNum" column="fail_num"/>
|
|
|
|
|
+ <result property="state" column="state" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result property="isDelete" column="is_delete" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result property="createBy" column="create_by" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result property="createTime" column="create_time"/>
|
|
|
|
|
+ <result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result property="updateTime" column="update_time"/>
|
|
|
|
|
+ <result property="remark" column="remark" jdbcType="VARCHAR"/>
|
|
|
|
|
+ </resultMap>
|
|
|
|
|
+
|
|
|
|
|
+ <sql id="selectSendProjectEntity">
|
|
|
|
|
+ SELECT
|
|
|
|
|
+ id,
|
|
|
|
|
+ http_post,
|
|
|
|
|
+ total_amount,
|
|
|
|
|
+ user_name,
|
|
|
|
|
+ user_car_num,
|
|
|
|
|
+ user_phone,
|
|
|
|
|
+ http_response,
|
|
|
|
|
+ send_state,
|
|
|
|
|
+ send_uuid,
|
|
|
|
|
+ fail_num
|
|
|
|
|
+ FROM
|
|
|
|
|
+ send_project_history
|
|
|
|
|
+ </sql>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="getSendFailInfo" resultMap="SendProjectEntityMap">
|
|
|
|
|
+ <include refid="selectSendProjectEntity"/>
|
|
|
|
|
+ WHERE
|
|
|
|
|
+ send_state IN ('0', '9')
|
|
|
|
|
+ </select>
|
|
|
|
|
+
|
|
|
|
|
+ <insert id="addSendProjectInfo" parameterType="com.ydtech.modules.sendProject.entity.SendProjectEntity"
|
|
|
|
|
+ useGeneratedKeys="true" keyProperty="id">
|
|
|
|
|
+ INSERT INTO send_project_history
|
|
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
+ <if test="id != null">id,</if>
|
|
|
|
|
+ <if test="httpPost != null and httpPost != ''">http_post,</if>
|
|
|
|
|
+ <if test="totalAmount != null">total_amount,</if>
|
|
|
|
|
+ <if test="userName != null and userName != ''">user_name,</if>
|
|
|
|
|
+ <if test="userCarNum != null and userCarNum != ''">user_car_num,</if>
|
|
|
|
|
+ <if test="userPhone != null and userPhone != ''">user_phone,</if>
|
|
|
|
|
+ <if test="httpResponse != null and httpResponse != ''">http_response,</if>
|
|
|
|
|
+ <if test="sendState != null and sendState != ''">send_state,</if>
|
|
|
|
|
+ <if test="sendUuid != null and sendUuid != ''">send_uuid,</if>
|
|
|
|
|
+ <if test="failNum != null">fail_num,</if>
|
|
|
|
|
+ <if test="state != null and state != ''">state,</if>
|
|
|
|
|
+ <if test="isDelete != null and isDelete != ''">is_delete,</if>
|
|
|
|
|
+ <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>
|
|
|
|
|
+ </trim>
|
|
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
+ <if test="id != null">#{id},</if>
|
|
|
|
|
+ <if test="httpPost != null and httpPost != ''">#{httpPost},</if>
|
|
|
|
|
+ <if test="totalAmount != null">#{totalAmount},</if>
|
|
|
|
|
+ <if test="userName != null and userName != ''">#{userName},</if>
|
|
|
|
|
+ <if test="userCarNum != null and userCarNum != ''">#{userCarNum},</if>
|
|
|
|
|
+ <if test="userPhone != null and userPhone != ''">#{userPhone},</if>
|
|
|
|
|
+ <if test="httpResponse != null and httpResponse != ''">#{httpResponse},</if>
|
|
|
|
|
+ <if test="sendState != null and sendState != ''">#{sendState},</if>
|
|
|
|
|
+ <if test="sendUuid != null and sendUuid != ''">#{sendUuid},</if>
|
|
|
|
|
+ <if test="failNum != null">#{failNum},</if>
|
|
|
|
|
+ <if test="state != null and state != ''">#{state},</if>
|
|
|
|
|
+ <if test="isDelete != null and isDelete != ''">#{isDelete},</if>
|
|
|
|
|
+ <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>
|
|
|
|
|
+ </trim>
|
|
|
|
|
+ </insert>
|
|
|
|
|
+
|
|
|
|
|
+ <update id="updateSendProjectInfo" parameterType="com.ydtech.modules.sendProject.entity.SendProjectEntity">
|
|
|
|
|
+ UPDATE send_project_history
|
|
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
+ <if test="sendState != null and sendState != ''">send_state = #{sendState},</if>
|
|
|
|
|
+ <if test="httpPost != null and httpPost != ''">http_post = #{httpPost},</if>
|
|
|
|
|
+ <if test="httpResponse != null and httpResponse != ''">http_response = #{httpResponse},</if>
|
|
|
|
|
+ <if test="failNum != null">fail_num = #{failNum},</if>
|
|
|
|
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
|
+ </trim>
|
|
|
|
|
+ WHERE
|
|
|
|
|
+ send_uuid = #{sendUuid}
|
|
|
|
|
+ </update>
|
|
|
|
|
+
|
|
|
|
|
+</mapper>
|