Your Name 3 tahun lalu
induk
melakukan
3bca670a6d
23 mengubah file dengan 2841 tambahan dan 0 penghapusan
  1. 31 0
      src/main/java/com/steerinfo/dil/controller/TmsTruckEnFactoryResultController.java
  2. 32 0
      src/main/java/com/steerinfo/dil/controller/TmsTruckLeaveFactoryController.java
  3. 48 0
      src/main/java/com/steerinfo/dil/controller/TmsTruckQualityResultController.java
  4. 37 0
      src/main/java/com/steerinfo/dil/controller/TmsTruckSmsRusultController.java
  5. 16 0
      src/main/java/com/steerinfo/dil/mapper/TmstruckEnfactoryResultMapper.java
  6. 13 0
      src/main/java/com/steerinfo/dil/mapper/TmstruckLeaveFactoryResultMapper.java
  7. 15 0
      src/main/java/com/steerinfo/dil/mapper/TmstruckQualityResultMapper.java
  8. 11 0
      src/main/java/com/steerinfo/dil/mapper/TmstruckSmsRusultMapper.java
  9. 228 0
      src/main/java/com/steerinfo/dil/model/TmstruckEnfactoryResult.java
  10. 228 0
      src/main/java/com/steerinfo/dil/model/TmstruckLeaveFactoryResult.java
  11. 228 0
      src/main/java/com/steerinfo/dil/model/TmstruckQualityResult.java
  12. 184 0
      src/main/java/com/steerinfo/dil/model/TmstruckSmsRusult.java
  13. 11 0
      src/main/java/com/steerinfo/dil/service/ITmsTruckEnFactoryResultService.java
  14. 13 0
      src/main/java/com/steerinfo/dil/service/ITmsTruckLeaveFactoryService.java
  15. 16 0
      src/main/java/com/steerinfo/dil/service/ITmsTruckQualityResultService.java
  16. 8 0
      src/main/java/com/steerinfo/dil/service/ITmsTruckSmsRusultService.java
  17. 24 0
      src/main/java/com/steerinfo/dil/service/impl/TmsTruckEnFactoryResultService.java
  18. 30 0
      src/main/java/com/steerinfo/dil/service/impl/TmsTruckQualityService.java
  19. 12 0
      src/main/java/com/steerinfo/dil/service/impl/TmsTruckSmsRusultService.java
  20. 435 0
      src/main/resources/com/steerinfo/dil/mapper/TmstruckEnfactoryResultMapper.xml
  21. 438 0
      src/main/resources/com/steerinfo/dil/mapper/TmstruckLeaveFactoryResultMapper.xml
  22. 439 0
      src/main/resources/com/steerinfo/dil/mapper/TmstruckQualityResultMapper.xml
  23. 344 0
      src/main/resources/com/steerinfo/dil/mapper/TmstruckSmsRusultMapper.xml

+ 31 - 0
src/main/java/com/steerinfo/dil/controller/TmsTruckEnFactoryResultController.java

@@ -0,0 +1,31 @@
+package com.steerinfo.dil.controller;
+
+import com.steerinfo.dil.service.impl.TmsTruckEnFactoryResultService;
+import com.steerinfo.dil.util.BaseRESTfulController;
+import com.steerinfo.framework.controller.RESTfulResult;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.Map;
+
+/**
+ * @author luobang
+ * @create 2021-10-29 17:52
+ */
+@RestController
+@RequestMapping("/${api.version}/tmsTruckEnFactoryResultResult")
+public class TmsTruckEnFactoryResultController extends BaseRESTfulController {
+
+    @Autowired
+    TmsTruckEnFactoryResultService tmsTruckEnFactoryResultService;
+
+    public RESTfulResult addEnFactory(Map<String,Object> map){
+        Integer integer=tmsTruckEnFactoryResultService.updateEnFactory(map);
+        if (integer!=1){
+            return failed();
+        }
+        return success();
+    }
+
+}

+ 32 - 0
src/main/java/com/steerinfo/dil/controller/TmsTruckLeaveFactoryController.java

@@ -0,0 +1,32 @@
+package com.steerinfo.dil.controller;
+
+import com.steerinfo.dil.service.impl.TmsTruckEnFactoryResultService;
+import com.steerinfo.dil.service.impl.TmsTruckLeaveFactoryService;
+import com.steerinfo.dil.util.BaseRESTfulController;
+import com.steerinfo.framework.controller.RESTfulResult;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.Map;
+
+/**
+ * @author luobang
+ * @create 2021-10-29 17:52
+ */
+@RestController
+@RequestMapping("/${api.version}/tmsTruckLeaveFactoryResult")
+public class TmsTruckLeaveFactoryController extends BaseRESTfulController {
+
+    @Autowired
+    TmsTruckLeaveFactoryService tmsTruckLeaveFactoryService;
+
+    public RESTfulResult addLeaveFactory(Map<String,Object> map){
+        Integer integer=tmsTruckLeaveFactoryService.updateLeaveFactory(map);
+        if (integer!=1){
+            return failed();
+        }
+        return success();
+    }
+
+}

+ 48 - 0
src/main/java/com/steerinfo/dil/controller/TmsTruckQualityResultController.java

@@ -0,0 +1,48 @@
+package com.steerinfo.dil.controller;
+
+import com.steerinfo.dil.model.TmstruckQualityResult;
+import com.steerinfo.dil.service.impl.TmsTruckQualityService;
+import com.steerinfo.dil.util.BaseRESTfulController;
+import com.steerinfo.framework.controller.RESTfulResult;
+import io.swagger.annotations.ApiModelProperty;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.transaction.annotation.Transactional;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.math.BigDecimal;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * @author luobang
+ * @create 2021-10-27 11:31
+ */
+@RestController
+@RequestMapping("/${api.version}/tmsTruckQualityResult")
+public class TmsTruckQualityResultController extends BaseRESTfulController {
+
+    @Autowired
+    TmsTruckQualityService tmsTruckQualityService;
+
+
+
+    @ApiModelProperty(value = "发送磅单号,接收质检实绩信息")
+    @PostMapping("/insertQualityResult")
+    @Transactional
+    public RESTfulResult addQualityResult(String resultPoundNo){
+
+        //业务逻辑:xms传入磅单号
+        //将磅单号key转成质检需要的key值
+        String WzInputId =resultPoundNo;
+        //调用质检系统接口,把磅单号传入
+
+        //接收返回值。map类型,一个个get出来
+        Map<String, Object> map1 = new HashMap<>();
+//        TmstruckQualityResult tmstruckQualityResult = new TmstruckQualityResult();
+        //根据磅单号更新质检实绩
+        tmsTruckQualityService.updateQuality(map1);
+        return success();
+    }
+}

+ 37 - 0
src/main/java/com/steerinfo/dil/controller/TmsTruckSmsRusultController.java

@@ -0,0 +1,37 @@
+package com.steerinfo.dil.controller;
+
+import com.steerinfo.dil.service.impl.TmsTruckSmsRusultService;
+import com.steerinfo.dil.util.BaseRESTfulController;
+import com.steerinfo.framework.controller.RESTfulResult;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.Map;
+
+/**
+ * @author luobang
+ * @create 2021-10-28 17:48
+ */
+@RestController
+@RequestMapping("/${api.version}/tmsTruckSms")
+public class TmsTruckSmsRusultController extends BaseRESTfulController {
+    @Autowired
+    TmsTruckSmsRusultService tmsTruckSmsRusultService;
+
+    /**
+     * 新增短信实绩
+     * @return
+     */
+    @PostMapping("/insertSms")
+    public boolean addSmsResult(Map<String,Object>map){
+            //获取一个个值
+        String AppId= (String) map.get("AppId");
+        String timestamp= (String) map.get("timestamp");
+        String content= (String) map.get("content");
+        String mobiles= (String) map.get("mobiles");
+        String sign= (String) map.get("sign");
+            return true;
+    }
+}

+ 16 - 0
src/main/java/com/steerinfo/dil/mapper/TmstruckEnfactoryResultMapper.java

@@ -0,0 +1,16 @@
+package com.steerinfo.dil.mapper;
+
+import com.steerinfo.dil.model.TmstruckEnfactoryResult;
+import com.steerinfo.dil.model.TmstruckEnfactoryResult;
+import com.steerinfo.framework.mapper.IBaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+import java.math.BigDecimal;
+import java.util.Map;
+
+@Mapper
+public interface TmstruckEnfactoryResultMapper extends IBaseMapper<TmstruckEnfactoryResult, BigDecimal> {
+
+    int updateEnFactory(Map<String, Object> map);
+
+}

+ 13 - 0
src/main/java/com/steerinfo/dil/mapper/TmstruckLeaveFactoryResultMapper.java

@@ -0,0 +1,13 @@
+package com.steerinfo.dil.mapper;
+
+import com.steerinfo.dil.model.TmstruckLeaveFactoryResult;
+import com.steerinfo.framework.mapper.IBaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+import java.util.Map;
+
+@Mapper
+public interface TmstruckLeaveFactoryResultMapper extends IBaseMapper<TmstruckLeaveFactoryResult, Short> {
+
+    int updateLeaveFactory(Map<String, Object> map);
+}

+ 15 - 0
src/main/java/com/steerinfo/dil/mapper/TmstruckQualityResultMapper.java

@@ -0,0 +1,15 @@
+package com.steerinfo.dil.mapper;
+
+import com.steerinfo.dil.model.TmstruckQualityResult;
+import com.steerinfo.dil.model.TmstruckQualityResult;
+import com.steerinfo.framework.mapper.IBaseMapper;
+import java.math.*;
+import java.util.Map;
+
+import org.apache.ibatis.annotations.Mapper;
+
+@Mapper
+public interface TmstruckQualityResultMapper extends IBaseMapper<TmstruckQualityResult, BigDecimal> {
+    int updateQuality(Map<String, Object> map1);
+
+}

+ 11 - 0
src/main/java/com/steerinfo/dil/mapper/TmstruckSmsRusultMapper.java

@@ -0,0 +1,11 @@
+package com.steerinfo.dil.mapper;
+
+import com.steerinfo.dil.model.TmstruckSmsRusult;
+import com.steerinfo.framework.mapper.IBaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+import java.math.BigDecimal;
+
+@Mapper
+public interface TmstruckSmsRusultMapper extends IBaseMapper<TmstruckSmsRusult, BigDecimal> {
+}

+ 228 - 0
src/main/java/com/steerinfo/dil/model/TmstruckEnfactoryResult.java

@@ -0,0 +1,228 @@
+package com.steerinfo.dil.model;
+
+import com.steerinfo.framework.model.IBasePO;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+import java.util.Date;
+
+@ApiModel(value="进厂实绩")
+public class TmstruckEnfactoryResult implements IBasePO<Short> {
+    /**
+     * 主键id(RESULT_ID,DECIMAL,0)
+     */
+    @ApiModelProperty(value="主键id",required=true)
+    private Short resultId;
+
+    /**
+     * 实绩总表ID(RESULT_TOTAL_ID,DECIMAL,0)
+     */
+    @ApiModelProperty(value="实绩总表ID",required=false)
+    private Short resultTotalId;
+
+    /**
+     * 进门门岗ID(GATEPOST_ID,DECIMAL,0)
+     */
+    @ApiModelProperty(value="进门门岗ID",required=true)
+    private Short gatepostId;
+
+    /**
+     * 进门方式(手动抬杆、自动抬杆)(RESULT_ENTRY_MODE,VARCHAR,20)
+     */
+    @ApiModelProperty(value="进门方式(手动抬杆、自动抬杆)",required=false)
+    private String resultEntryMode;
+
+    /**
+     * 进厂时间(RESULT_ENTRY_GATE_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="进厂时间",required=false)
+    private Date resultEntryGateTime;
+
+    /**
+     * 备注(RESULT_MEMO,VARCHAR,128)
+     */
+    @ApiModelProperty(value="备注",required=false)
+    private String resultMemo;
+
+    /**
+     * 记录创建人(INSERT_USERNAME,VARCHAR,20)
+     */
+    @ApiModelProperty(value="记录创建人",required=false)
+    private String insertUsername;
+
+    /**
+     * 记录创建时间(INSERT_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="记录创建时间",required=false)
+    private Date insertTime;
+
+    /**
+     * 记录修改人(UPDATE_USERNAME,VARCHAR,20)
+     */
+    @ApiModelProperty(value="记录修改人",required=false)
+    private String updateUsername;
+
+    /**
+     * 记录修改时间(UPDATE_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="记录修改时间",required=false)
+    private Date updateTime;
+
+    /**
+     * 记录创建或修改备注(INSERT_UPDATE_REMARK,VARCHAR,100)
+     */
+    @ApiModelProperty(value="记录创建或修改备注",required=false)
+    private String insertUpdateRemark;
+
+    /**
+     * 废除人(DELETE_USERNAME,VARCHAR,16)
+     */
+    @ApiModelProperty(value="废除人",required=false)
+    private String deleteUsername;
+
+    /**
+     * 废除时间(DELETE_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="废除时间",required=false)
+    private Date deleteTime;
+
+    private static final long serialVersionUID = 1L;
+
+    @Override
+    public Short getId() {
+        return this.resultId;
+    }
+
+    @Override
+    public void setId(Short resultId) {
+        this.resultId = resultId;
+    }
+
+    public Short getResultId() {
+        return resultId;
+    }
+
+    public void setResultId(Short resultId) {
+        this.resultId = resultId;
+    }
+
+    public Short getResultTotalId() {
+        return resultTotalId;
+    }
+
+    public void setResultTotalId(Short resultTotalId) {
+        this.resultTotalId = resultTotalId;
+    }
+
+    public Short getGatepostId() {
+        return gatepostId;
+    }
+
+    public void setGatepostId(Short gatepostId) {
+        this.gatepostId = gatepostId;
+    }
+
+    public String getResultEntryMode() {
+        return resultEntryMode;
+    }
+
+    public void setResultEntryMode(String resultEntryMode) {
+        this.resultEntryMode = resultEntryMode == null ? null : resultEntryMode.trim();
+    }
+
+    public Date getResultEntryGateTime() {
+        return resultEntryGateTime;
+    }
+
+    public void setResultEntryGateTime(Date resultEntryGateTime) {
+        this.resultEntryGateTime = resultEntryGateTime;
+    }
+
+    public String getResultMemo() {
+        return resultMemo;
+    }
+
+    public void setResultMemo(String resultMemo) {
+        this.resultMemo = resultMemo == null ? null : resultMemo.trim();
+    }
+
+    public String getInsertUsername() {
+        return insertUsername;
+    }
+
+    public void setInsertUsername(String insertUsername) {
+        this.insertUsername = insertUsername == null ? null : insertUsername.trim();
+    }
+
+    public Date getInsertTime() {
+        return insertTime;
+    }
+
+    public void setInsertTime(Date insertTime) {
+        this.insertTime = insertTime;
+    }
+
+    public String getUpdateUsername() {
+        return updateUsername;
+    }
+
+    public void setUpdateUsername(String updateUsername) {
+        this.updateUsername = updateUsername == null ? null : updateUsername.trim();
+    }
+
+    public Date getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Date updateTime) {
+        this.updateTime = updateTime;
+    }
+
+    public String getInsertUpdateRemark() {
+        return insertUpdateRemark;
+    }
+
+    public void setInsertUpdateRemark(String insertUpdateRemark) {
+        this.insertUpdateRemark = insertUpdateRemark == null ? null : insertUpdateRemark.trim();
+    }
+
+    public String getDeleteUsername() {
+        return deleteUsername;
+    }
+
+    public void setDeleteUsername(String deleteUsername) {
+        this.deleteUsername = deleteUsername == null ? null : deleteUsername.trim();
+    }
+
+    public Date getDeleteTime() {
+        return deleteTime;
+    }
+
+    public void setDeleteTime(Date deleteTime) {
+        this.deleteTime = deleteTime;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", resultId=").append(resultId);
+        sb.append(", resultTotalId=").append(resultTotalId);
+        sb.append(", gatepostId=").append(gatepostId);
+        sb.append(", resultEntryMode=").append(resultEntryMode);
+        sb.append(", resultEntryGateTime=").append(resultEntryGateTime);
+        sb.append(", resultMemo=").append(resultMemo);
+        sb.append(", insertUsername=").append(insertUsername);
+        sb.append(", insertTime=").append(insertTime);
+        sb.append(", updateUsername=").append(updateUsername);
+        sb.append(", updateTime=").append(updateTime);
+        sb.append(", insertUpdateRemark=").append(insertUpdateRemark);
+        sb.append(", deleteUsername=").append(deleteUsername);
+        sb.append(", deleteTime=").append(deleteTime);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 228 - 0
src/main/java/com/steerinfo/dil/model/TmstruckLeaveFactoryResult.java

@@ -0,0 +1,228 @@
+package com.steerinfo.dil.model;
+
+import com.steerinfo.framework.model.IBasePO;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+import java.util.Date;
+
+@ApiModel(value="出厂实绩")
+public class TmstruckLeaveFactoryResult implements IBasePO<Short> {
+    /**
+     * 主键id(RESULT_ID,DECIMAL,0)
+     */
+    @ApiModelProperty(value="主键id",required=true)
+    private Short resultId;
+
+    /**
+     * 实绩总表ID(RESULT_TOTAL_ID,DECIMAL,0)
+     */
+    @ApiModelProperty(value="实绩总表ID",required=false)
+    private Short resultTotalId;
+
+    /**
+     * 出门门岗ID(GATEPOST_ID,DECIMAL,0)
+     */
+    @ApiModelProperty(value="出门门岗ID",required=true)
+    private Short gatepostId;
+
+    /**
+     * 出门方式(RESULT_OUT_MODE,VARCHAR,20)
+     */
+    @ApiModelProperty(value="出门方式",required=false)
+    private String resultOutMode;
+
+    /**
+     * 出厂时间(RESULT_OUT_GATE_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="出厂时间",required=false)
+    private Date resultOutGateTime;
+
+    /**
+     * 记录创建人(INSERT_USERNAME,VARCHAR,20)
+     */
+    @ApiModelProperty(value="记录创建人",required=false)
+    private String insertUsername;
+
+    /**
+     * 记录创建时间(INSERT_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="记录创建时间",required=false)
+    private Date insertTime;
+
+    /**
+     * 记录修改人(UPDATE_USERNAME,VARCHAR,20)
+     */
+    @ApiModelProperty(value="记录修改人",required=false)
+    private String updateUsername;
+
+    /**
+     * 记录修改时间(UPDATE_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="记录修改时间",required=false)
+    private Date updateTime;
+
+    /**
+     * 记录创建或修改备注(INSERT_UPDATE_REMARK,VARCHAR,100)
+     */
+    @ApiModelProperty(value="记录创建或修改备注",required=false)
+    private String insertUpdateRemark;
+
+    /**
+     * 废除人(DELETE_USERNAME,VARCHAR,16)
+     */
+    @ApiModelProperty(value="废除人",required=false)
+    private String deleteUsername;
+
+    /**
+     * 废除时间(DELETE_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="废除时间",required=false)
+    private Date deleteTime;
+
+    /**
+     * 车厢抓拍图片(RESULT_TRUCK_SNAPSHOT_PICTURE,BLOB,4000)
+     */
+    @ApiModelProperty(value="车厢抓拍图片",required=false)
+    private byte[] resultTruckSnapshotPicture;
+
+    private static final long serialVersionUID = 1L;
+
+    @Override
+    public Short getId() {
+        return this.resultId;
+    }
+
+    @Override
+    public void setId(Short resultId) {
+        this.resultId = resultId;
+    }
+
+    public Short getResultId() {
+        return resultId;
+    }
+
+    public void setResultId(Short resultId) {
+        this.resultId = resultId;
+    }
+
+    public Short getResultTotalId() {
+        return resultTotalId;
+    }
+
+    public void setResultTotalId(Short resultTotalId) {
+        this.resultTotalId = resultTotalId;
+    }
+
+    public Short getGatepostId() {
+        return gatepostId;
+    }
+
+    public void setGatepostId(Short gatepostId) {
+        this.gatepostId = gatepostId;
+    }
+
+    public String getResultOutMode() {
+        return resultOutMode;
+    }
+
+    public void setResultOutMode(String resultOutMode) {
+        this.resultOutMode = resultOutMode == null ? null : resultOutMode.trim();
+    }
+
+    public Date getResultOutGateTime() {
+        return resultOutGateTime;
+    }
+
+    public void setResultOutGateTime(Date resultOutGateTime) {
+        this.resultOutGateTime = resultOutGateTime;
+    }
+
+    public String getInsertUsername() {
+        return insertUsername;
+    }
+
+    public void setInsertUsername(String insertUsername) {
+        this.insertUsername = insertUsername == null ? null : insertUsername.trim();
+    }
+
+    public Date getInsertTime() {
+        return insertTime;
+    }
+
+    public void setInsertTime(Date insertTime) {
+        this.insertTime = insertTime;
+    }
+
+    public String getUpdateUsername() {
+        return updateUsername;
+    }
+
+    public void setUpdateUsername(String updateUsername) {
+        this.updateUsername = updateUsername == null ? null : updateUsername.trim();
+    }
+
+    public Date getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Date updateTime) {
+        this.updateTime = updateTime;
+    }
+
+    public String getInsertUpdateRemark() {
+        return insertUpdateRemark;
+    }
+
+    public void setInsertUpdateRemark(String insertUpdateRemark) {
+        this.insertUpdateRemark = insertUpdateRemark == null ? null : insertUpdateRemark.trim();
+    }
+
+    public String getDeleteUsername() {
+        return deleteUsername;
+    }
+
+    public void setDeleteUsername(String deleteUsername) {
+        this.deleteUsername = deleteUsername == null ? null : deleteUsername.trim();
+    }
+
+    public Date getDeleteTime() {
+        return deleteTime;
+    }
+
+    public void setDeleteTime(Date deleteTime) {
+        this.deleteTime = deleteTime;
+    }
+
+    public byte[] getResultTruckSnapshotPicture() {
+        return resultTruckSnapshotPicture;
+    }
+
+    public void setResultTruckSnapshotPicture(byte[] resultTruckSnapshotPicture) {
+        this.resultTruckSnapshotPicture = resultTruckSnapshotPicture;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", resultId=").append(resultId);
+        sb.append(", resultTotalId=").append(resultTotalId);
+        sb.append(", gatepostId=").append(gatepostId);
+        sb.append(", resultOutMode=").append(resultOutMode);
+        sb.append(", resultOutGateTime=").append(resultOutGateTime);
+        sb.append(", insertUsername=").append(insertUsername);
+        sb.append(", insertTime=").append(insertTime);
+        sb.append(", updateUsername=").append(updateUsername);
+        sb.append(", updateTime=").append(updateTime);
+        sb.append(", insertUpdateRemark=").append(insertUpdateRemark);
+        sb.append(", deleteUsername=").append(deleteUsername);
+        sb.append(", deleteTime=").append(deleteTime);
+        sb.append(", resultTruckSnapshotPicture=").append(resultTruckSnapshotPicture);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 228 - 0
src/main/java/com/steerinfo/dil/model/TmstruckQualityResult.java

@@ -0,0 +1,228 @@
+package com.steerinfo.dil.model;
+
+import com.steerinfo.framework.model.IBasePO;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.Date;
+
+@ApiModel(value="汽运质检实绩")
+public class TmstruckQualityResult implements IBasePO<BigDecimal> {
+    /**
+     * 主键ID(RESULT_ID,DECIMAL,38)
+     */
+    @ApiModelProperty(value="主键ID",required=true)
+    private BigDecimal resultId;
+
+    /**
+     * 总实绩ID(TOTAL_RESULT_ID,DECIMAL,38)
+     */
+    @ApiModelProperty(value="总实绩ID",required=false)
+    private BigDecimal totalResultId;
+
+    /**
+     * 是否已抽样(0:未抽样;1:抽样)(RESULT_ISSAMPLING,VARCHAR,10)
+     */
+    @ApiModelProperty(value="是否已抽样(0:未抽样;1:抽样)",required=false)
+    private String resultIssampling;
+
+    /**
+     * 原料扣减量(RESULT_DEDUCTION,DECIMAL,0)
+     */
+    @ApiModelProperty(value="原料扣减量",required=false)
+    private Short resultDeduction;
+
+    /**
+     * 原料扣减说明(RESULT_DEDUCTION_DESCRIPTION,VARCHAR,50)
+     */
+    @ApiModelProperty(value="原料扣减说明",required=false)
+    private String resultDeductionDescription;
+
+    /**
+     * 原料取样点(RESULT_SAMPLING_POINT_ID,DECIMAL,38)
+     */
+    @ApiModelProperty(value="原料取样点",required=false)
+    private BigDecimal resultSamplingPointId;
+
+    /**
+     * 钢材质检结果(0:不合格;1:合格)(RESULT_CONCLUSION,DECIMAL,38)
+     */
+    @ApiModelProperty(value="钢材质检结果(0:不合格;1:合格)",required=false)
+    private BigDecimal resultConclusion;
+
+    /**
+     * 记录创建人(INSERT_USERNAME,VARCHAR,20)
+     */
+    @ApiModelProperty(value="记录创建人",required=false)
+    private String insertUsername;
+
+    /**
+     * 记录创建时间(INSERT_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="记录创建时间",required=false)
+    private Date insertTime;
+
+    /**
+     * 记录修改人(UPDATE_USERNAME,VARCHAR,20)
+     */
+    @ApiModelProperty(value="记录修改人",required=false)
+    private String updateUsername;
+
+    /**
+     * 记录修改时间(UPDATE_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="记录修改时间",required=false)
+    private Date updateTime;
+
+    /**
+     * 记录创建或修改备注(INSERT_UPDATE_REMARK,VARCHAR,100)
+     */
+    @ApiModelProperty(value="记录创建或修改备注",required=false)
+    private String insertUpdateRemark;
+
+    /**
+     * 抽样时间(RESULT_SAMPLING_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="抽样时间",required=false)
+    private Date resultSamplingTime;
+
+    private static final long serialVersionUID = 1L;
+
+    @Override
+    public BigDecimal getId() {
+        return this.resultId;
+    }
+
+    @Override
+    public void setId(BigDecimal resultId) {
+        this.resultId = resultId;
+    }
+
+    public BigDecimal getResultId() {
+        return resultId;
+    }
+
+    public void setResultId(BigDecimal resultId) {
+        this.resultId = resultId;
+    }
+
+    public BigDecimal getTotalResultId() {
+        return totalResultId;
+    }
+
+    public void setTotalResultId(BigDecimal totalResultId) {
+        this.totalResultId = totalResultId;
+    }
+
+    public String getResultIssampling() {
+        return resultIssampling;
+    }
+
+    public void setResultIssampling(String resultIssampling) {
+        this.resultIssampling = resultIssampling == null ? null : resultIssampling.trim();
+    }
+
+    public Short getResultDeduction() {
+        return resultDeduction;
+    }
+
+    public void setResultDeduction(Short resultDeduction) {
+        this.resultDeduction = resultDeduction;
+    }
+
+    public String getResultDeductionDescription() {
+        return resultDeductionDescription;
+    }
+
+    public void setResultDeductionDescription(String resultDeductionDescription) {
+        this.resultDeductionDescription = resultDeductionDescription == null ? null : resultDeductionDescription.trim();
+    }
+
+    public BigDecimal getResultSamplingPointId() {
+        return resultSamplingPointId;
+    }
+
+    public void setResultSamplingPointId(BigDecimal resultSamplingPointId) {
+        this.resultSamplingPointId = resultSamplingPointId;
+    }
+
+    public BigDecimal getResultConclusion() {
+        return resultConclusion;
+    }
+
+    public void setResultConclusion(BigDecimal resultConclusion) {
+        this.resultConclusion = resultConclusion;
+    }
+
+    public String getInsertUsername() {
+        return insertUsername;
+    }
+
+    public void setInsertUsername(String insertUsername) {
+        this.insertUsername = insertUsername == null ? null : insertUsername.trim();
+    }
+
+    public Date getInsertTime() {
+        return insertTime;
+    }
+
+    public void setInsertTime(Date insertTime) {
+        this.insertTime = insertTime;
+    }
+
+    public String getUpdateUsername() {
+        return updateUsername;
+    }
+
+    public void setUpdateUsername(String updateUsername) {
+        this.updateUsername = updateUsername == null ? null : updateUsername.trim();
+    }
+
+    public Date getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Date updateTime) {
+        this.updateTime = updateTime;
+    }
+
+    public String getInsertUpdateRemark() {
+        return insertUpdateRemark;
+    }
+
+    public void setInsertUpdateRemark(String insertUpdateRemark) {
+        this.insertUpdateRemark = insertUpdateRemark == null ? null : insertUpdateRemark.trim();
+    }
+
+    public Date getResultSamplingTime() {
+        return resultSamplingTime;
+    }
+
+    public void setResultSamplingTime(Date resultSamplingTime) {
+        this.resultSamplingTime = resultSamplingTime;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", resultId=").append(resultId);
+        sb.append(", totalResultId=").append(totalResultId);
+        sb.append(", resultIssampling=").append(resultIssampling);
+        sb.append(", resultDeduction=").append(resultDeduction);
+        sb.append(", resultDeductionDescription=").append(resultDeductionDescription);
+        sb.append(", resultSamplingPointId=").append(resultSamplingPointId);
+        sb.append(", resultConclusion=").append(resultConclusion);
+        sb.append(", insertUsername=").append(insertUsername);
+        sb.append(", insertTime=").append(insertTime);
+        sb.append(", updateUsername=").append(updateUsername);
+        sb.append(", updateTime=").append(updateTime);
+        sb.append(", insertUpdateRemark=").append(insertUpdateRemark);
+        sb.append(", resultSamplingTime=").append(resultSamplingTime);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 184 - 0
src/main/java/com/steerinfo/dil/model/TmstruckSmsRusult.java

@@ -0,0 +1,184 @@
+package com.steerinfo.dil.model;
+
+import com.steerinfo.framework.model.IBasePO;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+import java.math.BigDecimal;
+import java.util.Date;
+
+@ApiModel(value="汽运短信实绩")
+public class TmstruckSmsRusult implements IBasePO<BigDecimal> {
+    /**
+     * 总实绩ID(RESULT_ID,DECIMAL,38)
+     */
+    @ApiModelProperty(value="总实绩ID",required=true)
+    private BigDecimal resultId;
+
+    /**
+     * 总实绩ID(TOTAL_RESULT_ID,DECIMAL,38)
+     */
+    @ApiModelProperty(value="总实绩ID",required=false)
+    private BigDecimal totalResultId;
+
+    /**
+     * 发送方ID(SENDER_ID,DECIMAL,38)
+     */
+    @ApiModelProperty(value="发送方ID",required=false)
+    private BigDecimal senderId;
+
+    /**
+     * 短信发送时间(RESULT_SENDING_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="短信发送时间",required=false)
+    private Date resultSendingTime;
+
+    /**
+     * 短信内容(RESULT_SMS_CONTENT,VARCHAR,120)
+     */
+    @ApiModelProperty(value="短信内容",required=false)
+    private String resultSmsContent;
+
+    /**
+     * 记录创建人(INSERT_USERNAME,VARCHAR,20)
+     */
+    @ApiModelProperty(value="记录创建人",required=false)
+    private String insertUsername;
+
+    /**
+     * 记录创建时间(INSERT_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="记录创建时间",required=false)
+    private Date insertTime;
+
+    /**
+     * 记录修改人(UPDATE_USERNAME,VARCHAR,20)
+     */
+    @ApiModelProperty(value="记录修改人",required=false)
+    private String updateUsername;
+
+    /**
+     * 记录修改时间(UPDATE_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="记录修改时间",required=false)
+    private Date updateTime;
+
+    /**
+     * 记录创建或修改备注(INSERT_UPDATE_REMARK,VARCHAR,100)
+     */
+    @ApiModelProperty(value="记录创建或修改备注",required=false)
+    private String insertUpdateRemark;
+
+    private static final long serialVersionUID = 1L;
+
+    @Override
+    public BigDecimal getId() {
+        return this.resultId;
+    }
+
+    @Override
+    public void setId(BigDecimal resultId) {
+        this.resultId = resultId;
+    }
+
+    public BigDecimal getResultId() {
+        return resultId;
+    }
+
+    public void setResultId(BigDecimal resultId) {
+        this.resultId = resultId;
+    }
+
+    public BigDecimal getTotalResultId() {
+        return totalResultId;
+    }
+
+    public void setTotalResultId(BigDecimal totalResultId) {
+        this.totalResultId = totalResultId;
+    }
+
+    public BigDecimal getSenderId() {
+        return senderId;
+    }
+
+    public void setSenderId(BigDecimal senderId) {
+        this.senderId = senderId;
+    }
+
+    public Date getResultSendingTime() {
+        return resultSendingTime;
+    }
+
+    public void setResultSendingTime(Date resultSendingTime) {
+        this.resultSendingTime = resultSendingTime;
+    }
+
+    public String getResultSmsContent() {
+        return resultSmsContent;
+    }
+
+    public void setResultSmsContent(String resultSmsContent) {
+        this.resultSmsContent = resultSmsContent == null ? null : resultSmsContent.trim();
+    }
+
+    public String getInsertUsername() {
+        return insertUsername;
+    }
+
+    public void setInsertUsername(String insertUsername) {
+        this.insertUsername = insertUsername == null ? null : insertUsername.trim();
+    }
+
+    public Date getInsertTime() {
+        return insertTime;
+    }
+
+    public void setInsertTime(Date insertTime) {
+        this.insertTime = insertTime;
+    }
+
+    public String getUpdateUsername() {
+        return updateUsername;
+    }
+
+    public void setUpdateUsername(String updateUsername) {
+        this.updateUsername = updateUsername == null ? null : updateUsername.trim();
+    }
+
+    public Date getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Date updateTime) {
+        this.updateTime = updateTime;
+    }
+
+    public String getInsertUpdateRemark() {
+        return insertUpdateRemark;
+    }
+
+    public void setInsertUpdateRemark(String insertUpdateRemark) {
+        this.insertUpdateRemark = insertUpdateRemark == null ? null : insertUpdateRemark.trim();
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", resultId=").append(resultId);
+        sb.append(", totalResultId=").append(totalResultId);
+        sb.append(", senderId=").append(senderId);
+        sb.append(", resultSendingTime=").append(resultSendingTime);
+        sb.append(", resultSmsContent=").append(resultSmsContent);
+        sb.append(", insertUsername=").append(insertUsername);
+        sb.append(", insertTime=").append(insertTime);
+        sb.append(", updateUsername=").append(updateUsername);
+        sb.append(", updateTime=").append(updateTime);
+        sb.append(", insertUpdateRemark=").append(insertUpdateRemark);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 11 - 0
src/main/java/com/steerinfo/dil/service/ITmsTruckEnFactoryResultService.java

@@ -0,0 +1,11 @@
+package com.steerinfo.dil.service;
+
+import java.util.Map;
+
+/**
+ * @author luobang
+ * @create 2021-10-29 17:56
+ */
+public interface ITmsTruckEnFactoryResultService {
+    int updateEnFactory(Map<String, Object> map);
+}

+ 13 - 0
src/main/java/com/steerinfo/dil/service/ITmsTruckLeaveFactoryService.java

@@ -0,0 +1,13 @@
+package com.steerinfo.dil.service;
+
+import java.util.Map;
+
+/**
+ * @author luobang
+ * @create 2021-10-29 18:56
+ */
+public interface ITmsTruckLeaveFactoryService {
+
+
+    int updateLeaveFactory(Map<String, Object> map);
+}

+ 16 - 0
src/main/java/com/steerinfo/dil/service/ITmsTruckQualityResultService.java

@@ -0,0 +1,16 @@
+package com.steerinfo.dil.service;
+
+import com.steerinfo.dil.model.TmstruckQualityResult;
+
+import java.math.BigDecimal;
+import java.util.Map;
+
+/**
+ * @author luobang
+ * @create 2021-10-27 14:27
+ */
+public interface ITmsTruckQualityResultService {
+    TmstruckQualityResult selectResult(BigDecimal bigDecimal);
+
+    int updateQuality(Map<String, Object> map1);
+}

+ 8 - 0
src/main/java/com/steerinfo/dil/service/ITmsTruckSmsRusultService.java

@@ -0,0 +1,8 @@
+package com.steerinfo.dil.service;
+
+/**
+ * @author luobang
+ * @create 2021-10-28 17:44
+ */
+public interface ITmsTruckSmsRusultService {
+}

+ 24 - 0
src/main/java/com/steerinfo/dil/service/impl/TmsTruckEnFactoryResultService.java

@@ -0,0 +1,24 @@
+package com.steerinfo.dil.service.impl;
+
+import com.steerinfo.dil.mapper.TmstruckEnfactoryResultMapper;
+import com.steerinfo.dil.service.ITmsTruckEnFactoryResultService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.Map;
+
+/**
+ * @author luobang
+ * @create 2021-10-29 17:56
+ */
+@Service
+public class TmsTruckEnFactoryResultService implements ITmsTruckEnFactoryResultService {
+
+    @Autowired
+    TmstruckEnfactoryResultMapper tmstruckEnfactoryResultMapper;
+
+    @Override
+    public int updateEnFactory(Map<String, Object> map) {
+        return tmstruckEnfactoryResultMapper.updateEnFactory(map);
+    }
+}

+ 30 - 0
src/main/java/com/steerinfo/dil/service/impl/TmsTruckQualityService.java

@@ -0,0 +1,30 @@
+package com.steerinfo.dil.service.impl;
+
+import com.steerinfo.dil.mapper.TmstruckQualityResultMapper;
+import com.steerinfo.dil.model.TmstruckQualityResult;
+import com.steerinfo.dil.service.ITmsTruckQualityResultService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.math.BigDecimal;
+import java.util.Map;
+
+/**
+ * @author luobang
+ * @create 2021-10-27 14:28
+ */
+@Service
+public class TmsTruckQualityService implements ITmsTruckQualityResultService {
+    @Autowired
+    TmstruckQualityResultMapper tmstruckQualityResultMapper;
+
+    @Override
+    public TmstruckQualityResult selectResult(BigDecimal bigDecimal) {
+        return tmstruckQualityResultMapper.selectByPrimaryKey(bigDecimal);
+    }
+
+    @Override
+    public int updateQuality(Map<String, Object> map1) {
+        return tmstruckQualityResultMapper.updateQuality(map1);
+    }
+}

+ 12 - 0
src/main/java/com/steerinfo/dil/service/impl/TmsTruckSmsRusultService.java

@@ -0,0 +1,12 @@
+package com.steerinfo.dil.service.impl;
+
+import com.steerinfo.dil.service.ITmsTruckSmsRusultService;
+import org.springframework.stereotype.Service;
+
+/**
+ * @author luobang
+ * @create 2021-10-28 17:45
+ */
+@Service
+public class TmsTruckSmsRusultService implements ITmsTruckSmsRusultService {
+}

+ 435 - 0
src/main/resources/com/steerinfo/dil/mapper/TmstruckEnfactoryResultMapper.xml

@@ -0,0 +1,435 @@
+<?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.TmstruckEnfactoryResultMapper">
+  <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.TmstruckEnfactoryResult">
+    <id column="RESULT_ID" jdbcType="DECIMAL" property="resultId" />
+    <result column="RESULT_TOTAL_ID" jdbcType="DECIMAL" property="resultTotalId" />
+    <result column="GATEPOST_ID" jdbcType="DECIMAL" property="gatepostId" />
+    <result column="RESULT_ENTRY_MODE" jdbcType="VARCHAR" property="resultEntryMode" />
+    <result column="RESULT_ENTRY_GATE_TIME" jdbcType="TIMESTAMP" property="resultEntryGateTime" />
+    <result column="RESULT_MEMO" jdbcType="VARCHAR" property="resultMemo" />
+    <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="DELETE_USERNAME" jdbcType="VARCHAR" property="deleteUsername" />
+    <result column="DELETE_TIME" jdbcType="TIMESTAMP" property="deleteTime" />
+  </resultMap>
+  <sql id="columns">
+    RESULT_ID, RESULT_TOTAL_ID, GATEPOST_ID, RESULT_ENTRY_MODE, RESULT_ENTRY_GATE_TIME, 
+    RESULT_MEMO, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, 
+    DELETE_USERNAME, DELETE_TIME
+  </sql>
+  <sql id="columns_alias">
+    t.RESULT_ID, t.RESULT_TOTAL_ID, t.GATEPOST_ID, t.RESULT_ENTRY_MODE, t.RESULT_ENTRY_GATE_TIME, 
+    t.RESULT_MEMO, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, 
+    t.INSERT_UPDATE_REMARK, t.DELETE_USERNAME, t.DELETE_TIME
+  </sql>
+  <sql id="select">
+    SELECT <include refid="columns"/> FROM TMSTRUCK_ENFACTORY_RESULT
+  </sql>
+  <sql id="select_alias">
+    SELECT <include refid="columns_alias"/> FROM TMSTRUCK_ENFACTORY_RESULT t
+  </sql>
+  <sql id="where">
+    <where> 
+      <if test="resultId != null">
+        and RESULT_ID = #{resultId}
+      </if>
+      <if test="resultTotalId != null">
+        and RESULT_TOTAL_ID = #{resultTotalId}
+      </if>
+      <if test="gatepostId != null">
+        and GATEPOST_ID = #{gatepostId}
+      </if>
+      <if test="resultEntryMode != null and resultEntryMode != ''">
+        and RESULT_ENTRY_MODE = #{resultEntryMode}
+      </if>
+      <if test="resultEntryGateTime != null">
+        and TO_CHAR(RESULT_ENTRY_GATE_TIME,'yyyy-MM-dd') = #{resultEntryGateTime}
+      </if>
+      <if test="resultMemo != null and resultMemo != ''">
+        and RESULT_MEMO = #{resultMemo}
+      </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="deleteUsername != null and deleteUsername != ''">
+        and DELETE_USERNAME = #{deleteUsername}
+      </if>
+      <if test="deleteTime != null">
+        and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
+      </if>
+    </where>
+  </sql>
+  <sql id="whereLike">
+    <where> 
+      <if test="resultId != null">
+        and RESULT_ID = #{resultId}
+      </if>
+      <if test="resultTotalId != null">
+        and RESULT_TOTAL_ID = #{resultTotalId}
+      </if>
+      <if test="gatepostId != null">
+        and GATEPOST_ID = #{gatepostId}
+      </if>
+      <if test="resultEntryMode != null and resultEntryMode != ''">
+        and RESULT_ENTRY_MODE LIKE '%${resultEntryMode}%'
+      </if>
+      <if test="resultEntryGateTime != null">
+        and TO_CHAR(RESULT_ENTRY_GATE_TIME,'yyyy-MM-dd') = #{resultEntryGateTime}
+      </if>
+      <if test="resultMemo != null and resultMemo != ''">
+        and RESULT_MEMO LIKE '%${resultMemo}%'
+      </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="deleteUsername != null and deleteUsername != ''">
+        and DELETE_USERNAME LIKE '%${deleteUsername}%'
+      </if>
+      <if test="deleteTime != null">
+        and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
+      </if>
+    </where>
+  </sql>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
+    delete from TMSTRUCK_ENFACTORY_RESULT
+    where RESULT_ID = #{resultId,jdbcType=DECIMAL}
+  </delete>
+  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
+    delete from TMSTRUCK_ENFACTORY_RESULT
+    where 1!=1 
+      <if test="resultTotalId != null">
+        or RESULT_TOTAL_ID = #{resultTotalId}
+      </if>
+      <if test="gatepostId != null">
+        or GATEPOST_ID = #{gatepostId}
+      </if>
+      <if test="resultEntryMode != null and resultEntryMode != ''">
+        or RESULT_ENTRY_MODE = #{resultEntryMode}
+      </if>
+      <if test="resultEntryGateTime != null">
+        or TO_CHAR(RESULT_ENTRY_GATE_TIME,'yyyy-MM-dd') = '#{resultEntryGateTime}'
+      </if>
+      <if test="resultMemo != null and resultMemo != ''">
+        or RESULT_MEMO = #{resultMemo}
+      </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="deleteUsername != null and deleteUsername != ''">
+        or DELETE_USERNAME = #{deleteUsername}
+      </if>
+      <if test="deleteTime != null">
+        or TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = '#{deleteTime}'
+      </if>
+  </delete>
+  <insert id="insert" parameterType="com.steerinfo.dil.model.TmstruckEnfactoryResult">
+    insert into TMSTRUCK_ENFACTORY_RESULT (RESULT_ID, RESULT_TOTAL_ID, GATEPOST_ID, 
+      RESULT_ENTRY_MODE, RESULT_ENTRY_GATE_TIME, 
+      RESULT_MEMO, INSERT_USERNAME, INSERT_TIME, 
+      UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, 
+      DELETE_USERNAME, DELETE_TIME)
+    values (#{resultId,jdbcType=DECIMAL}, #{resultTotalId,jdbcType=DECIMAL}, #{gatepostId,jdbcType=DECIMAL}, 
+      #{resultEntryMode,jdbcType=VARCHAR}, #{resultEntryGateTime,jdbcType=TIMESTAMP}, 
+      #{resultMemo,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, 
+      #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, 
+      #{deleteUsername,jdbcType=VARCHAR}, #{deleteTime,jdbcType=TIMESTAMP})
+  </insert>
+  <insert id="insertSelective" parameterType="com.steerinfo.dil.model.TmstruckEnfactoryResult">
+    insert into TMSTRUCK_ENFACTORY_RESULT
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="resultId != null">
+        RESULT_ID,
+      </if>
+      <if test="resultTotalId != null">
+        RESULT_TOTAL_ID,
+      </if>
+      <if test="gatepostId != null">
+        GATEPOST_ID,
+      </if>
+      <if test="resultEntryMode != null">
+        RESULT_ENTRY_MODE,
+      </if>
+      <if test="resultEntryGateTime != null">
+        RESULT_ENTRY_GATE_TIME,
+      </if>
+      <if test="resultMemo != null">
+        RESULT_MEMO,
+      </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="deleteUsername != null">
+        DELETE_USERNAME,
+      </if>
+      <if test="deleteTime != null">
+        DELETE_TIME,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="resultId != null">
+        #{resultId,jdbcType=DECIMAL},
+      </if>
+      <if test="resultTotalId != null">
+        #{resultTotalId,jdbcType=DECIMAL},
+      </if>
+      <if test="gatepostId != null">
+        #{gatepostId,jdbcType=DECIMAL},
+      </if>
+      <if test="resultEntryMode != null">
+        #{resultEntryMode,jdbcType=VARCHAR},
+      </if>
+      <if test="resultEntryGateTime != null">
+        #{resultEntryGateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="resultMemo != null">
+        #{resultMemo,jdbcType=VARCHAR},
+      </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="deleteUsername != null">
+        #{deleteUsername,jdbcType=VARCHAR},
+      </if>
+      <if test="deleteTime != null">
+        #{deleteTime,jdbcType=TIMESTAMP},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.TmstruckEnfactoryResult">
+    update TMSTRUCK_ENFACTORY_RESULT
+    set RESULT_TOTAL_ID = #{resultTotalId,jdbcType=DECIMAL},
+      GATEPOST_ID = #{gatepostId,jdbcType=DECIMAL},
+      RESULT_ENTRY_MODE = #{resultEntryMode,jdbcType=VARCHAR},
+      RESULT_ENTRY_GATE_TIME = #{resultEntryGateTime,jdbcType=TIMESTAMP},
+      RESULT_MEMO = #{resultMemo,jdbcType=VARCHAR},
+      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},
+      DELETE_USERNAME = #{deleteUsername,jdbcType=VARCHAR},
+      DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP}
+    where RESULT_ID = #{resultId,jdbcType=DECIMAL}
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.TmstruckEnfactoryResult">
+    update TMSTRUCK_ENFACTORY_RESULT
+    <set>
+      <if test="resultTotalId != null">
+        RESULT_TOTAL_ID = #{resultTotalId,jdbcType=DECIMAL},
+      </if>
+      <if test="gatepostId != null">
+        GATEPOST_ID = #{gatepostId,jdbcType=DECIMAL},
+      </if>
+      <if test="resultEntryMode != null">
+        RESULT_ENTRY_MODE = #{resultEntryMode,jdbcType=VARCHAR},
+      </if>
+      <if test="resultEntryGateTime != null">
+        RESULT_ENTRY_GATE_TIME = #{resultEntryGateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="resultMemo != null">
+        RESULT_MEMO = #{resultMemo,jdbcType=VARCHAR},
+      </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="deleteUsername != null">
+        DELETE_USERNAME = #{deleteUsername,jdbcType=VARCHAR},
+      </if>
+      <if test="deleteTime != null">
+        DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    where RESULT_ID = #{resultId,jdbcType=DECIMAL}
+  </update>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
+    <include refid="select"/>
+    where RESULT_ID = #{resultId,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_ENFACTORY_RESULT 
+      (RESULT_ID, 
+      RESULT_TOTAL_ID, GATEPOST_ID, RESULT_ENTRY_MODE, 
+      RESULT_ENTRY_GATE_TIME, RESULT_MEMO, 
+      INSERT_USERNAME, INSERT_TIME, 
+      UPDATE_USERNAME, UPDATE_TIME, 
+      INSERT_UPDATE_REMARK, DELETE_USERNAME, 
+      DELETE_TIME)
+    ( <foreach collection="list" item="item" separator="union all"> 
+   select  
+      #{item.resultId,jdbcType=DECIMAL}, 
+      #{item.resultTotalId,jdbcType=DECIMAL}, #{item.gatepostId,jdbcType=DECIMAL}, #{item.resultEntryMode,jdbcType=VARCHAR}, 
+      #{item.resultEntryGateTime,jdbcType=TIMESTAMP}, #{item.resultMemo,jdbcType=VARCHAR}, 
+      #{item.insertUsername,jdbcType=VARCHAR}, #{item.insertTime,jdbcType=TIMESTAMP}, 
+      #{item.updateUsername,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, 
+      #{item.insertUpdateRemark,jdbcType=VARCHAR}, #{item.deleteUsername,jdbcType=VARCHAR}, 
+      #{item.deleteTime,jdbcType=TIMESTAMP} from dual  
+   </foreach> )
+  </insert>
+  <update id="batchUpdate" parameterType="java.util.List">
+     update TMSTRUCK_ENFACTORY_RESULT
+     set
+       RESULT_ID=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.resultId,jdbcType=DECIMAL}
+       </foreach>
+       ,RESULT_TOTAL_ID=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.resultTotalId,jdbcType=DECIMAL}
+       </foreach>
+       ,GATEPOST_ID=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.gatepostId,jdbcType=DECIMAL}
+       </foreach>
+       ,RESULT_ENTRY_MODE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.resultEntryMode,jdbcType=VARCHAR}
+       </foreach>
+       ,RESULT_ENTRY_GATE_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.resultEntryGateTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,RESULT_MEMO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.resultMemo,jdbcType=VARCHAR}
+       </foreach>
+       ,INSERT_USERNAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
+       </foreach>
+       ,INSERT_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,UPDATE_USERNAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
+       </foreach>
+       ,UPDATE_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,INSERT_UPDATE_REMARK=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
+       </foreach>
+       ,DELETE_USERNAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.deleteUsername,jdbcType=VARCHAR}
+       </foreach>
+       ,DELETE_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.deleteTime,jdbcType=TIMESTAMP}
+       </foreach>
+     where RESULT_ID in 
+     <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
+    #{item.resultId,jdbcType=DECIMAL}
+     </foreach> 
+  </update>
+
+    <delete id="batchDelete" parameterType="java.util.List">
+    delete from TMSTRUCK_ENFACTORY_RESULT
+    where RESULT_ID in 
+    <foreach collection="list" item="id" open="(" close=")" separator=",">
+      #{id}
+    </foreach>
+  </delete>
+  <!-- 友情提示!!!-->
+  <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
+  <update id="updateEnFactory">
+    update (select *
+            from TMSTRUCK_ENFACTORY_RESULT TER
+                   LEFT JOIN TMSTRUCK_TOTAL_RESULT TTR
+                             ON TTR.RESULT_TOTAL_ID = TER.RESULT_TOTAL_ID
+                   LEFT JOIN OMSTRUCK_ORDER OO
+                             ON Ttr.Order_Id = oo.order_id
+            where oo.order_id = #{orderId}) tt
+    set tt.gatepost_id = {select rg.gatepost_id from rms_gatepost rg
+    where rg.gatepost_name = {gatepostName}},
+    set tt.result_entry_mode=#{resultEntryMode},
+    set tt.result_entry_gate_time=#{resultTime}
+  </update>
+</mapper>

+ 438 - 0
src/main/resources/com/steerinfo/dil/mapper/TmstruckLeaveFactoryResultMapper.xml

@@ -0,0 +1,438 @@
+<?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.TmstruckLeaveFactoryResultMapper">
+  <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.TmstruckLeaveFactoryResult">
+    <id column="RESULT_ID" jdbcType="DECIMAL" property="resultId" />
+    <result column="RESULT_TOTAL_ID" jdbcType="DECIMAL" property="resultTotalId" />
+    <result column="GATEPOST_ID" jdbcType="DECIMAL" property="gatepostId" />
+    <result column="RESULT_OUT_MODE" jdbcType="VARCHAR" property="resultOutMode" />
+    <result column="RESULT_OUT_GATE_TIME" jdbcType="TIMESTAMP" property="resultOutGateTime" />
+    <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="DELETE_USERNAME" jdbcType="VARCHAR" property="deleteUsername" />
+    <result column="DELETE_TIME" jdbcType="TIMESTAMP" property="deleteTime" />
+    <result column="RESULT_TRUCK_SNAPSHOT_PICTURE" jdbcType="BLOB" property="resultTruckSnapshotPicture" />
+  </resultMap>
+  <sql id="columns">
+    RESULT_ID, RESULT_TOTAL_ID, GATEPOST_ID, RESULT_OUT_MODE, RESULT_OUT_GATE_TIME, INSERT_USERNAME, 
+    INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETE_USERNAME, 
+    DELETE_TIME, RESULT_TRUCK_SNAPSHOT_PICTURE
+  </sql>
+  <sql id="columns_alias">
+    t.RESULT_ID, t.RESULT_TOTAL_ID, t.GATEPOST_ID, t.RESULT_OUT_MODE, t.RESULT_OUT_GATE_TIME, 
+    t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, 
+    t.DELETE_USERNAME, t.DELETE_TIME, t.RESULT_TRUCK_SNAPSHOT_PICTURE
+  </sql>
+  <sql id="select">
+    SELECT <include refid="columns" /> FROM TMSTRUCK_LEAVE_FACTORY_RESULT
+  </sql>
+  <sql id="select_alias">
+    SELECT <include refid="columns_alias" /> FROM TMSTRUCK_LEAVE_FACTORY_RESULT t
+  </sql>
+  <sql id="where">
+    <where> 
+      <if test="resultId != null">
+        and RESULT_ID = #{resultId}
+      </if>
+      <if test="resultTotalId != null">
+        and RESULT_TOTAL_ID = #{resultTotalId}
+      </if>
+      <if test="gatepostId != null">
+        and GATEPOST_ID = #{gatepostId}
+      </if>
+      <if test="resultOutMode != null and resultOutMode != ''">
+        and RESULT_OUT_MODE = #{resultOutMode}
+      </if>
+      <if test="resultOutGateTime != null">
+        and TO_CHAR(RESULT_OUT_GATE_TIME,'yyyy-MM-dd') = #{resultOutGateTime}
+      </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="deleteUsername != null and deleteUsername != ''">
+        and DELETE_USERNAME = #{deleteUsername}
+      </if>
+      <if test="deleteTime != null">
+        and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
+      </if>
+      <if test="resultTruckSnapshotPicture != null">
+        and RESULT_TRUCK_SNAPSHOT_PICTURE = #{resultTruckSnapshotPicture}
+      </if>
+    </where>
+  </sql>
+  <sql id="whereLike">
+    <where> 
+      <if test="resultId != null">
+        and RESULT_ID = #{resultId}
+      </if>
+      <if test="resultTotalId != null">
+        and RESULT_TOTAL_ID = #{resultTotalId}
+      </if>
+      <if test="gatepostId != null">
+        and GATEPOST_ID = #{gatepostId}
+      </if>
+      <if test="resultOutMode != null and resultOutMode != ''">
+        and RESULT_OUT_MODE LIKE '%${resultOutMode}%'
+      </if>
+      <if test="resultOutGateTime != null">
+        and TO_CHAR(RESULT_OUT_GATE_TIME,'yyyy-MM-dd') = #{resultOutGateTime}
+      </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="deleteUsername != null and deleteUsername != ''">
+        and DELETE_USERNAME LIKE '%${deleteUsername}%'
+      </if>
+      <if test="deleteTime != null">
+        and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
+      </if>
+      <if test="resultTruckSnapshotPicture != null">
+        and RESULT_TRUCK_SNAPSHOT_PICTURE = #{resultTruckSnapshotPicture}
+      </if>
+    </where>
+  </sql>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
+    delete from TMSTRUCK_LEAVE_FACTORY_RESULT
+    where RESULT_ID = #{resultId,jdbcType=DECIMAL}
+  </delete>
+  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
+    delete from TMSTRUCK_LEAVE_FACTORY_RESULT
+    where 1!=1 
+      <if test="resultTotalId != null">
+        or RESULT_TOTAL_ID = #{resultTotalId}
+      </if>
+      <if test="gatepostId != null">
+        or GATEPOST_ID = #{gatepostId}
+      </if>
+      <if test="resultOutMode != null and resultOutMode != ''">
+        or RESULT_OUT_MODE = #{resultOutMode}
+      </if>
+      <if test="resultOutGateTime != null">
+        or TO_CHAR(RESULT_OUT_GATE_TIME,'yyyy-MM-dd') = '#{resultOutGateTime}'
+      </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="deleteUsername != null and deleteUsername != ''">
+        or DELETE_USERNAME = #{deleteUsername}
+      </if>
+      <if test="deleteTime != null">
+        or TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = '#{deleteTime}'
+      </if>
+      <if test="resultTruckSnapshotPicture != null">
+        or RESULT_TRUCK_SNAPSHOT_PICTURE = #{resultTruckSnapshotPicture}
+      </if>
+  </delete>
+  <insert id="insert" parameterType="com.steerinfo.dil.model.TmstruckLeaveFactoryResult">
+    insert into TMSTRUCK_LEAVE_FACTORY_RESULT (RESULT_ID, RESULT_TOTAL_ID, GATEPOST_ID, 
+      RESULT_OUT_MODE, RESULT_OUT_GATE_TIME, INSERT_USERNAME, 
+      INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, 
+      INSERT_UPDATE_REMARK, DELETE_USERNAME, DELETE_TIME, 
+      RESULT_TRUCK_SNAPSHOT_PICTURE)
+    values (#{resultId,jdbcType=DECIMAL}, #{resultTotalId,jdbcType=DECIMAL}, #{gatepostId,jdbcType=DECIMAL}, 
+      #{resultOutMode,jdbcType=VARCHAR}, #{resultOutGateTime,jdbcType=TIMESTAMP}, #{insertUsername,jdbcType=VARCHAR}, 
+      #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, 
+      #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleteUsername,jdbcType=VARCHAR}, #{deleteTime,jdbcType=TIMESTAMP}, 
+      #{resultTruckSnapshotPicture,jdbcType=BLOB})
+  </insert>
+  <insert id="insertSelective" parameterType="com.steerinfo.dil.model.TmstruckLeaveFactoryResult">
+    insert into TMSTRUCK_LEAVE_FACTORY_RESULT
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="resultId != null">
+        RESULT_ID,
+      </if>
+      <if test="resultTotalId != null">
+        RESULT_TOTAL_ID,
+      </if>
+      <if test="gatepostId != null">
+        GATEPOST_ID,
+      </if>
+      <if test="resultOutMode != null">
+        RESULT_OUT_MODE,
+      </if>
+      <if test="resultOutGateTime != null">
+        RESULT_OUT_GATE_TIME,
+      </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="deleteUsername != null">
+        DELETE_USERNAME,
+      </if>
+      <if test="deleteTime != null">
+        DELETE_TIME,
+      </if>
+      <if test="resultTruckSnapshotPicture != null">
+        RESULT_TRUCK_SNAPSHOT_PICTURE,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="resultId != null">
+        #{resultId,jdbcType=DECIMAL},
+      </if>
+      <if test="resultTotalId != null">
+        #{resultTotalId,jdbcType=DECIMAL},
+      </if>
+      <if test="gatepostId != null">
+        #{gatepostId,jdbcType=DECIMAL},
+      </if>
+      <if test="resultOutMode != null">
+        #{resultOutMode,jdbcType=VARCHAR},
+      </if>
+      <if test="resultOutGateTime != null">
+        #{resultOutGateTime,jdbcType=TIMESTAMP},
+      </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="deleteUsername != null">
+        #{deleteUsername,jdbcType=VARCHAR},
+      </if>
+      <if test="deleteTime != null">
+        #{deleteTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="resultTruckSnapshotPicture != null">
+        #{resultTruckSnapshotPicture,jdbcType=BLOB},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.TmstruckLeaveFactoryResult">
+    update TMSTRUCK_LEAVE_FACTORY_RESULT
+    set RESULT_TOTAL_ID = #{resultTotalId,jdbcType=DECIMAL},
+      GATEPOST_ID = #{gatepostId,jdbcType=DECIMAL},
+      RESULT_OUT_MODE = #{resultOutMode,jdbcType=VARCHAR},
+      RESULT_OUT_GATE_TIME = #{resultOutGateTime,jdbcType=TIMESTAMP},
+      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},
+      DELETE_USERNAME = #{deleteUsername,jdbcType=VARCHAR},
+      DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
+      RESULT_TRUCK_SNAPSHOT_PICTURE = #{resultTruckSnapshotPicture,jdbcType=BLOB}
+    where RESULT_ID = #{resultId,jdbcType=DECIMAL}
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.TmstruckLeaveFactoryResult">
+    update TMSTRUCK_LEAVE_FACTORY_RESULT
+    <set>
+      <if test="resultTotalId != null">
+        RESULT_TOTAL_ID = #{resultTotalId,jdbcType=DECIMAL},
+      </if>
+      <if test="gatepostId != null">
+        GATEPOST_ID = #{gatepostId,jdbcType=DECIMAL},
+      </if>
+      <if test="resultOutMode != null">
+        RESULT_OUT_MODE = #{resultOutMode,jdbcType=VARCHAR},
+      </if>
+      <if test="resultOutGateTime != null">
+        RESULT_OUT_GATE_TIME = #{resultOutGateTime,jdbcType=TIMESTAMP},
+      </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="deleteUsername != null">
+        DELETE_USERNAME = #{deleteUsername,jdbcType=VARCHAR},
+      </if>
+      <if test="deleteTime != null">
+        DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="resultTruckSnapshotPicture != null">
+        RESULT_TRUCK_SNAPSHOT_PICTURE = #{resultTruckSnapshotPicture,jdbcType=BLOB},
+      </if>
+    </set>
+    where RESULT_ID = #{resultId,jdbcType=DECIMAL}
+  </update>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
+    <include refid="select" />
+    where RESULT_ID = #{resultId,jdbcType=DECIMAL}
+  </select>
+  <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="ResultMapWithBLOBs">
+    <include refid="select" />
+    <include refid="where" />
+  </select>
+  <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="ResultMapWithBLOBs">
+    <include refid="select" />
+    <include refid="whereLike" />
+  </select>
+  <insert id="batchInsert" parameterType="java.util.List">
+    insert into TMSTRUCK_LEAVE_FACTORY_RESULT 
+      (RESULT_ID, 
+      RESULT_TOTAL_ID, GATEPOST_ID, RESULT_OUT_MODE, 
+      RESULT_OUT_GATE_TIME, INSERT_USERNAME, 
+      INSERT_TIME, UPDATE_USERNAME, 
+      UPDATE_TIME, INSERT_UPDATE_REMARK, 
+      DELETE_USERNAME, DELETE_TIME, 
+      RESULT_TRUCK_SNAPSHOT_PICTURE)
+    ( <foreach collection="list" item="item" separator="union all"> 
+   select  
+      #{item.resultId,jdbcType=DECIMAL}, 
+      #{item.resultTotalId,jdbcType=DECIMAL}, #{item.gatepostId,jdbcType=DECIMAL}, #{item.resultOutMode,jdbcType=VARCHAR}, 
+      #{item.resultOutGateTime,jdbcType=TIMESTAMP}, #{item.insertUsername,jdbcType=VARCHAR}, 
+      #{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR}, 
+      #{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR}, 
+      #{item.deleteUsername,jdbcType=VARCHAR}, #{item.deleteTime,jdbcType=TIMESTAMP}, 
+      #{item.resultTruckSnapshotPicture,jdbcType=BLOB} from dual  
+   </foreach> )
+  </insert>
+  <update id="batchUpdate" parameterType="java.util.List">
+     update TMSTRUCK_LEAVE_FACTORY_RESULT
+     set
+       RESULT_ID=
+       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.resultId,jdbcType=DECIMAL}
+       </foreach>
+       ,RESULT_TOTAL_ID=
+       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.resultTotalId,jdbcType=DECIMAL}
+       </foreach>
+       ,GATEPOST_ID=
+       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.gatepostId,jdbcType=DECIMAL}
+       </foreach>
+       ,RESULT_OUT_MODE=
+       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.resultOutMode,jdbcType=VARCHAR}
+       </foreach>
+       ,RESULT_OUT_GATE_TIME=
+       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.resultOutGateTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,INSERT_USERNAME=
+       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
+       </foreach>
+       ,INSERT_TIME=
+       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,UPDATE_USERNAME=
+       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
+       </foreach>
+       ,UPDATE_TIME=
+       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,INSERT_UPDATE_REMARK=
+       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
+       </foreach>
+       ,DELETE_USERNAME=
+       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.deleteUsername,jdbcType=VARCHAR}
+       </foreach>
+       ,DELETE_TIME=
+       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.deleteTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,RESULT_TRUCK_SNAPSHOT_PICTURE=
+       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.resultTruckSnapshotPicture,jdbcType=BLOB}
+       </foreach>
+     where RESULT_ID in 
+     <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
+    #{item.resultId,jdbcType=DECIMAL}
+     </foreach> 
+  </update>
+  <delete id="batchDelete" parameterType="java.util.List">
+    delete from TMSTRUCK_LEAVE_FACTORY_RESULT
+    where RESULT_ID in 
+    <foreach close=")" collection="list" item="id" open="(" separator=",">
+      #{id}
+    </foreach>
+  </delete>
+  <!-- 友情提示!!!-->
+  <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
+  <!-- 友情提示!!!-->
+  <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
+  <update id="updateLeaveFactory">
+    update(
+      select * from tmstruck_leave_factory_result tlfr
+                      LEFT JOIN TMSTRUCK_TOTAL_RESULT TTR
+                                on
+                                  ttr.result_total_id=tlfr.result_total_id
+                      left join omstruck_order oo
+                                on
+                                  oo.order_id=ttr.order_id
+      where oo.order_id=#{orderId}) tt
+    set tt.gatepost_id = {select rg.gatepost_id from rms_gatepost rg
+    where rg.gatepost_name = {gatepostName}},
+    set tt.result_out_mode=#{resultOutMode},
+    set tt.result_out_gate_time=#{resultTime}
+  </update>
+</mapper>

+ 439 - 0
src/main/resources/com/steerinfo/dil/mapper/TmstruckQualityResultMapper.xml

@@ -0,0 +1,439 @@
+<?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.TmstruckQualityResultMapper">
+  <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.TmstruckQualityResult">
+    <id column="RESULT_ID" jdbcType="DECIMAL" property="resultId" />
+    <result column="TOTAL_RESULT_ID" jdbcType="DECIMAL" property="totalResultId" />
+    <result column="RESULT_ISSAMPLING" jdbcType="VARCHAR" property="resultIssampling" />
+    <result column="RESULT_DEDUCTION" jdbcType="DECIMAL" property="resultDeduction" />
+    <result column="RESULT_DEDUCTION_DESCRIPTION" jdbcType="VARCHAR" property="resultDeductionDescription" />
+    <result column="RESULT_SAMPLING_POINT_ID" jdbcType="DECIMAL" property="resultSamplingPointId" />
+    <result column="RESULT_CONCLUSION" jdbcType="DECIMAL" property="resultConclusion" />
+    <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="RESULT_SAMPLING_TIME" jdbcType="TIMESTAMP" property="resultSamplingTime" />
+  </resultMap>
+  <sql id="columns">
+    RESULT_ID, TOTAL_RESULT_ID, RESULT_ISSAMPLING, RESULT_DEDUCTION, RESULT_DEDUCTION_DESCRIPTION, 
+    RESULT_SAMPLING_POINT_ID, RESULT_CONCLUSION, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, 
+    UPDATE_TIME, INSERT_UPDATE_REMARK, RESULT_SAMPLING_TIME
+  </sql>
+  <sql id="columns_alias">
+    t.RESULT_ID, t.TOTAL_RESULT_ID, t.RESULT_ISSAMPLING, t.RESULT_DEDUCTION, t.RESULT_DEDUCTION_DESCRIPTION, 
+    t.RESULT_SAMPLING_POINT_ID, t.RESULT_CONCLUSION, t.INSERT_USERNAME, t.INSERT_TIME, 
+    t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.RESULT_SAMPLING_TIME
+  </sql>
+  <sql id="select">
+    SELECT <include refid="columns"/> FROM TMSTRUCK_QUALITY_RESULT
+  </sql>
+  <sql id="select_alias">
+    SELECT <include refid="columns_alias"/> FROM TMSTRUCK_QUALITY_RESULT t
+  </sql>
+  <sql id="where">
+    <where> 
+      <if test="resultId != null">
+        and RESULT_ID = #{resultId}
+      </if>
+      <if test="totalResultId != null">
+        and TOTAL_RESULT_ID = #{totalResultId}
+      </if>
+      <if test="resultIssampling != null and resultIssampling != ''">
+        and RESULT_ISSAMPLING = #{resultIssampling}
+      </if>
+      <if test="resultDeduction != null">
+        and RESULT_DEDUCTION = #{resultDeduction}
+      </if>
+      <if test="resultDeductionDescription != null and resultDeductionDescription != ''">
+        and RESULT_DEDUCTION_DESCRIPTION = #{resultDeductionDescription}
+      </if>
+      <if test="resultSamplingPointId != null">
+        and RESULT_SAMPLING_POINT_ID = #{resultSamplingPointId}
+      </if>
+      <if test="resultConclusion != null">
+        and RESULT_CONCLUSION = #{resultConclusion}
+      </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="resultSamplingTime != null">
+        and TO_CHAR(RESULT_SAMPLING_TIME,'yyyy-MM-dd') = #{resultSamplingTime}
+      </if>
+    </where>
+  </sql>
+  <sql id="whereLike">
+    <where> 
+      <if test="resultId != null">
+        and RESULT_ID = #{resultId}
+      </if>
+      <if test="totalResultId != null">
+        and TOTAL_RESULT_ID = #{totalResultId}
+      </if>
+      <if test="resultIssampling != null and resultIssampling != ''">
+        and RESULT_ISSAMPLING LIKE '%${resultIssampling}%'
+      </if>
+      <if test="resultDeduction != null">
+        and RESULT_DEDUCTION = #{resultDeduction}
+      </if>
+      <if test="resultDeductionDescription != null and resultDeductionDescription != ''">
+        and RESULT_DEDUCTION_DESCRIPTION LIKE '%${resultDeductionDescription}%'
+      </if>
+      <if test="resultSamplingPointId != null">
+        and RESULT_SAMPLING_POINT_ID = #{resultSamplingPointId}
+      </if>
+      <if test="resultConclusion != null">
+        and RESULT_CONCLUSION = #{resultConclusion}
+      </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="resultSamplingTime != null">
+        and TO_CHAR(RESULT_SAMPLING_TIME,'yyyy-MM-dd') = #{resultSamplingTime}
+      </if>
+    </where>
+  </sql>
+  <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
+    delete from TMSTRUCK_QUALITY_RESULT
+    where RESULT_ID = #{resultId,jdbcType=DECIMAL}
+  </delete>
+  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
+    delete from TMSTRUCK_QUALITY_RESULT
+    where 1!=1 
+      <if test="totalResultId != null">
+        or TOTAL_RESULT_ID = #{totalResultId}
+      </if>
+      <if test="resultIssampling != null and resultIssampling != ''">
+        or RESULT_ISSAMPLING = #{resultIssampling}
+      </if>
+      <if test="resultDeduction != null">
+        or RESULT_DEDUCTION = #{resultDeduction}
+      </if>
+      <if test="resultDeductionDescription != null and resultDeductionDescription != ''">
+        or RESULT_DEDUCTION_DESCRIPTION = #{resultDeductionDescription}
+      </if>
+      <if test="resultSamplingPointId != null">
+        or RESULT_SAMPLING_POINT_ID = #{resultSamplingPointId}
+      </if>
+      <if test="resultConclusion != null">
+        or RESULT_CONCLUSION = #{resultConclusion}
+      </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="resultSamplingTime != null">
+        or TO_CHAR(RESULT_SAMPLING_TIME,'yyyy-MM-dd') = '#{resultSamplingTime}'
+      </if>
+  </delete>
+  <insert id="insert" parameterType="com.steerinfo.dil.model.TmstruckQualityResult">
+    insert into TMSTRUCK_QUALITY_RESULT (RESULT_ID, TOTAL_RESULT_ID, RESULT_ISSAMPLING, 
+      RESULT_DEDUCTION, RESULT_DEDUCTION_DESCRIPTION, 
+      RESULT_SAMPLING_POINT_ID, RESULT_CONCLUSION, 
+      INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, 
+      UPDATE_TIME, INSERT_UPDATE_REMARK, RESULT_SAMPLING_TIME
+      )
+    values (#{resultId,jdbcType=DECIMAL}, #{totalResultId,jdbcType=DECIMAL}, #{resultIssampling,jdbcType=VARCHAR}, 
+      #{resultDeduction,jdbcType=DECIMAL}, #{resultDeductionDescription,jdbcType=VARCHAR}, 
+      #{resultSamplingPointId,jdbcType=DECIMAL}, #{resultConclusion,jdbcType=DECIMAL}, 
+      #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, 
+      #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{resultSamplingTime,jdbcType=TIMESTAMP}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.steerinfo.dil.model.TmstruckQualityResult">
+    insert into TMSTRUCK_QUALITY_RESULT
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="resultId != null">
+        RESULT_ID,
+      </if>
+      <if test="totalResultId != null">
+        TOTAL_RESULT_ID,
+      </if>
+      <if test="resultIssampling != null">
+        RESULT_ISSAMPLING,
+      </if>
+      <if test="resultDeduction != null">
+        RESULT_DEDUCTION,
+      </if>
+      <if test="resultDeductionDescription != null">
+        RESULT_DEDUCTION_DESCRIPTION,
+      </if>
+      <if test="resultSamplingPointId != null">
+        RESULT_SAMPLING_POINT_ID,
+      </if>
+      <if test="resultConclusion != null">
+        RESULT_CONCLUSION,
+      </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="resultSamplingTime != null">
+        RESULT_SAMPLING_TIME,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="resultId != null">
+        #{resultId,jdbcType=DECIMAL},
+      </if>
+      <if test="totalResultId != null">
+        #{totalResultId,jdbcType=DECIMAL},
+      </if>
+      <if test="resultIssampling != null">
+        #{resultIssampling,jdbcType=VARCHAR},
+      </if>
+      <if test="resultDeduction != null">
+        #{resultDeduction,jdbcType=DECIMAL},
+      </if>
+      <if test="resultDeductionDescription != null">
+        #{resultDeductionDescription,jdbcType=VARCHAR},
+      </if>
+      <if test="resultSamplingPointId != null">
+        #{resultSamplingPointId,jdbcType=DECIMAL},
+      </if>
+      <if test="resultConclusion != null">
+        #{resultConclusion,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="resultSamplingTime != null">
+        #{resultSamplingTime,jdbcType=TIMESTAMP},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.TmstruckQualityResult">
+    update TMSTRUCK_QUALITY_RESULT
+    set TOTAL_RESULT_ID = #{totalResultId,jdbcType=DECIMAL},
+      RESULT_ISSAMPLING = #{resultIssampling,jdbcType=VARCHAR},
+      RESULT_DEDUCTION = #{resultDeduction,jdbcType=DECIMAL},
+      RESULT_DEDUCTION_DESCRIPTION = #{resultDeductionDescription,jdbcType=VARCHAR},
+      RESULT_SAMPLING_POINT_ID = #{resultSamplingPointId,jdbcType=DECIMAL},
+      RESULT_CONCLUSION = #{resultConclusion,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},
+      RESULT_SAMPLING_TIME = #{resultSamplingTime,jdbcType=TIMESTAMP}
+    where RESULT_ID = #{resultId,jdbcType=DECIMAL}
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.TmstruckQualityResult">
+    update TMSTRUCK_QUALITY_RESULT
+    <set>
+      <if test="totalResultId != null">
+        TOTAL_RESULT_ID = #{totalResultId,jdbcType=DECIMAL},
+      </if>
+      <if test="resultIssampling != null">
+        RESULT_ISSAMPLING = #{resultIssampling,jdbcType=VARCHAR},
+      </if>
+      <if test="resultDeduction != null">
+        RESULT_DEDUCTION = #{resultDeduction,jdbcType=DECIMAL},
+      </if>
+      <if test="resultDeductionDescription != null">
+        RESULT_DEDUCTION_DESCRIPTION = #{resultDeductionDescription,jdbcType=VARCHAR},
+      </if>
+      <if test="resultSamplingPointId != null">
+        RESULT_SAMPLING_POINT_ID = #{resultSamplingPointId,jdbcType=DECIMAL},
+      </if>
+      <if test="resultConclusion != null">
+        RESULT_CONCLUSION = #{resultConclusion,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="resultSamplingTime != null">
+        RESULT_SAMPLING_TIME = #{resultSamplingTime,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    where RESULT_ID = #{resultId,jdbcType=DECIMAL}
+  </update>
+  <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
+    <include refid="select"/>
+    where RESULT_ID = #{resultId,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_QUALITY_RESULT 
+      (RESULT_ID, 
+      TOTAL_RESULT_ID, RESULT_ISSAMPLING, 
+      RESULT_DEDUCTION, RESULT_DEDUCTION_DESCRIPTION, 
+      RESULT_SAMPLING_POINT_ID, RESULT_CONCLUSION, 
+      INSERT_USERNAME, INSERT_TIME, 
+      UPDATE_USERNAME, UPDATE_TIME, 
+      INSERT_UPDATE_REMARK, RESULT_SAMPLING_TIME
+      )
+    ( <foreach collection="list" item="item" separator="union all"> 
+   select  
+      #{item.resultId,jdbcType=DECIMAL}, 
+      #{item.totalResultId,jdbcType=DECIMAL}, #{item.resultIssampling,jdbcType=VARCHAR}, 
+      #{item.resultDeduction,jdbcType=DECIMAL}, #{item.resultDeductionDescription,jdbcType=VARCHAR}, 
+      #{item.resultSamplingPointId,jdbcType=DECIMAL}, #{item.resultConclusion,jdbcType=DECIMAL}, 
+      #{item.insertUsername,jdbcType=VARCHAR}, #{item.insertTime,jdbcType=TIMESTAMP}, 
+      #{item.updateUsername,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, 
+      #{item.insertUpdateRemark,jdbcType=VARCHAR}, #{item.resultSamplingTime,jdbcType=TIMESTAMP}
+       from dual  
+   </foreach> )
+  </insert>
+  <update id="batchUpdate" parameterType="java.util.List">
+     update TMSTRUCK_QUALITY_RESULT
+     set
+       RESULT_ID=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.resultId,jdbcType=DECIMAL}
+       </foreach>
+       ,TOTAL_RESULT_ID=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.totalResultId,jdbcType=DECIMAL}
+       </foreach>
+       ,RESULT_ISSAMPLING=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.resultIssampling,jdbcType=VARCHAR}
+       </foreach>
+       ,RESULT_DEDUCTION=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.resultDeduction,jdbcType=DECIMAL}
+       </foreach>
+       ,RESULT_DEDUCTION_DESCRIPTION=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.resultDeductionDescription,jdbcType=VARCHAR}
+       </foreach>
+       ,RESULT_SAMPLING_POINT_ID=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.resultSamplingPointId,jdbcType=DECIMAL}
+       </foreach>
+       ,RESULT_CONCLUSION=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.resultConclusion,jdbcType=DECIMAL}
+       </foreach>
+       ,INSERT_USERNAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
+       </foreach>
+       ,INSERT_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,UPDATE_USERNAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
+       </foreach>
+       ,UPDATE_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,INSERT_UPDATE_REMARK=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
+       </foreach>
+       ,RESULT_SAMPLING_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.resultSamplingTime,jdbcType=TIMESTAMP}
+       </foreach>
+     where RESULT_ID in 
+     <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
+    #{item.resultId,jdbcType=DECIMAL}
+     </foreach> 
+  </update>
+
+  <delete id="batchDelete" parameterType="java.util.List">
+    delete from TMSTRUCK_QUALITY_RESULT
+    where RESULT_ID in 
+    <foreach collection="list" item="id" open="(" close=")" separator=",">
+      #{id}
+    </foreach>
+  </delete>
+  <!-- 友情提示!!!-->
+  <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
+  <update id="updateQuality">
+    update
+      (SELECT *  FROM TMSTRUCK_QUALITY_RESULT TQR
+       WHERE TQR.TOTAL_RESULT_ID=
+             (
+               SELECT TWR.RESULT_TOTAL_ID FROM TMSTRUCK_WEIGHT_RESULT TWR
+               WHERE TWR.RESULT_POUND_NO=#{WzInputId})) tt
+    set
+      tt.RESULT_DEDUCTION=#{deductNumber},
+      tt.RESULT_DEDUCTION_DESCRIPTION=#{deductSeason},
+      tt.RESULT_SAMPLING_TIME=#{sampleDate}
+      tt.RESULT_SAMPLING_POINT_ID=#{SamplePlaceName}
+  </update>
+</mapper>

+ 344 - 0
src/main/resources/com/steerinfo/dil/mapper/TmstruckSmsRusultMapper.xml

@@ -0,0 +1,344 @@
+<?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.TmstruckSmsRusultMapper">
+  <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.TmstruckSmsRusult">
+    <id column="RESULT_ID" jdbcType="DECIMAL" property="resultId" />
+    <result column="TOTAL_RESULT_ID" jdbcType="DECIMAL" property="totalResultId" />
+    <result column="SENDER_ID" jdbcType="DECIMAL" property="senderId" />
+    <result column="RESULT_SENDING_TIME" jdbcType="TIMESTAMP" property="resultSendingTime" />
+    <result column="RESULT_SMS_CONTENT" jdbcType="VARCHAR" property="resultSmsContent" />
+    <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_ID, TOTAL_RESULT_ID, SENDER_ID, RESULT_SENDING_TIME, RESULT_SMS_CONTENT, INSERT_USERNAME, 
+    INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK
+  </sql>
+  <sql id="columns_alias">
+    t.RESULT_ID, t.TOTAL_RESULT_ID, t.SENDER_ID, t.RESULT_SENDING_TIME, t.RESULT_SMS_CONTENT, 
+    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_SMS_RUSULT
+  </sql>
+  <sql id="select_alias">
+    SELECT <include refid="columns_alias"/> FROM TMSTRUCK_SMS_RUSULT t
+  </sql>
+  <sql id="where">
+    <where> 
+      <if test="resultId != null">
+        and RESULT_ID = #{resultId}
+      </if>
+      <if test="totalResultId != null">
+        and TOTAL_RESULT_ID = #{totalResultId}
+      </if>
+      <if test="senderId != null">
+        and SENDER_ID = #{senderId}
+      </if>
+      <if test="resultSendingTime != null">
+        and TO_CHAR(RESULT_SENDING_TIME,'yyyy-MM-dd') = #{resultSendingTime}
+      </if>
+      <if test="resultSmsContent != null and resultSmsContent != ''">
+        and RESULT_SMS_CONTENT = #{resultSmsContent}
+      </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="resultId != null">
+        and RESULT_ID = #{resultId}
+      </if>
+      <if test="totalResultId != null">
+        and TOTAL_RESULT_ID = #{totalResultId}
+      </if>
+      <if test="senderId != null">
+        and SENDER_ID = #{senderId}
+      </if>
+      <if test="resultSendingTime != null">
+        and TO_CHAR(RESULT_SENDING_TIME,'yyyy-MM-dd') = #{resultSendingTime}
+      </if>
+      <if test="resultSmsContent != null and resultSmsContent != ''">
+        and RESULT_SMS_CONTENT LIKE '%${resultSmsContent}%'
+      </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_SMS_RUSULT
+    where RESULT_ID = #{resultId,jdbcType=DECIMAL}
+  </delete>
+  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
+    delete from TMSTRUCK_SMS_RUSULT
+    where 1!=1 
+      <if test="totalResultId != null">
+        or TOTAL_RESULT_ID = #{totalResultId}
+      </if>
+      <if test="senderId != null">
+        or SENDER_ID = #{senderId}
+      </if>
+      <if test="resultSendingTime != null">
+        or TO_CHAR(RESULT_SENDING_TIME,'yyyy-MM-dd') = '#{resultSendingTime}'
+      </if>
+      <if test="resultSmsContent != null and resultSmsContent != ''">
+        or RESULT_SMS_CONTENT = #{resultSmsContent}
+      </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.TmstruckSmsRusult">
+    insert into TMSTRUCK_SMS_RUSULT (RESULT_ID, TOTAL_RESULT_ID, SENDER_ID, 
+      RESULT_SENDING_TIME, RESULT_SMS_CONTENT, 
+      INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, 
+      UPDATE_TIME, INSERT_UPDATE_REMARK)
+    values (#{resultId,jdbcType=DECIMAL}, #{totalResultId,jdbcType=DECIMAL}, #{senderId,jdbcType=DECIMAL}, 
+      #{resultSendingTime,jdbcType=TIMESTAMP}, #{resultSmsContent,jdbcType=VARCHAR}, 
+      #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, 
+      #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.steerinfo.dil.model.TmstruckSmsRusult">
+    insert into TMSTRUCK_SMS_RUSULT
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="resultId != null">
+        RESULT_ID,
+      </if>
+      <if test="totalResultId != null">
+        TOTAL_RESULT_ID,
+      </if>
+      <if test="senderId != null">
+        SENDER_ID,
+      </if>
+      <if test="resultSendingTime != null">
+        RESULT_SENDING_TIME,
+      </if>
+      <if test="resultSmsContent != null">
+        RESULT_SMS_CONTENT,
+      </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="resultId != null">
+        #{resultId,jdbcType=DECIMAL},
+      </if>
+      <if test="totalResultId != null">
+        #{totalResultId,jdbcType=DECIMAL},
+      </if>
+      <if test="senderId != null">
+        #{senderId,jdbcType=DECIMAL},
+      </if>
+      <if test="resultSendingTime != null">
+        #{resultSendingTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="resultSmsContent != null">
+        #{resultSmsContent,jdbcType=VARCHAR},
+      </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.TmstruckSmsRusult">
+    update TMSTRUCK_SMS_RUSULT
+    set TOTAL_RESULT_ID = #{totalResultId,jdbcType=DECIMAL},
+      SENDER_ID = #{senderId,jdbcType=DECIMAL},
+      RESULT_SENDING_TIME = #{resultSendingTime,jdbcType=TIMESTAMP},
+      RESULT_SMS_CONTENT = #{resultSmsContent,jdbcType=VARCHAR},
+      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_ID = #{resultId,jdbcType=DECIMAL}
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.TmstruckSmsRusult">
+    update TMSTRUCK_SMS_RUSULT
+    <set>
+      <if test="totalResultId != null">
+        TOTAL_RESULT_ID = #{totalResultId,jdbcType=DECIMAL},
+      </if>
+      <if test="senderId != null">
+        SENDER_ID = #{senderId,jdbcType=DECIMAL},
+      </if>
+      <if test="resultSendingTime != null">
+        RESULT_SENDING_TIME = #{resultSendingTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="resultSmsContent != null">
+        RESULT_SMS_CONTENT = #{resultSmsContent,jdbcType=VARCHAR},
+      </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_ID = #{resultId,jdbcType=DECIMAL}
+  </update>
+  <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
+    <include refid="select"/>
+    where RESULT_ID = #{resultId,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_SMS_RUSULT 
+      (RESULT_ID, 
+      TOTAL_RESULT_ID, SENDER_ID, RESULT_SENDING_TIME, 
+      RESULT_SMS_CONTENT, INSERT_USERNAME, 
+      INSERT_TIME, UPDATE_USERNAME, 
+      UPDATE_TIME, INSERT_UPDATE_REMARK
+      )
+    ( <foreach collection="list" item="item" separator="union all"> 
+   select  
+      #{item.resultId,jdbcType=DECIMAL}, 
+      #{item.totalResultId,jdbcType=DECIMAL}, #{item.senderId,jdbcType=DECIMAL}, #{item.resultSendingTime,jdbcType=TIMESTAMP}, 
+      #{item.resultSmsContent,jdbcType=VARCHAR}, #{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_SMS_RUSULT
+     set
+       RESULT_ID=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.resultId,jdbcType=DECIMAL}
+       </foreach>
+       ,TOTAL_RESULT_ID=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.totalResultId,jdbcType=DECIMAL}
+       </foreach>
+       ,SENDER_ID=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.senderId,jdbcType=DECIMAL}
+       </foreach>
+       ,RESULT_SENDING_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.resultSendingTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,RESULT_SMS_CONTENT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.resultSmsContent,jdbcType=VARCHAR}
+       </foreach>
+       ,INSERT_USERNAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
+       </foreach>
+       ,INSERT_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,UPDATE_USERNAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
+       </foreach>
+       ,UPDATE_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,INSERT_UPDATE_REMARK=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
+          when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
+       </foreach>
+     where RESULT_ID in 
+     <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
+    #{item.resultId,jdbcType=DECIMAL}
+     </foreach> 
+  </update>
+  <delete id="batchDelete" parameterType="java.util.List">
+    delete from TMSTRUCK_SMS_RUSULT
+    where RESULT_ID in 
+    <foreach collection="list" item="id" open="(" close=")" separator=",">
+      #{id}
+    </foreach>
+  </delete>
+  <!-- 友情提示!!!-->
+  <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
+  
+</mapper>