luobang 2 年之前
父節點
當前提交
ccedee7758

+ 3 - 3
pom.xml

@@ -157,13 +157,13 @@
                 <version>3.0</version>
                 <configuration>
                     <connUrl>jdbc:oracle:thin:@172.16.33.163:1521:ilsdbpri</connUrl>
-                    <user>dagang</user>
-                    <password>root123</password>
+                    <user>dil</user>
+                    <password>Dil123789</password>
                     <!--包名-->
                     <targetPackage>com.steerinfo.dil</targetPackage>
                     <tables>
 <!--                        <param>MEASURE_JSON_DATA</param>-->
-                        <param>TMSTRUCK_UNLOAD_RESULT</param>
+                        <param>TMSTRUCK_TOTAL_RESULT</param>
                     </tables>
                 </configuration>
                 <executions>

+ 94 - 4
src/main/java/com/steerinfo/dil/model/TmstruckTotalResult.java

@@ -10,13 +10,13 @@ import java.util.Date;
 @ApiModel(value="实绩总表")
 public class TmstruckTotalResult implements IBasePO<BigDecimal> {
     /**
-     * 主键ID(RESULT_TOTAL_ID,DECIMAL,38)
+     * 主键ID(RESULT_TOTAL_ID,DECIMAL,0)
      */
     @ApiModelProperty(value="主键ID",required=true)
     private BigDecimal resultTotalId;
 
     /**
-     * 订单ID(ORDER_ID,DECIMAL,38)
+     * 订单ID(ORDER_ID,DECIMAL,0)
      */
     @ApiModelProperty(value="订单ID",required=false)
     private BigDecimal orderId;
@@ -28,9 +28,9 @@ public class TmstruckTotalResult implements IBasePO<BigDecimal> {
     private BigDecimal resultDuration;
 
     /**
-     * 运输标准时长(STANDARD_DATA_ID,DECIMAL,38)
+     * 运输标准时长(STANDARD_DATA_ID,DECIMAL,0)
      */
-    @ApiModelProperty(value="运输标准时长",required=true)
+    @ApiModelProperty(value="运输标准时长",required=false)
     private BigDecimal standardDataId;
 
     /**
@@ -69,6 +69,42 @@ public class TmstruckTotalResult implements IBasePO<BigDecimal> {
     @ApiModelProperty(value="记录创建或修改备注",required=false)
     private String insertUpdateRemark;
 
+    /**
+     * 进厂时间(ENFACTORY_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="进厂时间",required=false)
+    private Date enfactoryTime;
+
+    /**
+     * 出厂时间(OUTFACTORY_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="出厂时间",required=false)
+    private Date outfactoryTime;
+
+    /**
+     * 短信发送状态(SMS_STATUS,VARCHAR,255)
+     */
+    @ApiModelProperty(value="短信发送状态",required=false)
+    private String smsStatus;
+
+    /**
+     * 运单状态(ORDER_STATUS,VARCHAR,255)
+     */
+    @ApiModelProperty(value="运单状态",required=false)
+    private String orderStatus;
+
+    /**
+     * 排队开始时间(QUEUE_START_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="排队开始时间",required=false)
+    private Date queueStartTime;
+
+    /**
+     * 钢材科放行时间(QUEUE_ALLOW_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="钢材科放行时间",required=false)
+    private Date queueAllowTime;
+
     private static final long serialVersionUID = 1L;
 
     @Override
@@ -161,6 +197,54 @@ public class TmstruckTotalResult implements IBasePO<BigDecimal> {
         this.insertUpdateRemark = insertUpdateRemark == null ? null : insertUpdateRemark.trim();
     }
 
+    public Date getEnfactoryTime() {
+        return enfactoryTime;
+    }
+
+    public void setEnfactoryTime(Date enfactoryTime) {
+        this.enfactoryTime = enfactoryTime;
+    }
+
+    public Date getOutfactoryTime() {
+        return outfactoryTime;
+    }
+
+    public void setOutfactoryTime(Date outfactoryTime) {
+        this.outfactoryTime = outfactoryTime;
+    }
+
+    public String getSmsStatus() {
+        return smsStatus;
+    }
+
+    public void setSmsStatus(String smsStatus) {
+        this.smsStatus = smsStatus == null ? null : smsStatus.trim();
+    }
+
+    public String getOrderStatus() {
+        return orderStatus;
+    }
+
+    public void setOrderStatus(String orderStatus) {
+        this.orderStatus = orderStatus == null ? null : orderStatus.trim();
+    }
+
+    public Date getQueueStartTime() {
+        return queueStartTime;
+    }
+
+    public void setQueueStartTime(Date queueStartTime) {
+        this.queueStartTime = queueStartTime;
+    }
+
+    public Date getQueueAllowTime() {
+        return queueAllowTime;
+    }
+
+    public void setQueueAllowTime(Date queueAllowTime) {
+        this.queueAllowTime = queueAllowTime;
+    }
+
     @Override
     public String toString() {
         StringBuilder sb = new StringBuilder();
@@ -177,6 +261,12 @@ public class TmstruckTotalResult implements IBasePO<BigDecimal> {
         sb.append(", updateUsername=").append(updateUsername);
         sb.append(", updateTime=").append(updateTime);
         sb.append(", insertUpdateRemark=").append(insertUpdateRemark);
+        sb.append(", enfactoryTime=").append(enfactoryTime);
+        sb.append(", outfactoryTime=").append(outfactoryTime);
+        sb.append(", smsStatus=").append(smsStatus);
+        sb.append(", orderStatus=").append(orderStatus);
+        sb.append(", queueStartTime=").append(queueStartTime);
+        sb.append(", queueAllowTime=").append(queueAllowTime);
         sb.append(", serialVersionUID=").append(serialVersionUID);
         sb.append("]");
         return sb.toString();

+ 1 - 0
src/main/java/com/steerinfo/dil/service/impl/TmstruckTotalResultServiceImpl.java

@@ -77,6 +77,7 @@ public class TmstruckTotalResultServiceImpl implements ITmstruckTotalResultServi
         tmstruckTotalResult.setOrderId(orderId);
         tmstruckTotalResult.setInsertTime(new Date());
         tmstruckTotalResult.setInsertUsername("admin");
+        tmstruckTotalResult.setOrderStatus("已派单");
         tmstruckTotalResultMapper.insertSelective(tmstruckTotalResult);
         return maxId.intValue();
 

+ 7 - 6
src/main/resources/com/steerinfo/dil/mapper/StatisticalReportMapper.xml

@@ -2029,7 +2029,7 @@
                     (CASE WHEN
                         TLFR.RESULT_OUT_GATE_TIME IS NULL
                         then null
-                        WHEN TSR.RESULT_ID is null
+                        WHEN TTR.SMS_STATUS is null
                         then '未发送'
                         else  '已发送'
                         END) "smsResultId",
@@ -2123,8 +2123,6 @@
                               ON TAR.RESULT_TOTAL_ID = TTR.RESULT_TOTAL_ID
                     LEFT JOIN TMStRUCK_RECEIPT_RESULT TRR
                               ON TTR.RESULT_TOTAL_ID = TRR.RESULT_TOTAL_ID
-                    LEFT JOIN TMSTRUCK_SMS_RUSULT TSR
-                              ON TSR.TOTAL_RESULT_ID = TTR.RESULT_TOTAL_ID
                     WHERE
                     ASM.SALE_MATERIAL_ID IS NOT NULL
                     <if test="carrierSsoId != null">
@@ -2351,9 +2349,12 @@
             then ASM.MATERIAL_NUMBER
             end "materialNum",
         (CASE WHEN
-            ASM.IS_POUND_SALE = 0
+            ASM.SALE_MAKE_DATE IS NULL
+            THEN null
+            WHEN  ASM.IS_POUND_SALE = 0
             THEN TWR.RESULT_NET_WEIGHT
-            ELSE ASM.MATERIAL_WEIGHT
+            WHEN ASM.IS_POUND_SALE = 1
+            THEN ASM.MATERIAL_WEIGHT
             END) "materialAcWeight",
         ASM.EAS_PRIMARY_ID "closeEntryId",
         ASM.DELETED "deletedStatus",
@@ -2501,7 +2502,7 @@
         LEFT JOIN TMStRUCK_RECEIPT_RESULT TRR
         ON TTR.RESULT_TOTAL_ID = TRR.RESULT_TOTAL_ID
         WHERE ASO.SALE_TYPE = 1
-        and (aso.DELETED = 1 and aso.SALE_ORDER_STATUS = 4 or aso.DELETED != 1 and aso.SALE_ORDER_STATUS between 0 and 4)
+        and (aso.DELETED between 1 and 2 and aso.SALE_ORDER_STATUS = 4 or aso.DELETED = 0 and aso.SALE_ORDER_STATUS between 0 and 4)
         and ASM.SALE_MATERIAL_ID IS NOT NULL
         and (BDO.WETHER_TO_STATEMENT IS NULL or BDO.WETHER_TO_STATEMENT != 1)
         <if test="oneDate != null">

+ 493 - 336
src/main/resources/com/steerinfo/dil/mapper/TmstruckTotalResultMapper.xml

@@ -1,343 +1,500 @@
 <?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.steerinfo.dil.mapper.TmstruckTotalResultMapper">
-  <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.TmstruckTotalResult">
-    <id column="RESULT_TOTAL_ID" jdbcType="DECIMAL" property="resultTotalId" />
-    <result column="ORDER_ID" jdbcType="DECIMAL" property="orderId" />
-    <result column="RESULT_DURATION" jdbcType="DECIMAL" property="resultDuration" />
-    <result column="STANDARD_DATA_ID" jdbcType="DECIMAL" property="standardDataId" />
-    <result column="RESULT_OUTLIER" jdbcType="DECIMAL" property="resultOutlier" />
-    <result column="INSERT_USERNAME" jdbcType="VARCHAR" property="insertUsername" />
-    <result column="INSERT_TIME" jdbcType="TIMESTAMP" property="insertTime" />
-    <result column="UPDATE_USERNAME" jdbcType="VARCHAR" property="updateUsername" />
-    <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
-    <result column="INSERT_UPDATE_REMARK" jdbcType="VARCHAR" property="insertUpdateRemark" />
-  </resultMap>
-  <sql id="columns">
-    RESULT_TOTAL_ID, ORDER_ID, RESULT_DURATION, STANDARD_DATA_ID, RESULT_OUTLIER, INSERT_USERNAME,
-    INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK
-  </sql>
-  <sql id="columns_alias">
-    t.RESULT_TOTAL_ID, t.ORDER_ID, t.RESULT_DURATION, t.STANDARD_DATA_ID, t.RESULT_OUTLIER,
-    t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK
-  </sql>
-  <sql id="select">
-    SELECT <include refid="columns" /> FROM TMSTRUCK_TOTAL_RESULT
-  </sql>
-  <sql id="select_alias">
-    SELECT <include refid="columns_alias" /> FROM TMSTRUCK_TOTAL_RESULT t
-  </sql>
-  <sql id="where">
-    <where>
-      <if test="resultTotalId != null">
-        and RESULT_TOTAL_ID = #{resultTotalId}
-      </if>
-      <if test="orderId != null">
-        and ORDER_ID = #{orderId}
-      </if>
-      <if test="resultDuration != null">
-        and RESULT_DURATION = #{resultDuration}
-      </if>
-      <if test="standardDataId != null">
-        and STANDARD_DATA_ID = #{standardDataId}
-      </if>
-      <if test="resultOutlier != null">
-        and RESULT_OUTLIER = #{resultOutlier}
-      </if>
-      <if test="insertUsername != null and insertUsername != ''">
-        and INSERT_USERNAME = #{insertUsername}
-      </if>
-      <if test="insertTime != null">
-        and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
-      </if>
-      <if test="updateUsername != null and updateUsername != ''">
-        and UPDATE_USERNAME = #{updateUsername}
-      </if>
-      <if test="updateTime != null">
-        and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
-      </if>
-      <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
-        and INSERT_UPDATE_REMARK = #{insertUpdateRemark}
-      </if>
-    </where>
-  </sql>
-  <sql id="whereLike">
-    <where>
-      <if test="resultTotalId != null">
-        and RESULT_TOTAL_ID = #{resultTotalId}
-      </if>
-      <if test="orderId != null">
-        and ORDER_ID = #{orderId}
-      </if>
-      <if test="resultDuration != null">
-        and RESULT_DURATION = #{resultDuration}
-      </if>
-      <if test="standardDataId != null">
-        and STANDARD_DATA_ID = #{standardDataId}
-      </if>
-      <if test="resultOutlier != null">
-        and RESULT_OUTLIER = #{resultOutlier}
-      </if>
-      <if test="insertUsername != null and insertUsername != ''">
-        and INSERT_USERNAME LIKE '%${insertUsername}%'
-      </if>
-      <if test="insertTime != null">
-        and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
-      </if>
-      <if test="updateUsername != null and updateUsername != ''">
-        and UPDATE_USERNAME LIKE '%${updateUsername}%'
-      </if>
-      <if test="updateTime != null">
-        and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
-      </if>
-      <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
-        and INSERT_UPDATE_REMARK LIKE '%${insertUpdateRemark}%'
-      </if>
-    </where>
-  </sql>
-  <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
-    delete from TMSTRUCK_TOTAL_RESULT
-    where RESULT_TOTAL_ID = #{resultTotalId,jdbcType=DECIMAL}
-  </delete>
-  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
-    delete from TMSTRUCK_TOTAL_RESULT
-    where 1!=1
-      <if test="orderId != null">
-        or ORDER_ID = #{orderId}
-      </if>
-      <if test="resultDuration != null">
-        or RESULT_DURATION = #{resultDuration}
-      </if>
-      <if test="standardDataId != null">
-        or STANDARD_DATA_ID = #{standardDataId}
-      </if>
-      <if test="resultOutlier != null">
-        or RESULT_OUTLIER = #{resultOutlier}
-      </if>
-      <if test="insertUsername != null and insertUsername != ''">
-        or INSERT_USERNAME = #{insertUsername}
-      </if>
-      <if test="insertTime != null">
-        or TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = '#{insertTime}'
-      </if>
-      <if test="updateUsername != null and updateUsername != ''">
-        or UPDATE_USERNAME = #{updateUsername}
-      </if>
-      <if test="updateTime != null">
-        or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
-      </if>
-      <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
-        or INSERT_UPDATE_REMARK = #{insertUpdateRemark}
-      </if>
-  </delete>
-  <insert id="insert" parameterType="com.steerinfo.dil.model.TmstruckTotalResult">
-    insert into TMSTRUCK_TOTAL_RESULT (RESULT_TOTAL_ID, ORDER_ID, RESULT_DURATION,
-      STANDARD_DATA_ID, RESULT_OUTLIER, INSERT_USERNAME,
-      INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
-      INSERT_UPDATE_REMARK)
-    values (#{resultTotalId,jdbcType=DECIMAL}, #{orderId,jdbcType=DECIMAL}, #{resultDuration,jdbcType=DECIMAL},
-      #{standardDataId,jdbcType=DECIMAL}, #{resultOutlier,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR},
-      #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
-      #{insertUpdateRemark,jdbcType=VARCHAR})
-  </insert>
-  <insert id="insertSelective" parameterType="com.steerinfo.dil.model.TmstruckTotalResult">
-    insert into TMSTRUCK_TOTAL_RESULT
-    <trim prefix="(" suffix=")" suffixOverrides=",">
-      <if test="resultTotalId != null">
-        RESULT_TOTAL_ID,
-      </if>
-      <if test="orderId != null">
-        ORDER_ID,
-      </if>
-      <if test="resultDuration != null">
-        RESULT_DURATION,
-      </if>
-      <if test="standardDataId != null">
-        STANDARD_DATA_ID,
-      </if>
-      <if test="resultOutlier != null">
-        RESULT_OUTLIER,
-      </if>
-      <if test="insertUsername != null">
-        INSERT_USERNAME,
-      </if>
-      <if test="insertTime != null">
-        INSERT_TIME,
-      </if>
-      <if test="updateUsername != null">
-        UPDATE_USERNAME,
-      </if>
-      <if test="updateTime != null">
-        UPDATE_TIME,
-      </if>
-      <if test="insertUpdateRemark != null">
-        INSERT_UPDATE_REMARK,
-      </if>
-    </trim>
-    <trim prefix="values (" suffix=")" suffixOverrides=",">
-      <if test="resultTotalId != null">
-        #{resultTotalId,jdbcType=DECIMAL},
-      </if>
-      <if test="orderId != null">
-        #{orderId,jdbcType=DECIMAL},
-      </if>
-      <if test="resultDuration != null">
-        #{resultDuration,jdbcType=DECIMAL},
-      </if>
-      <if test="standardDataId != null">
-        #{standardDataId,jdbcType=DECIMAL},
-      </if>
-      <if test="resultOutlier != null">
-        #{resultOutlier,jdbcType=DECIMAL},
-      </if>
-      <if test="insertUsername != null">
-        #{insertUsername,jdbcType=VARCHAR},
-      </if>
-      <if test="insertTime != null">
-        #{insertTime,jdbcType=TIMESTAMP},
-      </if>
-      <if test="updateUsername != null">
-        #{updateUsername,jdbcType=VARCHAR},
-      </if>
-      <if test="updateTime != null">
-        #{updateTime,jdbcType=TIMESTAMP},
-      </if>
-      <if test="insertUpdateRemark != null">
-        #{insertUpdateRemark,jdbcType=VARCHAR},
-      </if>
-    </trim>
-  </insert>
-  <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.TmstruckTotalResult">
-    update TMSTRUCK_TOTAL_RESULT
-    set ORDER_ID = #{orderId,jdbcType=DECIMAL},
-      RESULT_DURATION = #{resultDuration,jdbcType=DECIMAL},
-      STANDARD_DATA_ID = #{standardDataId,jdbcType=DECIMAL},
-      RESULT_OUTLIER = #{resultOutlier,jdbcType=DECIMAL},
-      INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
-      INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
-      UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
-      UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
-      INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR}
-    where RESULT_TOTAL_ID = #{resultTotalId,jdbcType=DECIMAL}
-  </update>
-  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.TmstruckTotalResult">
-    update TMSTRUCK_TOTAL_RESULT
-    <set>
-      <if test="orderId != null">
-        ORDER_ID = #{orderId,jdbcType=DECIMAL},
-      </if>
-      <if test="resultDuration != null">
-        RESULT_DURATION = #{resultDuration,jdbcType=DECIMAL},
-      </if>
-      <if test="standardDataId != null">
-        STANDARD_DATA_ID = #{standardDataId,jdbcType=DECIMAL},
-      </if>
-      <if test="resultOutlier != null">
-        RESULT_OUTLIER = #{resultOutlier,jdbcType=DECIMAL},
-      </if>
-      <if test="insertUsername != null">
-        INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
-      </if>
-      <if test="insertTime != null">
-        INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
-      </if>
-      <if test="updateUsername != null">
-        UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
-      </if>
-      <if test="updateTime != null">
-        UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
-      </if>
-      <if test="insertUpdateRemark != null">
-        INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
-      </if>
-    </set>
-    where RESULT_TOTAL_ID = #{resultTotalId,jdbcType=DECIMAL}
-  </update>
-  <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
-    <include refid="select" />
-    where RESULT_TOTAL_ID = #{resultTotalId,jdbcType=DECIMAL}
-  </select>
-  <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
-    <include refid="select" />
-    <include refid="where" />
-  </select>
-  <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
-    <include refid="select" />
-    <include refid="whereLike" />
-  </select>
-  <insert id="batchInsert" parameterType="java.util.List">
-    insert into TMSTRUCK_TOTAL_RESULT
-      (RESULT_TOTAL_ID,
-      ORDER_ID, RESULT_DURATION, STANDARD_DATA_ID,
-      RESULT_OUTLIER, INSERT_USERNAME,
-      INSERT_TIME, UPDATE_USERNAME,
-      UPDATE_TIME, INSERT_UPDATE_REMARK
-      )
-    ( <foreach collection="list" item="item" separator="union all">
-   select
-      #{item.resultTotalId,jdbcType=DECIMAL},
-      #{item.orderId,jdbcType=DECIMAL}, #{item.resultDuration,jdbcType=DECIMAL}, #{item.standardDataId,jdbcType=DECIMAL},
-      #{item.resultOutlier,jdbcType=DECIMAL}, #{item.insertUsername,jdbcType=VARCHAR},
-      #{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
-      #{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR}
-       from dual
-   </foreach> )
-  </insert>
-  <update id="batchUpdate" parameterType="java.util.List">
-     update TMSTRUCK_TOTAL_RESULT
-     set
-       RESULT_TOTAL_ID=
-       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_TOTAL_ID" separator=" ">
-          when #{item.resultTotalId,jdbcType=DECIMAL} then #{item.resultTotalId,jdbcType=DECIMAL}
-       </foreach>
-       ,ORDER_ID=
-       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_TOTAL_ID" separator=" ">
-          when #{item.resultTotalId,jdbcType=DECIMAL} then #{item.orderId,jdbcType=DECIMAL}
-       </foreach>
-       ,RESULT_DURATION=
-       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_TOTAL_ID" separator=" ">
-          when #{item.resultTotalId,jdbcType=DECIMAL} then #{item.resultDuration,jdbcType=DECIMAL}
-       </foreach>
-       ,STANDARD_DATA_ID=
-       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_TOTAL_ID" separator=" ">
-          when #{item.resultTotalId,jdbcType=DECIMAL} then #{item.standardDataId,jdbcType=DECIMAL}
-       </foreach>
-       ,RESULT_OUTLIER=
-       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_TOTAL_ID" separator=" ">
-          when #{item.resultTotalId,jdbcType=DECIMAL} then #{item.resultOutlier,jdbcType=DECIMAL}
-       </foreach>
-       ,INSERT_USERNAME=
-       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_TOTAL_ID" separator=" ">
-          when #{item.resultTotalId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
-       </foreach>
-       ,INSERT_TIME=
-       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_TOTAL_ID" separator=" ">
-          when #{item.resultTotalId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
-       </foreach>
-       ,UPDATE_USERNAME=
-       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_TOTAL_ID" separator=" ">
-          when #{item.resultTotalId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
-       </foreach>
-       ,UPDATE_TIME=
-       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_TOTAL_ID" separator=" ">
-          when #{item.resultTotalId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
-       </foreach>
-       ,INSERT_UPDATE_REMARK=
-       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_TOTAL_ID" separator=" ">
-          when #{item.resultTotalId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
-       </foreach>
-     where RESULT_TOTAL_ID in
-     <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
-    #{item.resultTotalId,jdbcType=DECIMAL}
-     </foreach>
-  </update>
+    <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.TmstruckTotalResult">
+        <id column="RESULT_TOTAL_ID" jdbcType="DECIMAL" property="resultTotalId" />
+        <result column="ORDER_ID" jdbcType="DECIMAL" property="orderId" />
+        <result column="RESULT_DURATION" jdbcType="DECIMAL" property="resultDuration" />
+        <result column="STANDARD_DATA_ID" jdbcType="DECIMAL" property="standardDataId" />
+        <result column="RESULT_OUTLIER" jdbcType="DECIMAL" property="resultOutlier" />
+        <result column="INSERT_USERNAME" jdbcType="VARCHAR" property="insertUsername" />
+        <result column="INSERT_TIME" jdbcType="TIMESTAMP" property="insertTime" />
+        <result column="UPDATE_USERNAME" jdbcType="VARCHAR" property="updateUsername" />
+        <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
+        <result column="INSERT_UPDATE_REMARK" jdbcType="VARCHAR" property="insertUpdateRemark" />
+        <result column="ENFACTORY_TIME" jdbcType="TIMESTAMP" property="enfactoryTime" />
+        <result column="OUTFACTORY_TIME" jdbcType="TIMESTAMP" property="outfactoryTime" />
+        <result column="SMS_STATUS" jdbcType="VARCHAR" property="smsStatus" />
+        <result column="ORDER_STATUS" jdbcType="VARCHAR" property="orderStatus" />
+        <result column="QUEUE_START_TIME" jdbcType="TIMESTAMP" property="queueStartTime" />
+        <result column="QUEUE_ALLOW_TIME" jdbcType="TIMESTAMP" property="queueAllowTime" />
+    </resultMap>
+    <sql id="columns">
+        RESULT_TOTAL_ID, ORDER_ID, RESULT_DURATION, STANDARD_DATA_ID, RESULT_OUTLIER, INSERT_USERNAME,
+    INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, ENFACTORY_TIME,
+    OUTFACTORY_TIME, SMS_STATUS, ORDER_STATUS, QUEUE_START_TIME, QUEUE_ALLOW_TIME
+    </sql>
+    <sql id="columns_alias">
+        t.RESULT_TOTAL_ID, t.ORDER_ID, t.RESULT_DURATION, t.STANDARD_DATA_ID, t.RESULT_OUTLIER,
+    t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK,
+    t.ENFACTORY_TIME, t.OUTFACTORY_TIME, t.SMS_STATUS, t.ORDER_STATUS, t.QUEUE_START_TIME,
+    t.QUEUE_ALLOW_TIME
+    </sql>
+    <sql id="select">
+        SELECT <include refid="columns" /> FROM TMSTRUCK_TOTAL_RESULT
+    </sql>
+    <sql id="select_alias">
+        SELECT <include refid="columns_alias" /> FROM TMSTRUCK_TOTAL_RESULT t
+    </sql>
+    <sql id="where">
+        <where>
+            <if test="resultTotalId != null">
+                and RESULT_TOTAL_ID = #{resultTotalId}
+            </if>
+            <if test="orderId != null">
+                and ORDER_ID = #{orderId}
+            </if>
+            <if test="resultDuration != null">
+                and RESULT_DURATION = #{resultDuration}
+            </if>
+            <if test="standardDataId != null">
+                and STANDARD_DATA_ID = #{standardDataId}
+            </if>
+            <if test="resultOutlier != null">
+                and RESULT_OUTLIER = #{resultOutlier}
+            </if>
+            <if test="insertUsername != null and insertUsername != ''">
+                and INSERT_USERNAME = #{insertUsername}
+            </if>
+            <if test="insertTime != null">
+                and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
+            </if>
+            <if test="updateUsername != null and updateUsername != ''">
+                and UPDATE_USERNAME = #{updateUsername}
+            </if>
+            <if test="updateTime != null">
+                and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
+            </if>
+            <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
+                and INSERT_UPDATE_REMARK = #{insertUpdateRemark}
+            </if>
+            <if test="enfactoryTime != null">
+                and TO_CHAR(ENFACTORY_TIME,'yyyy-MM-dd') = #{enfactoryTime}
+            </if>
+            <if test="outfactoryTime != null">
+                and TO_CHAR(OUTFACTORY_TIME,'yyyy-MM-dd') = #{outfactoryTime}
+            </if>
+            <if test="smsStatus != null and smsStatus != ''">
+                and SMS_STATUS = #{smsStatus}
+            </if>
+            <if test="orderStatus != null and orderStatus != ''">
+                and ORDER_STATUS = #{orderStatus}
+            </if>
+            <if test="queueStartTime != null">
+                and TO_CHAR(QUEUE_START_TIME,'yyyy-MM-dd') = #{queueStartTime}
+            </if>
+            <if test="queueAllowTime != null">
+                and TO_CHAR(QUEUE_ALLOW_TIME,'yyyy-MM-dd') = #{queueAllowTime}
+            </if>
+        </where>
+    </sql>
+    <sql id="whereLike">
+        <where>
+            <if test="resultTotalId != null">
+                and RESULT_TOTAL_ID = #{resultTotalId}
+            </if>
+            <if test="orderId != null">
+                and ORDER_ID = #{orderId}
+            </if>
+            <if test="resultDuration != null">
+                and RESULT_DURATION = #{resultDuration}
+            </if>
+            <if test="standardDataId != null">
+                and STANDARD_DATA_ID = #{standardDataId}
+            </if>
+            <if test="resultOutlier != null">
+                and RESULT_OUTLIER = #{resultOutlier}
+            </if>
+            <if test="insertUsername != null and insertUsername != ''">
+                and INSERT_USERNAME LIKE '%${insertUsername}%'
+            </if>
+            <if test="insertTime != null">
+                and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
+            </if>
+            <if test="updateUsername != null and updateUsername != ''">
+                and UPDATE_USERNAME LIKE '%${updateUsername}%'
+            </if>
+            <if test="updateTime != null">
+                and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
+            </if>
+            <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
+                and INSERT_UPDATE_REMARK LIKE '%${insertUpdateRemark}%'
+            </if>
+            <if test="enfactoryTime != null">
+                and TO_CHAR(ENFACTORY_TIME,'yyyy-MM-dd') = #{enfactoryTime}
+            </if>
+            <if test="outfactoryTime != null">
+                and TO_CHAR(OUTFACTORY_TIME,'yyyy-MM-dd') = #{outfactoryTime}
+            </if>
+            <if test="smsStatus != null and smsStatus != ''">
+                and SMS_STATUS LIKE '%${smsStatus}%'
+            </if>
+            <if test="orderStatus != null and orderStatus != ''">
+                and ORDER_STATUS LIKE '%${orderStatus}%'
+            </if>
+            <if test="queueStartTime != null">
+                and TO_CHAR(QUEUE_START_TIME,'yyyy-MM-dd') = #{queueStartTime}
+            </if>
+            <if test="queueAllowTime != null">
+                and TO_CHAR(QUEUE_ALLOW_TIME,'yyyy-MM-dd') = #{queueAllowTime}
+            </if>
+        </where>
+    </sql>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
+        delete from TMSTRUCK_TOTAL_RESULT
+        where RESULT_TOTAL_ID = #{resultTotalId,jdbcType=DECIMAL}
+    </delete>
+    <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
+        delete from TMSTRUCK_TOTAL_RESULT
+        where 1!=1
+        <if test="orderId != null">
+            or ORDER_ID = #{orderId}
+        </if>
+        <if test="resultDuration != null">
+            or RESULT_DURATION = #{resultDuration}
+        </if>
+        <if test="standardDataId != null">
+            or STANDARD_DATA_ID = #{standardDataId}
+        </if>
+        <if test="resultOutlier != null">
+            or RESULT_OUTLIER = #{resultOutlier}
+        </if>
+        <if test="insertUsername != null and insertUsername != ''">
+            or INSERT_USERNAME = #{insertUsername}
+        </if>
+        <if test="insertTime != null">
+            or TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = '#{insertTime}'
+        </if>
+        <if test="updateUsername != null and updateUsername != ''">
+            or UPDATE_USERNAME = #{updateUsername}
+        </if>
+        <if test="updateTime != null">
+            or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
+        </if>
+        <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
+            or INSERT_UPDATE_REMARK = #{insertUpdateRemark}
+        </if>
+        <if test="enfactoryTime != null">
+            or TO_CHAR(ENFACTORY_TIME,'yyyy-MM-dd') = '#{enfactoryTime}'
+        </if>
+        <if test="outfactoryTime != null">
+            or TO_CHAR(OUTFACTORY_TIME,'yyyy-MM-dd') = '#{outfactoryTime}'
+        </if>
+        <if test="smsStatus != null and smsStatus != ''">
+            or SMS_STATUS = #{smsStatus}
+        </if>
+        <if test="orderStatus != null and orderStatus != ''">
+            or ORDER_STATUS = #{orderStatus}
+        </if>
+        <if test="queueStartTime != null">
+            or TO_CHAR(QUEUE_START_TIME,'yyyy-MM-dd') = '#{queueStartTime}'
+        </if>
+        <if test="queueAllowTime != null">
+            or TO_CHAR(QUEUE_ALLOW_TIME,'yyyy-MM-dd') = '#{queueAllowTime}'
+        </if>
+    </delete>
+    <insert id="insert" parameterType="com.steerinfo.dil.model.TmstruckTotalResult">
+        insert into TMSTRUCK_TOTAL_RESULT (RESULT_TOTAL_ID, ORDER_ID, RESULT_DURATION,
+                                           STANDARD_DATA_ID, RESULT_OUTLIER, INSERT_USERNAME,
+                                           INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
+                                           INSERT_UPDATE_REMARK, ENFACTORY_TIME, OUTFACTORY_TIME,
+                                           SMS_STATUS, ORDER_STATUS, QUEUE_START_TIME,
+                                           QUEUE_ALLOW_TIME)
+        values (#{resultTotalId,jdbcType=DECIMAL}, #{orderId,jdbcType=DECIMAL}, #{resultDuration,jdbcType=DECIMAL},
+                #{standardDataId,jdbcType=DECIMAL}, #{resultOutlier,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR},
+                #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
+                #{insertUpdateRemark,jdbcType=VARCHAR}, #{enfactoryTime,jdbcType=TIMESTAMP}, #{outfactoryTime,jdbcType=TIMESTAMP},
+                #{smsStatus,jdbcType=VARCHAR}, #{orderStatus,jdbcType=VARCHAR}, #{queueStartTime,jdbcType=TIMESTAMP},
+                #{queueAllowTime,jdbcType=TIMESTAMP})
+    </insert>
+    <insert id="insertSelective" parameterType="com.steerinfo.dil.model.TmstruckTotalResult">
+        insert into TMSTRUCK_TOTAL_RESULT
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="resultTotalId != null">
+                RESULT_TOTAL_ID,
+            </if>
+            <if test="orderId != null">
+                ORDER_ID,
+            </if>
+            <if test="resultDuration != null">
+                RESULT_DURATION,
+            </if>
+            <if test="standardDataId != null">
+                STANDARD_DATA_ID,
+            </if>
+            <if test="resultOutlier != null">
+                RESULT_OUTLIER,
+            </if>
+            <if test="insertUsername != null">
+                INSERT_USERNAME,
+            </if>
+            <if test="insertTime != null">
+                INSERT_TIME,
+            </if>
+            <if test="updateUsername != null">
+                UPDATE_USERNAME,
+            </if>
+            <if test="updateTime != null">
+                UPDATE_TIME,
+            </if>
+            <if test="insertUpdateRemark != null">
+                INSERT_UPDATE_REMARK,
+            </if>
+            <if test="enfactoryTime != null">
+                ENFACTORY_TIME,
+            </if>
+            <if test="outfactoryTime != null">
+                OUTFACTORY_TIME,
+            </if>
+            <if test="smsStatus != null">
+                SMS_STATUS,
+            </if>
+            <if test="orderStatus != null">
+                ORDER_STATUS,
+            </if>
+            <if test="queueStartTime != null">
+                QUEUE_START_TIME,
+            </if>
+            <if test="queueAllowTime != null">
+                QUEUE_ALLOW_TIME,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="resultTotalId != null">
+                #{resultTotalId,jdbcType=DECIMAL},
+            </if>
+            <if test="orderId != null">
+                #{orderId,jdbcType=DECIMAL},
+            </if>
+            <if test="resultDuration != null">
+                #{resultDuration,jdbcType=DECIMAL},
+            </if>
+            <if test="standardDataId != null">
+                #{standardDataId,jdbcType=DECIMAL},
+            </if>
+            <if test="resultOutlier != null">
+                #{resultOutlier,jdbcType=DECIMAL},
+            </if>
+            <if test="insertUsername != null">
+                #{insertUsername,jdbcType=VARCHAR},
+            </if>
+            <if test="insertTime != null">
+                #{insertTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="updateUsername != null">
+                #{updateUsername,jdbcType=VARCHAR},
+            </if>
+            <if test="updateTime != null">
+                #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="insertUpdateRemark != null">
+                #{insertUpdateRemark,jdbcType=VARCHAR},
+            </if>
+            <if test="enfactoryTime != null">
+                #{enfactoryTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="outfactoryTime != null">
+                #{outfactoryTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="smsStatus != null">
+                #{smsStatus,jdbcType=VARCHAR},
+            </if>
+            <if test="orderStatus != null">
+                #{orderStatus,jdbcType=VARCHAR},
+            </if>
+            <if test="queueStartTime != null">
+                #{queueStartTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="queueAllowTime != null">
+                #{queueAllowTime,jdbcType=TIMESTAMP},
+            </if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.TmstruckTotalResult">
+        update TMSTRUCK_TOTAL_RESULT
+        set ORDER_ID = #{orderId,jdbcType=DECIMAL},
+            RESULT_DURATION = #{resultDuration,jdbcType=DECIMAL},
+            STANDARD_DATA_ID = #{standardDataId,jdbcType=DECIMAL},
+            RESULT_OUTLIER = #{resultOutlier,jdbcType=DECIMAL},
+            INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
+            INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
+            UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
+            UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
+            INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
+            ENFACTORY_TIME = #{enfactoryTime,jdbcType=TIMESTAMP},
+            OUTFACTORY_TIME = #{outfactoryTime,jdbcType=TIMESTAMP},
+            SMS_STATUS = #{smsStatus,jdbcType=VARCHAR},
+            ORDER_STATUS = #{orderStatus,jdbcType=VARCHAR},
+            QUEUE_START_TIME = #{queueStartTime,jdbcType=TIMESTAMP},
+            QUEUE_ALLOW_TIME = #{queueAllowTime,jdbcType=TIMESTAMP}
+        where RESULT_TOTAL_ID = #{resultTotalId,jdbcType=DECIMAL}
+    </update>
+    <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.TmstruckTotalResult">
+        update TMSTRUCK_TOTAL_RESULT
+        <set>
+            <if test="orderId != null">
+                ORDER_ID = #{orderId,jdbcType=DECIMAL},
+            </if>
+            <if test="resultDuration != null">
+                RESULT_DURATION = #{resultDuration,jdbcType=DECIMAL},
+            </if>
+            <if test="standardDataId != null">
+                STANDARD_DATA_ID = #{standardDataId,jdbcType=DECIMAL},
+            </if>
+            <if test="resultOutlier != null">
+                RESULT_OUTLIER = #{resultOutlier,jdbcType=DECIMAL},
+            </if>
+            <if test="insertUsername != null">
+                INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
+            </if>
+            <if test="insertTime != null">
+                INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="updateUsername != null">
+                UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
+            </if>
+            <if test="updateTime != null">
+                UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="insertUpdateRemark != null">
+                INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
+            </if>
+            <if test="enfactoryTime != null">
+                ENFACTORY_TIME = #{enfactoryTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="outfactoryTime != null">
+                OUTFACTORY_TIME = #{outfactoryTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="smsStatus != null">
+                SMS_STATUS = #{smsStatus,jdbcType=VARCHAR},
+            </if>
+            <if test="orderStatus != null">
+                ORDER_STATUS = #{orderStatus,jdbcType=VARCHAR},
+            </if>
+            <if test="queueStartTime != null">
+                QUEUE_START_TIME = #{queueStartTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="queueAllowTime != null">
+                QUEUE_ALLOW_TIME = #{queueAllowTime,jdbcType=TIMESTAMP},
+            </if>
+        </set>
+        where RESULT_TOTAL_ID = #{resultTotalId,jdbcType=DECIMAL}
+    </update>
+    <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
+        <include refid="select" />
+        where RESULT_TOTAL_ID = #{resultTotalId,jdbcType=DECIMAL}
+    </select>
+    <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
+        <include refid="select" />
+        <include refid="where" />
+    </select>
+    <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
+        <include refid="select" />
+        <include refid="whereLike" />
+    </select>
+    <insert id="batchInsert" parameterType="java.util.List">
+        insert into TMSTRUCK_TOTAL_RESULT
+        (RESULT_TOTAL_ID,
+        ORDER_ID, RESULT_DURATION, STANDARD_DATA_ID,
+        RESULT_OUTLIER, INSERT_USERNAME,
+        INSERT_TIME, UPDATE_USERNAME,
+        UPDATE_TIME, INSERT_UPDATE_REMARK,
+        ENFACTORY_TIME, OUTFACTORY_TIME,
+        SMS_STATUS, ORDER_STATUS, QUEUE_START_TIME,
+        QUEUE_ALLOW_TIME)
+        ( <foreach collection="list" item="item" separator="union all">
+        select
+        #{item.resultTotalId,jdbcType=DECIMAL},
+        #{item.orderId,jdbcType=DECIMAL}, #{item.resultDuration,jdbcType=DECIMAL}, #{item.standardDataId,jdbcType=DECIMAL},
+        #{item.resultOutlier,jdbcType=DECIMAL}, #{item.insertUsername,jdbcType=VARCHAR},
+        #{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
+        #{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
+        #{item.enfactoryTime,jdbcType=TIMESTAMP}, #{item.outfactoryTime,jdbcType=TIMESTAMP},
+        #{item.smsStatus,jdbcType=VARCHAR}, #{item.orderStatus,jdbcType=VARCHAR}, #{item.queueStartTime,jdbcType=TIMESTAMP},
+        #{item.queueAllowTime,jdbcType=TIMESTAMP} from dual
+    </foreach> )
+    </insert>
+    <update id="batchUpdate" parameterType="java.util.List">
+        update TMSTRUCK_TOTAL_RESULT
+        set
+        RESULT_TOTAL_ID=
+        <foreach close="end" collection="list" index="index" item="item" open="case RESULT_TOTAL_ID" separator=" ">
+            when #{item.resultTotalId,jdbcType=DECIMAL} then #{item.resultTotalId,jdbcType=DECIMAL}
+        </foreach>
+        ,ORDER_ID=
+        <foreach close="end" collection="list" index="index" item="item" open="case RESULT_TOTAL_ID" separator=" ">
+            when #{item.resultTotalId,jdbcType=DECIMAL} then #{item.orderId,jdbcType=DECIMAL}
+        </foreach>
+        ,RESULT_DURATION=
+        <foreach close="end" collection="list" index="index" item="item" open="case RESULT_TOTAL_ID" separator=" ">
+            when #{item.resultTotalId,jdbcType=DECIMAL} then #{item.resultDuration,jdbcType=DECIMAL}
+        </foreach>
+        ,STANDARD_DATA_ID=
+        <foreach close="end" collection="list" index="index" item="item" open="case RESULT_TOTAL_ID" separator=" ">
+            when #{item.resultTotalId,jdbcType=DECIMAL} then #{item.standardDataId,jdbcType=DECIMAL}
+        </foreach>
+        ,RESULT_OUTLIER=
+        <foreach close="end" collection="list" index="index" item="item" open="case RESULT_TOTAL_ID" separator=" ">
+            when #{item.resultTotalId,jdbcType=DECIMAL} then #{item.resultOutlier,jdbcType=DECIMAL}
+        </foreach>
+        ,INSERT_USERNAME=
+        <foreach close="end" collection="list" index="index" item="item" open="case RESULT_TOTAL_ID" separator=" ">
+            when #{item.resultTotalId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
+        </foreach>
+        ,INSERT_TIME=
+        <foreach close="end" collection="list" index="index" item="item" open="case RESULT_TOTAL_ID" separator=" ">
+            when #{item.resultTotalId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
+        </foreach>
+        ,UPDATE_USERNAME=
+        <foreach close="end" collection="list" index="index" item="item" open="case RESULT_TOTAL_ID" separator=" ">
+            when #{item.resultTotalId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
+        </foreach>
+        ,UPDATE_TIME=
+        <foreach close="end" collection="list" index="index" item="item" open="case RESULT_TOTAL_ID" separator=" ">
+            when #{item.resultTotalId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
+        </foreach>
+        ,INSERT_UPDATE_REMARK=
+        <foreach close="end" collection="list" index="index" item="item" open="case RESULT_TOTAL_ID" separator=" ">
+            when #{item.resultTotalId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
+        </foreach>
+        ,ENFACTORY_TIME=
+        <foreach close="end" collection="list" index="index" item="item" open="case RESULT_TOTAL_ID" separator=" ">
+            when #{item.resultTotalId,jdbcType=DECIMAL} then #{item.enfactoryTime,jdbcType=TIMESTAMP}
+        </foreach>
+        ,OUTFACTORY_TIME=
+        <foreach close="end" collection="list" index="index" item="item" open="case RESULT_TOTAL_ID" separator=" ">
+            when #{item.resultTotalId,jdbcType=DECIMAL} then #{item.outfactoryTime,jdbcType=TIMESTAMP}
+        </foreach>
+        ,SMS_STATUS=
+        <foreach close="end" collection="list" index="index" item="item" open="case RESULT_TOTAL_ID" separator=" ">
+            when #{item.resultTotalId,jdbcType=DECIMAL} then #{item.smsStatus,jdbcType=VARCHAR}
+        </foreach>
+        ,ORDER_STATUS=
+        <foreach close="end" collection="list" index="index" item="item" open="case RESULT_TOTAL_ID" separator=" ">
+            when #{item.resultTotalId,jdbcType=DECIMAL} then #{item.orderStatus,jdbcType=VARCHAR}
+        </foreach>
+        ,QUEUE_START_TIME=
+        <foreach close="end" collection="list" index="index" item="item" open="case RESULT_TOTAL_ID" separator=" ">
+            when #{item.resultTotalId,jdbcType=DECIMAL} then #{item.queueStartTime,jdbcType=TIMESTAMP}
+        </foreach>
+        ,QUEUE_ALLOW_TIME=
+        <foreach close="end" collection="list" index="index" item="item" open="case RESULT_TOTAL_ID" separator=" ">
+            when #{item.resultTotalId,jdbcType=DECIMAL} then #{item.queueAllowTime,jdbcType=TIMESTAMP}
+        </foreach>
+        where RESULT_TOTAL_ID in
+        <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
+            #{item.resultTotalId,jdbcType=DECIMAL}
+        </foreach>
+    </update>
     <delete id="batchDelete" parameterType="java.util.List">
-    delete from TMSTRUCK_TOTAL_RESULT
-    where RESULT_TOTAL_ID in
-    <foreach close=")" collection="list" item="id" open="(" separator=",">
-      #{id}
-    </foreach>
-  </delete>
+        delete from TMSTRUCK_TOTAL_RESULT
+        where RESULT_TOTAL_ID in
+        <foreach close=")" collection="list" item="id" open="(" separator=",">
+            #{id}
+        </foreach>
+    </delete>
+    <!-- 友情提示!!!-->
+    <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
     <!-- 友情提示!!!-->
   <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
 <!-- 查询计数实绩 -->