瀏覽代碼

修改了后端接口

duyong 4 年之前
父節點
當前提交
0a67d4cb6b
共有 24 個文件被更改,包括 10510 次插入4776 次删除
  1. 13 1
      src/main/java/com/steerinfo/baseinfo/meterbasecar/controller/MeterBaseCarController.java
  2. 14 0
      src/main/java/com/steerinfo/baseinfo/meterbasedriver/controller/MeterBaseDriverController.java
  3. 3 0
      src/main/java/com/steerinfo/baseinfo/meterbasedriver/mapper/MeterBaseDriverMapper.xml
  4. 110 0
      src/main/java/com/steerinfo/baseinfo/meterbasetravellingmerchant/controller/MeterBaseTravellingMerchantController.java
  5. 10 0
      src/main/java/com/steerinfo/baseinfo/meterbasetravellingmerchant/mapper/MeterBaseTravellingMerchantMapper.java
  6. 448 0
      src/main/java/com/steerinfo/baseinfo/meterbasetravellingmerchant/mapper/MeterBaseTravellingMerchantMapper.xml
  7. 242 0
      src/main/java/com/steerinfo/baseinfo/meterbasetravellingmerchant/model/MeterBaseTravellingMerchant.java
  8. 23 0
      src/main/java/com/steerinfo/baseinfo/meterbasetravellingmerchant/service/IMeterBaseTravellingMerchantService.java
  9. 36 0
      src/main/java/com/steerinfo/baseinfo/meterbasetravellingmerchant/service/impl/MeterBaseTravellingMerchantServiceImpl.java
  10. 32 6
      src/main/java/com/steerinfo/meterwork/meterworkcaractual/service/impl/MeterWorkCarActualServiceImpl.java
  11. 26 0
      src/main/java/com/steerinfo/meterwork/meterworkcaractualfirst/service/impl/MeterWorkCarActualFirstServiceImpl.java
  12. 132 0
      src/main/java/com/steerinfo/meterwork/meterworkmeasuringinstrument/controller/MeterWorkMeasuringInstrumentController.java
  13. 12 0
      src/main/java/com/steerinfo/meterwork/meterworkmeasuringinstrument/mapper/MeterWorkMeasuringInstrumentMapper.java
  14. 2717 0
      src/main/java/com/steerinfo/meterwork/meterworkmeasuringinstrument/mapper/MeterWorkMeasuringInstrumentMapper.xml
  15. 1563 0
      src/main/java/com/steerinfo/meterwork/meterworkmeasuringinstrument/model/MeterWorkMeasuringInstrument.java
  16. 24 0
      src/main/java/com/steerinfo/meterwork/meterworkmeasuringinstrument/service/IMeterWorkMeasuringInstrumentService.java
  17. 71 0
      src/main/java/com/steerinfo/meterwork/meterworkmeasuringinstrument/service/impl/MeterWorkMeasuringInstrumentServiceImpl.java
  18. 10 0
      src/main/java/com/steerinfo/meterwork/meterworkrailwayactfirst/service/impl/MeterWorkRailwayActFirstServiceImpl.java
  19. 28 10
      src/main/java/com/steerinfo/meterwork/meterworkrailwayactual/service/impl/MeterWorkRailwayActualServiceImpl.java
  20. 2280 2237
      src/main/java/com/steerinfo/pretrack/prerailwayscale/mapper/PreRailwayScaleMapper.xml
  21. 30 1
      src/main/java/com/steerinfo/pretrack/prerailwayscale/model/PreRailwayScale.java
  22. 5 1
      src/main/java/com/steerinfo/pretrack/prerailwayscale/service/impl/PreRailwayScaleServiceImpl.java
  23. 2616 2515
      src/main/java/com/steerinfo/pretrack/pretrackscale/mapper/PreTrackScaleMapper.xml
  24. 65 5
      src/main/java/com/steerinfo/pretrack/pretrackscale/model/PreTrackScale.java

+ 13 - 1
src/main/java/com/steerinfo/baseinfo/meterbasecar/controller/MeterBaseCarController.java

@@ -6,6 +6,8 @@ import com.steerinfo.baseinfo.meterbasecussupcar.model.MeterBaseCusSupCar;
 import com.steerinfo.baseinfo.meterbasedriver.mapper.MeterBaseDriverMapper;
 import com.steerinfo.baseinfo.meterbasedriver.model.MeterBaseDriver;
 import com.steerinfo.baseinfo.meterbasedriver.service.IMeterBaseDriverService;
+import com.steerinfo.baseinfo.meterbasetravellingmerchant.mapper.MeterBaseTravellingMerchantMapper;
+import com.steerinfo.baseinfo.meterbasetravellingmerchant.model.MeterBaseTravellingMerchant;
 import com.steerinfo.framework.controller.BaseRESTfulController;
 import com.steerinfo.framework.controller.RESTfulResult;
 import com.steerinfo.framework.service.pagehelper.PageList;
@@ -60,6 +62,9 @@ public class MeterBaseCarController extends BaseRESTfulController {
     @Autowired
     MeterBaseDriverMapper meterBaseDriverMapper;
 
+    @Autowired
+    MeterBaseTravellingMerchantMapper meterBaseTravellingMerchantMapper;
+
     @ApiOperation(value = "获取列表", notes = "分页查询")
     @ApiImplicitParams({
             @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
@@ -319,7 +324,7 @@ public class MeterBaseCarController extends BaseRESTfulController {
 
         String msg = "";
         Object ssodata = "";
-
+        int userType = 1;
         try {
             SSOUtil ssoUtil = new SSOUtil();
             HashMap map = ssoUtil.ssoLogin(params, "");
@@ -329,6 +334,13 @@ public class MeterBaseCarController extends BaseRESTfulController {
             } else {
                 msg = map.get("msg").toString();
             }
+            HashMap trave = new HashMap();
+            trave.put("travellingMerchantName",params.get("carNo"));
+            trave.put("travellingMerchantPossword",params.get("password"));
+            List<MeterBaseTravellingMerchant> meterBaseTravellingMerchant = meterBaseTravellingMerchantMapper.selectByParameters(trave);
+            if (meterBaseTravellingMerchant.size()>0){
+                userType = 2;
+            }
 
             if (com.steerinfo.util.StringUtils.isNotEmpty(msg)) {
                 return failed(null, msg);

+ 14 - 0
src/main/java/com/steerinfo/baseinfo/meterbasedriver/controller/MeterBaseDriverController.java

@@ -19,6 +19,7 @@ import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiImplicitParam;
 import io.swagger.annotations.ApiImplicitParams;
 import io.swagger.annotations.ApiOperation;
+import io.swagger.models.auth.In;
 import org.apache.shiro.authz.annotation.RequiresPermissions;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.transaction.annotation.Transactional;
@@ -75,6 +76,19 @@ public class MeterBaseDriverController extends BaseRESTfulController {
         PageList<MeterBaseDriver> list = meterBaseDriverService.queryLikeForPage(parmas, pageNum, pageSize);
         return success(list);
     }
+
+    @ApiOperation(value="获取列表", notes="分页模糊查询")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
+            @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer")
+    })
+    @PostMapping(value = "/like/")
+    public RESTfulResult listLikepost(@RequestBody HashMap parmas){
+        Integer pageNum = parmas.get("pageNum") == null ? 1 : Integer.parseInt(parmas.get("pageNum").toString());
+        Integer pageSize = parmas.get("pageSize") == null ? 20 : Integer.parseInt(parmas.get("pageSize").toString());
+        PageList<MeterBaseDriver> list = meterBaseDriverService.queryLikeForPage(parmas, pageNum, pageSize);
+        return success(list);
+    }
     
     @ApiOperation(value="创建", notes="根据MeterBaseDriver对象创建")
     @ApiImplicitParam(name = "meterBaseDriver", value = "详细实体meterBaseDriver", required = true, dataType = "MeterBaseDriver")

+ 3 - 0
src/main/java/com/steerinfo/baseinfo/meterbasedriver/mapper/MeterBaseDriverMapper.xml

@@ -137,6 +137,9 @@
       <if test="carId != null and carId != ''">
         and CAR_ID LIKE '%${carId}%'
       </if>
+      <if test="startTime != null and endTime != null and startTime != '' and endTime != ''">
+        and  CREATE_TIME  >= TO_DATE(#{startTime}, 'yyyy-MM-dd HH24:mi:ss') and CREATE_TIME  &lt;=  TO_DATE(#{endTime}, 'yyyy-MM-dd HH24:mi:ss')
+      </if>
     </where>
   </sql>
   <delete id="deleteByPrimaryKey" parameterType="java.lang.String">

+ 110 - 0
src/main/java/com/steerinfo/baseinfo/meterbasetravellingmerchant/controller/MeterBaseTravellingMerchantController.java

@@ -0,0 +1,110 @@
+package com.steerinfo.baseinfo.meterbasetravellingmerchant.controller;
+
+import com.steerinfo.framework.controller.BaseRESTfulController;
+import com.steerinfo.framework.controller.RESTfulResult;
+import com.steerinfo.framework.service.pagehelper.PageList;
+import com.steerinfo.framework.utils.collection.ListUtils;
+import com.steerinfo.baseinfo.meterbasetravellingmerchant.model.MeterBaseTravellingMerchant;
+import com.steerinfo.baseinfo.meterbasetravellingmerchant.service.IMeterBaseTravellingMerchantService;
+import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiImplicitParams;
+import io.swagger.annotations.ApiOperation;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.List;
+import java.util.ArrayList;
+import java.math.BigDecimal;
+
+/**
+ * MeterBaseTravellingMerchant RESTful接口:
+ * @author generator
+ * @version 1.0-SNAPSHORT 2022-03-04 04:01
+ * 类描述
+ * 修订历史:
+ * 日期:2022-03-04
+ * 作者:generator
+ * 参考:
+ * 描述:MeterBaseTravellingMerchant RESTful接口
+ * @see null
+ * @Copyright 湖南视拓信息技术股份有限公司. All rights reserved.
+ */
+@RestController
+@RequestMapping("/${api.version}/meterbasetravellingmerchants")
+public class MeterBaseTravellingMerchantController extends BaseRESTfulController {
+
+    @Autowired
+    IMeterBaseTravellingMerchantService meterBaseTravellingMerchantService;
+
+    @ApiOperation(value="获取列表", notes="分页查询")
+    @ApiImplicitParams({
+        @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
+        @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer")
+    })
+    //@RequiresPermissions("meterbasetravellingmerchant:view")
+    @GetMapping(value = "/")
+    public RESTfulResult list(@RequestParam HashMap parmas,Integer pageNum, Integer pageSize){
+        PageList<MeterBaseTravellingMerchant> list = meterBaseTravellingMerchantService.queryForPage(parmas, pageNum, pageSize);
+        return success(list);
+    }
+
+    @ApiOperation(value="获取列表", notes="分页模糊查询")
+    @ApiImplicitParams({
+        @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
+        @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer")
+    })
+    //@RequiresPermissions("meterbasetravellingmerchant:view")
+    @GetMapping(value = "/like/")
+    public RESTfulResult listLike(@RequestParam HashMap parmas,Integer pageNum, Integer pageSize){
+        PageList<MeterBaseTravellingMerchant> list = meterBaseTravellingMerchantService.queryLikeForPage(parmas, pageNum, pageSize);
+        return success(list);
+    }
+    
+    @ApiOperation(value="创建", notes="根据MeterBaseTravellingMerchant对象创建")
+    @ApiImplicitParam(name = "meterBaseTravellingMerchant", value = "详细实体meterBaseTravellingMerchant", required = true, dataType = "MeterBaseTravellingMerchant")
+    //@RequiresPermissions("meterbasetravellingmerchant:create")
+    @PostMapping(value = "/")
+    public RESTfulResult add(@ModelAttribute MeterBaseTravellingMerchant model){
+        MeterBaseTravellingMerchant meterBaseTravellingMerchant = meterBaseTravellingMerchantService.add(model);
+        return success(meterBaseTravellingMerchant);
+    }
+
+    @ApiOperation(value="获取详细信息", notes="根据url的id来获取详细信息")
+    @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "String")
+    //@RequiresPermissions("meterbasetravellingmerchant:view")
+    @GetMapping(value = "/{id}")
+    public RESTfulResult get(@PathVariable String id){
+        MeterBaseTravellingMerchant meterBaseTravellingMerchant = meterBaseTravellingMerchantService.getById(id);
+        return success(meterBaseTravellingMerchant);
+    }
+
+    @ApiOperation(value="更新详细信息", notes="根据url的id来指定更新对象,并根据传过来的meterBaseTravellingMerchant信息来更新详细信息")
+    @ApiImplicitParams({
+        @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "String"),
+        @ApiImplicitParam(name = "meterBaseTravellingMerchant", value = "详细实体meterBaseTravellingMerchant", required = true, dataType = "MeterBaseTravellingMerchant")
+    })
+    //@RequiresPermissions("meterbasetravellingmerchant:update")
+    @PutMapping(value = "/{id}", produces  = "application/json;charset=UTF-8")
+    public RESTfulResult update(@PathVariable String id, @RequestBody MeterBaseTravellingMerchant model){
+        model.setId(id);
+        MeterBaseTravellingMerchant meterBaseTravellingMerchant = meterBaseTravellingMerchantService.modify(model);
+        return success(meterBaseTravellingMerchant);
+    }
+
+    @ApiOperation(value="删除", notes="根据url的id来指定删除对象")
+    @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "String")
+    //@RequiresPermissions("meterbasetravellingmerchant:delete")
+    @DeleteMapping(value = "/{id}")//String
+    public RESTfulResult delete(@PathVariable String id){
+    	List<String> list = Arrays.asList(id.split(","));
+    	if(ListUtils.isNotEmpty(list)) {
+	    	List<String> ids = ListUtils.convertList(list);
+			  meterBaseTravellingMerchantService.delete(ids);
+    	}
+      return success();
+    }
+}

+ 10 - 0
src/main/java/com/steerinfo/baseinfo/meterbasetravellingmerchant/mapper/MeterBaseTravellingMerchantMapper.java

@@ -0,0 +1,10 @@
+package com.steerinfo.baseinfo.meterbasetravellingmerchant.mapper;
+
+import com.steerinfo.baseinfo.meterbasetravellingmerchant.model.MeterBaseTravellingMerchant;
+import com.steerinfo.framework.mapper.IBaseMapper;
+import java.math.*;
+import org.apache.ibatis.annotations.Mapper;
+
+@Mapper
+public interface MeterBaseTravellingMerchantMapper extends IBaseMapper<MeterBaseTravellingMerchant, String> {
+}

+ 448 - 0
src/main/java/com/steerinfo/baseinfo/meterbasetravellingmerchant/mapper/MeterBaseTravellingMerchantMapper.xml

@@ -0,0 +1,448 @@
+<?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.baseinfo.meterbasetravellingmerchant.mapper.MeterBaseTravellingMerchantMapper">
+  <resultMap id="BaseResultMap" type="com.steerinfo.baseinfo.meterbasetravellingmerchant.model.MeterBaseTravellingMerchant">
+    <id column="TRAVELLING_MERCHANT_NO" jdbcType="VARCHAR" property="travellingMerchantNo" />
+    <result column="TRAVELLING_MERCHANT_NAME" jdbcType="VARCHAR" property="travellingMerchantName" />
+    <result column="TRAVELLING_MERCHANT_POSSWORD" jdbcType="VARCHAR" property="travellingMerchantPossword" />
+    <result column="MEMO" jdbcType="VARCHAR" property="memo" />
+    <result column="VALID_FLAG" jdbcType="VARCHAR" property="validFlag" />
+    <result column="CREATE_MAN_NO" jdbcType="VARCHAR" property="createManNo" />
+    <result column="CREATE_MAN_NAME" jdbcType="VARCHAR" property="createManName" />
+    <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
+    <result column="UPDATE_MAN_NO" jdbcType="VARCHAR" property="updateManNo" />
+    <result column="UPDATE_MAN_NAME" jdbcType="VARCHAR" property="updateManName" />
+    <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
+    <result column="DELETE_MAN_NO" jdbcType="VARCHAR" property="deleteManNo" />
+    <result column="DELETE_MAN_NAME" jdbcType="VARCHAR" property="deleteManName" />
+    <result column="DELETE_TIME" jdbcType="TIMESTAMP" property="deleteTime" />
+  </resultMap>
+  <sql id="columns">
+    TRAVELLING_MERCHANT_NO, TRAVELLING_MERCHANT_NAME, TRAVELLING_MERCHANT_POSSWORD, MEMO, 
+    VALID_FLAG, CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, UPDATE_MAN_NO, UPDATE_MAN_NAME, 
+    UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME
+  </sql>
+  <sql id="columns_alias">
+    t.TRAVELLING_MERCHANT_NO, t.TRAVELLING_MERCHANT_NAME, t.TRAVELLING_MERCHANT_POSSWORD, 
+    t.MEMO, t.VALID_FLAG, t.CREATE_MAN_NO, t.CREATE_MAN_NAME, t.CREATE_TIME, t.UPDATE_MAN_NO, 
+    t.UPDATE_MAN_NAME, t.UPDATE_TIME, t.DELETE_MAN_NO, t.DELETE_MAN_NAME, t.DELETE_TIME
+  </sql>
+  <sql id="select">
+    SELECT <include refid="columns"/> FROM METER_BASE_TRAVELLING_MERCHANT
+  </sql>
+  <sql id="select_alias">
+    SELECT <include refid="columns_alias"/> FROM METER_BASE_TRAVELLING_MERCHANT t
+  </sql>
+  <sql id="where">
+    <where> 
+      <if test="travellingMerchantNo != null and travellingMerchantNo != ''">
+        and TRAVELLING_MERCHANT_NO = #{travellingMerchantNo}
+      </if>
+      <if test="travellingMerchantName != null and travellingMerchantName != ''">
+        and TRAVELLING_MERCHANT_NAME = #{travellingMerchantName}
+      </if>
+      <if test="travellingMerchantPossword != null and travellingMerchantPossword != ''">
+        and TRAVELLING_MERCHANT_POSSWORD = #{travellingMerchantPossword}
+      </if>
+      <if test="memo != null and memo != ''">
+        and MEMO = #{memo}
+      </if>
+      <if test="validFlag != null and validFlag != ''">
+        and VALID_FLAG = #{validFlag}
+      </if>
+      <if test="createManNo != null and createManNo != ''">
+        and CREATE_MAN_NO = #{createManNo}
+      </if>
+      <if test="createManName != null and createManName != ''">
+        and CREATE_MAN_NAME = #{createManName}
+      </if>
+      <if test="createTime != null">
+        and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
+      </if>
+      <if test="updateManNo != null and updateManNo != ''">
+        and UPDATE_MAN_NO = #{updateManNo}
+      </if>
+      <if test="updateManName != null and updateManName != ''">
+        and UPDATE_MAN_NAME = #{updateManName}
+      </if>
+      <if test="updateTime != null">
+        and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
+      </if>
+      <if test="deleteManNo != null and deleteManNo != ''">
+        and DELETE_MAN_NO = #{deleteManNo}
+      </if>
+      <if test="deleteManName != null and deleteManName != ''">
+        and DELETE_MAN_NAME = #{deleteManName}
+      </if>
+      <if test="deleteTime != null">
+        and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
+      </if>
+    </where>
+  </sql>
+  <sql id="whereLike">
+    <where> 
+      <if test="travellingMerchantNo != null and travellingMerchantNo != ''">
+        and TRAVELLING_MERCHANT_NO LIKE '%${travellingMerchantNo}%'
+      </if>
+      <if test="travellingMerchantName != null and travellingMerchantName != ''">
+        and TRAVELLING_MERCHANT_NAME LIKE '%${travellingMerchantName}%'
+      </if>
+      <if test="travellingMerchantPossword != null and travellingMerchantPossword != ''">
+        and TRAVELLING_MERCHANT_POSSWORD LIKE '%${travellingMerchantPossword}%'
+      </if>
+      <if test="memo != null and memo != ''">
+        and MEMO LIKE '%${memo}%'
+      </if>
+      <if test="validFlag != null and validFlag != ''">
+        and VALID_FLAG LIKE '%${validFlag}%'
+      </if>
+      <if test="createManNo != null and createManNo != ''">
+        and CREATE_MAN_NO LIKE '%${createManNo}%'
+      </if>
+      <if test="createManName != null and createManName != ''">
+        and CREATE_MAN_NAME LIKE '%${createManName}%'
+      </if>
+      <if test="createTime != null">
+        and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
+      </if>
+      <if test="updateManNo != null and updateManNo != ''">
+        and UPDATE_MAN_NO LIKE '%${updateManNo}%'
+      </if>
+      <if test="updateManName != null and updateManName != ''">
+        and UPDATE_MAN_NAME LIKE '%${updateManName}%'
+      </if>
+      <if test="updateTime != null">
+        and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
+      </if>
+      <if test="deleteManNo != null and deleteManNo != ''">
+        and DELETE_MAN_NO LIKE '%${deleteManNo}%'
+      </if>
+      <if test="deleteManName != null and deleteManName != ''">
+        and DELETE_MAN_NAME LIKE '%${deleteManName}%'
+      </if>
+      <if test="deleteTime != null">
+        and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
+      </if>
+    </where>
+  </sql>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
+    delete from METER_BASE_TRAVELLING_MERCHANT
+    where TRAVELLING_MERCHANT_NO = #{travellingMerchantNo,jdbcType=VARCHAR}
+  </delete>
+  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
+    delete from METER_BASE_TRAVELLING_MERCHANT
+    where 1!=1 
+      <if test="travellingMerchantName != null and travellingMerchantName != ''">
+        or TRAVELLING_MERCHANT_NAME = #{travellingMerchantName}
+      </if>
+      <if test="travellingMerchantPossword != null and travellingMerchantPossword != ''">
+        or TRAVELLING_MERCHANT_POSSWORD = #{travellingMerchantPossword}
+      </if>
+      <if test="memo != null and memo != ''">
+        or MEMO = #{memo}
+      </if>
+      <if test="validFlag != null and validFlag != ''">
+        or VALID_FLAG = #{validFlag}
+      </if>
+      <if test="createManNo != null and createManNo != ''">
+        or CREATE_MAN_NO = #{createManNo}
+      </if>
+      <if test="createManName != null and createManName != ''">
+        or CREATE_MAN_NAME = #{createManName}
+      </if>
+      <if test="createTime != null">
+        or TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = '#{createTime}'
+      </if>
+      <if test="updateManNo != null and updateManNo != ''">
+        or UPDATE_MAN_NO = #{updateManNo}
+      </if>
+      <if test="updateManName != null and updateManName != ''">
+        or UPDATE_MAN_NAME = #{updateManName}
+      </if>
+      <if test="updateTime != null">
+        or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
+      </if>
+      <if test="deleteManNo != null and deleteManNo != ''">
+        or DELETE_MAN_NO = #{deleteManNo}
+      </if>
+      <if test="deleteManName != null and deleteManName != ''">
+        or DELETE_MAN_NAME = #{deleteManName}
+      </if>
+      <if test="deleteTime != null">
+        or TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = '#{deleteTime}'
+      </if>
+  </delete>
+  <insert id="insert" parameterType="com.steerinfo.baseinfo.meterbasetravellingmerchant.model.MeterBaseTravellingMerchant">
+    insert into METER_BASE_TRAVELLING_MERCHANT (TRAVELLING_MERCHANT_NO, TRAVELLING_MERCHANT_NAME, 
+      TRAVELLING_MERCHANT_POSSWORD, MEMO, VALID_FLAG, 
+      CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, 
+      UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME, 
+      DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME
+      )
+    values (#{travellingMerchantNo,jdbcType=VARCHAR}, #{travellingMerchantName,jdbcType=VARCHAR}, 
+      #{travellingMerchantPossword,jdbcType=VARCHAR}, #{memo,jdbcType=VARCHAR}, #{validFlag,jdbcType=VARCHAR}, 
+      #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, 
+      #{updateManNo,jdbcType=VARCHAR}, #{updateManName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, 
+      #{deleteManNo,jdbcType=VARCHAR}, #{deleteManName,jdbcType=VARCHAR}, #{deleteTime,jdbcType=TIMESTAMP}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.steerinfo.baseinfo.meterbasetravellingmerchant.model.MeterBaseTravellingMerchant">
+    insert into METER_BASE_TRAVELLING_MERCHANT
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="travellingMerchantNo != null">
+        TRAVELLING_MERCHANT_NO,
+      </if>
+      <if test="travellingMerchantName != null">
+        TRAVELLING_MERCHANT_NAME,
+      </if>
+      <if test="travellingMerchantPossword != null">
+        TRAVELLING_MERCHANT_POSSWORD,
+      </if>
+      <if test="memo != null">
+        MEMO,
+      </if>
+      <if test="validFlag != null">
+        VALID_FLAG,
+      </if>
+      <if test="createManNo != null">
+        CREATE_MAN_NO,
+      </if>
+      <if test="createManName != null">
+        CREATE_MAN_NAME,
+      </if>
+      <if test="createTime != null">
+        CREATE_TIME,
+      </if>
+      <if test="updateManNo != null">
+        UPDATE_MAN_NO,
+      </if>
+      <if test="updateManName != null">
+        UPDATE_MAN_NAME,
+      </if>
+      <if test="updateTime != null">
+        UPDATE_TIME,
+      </if>
+      <if test="deleteManNo != null">
+        DELETE_MAN_NO,
+      </if>
+      <if test="deleteManName != null">
+        DELETE_MAN_NAME,
+      </if>
+      <if test="deleteTime != null">
+        DELETE_TIME,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="travellingMerchantNo != null">
+        #{travellingMerchantNo,jdbcType=VARCHAR},
+      </if>
+      <if test="travellingMerchantName != null">
+        #{travellingMerchantName,jdbcType=VARCHAR},
+      </if>
+      <if test="travellingMerchantPossword != null">
+        #{travellingMerchantPossword,jdbcType=VARCHAR},
+      </if>
+      <if test="memo != null">
+        #{memo,jdbcType=VARCHAR},
+      </if>
+      <if test="validFlag != null">
+        #{validFlag,jdbcType=VARCHAR},
+      </if>
+      <if test="createManNo != null">
+        #{createManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="createManName != null">
+        #{createManName,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateManNo != null">
+        #{updateManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="updateManName != null">
+        #{updateManName,jdbcType=VARCHAR},
+      </if>
+      <if test="updateTime != null">
+        #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="deleteManNo != null">
+        #{deleteManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="deleteManName != null">
+        #{deleteManName,jdbcType=VARCHAR},
+      </if>
+      <if test="deleteTime != null">
+        #{deleteTime,jdbcType=TIMESTAMP},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKey" parameterType="com.steerinfo.baseinfo.meterbasetravellingmerchant.model.MeterBaseTravellingMerchant">
+    update METER_BASE_TRAVELLING_MERCHANT
+    set TRAVELLING_MERCHANT_NAME = #{travellingMerchantName,jdbcType=VARCHAR},
+      TRAVELLING_MERCHANT_POSSWORD = #{travellingMerchantPossword,jdbcType=VARCHAR},
+      MEMO = #{memo,jdbcType=VARCHAR},
+      VALID_FLAG = #{validFlag,jdbcType=VARCHAR},
+      CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
+      CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
+      CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
+      UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
+      UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
+      UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
+      DELETE_MAN_NO = #{deleteManNo,jdbcType=VARCHAR},
+      DELETE_MAN_NAME = #{deleteManName,jdbcType=VARCHAR},
+      DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP}
+    where TRAVELLING_MERCHANT_NO = #{travellingMerchantNo,jdbcType=VARCHAR}
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.baseinfo.meterbasetravellingmerchant.model.MeterBaseTravellingMerchant">
+    update METER_BASE_TRAVELLING_MERCHANT
+    <set>
+      <if test="travellingMerchantName != null">
+        TRAVELLING_MERCHANT_NAME = #{travellingMerchantName,jdbcType=VARCHAR},
+      </if>
+      <if test="travellingMerchantPossword != null">
+        TRAVELLING_MERCHANT_POSSWORD = #{travellingMerchantPossword,jdbcType=VARCHAR},
+      </if>
+      <if test="memo != null">
+        MEMO = #{memo,jdbcType=VARCHAR},
+      </if>
+      <if test="validFlag != null">
+        VALID_FLAG = #{validFlag,jdbcType=VARCHAR},
+      </if>
+      <if test="createManNo != null">
+        CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="createManName != null">
+        CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateManNo != null">
+        UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="updateManName != null">
+        UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
+      </if>
+      <if test="updateTime != null">
+        UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="deleteManNo != null">
+        DELETE_MAN_NO = #{deleteManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="deleteManName != null">
+        DELETE_MAN_NAME = #{deleteManName,jdbcType=VARCHAR},
+      </if>
+      <if test="deleteTime != null">
+        DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    where TRAVELLING_MERCHANT_NO = #{travellingMerchantNo,jdbcType=VARCHAR}
+  </update>
+  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
+    <include refid="select"/>
+    where TRAVELLING_MERCHANT_NO = #{travellingMerchantNo,jdbcType=VARCHAR}
+  </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 METER_BASE_TRAVELLING_MERCHANT 
+      (TRAVELLING_MERCHANT_NO, 
+      TRAVELLING_MERCHANT_NAME, TRAVELLING_MERCHANT_POSSWORD, 
+      MEMO, VALID_FLAG, CREATE_MAN_NO, 
+      CREATE_MAN_NAME, CREATE_TIME, 
+      UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME, 
+      DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME
+      )
+    ( <foreach collection="list" item="item" separator="union all"> 
+   select  
+      #{item.travellingMerchantNo,jdbcType=VARCHAR}, 
+      #{item.travellingMerchantName,jdbcType=VARCHAR}, #{item.travellingMerchantPossword,jdbcType=VARCHAR}, 
+      #{item.memo,jdbcType=VARCHAR}, #{item.validFlag,jdbcType=VARCHAR}, #{item.createManNo,jdbcType=VARCHAR}, 
+      #{item.createManName,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, 
+      #{item.updateManNo,jdbcType=VARCHAR}, #{item.updateManName,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, 
+      #{item.deleteManNo,jdbcType=VARCHAR}, #{item.deleteManName,jdbcType=VARCHAR}, #{item.deleteTime,jdbcType=TIMESTAMP}
+       from dual  
+   </foreach> )
+  </insert>
+  <update id="batchUpdate" parameterType="java.util.List">
+     update METER_BASE_TRAVELLING_MERCHANT
+     set
+       TRAVELLING_MERCHANT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case TRAVELLING_MERCHANT_NO" close="end">
+          when #{item.travellingMerchantNo,jdbcType=VARCHAR} then #{item.travellingMerchantNo,jdbcType=VARCHAR}
+       </foreach>
+       ,TRAVELLING_MERCHANT_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case TRAVELLING_MERCHANT_NO" close="end">
+          when #{item.travellingMerchantNo,jdbcType=VARCHAR} then #{item.travellingMerchantName,jdbcType=VARCHAR}
+       </foreach>
+       ,TRAVELLING_MERCHANT_POSSWORD=
+       <foreach collection="list" item="item" index="index" separator=" " open="case TRAVELLING_MERCHANT_NO" close="end">
+          when #{item.travellingMerchantNo,jdbcType=VARCHAR} then #{item.travellingMerchantPossword,jdbcType=VARCHAR}
+       </foreach>
+       ,MEMO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case TRAVELLING_MERCHANT_NO" close="end">
+          when #{item.travellingMerchantNo,jdbcType=VARCHAR} then #{item.memo,jdbcType=VARCHAR}
+       </foreach>
+       ,VALID_FLAG=
+       <foreach collection="list" item="item" index="index" separator=" " open="case TRAVELLING_MERCHANT_NO" close="end">
+          when #{item.travellingMerchantNo,jdbcType=VARCHAR} then #{item.validFlag,jdbcType=VARCHAR}
+       </foreach>
+       ,CREATE_MAN_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case TRAVELLING_MERCHANT_NO" close="end">
+          when #{item.travellingMerchantNo,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CREATE_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case TRAVELLING_MERCHANT_NO" close="end">
+          when #{item.travellingMerchantNo,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
+       </foreach>
+       ,CREATE_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case TRAVELLING_MERCHANT_NO" close="end">
+          when #{item.travellingMerchantNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,UPDATE_MAN_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case TRAVELLING_MERCHANT_NO" close="end">
+          when #{item.travellingMerchantNo,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=VARCHAR}
+       </foreach>
+       ,UPDATE_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case TRAVELLING_MERCHANT_NO" close="end">
+          when #{item.travellingMerchantNo,jdbcType=VARCHAR} then #{item.updateManName,jdbcType=VARCHAR}
+       </foreach>
+       ,UPDATE_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case TRAVELLING_MERCHANT_NO" close="end">
+          when #{item.travellingMerchantNo,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,DELETE_MAN_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case TRAVELLING_MERCHANT_NO" close="end">
+          when #{item.travellingMerchantNo,jdbcType=VARCHAR} then #{item.deleteManNo,jdbcType=VARCHAR}
+       </foreach>
+       ,DELETE_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case TRAVELLING_MERCHANT_NO" close="end">
+          when #{item.travellingMerchantNo,jdbcType=VARCHAR} then #{item.deleteManName,jdbcType=VARCHAR}
+       </foreach>
+       ,DELETE_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case TRAVELLING_MERCHANT_NO" close="end">
+          when #{item.travellingMerchantNo,jdbcType=VARCHAR} then #{item.deleteTime,jdbcType=TIMESTAMP}
+       </foreach>
+     where TRAVELLING_MERCHANT_NO in 
+     <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
+    #{item.travellingMerchantNo,jdbcType=VARCHAR}
+     </foreach> 
+  </update>
+  <delete id="batchDelete" parameterType="java.util.List">
+    delete from METER_BASE_TRAVELLING_MERCHANT
+    where TRAVELLING_MERCHANT_NO in 
+    <foreach collection="list" item="id" open="(" close=")" separator=",">
+      #{id}
+    </foreach>
+  </delete>
+  <!-- 友情提示!!!-->
+  <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
+  
+</mapper>

+ 242 - 0
src/main/java/com/steerinfo/baseinfo/meterbasetravellingmerchant/model/MeterBaseTravellingMerchant.java

@@ -0,0 +1,242 @@
+package com.steerinfo.baseinfo.meterbasetravellingmerchant.model;
+
+import com.steerinfo.framework.model.IBasePO;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.util.Date;
+
+@ApiModel(value="null")
+public class MeterBaseTravellingMerchant implements IBasePO<String> {
+    /**
+     * 主键编号(TRAVELLING_MERCHANT_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="主键编号",required=true)
+    private String travellingMerchantNo;
+
+    /**
+     * 客商名称(TRAVELLING_MERCHANT_NAME,VARCHAR,255)
+     */
+    @ApiModelProperty(value="客商名称",required=false)
+    private String travellingMerchantName;
+
+    /**
+     * 客商密码(TRAVELLING_MERCHANT_POSSWORD,VARCHAR,255)
+     */
+    @ApiModelProperty(value="客商密码",required=false)
+    private String travellingMerchantPossword;
+
+    /**
+     * 备注(MEMO,VARCHAR,200)
+     */
+    @ApiModelProperty(value="备注",required=false)
+    private String memo;
+
+    /**
+     * 状态(0:无效;1:有效)(VALID_FLAG,VARCHAR,1)
+     */
+    @ApiModelProperty(value="状态(0:无效;1:有效)",required=true)
+    private String validFlag;
+
+    /**
+     * 创建人编号(CREATE_MAN_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="创建人编号",required=true)
+    private String createManNo;
+
+    /**
+     * 创建人姓名(CREATE_MAN_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="创建人姓名",required=true)
+    private String createManName;
+
+    /**
+     * 创建时间(YYYY-MM-DD HH:mm:SS)(CREATE_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="创建时间(YYYY-MM-DD HH:mm:SS)",required=true)
+    private Date createTime;
+
+    /**
+     * 修改人编号(UPDATE_MAN_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="修改人编号",required=false)
+    private String updateManNo;
+
+    /**
+     * 修改人姓名(UPDATE_MAN_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="修改人姓名",required=false)
+    private String updateManName;
+
+    /**
+     * 修改时间(YYYY-MM-DD HH:mm:SS)(UPDATE_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="修改时间(YYYY-MM-DD HH:mm:SS)",required=false)
+    private Date updateTime;
+
+    /**
+     * 删除人编号(DELETE_MAN_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="删除人编号",required=false)
+    private String deleteManNo;
+
+    /**
+     * 删除人姓名(DELETE_MAN_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="删除人姓名",required=false)
+    private String deleteManName;
+
+    /**
+     * 删除时间(YYYY-MM-DD HH:mm:SS)(DELETE_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="删除时间(YYYY-MM-DD HH:mm:SS)",required=false)
+    private Date deleteTime;
+
+    private static final long serialVersionUID = 1L;
+
+    @Override
+    public String getId() {
+        return this.travellingMerchantNo;
+    }
+
+    @Override
+    public void setId(String travellingMerchantNo) {
+        this.travellingMerchantNo = travellingMerchantNo == null ? null : travellingMerchantNo.trim();
+    }
+
+    public String getTravellingMerchantNo() {
+        return travellingMerchantNo;
+    }
+
+    public void setTravellingMerchantNo(String travellingMerchantNo) {
+        this.travellingMerchantNo = travellingMerchantNo == null ? null : travellingMerchantNo.trim();
+    }
+
+    public String getTravellingMerchantName() {
+        return travellingMerchantName;
+    }
+
+    public void setTravellingMerchantName(String travellingMerchantName) {
+        this.travellingMerchantName = travellingMerchantName == null ? null : travellingMerchantName.trim();
+    }
+
+    public String getTravellingMerchantPossword() {
+        return travellingMerchantPossword;
+    }
+
+    public void setTravellingMerchantPossword(String travellingMerchantPossword) {
+        this.travellingMerchantPossword = travellingMerchantPossword == null ? null : travellingMerchantPossword.trim();
+    }
+
+    public String getMemo() {
+        return memo;
+    }
+
+    public void setMemo(String memo) {
+        this.memo = memo == null ? null : memo.trim();
+    }
+
+    public String getValidFlag() {
+        return validFlag;
+    }
+
+    public void setValidFlag(String validFlag) {
+        this.validFlag = validFlag == null ? null : validFlag.trim();
+    }
+
+    public String getCreateManNo() {
+        return createManNo;
+    }
+
+    public void setCreateManNo(String createManNo) {
+        this.createManNo = createManNo == null ? null : createManNo.trim();
+    }
+
+    public String getCreateManName() {
+        return createManName;
+    }
+
+    public void setCreateManName(String createManName) {
+        this.createManName = createManName == null ? null : createManName.trim();
+    }
+
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    public String getUpdateManNo() {
+        return updateManNo;
+    }
+
+    public void setUpdateManNo(String updateManNo) {
+        this.updateManNo = updateManNo == null ? null : updateManNo.trim();
+    }
+
+    public String getUpdateManName() {
+        return updateManName;
+    }
+
+    public void setUpdateManName(String updateManName) {
+        this.updateManName = updateManName == null ? null : updateManName.trim();
+    }
+
+    public Date getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Date updateTime) {
+        this.updateTime = updateTime;
+    }
+
+    public String getDeleteManNo() {
+        return deleteManNo;
+    }
+
+    public void setDeleteManNo(String deleteManNo) {
+        this.deleteManNo = deleteManNo == null ? null : deleteManNo.trim();
+    }
+
+    public String getDeleteManName() {
+        return deleteManName;
+    }
+
+    public void setDeleteManName(String deleteManName) {
+        this.deleteManName = deleteManName == null ? null : deleteManName.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(", travellingMerchantNo=").append(travellingMerchantNo);
+        sb.append(", travellingMerchantName=").append(travellingMerchantName);
+        sb.append(", travellingMerchantPossword=").append(travellingMerchantPossword);
+        sb.append(", memo=").append(memo);
+        sb.append(", validFlag=").append(validFlag);
+        sb.append(", createManNo=").append(createManNo);
+        sb.append(", createManName=").append(createManName);
+        sb.append(", createTime=").append(createTime);
+        sb.append(", updateManNo=").append(updateManNo);
+        sb.append(", updateManName=").append(updateManName);
+        sb.append(", updateTime=").append(updateTime);
+        sb.append(", deleteManNo=").append(deleteManNo);
+        sb.append(", deleteManName=").append(deleteManName);
+        sb.append(", deleteTime=").append(deleteTime);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 23 - 0
src/main/java/com/steerinfo/baseinfo/meterbasetravellingmerchant/service/IMeterBaseTravellingMerchantService.java

@@ -0,0 +1,23 @@
+package com.steerinfo.baseinfo.meterbasetravellingmerchant.service;
+
+import com.steerinfo.framework.service.IBaseService;
+import com.steerinfo.baseinfo.meterbasetravellingmerchant.model.MeterBaseTravellingMerchant;
+import java.util.Date;
+import java.math.BigDecimal;
+
+/**
+ * MeterBaseTravellingMerchant服务接口:
+ * @author generator
+ * @version 1.0-SNAPSHORT 2022-03-04 04:01
+ * 类描述
+ * 修订历史:
+ * 日期:2022-03-04
+ * 作者:generator
+ * 参考:
+ * 描述:MeterBaseTravellingMerchant服务接口
+ * @see null
+ * @Copyright 湖南视拓信息技术股份有限公司. All rights reserved.
+ */
+public interface IMeterBaseTravellingMerchantService extends IBaseService<MeterBaseTravellingMerchant, String>{
+
+}

+ 36 - 0
src/main/java/com/steerinfo/baseinfo/meterbasetravellingmerchant/service/impl/MeterBaseTravellingMerchantServiceImpl.java

@@ -0,0 +1,36 @@
+package com.steerinfo.baseinfo.meterbasetravellingmerchant.service.impl;
+
+import com.steerinfo.framework.mapper.IBaseMapper;
+import com.steerinfo.framework.service.impl.BaseServiceImpl;
+import com.steerinfo.baseinfo.meterbasetravellingmerchant.model.MeterBaseTravellingMerchant;
+import com.steerinfo.baseinfo.meterbasetravellingmerchant.mapper.MeterBaseTravellingMerchantMapper;
+import com.steerinfo.baseinfo.meterbasetravellingmerchant.service.IMeterBaseTravellingMerchantService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import java.util.Date;
+import java.math.BigDecimal;
+
+/**
+ * MeterBaseTravellingMerchant服务实现:
+ * @author generator
+ * @version 1.0-SNAPSHORT 2022-03-04 04:01
+ * 类描述
+ * 修订历史:
+ * 日期:2022-03-04
+ * 作者:generator
+ * 参考:
+ * 描述:MeterBaseTravellingMerchant服务实现
+ * @see null
+ * @Copyright 湖南视拓信息技术股份有限公司. All rights reserved.
+ */
+@Service(value = "meterBaseTravellingMerchantService")
+public class MeterBaseTravellingMerchantServiceImpl extends BaseServiceImpl<MeterBaseTravellingMerchant, String> implements IMeterBaseTravellingMerchantService {
+
+    @Autowired
+    private MeterBaseTravellingMerchantMapper meterBaseTravellingMerchantMapper;
+
+    @Override
+    protected IBaseMapper<MeterBaseTravellingMerchant, String> getMapper() {
+        return meterBaseTravellingMerchantMapper;
+    }
+}

+ 32 - 6
src/main/java/com/steerinfo/meterwork/meterworkcaractual/service/impl/MeterWorkCarActualServiceImpl.java

@@ -112,6 +112,7 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
     public int checkandadd(MeterWorkCarActual model) {
         try {
             check(model);
+            model.setUploadFlag("1");
             int num = meterWorkCarActualMapper.insertSelective(model);
             return num;
         } catch (MarkerMetException e) {
@@ -161,6 +162,7 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
             }
             check(model);
             model.setValueFlag("2"); // 状态改为发布
+            model.setUploadFlag("1");
             int num = meterWorkCarActualMapper.updateByPrimaryKeySelective(model);
             return num;
         } catch (MarkerMetException e) {
@@ -216,6 +218,7 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
             netData.setUpdateTime(new Date());
             netData.setUpdateManNo(model.getUpdateManNo());
             netData.setUpdateManName(model.getUpdateManName());
+            netData.setUploadFlag("1");
             int num = meterWorkCarActualMapper.updateByPrimaryKeySelective(netData);
 
             // 更新一次计量数据
@@ -333,6 +336,7 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
                 scale.setUpdateTime(new Date());
                 scale.setUpdateManNo("system");
                 scale.setUpdateManName("二次计量洁净更新");
+                scale.setUploadFlag("1");
                 preTrackScaleMapper.updateByPrimaryKeySelective(scale);
             }
 
@@ -382,6 +386,7 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
             String no = meterWorkCarActualMapper.getNewID(sdf.format(new Date()));
             actualRow.setActualNo(sdf.format(new Date()) + no);
             actualRow.setNote(note);
+            actualRow.setUploadFlag("1");
 //            actualRow.setDataSource("1");
             actualRow.setNetWeight(mwcaf1.getMeterWeight().subtract(mwcaf2.getMeterWeight()));
             meterWorkCarActualMapper.insertSelective(actualRow);
@@ -456,13 +461,17 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
                     PreTrackScale scale = new PreTrackScale();
                     scale.setPredictionNo(model.getPredictionNo());
                     scale.setValueFlag("1");
+                    scale.setUploadFlag("1");
                     scale.setUpdateTime(new Date());
                     scale.setUpdateManNo("system");
                     scale.setUpdateManName("计量洁净数据解除操作");
                     preTrackScaleMapper.updateByPrimaryKeySelective(scale);
                 }
 //                }
-                meterWorkCarActualMapper.deleteByPrimaryKey(model.getActualNo());
+                //meterWorkCarActualMapper.deleteByPrimaryKey(model.getActualNo());
+                model.setUploadFlag("1");
+                model.setValueFlag("0");
+                meterWorkCarActualMapper.updateByPrimaryKey(model);
                 num++;
             }
 
@@ -553,6 +562,7 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
             PreTrackScale scale = new PreTrackScale();
             scale.setPredictionNo(predictionNo);
             scale.setValueFlag("2");
+            scale.setUploadFlag("1");
             scale.setUpdateTime(new Date());
             scale.setUpdateManNo("system");
             scale.setUpdateManName("计量洁净数据匹配委托操作");
@@ -562,6 +572,7 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
         MeterWorkCarActual mwca = meterWorkCarActualMapper.mathPredcition(actualNo, predictionNo);
         //mwca.setValueFlag("1");
         mwca.setIsPreScale("1");
+        mwca.setUploadFlag("1");
         mwca.setNote(note);
         meterWorkCarActualMapper.updateByPrimaryKey(mwca);
         return mwca;
@@ -606,6 +617,7 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
             PreTrackScale scale = new PreTrackScale();
             scale.setPredictionNo(model.getPredictionNo());
             scale.setValueFlag("1");
+            scale.setUploadFlag("1");
             scale.setUpdateTime(new Date());
             scale.setUpdateManNo("system");
             scale.setUpdateManName("计量洁净数据解除委托操作");
@@ -618,6 +630,7 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
         mwca.setUpdateTime(new Date());
         //mwca.setValueFlag("3");
         mwca.setIsPreScale("0");
+        mwca.setUploadFlag("1");
         meterWorkCarActualMapper.updateByPrimaryKey(mwca);
         return mwca;
     }
@@ -666,6 +679,7 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
             SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
             String no = meterWorkCarActualMapper.getNewID(sdf.format(new Date()));
             mwca.setActualNo(sdf.format(new Date()) + no);
+            mwca.setUploadFlag("1");
             mwca.setNetWeight(mwcaf1.getMeterWeight().subtract(mbttd.getMeterWeight()));
             meterWorkCarActualMapper.insertSelective(mwca);
 
@@ -676,6 +690,7 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
                 scale.setPredictionNo(mwca.getPredictionNo());
                 scale.setValueFlag(DbConstants.NET);
                 scale.setUpdateTime(new Date());
+                scale.setUploadFlag("1");
                 scale.setUpdateManNo("system");
                 scale.setUpdateManName("计量洁净数据洁净操作");
                 preTrackScaleMapper.updateByPrimaryKeySelective(scale);
@@ -750,6 +765,7 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
         UserPayload payload = UserPayload.getCurrUser();
         String userId = payload.getId();
         String userName = payload.getUserName();
+        model.setUploadFlag("1");
         if (model.getActualNo() == null) {
             model.setNetTime(new Date());
             model.setNetManNo(userId);
@@ -794,6 +810,7 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
         UserPayload payload = UserPayload.getCurrUser();
         String userId = payload.getId();
         String userName = payload.getUserName();
+        model.setUploadFlag("1");
         SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
         if (model.getActualNo() == null) {
             model.setNetTime(new Date());
@@ -1003,6 +1020,7 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
         railwayActual.setUpdateTime(new Date());
 
         scale.setValueFlag(DbConstants.NET);
+        scale.setUploadFlag("1");
         preTrackScaleMapper.updateByPrimaryKeySelective(scale);
 
         SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
@@ -1010,11 +1028,13 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
         carActual.setActualNo(sdf.format(new Date()) + no);
         carActual.setActualFirst1No(railwayActual.getActualNo()); //汽车毛重编号,存火车实绩z编号
         carActual.setActualFirst2No(""); //皮重编号
+        carActual.setUploadFlag("1");
         meterWorkCarActualMapper.insert(carActual);
 
         railwayActual.setMemo(railwayActual.getMemo() + "汽车实绩转换,转换净重" + railwayActual.getNetWeight() + "");
         railwayActual.setNetWeight(new BigDecimal(0));
         railwayActual.setGrossWeight(railwayActual.getTareWeight());
+        railwayActual.setUploadFlag("1");
         meterWorkRailwayActualMapper.updateByPrimaryKeySelective(railwayActual);
 
         return carActual;
@@ -1074,6 +1094,7 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
             trackScale.setValueFlag(DbConstants.NET);
             trackScale.setMemo("驻外检测自动新增一条洁净的预报");
             trackScale.setCarNo(actual.getCarNo());
+            trackScale.setUploadFlag("1");
             preTrackScaleMapper.insertSelective(trackScale);
 
             String no = meterWorkCarActualMapper.getNewID(sdf.format(new Date()));
@@ -1083,6 +1104,7 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
             actual.setNetManName(userName);
             actual.setPredictionNo(trackScale.getPredictionNo());
             actual.setValueFlag(DbConstants.INVALID);
+            actual.setUploadFlag("1");
             meterWorkCarActualMapper.insertSelective(actual);
             return actual;
         } catch (MarkerMetException e) {
@@ -1139,6 +1161,7 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
             trackScale.setUpdateManName(userName);
             trackScale.setUpdateTime(new Date());
             trackScale.setValueFlag(DbConstants.NET);
+            trackScale.setUploadFlag("1");
             preTrackScaleMapper.updateByPrimaryKeySelective(trackScale);
 
             BeanUtils.copyProperties(trackScale, actual); //相同的实体类进行转换
@@ -1150,6 +1173,7 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
             actual.setNetManName(userName);
             actual.setNetTime(new Date());
             actual.setValueFlag(DbConstants.INVALID);
+            actual.setUploadFlag("1");
             meterWorkCarActualMapper.insertSelective(actual);
 
             return actual;
@@ -1205,6 +1229,7 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
                 } else {
                     trackScale.setValueFlag("2");
                 }
+                trackScale.setUploadFlag("1");
                 scaleList.add(trackScale);
                 num++;
             }
@@ -1283,11 +1308,9 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
     public int checkandadditional(MeterWorkCarActual model) {
         try{
             int num = 0;
-//            UserPayload payload = UserPayload.getCurrUser();
-//            String userId = payload.getId();
-//            String userName = payload.getUserName();
-            String userId = "admin";
-            String userName = "admins";
+            UserPayload payload = UserPayload.getCurrUser();
+            String userId = payload.getId();
+            String userName = payload.getUserName();
             if(model.getGrossWeight() == null || model.getGrossWeight().equals(""))
             {
                 throw new MarkerMetException(500, "毛重数据不能为空");
@@ -1360,12 +1383,14 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
                 model.setNetMode("3");
                 model.setDataSource("4");
                 model.setIsPreScale("0");
+                model.setUploadFlag("1");
                 meterWorkCarActualMapper.insertSelective(model);
                 num++;
             }
             else {
                 PreTrackScale preTrackScale = preTrackScaleMapper.selectBypredictionNo(predictionNo);
                 preTrackScale.setValueFlag("2");
+                preTrackScale.setUploadFlag("1");
                 preTrackScale.setUpdateTime(new Date());
                 preTrackScale.setUpdateManNo("system");
                 preTrackScale.setUpdateManName("计量洁净数据手动录入");
@@ -1419,6 +1444,7 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
                 model.setNetTime(new Date());
                 model.setNetMode("3");
                 model.setDataSource("4");
+                model.setUploadFlag("1");
                 meterWorkCarActualMapper.insertSelective(model);
                 num++;
             }

+ 26 - 0
src/main/java/com/steerinfo/meterwork/meterworkcaractualfirst/service/impl/MeterWorkCarActualFirstServiceImpl.java

@@ -170,6 +170,7 @@ public class MeterWorkCarActualFirstServiceImpl extends BaseServiceImpl<MeterWor
             String afl = sdf.format(new Date());
             String no = meterWorkCarActualFirstMapper.getNewID(afl);
             model.setActualFirstNo(sdf.format(new Date()) + no);
+
             //6、存储图片
             SaveImg(model);
 
@@ -250,6 +251,7 @@ public class MeterWorkCarActualFirstServiceImpl extends BaseServiceImpl<MeterWor
                     PreTrackScale ps = new PreTrackScale();
                     ps.setPredictionNo(model.getPredictionNo());
                     ps.setValueFlag(DbConstants.Abolish); //没有有效的一次计量记录的时候,预报直接作废,这样检化验那边才能不影响下一车采样 2021年4月18日
+                    ps.setUploadFlag("1");
                     this.preTrackScaleMapper.updateByPrimaryKeySelective(ps);
                 }
             }
@@ -364,6 +366,7 @@ public class MeterWorkCarActualFirstServiceImpl extends BaseServiceImpl<MeterWor
                     PreTrackScale ps = new PreTrackScale();
                     ps.setPredictionNo(model.getPredictionNo());
                     ps.setValueFlag(DbConstants.IN); //预报调整为使用中
+                    ps.setUploadFlag("1");
                     this.preTrackScaleMapper.updateByPrimaryKeySelective(ps);
                 }
 
@@ -463,6 +466,7 @@ public class MeterWorkCarActualFirstServiceImpl extends BaseServiceImpl<MeterWor
                 pls.setUpdateManNo("system");
                 pls.setUpdateManName("一次计量数据解除操作");
                 pls.setValueFlag(DbConstants.VALID);
+                pls.setUploadFlag("1");
                 preTrackScaleMapper.updateByPrimaryKeySelective(pls);
 
                 //回退至预环节的前一状态; 001021003 = 一次计量
@@ -559,6 +563,7 @@ public class MeterWorkCarActualFirstServiceImpl extends BaseServiceImpl<MeterWor
             pts.setUpdateManNo("system");
             pts.setUpdateManName("一次计量数据匹配操作");
             pts.setValueFlag(DbConstants.IN); //2021年5月24日  预报直接就写成【使用中】
+            pts.setUploadFlag("1");
             preTrackScaleMapper.updateByPrimaryKey(pts);
             //当一次计量数据是已结净的状态时,同时将该结净数据的另一条一次计量数据自动匹配该委托,并将该结净记录也进行委托匹配
             if (meterWorkCarActualFirst.getValueFlag() == "2" || "2".equals(meterWorkCarActualFirst.getValueFlag())){
@@ -578,6 +583,7 @@ public class MeterWorkCarActualFirstServiceImpl extends BaseServiceImpl<MeterWor
                 //将该一次记录的结净数据委托解除
                 MeterWorkCarActual mwca = meterWorkCarActualMapper.mathPredcition(meterWorkCarActual.getActualNo(),predictionNo);
                 mwca.setIsPreScale("1");
+                mwca.setUploadFlag("1");
                 meterWorkCarActualMapper.updateByPrimaryKey(mwca);
             }
             // 设置为已匹配状态
@@ -731,6 +737,7 @@ public class MeterWorkCarActualFirstServiceImpl extends BaseServiceImpl<MeterWor
             PreTrackScale pre = new PreTrackScale();
             pre.setPredictionNo(model.getPredictionNo());
             pre.setValueFlag("4");
+            pre.setUploadFlag("1");
             preTrackScaleMapper.updateByPrimaryKeySelective(pre);
         }
 
@@ -1058,6 +1065,7 @@ public class MeterWorkCarActualFirstServiceImpl extends BaseServiceImpl<MeterWor
                 PreTrackScale preTrackScale = new PreTrackScale();
                 preTrackScale.setPredictionNo(netDb.getPredictionNo());
                 preTrackScale.setValueFlag("2");
+                preTrackScale.setUploadFlag("1");
                 preTrackScaleMapper.updateByPrimaryKeySelective(preTrackScale);
             }
         }
@@ -1070,6 +1078,7 @@ public class MeterWorkCarActualFirstServiceImpl extends BaseServiceImpl<MeterWor
             net = new BigDecimal(String.valueOf(netDb.getNetWeight())).setScale(2, BigDecimal.ROUND_HALF_UP);
             netDb.setNetWeight(net);
         }
+        netDb.setUploadFlag("1");
         meterWorkCarActualMapper.insert(netDb);
 
         //4、如果为期限皮重,则将期限皮重转化为一条皮重计量数据保存
@@ -1230,6 +1239,7 @@ public class MeterWorkCarActualFirstServiceImpl extends BaseServiceImpl<MeterWor
             }
             ptsU.setValueFlag("4");//非一车联运的话,扫码时预报改为正使用  下次还是扫相同码
         }
+        ptsU.setUploadFlag("1");
         preTrackScaleMapper.updateByPrimaryKeySelective(ptsU);
 
         //6、存储图片
@@ -1370,16 +1380,19 @@ public class MeterWorkCarActualFirstServiceImpl extends BaseServiceImpl<MeterWor
                     ptsU.setValueFlag("2");//用完了则状态改为2
                 }
             }
+            ptsU.setUploadFlag("1");
             preTrackScaleMapper.updateByPrimaryKeySelective(ptsU);
         } else if (pts.getPredictionType().equals("1")) {
             //单次预报 使用1次后将状态设置为已使用
             ptsU.setValueFlag("2");
+            ptsU.setUploadFlag("1");
             preTrackScaleMapper.updateByPrimaryKeySelective(ptsU);
         } else if (pts.getPredictionType().equals("2")) {
             //联运预报 使用1次,但是根据车辆的环节中若是 互锁式则直接洁净,否则则看是否还有其它的预报未使用
             //若存在其它未使用的预报则需要留一个二次计量的数据作为下一车的一次计量信息
             if ("1".equals(isLock)) { //互锁搞法:与单次的先皮后毛流程一样
                 ptsU.setValueFlag("2"); //修改预报状态为正使用
+                ptsU.setUploadFlag("1");
                 preTrackScaleMapper.updateByPrimaryKeySelective(ptsU);
             } else {
                 MeterWorkCarActualFirst mwaf = new MeterWorkCarActualFirst();
@@ -1474,6 +1487,7 @@ public class MeterWorkCarActualFirstServiceImpl extends BaseServiceImpl<MeterWor
                         PreTrackScale lyScale = new PreTrackScale();
                         lyScale.setPredictionNo(secondDb.getPredictionNo());
                         lyScale.setValueFlag("4");
+                        ptsU.setUploadFlag("1");
                         preTrackScaleMapper.updateByPrimaryKeySelective(lyScale);
 
                         //查找到的上个毛重写为结净
@@ -1503,6 +1517,7 @@ public class MeterWorkCarActualFirstServiceImpl extends BaseServiceImpl<MeterWor
                         meterWorkCarActualFirstMapper.updateByPrimaryKeySelective(lmwaf.get(0));
                         //已经是最后一个预报的最后一次洁净了
                         ptsU.setValueFlag("2"); //修改预报状态
+                        ptsU.setUploadFlag("1");
                         preTrackScaleMapper.updateByPrimaryKeySelective(ptsU);
                     }
                 } else {
@@ -1570,6 +1585,7 @@ public class MeterWorkCarActualFirstServiceImpl extends BaseServiceImpl<MeterWor
                     lyFirstNo = mwaf.getActualFirstNo();
 
                     ptsU.setValueFlag("2"); //修改当前预报状态
+                    ptsU.setUploadFlag("1");
                     preTrackScaleMapper.updateByPrimaryKeySelective(ptsU);
 
                     //查找到的上个毛重写为结净
@@ -1605,6 +1621,7 @@ public class MeterWorkCarActualFirstServiceImpl extends BaseServiceImpl<MeterWor
             }
 
             ptsU.setValueFlag("2");//预报完结
+            ptsU.setUploadFlag("1");
             preTrackScaleMapper.updateByPrimaryKeySelective(ptsU);
             //===================火车分检预报处理结束==========================
         }
@@ -1643,6 +1660,7 @@ public class MeterWorkCarActualFirstServiceImpl extends BaseServiceImpl<MeterWor
             net = new BigDecimal(String.valueOf(netDb.getNetWeight())).setScale(2, BigDecimal.ROUND_HALF_UP);
             netDb.setNetWeight(net);
         }
+        netDb.setUploadFlag("1");
         meterWorkCarActualMapper.insertSelective(netDb);
 
         //7、修改第一次存储的计量数据状态为洁净;预报编号相同时才处理(不是一车联运非互锁式)
@@ -1921,10 +1939,12 @@ public class MeterWorkCarActualFirstServiceImpl extends BaseServiceImpl<MeterWor
                     pts.setValueFlag("2");//用完了则状态改为2
                 }
             }
+            pts.setUploadFlag("1");
             preTrackScaleMapper.updateByPrimaryKeySelective(pts);
         } else if (pts.getPredictionType().equals("1")) {
             //单次预报 使用1次后将状态设置为已使用
             pts.setValueFlag("2");
+            pts.setUploadFlag("1");
             preTrackScaleMapper.updateByPrimaryKeySelective(pts);
         } else if (pts.getPredictionType().equals("3") && StringUtils.isNotEmpty(pts.getRailwayNo())) {
             //===================火车分检预报处理开始==========================
@@ -1939,6 +1959,7 @@ public class MeterWorkCarActualFirstServiceImpl extends BaseServiceImpl<MeterWor
                 countForRail(meterWorkRailwayActFirst, netDb.getNetWeight()); //一次计量数据,净重数据
             }
             pts.setValueFlag("2");//预报完结
+            pts.setUploadFlag("1");
             preTrackScaleMapper.updateByPrimaryKeySelective(pts);
             //===================火车分检预报处理结束==========================
         }
@@ -2068,6 +2089,7 @@ public class MeterWorkCarActualFirstServiceImpl extends BaseServiceImpl<MeterWor
                     trackScale.setValueFlag("3");
                     trackScale.setUpdateTime(new Date());
                     trackScale.setUpdateManNo("system");
+                    trackScale.setUploadFlag("1");
                     trackScale.setUpdateManName("系统定时作废过期皮重信息");
                     preTrackScaleMapper.updateByPrimaryKey(trackScale);
                 }
@@ -2193,6 +2215,7 @@ public class MeterWorkCarActualFirstServiceImpl extends BaseServiceImpl<MeterWor
             net = new BigDecimal(String.valueOf(netDb.getNetWeight())).setScale(2, BigDecimal.ROUND_HALF_UP);
             netDb.setNetWeight(net);
         }
+        netDb.setUploadFlag("1");
         meterWorkCarActualMapper.insertSelective(netDb);
 
         //7、修改第一次存储的计量数据状态为洁净;预报编号相同时才处理(不是一车联运非互锁式)
@@ -2358,6 +2381,7 @@ public class MeterWorkCarActualFirstServiceImpl extends BaseServiceImpl<MeterWor
         PreTrackScale pre=new PreTrackScale();
         pre.setPredictionNo(oci.getPredictionNo());
         pre.setValueFlag("2");
+        pre.setUploadFlag("1");
         preTrackScaleMapper.updateByPrimaryKeySelective(pre);
 
         //若有环节信息,还得将环节信息给设置为已使用,不然会影响后续计量的流程
@@ -2490,6 +2514,7 @@ public class MeterWorkCarActualFirstServiceImpl extends BaseServiceImpl<MeterWor
                 meterWorkCarActualFirstMapper.updateByPrimaryKeySelective(meca1);
                 PreTrackScale preTrackScale = new PreTrackScale();
                 preTrackScale.setValueFlag("2");
+                preTrackScale.setUploadFlag("1");
                 preTrackScaleMapper.updateByPrimaryKeySelective(preTrackScale);
             }
         }
@@ -2529,6 +2554,7 @@ public class MeterWorkCarActualFirstServiceImpl extends BaseServiceImpl<MeterWor
             MeterWorkCarActual mwca = new MeterWorkCarActual();
             mwca.setActualNo(netDb.getActualNo());
             mwca.setActualFirst2No(imTare.getActualFirstNo());
+            mwca.setUploadFlag("1");
             meterWorkCarActualMapper.updateByPrimaryKeySelective(mwca);
         }
 

+ 132 - 0
src/main/java/com/steerinfo/meterwork/meterworkmeasuringinstrument/controller/MeterWorkMeasuringInstrumentController.java

@@ -0,0 +1,132 @@
+package com.steerinfo.meterwork.meterworkmeasuringinstrument.controller;
+
+import com.steerinfo.framework.controller.BaseRESTfulController;
+import com.steerinfo.framework.controller.RESTfulResult;
+import com.steerinfo.framework.service.pagehelper.PageList;
+import com.steerinfo.framework.utils.collection.ListUtils;
+import com.steerinfo.meterwork.meterworkmeasuringinstrument.model.MeterWorkMeasuringInstrument;
+import com.steerinfo.meterwork.meterworkmeasuringinstrument.service.IMeterWorkMeasuringInstrumentService;
+import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiImplicitParams;
+import io.swagger.annotations.ApiOperation;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.List;
+import java.util.ArrayList;
+import java.math.BigDecimal;
+
+/**
+ * MeterWorkMeasuringInstrument RESTful接口:
+ * @author generator
+ * @version 1.0-SNAPSHORT 2022-03-04 05:30
+ * 类描述
+ * 修订历史:
+ * 日期:2022-03-04
+ * 作者:generator
+ * 参考:
+ * 描述:MeterWorkMeasuringInstrument RESTful接口
+ * @see null
+ * @Copyright 湖南视拓信息技术股份有限公司. All rights reserved.
+ */
+@RestController
+@RequestMapping("/${api.version}/meterworkmeasuringinstruments")
+public class MeterWorkMeasuringInstrumentController extends BaseRESTfulController {
+
+    @Autowired
+    IMeterWorkMeasuringInstrumentService meterWorkMeasuringInstrumentService;
+
+    @ApiOperation(value="获取列表", notes="分页查询")
+    @ApiImplicitParams({
+        @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
+        @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer")
+    })
+    //@RequiresPermissions("meterworkmeasuringinstrument:view")
+    @GetMapping(value = "/")
+    public RESTfulResult list(@RequestParam HashMap parmas,Integer pageNum, Integer pageSize){
+        PageList<MeterWorkMeasuringInstrument> list = meterWorkMeasuringInstrumentService.queryForPage(parmas, pageNum, pageSize);
+        return success(list);
+    }
+
+    @ApiOperation(value="获取列表", notes="分页模糊查询")
+    @ApiImplicitParams({
+        @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
+        @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer")
+    })
+    //@RequiresPermissions("meterworkmeasuringinstrument:view")
+    @GetMapping(value = "/like/")
+    public RESTfulResult listLike(@RequestParam HashMap parmas,Integer pageNum, Integer pageSize){
+        PageList<MeterWorkMeasuringInstrument> list = meterWorkMeasuringInstrumentService.queryLikeForPage(parmas, pageNum, pageSize);
+        return success(list);
+    }
+
+    @ApiOperation(value="获取列表", notes="分页模糊查询")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
+            @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer")
+    })
+    //@RequiresPermissions("meterworkmeasuringinstrument:view")
+    @PostMapping(value = "/like/")
+    public RESTfulResult listLikePost(@RequestBody HashMap parmas){
+        Integer pageNum = parmas.get("pageNum") == null ? 1 : Integer.parseInt(parmas.get("pageNum").toString());
+        Integer pageSize =parmas.get("pageSize") == null ? 20 : Integer.parseInt(parmas.get("pageSize").toString());
+        PageList<MeterWorkMeasuringInstrument> list = meterWorkMeasuringInstrumentService.queryLikeForPage(parmas, pageNum, pageSize);
+        return success(list);
+    }
+
+    @ApiOperation(value="创建", notes="根据MeterWorkMeasuringInstrument对象创建")
+    @ApiImplicitParam(name = "meterWorkMeasuringInstrument", value = "详细实体meterWorkMeasuringInstrument", required = true, dataType = "MeterWorkMeasuringInstrument")
+    //@RequiresPermissions("meterworkmeasuringinstrument:create")
+    @PostMapping(value = "/")
+    public RESTfulResult add(@RequestBody MeterWorkMeasuringInstrument model){
+        try{
+            String msg = meterWorkMeasuringInstrumentService.checkandadd(model);
+            if (msg != "" && !msg.equals("")) {
+                return  failed(null,msg);
+            }
+        }catch (Exception e){
+            e.printStackTrace();
+            return failed(null,"操作异常,请确认!");
+        }
+        return success();
+    }
+
+    @ApiOperation(value="获取详细信息", notes="根据url的id来获取详细信息")
+    @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "String")
+    //@RequiresPermissions("meterworkmeasuringinstrument:view")
+    @GetMapping(value = "/{id}")
+    public RESTfulResult get(@PathVariable String id){
+        MeterWorkMeasuringInstrument meterWorkMeasuringInstrument = meterWorkMeasuringInstrumentService.getById(id);
+        return success(meterWorkMeasuringInstrument);
+    }
+
+    @ApiOperation(value="更新详细信息", notes="根据url的id来指定更新对象,并根据传过来的meterWorkMeasuringInstrument信息来更新详细信息")
+    @ApiImplicitParams({
+        @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "String"),
+        @ApiImplicitParam(name = "meterWorkMeasuringInstrument", value = "详细实体meterWorkMeasuringInstrument", required = true, dataType = "MeterWorkMeasuringInstrument")
+    })
+    //@RequiresPermissions("meterworkmeasuringinstrument:update")
+    @PutMapping(value = "/{id}", produces  = "application/json;charset=UTF-8")
+    public RESTfulResult update(@PathVariable String id, @RequestBody MeterWorkMeasuringInstrument model){
+        model.setId(id);
+        MeterWorkMeasuringInstrument meterWorkMeasuringInstrument = meterWorkMeasuringInstrumentService.modify(model);
+        return success(meterWorkMeasuringInstrument);
+    }
+
+    @ApiOperation(value="删除", notes="根据url的id来指定删除对象")
+    @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "String")
+    //@RequiresPermissions("meterworkmeasuringinstrument:delete")
+    @DeleteMapping(value = "/{id}")//String
+    public RESTfulResult delete(@PathVariable String id){
+    	List<String> list = Arrays.asList(id.split(","));
+    	if(ListUtils.isNotEmpty(list)) {
+	    	List<String> ids = ListUtils.convertList(list);
+			  meterWorkMeasuringInstrumentService.delete(ids);
+    	}
+      return success();
+    }
+}

+ 12 - 0
src/main/java/com/steerinfo/meterwork/meterworkmeasuringinstrument/mapper/MeterWorkMeasuringInstrumentMapper.java

@@ -0,0 +1,12 @@
+package com.steerinfo.meterwork.meterworkmeasuringinstrument.mapper;
+
+import com.steerinfo.framework.mapper.IBaseMapper;
+import com.steerinfo.meterwork.meterworkmeasuringinstrument.model.MeterWorkMeasuringInstrument;
+import java.math.*;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+
+@Mapper
+public interface MeterWorkMeasuringInstrumentMapper extends IBaseMapper<MeterWorkMeasuringInstrument, String> {
+    String getNewID(@Param(value="afl")String afl);
+}

+ 2717 - 0
src/main/java/com/steerinfo/meterwork/meterworkmeasuringinstrument/mapper/MeterWorkMeasuringInstrumentMapper.xml

@@ -0,0 +1,2717 @@
+<?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.meterwork.meterworkmeasuringinstrument.mapper.MeterWorkMeasuringInstrumentMapper">
+  <resultMap id="BaseResultMap" type="com.steerinfo.meterwork.meterworkmeasuringinstrument.model.MeterWorkMeasuringInstrument">
+    <id column="ACTUAL_NO" jdbcType="VARCHAR" property="actualNo" />
+    <result column="PREDICTION_NO" jdbcType="VARCHAR" property="predictionNo" />
+    <result column="NOTICE_NO" jdbcType="VARCHAR" property="noticeNo" />
+    <result column="RAILWAY_NO" jdbcType="VARCHAR" property="railwayNo" />
+    <result column="RAILWAY_CARRIAGE_NO" jdbcType="VARCHAR" property="railwayCarriageNo" />
+    <result column="MATTER_NO" jdbcType="VARCHAR" property="matterNo" />
+    <result column="MATTER_NAME" jdbcType="VARCHAR" property="matterName" />
+    <result column="CONTRACT_NO" jdbcType="VARCHAR" property="contractNo" />
+    <result column="BATCH_NO" jdbcType="VARCHAR" property="batchNo" />
+    <result column="CUSTOMER_SUPPLIER_NO" jdbcType="VARCHAR" property="customerSupplierNo" />
+    <result column="CUSTOMER_SUPPLIER_NAME" jdbcType="VARCHAR" property="customerSupplierName" />
+    <result column="FORWARDING_UNIT_NO" jdbcType="VARCHAR" property="forwardingUnitNo" />
+    <result column="FORWARDING_UNIT_NAME" jdbcType="VARCHAR" property="forwardingUnitName" />
+    <result column="RECEIVING_UINT_NO" jdbcType="VARCHAR" property="receivingUintNo" />
+    <result column="RECEIVING_UINT_NAME" jdbcType="VARCHAR" property="receivingUintName" />
+    <result column="MATERIAL_NO" jdbcType="VARCHAR" property="materialNo" />
+    <result column="MATERIAL_NAME" jdbcType="VARCHAR" property="materialName" />
+    <result column="SPEC_NO" jdbcType="VARCHAR" property="specNo" />
+    <result column="SPEC_NAME" jdbcType="VARCHAR" property="specName" />
+    <result column="LOAD_POINT_NO" jdbcType="VARCHAR" property="loadPointNo" />
+    <result column="LOAD_POINT_NAME" jdbcType="VARCHAR" property="loadPointName" />
+    <result column="SAMPLE_VOUCHER" jdbcType="VARCHAR" property="sampleVoucher" />
+    <result column="CARRIER_UNIT_NO" jdbcType="VARCHAR" property="carrierUnitNo" />
+    <result column="CARRIER_UNIT_NAME" jdbcType="VARCHAR" property="carrierUnitName" />
+    <result column="METER_TYPE_NO" jdbcType="VARCHAR" property="meterTypeNo" />
+    <result column="METER_TYPE_NAME" jdbcType="VARCHAR" property="meterTypeName" />
+    <result column="METER_PROCESS_NO" jdbcType="VARCHAR" property="meterProcessNo" />
+    <result column="METER_PROCESS_EDITION_NO" jdbcType="VARCHAR" property="meterProcessEditionNo" />
+    <result column="ACTUAL_FIRST1_NO" jdbcType="VARCHAR" property="actualFirst1No" />
+    <result column="GROSS_WEIGHT" jdbcType="DECIMAL" property="grossWeight" />
+    <result column="GROSS_MAN_NO" jdbcType="VARCHAR" property="grossManNo" />
+    <result column="GROSS_MAN_NAME" jdbcType="VARCHAR" property="grossManName" />
+    <result column="GROSS_TIME" jdbcType="TIMESTAMP" property="grossTime" />
+    <result column="BASE_SPOT1_NO" jdbcType="VARCHAR" property="baseSpot1No" />
+    <result column="BASE_SPOT1_NAME" jdbcType="VARCHAR" property="baseSpot1Name" />
+    <result column="GROSS_CLASS" jdbcType="VARCHAR" property="grossClass" />
+    <result column="GROSS_GROUP" jdbcType="VARCHAR" property="grossGroup" />
+    <result column="GROSS_MODE" jdbcType="VARCHAR" property="grossMode" />
+    <result column="ACTUAL_FIRST2_NO" jdbcType="VARCHAR" property="actualFirst2No" />
+    <result column="TARE_WEIGHT" jdbcType="DECIMAL" property="tareWeight" />
+    <result column="TARE_MAN_NO" jdbcType="VARCHAR" property="tareManNo" />
+    <result column="TARE_MAN_NAME" jdbcType="VARCHAR" property="tareManName" />
+    <result column="TARE_TIME" jdbcType="TIMESTAMP" property="tareTime" />
+    <result column="BASE_SPOT2_NO" jdbcType="VARCHAR" property="baseSpot2No" />
+    <result column="BASE_SPOT2_NAME" jdbcType="VARCHAR" property="baseSpot2Name" />
+    <result column="TARE_CLASS" jdbcType="VARCHAR" property="tareClass" />
+    <result column="TARE_GROUP" jdbcType="VARCHAR" property="tareGroup" />
+    <result column="TARE_MODE" jdbcType="VARCHAR" property="tareMode" />
+    <result column="NET_WEIGHT" jdbcType="DECIMAL" property="netWeight" />
+    <result column="NET_MAN_NO" jdbcType="VARCHAR" property="netManNo" />
+    <result column="NET_MAN_NAME" jdbcType="VARCHAR" property="netManName" />
+    <result column="NET_TIME" jdbcType="TIMESTAMP" property="netTime" />
+    <result column="NET_SPOT3_NO" jdbcType="VARCHAR" property="netSpot3No" />
+    <result column="NET_SPOT3_NAME" jdbcType="VARCHAR" property="netSpot3Name" />
+    <result column="NET_CLASS" jdbcType="VARCHAR" property="netClass" />
+    <result column="NET_GROUP" jdbcType="VARCHAR" property="netGroup" />
+    <result column="NET_MODE" jdbcType="VARCHAR" property="netMode" />
+    <result column="VALUE_FLAG" jdbcType="VARCHAR" property="valueFlag" />
+    <result column="UPLOAD_FLAG" jdbcType="VARCHAR" property="uploadFlag" />
+    <result column="CHECK_MAN_NO" jdbcType="VARCHAR" property="checkManNo" />
+    <result column="CHECK_MAN_NAME" jdbcType="VARCHAR" property="checkManName" />
+    <result column="CHECK_TIME" jdbcType="TIMESTAMP" property="checkTime" />
+    <result column="UPLOAD_MAN_NO" jdbcType="VARCHAR" property="uploadManNo" />
+    <result column="UPLOAD_MAN_NAME" jdbcType="VARCHAR" property="uploadManName" />
+    <result column="UPLOAD_TIME" jdbcType="TIMESTAMP" property="uploadTime" />
+    <result column="SAMPLE_NO" jdbcType="VARCHAR" property="sampleNo" />
+    <result column="RAILWAY_TYPE_NO" jdbcType="VARCHAR" property="railwayTypeNo" />
+    <result column="RAILWAY_TYPE_NAME" jdbcType="VARCHAR" property="railwayTypeName" />
+    <result column="MEMO" jdbcType="VARCHAR" property="memo" />
+    <result column="WATER_NUM" jdbcType="DECIMAL" property="waterNum" />
+    <result column="ARRIVAL" jdbcType="VARCHAR" property="arrival" />
+    <result column="STATION" jdbcType="VARCHAR" property="station" />
+    <result column="UPDATE_MAN_NO" jdbcType="VARCHAR" property="updateManNo" />
+    <result column="UPDATE_MAN_NAME" jdbcType="VARCHAR" property="updateManName" />
+    <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
+    <result column="SOURCE_AREA" jdbcType="VARCHAR" property="sourceArea" />
+    <result column="VOUCHER_IDENTITY" jdbcType="VARCHAR" property="voucherIdentity" />
+    <result column="VOUCHER_ITEM" jdbcType="VARCHAR" property="voucherItem" />
+    <result column="BUSINESS_GROUP" jdbcType="VARCHAR" property="businessGroup" />
+    <result column="TEMP_CONVEYANCE" jdbcType="VARCHAR" property="tempConveyance" />
+    <result column="CONVEYANCE_TYPE" jdbcType="VARCHAR" property="conveyanceType" />
+    <result column="RESOURCE_SYSTEM" jdbcType="VARCHAR" property="resourceSystem" />
+    <result column="GROUP_PACKAGE_AMOUNT" jdbcType="DECIMAL" property="groupPackageAmount" />
+    <result column="GROUP_PACKAGE_UNIT" jdbcType="VARCHAR" property="groupPackageUnit" />
+    <result column="PACKAGE_AMOUNT" jdbcType="DECIMAL" property="packageAmount" />
+    <result column="PACKAGE_UNIT" jdbcType="VARCHAR" property="packageUnit" />
+    <result column="THEORY_AMOUNT" jdbcType="DECIMAL" property="theoryAmount" />
+    <result column="MEASURE_BATCH" jdbcType="VARCHAR" property="measureBatch" />
+    <result column="MEASURE_BATCH_COUNT" jdbcType="DECIMAL" property="measureBatchCount" />
+    <result column="SENDER_TYPE" jdbcType="VARCHAR" property="senderType" />
+    <result column="SENDER_REMARK" jdbcType="VARCHAR" property="senderRemark" />
+    <result column="RECEIVER_TYPE" jdbcType="VARCHAR" property="receiverType" />
+    <result column="RECEIVER_REMARK" jdbcType="VARCHAR" property="receiverRemark" />
+    <result column="AMOUNT_UNIT" jdbcType="VARCHAR" property="amountUnit" />
+    <result column="MEASURE_OBJECT_TYPE" jdbcType="VARCHAR" property="measureObjectType" />
+    <result column="MEASURE_TASK_NUM" jdbcType="VARCHAR" property="measureTaskNum" />
+    <result column="BILL_TYPE" jdbcType="VARCHAR" property="billType" />
+    <result column="CREATE_MAN_NAME" jdbcType="VARCHAR" property="createManName" />
+    <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
+    <result column="DATA_SOURCE" jdbcType="VARCHAR" property="dataSource" />
+    <result column="NOTE" jdbcType="VARCHAR" property="note" />
+    <result column="IS_PRE_SACALE" jdbcType="VARCHAR" property="isPreSacale" />
+  </resultMap>
+  <sql id="columns">
+    ACTUAL_NO, PREDICTION_NO, NOTICE_NO, RAILWAY_NO, RAILWAY_CARRIAGE_NO, MATTER_NO, 
+    MATTER_NAME, CONTRACT_NO, BATCH_NO, CUSTOMER_SUPPLIER_NO, CUSTOMER_SUPPLIER_NAME, 
+    FORWARDING_UNIT_NO, FORWARDING_UNIT_NAME, RECEIVING_UINT_NO, RECEIVING_UINT_NAME, 
+    MATERIAL_NO, MATERIAL_NAME, SPEC_NO, SPEC_NAME, LOAD_POINT_NO, LOAD_POINT_NAME, SAMPLE_VOUCHER, 
+    CARRIER_UNIT_NO, CARRIER_UNIT_NAME, METER_TYPE_NO, METER_TYPE_NAME, METER_PROCESS_NO, 
+    METER_PROCESS_EDITION_NO, ACTUAL_FIRST1_NO, GROSS_WEIGHT, GROSS_MAN_NO, GROSS_MAN_NAME, 
+    GROSS_TIME, BASE_SPOT1_NO, BASE_SPOT1_NAME, GROSS_CLASS, GROSS_GROUP, GROSS_MODE, 
+    ACTUAL_FIRST2_NO, TARE_WEIGHT, TARE_MAN_NO, TARE_MAN_NAME, TARE_TIME, BASE_SPOT2_NO, 
+    BASE_SPOT2_NAME, TARE_CLASS, TARE_GROUP, TARE_MODE, NET_WEIGHT, NET_MAN_NO, NET_MAN_NAME, 
+    NET_TIME, NET_SPOT3_NO, NET_SPOT3_NAME, NET_CLASS, NET_GROUP, NET_MODE, VALUE_FLAG, 
+    UPLOAD_FLAG, CHECK_MAN_NO, CHECK_MAN_NAME, CHECK_TIME, UPLOAD_MAN_NO, UPLOAD_MAN_NAME, 
+    UPLOAD_TIME, SAMPLE_NO, RAILWAY_TYPE_NO, RAILWAY_TYPE_NAME, MEMO, WATER_NUM, ARRIVAL, 
+    STATION, UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME, SOURCE_AREA, VOUCHER_IDENTITY, 
+    VOUCHER_ITEM, BUSINESS_GROUP, TEMP_CONVEYANCE, CONVEYANCE_TYPE, RESOURCE_SYSTEM, 
+    GROUP_PACKAGE_AMOUNT, GROUP_PACKAGE_UNIT, PACKAGE_AMOUNT, PACKAGE_UNIT, THEORY_AMOUNT, 
+    MEASURE_BATCH, MEASURE_BATCH_COUNT, SENDER_TYPE, SENDER_REMARK, RECEIVER_TYPE, RECEIVER_REMARK, 
+    AMOUNT_UNIT, MEASURE_OBJECT_TYPE, MEASURE_TASK_NUM, BILL_TYPE, CREATE_MAN_NAME, CREATE_TIME, 
+    DATA_SOURCE, NOTE, IS_PRE_SACALE
+  </sql>
+  <sql id="columns_alias">
+    t.ACTUAL_NO, t.PREDICTION_NO, t.NOTICE_NO, t.RAILWAY_NO, t.RAILWAY_CARRIAGE_NO, t.MATTER_NO, 
+    t.MATTER_NAME, t.CONTRACT_NO, t.BATCH_NO, t.CUSTOMER_SUPPLIER_NO, t.CUSTOMER_SUPPLIER_NAME, 
+    t.FORWARDING_UNIT_NO, t.FORWARDING_UNIT_NAME, t.RECEIVING_UINT_NO, t.RECEIVING_UINT_NAME, 
+    t.MATERIAL_NO, t.MATERIAL_NAME, t.SPEC_NO, t.SPEC_NAME, t.LOAD_POINT_NO, t.LOAD_POINT_NAME, 
+    t.SAMPLE_VOUCHER, t.CARRIER_UNIT_NO, t.CARRIER_UNIT_NAME, t.METER_TYPE_NO, t.METER_TYPE_NAME, 
+    t.METER_PROCESS_NO, t.METER_PROCESS_EDITION_NO, t.ACTUAL_FIRST1_NO, t.GROSS_WEIGHT, 
+    t.GROSS_MAN_NO, t.GROSS_MAN_NAME, t.GROSS_TIME, t.BASE_SPOT1_NO, t.BASE_SPOT1_NAME, 
+    t.GROSS_CLASS, t.GROSS_GROUP, t.GROSS_MODE, t.ACTUAL_FIRST2_NO, t.TARE_WEIGHT, t.TARE_MAN_NO, 
+    t.TARE_MAN_NAME, t.TARE_TIME, t.BASE_SPOT2_NO, t.BASE_SPOT2_NAME, t.TARE_CLASS, t.TARE_GROUP, 
+    t.TARE_MODE, t.NET_WEIGHT, t.NET_MAN_NO, t.NET_MAN_NAME, t.NET_TIME, t.NET_SPOT3_NO, 
+    t.NET_SPOT3_NAME, t.NET_CLASS, t.NET_GROUP, t.NET_MODE, t.VALUE_FLAG, t.UPLOAD_FLAG, 
+    t.CHECK_MAN_NO, t.CHECK_MAN_NAME, t.CHECK_TIME, t.UPLOAD_MAN_NO, t.UPLOAD_MAN_NAME, 
+    t.UPLOAD_TIME, t.SAMPLE_NO, t.RAILWAY_TYPE_NO, t.RAILWAY_TYPE_NAME, t.MEMO, t.WATER_NUM, 
+    t.ARRIVAL, t.STATION, t.UPDATE_MAN_NO, t.UPDATE_MAN_NAME, t.UPDATE_TIME, t.SOURCE_AREA, 
+    t.VOUCHER_IDENTITY, t.VOUCHER_ITEM, t.BUSINESS_GROUP, t.TEMP_CONVEYANCE, t.CONVEYANCE_TYPE, 
+    t.RESOURCE_SYSTEM, t.GROUP_PACKAGE_AMOUNT, t.GROUP_PACKAGE_UNIT, t.PACKAGE_AMOUNT, 
+    t.PACKAGE_UNIT, t.THEORY_AMOUNT, t.MEASURE_BATCH, t.MEASURE_BATCH_COUNT, t.SENDER_TYPE, 
+    t.SENDER_REMARK, t.RECEIVER_TYPE, t.RECEIVER_REMARK, t.AMOUNT_UNIT, t.MEASURE_OBJECT_TYPE, 
+    t.MEASURE_TASK_NUM, t.BILL_TYPE, t.CREATE_MAN_NAME, t.CREATE_TIME, t.DATA_SOURCE, 
+    t.NOTE, t.IS_PRE_SACALE
+  </sql>
+  <sql id="select">
+    SELECT <include refid="columns"/> FROM METER_WORK_MEASURING_INSTRUMENT
+  </sql>
+  <sql id="select_alias">
+    SELECT <include refid="columns_alias"/> FROM METER_WORK_MEASURING_INSTRUMENT t
+  </sql>
+  <sql id="where">
+    <where> 
+      <if test="actualNo != null and actualNo != ''">
+        and ACTUAL_NO = #{actualNo}
+      </if>
+      <if test="predictionNo != null and predictionNo != ''">
+        and PREDICTION_NO = #{predictionNo}
+      </if>
+      <if test="noticeNo != null and noticeNo != ''">
+        and NOTICE_NO = #{noticeNo}
+      </if>
+      <if test="railwayNo != null and railwayNo != ''">
+        and RAILWAY_NO = #{railwayNo}
+      </if>
+      <if test="railwayCarriageNo != null and railwayCarriageNo != ''">
+        and RAILWAY_CARRIAGE_NO = #{railwayCarriageNo}
+      </if>
+      <if test="matterNo != null and matterNo != ''">
+        and MATTER_NO = #{matterNo}
+      </if>
+      <if test="matterName != null and matterName != ''">
+        and MATTER_NAME = #{matterName}
+      </if>
+      <if test="contractNo != null and contractNo != ''">
+        and CONTRACT_NO = #{contractNo}
+      </if>
+      <if test="batchNo != null and batchNo != ''">
+        and BATCH_NO = #{batchNo}
+      </if>
+      <if test="customerSupplierNo != null and customerSupplierNo != ''">
+        and CUSTOMER_SUPPLIER_NO = #{customerSupplierNo}
+      </if>
+      <if test="customerSupplierName != null and customerSupplierName != ''">
+        and CUSTOMER_SUPPLIER_NAME = #{customerSupplierName}
+      </if>
+      <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
+        and FORWARDING_UNIT_NO = #{forwardingUnitNo}
+      </if>
+      <if test="forwardingUnitName != null and forwardingUnitName != ''">
+        and FORWARDING_UNIT_NAME = #{forwardingUnitName}
+      </if>
+      <if test="receivingUintNo != null and receivingUintNo != ''">
+        and RECEIVING_UINT_NO = #{receivingUintNo}
+      </if>
+      <if test="receivingUintName != null and receivingUintName != ''">
+        and RECEIVING_UINT_NAME = #{receivingUintName}
+      </if>
+      <if test="materialNo != null and materialNo != ''">
+        and MATERIAL_NO = #{materialNo}
+      </if>
+      <if test="materialName != null and materialName != ''">
+        and MATERIAL_NAME = #{materialName}
+      </if>
+      <if test="specNo != null and specNo != ''">
+        and SPEC_NO = #{specNo}
+      </if>
+      <if test="specName != null and specName != ''">
+        and SPEC_NAME = #{specName}
+      </if>
+      <if test="loadPointNo != null and loadPointNo != ''">
+        and LOAD_POINT_NO = #{loadPointNo}
+      </if>
+      <if test="loadPointName != null and loadPointName != ''">
+        and LOAD_POINT_NAME = #{loadPointName}
+      </if>
+      <if test="sampleVoucher != null and sampleVoucher != ''">
+        and SAMPLE_VOUCHER = #{sampleVoucher}
+      </if>
+      <if test="carrierUnitNo != null and carrierUnitNo != ''">
+        and CARRIER_UNIT_NO = #{carrierUnitNo}
+      </if>
+      <if test="carrierUnitName != null and carrierUnitName != ''">
+        and CARRIER_UNIT_NAME = #{carrierUnitName}
+      </if>
+      <if test="meterTypeNo != null and meterTypeNo != ''">
+        and METER_TYPE_NO = #{meterTypeNo}
+      </if>
+      <if test="meterTypeName != null and meterTypeName != ''">
+        and METER_TYPE_NAME = #{meterTypeName}
+      </if>
+      <if test="meterProcessNo != null and meterProcessNo != ''">
+        and METER_PROCESS_NO = #{meterProcessNo}
+      </if>
+      <if test="meterProcessEditionNo != null and meterProcessEditionNo != ''">
+        and METER_PROCESS_EDITION_NO = #{meterProcessEditionNo}
+      </if>
+      <if test="actualFirst1No != null and actualFirst1No != ''">
+        and ACTUAL_FIRST1_NO = #{actualFirst1No}
+      </if>
+      <if test="grossWeight != null">
+        and GROSS_WEIGHT = #{grossWeight}
+      </if>
+      <if test="grossManNo != null and grossManNo != ''">
+        and GROSS_MAN_NO = #{grossManNo}
+      </if>
+      <if test="grossManName != null and grossManName != ''">
+        and GROSS_MAN_NAME = #{grossManName}
+      </if>
+      <if test="grossTime != null">
+        and TO_CHAR(GROSS_TIME,'yyyy-MM-dd') = #{grossTime}
+      </if>
+      <if test="baseSpot1No != null and baseSpot1No != ''">
+        and BASE_SPOT1_NO = #{baseSpot1No}
+      </if>
+      <if test="baseSpot1Name != null and baseSpot1Name != ''">
+        and BASE_SPOT1_NAME = #{baseSpot1Name}
+      </if>
+      <if test="grossClass != null and grossClass != ''">
+        and GROSS_CLASS = #{grossClass}
+      </if>
+      <if test="grossGroup != null and grossGroup != ''">
+        and GROSS_GROUP = #{grossGroup}
+      </if>
+      <if test="grossMode != null and grossMode != ''">
+        and GROSS_MODE = #{grossMode}
+      </if>
+      <if test="actualFirst2No != null and actualFirst2No != ''">
+        and ACTUAL_FIRST2_NO = #{actualFirst2No}
+      </if>
+      <if test="tareWeight != null">
+        and TARE_WEIGHT = #{tareWeight}
+      </if>
+      <if test="tareManNo != null and tareManNo != ''">
+        and TARE_MAN_NO = #{tareManNo}
+      </if>
+      <if test="tareManName != null and tareManName != ''">
+        and TARE_MAN_NAME = #{tareManName}
+      </if>
+      <if test="tareTime != null">
+        and TO_CHAR(TARE_TIME,'yyyy-MM-dd') = #{tareTime}
+      </if>
+      <if test="baseSpot2No != null and baseSpot2No != ''">
+        and BASE_SPOT2_NO = #{baseSpot2No}
+      </if>
+      <if test="baseSpot2Name != null and baseSpot2Name != ''">
+        and BASE_SPOT2_NAME = #{baseSpot2Name}
+      </if>
+      <if test="tareClass != null and tareClass != ''">
+        and TARE_CLASS = #{tareClass}
+      </if>
+      <if test="tareGroup != null and tareGroup != ''">
+        and TARE_GROUP = #{tareGroup}
+      </if>
+      <if test="tareMode != null and tareMode != ''">
+        and TARE_MODE = #{tareMode}
+      </if>
+      <if test="netWeight != null">
+        and NET_WEIGHT = #{netWeight}
+      </if>
+      <if test="netManNo != null and netManNo != ''">
+        and NET_MAN_NO = #{netManNo}
+      </if>
+      <if test="netManName != null and netManName != ''">
+        and NET_MAN_NAME = #{netManName}
+      </if>
+      <if test="netTime != null">
+        and TO_CHAR(NET_TIME,'yyyy-MM-dd') = #{netTime}
+      </if>
+      <if test="netSpot3No != null and netSpot3No != ''">
+        and NET_SPOT3_NO = #{netSpot3No}
+      </if>
+      <if test="netSpot3Name != null and netSpot3Name != ''">
+        and NET_SPOT3_NAME = #{netSpot3Name}
+      </if>
+      <if test="netClass != null and netClass != ''">
+        and NET_CLASS = #{netClass}
+      </if>
+      <if test="netGroup != null and netGroup != ''">
+        and NET_GROUP = #{netGroup}
+      </if>
+      <if test="netMode != null and netMode != ''">
+        and NET_MODE = #{netMode}
+      </if>
+      <if test="valueFlag != null and valueFlag != ''">
+        and VALUE_FLAG = #{valueFlag}
+      </if>
+      <if test="uploadFlag != null and uploadFlag != ''">
+        and UPLOAD_FLAG = #{uploadFlag}
+      </if>
+      <if test="checkManNo != null and checkManNo != ''">
+        and CHECK_MAN_NO = #{checkManNo}
+      </if>
+      <if test="checkManName != null and checkManName != ''">
+        and CHECK_MAN_NAME = #{checkManName}
+      </if>
+      <if test="checkTime != null">
+        and TO_CHAR(CHECK_TIME,'yyyy-MM-dd') = #{checkTime}
+      </if>
+      <if test="uploadManNo != null and uploadManNo != ''">
+        and UPLOAD_MAN_NO = #{uploadManNo}
+      </if>
+      <if test="uploadManName != null and uploadManName != ''">
+        and UPLOAD_MAN_NAME = #{uploadManName}
+      </if>
+      <if test="uploadTime != null">
+        and TO_CHAR(UPLOAD_TIME,'yyyy-MM-dd') = #{uploadTime}
+      </if>
+      <if test="sampleNo != null and sampleNo != ''">
+        and SAMPLE_NO = #{sampleNo}
+      </if>
+      <if test="railwayTypeNo != null and railwayTypeNo != ''">
+        and RAILWAY_TYPE_NO = #{railwayTypeNo}
+      </if>
+      <if test="railwayTypeName != null and railwayTypeName != ''">
+        and RAILWAY_TYPE_NAME = #{railwayTypeName}
+      </if>
+      <if test="memo != null and memo != ''">
+        and MEMO = #{memo}
+      </if>
+      <if test="waterNum != null">
+        and WATER_NUM = #{waterNum}
+      </if>
+      <if test="arrival != null and arrival != ''">
+        and ARRIVAL = #{arrival}
+      </if>
+      <if test="station != null and station != ''">
+        and STATION = #{station}
+      </if>
+      <if test="updateManNo != null and updateManNo != ''">
+        and UPDATE_MAN_NO = #{updateManNo}
+      </if>
+      <if test="updateManName != null and updateManName != ''">
+        and UPDATE_MAN_NAME = #{updateManName}
+      </if>
+      <if test="updateTime != null">
+        and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
+      </if>
+      <if test="sourceArea != null and sourceArea != ''">
+        and SOURCE_AREA = #{sourceArea}
+      </if>
+      <if test="voucherIdentity != null and voucherIdentity != ''">
+        and VOUCHER_IDENTITY = #{voucherIdentity}
+      </if>
+      <if test="voucherItem != null and voucherItem != ''">
+        and VOUCHER_ITEM = #{voucherItem}
+      </if>
+      <if test="businessGroup != null and businessGroup != ''">
+        and BUSINESS_GROUP = #{businessGroup}
+      </if>
+      <if test="tempConveyance != null and tempConveyance != ''">
+        and TEMP_CONVEYANCE = #{tempConveyance}
+      </if>
+      <if test="conveyanceType != null and conveyanceType != ''">
+        and CONVEYANCE_TYPE = #{conveyanceType}
+      </if>
+      <if test="resourceSystem != null and resourceSystem != ''">
+        and RESOURCE_SYSTEM = #{resourceSystem}
+      </if>
+      <if test="groupPackageAmount != null">
+        and GROUP_PACKAGE_AMOUNT = #{groupPackageAmount}
+      </if>
+      <if test="groupPackageUnit != null and groupPackageUnit != ''">
+        and GROUP_PACKAGE_UNIT = #{groupPackageUnit}
+      </if>
+      <if test="packageAmount != null">
+        and PACKAGE_AMOUNT = #{packageAmount}
+      </if>
+      <if test="packageUnit != null and packageUnit != ''">
+        and PACKAGE_UNIT = #{packageUnit}
+      </if>
+      <if test="theoryAmount != null">
+        and THEORY_AMOUNT = #{theoryAmount}
+      </if>
+      <if test="measureBatch != null and measureBatch != ''">
+        and MEASURE_BATCH = #{measureBatch}
+      </if>
+      <if test="measureBatchCount != null">
+        and MEASURE_BATCH_COUNT = #{measureBatchCount}
+      </if>
+      <if test="senderType != null and senderType != ''">
+        and SENDER_TYPE = #{senderType}
+      </if>
+      <if test="senderRemark != null and senderRemark != ''">
+        and SENDER_REMARK = #{senderRemark}
+      </if>
+      <if test="receiverType != null and receiverType != ''">
+        and RECEIVER_TYPE = #{receiverType}
+      </if>
+      <if test="receiverRemark != null and receiverRemark != ''">
+        and RECEIVER_REMARK = #{receiverRemark}
+      </if>
+      <if test="amountUnit != null and amountUnit != ''">
+        and AMOUNT_UNIT = #{amountUnit}
+      </if>
+      <if test="measureObjectType != null and measureObjectType != ''">
+        and MEASURE_OBJECT_TYPE = #{measureObjectType}
+      </if>
+      <if test="measureTaskNum != null and measureTaskNum != ''">
+        and MEASURE_TASK_NUM = #{measureTaskNum}
+      </if>
+      <if test="billType != null and billType != ''">
+        and BILL_TYPE = #{billType}
+      </if>
+      <if test="createManName != null and createManName != ''">
+        and CREATE_MAN_NAME = #{createManName}
+      </if>
+      <if test="createTime != null">
+        and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
+      </if>
+      <if test="dataSource != null and dataSource != ''">
+        and DATA_SOURCE = #{dataSource}
+      </if>
+      <if test="note != null and note != ''">
+        and NOTE = #{note}
+      </if>
+      <if test="isPreSacale != null and isPreSacale != ''">
+        and IS_PRE_SACALE = #{isPreSacale}
+      </if>
+    </where>
+  </sql>
+  <sql id="whereLike">
+    <where> 
+      <if test="actualNo != null and actualNo != ''">
+        and ACTUAL_NO LIKE '%${actualNo}%'
+      </if>
+      <if test="predictionNo != null and predictionNo != ''">
+        and PREDICTION_NO LIKE '%${predictionNo}%'
+      </if>
+      <if test="noticeNo != null and noticeNo != ''">
+        and NOTICE_NO LIKE '%${noticeNo}%'
+      </if>
+      <if test="railwayNo != null and railwayNo != ''">
+        and RAILWAY_NO LIKE '%${railwayNo}%'
+      </if>
+      <if test="railwayCarriageNo != null and railwayCarriageNo != ''">
+        and RAILWAY_CARRIAGE_NO LIKE '%${railwayCarriageNo}%'
+      </if>
+      <if test="matterNo != null and matterNo != ''">
+        and MATTER_NO LIKE '%${matterNo}%'
+      </if>
+      <if test="matterName != null and matterName != ''">
+        and MATTER_NAME LIKE '%${matterName}%'
+      </if>
+      <if test="contractNo != null and contractNo != ''">
+        and CONTRACT_NO LIKE '%${contractNo}%'
+      </if>
+      <if test="batchNo != null and batchNo != ''">
+        and BATCH_NO LIKE '%${batchNo}%'
+      </if>
+      <if test="customerSupplierNo != null and customerSupplierNo != ''">
+        and CUSTOMER_SUPPLIER_NO LIKE '%${customerSupplierNo}%'
+      </if>
+      <if test="customerSupplierName != null and customerSupplierName != ''">
+        and CUSTOMER_SUPPLIER_NAME LIKE '%${customerSupplierName}%'
+      </if>
+      <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
+        and FORWARDING_UNIT_NO LIKE '%${forwardingUnitNo}%'
+      </if>
+      <if test="forwardingUnitName != null and forwardingUnitName != ''">
+        and FORWARDING_UNIT_NAME LIKE '%${forwardingUnitName}%'
+      </if>
+      <if test="receivingUintNo != null and receivingUintNo != ''">
+        and RECEIVING_UINT_NO LIKE '%${receivingUintNo}%'
+      </if>
+      <if test="receivingUintName != null and receivingUintName != ''">
+        and RECEIVING_UINT_NAME LIKE '%${receivingUintName}%'
+      </if>
+      <if test="materialNo != null and materialNo != ''">
+        and MATERIAL_NO LIKE '%${materialNo}%'
+      </if>
+      <if test="materialName != null and materialName != ''">
+        and MATERIAL_NAME LIKE '%${materialName}%'
+      </if>
+      <if test="specNo != null and specNo != ''">
+        and SPEC_NO LIKE '%${specNo}%'
+      </if>
+      <if test="specName != null and specName != ''">
+        and SPEC_NAME LIKE '%${specName}%'
+      </if>
+      <if test="loadPointNo != null and loadPointNo != ''">
+        and LOAD_POINT_NO LIKE '%${loadPointNo}%'
+      </if>
+      <if test="loadPointName != null and loadPointName != ''">
+        and LOAD_POINT_NAME LIKE '%${loadPointName}%'
+      </if>
+      <if test="sampleVoucher != null and sampleVoucher != ''">
+        and SAMPLE_VOUCHER LIKE '%${sampleVoucher}%'
+      </if>
+      <if test="carrierUnitNo != null and carrierUnitNo != ''">
+        and CARRIER_UNIT_NO LIKE '%${carrierUnitNo}%'
+      </if>
+      <if test="carrierUnitName != null and carrierUnitName != ''">
+        and CARRIER_UNIT_NAME LIKE '%${carrierUnitName}%'
+      </if>
+      <if test="meterTypeNo != null and meterTypeNo != ''">
+        and METER_TYPE_NO LIKE '%${meterTypeNo}%'
+      </if>
+      <if test="meterTypeName != null and meterTypeName != ''">
+        and METER_TYPE_NAME LIKE '%${meterTypeName}%'
+      </if>
+      <if test="meterProcessNo != null and meterProcessNo != ''">
+        and METER_PROCESS_NO LIKE '%${meterProcessNo}%'
+      </if>
+      <if test="meterProcessEditionNo != null and meterProcessEditionNo != ''">
+        and METER_PROCESS_EDITION_NO LIKE '%${meterProcessEditionNo}%'
+      </if>
+      <if test="actualFirst1No != null and actualFirst1No != ''">
+        and ACTUAL_FIRST1_NO LIKE '%${actualFirst1No}%'
+      </if>
+      <if test="grossWeight != null">
+        and GROSS_WEIGHT = #{grossWeight}
+      </if>
+      <if test="grossManNo != null and grossManNo != ''">
+        and GROSS_MAN_NO LIKE '%${grossManNo}%'
+      </if>
+      <if test="grossManName != null and grossManName != ''">
+        and GROSS_MAN_NAME LIKE '%${grossManName}%'
+      </if>
+      <if test="grossTime != null">
+        and TO_CHAR(GROSS_TIME,'yyyy-MM-dd') = #{grossTime}
+      </if>
+      <if test="baseSpot1No != null and baseSpot1No != ''">
+        and BASE_SPOT1_NO LIKE '%${baseSpot1No}%'
+      </if>
+      <if test="baseSpot1Name != null and baseSpot1Name != ''">
+        and BASE_SPOT1_NAME LIKE '%${baseSpot1Name}%'
+      </if>
+      <if test="grossClass != null and grossClass != ''">
+        and GROSS_CLASS LIKE '%${grossClass}%'
+      </if>
+      <if test="grossGroup != null and grossGroup != ''">
+        and GROSS_GROUP LIKE '%${grossGroup}%'
+      </if>
+      <if test="grossMode != null and grossMode != ''">
+        and GROSS_MODE LIKE '%${grossMode}%'
+      </if>
+      <if test="actualFirst2No != null and actualFirst2No != ''">
+        and ACTUAL_FIRST2_NO LIKE '%${actualFirst2No}%'
+      </if>
+      <if test="tareWeight != null">
+        and TARE_WEIGHT = #{tareWeight}
+      </if>
+      <if test="tareManNo != null and tareManNo != ''">
+        and TARE_MAN_NO LIKE '%${tareManNo}%'
+      </if>
+      <if test="tareManName != null and tareManName != ''">
+        and TARE_MAN_NAME LIKE '%${tareManName}%'
+      </if>
+      <if test="tareTime != null">
+        and TO_CHAR(TARE_TIME,'yyyy-MM-dd') = #{tareTime}
+      </if>
+      <if test="baseSpot2No != null and baseSpot2No != ''">
+        and BASE_SPOT2_NO LIKE '%${baseSpot2No}%'
+      </if>
+      <if test="baseSpot2Name != null and baseSpot2Name != ''">
+        and BASE_SPOT2_NAME LIKE '%${baseSpot2Name}%'
+      </if>
+      <if test="tareClass != null and tareClass != ''">
+        and TARE_CLASS LIKE '%${tareClass}%'
+      </if>
+      <if test="tareGroup != null and tareGroup != ''">
+        and TARE_GROUP LIKE '%${tareGroup}%'
+      </if>
+      <if test="tareMode != null and tareMode != ''">
+        and TARE_MODE LIKE '%${tareMode}%'
+      </if>
+      <if test="netWeight != null">
+        and NET_WEIGHT = #{netWeight}
+      </if>
+      <if test="netManNo != null and netManNo != ''">
+        and NET_MAN_NO LIKE '%${netManNo}%'
+      </if>
+      <if test="netManName != null and netManName != ''">
+        and NET_MAN_NAME LIKE '%${netManName}%'
+      </if>
+      <if test="netTime != null">
+        and TO_CHAR(NET_TIME,'yyyy-MM-dd') = #{netTime}
+      </if>
+      <if test="netSpot3No != null and netSpot3No != ''">
+        and NET_SPOT3_NO LIKE '%${netSpot3No}%'
+      </if>
+      <if test="netSpot3Name != null and netSpot3Name != ''">
+        and NET_SPOT3_NAME LIKE '%${netSpot3Name}%'
+      </if>
+      <if test="netClass != null and netClass != ''">
+        and NET_CLASS LIKE '%${netClass}%'
+      </if>
+      <if test="netGroup != null and netGroup != ''">
+        and NET_GROUP LIKE '%${netGroup}%'
+      </if>
+      <if test="netMode != null and netMode != ''">
+        and NET_MODE LIKE '%${netMode}%'
+      </if>
+      <if test="valueFlag != null and valueFlag != ''">
+        and VALUE_FLAG LIKE '%${valueFlag}%'
+      </if>
+      <if test="uploadFlag != null and uploadFlag != ''">
+        and UPLOAD_FLAG LIKE '%${uploadFlag}%'
+      </if>
+      <if test="checkManNo != null and checkManNo != ''">
+        and CHECK_MAN_NO LIKE '%${checkManNo}%'
+      </if>
+      <if test="checkManName != null and checkManName != ''">
+        and CHECK_MAN_NAME LIKE '%${checkManName}%'
+      </if>
+      <if test="checkTime != null">
+        and TO_CHAR(CHECK_TIME,'yyyy-MM-dd') = #{checkTime}
+      </if>
+      <if test="uploadManNo != null and uploadManNo != ''">
+        and UPLOAD_MAN_NO LIKE '%${uploadManNo}%'
+      </if>
+      <if test="uploadManName != null and uploadManName != ''">
+        and UPLOAD_MAN_NAME LIKE '%${uploadManName}%'
+      </if>
+      <if test="uploadTime != null">
+        and TO_CHAR(UPLOAD_TIME,'yyyy-MM-dd') = #{uploadTime}
+      </if>
+      <if test="sampleNo != null and sampleNo != ''">
+        and SAMPLE_NO LIKE '%${sampleNo}%'
+      </if>
+      <if test="railwayTypeNo != null and railwayTypeNo != ''">
+        and RAILWAY_TYPE_NO LIKE '%${railwayTypeNo}%'
+      </if>
+      <if test="railwayTypeName != null and railwayTypeName != ''">
+        and RAILWAY_TYPE_NAME LIKE '%${railwayTypeName}%'
+      </if>
+      <if test="memo != null and memo != ''">
+        and MEMO LIKE '%${memo}%'
+      </if>
+      <if test="waterNum != null">
+        and WATER_NUM = #{waterNum}
+      </if>
+      <if test="arrival != null and arrival != ''">
+        and ARRIVAL LIKE '%${arrival}%'
+      </if>
+      <if test="station != null and station != ''">
+        and STATION LIKE '%${station}%'
+      </if>
+      <if test="updateManNo != null and updateManNo != ''">
+        and UPDATE_MAN_NO LIKE '%${updateManNo}%'
+      </if>
+      <if test="updateManName != null and updateManName != ''">
+        and UPDATE_MAN_NAME LIKE '%${updateManName}%'
+      </if>
+      <if test="updateTime != null">
+        and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
+      </if>
+      <if test="sourceArea != null and sourceArea != ''">
+        and SOURCE_AREA LIKE '%${sourceArea}%'
+      </if>
+      <if test="voucherIdentity != null and voucherIdentity != ''">
+        and VOUCHER_IDENTITY LIKE '%${voucherIdentity}%'
+      </if>
+      <if test="voucherItem != null and voucherItem != ''">
+        and VOUCHER_ITEM LIKE '%${voucherItem}%'
+      </if>
+      <if test="businessGroup != null and businessGroup != ''">
+        and BUSINESS_GROUP LIKE '%${businessGroup}%'
+      </if>
+      <if test="tempConveyance != null and tempConveyance != ''">
+        and TEMP_CONVEYANCE LIKE '%${tempConveyance}%'
+      </if>
+      <if test="conveyanceType != null and conveyanceType != ''">
+        and CONVEYANCE_TYPE LIKE '%${conveyanceType}%'
+      </if>
+      <if test="resourceSystem != null and resourceSystem != ''">
+        and RESOURCE_SYSTEM LIKE '%${resourceSystem}%'
+      </if>
+      <if test="groupPackageAmount != null">
+        and GROUP_PACKAGE_AMOUNT = #{groupPackageAmount}
+      </if>
+      <if test="groupPackageUnit != null and groupPackageUnit != ''">
+        and GROUP_PACKAGE_UNIT LIKE '%${groupPackageUnit}%'
+      </if>
+      <if test="packageAmount != null">
+        and PACKAGE_AMOUNT = #{packageAmount}
+      </if>
+      <if test="packageUnit != null and packageUnit != ''">
+        and PACKAGE_UNIT LIKE '%${packageUnit}%'
+      </if>
+      <if test="theoryAmount != null">
+        and THEORY_AMOUNT = #{theoryAmount}
+      </if>
+      <if test="measureBatch != null and measureBatch != ''">
+        and MEASURE_BATCH LIKE '%${measureBatch}%'
+      </if>
+      <if test="measureBatchCount != null">
+        and MEASURE_BATCH_COUNT = #{measureBatchCount}
+      </if>
+      <if test="senderType != null and senderType != ''">
+        and SENDER_TYPE LIKE '%${senderType}%'
+      </if>
+      <if test="senderRemark != null and senderRemark != ''">
+        and SENDER_REMARK LIKE '%${senderRemark}%'
+      </if>
+      <if test="receiverType != null and receiverType != ''">
+        and RECEIVER_TYPE LIKE '%${receiverType}%'
+      </if>
+      <if test="receiverRemark != null and receiverRemark != ''">
+        and RECEIVER_REMARK LIKE '%${receiverRemark}%'
+      </if>
+      <if test="amountUnit != null and amountUnit != ''">
+        and AMOUNT_UNIT LIKE '%${amountUnit}%'
+      </if>
+      <if test="measureObjectType != null and measureObjectType != ''">
+        and MEASURE_OBJECT_TYPE LIKE '%${measureObjectType}%'
+      </if>
+      <if test="measureTaskNum != null and measureTaskNum != ''">
+        and MEASURE_TASK_NUM LIKE '%${measureTaskNum}%'
+      </if>
+      <if test="billType != null and billType != ''">
+        and BILL_TYPE LIKE '%${billType}%'
+      </if>
+      <if test="createManName != null and createManName != ''">
+        and CREATE_MAN_NAME LIKE '%${createManName}%'
+      </if>
+      <if test="createTime != null">
+        and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
+      </if>
+      <if test="dataSource != null and dataSource != ''">
+        and DATA_SOURCE LIKE '%${dataSource}%'
+      </if>
+      <if test="note != null and note != ''">
+        and NOTE LIKE '%${note}%'
+      </if>
+      <if test="isPreSacale != null and isPreSacale != ''">
+        and IS_PRE_SACALE LIKE '%${isPreSacale}%'
+      </if>
+    </where>
+  </sql>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
+    delete from METER_WORK_MEASURING_INSTRUMENT
+    where ACTUAL_NO = #{actualNo,jdbcType=VARCHAR}
+  </delete>
+  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
+    delete from METER_WORK_MEASURING_INSTRUMENT
+    where 1!=1 
+      <if test="predictionNo != null and predictionNo != ''">
+        or PREDICTION_NO = #{predictionNo}
+      </if>
+      <if test="noticeNo != null and noticeNo != ''">
+        or NOTICE_NO = #{noticeNo}
+      </if>
+      <if test="railwayNo != null and railwayNo != ''">
+        or RAILWAY_NO = #{railwayNo}
+      </if>
+      <if test="railwayCarriageNo != null and railwayCarriageNo != ''">
+        or RAILWAY_CARRIAGE_NO = #{railwayCarriageNo}
+      </if>
+      <if test="matterNo != null and matterNo != ''">
+        or MATTER_NO = #{matterNo}
+      </if>
+      <if test="matterName != null and matterName != ''">
+        or MATTER_NAME = #{matterName}
+      </if>
+      <if test="contractNo != null and contractNo != ''">
+        or CONTRACT_NO = #{contractNo}
+      </if>
+      <if test="batchNo != null and batchNo != ''">
+        or BATCH_NO = #{batchNo}
+      </if>
+      <if test="customerSupplierNo != null and customerSupplierNo != ''">
+        or CUSTOMER_SUPPLIER_NO = #{customerSupplierNo}
+      </if>
+      <if test="customerSupplierName != null and customerSupplierName != ''">
+        or CUSTOMER_SUPPLIER_NAME = #{customerSupplierName}
+      </if>
+      <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
+        or FORWARDING_UNIT_NO = #{forwardingUnitNo}
+      </if>
+      <if test="forwardingUnitName != null and forwardingUnitName != ''">
+        or FORWARDING_UNIT_NAME = #{forwardingUnitName}
+      </if>
+      <if test="receivingUintNo != null and receivingUintNo != ''">
+        or RECEIVING_UINT_NO = #{receivingUintNo}
+      </if>
+      <if test="receivingUintName != null and receivingUintName != ''">
+        or RECEIVING_UINT_NAME = #{receivingUintName}
+      </if>
+      <if test="materialNo != null and materialNo != ''">
+        or MATERIAL_NO = #{materialNo}
+      </if>
+      <if test="materialName != null and materialName != ''">
+        or MATERIAL_NAME = #{materialName}
+      </if>
+      <if test="specNo != null and specNo != ''">
+        or SPEC_NO = #{specNo}
+      </if>
+      <if test="specName != null and specName != ''">
+        or SPEC_NAME = #{specName}
+      </if>
+      <if test="loadPointNo != null and loadPointNo != ''">
+        or LOAD_POINT_NO = #{loadPointNo}
+      </if>
+      <if test="loadPointName != null and loadPointName != ''">
+        or LOAD_POINT_NAME = #{loadPointName}
+      </if>
+      <if test="sampleVoucher != null and sampleVoucher != ''">
+        or SAMPLE_VOUCHER = #{sampleVoucher}
+      </if>
+      <if test="carrierUnitNo != null and carrierUnitNo != ''">
+        or CARRIER_UNIT_NO = #{carrierUnitNo}
+      </if>
+      <if test="carrierUnitName != null and carrierUnitName != ''">
+        or CARRIER_UNIT_NAME = #{carrierUnitName}
+      </if>
+      <if test="meterTypeNo != null and meterTypeNo != ''">
+        or METER_TYPE_NO = #{meterTypeNo}
+      </if>
+      <if test="meterTypeName != null and meterTypeName != ''">
+        or METER_TYPE_NAME = #{meterTypeName}
+      </if>
+      <if test="meterProcessNo != null and meterProcessNo != ''">
+        or METER_PROCESS_NO = #{meterProcessNo}
+      </if>
+      <if test="meterProcessEditionNo != null and meterProcessEditionNo != ''">
+        or METER_PROCESS_EDITION_NO = #{meterProcessEditionNo}
+      </if>
+      <if test="actualFirst1No != null and actualFirst1No != ''">
+        or ACTUAL_FIRST1_NO = #{actualFirst1No}
+      </if>
+      <if test="grossWeight != null">
+        or GROSS_WEIGHT = #{grossWeight}
+      </if>
+      <if test="grossManNo != null and grossManNo != ''">
+        or GROSS_MAN_NO = #{grossManNo}
+      </if>
+      <if test="grossManName != null and grossManName != ''">
+        or GROSS_MAN_NAME = #{grossManName}
+      </if>
+      <if test="grossTime != null">
+        or TO_CHAR(GROSS_TIME,'yyyy-MM-dd') = '#{grossTime}'
+      </if>
+      <if test="baseSpot1No != null and baseSpot1No != ''">
+        or BASE_SPOT1_NO = #{baseSpot1No}
+      </if>
+      <if test="baseSpot1Name != null and baseSpot1Name != ''">
+        or BASE_SPOT1_NAME = #{baseSpot1Name}
+      </if>
+      <if test="grossClass != null and grossClass != ''">
+        or GROSS_CLASS = #{grossClass}
+      </if>
+      <if test="grossGroup != null and grossGroup != ''">
+        or GROSS_GROUP = #{grossGroup}
+      </if>
+      <if test="grossMode != null and grossMode != ''">
+        or GROSS_MODE = #{grossMode}
+      </if>
+      <if test="actualFirst2No != null and actualFirst2No != ''">
+        or ACTUAL_FIRST2_NO = #{actualFirst2No}
+      </if>
+      <if test="tareWeight != null">
+        or TARE_WEIGHT = #{tareWeight}
+      </if>
+      <if test="tareManNo != null and tareManNo != ''">
+        or TARE_MAN_NO = #{tareManNo}
+      </if>
+      <if test="tareManName != null and tareManName != ''">
+        or TARE_MAN_NAME = #{tareManName}
+      </if>
+      <if test="tareTime != null">
+        or TO_CHAR(TARE_TIME,'yyyy-MM-dd') = '#{tareTime}'
+      </if>
+      <if test="baseSpot2No != null and baseSpot2No != ''">
+        or BASE_SPOT2_NO = #{baseSpot2No}
+      </if>
+      <if test="baseSpot2Name != null and baseSpot2Name != ''">
+        or BASE_SPOT2_NAME = #{baseSpot2Name}
+      </if>
+      <if test="tareClass != null and tareClass != ''">
+        or TARE_CLASS = #{tareClass}
+      </if>
+      <if test="tareGroup != null and tareGroup != ''">
+        or TARE_GROUP = #{tareGroup}
+      </if>
+      <if test="tareMode != null and tareMode != ''">
+        or TARE_MODE = #{tareMode}
+      </if>
+      <if test="netWeight != null">
+        or NET_WEIGHT = #{netWeight}
+      </if>
+      <if test="netManNo != null and netManNo != ''">
+        or NET_MAN_NO = #{netManNo}
+      </if>
+      <if test="netManName != null and netManName != ''">
+        or NET_MAN_NAME = #{netManName}
+      </if>
+      <if test="netTime != null">
+        or TO_CHAR(NET_TIME,'yyyy-MM-dd') = '#{netTime}'
+      </if>
+      <if test="netSpot3No != null and netSpot3No != ''">
+        or NET_SPOT3_NO = #{netSpot3No}
+      </if>
+      <if test="netSpot3Name != null and netSpot3Name != ''">
+        or NET_SPOT3_NAME = #{netSpot3Name}
+      </if>
+      <if test="netClass != null and netClass != ''">
+        or NET_CLASS = #{netClass}
+      </if>
+      <if test="netGroup != null and netGroup != ''">
+        or NET_GROUP = #{netGroup}
+      </if>
+      <if test="netMode != null and netMode != ''">
+        or NET_MODE = #{netMode}
+      </if>
+      <if test="valueFlag != null and valueFlag != ''">
+        or VALUE_FLAG = #{valueFlag}
+      </if>
+      <if test="uploadFlag != null and uploadFlag != ''">
+        or UPLOAD_FLAG = #{uploadFlag}
+      </if>
+      <if test="checkManNo != null and checkManNo != ''">
+        or CHECK_MAN_NO = #{checkManNo}
+      </if>
+      <if test="checkManName != null and checkManName != ''">
+        or CHECK_MAN_NAME = #{checkManName}
+      </if>
+      <if test="checkTime != null">
+        or TO_CHAR(CHECK_TIME,'yyyy-MM-dd') = '#{checkTime}'
+      </if>
+      <if test="uploadManNo != null and uploadManNo != ''">
+        or UPLOAD_MAN_NO = #{uploadManNo}
+      </if>
+      <if test="uploadManName != null and uploadManName != ''">
+        or UPLOAD_MAN_NAME = #{uploadManName}
+      </if>
+      <if test="uploadTime != null">
+        or TO_CHAR(UPLOAD_TIME,'yyyy-MM-dd') = '#{uploadTime}'
+      </if>
+      <if test="sampleNo != null and sampleNo != ''">
+        or SAMPLE_NO = #{sampleNo}
+      </if>
+      <if test="railwayTypeNo != null and railwayTypeNo != ''">
+        or RAILWAY_TYPE_NO = #{railwayTypeNo}
+      </if>
+      <if test="railwayTypeName != null and railwayTypeName != ''">
+        or RAILWAY_TYPE_NAME = #{railwayTypeName}
+      </if>
+      <if test="memo != null and memo != ''">
+        or MEMO = #{memo}
+      </if>
+      <if test="waterNum != null">
+        or WATER_NUM = #{waterNum}
+      </if>
+      <if test="arrival != null and arrival != ''">
+        or ARRIVAL = #{arrival}
+      </if>
+      <if test="station != null and station != ''">
+        or STATION = #{station}
+      </if>
+      <if test="updateManNo != null and updateManNo != ''">
+        or UPDATE_MAN_NO = #{updateManNo}
+      </if>
+      <if test="updateManName != null and updateManName != ''">
+        or UPDATE_MAN_NAME = #{updateManName}
+      </if>
+      <if test="updateTime != null">
+        or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
+      </if>
+      <if test="sourceArea != null and sourceArea != ''">
+        or SOURCE_AREA = #{sourceArea}
+      </if>
+      <if test="voucherIdentity != null and voucherIdentity != ''">
+        or VOUCHER_IDENTITY = #{voucherIdentity}
+      </if>
+      <if test="voucherItem != null and voucherItem != ''">
+        or VOUCHER_ITEM = #{voucherItem}
+      </if>
+      <if test="businessGroup != null and businessGroup != ''">
+        or BUSINESS_GROUP = #{businessGroup}
+      </if>
+      <if test="tempConveyance != null and tempConveyance != ''">
+        or TEMP_CONVEYANCE = #{tempConveyance}
+      </if>
+      <if test="conveyanceType != null and conveyanceType != ''">
+        or CONVEYANCE_TYPE = #{conveyanceType}
+      </if>
+      <if test="resourceSystem != null and resourceSystem != ''">
+        or RESOURCE_SYSTEM = #{resourceSystem}
+      </if>
+      <if test="groupPackageAmount != null">
+        or GROUP_PACKAGE_AMOUNT = #{groupPackageAmount}
+      </if>
+      <if test="groupPackageUnit != null and groupPackageUnit != ''">
+        or GROUP_PACKAGE_UNIT = #{groupPackageUnit}
+      </if>
+      <if test="packageAmount != null">
+        or PACKAGE_AMOUNT = #{packageAmount}
+      </if>
+      <if test="packageUnit != null and packageUnit != ''">
+        or PACKAGE_UNIT = #{packageUnit}
+      </if>
+      <if test="theoryAmount != null">
+        or THEORY_AMOUNT = #{theoryAmount}
+      </if>
+      <if test="measureBatch != null and measureBatch != ''">
+        or MEASURE_BATCH = #{measureBatch}
+      </if>
+      <if test="measureBatchCount != null">
+        or MEASURE_BATCH_COUNT = #{measureBatchCount}
+      </if>
+      <if test="senderType != null and senderType != ''">
+        or SENDER_TYPE = #{senderType}
+      </if>
+      <if test="senderRemark != null and senderRemark != ''">
+        or SENDER_REMARK = #{senderRemark}
+      </if>
+      <if test="receiverType != null and receiverType != ''">
+        or RECEIVER_TYPE = #{receiverType}
+      </if>
+      <if test="receiverRemark != null and receiverRemark != ''">
+        or RECEIVER_REMARK = #{receiverRemark}
+      </if>
+      <if test="amountUnit != null and amountUnit != ''">
+        or AMOUNT_UNIT = #{amountUnit}
+      </if>
+      <if test="measureObjectType != null and measureObjectType != ''">
+        or MEASURE_OBJECT_TYPE = #{measureObjectType}
+      </if>
+      <if test="measureTaskNum != null and measureTaskNum != ''">
+        or MEASURE_TASK_NUM = #{measureTaskNum}
+      </if>
+      <if test="billType != null and billType != ''">
+        or BILL_TYPE = #{billType}
+      </if>
+      <if test="createManName != null and createManName != ''">
+        or CREATE_MAN_NAME = #{createManName}
+      </if>
+      <if test="createTime != null">
+        or TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = '#{createTime}'
+      </if>
+      <if test="dataSource != null and dataSource != ''">
+        or DATA_SOURCE = #{dataSource}
+      </if>
+      <if test="note != null and note != ''">
+        or NOTE = #{note}
+      </if>
+      <if test="isPreSacale != null and isPreSacale != ''">
+        or IS_PRE_SACALE = #{isPreSacale}
+      </if>
+  </delete>
+  <insert id="insert" parameterType="com.steerinfo.meterwork.meterworkmeasuringinstrument.model.MeterWorkMeasuringInstrument">
+    insert into METER_WORK_MEASURING_INSTRUMENT (ACTUAL_NO, PREDICTION_NO, NOTICE_NO, 
+      RAILWAY_NO, RAILWAY_CARRIAGE_NO, MATTER_NO, 
+      MATTER_NAME, CONTRACT_NO, BATCH_NO, 
+      CUSTOMER_SUPPLIER_NO, CUSTOMER_SUPPLIER_NAME, 
+      FORWARDING_UNIT_NO, FORWARDING_UNIT_NAME, RECEIVING_UINT_NO, 
+      RECEIVING_UINT_NAME, MATERIAL_NO, MATERIAL_NAME, 
+      SPEC_NO, SPEC_NAME, LOAD_POINT_NO, 
+      LOAD_POINT_NAME, SAMPLE_VOUCHER, CARRIER_UNIT_NO, 
+      CARRIER_UNIT_NAME, METER_TYPE_NO, METER_TYPE_NAME, 
+      METER_PROCESS_NO, METER_PROCESS_EDITION_NO, 
+      ACTUAL_FIRST1_NO, GROSS_WEIGHT, GROSS_MAN_NO, 
+      GROSS_MAN_NAME, GROSS_TIME, BASE_SPOT1_NO, 
+      BASE_SPOT1_NAME, GROSS_CLASS, GROSS_GROUP, 
+      GROSS_MODE, ACTUAL_FIRST2_NO, TARE_WEIGHT, 
+      TARE_MAN_NO, TARE_MAN_NAME, TARE_TIME, 
+      BASE_SPOT2_NO, BASE_SPOT2_NAME, TARE_CLASS, 
+      TARE_GROUP, TARE_MODE, NET_WEIGHT, 
+      NET_MAN_NO, NET_MAN_NAME, NET_TIME, 
+      NET_SPOT3_NO, NET_SPOT3_NAME, NET_CLASS, 
+      NET_GROUP, NET_MODE, VALUE_FLAG, 
+      UPLOAD_FLAG, CHECK_MAN_NO, CHECK_MAN_NAME, 
+      CHECK_TIME, UPLOAD_MAN_NO, UPLOAD_MAN_NAME, 
+      UPLOAD_TIME, SAMPLE_NO, RAILWAY_TYPE_NO, 
+      RAILWAY_TYPE_NAME, MEMO, WATER_NUM, 
+      ARRIVAL, STATION, UPDATE_MAN_NO, 
+      UPDATE_MAN_NAME, UPDATE_TIME, SOURCE_AREA, 
+      VOUCHER_IDENTITY, VOUCHER_ITEM, BUSINESS_GROUP, 
+      TEMP_CONVEYANCE, CONVEYANCE_TYPE, RESOURCE_SYSTEM, 
+      GROUP_PACKAGE_AMOUNT, GROUP_PACKAGE_UNIT, PACKAGE_AMOUNT, 
+      PACKAGE_UNIT, THEORY_AMOUNT, MEASURE_BATCH, 
+      MEASURE_BATCH_COUNT, SENDER_TYPE, SENDER_REMARK, 
+      RECEIVER_TYPE, RECEIVER_REMARK, AMOUNT_UNIT, 
+      MEASURE_OBJECT_TYPE, MEASURE_TASK_NUM, BILL_TYPE, 
+      CREATE_MAN_NAME, CREATE_TIME, DATA_SOURCE, 
+      NOTE, IS_PRE_SACALE)
+    values (#{actualNo,jdbcType=VARCHAR}, #{predictionNo,jdbcType=VARCHAR}, #{noticeNo,jdbcType=VARCHAR}, 
+      #{railwayNo,jdbcType=VARCHAR}, #{railwayCarriageNo,jdbcType=VARCHAR}, #{matterNo,jdbcType=VARCHAR}, 
+      #{matterName,jdbcType=VARCHAR}, #{contractNo,jdbcType=VARCHAR}, #{batchNo,jdbcType=VARCHAR}, 
+      #{customerSupplierNo,jdbcType=VARCHAR}, #{customerSupplierName,jdbcType=VARCHAR}, 
+      #{forwardingUnitNo,jdbcType=VARCHAR}, #{forwardingUnitName,jdbcType=VARCHAR}, #{receivingUintNo,jdbcType=VARCHAR}, 
+      #{receivingUintName,jdbcType=VARCHAR}, #{materialNo,jdbcType=VARCHAR}, #{materialName,jdbcType=VARCHAR}, 
+      #{specNo,jdbcType=VARCHAR}, #{specName,jdbcType=VARCHAR}, #{loadPointNo,jdbcType=VARCHAR}, 
+      #{loadPointName,jdbcType=VARCHAR}, #{sampleVoucher,jdbcType=VARCHAR}, #{carrierUnitNo,jdbcType=VARCHAR}, 
+      #{carrierUnitName,jdbcType=VARCHAR}, #{meterTypeNo,jdbcType=VARCHAR}, #{meterTypeName,jdbcType=VARCHAR}, 
+      #{meterProcessNo,jdbcType=VARCHAR}, #{meterProcessEditionNo,jdbcType=VARCHAR}, 
+      #{actualFirst1No,jdbcType=VARCHAR}, #{grossWeight,jdbcType=DECIMAL}, #{grossManNo,jdbcType=VARCHAR}, 
+      #{grossManName,jdbcType=VARCHAR}, #{grossTime,jdbcType=TIMESTAMP}, #{baseSpot1No,jdbcType=VARCHAR}, 
+      #{baseSpot1Name,jdbcType=VARCHAR}, #{grossClass,jdbcType=VARCHAR}, #{grossGroup,jdbcType=VARCHAR}, 
+      #{grossMode,jdbcType=VARCHAR}, #{actualFirst2No,jdbcType=VARCHAR}, #{tareWeight,jdbcType=DECIMAL}, 
+      #{tareManNo,jdbcType=VARCHAR}, #{tareManName,jdbcType=VARCHAR}, #{tareTime,jdbcType=TIMESTAMP}, 
+      #{baseSpot2No,jdbcType=VARCHAR}, #{baseSpot2Name,jdbcType=VARCHAR}, #{tareClass,jdbcType=VARCHAR}, 
+      #{tareGroup,jdbcType=VARCHAR}, #{tareMode,jdbcType=VARCHAR}, #{netWeight,jdbcType=DECIMAL}, 
+      #{netManNo,jdbcType=VARCHAR}, #{netManName,jdbcType=VARCHAR}, #{netTime,jdbcType=TIMESTAMP}, 
+      #{netSpot3No,jdbcType=VARCHAR}, #{netSpot3Name,jdbcType=VARCHAR}, #{netClass,jdbcType=VARCHAR}, 
+      #{netGroup,jdbcType=VARCHAR}, #{netMode,jdbcType=VARCHAR}, #{valueFlag,jdbcType=VARCHAR}, 
+      #{uploadFlag,jdbcType=VARCHAR}, #{checkManNo,jdbcType=VARCHAR}, #{checkManName,jdbcType=VARCHAR}, 
+      #{checkTime,jdbcType=TIMESTAMP}, #{uploadManNo,jdbcType=VARCHAR}, #{uploadManName,jdbcType=VARCHAR}, 
+      #{uploadTime,jdbcType=TIMESTAMP}, #{sampleNo,jdbcType=VARCHAR}, #{railwayTypeNo,jdbcType=VARCHAR}, 
+      #{railwayTypeName,jdbcType=VARCHAR}, #{memo,jdbcType=VARCHAR}, #{waterNum,jdbcType=DECIMAL}, 
+      #{arrival,jdbcType=VARCHAR}, #{station,jdbcType=VARCHAR}, #{updateManNo,jdbcType=VARCHAR}, 
+      #{updateManName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{sourceArea,jdbcType=VARCHAR}, 
+      #{voucherIdentity,jdbcType=VARCHAR}, #{voucherItem,jdbcType=VARCHAR}, #{businessGroup,jdbcType=VARCHAR}, 
+      #{tempConveyance,jdbcType=VARCHAR}, #{conveyanceType,jdbcType=VARCHAR}, #{resourceSystem,jdbcType=VARCHAR}, 
+      #{groupPackageAmount,jdbcType=DECIMAL}, #{groupPackageUnit,jdbcType=VARCHAR}, #{packageAmount,jdbcType=DECIMAL}, 
+      #{packageUnit,jdbcType=VARCHAR}, #{theoryAmount,jdbcType=DECIMAL}, #{measureBatch,jdbcType=VARCHAR}, 
+      #{measureBatchCount,jdbcType=DECIMAL}, #{senderType,jdbcType=VARCHAR}, #{senderRemark,jdbcType=VARCHAR}, 
+      #{receiverType,jdbcType=VARCHAR}, #{receiverRemark,jdbcType=VARCHAR}, #{amountUnit,jdbcType=VARCHAR}, 
+      #{measureObjectType,jdbcType=VARCHAR}, #{measureTaskNum,jdbcType=VARCHAR}, #{billType,jdbcType=VARCHAR}, 
+      #{createManName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{dataSource,jdbcType=VARCHAR}, 
+      #{note,jdbcType=VARCHAR}, #{isPreSacale,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.steerinfo.meterwork.meterworkmeasuringinstrument.model.MeterWorkMeasuringInstrument">
+    insert into METER_WORK_MEASURING_INSTRUMENT
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="actualNo != null">
+        ACTUAL_NO,
+      </if>
+      <if test="predictionNo != null">
+        PREDICTION_NO,
+      </if>
+      <if test="noticeNo != null">
+        NOTICE_NO,
+      </if>
+      <if test="railwayNo != null">
+        RAILWAY_NO,
+      </if>
+      <if test="railwayCarriageNo != null">
+        RAILWAY_CARRIAGE_NO,
+      </if>
+      <if test="matterNo != null">
+        MATTER_NO,
+      </if>
+      <if test="matterName != null">
+        MATTER_NAME,
+      </if>
+      <if test="contractNo != null">
+        CONTRACT_NO,
+      </if>
+      <if test="batchNo != null">
+        BATCH_NO,
+      </if>
+      <if test="customerSupplierNo != null">
+        CUSTOMER_SUPPLIER_NO,
+      </if>
+      <if test="customerSupplierName != null">
+        CUSTOMER_SUPPLIER_NAME,
+      </if>
+      <if test="forwardingUnitNo != null">
+        FORWARDING_UNIT_NO,
+      </if>
+      <if test="forwardingUnitName != null">
+        FORWARDING_UNIT_NAME,
+      </if>
+      <if test="receivingUintNo != null">
+        RECEIVING_UINT_NO,
+      </if>
+      <if test="receivingUintName != null">
+        RECEIVING_UINT_NAME,
+      </if>
+      <if test="materialNo != null">
+        MATERIAL_NO,
+      </if>
+      <if test="materialName != null">
+        MATERIAL_NAME,
+      </if>
+      <if test="specNo != null">
+        SPEC_NO,
+      </if>
+      <if test="specName != null">
+        SPEC_NAME,
+      </if>
+      <if test="loadPointNo != null">
+        LOAD_POINT_NO,
+      </if>
+      <if test="loadPointName != null">
+        LOAD_POINT_NAME,
+      </if>
+      <if test="sampleVoucher != null">
+        SAMPLE_VOUCHER,
+      </if>
+      <if test="carrierUnitNo != null">
+        CARRIER_UNIT_NO,
+      </if>
+      <if test="carrierUnitName != null">
+        CARRIER_UNIT_NAME,
+      </if>
+      <if test="meterTypeNo != null">
+        METER_TYPE_NO,
+      </if>
+      <if test="meterTypeName != null">
+        METER_TYPE_NAME,
+      </if>
+      <if test="meterProcessNo != null">
+        METER_PROCESS_NO,
+      </if>
+      <if test="meterProcessEditionNo != null">
+        METER_PROCESS_EDITION_NO,
+      </if>
+      <if test="actualFirst1No != null">
+        ACTUAL_FIRST1_NO,
+      </if>
+      <if test="grossWeight != null">
+        GROSS_WEIGHT,
+      </if>
+      <if test="grossManNo != null">
+        GROSS_MAN_NO,
+      </if>
+      <if test="grossManName != null">
+        GROSS_MAN_NAME,
+      </if>
+      <if test="grossTime != null">
+        GROSS_TIME,
+      </if>
+      <if test="baseSpot1No != null">
+        BASE_SPOT1_NO,
+      </if>
+      <if test="baseSpot1Name != null">
+        BASE_SPOT1_NAME,
+      </if>
+      <if test="grossClass != null">
+        GROSS_CLASS,
+      </if>
+      <if test="grossGroup != null">
+        GROSS_GROUP,
+      </if>
+      <if test="grossMode != null">
+        GROSS_MODE,
+      </if>
+      <if test="actualFirst2No != null">
+        ACTUAL_FIRST2_NO,
+      </if>
+      <if test="tareWeight != null">
+        TARE_WEIGHT,
+      </if>
+      <if test="tareManNo != null">
+        TARE_MAN_NO,
+      </if>
+      <if test="tareManName != null">
+        TARE_MAN_NAME,
+      </if>
+      <if test="tareTime != null">
+        TARE_TIME,
+      </if>
+      <if test="baseSpot2No != null">
+        BASE_SPOT2_NO,
+      </if>
+      <if test="baseSpot2Name != null">
+        BASE_SPOT2_NAME,
+      </if>
+      <if test="tareClass != null">
+        TARE_CLASS,
+      </if>
+      <if test="tareGroup != null">
+        TARE_GROUP,
+      </if>
+      <if test="tareMode != null">
+        TARE_MODE,
+      </if>
+      <if test="netWeight != null">
+        NET_WEIGHT,
+      </if>
+      <if test="netManNo != null">
+        NET_MAN_NO,
+      </if>
+      <if test="netManName != null">
+        NET_MAN_NAME,
+      </if>
+      <if test="netTime != null">
+        NET_TIME,
+      </if>
+      <if test="netSpot3No != null">
+        NET_SPOT3_NO,
+      </if>
+      <if test="netSpot3Name != null">
+        NET_SPOT3_NAME,
+      </if>
+      <if test="netClass != null">
+        NET_CLASS,
+      </if>
+      <if test="netGroup != null">
+        NET_GROUP,
+      </if>
+      <if test="netMode != null">
+        NET_MODE,
+      </if>
+      <if test="valueFlag != null">
+        VALUE_FLAG,
+      </if>
+      <if test="uploadFlag != null">
+        UPLOAD_FLAG,
+      </if>
+      <if test="checkManNo != null">
+        CHECK_MAN_NO,
+      </if>
+      <if test="checkManName != null">
+        CHECK_MAN_NAME,
+      </if>
+      <if test="checkTime != null">
+        CHECK_TIME,
+      </if>
+      <if test="uploadManNo != null">
+        UPLOAD_MAN_NO,
+      </if>
+      <if test="uploadManName != null">
+        UPLOAD_MAN_NAME,
+      </if>
+      <if test="uploadTime != null">
+        UPLOAD_TIME,
+      </if>
+      <if test="sampleNo != null">
+        SAMPLE_NO,
+      </if>
+      <if test="railwayTypeNo != null">
+        RAILWAY_TYPE_NO,
+      </if>
+      <if test="railwayTypeName != null">
+        RAILWAY_TYPE_NAME,
+      </if>
+      <if test="memo != null">
+        MEMO,
+      </if>
+      <if test="waterNum != null">
+        WATER_NUM,
+      </if>
+      <if test="arrival != null">
+        ARRIVAL,
+      </if>
+      <if test="station != null">
+        STATION,
+      </if>
+      <if test="updateManNo != null">
+        UPDATE_MAN_NO,
+      </if>
+      <if test="updateManName != null">
+        UPDATE_MAN_NAME,
+      </if>
+      <if test="updateTime != null">
+        UPDATE_TIME,
+      </if>
+      <if test="sourceArea != null">
+        SOURCE_AREA,
+      </if>
+      <if test="voucherIdentity != null">
+        VOUCHER_IDENTITY,
+      </if>
+      <if test="voucherItem != null">
+        VOUCHER_ITEM,
+      </if>
+      <if test="businessGroup != null">
+        BUSINESS_GROUP,
+      </if>
+      <if test="tempConveyance != null">
+        TEMP_CONVEYANCE,
+      </if>
+      <if test="conveyanceType != null">
+        CONVEYANCE_TYPE,
+      </if>
+      <if test="resourceSystem != null">
+        RESOURCE_SYSTEM,
+      </if>
+      <if test="groupPackageAmount != null">
+        GROUP_PACKAGE_AMOUNT,
+      </if>
+      <if test="groupPackageUnit != null">
+        GROUP_PACKAGE_UNIT,
+      </if>
+      <if test="packageAmount != null">
+        PACKAGE_AMOUNT,
+      </if>
+      <if test="packageUnit != null">
+        PACKAGE_UNIT,
+      </if>
+      <if test="theoryAmount != null">
+        THEORY_AMOUNT,
+      </if>
+      <if test="measureBatch != null">
+        MEASURE_BATCH,
+      </if>
+      <if test="measureBatchCount != null">
+        MEASURE_BATCH_COUNT,
+      </if>
+      <if test="senderType != null">
+        SENDER_TYPE,
+      </if>
+      <if test="senderRemark != null">
+        SENDER_REMARK,
+      </if>
+      <if test="receiverType != null">
+        RECEIVER_TYPE,
+      </if>
+      <if test="receiverRemark != null">
+        RECEIVER_REMARK,
+      </if>
+      <if test="amountUnit != null">
+        AMOUNT_UNIT,
+      </if>
+      <if test="measureObjectType != null">
+        MEASURE_OBJECT_TYPE,
+      </if>
+      <if test="measureTaskNum != null">
+        MEASURE_TASK_NUM,
+      </if>
+      <if test="billType != null">
+        BILL_TYPE,
+      </if>
+      <if test="createManName != null">
+        CREATE_MAN_NAME,
+      </if>
+      <if test="createTime != null">
+        CREATE_TIME,
+      </if>
+      <if test="dataSource != null">
+        DATA_SOURCE,
+      </if>
+      <if test="note != null">
+        NOTE,
+      </if>
+      <if test="isPreSacale != null">
+        IS_PRE_SACALE,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="actualNo != null">
+        #{actualNo,jdbcType=VARCHAR},
+      </if>
+      <if test="predictionNo != null">
+        #{predictionNo,jdbcType=VARCHAR},
+      </if>
+      <if test="noticeNo != null">
+        #{noticeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayNo != null">
+        #{railwayNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayCarriageNo != null">
+        #{railwayCarriageNo,jdbcType=VARCHAR},
+      </if>
+      <if test="matterNo != null">
+        #{matterNo,jdbcType=VARCHAR},
+      </if>
+      <if test="matterName != null">
+        #{matterName,jdbcType=VARCHAR},
+      </if>
+      <if test="contractNo != null">
+        #{contractNo,jdbcType=VARCHAR},
+      </if>
+      <if test="batchNo != null">
+        #{batchNo,jdbcType=VARCHAR},
+      </if>
+      <if test="customerSupplierNo != null">
+        #{customerSupplierNo,jdbcType=VARCHAR},
+      </if>
+      <if test="customerSupplierName != null">
+        #{customerSupplierName,jdbcType=VARCHAR},
+      </if>
+      <if test="forwardingUnitNo != null">
+        #{forwardingUnitNo,jdbcType=VARCHAR},
+      </if>
+      <if test="forwardingUnitName != null">
+        #{forwardingUnitName,jdbcType=VARCHAR},
+      </if>
+      <if test="receivingUintNo != null">
+        #{receivingUintNo,jdbcType=VARCHAR},
+      </if>
+      <if test="receivingUintName != null">
+        #{receivingUintName,jdbcType=VARCHAR},
+      </if>
+      <if test="materialNo != null">
+        #{materialNo,jdbcType=VARCHAR},
+      </if>
+      <if test="materialName != null">
+        #{materialName,jdbcType=VARCHAR},
+      </if>
+      <if test="specNo != null">
+        #{specNo,jdbcType=VARCHAR},
+      </if>
+      <if test="specName != null">
+        #{specName,jdbcType=VARCHAR},
+      </if>
+      <if test="loadPointNo != null">
+        #{loadPointNo,jdbcType=VARCHAR},
+      </if>
+      <if test="loadPointName != null">
+        #{loadPointName,jdbcType=VARCHAR},
+      </if>
+      <if test="sampleVoucher != null">
+        #{sampleVoucher,jdbcType=VARCHAR},
+      </if>
+      <if test="carrierUnitNo != null">
+        #{carrierUnitNo,jdbcType=VARCHAR},
+      </if>
+      <if test="carrierUnitName != null">
+        #{carrierUnitName,jdbcType=VARCHAR},
+      </if>
+      <if test="meterTypeNo != null">
+        #{meterTypeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="meterTypeName != null">
+        #{meterTypeName,jdbcType=VARCHAR},
+      </if>
+      <if test="meterProcessNo != null">
+        #{meterProcessNo,jdbcType=VARCHAR},
+      </if>
+      <if test="meterProcessEditionNo != null">
+        #{meterProcessEditionNo,jdbcType=VARCHAR},
+      </if>
+      <if test="actualFirst1No != null">
+        #{actualFirst1No,jdbcType=VARCHAR},
+      </if>
+      <if test="grossWeight != null">
+        #{grossWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="grossManNo != null">
+        #{grossManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="grossManName != null">
+        #{grossManName,jdbcType=VARCHAR},
+      </if>
+      <if test="grossTime != null">
+        #{grossTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="baseSpot1No != null">
+        #{baseSpot1No,jdbcType=VARCHAR},
+      </if>
+      <if test="baseSpot1Name != null">
+        #{baseSpot1Name,jdbcType=VARCHAR},
+      </if>
+      <if test="grossClass != null">
+        #{grossClass,jdbcType=VARCHAR},
+      </if>
+      <if test="grossGroup != null">
+        #{grossGroup,jdbcType=VARCHAR},
+      </if>
+      <if test="grossMode != null">
+        #{grossMode,jdbcType=VARCHAR},
+      </if>
+      <if test="actualFirst2No != null">
+        #{actualFirst2No,jdbcType=VARCHAR},
+      </if>
+      <if test="tareWeight != null">
+        #{tareWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="tareManNo != null">
+        #{tareManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="tareManName != null">
+        #{tareManName,jdbcType=VARCHAR},
+      </if>
+      <if test="tareTime != null">
+        #{tareTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="baseSpot2No != null">
+        #{baseSpot2No,jdbcType=VARCHAR},
+      </if>
+      <if test="baseSpot2Name != null">
+        #{baseSpot2Name,jdbcType=VARCHAR},
+      </if>
+      <if test="tareClass != null">
+        #{tareClass,jdbcType=VARCHAR},
+      </if>
+      <if test="tareGroup != null">
+        #{tareGroup,jdbcType=VARCHAR},
+      </if>
+      <if test="tareMode != null">
+        #{tareMode,jdbcType=VARCHAR},
+      </if>
+      <if test="netWeight != null">
+        #{netWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="netManNo != null">
+        #{netManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="netManName != null">
+        #{netManName,jdbcType=VARCHAR},
+      </if>
+      <if test="netTime != null">
+        #{netTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="netSpot3No != null">
+        #{netSpot3No,jdbcType=VARCHAR},
+      </if>
+      <if test="netSpot3Name != null">
+        #{netSpot3Name,jdbcType=VARCHAR},
+      </if>
+      <if test="netClass != null">
+        #{netClass,jdbcType=VARCHAR},
+      </if>
+      <if test="netGroup != null">
+        #{netGroup,jdbcType=VARCHAR},
+      </if>
+      <if test="netMode != null">
+        #{netMode,jdbcType=VARCHAR},
+      </if>
+      <if test="valueFlag != null">
+        #{valueFlag,jdbcType=VARCHAR},
+      </if>
+      <if test="uploadFlag != null">
+        #{uploadFlag,jdbcType=VARCHAR},
+      </if>
+      <if test="checkManNo != null">
+        #{checkManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="checkManName != null">
+        #{checkManName,jdbcType=VARCHAR},
+      </if>
+      <if test="checkTime != null">
+        #{checkTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="uploadManNo != null">
+        #{uploadManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="uploadManName != null">
+        #{uploadManName,jdbcType=VARCHAR},
+      </if>
+      <if test="uploadTime != null">
+        #{uploadTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="sampleNo != null">
+        #{sampleNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayTypeNo != null">
+        #{railwayTypeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayTypeName != null">
+        #{railwayTypeName,jdbcType=VARCHAR},
+      </if>
+      <if test="memo != null">
+        #{memo,jdbcType=VARCHAR},
+      </if>
+      <if test="waterNum != null">
+        #{waterNum,jdbcType=DECIMAL},
+      </if>
+      <if test="arrival != null">
+        #{arrival,jdbcType=VARCHAR},
+      </if>
+      <if test="station != null">
+        #{station,jdbcType=VARCHAR},
+      </if>
+      <if test="updateManNo != null">
+        #{updateManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="updateManName != null">
+        #{updateManName,jdbcType=VARCHAR},
+      </if>
+      <if test="updateTime != null">
+        #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="sourceArea != null">
+        #{sourceArea,jdbcType=VARCHAR},
+      </if>
+      <if test="voucherIdentity != null">
+        #{voucherIdentity,jdbcType=VARCHAR},
+      </if>
+      <if test="voucherItem != null">
+        #{voucherItem,jdbcType=VARCHAR},
+      </if>
+      <if test="businessGroup != null">
+        #{businessGroup,jdbcType=VARCHAR},
+      </if>
+      <if test="tempConveyance != null">
+        #{tempConveyance,jdbcType=VARCHAR},
+      </if>
+      <if test="conveyanceType != null">
+        #{conveyanceType,jdbcType=VARCHAR},
+      </if>
+      <if test="resourceSystem != null">
+        #{resourceSystem,jdbcType=VARCHAR},
+      </if>
+      <if test="groupPackageAmount != null">
+        #{groupPackageAmount,jdbcType=DECIMAL},
+      </if>
+      <if test="groupPackageUnit != null">
+        #{groupPackageUnit,jdbcType=VARCHAR},
+      </if>
+      <if test="packageAmount != null">
+        #{packageAmount,jdbcType=DECIMAL},
+      </if>
+      <if test="packageUnit != null">
+        #{packageUnit,jdbcType=VARCHAR},
+      </if>
+      <if test="theoryAmount != null">
+        #{theoryAmount,jdbcType=DECIMAL},
+      </if>
+      <if test="measureBatch != null">
+        #{measureBatch,jdbcType=VARCHAR},
+      </if>
+      <if test="measureBatchCount != null">
+        #{measureBatchCount,jdbcType=DECIMAL},
+      </if>
+      <if test="senderType != null">
+        #{senderType,jdbcType=VARCHAR},
+      </if>
+      <if test="senderRemark != null">
+        #{senderRemark,jdbcType=VARCHAR},
+      </if>
+      <if test="receiverType != null">
+        #{receiverType,jdbcType=VARCHAR},
+      </if>
+      <if test="receiverRemark != null">
+        #{receiverRemark,jdbcType=VARCHAR},
+      </if>
+      <if test="amountUnit != null">
+        #{amountUnit,jdbcType=VARCHAR},
+      </if>
+      <if test="measureObjectType != null">
+        #{measureObjectType,jdbcType=VARCHAR},
+      </if>
+      <if test="measureTaskNum != null">
+        #{measureTaskNum,jdbcType=VARCHAR},
+      </if>
+      <if test="billType != null">
+        #{billType,jdbcType=VARCHAR},
+      </if>
+      <if test="createManName != null">
+        #{createManName,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="dataSource != null">
+        #{dataSource,jdbcType=VARCHAR},
+      </if>
+      <if test="note != null">
+        #{note,jdbcType=VARCHAR},
+      </if>
+      <if test="isPreSacale != null">
+        #{isPreSacale,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKey" parameterType="com.steerinfo.meterwork.meterworkmeasuringinstrument.model.MeterWorkMeasuringInstrument">
+    update METER_WORK_MEASURING_INSTRUMENT
+    set PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR},
+      NOTICE_NO = #{noticeNo,jdbcType=VARCHAR},
+      RAILWAY_NO = #{railwayNo,jdbcType=VARCHAR},
+      RAILWAY_CARRIAGE_NO = #{railwayCarriageNo,jdbcType=VARCHAR},
+      MATTER_NO = #{matterNo,jdbcType=VARCHAR},
+      MATTER_NAME = #{matterName,jdbcType=VARCHAR},
+      CONTRACT_NO = #{contractNo,jdbcType=VARCHAR},
+      BATCH_NO = #{batchNo,jdbcType=VARCHAR},
+      CUSTOMER_SUPPLIER_NO = #{customerSupplierNo,jdbcType=VARCHAR},
+      CUSTOMER_SUPPLIER_NAME = #{customerSupplierName,jdbcType=VARCHAR},
+      FORWARDING_UNIT_NO = #{forwardingUnitNo,jdbcType=VARCHAR},
+      FORWARDING_UNIT_NAME = #{forwardingUnitName,jdbcType=VARCHAR},
+      RECEIVING_UINT_NO = #{receivingUintNo,jdbcType=VARCHAR},
+      RECEIVING_UINT_NAME = #{receivingUintName,jdbcType=VARCHAR},
+      MATERIAL_NO = #{materialNo,jdbcType=VARCHAR},
+      MATERIAL_NAME = #{materialName,jdbcType=VARCHAR},
+      SPEC_NO = #{specNo,jdbcType=VARCHAR},
+      SPEC_NAME = #{specName,jdbcType=VARCHAR},
+      LOAD_POINT_NO = #{loadPointNo,jdbcType=VARCHAR},
+      LOAD_POINT_NAME = #{loadPointName,jdbcType=VARCHAR},
+      SAMPLE_VOUCHER = #{sampleVoucher,jdbcType=VARCHAR},
+      CARRIER_UNIT_NO = #{carrierUnitNo,jdbcType=VARCHAR},
+      CARRIER_UNIT_NAME = #{carrierUnitName,jdbcType=VARCHAR},
+      METER_TYPE_NO = #{meterTypeNo,jdbcType=VARCHAR},
+      METER_TYPE_NAME = #{meterTypeName,jdbcType=VARCHAR},
+      METER_PROCESS_NO = #{meterProcessNo,jdbcType=VARCHAR},
+      METER_PROCESS_EDITION_NO = #{meterProcessEditionNo,jdbcType=VARCHAR},
+      ACTUAL_FIRST1_NO = #{actualFirst1No,jdbcType=VARCHAR},
+      GROSS_WEIGHT = #{grossWeight,jdbcType=DECIMAL},
+      GROSS_MAN_NO = #{grossManNo,jdbcType=VARCHAR},
+      GROSS_MAN_NAME = #{grossManName,jdbcType=VARCHAR},
+      GROSS_TIME = #{grossTime,jdbcType=TIMESTAMP},
+      BASE_SPOT1_NO = #{baseSpot1No,jdbcType=VARCHAR},
+      BASE_SPOT1_NAME = #{baseSpot1Name,jdbcType=VARCHAR},
+      GROSS_CLASS = #{grossClass,jdbcType=VARCHAR},
+      GROSS_GROUP = #{grossGroup,jdbcType=VARCHAR},
+      GROSS_MODE = #{grossMode,jdbcType=VARCHAR},
+      ACTUAL_FIRST2_NO = #{actualFirst2No,jdbcType=VARCHAR},
+      TARE_WEIGHT = #{tareWeight,jdbcType=DECIMAL},
+      TARE_MAN_NO = #{tareManNo,jdbcType=VARCHAR},
+      TARE_MAN_NAME = #{tareManName,jdbcType=VARCHAR},
+      TARE_TIME = #{tareTime,jdbcType=TIMESTAMP},
+      BASE_SPOT2_NO = #{baseSpot2No,jdbcType=VARCHAR},
+      BASE_SPOT2_NAME = #{baseSpot2Name,jdbcType=VARCHAR},
+      TARE_CLASS = #{tareClass,jdbcType=VARCHAR},
+      TARE_GROUP = #{tareGroup,jdbcType=VARCHAR},
+      TARE_MODE = #{tareMode,jdbcType=VARCHAR},
+      NET_WEIGHT = #{netWeight,jdbcType=DECIMAL},
+      NET_MAN_NO = #{netManNo,jdbcType=VARCHAR},
+      NET_MAN_NAME = #{netManName,jdbcType=VARCHAR},
+      NET_TIME = #{netTime,jdbcType=TIMESTAMP},
+      NET_SPOT3_NO = #{netSpot3No,jdbcType=VARCHAR},
+      NET_SPOT3_NAME = #{netSpot3Name,jdbcType=VARCHAR},
+      NET_CLASS = #{netClass,jdbcType=VARCHAR},
+      NET_GROUP = #{netGroup,jdbcType=VARCHAR},
+      NET_MODE = #{netMode,jdbcType=VARCHAR},
+      VALUE_FLAG = #{valueFlag,jdbcType=VARCHAR},
+      UPLOAD_FLAG = #{uploadFlag,jdbcType=VARCHAR},
+      CHECK_MAN_NO = #{checkManNo,jdbcType=VARCHAR},
+      CHECK_MAN_NAME = #{checkManName,jdbcType=VARCHAR},
+      CHECK_TIME = #{checkTime,jdbcType=TIMESTAMP},
+      UPLOAD_MAN_NO = #{uploadManNo,jdbcType=VARCHAR},
+      UPLOAD_MAN_NAME = #{uploadManName,jdbcType=VARCHAR},
+      UPLOAD_TIME = #{uploadTime,jdbcType=TIMESTAMP},
+      SAMPLE_NO = #{sampleNo,jdbcType=VARCHAR},
+      RAILWAY_TYPE_NO = #{railwayTypeNo,jdbcType=VARCHAR},
+      RAILWAY_TYPE_NAME = #{railwayTypeName,jdbcType=VARCHAR},
+      MEMO = #{memo,jdbcType=VARCHAR},
+      WATER_NUM = #{waterNum,jdbcType=DECIMAL},
+      ARRIVAL = #{arrival,jdbcType=VARCHAR},
+      STATION = #{station,jdbcType=VARCHAR},
+      UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
+      UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
+      UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
+      SOURCE_AREA = #{sourceArea,jdbcType=VARCHAR},
+      VOUCHER_IDENTITY = #{voucherIdentity,jdbcType=VARCHAR},
+      VOUCHER_ITEM = #{voucherItem,jdbcType=VARCHAR},
+      BUSINESS_GROUP = #{businessGroup,jdbcType=VARCHAR},
+      TEMP_CONVEYANCE = #{tempConveyance,jdbcType=VARCHAR},
+      CONVEYANCE_TYPE = #{conveyanceType,jdbcType=VARCHAR},
+      RESOURCE_SYSTEM = #{resourceSystem,jdbcType=VARCHAR},
+      GROUP_PACKAGE_AMOUNT = #{groupPackageAmount,jdbcType=DECIMAL},
+      GROUP_PACKAGE_UNIT = #{groupPackageUnit,jdbcType=VARCHAR},
+      PACKAGE_AMOUNT = #{packageAmount,jdbcType=DECIMAL},
+      PACKAGE_UNIT = #{packageUnit,jdbcType=VARCHAR},
+      THEORY_AMOUNT = #{theoryAmount,jdbcType=DECIMAL},
+      MEASURE_BATCH = #{measureBatch,jdbcType=VARCHAR},
+      MEASURE_BATCH_COUNT = #{measureBatchCount,jdbcType=DECIMAL},
+      SENDER_TYPE = #{senderType,jdbcType=VARCHAR},
+      SENDER_REMARK = #{senderRemark,jdbcType=VARCHAR},
+      RECEIVER_TYPE = #{receiverType,jdbcType=VARCHAR},
+      RECEIVER_REMARK = #{receiverRemark,jdbcType=VARCHAR},
+      AMOUNT_UNIT = #{amountUnit,jdbcType=VARCHAR},
+      MEASURE_OBJECT_TYPE = #{measureObjectType,jdbcType=VARCHAR},
+      MEASURE_TASK_NUM = #{measureTaskNum,jdbcType=VARCHAR},
+      BILL_TYPE = #{billType,jdbcType=VARCHAR},
+      CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
+      CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
+      DATA_SOURCE = #{dataSource,jdbcType=VARCHAR},
+      NOTE = #{note,jdbcType=VARCHAR},
+      IS_PRE_SACALE = #{isPreSacale,jdbcType=VARCHAR}
+    where ACTUAL_NO = #{actualNo,jdbcType=VARCHAR}
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.meterwork.meterworkmeasuringinstrument.model.MeterWorkMeasuringInstrument">
+    update METER_WORK_MEASURING_INSTRUMENT
+    <set>
+      <if test="predictionNo != null">
+        PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR},
+      </if>
+      <if test="noticeNo != null">
+        NOTICE_NO = #{noticeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayNo != null">
+        RAILWAY_NO = #{railwayNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayCarriageNo != null">
+        RAILWAY_CARRIAGE_NO = #{railwayCarriageNo,jdbcType=VARCHAR},
+      </if>
+      <if test="matterNo != null">
+        MATTER_NO = #{matterNo,jdbcType=VARCHAR},
+      </if>
+      <if test="matterName != null">
+        MATTER_NAME = #{matterName,jdbcType=VARCHAR},
+      </if>
+      <if test="contractNo != null">
+        CONTRACT_NO = #{contractNo,jdbcType=VARCHAR},
+      </if>
+      <if test="batchNo != null">
+        BATCH_NO = #{batchNo,jdbcType=VARCHAR},
+      </if>
+      <if test="customerSupplierNo != null">
+        CUSTOMER_SUPPLIER_NO = #{customerSupplierNo,jdbcType=VARCHAR},
+      </if>
+      <if test="customerSupplierName != null">
+        CUSTOMER_SUPPLIER_NAME = #{customerSupplierName,jdbcType=VARCHAR},
+      </if>
+      <if test="forwardingUnitNo != null">
+        FORWARDING_UNIT_NO = #{forwardingUnitNo,jdbcType=VARCHAR},
+      </if>
+      <if test="forwardingUnitName != null">
+        FORWARDING_UNIT_NAME = #{forwardingUnitName,jdbcType=VARCHAR},
+      </if>
+      <if test="receivingUintNo != null">
+        RECEIVING_UINT_NO = #{receivingUintNo,jdbcType=VARCHAR},
+      </if>
+      <if test="receivingUintName != null">
+        RECEIVING_UINT_NAME = #{receivingUintName,jdbcType=VARCHAR},
+      </if>
+      <if test="materialNo != null">
+        MATERIAL_NO = #{materialNo,jdbcType=VARCHAR},
+      </if>
+      <if test="materialName != null">
+        MATERIAL_NAME = #{materialName,jdbcType=VARCHAR},
+      </if>
+      <if test="specNo != null">
+        SPEC_NO = #{specNo,jdbcType=VARCHAR},
+      </if>
+      <if test="specName != null">
+        SPEC_NAME = #{specName,jdbcType=VARCHAR},
+      </if>
+      <if test="loadPointNo != null">
+        LOAD_POINT_NO = #{loadPointNo,jdbcType=VARCHAR},
+      </if>
+      <if test="loadPointName != null">
+        LOAD_POINT_NAME = #{loadPointName,jdbcType=VARCHAR},
+      </if>
+      <if test="sampleVoucher != null">
+        SAMPLE_VOUCHER = #{sampleVoucher,jdbcType=VARCHAR},
+      </if>
+      <if test="carrierUnitNo != null">
+        CARRIER_UNIT_NO = #{carrierUnitNo,jdbcType=VARCHAR},
+      </if>
+      <if test="carrierUnitName != null">
+        CARRIER_UNIT_NAME = #{carrierUnitName,jdbcType=VARCHAR},
+      </if>
+      <if test="meterTypeNo != null">
+        METER_TYPE_NO = #{meterTypeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="meterTypeName != null">
+        METER_TYPE_NAME = #{meterTypeName,jdbcType=VARCHAR},
+      </if>
+      <if test="meterProcessNo != null">
+        METER_PROCESS_NO = #{meterProcessNo,jdbcType=VARCHAR},
+      </if>
+      <if test="meterProcessEditionNo != null">
+        METER_PROCESS_EDITION_NO = #{meterProcessEditionNo,jdbcType=VARCHAR},
+      </if>
+      <if test="actualFirst1No != null">
+        ACTUAL_FIRST1_NO = #{actualFirst1No,jdbcType=VARCHAR},
+      </if>
+      <if test="grossWeight != null">
+        GROSS_WEIGHT = #{grossWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="grossManNo != null">
+        GROSS_MAN_NO = #{grossManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="grossManName != null">
+        GROSS_MAN_NAME = #{grossManName,jdbcType=VARCHAR},
+      </if>
+      <if test="grossTime != null">
+        GROSS_TIME = #{grossTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="baseSpot1No != null">
+        BASE_SPOT1_NO = #{baseSpot1No,jdbcType=VARCHAR},
+      </if>
+      <if test="baseSpot1Name != null">
+        BASE_SPOT1_NAME = #{baseSpot1Name,jdbcType=VARCHAR},
+      </if>
+      <if test="grossClass != null">
+        GROSS_CLASS = #{grossClass,jdbcType=VARCHAR},
+      </if>
+      <if test="grossGroup != null">
+        GROSS_GROUP = #{grossGroup,jdbcType=VARCHAR},
+      </if>
+      <if test="grossMode != null">
+        GROSS_MODE = #{grossMode,jdbcType=VARCHAR},
+      </if>
+      <if test="actualFirst2No != null">
+        ACTUAL_FIRST2_NO = #{actualFirst2No,jdbcType=VARCHAR},
+      </if>
+      <if test="tareWeight != null">
+        TARE_WEIGHT = #{tareWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="tareManNo != null">
+        TARE_MAN_NO = #{tareManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="tareManName != null">
+        TARE_MAN_NAME = #{tareManName,jdbcType=VARCHAR},
+      </if>
+      <if test="tareTime != null">
+        TARE_TIME = #{tareTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="baseSpot2No != null">
+        BASE_SPOT2_NO = #{baseSpot2No,jdbcType=VARCHAR},
+      </if>
+      <if test="baseSpot2Name != null">
+        BASE_SPOT2_NAME = #{baseSpot2Name,jdbcType=VARCHAR},
+      </if>
+      <if test="tareClass != null">
+        TARE_CLASS = #{tareClass,jdbcType=VARCHAR},
+      </if>
+      <if test="tareGroup != null">
+        TARE_GROUP = #{tareGroup,jdbcType=VARCHAR},
+      </if>
+      <if test="tareMode != null">
+        TARE_MODE = #{tareMode,jdbcType=VARCHAR},
+      </if>
+      <if test="netWeight != null">
+        NET_WEIGHT = #{netWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="netManNo != null">
+        NET_MAN_NO = #{netManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="netManName != null">
+        NET_MAN_NAME = #{netManName,jdbcType=VARCHAR},
+      </if>
+      <if test="netTime != null">
+        NET_TIME = #{netTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="netSpot3No != null">
+        NET_SPOT3_NO = #{netSpot3No,jdbcType=VARCHAR},
+      </if>
+      <if test="netSpot3Name != null">
+        NET_SPOT3_NAME = #{netSpot3Name,jdbcType=VARCHAR},
+      </if>
+      <if test="netClass != null">
+        NET_CLASS = #{netClass,jdbcType=VARCHAR},
+      </if>
+      <if test="netGroup != null">
+        NET_GROUP = #{netGroup,jdbcType=VARCHAR},
+      </if>
+      <if test="netMode != null">
+        NET_MODE = #{netMode,jdbcType=VARCHAR},
+      </if>
+      <if test="valueFlag != null">
+        VALUE_FLAG = #{valueFlag,jdbcType=VARCHAR},
+      </if>
+      <if test="uploadFlag != null">
+        UPLOAD_FLAG = #{uploadFlag,jdbcType=VARCHAR},
+      </if>
+      <if test="checkManNo != null">
+        CHECK_MAN_NO = #{checkManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="checkManName != null">
+        CHECK_MAN_NAME = #{checkManName,jdbcType=VARCHAR},
+      </if>
+      <if test="checkTime != null">
+        CHECK_TIME = #{checkTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="uploadManNo != null">
+        UPLOAD_MAN_NO = #{uploadManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="uploadManName != null">
+        UPLOAD_MAN_NAME = #{uploadManName,jdbcType=VARCHAR},
+      </if>
+      <if test="uploadTime != null">
+        UPLOAD_TIME = #{uploadTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="sampleNo != null">
+        SAMPLE_NO = #{sampleNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayTypeNo != null">
+        RAILWAY_TYPE_NO = #{railwayTypeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayTypeName != null">
+        RAILWAY_TYPE_NAME = #{railwayTypeName,jdbcType=VARCHAR},
+      </if>
+      <if test="memo != null">
+        MEMO = #{memo,jdbcType=VARCHAR},
+      </if>
+      <if test="waterNum != null">
+        WATER_NUM = #{waterNum,jdbcType=DECIMAL},
+      </if>
+      <if test="arrival != null">
+        ARRIVAL = #{arrival,jdbcType=VARCHAR},
+      </if>
+      <if test="station != null">
+        STATION = #{station,jdbcType=VARCHAR},
+      </if>
+      <if test="updateManNo != null">
+        UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="updateManName != null">
+        UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
+      </if>
+      <if test="updateTime != null">
+        UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="sourceArea != null">
+        SOURCE_AREA = #{sourceArea,jdbcType=VARCHAR},
+      </if>
+      <if test="voucherIdentity != null">
+        VOUCHER_IDENTITY = #{voucherIdentity,jdbcType=VARCHAR},
+      </if>
+      <if test="voucherItem != null">
+        VOUCHER_ITEM = #{voucherItem,jdbcType=VARCHAR},
+      </if>
+      <if test="businessGroup != null">
+        BUSINESS_GROUP = #{businessGroup,jdbcType=VARCHAR},
+      </if>
+      <if test="tempConveyance != null">
+        TEMP_CONVEYANCE = #{tempConveyance,jdbcType=VARCHAR},
+      </if>
+      <if test="conveyanceType != null">
+        CONVEYANCE_TYPE = #{conveyanceType,jdbcType=VARCHAR},
+      </if>
+      <if test="resourceSystem != null">
+        RESOURCE_SYSTEM = #{resourceSystem,jdbcType=VARCHAR},
+      </if>
+      <if test="groupPackageAmount != null">
+        GROUP_PACKAGE_AMOUNT = #{groupPackageAmount,jdbcType=DECIMAL},
+      </if>
+      <if test="groupPackageUnit != null">
+        GROUP_PACKAGE_UNIT = #{groupPackageUnit,jdbcType=VARCHAR},
+      </if>
+      <if test="packageAmount != null">
+        PACKAGE_AMOUNT = #{packageAmount,jdbcType=DECIMAL},
+      </if>
+      <if test="packageUnit != null">
+        PACKAGE_UNIT = #{packageUnit,jdbcType=VARCHAR},
+      </if>
+      <if test="theoryAmount != null">
+        THEORY_AMOUNT = #{theoryAmount,jdbcType=DECIMAL},
+      </if>
+      <if test="measureBatch != null">
+        MEASURE_BATCH = #{measureBatch,jdbcType=VARCHAR},
+      </if>
+      <if test="measureBatchCount != null">
+        MEASURE_BATCH_COUNT = #{measureBatchCount,jdbcType=DECIMAL},
+      </if>
+      <if test="senderType != null">
+        SENDER_TYPE = #{senderType,jdbcType=VARCHAR},
+      </if>
+      <if test="senderRemark != null">
+        SENDER_REMARK = #{senderRemark,jdbcType=VARCHAR},
+      </if>
+      <if test="receiverType != null">
+        RECEIVER_TYPE = #{receiverType,jdbcType=VARCHAR},
+      </if>
+      <if test="receiverRemark != null">
+        RECEIVER_REMARK = #{receiverRemark,jdbcType=VARCHAR},
+      </if>
+      <if test="amountUnit != null">
+        AMOUNT_UNIT = #{amountUnit,jdbcType=VARCHAR},
+      </if>
+      <if test="measureObjectType != null">
+        MEASURE_OBJECT_TYPE = #{measureObjectType,jdbcType=VARCHAR},
+      </if>
+      <if test="measureTaskNum != null">
+        MEASURE_TASK_NUM = #{measureTaskNum,jdbcType=VARCHAR},
+      </if>
+      <if test="billType != null">
+        BILL_TYPE = #{billType,jdbcType=VARCHAR},
+      </if>
+      <if test="createManName != null">
+        CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="dataSource != null">
+        DATA_SOURCE = #{dataSource,jdbcType=VARCHAR},
+      </if>
+      <if test="note != null">
+        NOTE = #{note,jdbcType=VARCHAR},
+      </if>
+      <if test="isPreSacale != null">
+        IS_PRE_SACALE = #{isPreSacale,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where ACTUAL_NO = #{actualNo,jdbcType=VARCHAR}
+  </update>
+  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
+    <include refid="select"/>
+    where ACTUAL_NO = #{actualNo,jdbcType=VARCHAR}
+  </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 METER_WORK_MEASURING_INSTRUMENT 
+      (ACTUAL_NO, 
+      PREDICTION_NO, NOTICE_NO, RAILWAY_NO, 
+      RAILWAY_CARRIAGE_NO, MATTER_NO, 
+      MATTER_NAME, CONTRACT_NO, BATCH_NO, 
+      CUSTOMER_SUPPLIER_NO, CUSTOMER_SUPPLIER_NAME, 
+      FORWARDING_UNIT_NO, FORWARDING_UNIT_NAME, 
+      RECEIVING_UINT_NO, RECEIVING_UINT_NAME, 
+      MATERIAL_NO, MATERIAL_NAME, SPEC_NO, 
+      SPEC_NAME, LOAD_POINT_NO, LOAD_POINT_NAME, 
+      SAMPLE_VOUCHER, CARRIER_UNIT_NO, 
+      CARRIER_UNIT_NAME, METER_TYPE_NO, 
+      METER_TYPE_NAME, METER_PROCESS_NO, 
+      METER_PROCESS_EDITION_NO, ACTUAL_FIRST1_NO, 
+      GROSS_WEIGHT, GROSS_MAN_NO, GROSS_MAN_NAME, 
+      GROSS_TIME, BASE_SPOT1_NO, BASE_SPOT1_NAME, 
+      GROSS_CLASS, GROSS_GROUP, GROSS_MODE, 
+      ACTUAL_FIRST2_NO, TARE_WEIGHT, TARE_MAN_NO, 
+      TARE_MAN_NAME, TARE_TIME, BASE_SPOT2_NO, 
+      BASE_SPOT2_NAME, TARE_CLASS, TARE_GROUP, 
+      TARE_MODE, NET_WEIGHT, NET_MAN_NO, 
+      NET_MAN_NAME, NET_TIME, NET_SPOT3_NO, 
+      NET_SPOT3_NAME, NET_CLASS, NET_GROUP, 
+      NET_MODE, VALUE_FLAG, UPLOAD_FLAG, 
+      CHECK_MAN_NO, CHECK_MAN_NAME, CHECK_TIME, 
+      UPLOAD_MAN_NO, UPLOAD_MAN_NAME, UPLOAD_TIME, 
+      SAMPLE_NO, RAILWAY_TYPE_NO, RAILWAY_TYPE_NAME, 
+      MEMO, WATER_NUM, ARRIVAL, 
+      STATION, UPDATE_MAN_NO, UPDATE_MAN_NAME, 
+      UPDATE_TIME, SOURCE_AREA, VOUCHER_IDENTITY, 
+      VOUCHER_ITEM, BUSINESS_GROUP, TEMP_CONVEYANCE, 
+      CONVEYANCE_TYPE, RESOURCE_SYSTEM, 
+      GROUP_PACKAGE_AMOUNT, GROUP_PACKAGE_UNIT, 
+      PACKAGE_AMOUNT, PACKAGE_UNIT, THEORY_AMOUNT, 
+      MEASURE_BATCH, MEASURE_BATCH_COUNT, 
+      SENDER_TYPE, SENDER_REMARK, RECEIVER_TYPE, 
+      RECEIVER_REMARK, AMOUNT_UNIT, MEASURE_OBJECT_TYPE, 
+      MEASURE_TASK_NUM, BILL_TYPE, CREATE_MAN_NAME, 
+      CREATE_TIME, DATA_SOURCE, NOTE, 
+      IS_PRE_SACALE)
+    ( <foreach collection="list" item="item" separator="union all"> 
+   select  
+      #{item.actualNo,jdbcType=VARCHAR}, 
+      #{item.predictionNo,jdbcType=VARCHAR}, #{item.noticeNo,jdbcType=VARCHAR}, #{item.railwayNo,jdbcType=VARCHAR}, 
+      #{item.railwayCarriageNo,jdbcType=VARCHAR}, #{item.matterNo,jdbcType=VARCHAR}, 
+      #{item.matterName,jdbcType=VARCHAR}, #{item.contractNo,jdbcType=VARCHAR}, #{item.batchNo,jdbcType=VARCHAR}, 
+      #{item.customerSupplierNo,jdbcType=VARCHAR}, #{item.customerSupplierName,jdbcType=VARCHAR}, 
+      #{item.forwardingUnitNo,jdbcType=VARCHAR}, #{item.forwardingUnitName,jdbcType=VARCHAR}, 
+      #{item.receivingUintNo,jdbcType=VARCHAR}, #{item.receivingUintName,jdbcType=VARCHAR}, 
+      #{item.materialNo,jdbcType=VARCHAR}, #{item.materialName,jdbcType=VARCHAR}, #{item.specNo,jdbcType=VARCHAR}, 
+      #{item.specName,jdbcType=VARCHAR}, #{item.loadPointNo,jdbcType=VARCHAR}, #{item.loadPointName,jdbcType=VARCHAR}, 
+      #{item.sampleVoucher,jdbcType=VARCHAR}, #{item.carrierUnitNo,jdbcType=VARCHAR}, 
+      #{item.carrierUnitName,jdbcType=VARCHAR}, #{item.meterTypeNo,jdbcType=VARCHAR}, 
+      #{item.meterTypeName,jdbcType=VARCHAR}, #{item.meterProcessNo,jdbcType=VARCHAR}, 
+      #{item.meterProcessEditionNo,jdbcType=VARCHAR}, #{item.actualFirst1No,jdbcType=VARCHAR}, 
+      #{item.grossWeight,jdbcType=DECIMAL}, #{item.grossManNo,jdbcType=VARCHAR}, #{item.grossManName,jdbcType=VARCHAR}, 
+      #{item.grossTime,jdbcType=TIMESTAMP}, #{item.baseSpot1No,jdbcType=VARCHAR}, #{item.baseSpot1Name,jdbcType=VARCHAR}, 
+      #{item.grossClass,jdbcType=VARCHAR}, #{item.grossGroup,jdbcType=VARCHAR}, #{item.grossMode,jdbcType=VARCHAR}, 
+      #{item.actualFirst2No,jdbcType=VARCHAR}, #{item.tareWeight,jdbcType=DECIMAL}, #{item.tareManNo,jdbcType=VARCHAR}, 
+      #{item.tareManName,jdbcType=VARCHAR}, #{item.tareTime,jdbcType=TIMESTAMP}, #{item.baseSpot2No,jdbcType=VARCHAR}, 
+      #{item.baseSpot2Name,jdbcType=VARCHAR}, #{item.tareClass,jdbcType=VARCHAR}, #{item.tareGroup,jdbcType=VARCHAR}, 
+      #{item.tareMode,jdbcType=VARCHAR}, #{item.netWeight,jdbcType=DECIMAL}, #{item.netManNo,jdbcType=VARCHAR}, 
+      #{item.netManName,jdbcType=VARCHAR}, #{item.netTime,jdbcType=TIMESTAMP}, #{item.netSpot3No,jdbcType=VARCHAR}, 
+      #{item.netSpot3Name,jdbcType=VARCHAR}, #{item.netClass,jdbcType=VARCHAR}, #{item.netGroup,jdbcType=VARCHAR}, 
+      #{item.netMode,jdbcType=VARCHAR}, #{item.valueFlag,jdbcType=VARCHAR}, #{item.uploadFlag,jdbcType=VARCHAR}, 
+      #{item.checkManNo,jdbcType=VARCHAR}, #{item.checkManName,jdbcType=VARCHAR}, #{item.checkTime,jdbcType=TIMESTAMP}, 
+      #{item.uploadManNo,jdbcType=VARCHAR}, #{item.uploadManName,jdbcType=VARCHAR}, #{item.uploadTime,jdbcType=TIMESTAMP}, 
+      #{item.sampleNo,jdbcType=VARCHAR}, #{item.railwayTypeNo,jdbcType=VARCHAR}, #{item.railwayTypeName,jdbcType=VARCHAR}, 
+      #{item.memo,jdbcType=VARCHAR}, #{item.waterNum,jdbcType=DECIMAL}, #{item.arrival,jdbcType=VARCHAR}, 
+      #{item.station,jdbcType=VARCHAR}, #{item.updateManNo,jdbcType=VARCHAR}, #{item.updateManName,jdbcType=VARCHAR}, 
+      #{item.updateTime,jdbcType=TIMESTAMP}, #{item.sourceArea,jdbcType=VARCHAR}, #{item.voucherIdentity,jdbcType=VARCHAR}, 
+      #{item.voucherItem,jdbcType=VARCHAR}, #{item.businessGroup,jdbcType=VARCHAR}, #{item.tempConveyance,jdbcType=VARCHAR}, 
+      #{item.conveyanceType,jdbcType=VARCHAR}, #{item.resourceSystem,jdbcType=VARCHAR}, 
+      #{item.groupPackageAmount,jdbcType=DECIMAL}, #{item.groupPackageUnit,jdbcType=VARCHAR}, 
+      #{item.packageAmount,jdbcType=DECIMAL}, #{item.packageUnit,jdbcType=VARCHAR}, #{item.theoryAmount,jdbcType=DECIMAL}, 
+      #{item.measureBatch,jdbcType=VARCHAR}, #{item.measureBatchCount,jdbcType=DECIMAL}, 
+      #{item.senderType,jdbcType=VARCHAR}, #{item.senderRemark,jdbcType=VARCHAR}, #{item.receiverType,jdbcType=VARCHAR}, 
+      #{item.receiverRemark,jdbcType=VARCHAR}, #{item.amountUnit,jdbcType=VARCHAR}, #{item.measureObjectType,jdbcType=VARCHAR}, 
+      #{item.measureTaskNum,jdbcType=VARCHAR}, #{item.billType,jdbcType=VARCHAR}, #{item.createManName,jdbcType=VARCHAR}, 
+      #{item.createTime,jdbcType=TIMESTAMP}, #{item.dataSource,jdbcType=VARCHAR}, #{item.note,jdbcType=VARCHAR}, 
+      #{item.isPreSacale,jdbcType=VARCHAR} from dual  
+   </foreach> )
+  </insert>
+  <update id="batchUpdate" parameterType="java.util.List">
+     update METER_WORK_MEASURING_INSTRUMENT
+     set
+       ACTUAL_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.actualNo,jdbcType=VARCHAR}
+       </foreach>
+       ,PREDICTION_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.predictionNo,jdbcType=VARCHAR}
+       </foreach>
+       ,NOTICE_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.noticeNo,jdbcType=VARCHAR}
+       </foreach>
+       ,RAILWAY_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.railwayNo,jdbcType=VARCHAR}
+       </foreach>
+       ,RAILWAY_CARRIAGE_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.railwayCarriageNo,jdbcType=VARCHAR}
+       </foreach>
+       ,MATTER_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.matterNo,jdbcType=VARCHAR}
+       </foreach>
+       ,MATTER_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.matterName,jdbcType=VARCHAR}
+       </foreach>
+       ,CONTRACT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.contractNo,jdbcType=VARCHAR}
+       </foreach>
+       ,BATCH_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.batchNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CUSTOMER_SUPPLIER_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.customerSupplierNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CUSTOMER_SUPPLIER_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.customerSupplierName,jdbcType=VARCHAR}
+       </foreach>
+       ,FORWARDING_UNIT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.forwardingUnitNo,jdbcType=VARCHAR}
+       </foreach>
+       ,FORWARDING_UNIT_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.forwardingUnitName,jdbcType=VARCHAR}
+       </foreach>
+       ,RECEIVING_UINT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.receivingUintNo,jdbcType=VARCHAR}
+       </foreach>
+       ,RECEIVING_UINT_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.receivingUintName,jdbcType=VARCHAR}
+       </foreach>
+       ,MATERIAL_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.materialNo,jdbcType=VARCHAR}
+       </foreach>
+       ,MATERIAL_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.materialName,jdbcType=VARCHAR}
+       </foreach>
+       ,SPEC_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.specNo,jdbcType=VARCHAR}
+       </foreach>
+       ,SPEC_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.specName,jdbcType=VARCHAR}
+       </foreach>
+       ,LOAD_POINT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.loadPointNo,jdbcType=VARCHAR}
+       </foreach>
+       ,LOAD_POINT_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.loadPointName,jdbcType=VARCHAR}
+       </foreach>
+       ,SAMPLE_VOUCHER=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.sampleVoucher,jdbcType=VARCHAR}
+       </foreach>
+       ,CARRIER_UNIT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.carrierUnitNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CARRIER_UNIT_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.carrierUnitName,jdbcType=VARCHAR}
+       </foreach>
+       ,METER_TYPE_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.meterTypeNo,jdbcType=VARCHAR}
+       </foreach>
+       ,METER_TYPE_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.meterTypeName,jdbcType=VARCHAR}
+       </foreach>
+       ,METER_PROCESS_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.meterProcessNo,jdbcType=VARCHAR}
+       </foreach>
+       ,METER_PROCESS_EDITION_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.meterProcessEditionNo,jdbcType=VARCHAR}
+       </foreach>
+       ,ACTUAL_FIRST1_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.actualFirst1No,jdbcType=VARCHAR}
+       </foreach>
+       ,GROSS_WEIGHT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.grossWeight,jdbcType=DECIMAL}
+       </foreach>
+       ,GROSS_MAN_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.grossManNo,jdbcType=VARCHAR}
+       </foreach>
+       ,GROSS_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.grossManName,jdbcType=VARCHAR}
+       </foreach>
+       ,GROSS_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.grossTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,BASE_SPOT1_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.baseSpot1No,jdbcType=VARCHAR}
+       </foreach>
+       ,BASE_SPOT1_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.baseSpot1Name,jdbcType=VARCHAR}
+       </foreach>
+       ,GROSS_CLASS=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.grossClass,jdbcType=VARCHAR}
+       </foreach>
+       ,GROSS_GROUP=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.grossGroup,jdbcType=VARCHAR}
+       </foreach>
+       ,GROSS_MODE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.grossMode,jdbcType=VARCHAR}
+       </foreach>
+       ,ACTUAL_FIRST2_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.actualFirst2No,jdbcType=VARCHAR}
+       </foreach>
+       ,TARE_WEIGHT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.tareWeight,jdbcType=DECIMAL}
+       </foreach>
+       ,TARE_MAN_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.tareManNo,jdbcType=VARCHAR}
+       </foreach>
+       ,TARE_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.tareManName,jdbcType=VARCHAR}
+       </foreach>
+       ,TARE_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.tareTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,BASE_SPOT2_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.baseSpot2No,jdbcType=VARCHAR}
+       </foreach>
+       ,BASE_SPOT2_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.baseSpot2Name,jdbcType=VARCHAR}
+       </foreach>
+       ,TARE_CLASS=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.tareClass,jdbcType=VARCHAR}
+       </foreach>
+       ,TARE_GROUP=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.tareGroup,jdbcType=VARCHAR}
+       </foreach>
+       ,TARE_MODE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.tareMode,jdbcType=VARCHAR}
+       </foreach>
+       ,NET_WEIGHT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.netWeight,jdbcType=DECIMAL}
+       </foreach>
+       ,NET_MAN_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.netManNo,jdbcType=VARCHAR}
+       </foreach>
+       ,NET_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.netManName,jdbcType=VARCHAR}
+       </foreach>
+       ,NET_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.netTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,NET_SPOT3_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.netSpot3No,jdbcType=VARCHAR}
+       </foreach>
+       ,NET_SPOT3_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.netSpot3Name,jdbcType=VARCHAR}
+       </foreach>
+       ,NET_CLASS=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.netClass,jdbcType=VARCHAR}
+       </foreach>
+       ,NET_GROUP=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.netGroup,jdbcType=VARCHAR}
+       </foreach>
+       ,NET_MODE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.netMode,jdbcType=VARCHAR}
+       </foreach>
+       ,VALUE_FLAG=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.valueFlag,jdbcType=VARCHAR}
+       </foreach>
+       ,UPLOAD_FLAG=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.uploadFlag,jdbcType=VARCHAR}
+       </foreach>
+       ,CHECK_MAN_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.checkManNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CHECK_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.checkManName,jdbcType=VARCHAR}
+       </foreach>
+       ,CHECK_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.checkTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,UPLOAD_MAN_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.uploadManNo,jdbcType=VARCHAR}
+       </foreach>
+       ,UPLOAD_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.uploadManName,jdbcType=VARCHAR}
+       </foreach>
+       ,UPLOAD_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.uploadTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,SAMPLE_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.sampleNo,jdbcType=VARCHAR}
+       </foreach>
+       ,RAILWAY_TYPE_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.railwayTypeNo,jdbcType=VARCHAR}
+       </foreach>
+       ,RAILWAY_TYPE_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.railwayTypeName,jdbcType=VARCHAR}
+       </foreach>
+       ,MEMO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.memo,jdbcType=VARCHAR}
+       </foreach>
+       ,WATER_NUM=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.waterNum,jdbcType=DECIMAL}
+       </foreach>
+       ,ARRIVAL=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.arrival,jdbcType=VARCHAR}
+       </foreach>
+       ,STATION=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.station,jdbcType=VARCHAR}
+       </foreach>
+       ,UPDATE_MAN_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=VARCHAR}
+       </foreach>
+       ,UPDATE_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.updateManName,jdbcType=VARCHAR}
+       </foreach>
+       ,UPDATE_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,SOURCE_AREA=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.sourceArea,jdbcType=VARCHAR}
+       </foreach>
+       ,VOUCHER_IDENTITY=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.voucherIdentity,jdbcType=VARCHAR}
+       </foreach>
+       ,VOUCHER_ITEM=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.voucherItem,jdbcType=VARCHAR}
+       </foreach>
+       ,BUSINESS_GROUP=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.businessGroup,jdbcType=VARCHAR}
+       </foreach>
+       ,TEMP_CONVEYANCE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.tempConveyance,jdbcType=VARCHAR}
+       </foreach>
+       ,CONVEYANCE_TYPE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.conveyanceType,jdbcType=VARCHAR}
+       </foreach>
+       ,RESOURCE_SYSTEM=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.resourceSystem,jdbcType=VARCHAR}
+       </foreach>
+       ,GROUP_PACKAGE_AMOUNT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.groupPackageAmount,jdbcType=DECIMAL}
+       </foreach>
+       ,GROUP_PACKAGE_UNIT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.groupPackageUnit,jdbcType=VARCHAR}
+       </foreach>
+       ,PACKAGE_AMOUNT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.packageAmount,jdbcType=DECIMAL}
+       </foreach>
+       ,PACKAGE_UNIT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.packageUnit,jdbcType=VARCHAR}
+       </foreach>
+       ,THEORY_AMOUNT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.theoryAmount,jdbcType=DECIMAL}
+       </foreach>
+       ,MEASURE_BATCH=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.measureBatch,jdbcType=VARCHAR}
+       </foreach>
+       ,MEASURE_BATCH_COUNT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.measureBatchCount,jdbcType=DECIMAL}
+       </foreach>
+       ,SENDER_TYPE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.senderType,jdbcType=VARCHAR}
+       </foreach>
+       ,SENDER_REMARK=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.senderRemark,jdbcType=VARCHAR}
+       </foreach>
+       ,RECEIVER_TYPE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.receiverType,jdbcType=VARCHAR}
+       </foreach>
+       ,RECEIVER_REMARK=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.receiverRemark,jdbcType=VARCHAR}
+       </foreach>
+       ,AMOUNT_UNIT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.amountUnit,jdbcType=VARCHAR}
+       </foreach>
+       ,MEASURE_OBJECT_TYPE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.measureObjectType,jdbcType=VARCHAR}
+       </foreach>
+       ,MEASURE_TASK_NUM=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.measureTaskNum,jdbcType=VARCHAR}
+       </foreach>
+       ,BILL_TYPE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.billType,jdbcType=VARCHAR}
+       </foreach>
+       ,CREATE_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
+       </foreach>
+       ,CREATE_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,DATA_SOURCE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.dataSource,jdbcType=VARCHAR}
+       </foreach>
+       ,NOTE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.note,jdbcType=VARCHAR}
+       </foreach>
+       ,IS_PRE_SACALE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.isPreSacale,jdbcType=VARCHAR}
+       </foreach>
+     where ACTUAL_NO in 
+     <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
+    #{item.actualNo,jdbcType=VARCHAR}
+     </foreach> 
+  </update>
+  <delete id="batchDelete" parameterType="java.util.List">
+    delete from METER_WORK_MEASURING_INSTRUMENT
+    where ACTUAL_NO in 
+    <foreach collection="list" item="id" open="(" close=")" separator=",">
+      #{id}
+    </foreach>
+  </delete>
+  <!-- 友情提示!!!-->
+  <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
+  <select id="getNewID" parameterType="java.lang.String" resultType="java.lang.String">
+    SELECT LPAD(NVL(MAX(TO_NUMBER(SUBSTR(ACTUAL_NO, LENGTH(ACTUAL_NO) - 3))),0) + 1,4,'0') ACTUAL_NO
+    FROM METER_WORK_MEASURING_INSTRUMENT where instr(ACTUAL_NO,#{afl,jdbcType=VARCHAR})>0
+  </select>
+</mapper>

+ 1563 - 0
src/main/java/com/steerinfo/meterwork/meterworkmeasuringinstrument/model/MeterWorkMeasuringInstrument.java

@@ -0,0 +1,1563 @@
+package com.steerinfo.meterwork.meterworkmeasuringinstrument.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="null")
+public class MeterWorkMeasuringInstrument implements IBasePO<String> {
+    /**
+     * 结净编号(YYYYMMDD+4位流水)(ACTUAL_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="结净编号(YYYYMMDD+4位流水)",required=true)
+    private String actualNo;
+
+    /**
+     * 预报编号(PREDICTION_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="预报编号",required=false)
+    private String predictionNo;
+
+    /**
+     * 通知单号(NOTICE_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="通知单号",required=false)
+    private String noticeNo;
+
+    /**
+     * 火车车号(RAILWAY_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="火车车号",required=false)
+    private String railwayNo;
+
+    /**
+     * 车厢序号(RAILWAY_CARRIAGE_NO,VARCHAR,2)
+     */
+    @ApiModelProperty(value="车厢序号",required=false)
+    private String railwayCarriageNo;
+
+    /**
+     * 物料编号(MATTER_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="物料编号",required=false)
+    private String matterNo;
+
+    /**
+     * 物料名称(MATTER_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="物料名称",required=false)
+    private String matterName;
+
+    /**
+     * 合同号(CONTRACT_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="合同号",required=false)
+    private String contractNo;
+
+    /**
+     * 批次号(BATCH_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="批次号",required=false)
+    private String batchNo;
+
+    /**
+     * 供应商编号(CUSTOMER_SUPPLIER_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="供应商编号",required=false)
+    private String customerSupplierNo;
+
+    /**
+     * 供应商名称(CUSTOMER_SUPPLIER_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="供应商名称",required=false)
+    private String customerSupplierName;
+
+    /**
+     * 发货单位编号(FORWARDING_UNIT_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="发货单位编号",required=false)
+    private String forwardingUnitNo;
+
+    /**
+     * 发货单位名称(FORWARDING_UNIT_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="发货单位名称",required=false)
+    private String forwardingUnitName;
+
+    /**
+     * 收货单位编号(RECEIVING_UINT_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="收货单位编号",required=false)
+    private String receivingUintNo;
+
+    /**
+     * 收货单位名称(RECEIVING_UINT_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="收货单位名称",required=false)
+    private String receivingUintName;
+
+    /**
+     * 材质编号(MATERIAL_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="材质编号",required=false)
+    private String materialNo;
+
+    /**
+     * 材质名称(MATERIAL_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="材质名称",required=false)
+    private String materialName;
+
+    /**
+     * 规格编号(SPEC_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="规格编号",required=false)
+    private String specNo;
+
+    /**
+     * 规格名称(SPEC_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="规格名称",required=false)
+    private String specName;
+
+    /**
+     * 卸货地点编号(LOAD_POINT_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="卸货地点编号",required=false)
+    private String loadPointNo;
+
+    /**
+     * 卸货地点名称(LOAD_POINT_NAME,VARCHAR,60)
+     */
+    @ApiModelProperty(value="卸货地点名称",required=false)
+    private String loadPointName;
+
+    /**
+     * 取样凭证(SAMPLE_VOUCHER,VARCHAR,40)
+     */
+    @ApiModelProperty(value="取样凭证",required=false)
+    private String sampleVoucher;
+
+    /**
+     * 承运单位编号(CARRIER_UNIT_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="承运单位编号",required=false)
+    private String carrierUnitNo;
+
+    /**
+     * 承运单位名称(CARRIER_UNIT_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="承运单位名称",required=false)
+    private String carrierUnitName;
+
+    /**
+     * 计量类型编号(业务类型)(METER_TYPE_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="计量类型编号(业务类型)",required=false)
+    private String meterTypeNo;
+
+    /**
+     * 计量类型名称(业务类型)(METER_TYPE_NAME,VARCHAR,30)
+     */
+    @ApiModelProperty(value="计量类型名称(业务类型)",required=false)
+    private String meterTypeName;
+
+    /**
+     * 计量流程编号(METER_PROCESS_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="计量流程编号",required=false)
+    private String meterProcessNo;
+
+    /**
+     * 计量流程版本号(METER_PROCESS_EDITION_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="计量流程版本号",required=false)
+    private String meterProcessEditionNo;
+
+    /**
+     * 毛重计量作业编号(ACTUAL_FIRST1_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="毛重计量作业编号",required=false)
+    private String actualFirst1No;
+
+    /**
+     * 毛重(GROSS_WEIGHT,DECIMAL,10)
+     */
+    @ApiModelProperty(value="毛重",required=false)
+    private BigDecimal grossWeight;
+
+    /**
+     * 毛重计量员编号(GROSS_MAN_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="毛重计量员编号",required=false)
+    private String grossManNo;
+
+    /**
+     * 毛重计量员姓名(GROSS_MAN_NAME,VARCHAR,30)
+     */
+    @ApiModelProperty(value="毛重计量员姓名",required=false)
+    private String grossManName;
+
+    /**
+     * 毛重计量时间(YYYY-MM-DD HH:mm:SS)(GROSS_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="毛重计量时间(YYYY-MM-DD HH:mm:SS)",required=false)
+    private Date grossTime;
+
+    /**
+     * 毛重计量点编号(BASE_SPOT1_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="毛重计量点编号",required=false)
+    private String baseSpot1No;
+
+    /**
+     * 毛重计量点名称(BASE_SPOT1_NAME,VARCHAR,40)
+     */
+    @ApiModelProperty(value="毛重计量点名称",required=false)
+    private String baseSpot1Name;
+
+    /**
+     * 毛重班次(GROSS_CLASS,VARCHAR,20)
+     */
+    @ApiModelProperty(value="毛重班次",required=false)
+    private String grossClass;
+
+    /**
+     * 毛重班组(GROSS_GROUP,VARCHAR,20)
+     */
+    @ApiModelProperty(value="毛重班组",required=false)
+    private String grossGroup;
+
+    /**
+     * 毛重计量方式(1:远程计量;2:智能计量;3:手工录入;4:放行智能计量;5:滞后匹配)(GROSS_MODE,VARCHAR,1)
+     */
+    @ApiModelProperty(value="毛重计量方式(1:远程计量;2:智能计量;3:手工录入;4:放行智能计量;5:滞后匹配)",required=false)
+    private String grossMode;
+
+    /**
+     * 皮重计量作业编号(ACTUAL_FIRST2_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="皮重计量作业编号",required=false)
+    private String actualFirst2No;
+
+    /**
+     * 皮重(TARE_WEIGHT,DECIMAL,10)
+     */
+    @ApiModelProperty(value="皮重",required=false)
+    private BigDecimal tareWeight;
+
+    /**
+     * 皮重计量员编号(TARE_MAN_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="皮重计量员编号",required=false)
+    private String tareManNo;
+
+    /**
+     * 皮重计量员姓名(TARE_MAN_NAME,VARCHAR,30)
+     */
+    @ApiModelProperty(value="皮重计量员姓名",required=false)
+    private String tareManName;
+
+    /**
+     * 皮重计量时间(YYYY-MM-DD HH:mm:SS)(TARE_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="皮重计量时间(YYYY-MM-DD HH:mm:SS)",required=false)
+    private Date tareTime;
+
+    /**
+     * 皮重计量点编号(BASE_SPOT2_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="皮重计量点编号",required=false)
+    private String baseSpot2No;
+
+    /**
+     * 皮重计量点名称(BASE_SPOT2_NAME,VARCHAR,40)
+     */
+    @ApiModelProperty(value="皮重计量点名称",required=false)
+    private String baseSpot2Name;
+
+    /**
+     * 皮重班次(TARE_CLASS,VARCHAR,20)
+     */
+    @ApiModelProperty(value="皮重班次",required=false)
+    private String tareClass;
+
+    /**
+     * 皮重班组(TARE_GROUP,VARCHAR,20)
+     */
+    @ApiModelProperty(value="皮重班组",required=false)
+    private String tareGroup;
+
+    /**
+     * 皮重计量方式(1:远程计量;2:智能计量;3:手工录入;4:放行智能计量;5:滞后匹配)(TARE_MODE,VARCHAR,1)
+     */
+    @ApiModelProperty(value="皮重计量方式(1:远程计量;2:智能计量;3:手工录入;4:放行智能计量;5:滞后匹配)",required=false)
+    private String tareMode;
+
+    /**
+     * 净重(NET_WEIGHT,DECIMAL,10)
+     */
+    @ApiModelProperty(value="净重",required=false)
+    private BigDecimal netWeight;
+
+    /**
+     * 净重计量员编号(NET_MAN_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="净重计量员编号",required=false)
+    private String netManNo;
+
+    /**
+     * 净重计量员姓名(NET_MAN_NAME,VARCHAR,30)
+     */
+    @ApiModelProperty(value="净重计量员姓名",required=false)
+    private String netManName;
+
+    /**
+     * 净重计量时间(YYYY-MM-DD HH:mm:SS)(NET_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="净重计量时间(YYYY-MM-DD HH:mm:SS)",required=false)
+    private Date netTime;
+
+    /**
+     * 净重计量点编号(NET_SPOT3_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="净重计量点编号",required=false)
+    private String netSpot3No;
+
+    /**
+     * 净重计量点名称(NET_SPOT3_NAME,VARCHAR,40)
+     */
+    @ApiModelProperty(value="净重计量点名称",required=false)
+    private String netSpot3Name;
+
+    /**
+     * 净重班次(NET_CLASS,VARCHAR,20)
+     */
+    @ApiModelProperty(value="净重班次",required=false)
+    private String netClass;
+
+    /**
+     * 净重班组(NET_GROUP,VARCHAR,20)
+     */
+    @ApiModelProperty(value="净重班组",required=false)
+    private String netGroup;
+
+    /**
+     * 结净方式(1:正常结净;2:匹配结净)(NET_MODE,VARCHAR,1)
+     */
+    @ApiModelProperty(value="结净方式(1:正常结净;2:匹配结净)",required=false)
+    private String netMode;
+
+    /**
+     * 状态(0=作废,1=有效-未发布,2=有效-已发布,3=未匹配委托 )(VALUE_FLAG,VARCHAR,1)
+     */
+    @ApiModelProperty(value="状态(0=作废,1=有效-未发布,2=有效-已发布,3=未匹配委托 )",required=false)
+    private String valueFlag;
+
+    /**
+     * 上传状态(0=待审核;1:待上传;2=已上传 )(UPLOAD_FLAG,VARCHAR,1)
+     */
+    @ApiModelProperty(value="上传状态(0=待审核;1:待上传;2=已上传 )",required=false)
+    private String uploadFlag;
+
+    /**
+     * 审核人编号(CHECK_MAN_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="审核人编号",required=false)
+    private String checkManNo;
+
+    /**
+     * 审核人姓名(CHECK_MAN_NAME,VARCHAR,30)
+     */
+    @ApiModelProperty(value="审核人姓名",required=false)
+    private String checkManName;
+
+    /**
+     * 审核时间(YYYY-MM-DD HH:mm:SS)(CHECK_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="审核时间(YYYY-MM-DD HH:mm:SS)",required=false)
+    private Date checkTime;
+
+    /**
+     * 上传人编号(UPLOAD_MAN_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="上传人编号",required=false)
+    private String uploadManNo;
+
+    /**
+     * 上传人姓名(UPLOAD_MAN_NAME,VARCHAR,30)
+     */
+    @ApiModelProperty(value="上传人姓名",required=false)
+    private String uploadManName;
+
+    /**
+     * 上传时间(YYYY-MM-DD HH:mm:SS)(UPLOAD_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="上传时间(YYYY-MM-DD HH:mm:SS)",required=false)
+    private Date uploadTime;
+
+    /**
+     * 取样编号(SAMPLE_NO,VARCHAR,40)
+     */
+    @ApiModelProperty(value="取样编号",required=false)
+    private String sampleNo;
+
+    /**
+     * 轨道衡类型编号(RAILWAY_TYPE_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="轨道衡类型编号",required=false)
+    private String railwayTypeNo;
+
+    /**
+     * 轨道衡类型名称(RAILWAY_TYPE_NAME,VARCHAR,30)
+     */
+    @ApiModelProperty(value="轨道衡类型名称",required=false)
+    private String railwayTypeName;
+
+    /**
+     * 备注(MEMO,VARCHAR,2000)
+     */
+    @ApiModelProperty(value="备注",required=false)
+    private String memo;
+
+    /**
+     * 水分百分比(WATER_NUM,DECIMAL,10)
+     */
+    @ApiModelProperty(value="水分百分比",required=false)
+    private BigDecimal waterNum;
+
+    /**
+     * 到站(ARRIVAL,VARCHAR,40)
+     */
+    @ApiModelProperty(value="到站",required=false)
+    private String arrival;
+
+    /**
+     * 发站(STATION,VARCHAR,40)
+     */
+    @ApiModelProperty(value="发站",required=false)
+    private String station;
+
+    /**
+     * 修改人编号(UPDATE_MAN_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="修改人编号",required=false)
+    private String updateManNo;
+
+    /**
+     * 修改人姓名(UPDATE_MAN_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="修改人姓名",required=false)
+    private String updateManName;
+
+    /**
+     * 修改时间(YYYY-MM-DD HH:mm:SS)(UPDATE_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="修改时间(YYYY-MM-DD HH:mm:SS)",required=false)
+    private Date updateTime;
+
+    /**
+     * 原产地(SOURCE_AREA,VARCHAR,50)
+     */
+    @ApiModelProperty(value="原产地",required=false)
+    private String sourceArea;
+
+    /**
+     * 主凭据号(VOUCHER_IDENTITY,VARCHAR,30)
+     */
+    @ApiModelProperty(value="主凭据号",required=false)
+    private String voucherIdentity;
+
+    /**
+     * 主凭据行(VOUCHER_ITEM,VARCHAR,30)
+     */
+    @ApiModelProperty(value="主凭据行",required=false)
+    private String voucherItem;
+
+    /**
+     * 主业务类型组(BUSINESS_GROUP,VARCHAR,30)
+     */
+    @ApiModelProperty(value="主业务类型组",required=false)
+    private String businessGroup;
+
+    /**
+     * 临时牌号(TEMP_CONVEYANCE,VARCHAR,30)
+     */
+    @ApiModelProperty(value="临时牌号",required=false)
+    private String tempConveyance;
+
+    /**
+     * 车型(CONVEYANCE_TYPE,VARCHAR,30)
+     */
+    @ApiModelProperty(value="车型",required=false)
+    private String conveyanceType;
+
+    /**
+     * 委托源系统(RESOURCE_SYSTEM,VARCHAR,30)
+     */
+    @ApiModelProperty(value="委托源系统",required=false)
+    private String resourceSystem;
+
+    /**
+     * 分组计件件量(GROUP_PACKAGE_AMOUNT,DECIMAL,10)
+     */
+    @ApiModelProperty(value="分组计件件量",required=false)
+    private Long groupPackageAmount;
+
+    /**
+     * 分组计量单位(GROUP_PACKAGE_UNIT,VARCHAR,30)
+     */
+    @ApiModelProperty(value="分组计量单位",required=false)
+    private String groupPackageUnit;
+
+    /**
+     * 标准件数(PACKAGE_AMOUNT,DECIMAL,10)
+     */
+    @ApiModelProperty(value="标准件数",required=false)
+    private Long packageAmount;
+
+    /**
+     * 计件单位(PACKAGE_UNIT,VARCHAR,30)
+     */
+    @ApiModelProperty(value="计件单位",required=false)
+    private String packageUnit;
+
+    /**
+     * 理论量(THEORY_AMOUNT,DECIMAL,16)
+     */
+    @ApiModelProperty(value="理论量",required=false)
+    private BigDecimal theoryAmount;
+
+    /**
+     * 计量组批号(MEASURE_BATCH,VARCHAR,30)
+     */
+    @ApiModelProperty(value="计量组批号",required=false)
+    private String measureBatch;
+
+    /**
+     * 计量组批车数(MEASURE_BATCH_COUNT,DECIMAL,10)
+     */
+    @ApiModelProperty(value="计量组批车数",required=false)
+    private Long measureBatchCount;
+
+    /**
+     * 发货点类型(SENDER_TYPE,VARCHAR,30)
+     */
+    @ApiModelProperty(value="发货点类型",required=false)
+    private String senderType;
+
+    /**
+     * 发货点备注(SENDER_REMARK,VARCHAR,100)
+     */
+    @ApiModelProperty(value="发货点备注",required=false)
+    private String senderRemark;
+
+    /**
+     * 收货点类型(RECEIVER_TYPE,VARCHAR,30)
+     */
+    @ApiModelProperty(value="收货点类型",required=false)
+    private String receiverType;
+
+    /**
+     * 收货点备注(RECEIVER_REMARK,VARCHAR,100)
+     */
+    @ApiModelProperty(value="收货点备注",required=false)
+    private String receiverRemark;
+
+    /**
+     * 计量单位(AMOUNT_UNIT,VARCHAR,30)
+     */
+    @ApiModelProperty(value="计量单位",required=false)
+    private String amountUnit;
+
+    /**
+     * 计量对象类型(MEASURE_OBJECT_TYPE,VARCHAR,30)
+     */
+    @ApiModelProperty(value="计量对象类型",required=false)
+    private String measureObjectType;
+
+    /**
+     * 计量任务号(MEASURE_TASK_NUM,VARCHAR,30)
+     */
+    @ApiModelProperty(value="计量任务号",required=false)
+    private String measureTaskNum;
+
+    /**
+     * 票据类型(BILL_TYPE,VARCHAR,1)
+     */
+    @ApiModelProperty(value="票据类型",required=false)
+    private String billType;
+
+    /**
+     * 创建人(CREATE_MAN_NAME,VARCHAR,40)
+     */
+    @ApiModelProperty(value="创建人",required=false)
+    private String createManName;
+
+    /**
+     * 创建时间(CREATE_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="创建时间",required=false)
+    private Date createTime;
+
+    /**
+     * 数据来源(1=智能终端,2=本地计量,3=应急计量,4=手动录入(计量票据录入))(DATA_SOURCE,VARCHAR,2)
+     */
+    @ApiModelProperty(value="数据来源(1=智能终端,2=本地计量,3=应急计量,4=手动录入(计量票据录入))",required=false)
+    private String dataSource;
+
+    /**
+     * 操作原因(NOTE,VARCHAR,100)
+     */
+    @ApiModelProperty(value="操作原因",required=false)
+    private String note;
+
+    /**
+     * 是否匹配委托(0:未匹配,1:已匹配)(IS_PRE_SACALE,VARCHAR,1)
+     */
+    @ApiModelProperty(value="是否匹配委托(0:未匹配,1:已匹配)",required=false)
+    private String isPreSacale;
+
+    private static final long serialVersionUID = 1L;
+
+    @Override
+    public String getId() {
+        return this.actualNo;
+    }
+
+    @Override
+    public void setId(String actualNo) {
+        this.actualNo = actualNo == null ? null : actualNo.trim();
+    }
+
+    public String getActualNo() {
+        return actualNo;
+    }
+
+    public void setActualNo(String actualNo) {
+        this.actualNo = actualNo == null ? null : actualNo.trim();
+    }
+
+    public String getPredictionNo() {
+        return predictionNo;
+    }
+
+    public void setPredictionNo(String predictionNo) {
+        this.predictionNo = predictionNo == null ? null : predictionNo.trim();
+    }
+
+    public String getNoticeNo() {
+        return noticeNo;
+    }
+
+    public void setNoticeNo(String noticeNo) {
+        this.noticeNo = noticeNo == null ? null : noticeNo.trim();
+    }
+
+    public String getRailwayNo() {
+        return railwayNo;
+    }
+
+    public void setRailwayNo(String railwayNo) {
+        this.railwayNo = railwayNo == null ? null : railwayNo.trim();
+    }
+
+    public String getRailwayCarriageNo() {
+        return railwayCarriageNo;
+    }
+
+    public void setRailwayCarriageNo(String railwayCarriageNo) {
+        this.railwayCarriageNo = railwayCarriageNo == null ? null : railwayCarriageNo.trim();
+    }
+
+    public String getMatterNo() {
+        return matterNo;
+    }
+
+    public void setMatterNo(String matterNo) {
+        this.matterNo = matterNo == null ? null : matterNo.trim();
+    }
+
+    public String getMatterName() {
+        return matterName;
+    }
+
+    public void setMatterName(String matterName) {
+        this.matterName = matterName == null ? null : matterName.trim();
+    }
+
+    public String getContractNo() {
+        return contractNo;
+    }
+
+    public void setContractNo(String contractNo) {
+        this.contractNo = contractNo == null ? null : contractNo.trim();
+    }
+
+    public String getBatchNo() {
+        return batchNo;
+    }
+
+    public void setBatchNo(String batchNo) {
+        this.batchNo = batchNo == null ? null : batchNo.trim();
+    }
+
+    public String getCustomerSupplierNo() {
+        return customerSupplierNo;
+    }
+
+    public void setCustomerSupplierNo(String customerSupplierNo) {
+        this.customerSupplierNo = customerSupplierNo == null ? null : customerSupplierNo.trim();
+    }
+
+    public String getCustomerSupplierName() {
+        return customerSupplierName;
+    }
+
+    public void setCustomerSupplierName(String customerSupplierName) {
+        this.customerSupplierName = customerSupplierName == null ? null : customerSupplierName.trim();
+    }
+
+    public String getForwardingUnitNo() {
+        return forwardingUnitNo;
+    }
+
+    public void setForwardingUnitNo(String forwardingUnitNo) {
+        this.forwardingUnitNo = forwardingUnitNo == null ? null : forwardingUnitNo.trim();
+    }
+
+    public String getForwardingUnitName() {
+        return forwardingUnitName;
+    }
+
+    public void setForwardingUnitName(String forwardingUnitName) {
+        this.forwardingUnitName = forwardingUnitName == null ? null : forwardingUnitName.trim();
+    }
+
+    public String getReceivingUintNo() {
+        return receivingUintNo;
+    }
+
+    public void setReceivingUintNo(String receivingUintNo) {
+        this.receivingUintNo = receivingUintNo == null ? null : receivingUintNo.trim();
+    }
+
+    public String getReceivingUintName() {
+        return receivingUintName;
+    }
+
+    public void setReceivingUintName(String receivingUintName) {
+        this.receivingUintName = receivingUintName == null ? null : receivingUintName.trim();
+    }
+
+    public String getMaterialNo() {
+        return materialNo;
+    }
+
+    public void setMaterialNo(String materialNo) {
+        this.materialNo = materialNo == null ? null : materialNo.trim();
+    }
+
+    public String getMaterialName() {
+        return materialName;
+    }
+
+    public void setMaterialName(String materialName) {
+        this.materialName = materialName == null ? null : materialName.trim();
+    }
+
+    public String getSpecNo() {
+        return specNo;
+    }
+
+    public void setSpecNo(String specNo) {
+        this.specNo = specNo == null ? null : specNo.trim();
+    }
+
+    public String getSpecName() {
+        return specName;
+    }
+
+    public void setSpecName(String specName) {
+        this.specName = specName == null ? null : specName.trim();
+    }
+
+    public String getLoadPointNo() {
+        return loadPointNo;
+    }
+
+    public void setLoadPointNo(String loadPointNo) {
+        this.loadPointNo = loadPointNo == null ? null : loadPointNo.trim();
+    }
+
+    public String getLoadPointName() {
+        return loadPointName;
+    }
+
+    public void setLoadPointName(String loadPointName) {
+        this.loadPointName = loadPointName == null ? null : loadPointName.trim();
+    }
+
+    public String getSampleVoucher() {
+        return sampleVoucher;
+    }
+
+    public void setSampleVoucher(String sampleVoucher) {
+        this.sampleVoucher = sampleVoucher == null ? null : sampleVoucher.trim();
+    }
+
+    public String getCarrierUnitNo() {
+        return carrierUnitNo;
+    }
+
+    public void setCarrierUnitNo(String carrierUnitNo) {
+        this.carrierUnitNo = carrierUnitNo == null ? null : carrierUnitNo.trim();
+    }
+
+    public String getCarrierUnitName() {
+        return carrierUnitName;
+    }
+
+    public void setCarrierUnitName(String carrierUnitName) {
+        this.carrierUnitName = carrierUnitName == null ? null : carrierUnitName.trim();
+    }
+
+    public String getMeterTypeNo() {
+        return meterTypeNo;
+    }
+
+    public void setMeterTypeNo(String meterTypeNo) {
+        this.meterTypeNo = meterTypeNo == null ? null : meterTypeNo.trim();
+    }
+
+    public String getMeterTypeName() {
+        return meterTypeName;
+    }
+
+    public void setMeterTypeName(String meterTypeName) {
+        this.meterTypeName = meterTypeName == null ? null : meterTypeName.trim();
+    }
+
+    public String getMeterProcessNo() {
+        return meterProcessNo;
+    }
+
+    public void setMeterProcessNo(String meterProcessNo) {
+        this.meterProcessNo = meterProcessNo == null ? null : meterProcessNo.trim();
+    }
+
+    public String getMeterProcessEditionNo() {
+        return meterProcessEditionNo;
+    }
+
+    public void setMeterProcessEditionNo(String meterProcessEditionNo) {
+        this.meterProcessEditionNo = meterProcessEditionNo == null ? null : meterProcessEditionNo.trim();
+    }
+
+    public String getActualFirst1No() {
+        return actualFirst1No;
+    }
+
+    public void setActualFirst1No(String actualFirst1No) {
+        this.actualFirst1No = actualFirst1No == null ? null : actualFirst1No.trim();
+    }
+
+    public BigDecimal getGrossWeight() {
+        return grossWeight;
+    }
+
+    public void setGrossWeight(BigDecimal grossWeight) {
+        this.grossWeight = grossWeight;
+    }
+
+    public String getGrossManNo() {
+        return grossManNo;
+    }
+
+    public void setGrossManNo(String grossManNo) {
+        this.grossManNo = grossManNo == null ? null : grossManNo.trim();
+    }
+
+    public String getGrossManName() {
+        return grossManName;
+    }
+
+    public void setGrossManName(String grossManName) {
+        this.grossManName = grossManName == null ? null : grossManName.trim();
+    }
+
+    public Date getGrossTime() {
+        return grossTime;
+    }
+
+    public void setGrossTime(Date grossTime) {
+        this.grossTime = grossTime;
+    }
+
+    public String getBaseSpot1No() {
+        return baseSpot1No;
+    }
+
+    public void setBaseSpot1No(String baseSpot1No) {
+        this.baseSpot1No = baseSpot1No == null ? null : baseSpot1No.trim();
+    }
+
+    public String getBaseSpot1Name() {
+        return baseSpot1Name;
+    }
+
+    public void setBaseSpot1Name(String baseSpot1Name) {
+        this.baseSpot1Name = baseSpot1Name == null ? null : baseSpot1Name.trim();
+    }
+
+    public String getGrossClass() {
+        return grossClass;
+    }
+
+    public void setGrossClass(String grossClass) {
+        this.grossClass = grossClass == null ? null : grossClass.trim();
+    }
+
+    public String getGrossGroup() {
+        return grossGroup;
+    }
+
+    public void setGrossGroup(String grossGroup) {
+        this.grossGroup = grossGroup == null ? null : grossGroup.trim();
+    }
+
+    public String getGrossMode() {
+        return grossMode;
+    }
+
+    public void setGrossMode(String grossMode) {
+        this.grossMode = grossMode == null ? null : grossMode.trim();
+    }
+
+    public String getActualFirst2No() {
+        return actualFirst2No;
+    }
+
+    public void setActualFirst2No(String actualFirst2No) {
+        this.actualFirst2No = actualFirst2No == null ? null : actualFirst2No.trim();
+    }
+
+    public BigDecimal getTareWeight() {
+        return tareWeight;
+    }
+
+    public void setTareWeight(BigDecimal tareWeight) {
+        this.tareWeight = tareWeight;
+    }
+
+    public String getTareManNo() {
+        return tareManNo;
+    }
+
+    public void setTareManNo(String tareManNo) {
+        this.tareManNo = tareManNo == null ? null : tareManNo.trim();
+    }
+
+    public String getTareManName() {
+        return tareManName;
+    }
+
+    public void setTareManName(String tareManName) {
+        this.tareManName = tareManName == null ? null : tareManName.trim();
+    }
+
+    public Date getTareTime() {
+        return tareTime;
+    }
+
+    public void setTareTime(Date tareTime) {
+        this.tareTime = tareTime;
+    }
+
+    public String getBaseSpot2No() {
+        return baseSpot2No;
+    }
+
+    public void setBaseSpot2No(String baseSpot2No) {
+        this.baseSpot2No = baseSpot2No == null ? null : baseSpot2No.trim();
+    }
+
+    public String getBaseSpot2Name() {
+        return baseSpot2Name;
+    }
+
+    public void setBaseSpot2Name(String baseSpot2Name) {
+        this.baseSpot2Name = baseSpot2Name == null ? null : baseSpot2Name.trim();
+    }
+
+    public String getTareClass() {
+        return tareClass;
+    }
+
+    public void setTareClass(String tareClass) {
+        this.tareClass = tareClass == null ? null : tareClass.trim();
+    }
+
+    public String getTareGroup() {
+        return tareGroup;
+    }
+
+    public void setTareGroup(String tareGroup) {
+        this.tareGroup = tareGroup == null ? null : tareGroup.trim();
+    }
+
+    public String getTareMode() {
+        return tareMode;
+    }
+
+    public void setTareMode(String tareMode) {
+        this.tareMode = tareMode == null ? null : tareMode.trim();
+    }
+
+    public BigDecimal getNetWeight() {
+        return netWeight;
+    }
+
+    public void setNetWeight(BigDecimal netWeight) {
+        this.netWeight = netWeight;
+    }
+
+    public String getNetManNo() {
+        return netManNo;
+    }
+
+    public void setNetManNo(String netManNo) {
+        this.netManNo = netManNo == null ? null : netManNo.trim();
+    }
+
+    public String getNetManName() {
+        return netManName;
+    }
+
+    public void setNetManName(String netManName) {
+        this.netManName = netManName == null ? null : netManName.trim();
+    }
+
+    public Date getNetTime() {
+        return netTime;
+    }
+
+    public void setNetTime(Date netTime) {
+        this.netTime = netTime;
+    }
+
+    public String getNetSpot3No() {
+        return netSpot3No;
+    }
+
+    public void setNetSpot3No(String netSpot3No) {
+        this.netSpot3No = netSpot3No == null ? null : netSpot3No.trim();
+    }
+
+    public String getNetSpot3Name() {
+        return netSpot3Name;
+    }
+
+    public void setNetSpot3Name(String netSpot3Name) {
+        this.netSpot3Name = netSpot3Name == null ? null : netSpot3Name.trim();
+    }
+
+    public String getNetClass() {
+        return netClass;
+    }
+
+    public void setNetClass(String netClass) {
+        this.netClass = netClass == null ? null : netClass.trim();
+    }
+
+    public String getNetGroup() {
+        return netGroup;
+    }
+
+    public void setNetGroup(String netGroup) {
+        this.netGroup = netGroup == null ? null : netGroup.trim();
+    }
+
+    public String getNetMode() {
+        return netMode;
+    }
+
+    public void setNetMode(String netMode) {
+        this.netMode = netMode == null ? null : netMode.trim();
+    }
+
+    public String getValueFlag() {
+        return valueFlag;
+    }
+
+    public void setValueFlag(String valueFlag) {
+        this.valueFlag = valueFlag == null ? null : valueFlag.trim();
+    }
+
+    public String getUploadFlag() {
+        return uploadFlag;
+    }
+
+    public void setUploadFlag(String uploadFlag) {
+        this.uploadFlag = uploadFlag == null ? null : uploadFlag.trim();
+    }
+
+    public String getCheckManNo() {
+        return checkManNo;
+    }
+
+    public void setCheckManNo(String checkManNo) {
+        this.checkManNo = checkManNo == null ? null : checkManNo.trim();
+    }
+
+    public String getCheckManName() {
+        return checkManName;
+    }
+
+    public void setCheckManName(String checkManName) {
+        this.checkManName = checkManName == null ? null : checkManName.trim();
+    }
+
+    public Date getCheckTime() {
+        return checkTime;
+    }
+
+    public void setCheckTime(Date checkTime) {
+        this.checkTime = checkTime;
+    }
+
+    public String getUploadManNo() {
+        return uploadManNo;
+    }
+
+    public void setUploadManNo(String uploadManNo) {
+        this.uploadManNo = uploadManNo == null ? null : uploadManNo.trim();
+    }
+
+    public String getUploadManName() {
+        return uploadManName;
+    }
+
+    public void setUploadManName(String uploadManName) {
+        this.uploadManName = uploadManName == null ? null : uploadManName.trim();
+    }
+
+    public Date getUploadTime() {
+        return uploadTime;
+    }
+
+    public void setUploadTime(Date uploadTime) {
+        this.uploadTime = uploadTime;
+    }
+
+    public String getSampleNo() {
+        return sampleNo;
+    }
+
+    public void setSampleNo(String sampleNo) {
+        this.sampleNo = sampleNo == null ? null : sampleNo.trim();
+    }
+
+    public String getRailwayTypeNo() {
+        return railwayTypeNo;
+    }
+
+    public void setRailwayTypeNo(String railwayTypeNo) {
+        this.railwayTypeNo = railwayTypeNo == null ? null : railwayTypeNo.trim();
+    }
+
+    public String getRailwayTypeName() {
+        return railwayTypeName;
+    }
+
+    public void setRailwayTypeName(String railwayTypeName) {
+        this.railwayTypeName = railwayTypeName == null ? null : railwayTypeName.trim();
+    }
+
+    public String getMemo() {
+        return memo;
+    }
+
+    public void setMemo(String memo) {
+        this.memo = memo == null ? null : memo.trim();
+    }
+
+    public BigDecimal getWaterNum() {
+        return waterNum;
+    }
+
+    public void setWaterNum(BigDecimal waterNum) {
+        this.waterNum = waterNum;
+    }
+
+    public String getArrival() {
+        return arrival;
+    }
+
+    public void setArrival(String arrival) {
+        this.arrival = arrival == null ? null : arrival.trim();
+    }
+
+    public String getStation() {
+        return station;
+    }
+
+    public void setStation(String station) {
+        this.station = station == null ? null : station.trim();
+    }
+
+    public String getUpdateManNo() {
+        return updateManNo;
+    }
+
+    public void setUpdateManNo(String updateManNo) {
+        this.updateManNo = updateManNo == null ? null : updateManNo.trim();
+    }
+
+    public String getUpdateManName() {
+        return updateManName;
+    }
+
+    public void setUpdateManName(String updateManName) {
+        this.updateManName = updateManName == null ? null : updateManName.trim();
+    }
+
+    public Date getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Date updateTime) {
+        this.updateTime = updateTime;
+    }
+
+    public String getSourceArea() {
+        return sourceArea;
+    }
+
+    public void setSourceArea(String sourceArea) {
+        this.sourceArea = sourceArea == null ? null : sourceArea.trim();
+    }
+
+    public String getVoucherIdentity() {
+        return voucherIdentity;
+    }
+
+    public void setVoucherIdentity(String voucherIdentity) {
+        this.voucherIdentity = voucherIdentity == null ? null : voucherIdentity.trim();
+    }
+
+    public String getVoucherItem() {
+        return voucherItem;
+    }
+
+    public void setVoucherItem(String voucherItem) {
+        this.voucherItem = voucherItem == null ? null : voucherItem.trim();
+    }
+
+    public String getBusinessGroup() {
+        return businessGroup;
+    }
+
+    public void setBusinessGroup(String businessGroup) {
+        this.businessGroup = businessGroup == null ? null : businessGroup.trim();
+    }
+
+    public String getTempConveyance() {
+        return tempConveyance;
+    }
+
+    public void setTempConveyance(String tempConveyance) {
+        this.tempConveyance = tempConveyance == null ? null : tempConveyance.trim();
+    }
+
+    public String getConveyanceType() {
+        return conveyanceType;
+    }
+
+    public void setConveyanceType(String conveyanceType) {
+        this.conveyanceType = conveyanceType == null ? null : conveyanceType.trim();
+    }
+
+    public String getResourceSystem() {
+        return resourceSystem;
+    }
+
+    public void setResourceSystem(String resourceSystem) {
+        this.resourceSystem = resourceSystem == null ? null : resourceSystem.trim();
+    }
+
+    public Long getGroupPackageAmount() {
+        return groupPackageAmount;
+    }
+
+    public void setGroupPackageAmount(Long groupPackageAmount) {
+        this.groupPackageAmount = groupPackageAmount;
+    }
+
+    public String getGroupPackageUnit() {
+        return groupPackageUnit;
+    }
+
+    public void setGroupPackageUnit(String groupPackageUnit) {
+        this.groupPackageUnit = groupPackageUnit == null ? null : groupPackageUnit.trim();
+    }
+
+    public Long getPackageAmount() {
+        return packageAmount;
+    }
+
+    public void setPackageAmount(Long packageAmount) {
+        this.packageAmount = packageAmount;
+    }
+
+    public String getPackageUnit() {
+        return packageUnit;
+    }
+
+    public void setPackageUnit(String packageUnit) {
+        this.packageUnit = packageUnit == null ? null : packageUnit.trim();
+    }
+
+    public BigDecimal getTheoryAmount() {
+        return theoryAmount;
+    }
+
+    public void setTheoryAmount(BigDecimal theoryAmount) {
+        this.theoryAmount = theoryAmount;
+    }
+
+    public String getMeasureBatch() {
+        return measureBatch;
+    }
+
+    public void setMeasureBatch(String measureBatch) {
+        this.measureBatch = measureBatch == null ? null : measureBatch.trim();
+    }
+
+    public Long getMeasureBatchCount() {
+        return measureBatchCount;
+    }
+
+    public void setMeasureBatchCount(Long measureBatchCount) {
+        this.measureBatchCount = measureBatchCount;
+    }
+
+    public String getSenderType() {
+        return senderType;
+    }
+
+    public void setSenderType(String senderType) {
+        this.senderType = senderType == null ? null : senderType.trim();
+    }
+
+    public String getSenderRemark() {
+        return senderRemark;
+    }
+
+    public void setSenderRemark(String senderRemark) {
+        this.senderRemark = senderRemark == null ? null : senderRemark.trim();
+    }
+
+    public String getReceiverType() {
+        return receiverType;
+    }
+
+    public void setReceiverType(String receiverType) {
+        this.receiverType = receiverType == null ? null : receiverType.trim();
+    }
+
+    public String getReceiverRemark() {
+        return receiverRemark;
+    }
+
+    public void setReceiverRemark(String receiverRemark) {
+        this.receiverRemark = receiverRemark == null ? null : receiverRemark.trim();
+    }
+
+    public String getAmountUnit() {
+        return amountUnit;
+    }
+
+    public void setAmountUnit(String amountUnit) {
+        this.amountUnit = amountUnit == null ? null : amountUnit.trim();
+    }
+
+    public String getMeasureObjectType() {
+        return measureObjectType;
+    }
+
+    public void setMeasureObjectType(String measureObjectType) {
+        this.measureObjectType = measureObjectType == null ? null : measureObjectType.trim();
+    }
+
+    public String getMeasureTaskNum() {
+        return measureTaskNum;
+    }
+
+    public void setMeasureTaskNum(String measureTaskNum) {
+        this.measureTaskNum = measureTaskNum == null ? null : measureTaskNum.trim();
+    }
+
+    public String getBillType() {
+        return billType;
+    }
+
+    public void setBillType(String billType) {
+        this.billType = billType == null ? null : billType.trim();
+    }
+
+    public String getCreateManName() {
+        return createManName;
+    }
+
+    public void setCreateManName(String createManName) {
+        this.createManName = createManName == null ? null : createManName.trim();
+    }
+
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    public String getDataSource() {
+        return dataSource;
+    }
+
+    public void setDataSource(String dataSource) {
+        this.dataSource = dataSource == null ? null : dataSource.trim();
+    }
+
+    public String getNote() {
+        return note;
+    }
+
+    public void setNote(String note) {
+        this.note = note == null ? null : note.trim();
+    }
+
+    public String getIsPreSacale() {
+        return isPreSacale;
+    }
+
+    public void setIsPreSacale(String isPreSacale) {
+        this.isPreSacale = isPreSacale == null ? null : isPreSacale.trim();
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", actualNo=").append(actualNo);
+        sb.append(", predictionNo=").append(predictionNo);
+        sb.append(", noticeNo=").append(noticeNo);
+        sb.append(", railwayNo=").append(railwayNo);
+        sb.append(", railwayCarriageNo=").append(railwayCarriageNo);
+        sb.append(", matterNo=").append(matterNo);
+        sb.append(", matterName=").append(matterName);
+        sb.append(", contractNo=").append(contractNo);
+        sb.append(", batchNo=").append(batchNo);
+        sb.append(", customerSupplierNo=").append(customerSupplierNo);
+        sb.append(", customerSupplierName=").append(customerSupplierName);
+        sb.append(", forwardingUnitNo=").append(forwardingUnitNo);
+        sb.append(", forwardingUnitName=").append(forwardingUnitName);
+        sb.append(", receivingUintNo=").append(receivingUintNo);
+        sb.append(", receivingUintName=").append(receivingUintName);
+        sb.append(", materialNo=").append(materialNo);
+        sb.append(", materialName=").append(materialName);
+        sb.append(", specNo=").append(specNo);
+        sb.append(", specName=").append(specName);
+        sb.append(", loadPointNo=").append(loadPointNo);
+        sb.append(", loadPointName=").append(loadPointName);
+        sb.append(", sampleVoucher=").append(sampleVoucher);
+        sb.append(", carrierUnitNo=").append(carrierUnitNo);
+        sb.append(", carrierUnitName=").append(carrierUnitName);
+        sb.append(", meterTypeNo=").append(meterTypeNo);
+        sb.append(", meterTypeName=").append(meterTypeName);
+        sb.append(", meterProcessNo=").append(meterProcessNo);
+        sb.append(", meterProcessEditionNo=").append(meterProcessEditionNo);
+        sb.append(", actualFirst1No=").append(actualFirst1No);
+        sb.append(", grossWeight=").append(grossWeight);
+        sb.append(", grossManNo=").append(grossManNo);
+        sb.append(", grossManName=").append(grossManName);
+        sb.append(", grossTime=").append(grossTime);
+        sb.append(", baseSpot1No=").append(baseSpot1No);
+        sb.append(", baseSpot1Name=").append(baseSpot1Name);
+        sb.append(", grossClass=").append(grossClass);
+        sb.append(", grossGroup=").append(grossGroup);
+        sb.append(", grossMode=").append(grossMode);
+        sb.append(", actualFirst2No=").append(actualFirst2No);
+        sb.append(", tareWeight=").append(tareWeight);
+        sb.append(", tareManNo=").append(tareManNo);
+        sb.append(", tareManName=").append(tareManName);
+        sb.append(", tareTime=").append(tareTime);
+        sb.append(", baseSpot2No=").append(baseSpot2No);
+        sb.append(", baseSpot2Name=").append(baseSpot2Name);
+        sb.append(", tareClass=").append(tareClass);
+        sb.append(", tareGroup=").append(tareGroup);
+        sb.append(", tareMode=").append(tareMode);
+        sb.append(", netWeight=").append(netWeight);
+        sb.append(", netManNo=").append(netManNo);
+        sb.append(", netManName=").append(netManName);
+        sb.append(", netTime=").append(netTime);
+        sb.append(", netSpot3No=").append(netSpot3No);
+        sb.append(", netSpot3Name=").append(netSpot3Name);
+        sb.append(", netClass=").append(netClass);
+        sb.append(", netGroup=").append(netGroup);
+        sb.append(", netMode=").append(netMode);
+        sb.append(", valueFlag=").append(valueFlag);
+        sb.append(", uploadFlag=").append(uploadFlag);
+        sb.append(", checkManNo=").append(checkManNo);
+        sb.append(", checkManName=").append(checkManName);
+        sb.append(", checkTime=").append(checkTime);
+        sb.append(", uploadManNo=").append(uploadManNo);
+        sb.append(", uploadManName=").append(uploadManName);
+        sb.append(", uploadTime=").append(uploadTime);
+        sb.append(", sampleNo=").append(sampleNo);
+        sb.append(", railwayTypeNo=").append(railwayTypeNo);
+        sb.append(", railwayTypeName=").append(railwayTypeName);
+        sb.append(", memo=").append(memo);
+        sb.append(", waterNum=").append(waterNum);
+        sb.append(", arrival=").append(arrival);
+        sb.append(", station=").append(station);
+        sb.append(", updateManNo=").append(updateManNo);
+        sb.append(", updateManName=").append(updateManName);
+        sb.append(", updateTime=").append(updateTime);
+        sb.append(", sourceArea=").append(sourceArea);
+        sb.append(", voucherIdentity=").append(voucherIdentity);
+        sb.append(", voucherItem=").append(voucherItem);
+        sb.append(", businessGroup=").append(businessGroup);
+        sb.append(", tempConveyance=").append(tempConveyance);
+        sb.append(", conveyanceType=").append(conveyanceType);
+        sb.append(", resourceSystem=").append(resourceSystem);
+        sb.append(", groupPackageAmount=").append(groupPackageAmount);
+        sb.append(", groupPackageUnit=").append(groupPackageUnit);
+        sb.append(", packageAmount=").append(packageAmount);
+        sb.append(", packageUnit=").append(packageUnit);
+        sb.append(", theoryAmount=").append(theoryAmount);
+        sb.append(", measureBatch=").append(measureBatch);
+        sb.append(", measureBatchCount=").append(measureBatchCount);
+        sb.append(", senderType=").append(senderType);
+        sb.append(", senderRemark=").append(senderRemark);
+        sb.append(", receiverType=").append(receiverType);
+        sb.append(", receiverRemark=").append(receiverRemark);
+        sb.append(", amountUnit=").append(amountUnit);
+        sb.append(", measureObjectType=").append(measureObjectType);
+        sb.append(", measureTaskNum=").append(measureTaskNum);
+        sb.append(", billType=").append(billType);
+        sb.append(", createManName=").append(createManName);
+        sb.append(", createTime=").append(createTime);
+        sb.append(", dataSource=").append(dataSource);
+        sb.append(", note=").append(note);
+        sb.append(", isPreSacale=").append(isPreSacale);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 24 - 0
src/main/java/com/steerinfo/meterwork/meterworkmeasuringinstrument/service/IMeterWorkMeasuringInstrumentService.java

@@ -0,0 +1,24 @@
+package com.steerinfo.meterwork.meterworkmeasuringinstrument.service;
+
+import com.steerinfo.baseinfo.meterbaseunitdirect.model.MeterBaseUnitDirect;
+import com.steerinfo.framework.service.IBaseService;
+import com.steerinfo.meterwork.meterworkmeasuringinstrument.model.MeterWorkMeasuringInstrument;
+import java.util.Date;
+import java.math.BigDecimal;
+
+/**
+ * MeterWorkMeasuringInstrument服务接口:
+ * @author generator
+ * @version 1.0-SNAPSHORT 2022-03-04 05:30
+ * 类描述
+ * 修订历史:
+ * 日期:2022-03-04
+ * 作者:generator
+ * 参考:
+ * 描述:MeterWorkMeasuringInstrument服务接口
+ * @see null
+ * @Copyright 湖南视拓信息技术股份有限公司. All rights reserved.
+ */
+public interface IMeterWorkMeasuringInstrumentService extends IBaseService<MeterWorkMeasuringInstrument, String>{
+    String checkandadd(MeterWorkMeasuringInstrument model);
+}

+ 71 - 0
src/main/java/com/steerinfo/meterwork/meterworkmeasuringinstrument/service/impl/MeterWorkMeasuringInstrumentServiceImpl.java

@@ -0,0 +1,71 @@
+package com.steerinfo.meterwork.meterworkmeasuringinstrument.service.impl;
+
+import com.steerinfo.framework.mapper.IBaseMapper;
+import com.steerinfo.framework.service.impl.BaseServiceImpl;
+import com.steerinfo.framework.user.UserPayload;
+import com.steerinfo.meterwork.meterworkmeasuringinstrument.model.MeterWorkMeasuringInstrument;
+import com.steerinfo.meterwork.meterworkmeasuringinstrument.mapper.MeterWorkMeasuringInstrumentMapper;
+import com.steerinfo.meterwork.meterworkmeasuringinstrument.service.IMeterWorkMeasuringInstrumentService;
+import com.steerinfo.util.StringUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import java.math.BigDecimal;
+
+/**
+ * MeterWorkMeasuringInstrument服务实现:
+ * @author generator
+ * @version 1.0-SNAPSHORT 2022-03-04 05:30
+ * 类描述
+ * 修订历史:
+ * 日期:2022-03-04
+ * 作者:generator
+ * 参考:
+ * 描述:MeterWorkMeasuringInstrument服务实现
+ * @see null
+ * @Copyright 湖南视拓信息技术股份有限公司. All rights reserved.
+ */
+@Service(value = "meterWorkMeasuringInstrumentService")
+public class MeterWorkMeasuringInstrumentServiceImpl extends BaseServiceImpl<MeterWorkMeasuringInstrument, String> implements IMeterWorkMeasuringInstrumentService {
+
+    @Autowired
+    private MeterWorkMeasuringInstrumentMapper meterWorkMeasuringInstrumentMapper;
+
+    @Override
+    protected IBaseMapper<MeterWorkMeasuringInstrument, String> getMapper() {
+        return meterWorkMeasuringInstrumentMapper;
+    }
+
+    @Override
+    public String checkandadd(MeterWorkMeasuringInstrument model) {
+        if (StringUtils.isEmpty(model.getRailwayNo())) {
+            return "车号不能为空";
+        }
+        if (StringUtils.isEmpty(model.getMatterName())){
+            return "物资名称不能为空";
+        }
+        if(model.getNetWeight() == null){
+            return "净重不能为空";
+        }
+        if(model.getGrossWeight() == null){
+            return "毛重不能为空";
+        }
+        if(model.getTareWeight() == null){
+            return "皮重不能为空";
+        }
+        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
+        String afl = sdf.format(new Date());
+        String actualFirstNo = sdf.format(new Date()) + meterWorkMeasuringInstrumentMapper.getNewID(afl);
+        UserPayload payload = UserPayload.getCurrUser();
+        String userName = payload.getUserName();
+//            String userId = "admin";
+//            String userName = "admins";
+        model.setCreateManName(userName);
+        model.setCreateTime(new Date());
+        model.setActualNo(actualFirstNo);
+        meterWorkMeasuringInstrumentMapper.insertSelective(model);
+        return "";
+    }
+}

+ 10 - 0
src/main/java/com/steerinfo/meterwork/meterworkrailwayactfirst/service/impl/MeterWorkRailwayActFirstServiceImpl.java

@@ -221,6 +221,7 @@ public class MeterWorkRailwayActFirstServiceImpl extends BaseServiceImpl<MeterWo
                     scale.setUpdateManNo(model.getUpdateManNo());
                     scale.setpValueFlag(scale.getValueFlag());
                     scale.setValueFlag("3");
+                    scale.setUploadFlag("1");
                     preRailwayScaleMapper.updateByPrimaryKeySelective(scale);
                 }
             }
@@ -258,6 +259,7 @@ public class MeterWorkRailwayActFirstServiceImpl extends BaseServiceImpl<MeterWo
                     scale.setUpdateManNo(model.getUpdateManNo());
                     scale.setpValueFlag(scale.getValueFlag());
                     scale.setValueFlag("4");
+                    scale.setUploadFlag("1");
                     preRailwayScaleMapper.updateByPrimaryKeySelective(scale);
                 }
             }
@@ -379,6 +381,7 @@ public class MeterWorkRailwayActFirstServiceImpl extends BaseServiceImpl<MeterWo
                     actual.setMemo(actual.getMemo() + ";" + "复磅保存:历史皮重[" + oldWeight + "]," +
                             "新的皮重[" + actFirst.getMeterWeight() + "]");
                 }
+                actual.setUploadFlag("1");
                 meterWorkRailwayActualMapper.updateByPrimaryKeySelective(actual);
             }
             //=================已洁净的数据处理:结束=====================
@@ -437,6 +440,7 @@ public class MeterWorkRailwayActFirstServiceImpl extends BaseServiceImpl<MeterWo
                     actual.setMemo(actual.getMemo() + ";" + "[更新自重]:历史皮重[" + oldWeight + "]," +
                             "新的皮重[" + actFirst.getMeterWeight() + "]");
                 }
+                actual.setUploadFlag("1");
                 meterWorkRailwayActualMapper.updateByPrimaryKeySelective(actual);
             }
             //=================已洁净的数据处理:结束=====================
@@ -525,6 +529,7 @@ public class MeterWorkRailwayActFirstServiceImpl extends BaseServiceImpl<MeterWo
             pls.setUpdateManName("轨道衡一次计量解除委托操作");
             pls.setUpdateTime(new Date());
             pls.setValueFlag("1");
+            pls.setUploadFlag("1");
 
             preRailwayScaleMapper.updateByPrimaryKeySelective(pls);
             MeterWorkRailwayActFirst mwcaf = meterWorkRailwayActFirstMapper.selectAndRemove(model.getActualFirstNo());
@@ -558,6 +563,7 @@ public class MeterWorkRailwayActFirstServiceImpl extends BaseServiceImpl<MeterWo
                 throw new MarkerMetException(500, "该预报信息不存在");
             }
             prs.setValueFlag(DbConstants.IN); //使用中
+            prs.setUploadFlag("1");
             MeterWorkRailwayActFirst meterWorkRailwayActFirst = meterWorkRailwayActFirstMapper.selectByPrimaryKey(actualFirstNo);
             if (meterWorkRailwayActFirst == null) {
                 throw new MarkerMetException(500, "该计量作业信息不存在");
@@ -780,6 +786,7 @@ public class MeterWorkRailwayActFirstServiceImpl extends BaseServiceImpl<MeterWo
         //洁净数据
         String netNo = meterWorkRailwayActualMapper.getNewID(afl);
         netRail.setActualNo(afl + netNo);
+        netRail.setUploadFlag("1");
 //        String netNoNew= PublicMethod.IdCreate(2);
 //        netRail.setActualNo(netNoNew);
 
@@ -1227,6 +1234,7 @@ public class MeterWorkRailwayActFirstServiceImpl extends BaseServiceImpl<MeterWo
         netRail.setNetMode("1");
         netRail.setValueFlag("0");
         netRail.setUploadFlag("0");
+        netRail.setUploadFlag("1");
         if ("001019002".equals(one.getRailwayTypeNo())) {
             netRail.setNetTime(new Date()); //动轨的特殊处理
             //假如一次数据为补录,则洁净数据中的grossModel为3,标识毛重为手工录入的
@@ -1324,6 +1332,7 @@ public class MeterWorkRailwayActFirstServiceImpl extends BaseServiceImpl<MeterWo
 
         //4、修改预报状态
         prs.setValueFlag("2");//已使用
+        prs.setUploadFlag("1");
         preRailwayScaleMapper.updateByPrimaryKeySelective(prs);
 
 
@@ -1341,6 +1350,7 @@ public class MeterWorkRailwayActFirstServiceImpl extends BaseServiceImpl<MeterWo
         } else {//砂石永远为1
             prsM.setValueFlag("1");//未使用
         }
+        prsM.setUploadFlag("1");
         preRailwayScaleMapper.updateByPrimaryKeySelective(prsM);
 
 

+ 28 - 10
src/main/java/com/steerinfo/meterwork/meterworkrailwayactual/service/impl/MeterWorkRailwayActualServiceImpl.java

@@ -161,6 +161,7 @@ public class MeterWorkRailwayActualServiceImpl extends BaseServiceImpl<MeterWork
         String userName = userPayload.getUserName();
         String userId = userPayload.getId();
         model.setValueFlag("2");
+        model.setUploadFlag("1");
         model.setUpdateTime(new Date());
         model.setUpdateManName(userName);
         model.setUpdateManNo(userId);
@@ -244,6 +245,7 @@ public class MeterWorkRailwayActualServiceImpl extends BaseServiceImpl<MeterWork
                 scale.setValueFlag(DbConstants.NET);
                 scale.setUpdateTime(new Date());
                 scale.setUpdateManNo("system");
+                scale.setUploadFlag("1");
                 scale.setUpdateManName("二次计量洁净更新");
                 preRailwayScaleMapper.updateByPrimaryKeySelective(scale);
             }
@@ -283,6 +285,7 @@ public class MeterWorkRailwayActualServiceImpl extends BaseServiceImpl<MeterWork
             String no = meterWorkRailwayActualMapper.getNewID(sdf.format(new Date()));
             actualRow.setActualNo(sdf.format(new Date()) + no);
             actualRow.setNetWeight(mwcaf1.getMeterWeight().subtract(mwcaf2.getMeterWeight()));
+            actualRow.setUploadFlag("1");
             meterWorkRailwayActualMapper.insertSelective(actualRow);
 
             //预报的处理
@@ -290,6 +293,7 @@ public class MeterWorkRailwayActualServiceImpl extends BaseServiceImpl<MeterWork
                 PreRailwayScale prs = new PreRailwayScale();
                 prs.setPredictionNo(actualRow.getPredictionNo());
                 prs.setValueFlag(DbConstants.NET); //已结净
+                prs.setUploadFlag("1");
                 prs.setUpdateTime(new Date());
                 prs.setUpdateManNo("system");
                 prs.setUpdateManName("火车二次计量洁净操作");
@@ -349,6 +353,7 @@ public class MeterWorkRailwayActualServiceImpl extends BaseServiceImpl<MeterWork
             PreRailwayScale scale = new PreRailwayScale();
             scale.setPredictionNo(predictionNo);
             scale.setValueFlag("2");
+            scale.setUploadFlag("1");
             scale.setUpdateTime(new Date());
             scale.setUpdateManNo("system");
             scale.setUpdateManName("计量洁净数据匹配委托操作");
@@ -357,6 +362,7 @@ public class MeterWorkRailwayActualServiceImpl extends BaseServiceImpl<MeterWork
 
         MeterWorkRailwayActual mwca = meterWorkRailwayActualMapper.mathPredcition(actualNo, predictionNo);
         mwca.setValueFlag("1");
+        mwca.setUploadFlag("1");
 //        mwca.setNote(note); 添加修改原因记录
         meterWorkRailwayActualMapper.updateByPrimaryKey(mwca);
         return mwca;
@@ -412,6 +418,7 @@ public class MeterWorkRailwayActualServiceImpl extends BaseServiceImpl<MeterWork
         PreRailwayScale pres = new PreRailwayScale();
         pres.setPredictionNo(model.getPredictionNo());
         pres.setValueFlag("2");
+        pres.setUploadFlag("1");
         pres.setUpdateManName(userName+ ": 使用历史皮重洁净操作");
         pres.setUpdateTime(new Date());
         pres.setUpdateManNo(userId);
@@ -430,6 +437,7 @@ public class MeterWorkRailwayActualServiceImpl extends BaseServiceImpl<MeterWork
         model.setNetManNo(userId);
         model.setDataSource(queryrow.getDataSource());
         model.setValueFlag("1");
+        model.setUploadFlag("1");
 //        model.setNote(); // 添加修改原因记录
         int num = meterWorkRailwayActualMapper.insertSelective(model);
         return num;
@@ -474,6 +482,7 @@ public class MeterWorkRailwayActualServiceImpl extends BaseServiceImpl<MeterWork
             PreRailwayScale scale = new PreRailwayScale();
             scale.setPredictionNo(model.getPredictionNo());
             scale.setValueFlag("1");
+            scale.setUploadFlag("1");
             scale.setUpdateTime(new Date());
             scale.setUpdateManNo("system");
             scale.setUpdateManName("计量洁净数据解除委托操作");
@@ -485,6 +494,7 @@ public class MeterWorkRailwayActualServiceImpl extends BaseServiceImpl<MeterWork
         mwca.setUpdateManName(userName);
         mwca.setUpdateTime(new Date());
         mwca.setValueFlag("3");
+        mwca.setUploadFlag("1");
         meterWorkRailwayActualMapper.updateByPrimaryKey(mwca);
         return mwca;
     }
@@ -505,7 +515,8 @@ public class MeterWorkRailwayActualServiceImpl extends BaseServiceImpl<MeterWork
                 }
                 // 清空委托信息
                 MeterWorkRailwayActFirst grossrow = meterWorkRailwayActFirstMapper.selectAndRemove(model.getActualFirst1No());
-                grossrow.setValueFlag("3");
+                //grossrow.setValueFlag("3");
+                grossrow.setIsPreSacale("0");
                 grossrow.setUpdateManNo("system");
                 grossrow.setUpdateManName("静态衡解除操作");
                 grossrow.setUpdateTime(new Date());
@@ -519,7 +530,8 @@ public class MeterWorkRailwayActualServiceImpl extends BaseServiceImpl<MeterWork
                 // 清空委托信息
                 MeterWorkRailwayActFirst tarerow = meterWorkRailwayActFirstMapper.selectAndRemove(model.getActualFirst2No());
                 if (tarerow != null) {
-                    tarerow.setValueFlag("3");
+                    //tarerow.setValueFlag("3");
+                    tarerow.setIsPreSacale("0");
                     tarerow.setUpdateManNo("system");
                     tarerow.setUpdateManName("静态衡解除操作");
                     tarerow.setUpdateTime(new Date());
@@ -529,12 +541,14 @@ public class MeterWorkRailwayActualServiceImpl extends BaseServiceImpl<MeterWork
                     PreRailwayScale scale = new PreRailwayScale();
                     scale.setPredictionNo(model.getPredictionNo());
                     scale.setValueFlag("1"); //使用中
+                    scale.setUploadFlag("1");
                     scale.setUpdateManNo("system");
                     scale.setUpdateManName("静态衡解除操作");
                     scale.setUpdateTime(new Date());
                     preRailwayScaleMapper.updateByPrimaryKeySelective(scale);
                 }
-                meterWorkRailwayActualMapper.deleteByPrimaryKey(model.getActualNo());
+                //meterWorkRailwayActualMapper.deleteByPrimaryKey(model.getActualNo());
+                meterWorkRailwayActualMapper.updateByPrimaryKeySelective(model);
                 num++;
             }
 
@@ -723,6 +737,7 @@ public class MeterWorkRailwayActualServiceImpl extends BaseServiceImpl<MeterWork
             String no = meterWorkRailwayActualMapper.getNewID(sdf.format(new Date()));
             mwca.setActualNo(sdf.format(new Date()) + no);
             mwca.setNetWeight(mwraf1.getMeterWeight().subtract(mbrw.getRailwayWeight()));
+            mwca.setUploadFlag("1");
             meterWorkRailwayActualMapper.insertSelective(mwca);
             return mwca;
         } catch (MarkerMetException e) {
@@ -770,7 +785,7 @@ public class MeterWorkRailwayActualServiceImpl extends BaseServiceImpl<MeterWork
         if (model.getActualNo() == null && model.getValueFlag() == null)
             model.setValueFlag(DbConstants.VALID);
         if (model.getActualNo() == null && model.getUploadFlag() == null)
-            model.setUploadFlag(DbConstants.INVALID);
+            model.setUploadFlag(DbConstants.VALID);
         UserPayload payload = UserPayload.getCurrUser();
         String userId = payload.getId();
         String userName = payload.getUserName();
@@ -822,7 +837,7 @@ public class MeterWorkRailwayActualServiceImpl extends BaseServiceImpl<MeterWork
         }
 
         if (model.getActualNo() == null && model.getUploadFlag() == null)
-            model.setUploadFlag(DbConstants.INVALID);
+            model.setUploadFlag(DbConstants.VALID);
         UserPayload payload = UserPayload.getCurrUser();
         String userId = payload.getId();
         String userName = payload.getUserName();
@@ -1265,11 +1280,11 @@ public class MeterWorkRailwayActualServiceImpl extends BaseServiceImpl<MeterWork
     public int checkandadditional(MeterWorkRailwayActual model) {
         try{
             int num = 0;
-//            UserPayload payload = UserPayload.getCurrUser();
-//            String userId = payload.getId();
-//            String userName = payload.getUserName();
-            String userId = "admin";
-            String userName = "admins";
+            UserPayload payload = UserPayload.getCurrUser();
+            String userId = payload.getId();
+            String userName = payload.getUserName();
+//            String userId = "admin";
+//            String userName = "admins";
             if(model.getGrossWeight() == null || model.getGrossWeight().equals(""))
             {
                 throw new MarkerMetException(500, "毛重数据不能为空");
@@ -1342,12 +1357,14 @@ public class MeterWorkRailwayActualServiceImpl extends BaseServiceImpl<MeterWork
                 model.setNetMode("3");
                 model.setDataSource("4");
                 model.setIsPreSacale("0");
+                model.setUploadFlag("1");
                 meterWorkRailwayActualMapper.insertSelective(model);
                 num++;
             }
             else {
                 PreRailwayScale preRailwayScale = preRailwayScaleMapper.selectBypredictionNo(predictionNo);
                 preRailwayScale.setValueFlag("2");
+                preRailwayScale.setUploadFlag("1");
                 preRailwayScale.setUpdateTime(new Date());
                 preRailwayScale.setUpdateManNo("system");
                 preRailwayScale.setUpdateManName("计量洁净数据手动录入");
@@ -1401,6 +1418,7 @@ public class MeterWorkRailwayActualServiceImpl extends BaseServiceImpl<MeterWork
                 model.setNetTime(new Date());
                 model.setNetMode("3");
                 model.setDataSource("4");
+                model.setUploadFlag("1");
                 meterWorkRailwayActualMapper.insertSelective(model);
                 num++;
             }

+ 2280 - 2237
src/main/java/com/steerinfo/pretrack/prerailwayscale/mapper/PreRailwayScaleMapper.xml

@@ -1,2243 +1,2286 @@
 <?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.pretrack.prerailwayscale.mapper.PreRailwayScaleMapper">
-    <resultMap id="BaseResultMap" type="com.steerinfo.pretrack.prerailwayscale.model.PreRailwayScale">
-        <id column="PREDICTION_NO" jdbcType="VARCHAR" property="predictionNo" />
-        <result column="NOTICE_NO" jdbcType="VARCHAR" property="noticeNo" />
-        <result column="RAILWAY_NO" jdbcType="VARCHAR" property="railwayNo" />
-        <result column="RAILWAY_CARRIAGE_NO" jdbcType="VARCHAR" property="railwayCarriageNo" />
-        <result column="MATTER_NO" jdbcType="VARCHAR" property="matterNo" />
-        <result column="MATTER_NAME" jdbcType="VARCHAR" property="matterName" />
-        <result column="CONTRACT_NO" jdbcType="VARCHAR" property="contractNo" />
-        <result column="BATCH_NO" jdbcType="VARCHAR" property="batchNo" />
-        <result column="CUSTOMER_SUPPLIER_NO" jdbcType="VARCHAR" property="customerSupplierNo" />
-        <result column="CUSTOMER_SUPPLIER_NAME" jdbcType="VARCHAR" property="customerSupplierName" />
-        <result column="SOURCE_AREA" jdbcType="VARCHAR" property="sourceArea" />
-        <result column="FORWARDING_UNIT_NO" jdbcType="VARCHAR" property="forwardingUnitNo" />
-        <result column="FORWARDING_UNIT_NAME" jdbcType="VARCHAR" property="forwardingUnitName" />
-        <result column="RECEIVING_UINT_NO" jdbcType="VARCHAR" property="receivingUintNo" />
-        <result column="RECEIVING_UINT_NAME" jdbcType="VARCHAR" property="receivingUintName" />
-        <result column="MATERIAL_NO" jdbcType="VARCHAR" property="materialNo" />
-        <result column="MATERIAL_NAME" jdbcType="VARCHAR" property="materialName" />
-        <result column="SPEC_NO" jdbcType="VARCHAR" property="specNo" />
-        <result column="SPEC_NAME" jdbcType="VARCHAR" property="specName" />
-        <result column="SHIPMENT_GROSS_WEIGHT" jdbcType="DECIMAL" property="shipmentGrossWeight" />
-        <result column="SHIPMENT_NET_WEIGHT" jdbcType="DECIMAL" property="shipmentNetWeight" />
-        <result column="SHIPMENT_NUM" jdbcType="DECIMAL" property="shipmentNum" />
-        <result column="LOAD_POINT_NO" jdbcType="VARCHAR" property="loadPointNo" />
-        <result column="LOAD_POINT_NAME" jdbcType="VARCHAR" property="loadPointName" />
-        <result column="SAMPLE_NO" jdbcType="VARCHAR" property="sampleNo" />
-        <result column="SAMPLE_VOUCHER" jdbcType="VARCHAR" property="sampleVoucher" />
-        <result column="CARRIER_UNIT_NO" jdbcType="VARCHAR" property="carrierUnitNo" />
-        <result column="CARRIER_UNIT_NAME" jdbcType="VARCHAR" property="carrierUnitName" />
-        <result column="PREDICTION_TYPE" jdbcType="VARCHAR" property="predictionType" />
-        <result column="PREDICTION_COMBINATION" jdbcType="VARCHAR" property="predictionCombination" />
-        <result column="METER_TYPE_NO" jdbcType="VARCHAR" property="meterTypeNo" />
-        <result column="METER_TYPE_NAME" jdbcType="VARCHAR" property="meterTypeName" />
-        <result column="EFFECTIVE_START_TIME" jdbcType="TIMESTAMP" property="effectiveStartTime" />
-        <result column="EFFECTIVE_END_TIME" jdbcType="TIMESTAMP" property="effectiveEndTime" />
-        <result column="RAILWAY_TYPE_NO" jdbcType="VARCHAR" property="railwayTypeNo" />
-        <result column="RAILWAY_TYPE_NAME" jdbcType="VARCHAR" property="railwayTypeName" />
-        <result column="MEMO" jdbcType="VARCHAR" property="memo" />
-        <result column="VALUE_FLAG" jdbcType="VARCHAR" property="valueFlag" />
-        <result column="USED_TIME" jdbcType="TIMESTAMP" property="usedTime" />
-        <result column="CREATE_MAN_NO" jdbcType="VARCHAR" property="createManNo" />
-        <result column="CREATE_MAN_NAME" jdbcType="VARCHAR" property="createManName" />
-        <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
-        <result column="UPDATE_MAN_NO" jdbcType="VARCHAR" property="updateManNo" />
-        <result column="UPDATE_MAN_NAME" jdbcType="VARCHAR" property="updateManName" />
-        <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
-        <result column="DELETE_MAN_NO" jdbcType="VARCHAR" property="deleteManNo" />
-        <result column="DELETE_MAN_NAME" jdbcType="VARCHAR" property="deleteManName" />
-        <result column="DELETE_TIME" jdbcType="TIMESTAMP" property="deleteTime" />
-        <result column="P_VALUE_FLAG" jdbcType="VARCHAR" property="pValueFlag" />
-        <result column="IS_CHEMICAL" jdbcType="VARCHAR" property="isChemical" />
-        <result column="LIMIT_WEIGHT" jdbcType="DECIMAL" property="limitWeight" />
-        <result column="RAILWAY_MODEL_NO" jdbcType="VARCHAR" property="railwayModelNo" />
-        <result column="RAILWAY_MODEL_NAME" jdbcType="VARCHAR" property="railwayModelName" />
-        <result column="ARRIVAL" jdbcType="VARCHAR" property="arrival" />
-        <result column="STATION" jdbcType="VARCHAR" property="station" />
-        <result column="VOUCHER_IDENTITY" jdbcType="VARCHAR" property="voucherIdentity" />
-        <result column="VOUCHER_ITEM" jdbcType="VARCHAR" property="voucherItem" />
-        <result column="BUSINESS_GROUP" jdbcType="VARCHAR" property="businessGroup" />
-        <result column="TEMP_CONVEYANCE" jdbcType="VARCHAR" property="tempConveyance" />
-        <result column="CONVEYANCE_TYPE" jdbcType="VARCHAR" property="conveyanceType" />
-        <result column="RESOURCE_SYSTEM" jdbcType="VARCHAR" property="resourceSystem" />
-        <result column="GROUP_PACKAGE_AMOUNT" jdbcType="DECIMAL" property="groupPackageAmount" />
-        <result column="GROUP_PACKAGE_UNIT" jdbcType="VARCHAR" property="groupPackageUnit" />
-        <result column="PACKAGE_AMOUNT" jdbcType="DECIMAL" property="packageAmount" />
-        <result column="PACKAGE_UNIT" jdbcType="VARCHAR" property="packageUnit" />
-        <result column="THEORY_AMOUNT" jdbcType="DECIMAL" property="theoryAmount" />
-        <result column="MEASURE_BATCH" jdbcType="VARCHAR" property="measureBatch" />
-        <result column="MEASURE_BATCH_COUNT" jdbcType="DECIMAL" property="measureBatchCount" />
-        <result column="SENDER_TYPE" jdbcType="VARCHAR" property="senderType" />
-        <result column="SENDER_REMARK" jdbcType="VARCHAR" property="senderRemark" />
-        <result column="RECEIVER_TYPE" jdbcType="VARCHAR" property="receiverType" />
-        <result column="RECEIVER_REMARK" jdbcType="VARCHAR" property="receiverRemark" />
-        <result column="TRUST_DEPARTMENT_NAME" jdbcType="VARCHAR" property="trustDepartmentName" />
-        <result column="TRUST_DEPARTMENT" jdbcType="VARCHAR" property="trustDepartment" />
-        <result column="TRUSTOR" jdbcType="VARCHAR" property="trustor" />
-        <result column="TRUST_DATE_TIME" jdbcType="TIMESTAMP" property="trustDateTime" />
-        <result column="TRUST_AVAILABILITY_TIME" jdbcType="TIMESTAMP" property="trustAvailabilityTime" />
-        <result column="TRUST_IP" jdbcType="VARCHAR" property="trustIp" />
-        <result column="STATION_TYPE" jdbcType="VARCHAR" property="stationType" />
-        <result column="MEASURE_STATION" jdbcType="VARCHAR" property="measureStation" />
-        <result column="MEASURE_STATION_NAME" jdbcType="VARCHAR" property="measureStationName" />
-        <result column="AMOUNT_UNIT" jdbcType="VARCHAR" property="amountUnit" />
-        <result column="TRUST_DAY" jdbcType="DECIMAL" property="trustDay" />
-    </resultMap>
-    <sql id="columns">
-        PREDICTION_NO, NOTICE_NO, RAILWAY_NO, RAILWAY_CARRIAGE_NO, MATTER_NO, MATTER_NAME,
-    CONTRACT_NO, BATCH_NO, CUSTOMER_SUPPLIER_NO, CUSTOMER_SUPPLIER_NAME, SOURCE_AREA,
-    FORWARDING_UNIT_NO, FORWARDING_UNIT_NAME, RECEIVING_UINT_NO, RECEIVING_UINT_NAME,
-    MATERIAL_NO, MATERIAL_NAME, SPEC_NO, SPEC_NAME, SHIPMENT_GROSS_WEIGHT, SHIPMENT_NET_WEIGHT,
-    SHIPMENT_NUM, LOAD_POINT_NO, LOAD_POINT_NAME, SAMPLE_NO, SAMPLE_VOUCHER, CARRIER_UNIT_NO,
-    CARRIER_UNIT_NAME, PREDICTION_TYPE, PREDICTION_COMBINATION, METER_TYPE_NO, METER_TYPE_NAME,
-    EFFECTIVE_START_TIME, EFFECTIVE_END_TIME, RAILWAY_TYPE_NO, RAILWAY_TYPE_NAME, MEMO,
-    VALUE_FLAG, USED_TIME, CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, UPDATE_MAN_NO,
-    UPDATE_MAN_NAME, UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME, P_VALUE_FLAG,
-    IS_CHEMICAL, LIMIT_WEIGHT, RAILWAY_MODEL_NO, RAILWAY_MODEL_NAME, ARRIVAL, STATION,
-    VOUCHER_IDENTITY, VOUCHER_ITEM, BUSINESS_GROUP, TEMP_CONVEYANCE, CONVEYANCE_TYPE,
-    RESOURCE_SYSTEM, GROUP_PACKAGE_AMOUNT, GROUP_PACKAGE_UNIT, PACKAGE_AMOUNT, PACKAGE_UNIT,
-    THEORY_AMOUNT, MEASURE_BATCH, MEASURE_BATCH_COUNT, SENDER_TYPE, SENDER_REMARK, RECEIVER_TYPE,
-    RECEIVER_REMARK, TRUST_DEPARTMENT_NAME, TRUST_DEPARTMENT, TRUSTOR, TRUST_DATE_TIME,
-    TRUST_AVAILABILITY_TIME, TRUST_IP, STATION_TYPE, MEASURE_STATION, MEASURE_STATION_NAME,
-    AMOUNT_UNIT, TRUST_DAY
-    </sql>
-    <sql id="columns_alias">
-        t.PREDICTION_NO, t.NOTICE_NO, t.RAILWAY_NO, t.RAILWAY_CARRIAGE_NO, t.MATTER_NO, t.MATTER_NAME,
-    t.CONTRACT_NO, t.BATCH_NO, t.CUSTOMER_SUPPLIER_NO, t.CUSTOMER_SUPPLIER_NAME, t.SOURCE_AREA,
-    t.FORWARDING_UNIT_NO, t.FORWARDING_UNIT_NAME, t.RECEIVING_UINT_NO, t.RECEIVING_UINT_NAME,
-    t.MATERIAL_NO, t.MATERIAL_NAME, t.SPEC_NO, t.SPEC_NAME, t.SHIPMENT_GROSS_WEIGHT,
-    t.SHIPMENT_NET_WEIGHT, t.SHIPMENT_NUM, t.LOAD_POINT_NO, t.LOAD_POINT_NAME, t.SAMPLE_NO,
-    t.SAMPLE_VOUCHER, t.CARRIER_UNIT_NO, t.CARRIER_UNIT_NAME, t.PREDICTION_TYPE, t.PREDICTION_COMBINATION,
-    t.METER_TYPE_NO, t.METER_TYPE_NAME, t.EFFECTIVE_START_TIME, t.EFFECTIVE_END_TIME,
-    t.RAILWAY_TYPE_NO, t.RAILWAY_TYPE_NAME, t.MEMO, t.VALUE_FLAG, t.USED_TIME, t.CREATE_MAN_NO,
-    t.CREATE_MAN_NAME, t.CREATE_TIME, t.UPDATE_MAN_NO, t.UPDATE_MAN_NAME, t.UPDATE_TIME,
-    t.DELETE_MAN_NO, t.DELETE_MAN_NAME, t.DELETE_TIME, t.P_VALUE_FLAG, t.IS_CHEMICAL,
-    t.LIMIT_WEIGHT, t.RAILWAY_MODEL_NO, t.RAILWAY_MODEL_NAME, t.ARRIVAL, t.STATION, t.VOUCHER_IDENTITY,
-    t.VOUCHER_ITEM, t.BUSINESS_GROUP, t.TEMP_CONVEYANCE, t.CONVEYANCE_TYPE, t.RESOURCE_SYSTEM,
-    t.GROUP_PACKAGE_AMOUNT, t.GROUP_PACKAGE_UNIT, t.PACKAGE_AMOUNT, t.PACKAGE_UNIT, t.THEORY_AMOUNT,
-    t.MEASURE_BATCH, t.MEASURE_BATCH_COUNT, t.SENDER_TYPE, t.SENDER_REMARK, t.RECEIVER_TYPE,
-    t.RECEIVER_REMARK, t.TRUST_DEPARTMENT_NAME, t.TRUST_DEPARTMENT, t.TRUSTOR, t.TRUST_DATE_TIME,
-    t.TRUST_AVAILABILITY_TIME, t.TRUST_IP, t.STATION_TYPE, t.MEASURE_STATION, t.MEASURE_STATION_NAME,
-    t.AMOUNT_UNIT, t.TRUST_DAY
-    </sql>
-    <sql id="select">
-        SELECT <include refid="columns"/> FROM PRE_RAILWAY_SCALE
-    </sql>
-    <sql id="select_alias">
-        SELECT <include refid="columns_alias"/> FROM PRE_RAILWAY_SCALE t
-    </sql>
-    <sql id="where">
-        <where>
-            <if test="predictionNo != null and predictionNo != ''">
-                and PREDICTION_NO = #{predictionNo}
-            </if>
-            <if test="noticeNo != null and noticeNo != ''">
-                and NOTICE_NO = #{noticeNo}
-            </if>
-            <if test="railwayNo != null and railwayNo != ''">
-                and RAILWAY_NO = #{railwayNo}
-            </if>
-            <if test="railwayCarriageNo != null and railwayCarriageNo != ''">
-                and RAILWAY_CARRIAGE_NO = #{railwayCarriageNo}
-            </if>
-            <if test="matterNo != null and matterNo != ''">
-                and MATTER_NO = #{matterNo}
-            </if>
-            <if test="matterName != null and matterName != ''">
-                and MATTER_NAME = #{matterName}
-            </if>
-            <if test="contractNo != null and contractNo != ''">
-                and CONTRACT_NO = #{contractNo}
-            </if>
-            <if test="batchNo != null and batchNo != ''">
-                and BATCH_NO = #{batchNo}
-            </if>
-            <if test="customerSupplierNo != null and customerSupplierNo != ''">
-                and CUSTOMER_SUPPLIER_NO = #{customerSupplierNo}
-            </if>
-            <if test="customerSupplierName != null and customerSupplierName != ''">
-                and CUSTOMER_SUPPLIER_NAME = #{customerSupplierName}
-            </if>
-            <if test="sourceArea != null and sourceArea != ''">
-                and SOURCE_AREA = #{sourceArea}
-            </if>
-            <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
-                and FORWARDING_UNIT_NO = #{forwardingUnitNo}
-            </if>
-            <if test="forwardingUnitName != null and forwardingUnitName != ''">
-                and FORWARDING_UNIT_NAME = #{forwardingUnitName}
-            </if>
-            <if test="receivingUintNo != null and receivingUintNo != ''">
-                and RECEIVING_UINT_NO = #{receivingUintNo}
-            </if>
-            <if test="receivingUintName != null and receivingUintName != ''">
-                and RECEIVING_UINT_NAME = #{receivingUintName}
-            </if>
-            <if test="materialNo != null and materialNo != ''">
-                and MATERIAL_NO = #{materialNo}
-            </if>
-            <if test="materialName != null and materialName != ''">
-                and MATERIAL_NAME = #{materialName}
-            </if>
-            <if test="specNo != null and specNo != ''">
-                and SPEC_NO = #{specNo}
-            </if>
-            <if test="specName != null and specName != ''">
-                and SPEC_NAME = #{specName}
-            </if>
-            <if test="shipmentGrossWeight != null">
-                and SHIPMENT_GROSS_WEIGHT = #{shipmentGrossWeight}
-            </if>
-            <if test="shipmentNetWeight != null">
-                and SHIPMENT_NET_WEIGHT = #{shipmentNetWeight}
-            </if>
-            <if test="shipmentNum != null">
-                and SHIPMENT_NUM = #{shipmentNum}
-            </if>
-            <if test="loadPointNo != null and loadPointNo != ''">
-                and LOAD_POINT_NO = #{loadPointNo}
-            </if>
-            <if test="loadPointName != null and loadPointName != ''">
-                and LOAD_POINT_NAME = #{loadPointName}
-            </if>
-            <if test="sampleNo != null and sampleNo != ''">
-                and SAMPLE_NO = #{sampleNo}
-            </if>
-            <if test="sampleVoucher != null and sampleVoucher != ''">
-                and SAMPLE_VOUCHER = #{sampleVoucher}
-            </if>
-            <if test="carrierUnitNo != null and carrierUnitNo != ''">
-                and CARRIER_UNIT_NO = #{carrierUnitNo}
-            </if>
-            <if test="carrierUnitName != null and carrierUnitName != ''">
-                and CARRIER_UNIT_NAME = #{carrierUnitName}
-            </if>
-            <if test="predictionType != null and predictionType != ''">
-                and PREDICTION_TYPE = #{predictionType}
-            </if>
-            <if test="predictionCombination != null and predictionCombination != ''">
-                and PREDICTION_COMBINATION = #{predictionCombination}
-            </if>
-            <if test="meterTypeNo != null and meterTypeNo != ''">
-                and METER_TYPE_NO = #{meterTypeNo}
-            </if>
-            <if test="meterTypeName != null and meterTypeName != ''">
-                and METER_TYPE_NAME = #{meterTypeName}
-            </if>
-            <if test="effectiveStartTime != null">
-                and TO_CHAR(EFFECTIVE_START_TIME,'yyyy-MM-dd') = #{effectiveStartTime}
-            </if>
-            <if test="effectiveEndTime != null">
-                and TO_CHAR(EFFECTIVE_END_TIME,'yyyy-MM-dd') = #{effectiveEndTime}
-            </if>
-            <if test="railwayTypeNo != null and railwayTypeNo != ''">
-                and RAILWAY_TYPE_NO = #{railwayTypeNo}
-            </if>
-            <if test="railwayTypeName != null and railwayTypeName != ''">
-                and RAILWAY_TYPE_NAME = #{railwayTypeName}
-            </if>
-            <if test="memo != null and memo != ''">
-                and MEMO = #{memo}
-            </if>
-            <if test="valueFlag != null and valueFlag != ''">
-                and VALUE_FLAG = #{valueFlag}
-            </if>
-            <if test="usedTime != null">
-                and TO_CHAR(USED_TIME,'yyyy-MM-dd') = #{usedTime}
-            </if>
-            <if test="createManNo != null and createManNo != ''">
-                and CREATE_MAN_NO = #{createManNo}
-            </if>
-            <if test="createManName != null and createManName != ''">
-                and CREATE_MAN_NAME = #{createManName}
-            </if>
-            <if test="createTime != null">
-                and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
-            </if>
-            <if test="updateManNo != null and updateManNo != ''">
-                and UPDATE_MAN_NO = #{updateManNo}
-            </if>
-            <if test="updateManName != null and updateManName != ''">
-                and UPDATE_MAN_NAME = #{updateManName}
-            </if>
-            <if test="updateTime != null">
-                and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
-            </if>
-            <if test="deleteManNo != null and deleteManNo != ''">
-                and DELETE_MAN_NO = #{deleteManNo}
-            </if>
-            <if test="deleteManName != null and deleteManName != ''">
-                and DELETE_MAN_NAME = #{deleteManName}
-            </if>
-            <if test="deleteTime != null">
-                and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
-            </if>
-            <if test="pValueFlag != null and pValueFlag != ''">
-                and P_VALUE_FLAG = #{pValueFlag}
-            </if>
-            <if test="isChemical != null and isChemical != ''">
-                and IS_CHEMICAL = #{isChemical}
-            </if>
-            <if test="limitWeight != null">
-                and LIMIT_WEIGHT = #{limitWeight}
-            </if>
-            <if test="railwayModelNo != null and railwayModelNo != ''">
-                and RAILWAY_MODEL_NO = #{railwayModelNo}
-            </if>
-            <if test="railwayModelName != null and railwayModelName != ''">
-                and RAILWAY_MODEL_NAME = #{railwayModelName}
-            </if>
-            <if test="arrival != null and arrival != ''">
-                and ARRIVAL = #{arrival}
-            </if>
-            <if test="station != null and station != ''">
-                and STATION = #{station}
-            </if>
-            <if test="voucherIdentity != null and voucherIdentity != ''">
-                and VOUCHER_IDENTITY = #{voucherIdentity}
-            </if>
-            <if test="voucherItem != null and voucherItem != ''">
-                and VOUCHER_ITEM = #{voucherItem}
-            </if>
-            <if test="businessGroup != null and businessGroup != ''">
-                and BUSINESS_GROUP = #{businessGroup}
-            </if>
-            <if test="tempConveyance != null and tempConveyance != ''">
-                and TEMP_CONVEYANCE = #{tempConveyance}
-            </if>
-            <if test="conveyanceType != null and conveyanceType != ''">
-                and CONVEYANCE_TYPE = #{conveyanceType}
-            </if>
-            <if test="resourceSystem != null and resourceSystem != ''">
-                and RESOURCE_SYSTEM = #{resourceSystem}
-            </if>
-            <if test="groupPackageAmount != null">
-                and GROUP_PACKAGE_AMOUNT = #{groupPackageAmount}
-            </if>
-            <if test="groupPackageUnit != null and groupPackageUnit != ''">
-                and GROUP_PACKAGE_UNIT = #{groupPackageUnit}
-            </if>
-            <if test="packageAmount != null">
-                and PACKAGE_AMOUNT = #{packageAmount}
-            </if>
-            <if test="packageUnit != null and packageUnit != ''">
-                and PACKAGE_UNIT = #{packageUnit}
-            </if>
-            <if test="theoryAmount != null">
-                and THEORY_AMOUNT = #{theoryAmount}
-            </if>
-            <if test="measureBatch != null and measureBatch != ''">
-                and MEASURE_BATCH = #{measureBatch}
-            </if>
-            <if test="measureBatchCount != null">
-                and MEASURE_BATCH_COUNT = #{measureBatchCount}
-            </if>
-            <if test="senderType != null and senderType != ''">
-                and SENDER_TYPE = #{senderType}
-            </if>
-            <if test="senderRemark != null and senderRemark != ''">
-                and SENDER_REMARK = #{senderRemark}
-            </if>
-            <if test="receiverType != null and receiverType != ''">
-                and RECEIVER_TYPE = #{receiverType}
-            </if>
-            <if test="receiverRemark != null and receiverRemark != ''">
-                and RECEIVER_REMARK = #{receiverRemark}
-            </if>
-            <if test="trustDepartmentName != null and trustDepartmentName != ''">
-                and TRUST_DEPARTMENT_NAME = #{trustDepartmentName}
-            </if>
-            <if test="trustDepartment != null and trustDepartment != ''">
-                and TRUST_DEPARTMENT = #{trustDepartment}
-            </if>
-            <if test="trustor != null and trustor != ''">
-                and TRUSTOR = #{trustor}
-            </if>
-            <if test="trustDateTime != null">
-                and TO_CHAR(TRUST_DATE_TIME,'yyyy-MM-dd') = #{trustDateTime}
-            </if>
-            <if test="trustAvailabilityTime != null">
-                and TO_CHAR(TRUST_AVAILABILITY_TIME,'yyyy-MM-dd') = #{trustAvailabilityTime}
-            </if>
-            <if test="trustIp != null and trustIp != ''">
-                and TRUST_IP = #{trustIp}
-            </if>
-            <if test="stationType != null and stationType != ''">
-                and STATION_TYPE = #{stationType}
-            </if>
-            <if test="measureStation != null and measureStation != ''">
-                and MEASURE_STATION = #{measureStation}
-            </if>
-            <if test="measureStationName != null and measureStationName != ''">
-                and MEASURE_STATION_NAME = #{measureStationName}
-            </if>
-            <if test="amountUnit != null and amountUnit != ''">
-                and AMOUNT_UNIT = #{amountUnit}
-            </if>
-            <if test="trustDay != null">
-                and TRUST_DAY = #{trustDay}
-            </if>
-            <if test="startTime != null and startTime!='' and endTime != null and endTime!=''">
-                and create_time between to_date(#{startTime},'yyyy-MM-dd HH24:mi:ss') and to_date(#{endTime},'yyyy-MM-dd HH24:mi:ss')
-            </if>
-        </where>
-    </sql>
-    <sql id="whereLike">
-        <where>
-            <if test="predictionNo != null and predictionNo != ''">
-                and PREDICTION_NO LIKE '%${predictionNo}%'
-            </if>
-            <if test="noticeNo != null and noticeNo != ''">
-                and NOTICE_NO LIKE '%${noticeNo}%'
-            </if>
-            <if test="railwayNo != null and railwayNo != ''">
-                and RAILWAY_NO LIKE '%${railwayNo}%'
-            </if>
-            <if test="railwayCarriageNo != null and railwayCarriageNo != ''">
-                and RAILWAY_CARRIAGE_NO LIKE '%${railwayCarriageNo}%'
-            </if>
-            <if test="matterNo != null and matterNo != ''">
-                and MATTER_NO LIKE '%${matterNo}%'
-            </if>
-            <if test="matterName != null and matterName != ''">
-                and MATTER_NAME LIKE '%${matterName}%'
-            </if>
-            <if test="contractNo != null and contractNo != ''">
-                and CONTRACT_NO LIKE '%${contractNo}%'
-            </if>
-            <if test="batchNo != null and batchNo != ''">
-                and BATCH_NO LIKE '%${batchNo}%'
-            </if>
-            <if test="customerSupplierNo != null and customerSupplierNo != ''">
-                and CUSTOMER_SUPPLIER_NO LIKE '%${customerSupplierNo}%'
-            </if>
-            <if test="customerSupplierName != null and customerSupplierName != ''">
-                and CUSTOMER_SUPPLIER_NAME LIKE '%${customerSupplierName}%'
-            </if>
-            <if test="sourceArea != null and sourceArea != ''">
-                and SOURCE_AREA LIKE '%${sourceArea}%'
-            </if>
-            <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
-                and FORWARDING_UNIT_NO LIKE '%${forwardingUnitNo}%'
-            </if>
-            <if test="forwardingUnitName != null and forwardingUnitName != ''">
-                and FORWARDING_UNIT_NAME LIKE '%${forwardingUnitName}%'
-            </if>
-            <if test="receivingUintNo != null and receivingUintNo != ''">
-                and RECEIVING_UINT_NO LIKE '%${receivingUintNo}%'
-            </if>
-            <if test="receivingUintName != null and receivingUintName != ''">
-                and RECEIVING_UINT_NAME LIKE '%${receivingUintName}%'
-            </if>
-            <if test="materialNo != null and materialNo != ''">
-                and MATERIAL_NO LIKE '%${materialNo}%'
-            </if>
-            <if test="materialName != null and materialName != ''">
-                and MATERIAL_NAME LIKE '%${materialName}%'
-            </if>
-            <if test="specNo != null and specNo != ''">
-                and SPEC_NO LIKE '%${specNo}%'
-            </if>
-            <if test="specName != null and specName != ''">
-                and SPEC_NAME LIKE '%${specName}%'
-            </if>
-            <if test="shipmentGrossWeight != null">
-                and SHIPMENT_GROSS_WEIGHT = #{shipmentGrossWeight}
-            </if>
-            <if test="shipmentNetWeight != null">
-                and SHIPMENT_NET_WEIGHT = #{shipmentNetWeight}
-            </if>
-            <if test="shipmentNum != null">
-                and SHIPMENT_NUM = #{shipmentNum}
-            </if>
-            <if test="loadPointNo != null and loadPointNo != ''">
-                and LOAD_POINT_NO LIKE '%${loadPointNo}%'
-            </if>
-            <if test="loadPointName != null and loadPointName != ''">
-                and LOAD_POINT_NAME LIKE '%${loadPointName}%'
-            </if>
-            <if test="sampleNo != null and sampleNo != ''">
-                and SAMPLE_NO LIKE '%${sampleNo}%'
-            </if>
-            <if test="sampleVoucher != null and sampleVoucher != ''">
-                and SAMPLE_VOUCHER LIKE '%${sampleVoucher}%'
-            </if>
-            <if test="carrierUnitNo != null and carrierUnitNo != ''">
-                and CARRIER_UNIT_NO LIKE '%${carrierUnitNo}%'
-            </if>
-            <if test="carrierUnitName != null and carrierUnitName != ''">
-                and CARRIER_UNIT_NAME LIKE '%${carrierUnitName}%'
-            </if>
-            <if test="predictionType != null and predictionType != ''">
-                and PREDICTION_TYPE LIKE '%${predictionType}%'
-            </if>
-            <if test="predictionCombination != null and predictionCombination != ''">
-                and PREDICTION_COMBINATION LIKE '%${predictionCombination}%'
-            </if>
-            <if test="meterTypeNo != null and meterTypeNo != ''">
-                and METER_TYPE_NO LIKE '%${meterTypeNo}%'
-            </if>
-            <if test="meterTypeName != null and meterTypeName != ''">
-                and METER_TYPE_NAME LIKE '%${meterTypeName}%'
-            </if>
-            <if test="effectiveStartTime != null">
-                and TO_CHAR(EFFECTIVE_START_TIME,'yyyy-MM-dd') = #{effectiveStartTime}
-            </if>
-            <if test="effectiveEndTime != null">
-                and TO_CHAR(EFFECTIVE_END_TIME,'yyyy-MM-dd') = #{effectiveEndTime}
-            </if>
-            <if test="railwayTypeNo != null and railwayTypeNo != ''">
-                and RAILWAY_TYPE_NO LIKE '%${railwayTypeNo}%'
-            </if>
-            <if test="railwayTypeName != null and railwayTypeName != ''">
-                and RAILWAY_TYPE_NAME LIKE '%${railwayTypeName}%'
-            </if>
-            <if test="memo != null and memo != ''">
-                and MEMO LIKE '%${memo}%'
-            </if>
-            <if test="valueFlag != null and valueFlag != ''">
-                and VALUE_FLAG LIKE '%${valueFlag}%'
-            </if>
-            <if test="usedTime != null">
-                and TO_CHAR(USED_TIME,'yyyy-MM-dd') = #{usedTime}
-            </if>
-            <if test="createManNo != null and createManNo != ''">
-                and CREATE_MAN_NO LIKE '%${createManNo}%'
-            </if>
-            <if test="createManName != null and createManName != ''">
-                and CREATE_MAN_NAME LIKE '%${createManName}%'
-            </if>
-            <if test="createTime != null">
-                and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
-            </if>
-            <if test="updateManNo != null and updateManNo != ''">
-                and UPDATE_MAN_NO LIKE '%${updateManNo}%'
-            </if>
-            <if test="updateManName != null and updateManName != ''">
-                and UPDATE_MAN_NAME LIKE '%${updateManName}%'
-            </if>
-            <if test="updateTime != null">
-                and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
-            </if>
-            <if test="deleteManNo != null and deleteManNo != ''">
-                and DELETE_MAN_NO LIKE '%${deleteManNo}%'
-            </if>
-            <if test="deleteManName != null and deleteManName != ''">
-                and DELETE_MAN_NAME LIKE '%${deleteManName}%'
-            </if>
-            <if test="deleteTime != null">
-                and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
-            </if>
-            <if test="pValueFlag != null and pValueFlag != ''">
-                and P_VALUE_FLAG LIKE '%${pValueFlag}%'
-            </if>
-            <if test="isChemical != null and isChemical != ''">
-                and IS_CHEMICAL LIKE '%${isChemical}%'
-            </if>
-            <if test="limitWeight != null">
-                and LIMIT_WEIGHT = #{limitWeight}
-            </if>
-            <if test="railwayModelNo != null and railwayModelNo != ''">
-                and RAILWAY_MODEL_NO LIKE '%${railwayModelNo}%'
-            </if>
-            <if test="railwayModelName != null and railwayModelName != ''">
-                and RAILWAY_MODEL_NAME LIKE '%${railwayModelName}%'
-            </if>
-            <if test="arrival != null and arrival != ''">
-                and ARRIVAL LIKE '%${arrival}%'
-            </if>
-            <if test="station != null and station != ''">
-                and STATION LIKE '%${station}%'
-            </if>
-            <if test="voucherIdentity != null and voucherIdentity != ''">
-                and VOUCHER_IDENTITY LIKE '%${voucherIdentity}%'
-            </if>
-            <if test="voucherItem != null and voucherItem != ''">
-                and VOUCHER_ITEM LIKE '%${voucherItem}%'
-            </if>
-            <if test="businessGroup != null and businessGroup != ''">
-                and BUSINESS_GROUP LIKE '%${businessGroup}%'
-            </if>
-            <if test="tempConveyance != null and tempConveyance != ''">
-                and TEMP_CONVEYANCE LIKE '%${tempConveyance}%'
-            </if>
-            <if test="conveyanceType != null and conveyanceType != ''">
-                and CONVEYANCE_TYPE LIKE '%${conveyanceType}%'
-            </if>
-            <if test="resourceSystem != null and resourceSystem != ''">
-                and RESOURCE_SYSTEM LIKE '%${resourceSystem}%'
-            </if>
-            <if test="groupPackageAmount != null">
-                and GROUP_PACKAGE_AMOUNT = #{groupPackageAmount}
-            </if>
-            <if test="groupPackageUnit != null and groupPackageUnit != ''">
-                and GROUP_PACKAGE_UNIT LIKE '%${groupPackageUnit}%'
-            </if>
-            <if test="packageAmount != null">
-                and PACKAGE_AMOUNT = #{packageAmount}
-            </if>
-            <if test="packageUnit != null and packageUnit != ''">
-                and PACKAGE_UNIT LIKE '%${packageUnit}%'
-            </if>
-            <if test="theoryAmount != null">
-                and THEORY_AMOUNT = #{theoryAmount}
-            </if>
-            <if test="measureBatch != null and measureBatch != ''">
-                and MEASURE_BATCH LIKE '%${measureBatch}%'
-            </if>
-            <if test="measureBatchCount != null">
-                and MEASURE_BATCH_COUNT = #{measureBatchCount}
-            </if>
-            <if test="senderType != null and senderType != ''">
-                and SENDER_TYPE LIKE '%${senderType}%'
-            </if>
-            <if test="senderRemark != null and senderRemark != ''">
-                and SENDER_REMARK LIKE '%${senderRemark}%'
-            </if>
-            <if test="receiverType != null and receiverType != ''">
-                and RECEIVER_TYPE LIKE '%${receiverType}%'
-            </if>
-            <if test="receiverRemark != null and receiverRemark != ''">
-                and RECEIVER_REMARK LIKE '%${receiverRemark}%'
-            </if>
-            <if test="trustDepartmentName != null and trustDepartmentName != ''">
-                and TRUST_DEPARTMENT_NAME LIKE '%${trustDepartmentName}%'
-            </if>
-            <if test="trustDepartment != null and trustDepartment != ''">
-                and TRUST_DEPARTMENT LIKE '%${trustDepartment}%'
-            </if>
-            <if test="trustor != null and trustor != ''">
-                and TRUSTOR LIKE '%${trustor}%'
-            </if>
-            <if test="trustDateTime != null">
-                and TO_CHAR(TRUST_DATE_TIME,'yyyy-MM-dd') = #{trustDateTime}
-            </if>
-            <if test="trustAvailabilityTime != null">
-                and TO_CHAR(TRUST_AVAILABILITY_TIME,'yyyy-MM-dd') = #{trustAvailabilityTime}
-            </if>
-            <if test="trustIp != null and trustIp != ''">
-                and TRUST_IP LIKE '%${trustIp}%'
-            </if>
-            <if test="stationType != null and stationType != ''">
-                and STATION_TYPE LIKE '%${stationType}%'
-            </if>
-            <if test="measureStation != null and measureStation != ''">
-                and MEASURE_STATION LIKE '%${measureStation}%'
-            </if>
-            <if test="measureStationName != null and measureStationName != ''">
-                and MEASURE_STATION_NAME LIKE '%${measureStationName}%'
-            </if>
-            <if test="amountUnit != null and amountUnit != ''">
-                and AMOUNT_UNIT LIKE '%${amountUnit}%'
-            </if>
-            <if test="trustDay != null">
-                and TRUST_DAY = #{trustDay}
-            </if>
-            <if test="startTime != null and startTime!='' and endTime != null and endTime!=''">
-                and create_time between to_date(#{startTime},'yyyy-MM-dd HH24:mi:ss') and to_date(#{endTime},'yyyy-MM-dd HH24:mi:ss')
-            </if>
-        </where>
-    </sql>
-    <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
-        delete from PRE_RAILWAY_SCALE
-        where PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR}
-    </delete>
-    <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
-        delete from PRE_RAILWAY_SCALE
-        where 1!=1
-        <if test="noticeNo != null and noticeNo != ''">
-            or NOTICE_NO = #{noticeNo}
-        </if>
-        <if test="railwayNo != null and railwayNo != ''">
-            or RAILWAY_NO = #{railwayNo}
-        </if>
-        <if test="railwayCarriageNo != null and railwayCarriageNo != ''">
-            or RAILWAY_CARRIAGE_NO = #{railwayCarriageNo}
-        </if>
-        <if test="matterNo != null and matterNo != ''">
-            or MATTER_NO = #{matterNo}
-        </if>
-        <if test="matterName != null and matterName != ''">
-            or MATTER_NAME = #{matterName}
-        </if>
-        <if test="contractNo != null and contractNo != ''">
-            or CONTRACT_NO = #{contractNo}
-        </if>
-        <if test="batchNo != null and batchNo != ''">
-            or BATCH_NO = #{batchNo}
-        </if>
-        <if test="customerSupplierNo != null and customerSupplierNo != ''">
-            or CUSTOMER_SUPPLIER_NO = #{customerSupplierNo}
-        </if>
-        <if test="customerSupplierName != null and customerSupplierName != ''">
-            or CUSTOMER_SUPPLIER_NAME = #{customerSupplierName}
-        </if>
-        <if test="sourceArea != null and sourceArea != ''">
-            or SOURCE_AREA = #{sourceArea}
-        </if>
-        <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
-            or FORWARDING_UNIT_NO = #{forwardingUnitNo}
-        </if>
-        <if test="forwardingUnitName != null and forwardingUnitName != ''">
-            or FORWARDING_UNIT_NAME = #{forwardingUnitName}
-        </if>
-        <if test="receivingUintNo != null and receivingUintNo != ''">
-            or RECEIVING_UINT_NO = #{receivingUintNo}
-        </if>
-        <if test="receivingUintName != null and receivingUintName != ''">
-            or RECEIVING_UINT_NAME = #{receivingUintName}
-        </if>
-        <if test="materialNo != null and materialNo != ''">
-            or MATERIAL_NO = #{materialNo}
-        </if>
-        <if test="materialName != null and materialName != ''">
-            or MATERIAL_NAME = #{materialName}
-        </if>
-        <if test="specNo != null and specNo != ''">
-            or SPEC_NO = #{specNo}
-        </if>
-        <if test="specName != null and specName != ''">
-            or SPEC_NAME = #{specName}
-        </if>
-        <if test="shipmentGrossWeight != null">
-            or SHIPMENT_GROSS_WEIGHT = #{shipmentGrossWeight}
-        </if>
-        <if test="shipmentNetWeight != null">
-            or SHIPMENT_NET_WEIGHT = #{shipmentNetWeight}
-        </if>
-        <if test="shipmentNum != null">
-            or SHIPMENT_NUM = #{shipmentNum}
-        </if>
-        <if test="loadPointNo != null and loadPointNo != ''">
-            or LOAD_POINT_NO = #{loadPointNo}
-        </if>
-        <if test="loadPointName != null and loadPointName != ''">
-            or LOAD_POINT_NAME = #{loadPointName}
-        </if>
-        <if test="sampleNo != null and sampleNo != ''">
-            or SAMPLE_NO = #{sampleNo}
-        </if>
-        <if test="sampleVoucher != null and sampleVoucher != ''">
-            or SAMPLE_VOUCHER = #{sampleVoucher}
-        </if>
-        <if test="carrierUnitNo != null and carrierUnitNo != ''">
-            or CARRIER_UNIT_NO = #{carrierUnitNo}
-        </if>
-        <if test="carrierUnitName != null and carrierUnitName != ''">
-            or CARRIER_UNIT_NAME = #{carrierUnitName}
-        </if>
-        <if test="predictionType != null and predictionType != ''">
-            or PREDICTION_TYPE = #{predictionType}
-        </if>
-        <if test="predictionCombination != null and predictionCombination != ''">
-            or PREDICTION_COMBINATION = #{predictionCombination}
-        </if>
-        <if test="meterTypeNo != null and meterTypeNo != ''">
-            or METER_TYPE_NO = #{meterTypeNo}
-        </if>
-        <if test="meterTypeName != null and meterTypeName != ''">
-            or METER_TYPE_NAME = #{meterTypeName}
-        </if>
-        <if test="effectiveStartTime != null">
-            or TO_CHAR(EFFECTIVE_START_TIME,'yyyy-MM-dd') = '#{effectiveStartTime}'
-        </if>
-        <if test="effectiveEndTime != null">
-            or TO_CHAR(EFFECTIVE_END_TIME,'yyyy-MM-dd') = '#{effectiveEndTime}'
-        </if>
-        <if test="railwayTypeNo != null and railwayTypeNo != ''">
-            or RAILWAY_TYPE_NO = #{railwayTypeNo}
-        </if>
-        <if test="railwayTypeName != null and railwayTypeName != ''">
-            or RAILWAY_TYPE_NAME = #{railwayTypeName}
-        </if>
-        <if test="memo != null and memo != ''">
-            or MEMO = #{memo}
-        </if>
-        <if test="valueFlag != null and valueFlag != ''">
-            or VALUE_FLAG = #{valueFlag}
-        </if>
-        <if test="usedTime != null">
-            or TO_CHAR(USED_TIME,'yyyy-MM-dd') = '#{usedTime}'
-        </if>
-        <if test="createManNo != null and createManNo != ''">
-            or CREATE_MAN_NO = #{createManNo}
-        </if>
-        <if test="createManName != null and createManName != ''">
-            or CREATE_MAN_NAME = #{createManName}
-        </if>
-        <if test="createTime != null">
-            or TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = '#{createTime}'
-        </if>
-        <if test="updateManNo != null and updateManNo != ''">
-            or UPDATE_MAN_NO = #{updateManNo}
-        </if>
-        <if test="updateManName != null and updateManName != ''">
-            or UPDATE_MAN_NAME = #{updateManName}
-        </if>
-        <if test="updateTime != null">
-            or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
-        </if>
-        <if test="deleteManNo != null and deleteManNo != ''">
-            or DELETE_MAN_NO = #{deleteManNo}
-        </if>
-        <if test="deleteManName != null and deleteManName != ''">
-            or DELETE_MAN_NAME = #{deleteManName}
-        </if>
-        <if test="deleteTime != null">
-            or TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = '#{deleteTime}'
-        </if>
-        <if test="pValueFlag != null and pValueFlag != ''">
-            or P_VALUE_FLAG = #{pValueFlag}
-        </if>
-        <if test="isChemical != null and isChemical != ''">
-            or IS_CHEMICAL = #{isChemical}
-        </if>
-        <if test="limitWeight != null">
-            or LIMIT_WEIGHT = #{limitWeight}
-        </if>
-        <if test="railwayModelNo != null and railwayModelNo != ''">
-            or RAILWAY_MODEL_NO = #{railwayModelNo}
-        </if>
-        <if test="railwayModelName != null and railwayModelName != ''">
-            or RAILWAY_MODEL_NAME = #{railwayModelName}
-        </if>
-        <if test="arrival != null and arrival != ''">
-            or ARRIVAL = #{arrival}
-        </if>
-        <if test="station != null and station != ''">
-            or STATION = #{station}
-        </if>
-        <if test="voucherIdentity != null and voucherIdentity != ''">
-            or VOUCHER_IDENTITY = #{voucherIdentity}
-        </if>
-        <if test="voucherItem != null and voucherItem != ''">
-            or VOUCHER_ITEM = #{voucherItem}
-        </if>
-        <if test="businessGroup != null and businessGroup != ''">
-            or BUSINESS_GROUP = #{businessGroup}
-        </if>
-        <if test="tempConveyance != null and tempConveyance != ''">
-            or TEMP_CONVEYANCE = #{tempConveyance}
-        </if>
-        <if test="conveyanceType != null and conveyanceType != ''">
-            or CONVEYANCE_TYPE = #{conveyanceType}
-        </if>
-        <if test="resourceSystem != null and resourceSystem != ''">
-            or RESOURCE_SYSTEM = #{resourceSystem}
-        </if>
-        <if test="groupPackageAmount != null">
-            or GROUP_PACKAGE_AMOUNT = #{groupPackageAmount}
-        </if>
-        <if test="groupPackageUnit != null and groupPackageUnit != ''">
-            or GROUP_PACKAGE_UNIT = #{groupPackageUnit}
-        </if>
-        <if test="packageAmount != null">
-            or PACKAGE_AMOUNT = #{packageAmount}
-        </if>
-        <if test="packageUnit != null and packageUnit != ''">
-            or PACKAGE_UNIT = #{packageUnit}
-        </if>
-        <if test="theoryAmount != null">
-            or THEORY_AMOUNT = #{theoryAmount}
-        </if>
-        <if test="measureBatch != null and measureBatch != ''">
-            or MEASURE_BATCH = #{measureBatch}
-        </if>
-        <if test="measureBatchCount != null">
-            or MEASURE_BATCH_COUNT = #{measureBatchCount}
-        </if>
-        <if test="senderType != null and senderType != ''">
-            or SENDER_TYPE = #{senderType}
-        </if>
-        <if test="senderRemark != null and senderRemark != ''">
-            or SENDER_REMARK = #{senderRemark}
-        </if>
-        <if test="receiverType != null and receiverType != ''">
-            or RECEIVER_TYPE = #{receiverType}
-        </if>
-        <if test="receiverRemark != null and receiverRemark != ''">
-            or RECEIVER_REMARK = #{receiverRemark}
-        </if>
-        <if test="trustDepartmentName != null and trustDepartmentName != ''">
-            or TRUST_DEPARTMENT_NAME = #{trustDepartmentName}
-        </if>
-        <if test="trustDepartment != null and trustDepartment != ''">
-            or TRUST_DEPARTMENT = #{trustDepartment}
-        </if>
-        <if test="trustor != null and trustor != ''">
-            or TRUSTOR = #{trustor}
-        </if>
-        <if test="trustDateTime != null">
-            or TO_CHAR(TRUST_DATE_TIME,'yyyy-MM-dd') = '#{trustDateTime}'
-        </if>
-        <if test="trustAvailabilityTime != null">
-            or TO_CHAR(TRUST_AVAILABILITY_TIME,'yyyy-MM-dd') = '#{trustAvailabilityTime}'
-        </if>
-        <if test="trustIp != null and trustIp != ''">
-            or TRUST_IP = #{trustIp}
-        </if>
-        <if test="stationType != null and stationType != ''">
-            or STATION_TYPE = #{stationType}
-        </if>
-        <if test="measureStation != null and measureStation != ''">
-            or MEASURE_STATION = #{measureStation}
-        </if>
-        <if test="measureStationName != null and measureStationName != ''">
-            or MEASURE_STATION_NAME = #{measureStationName}
-        </if>
-        <if test="amountUnit != null and amountUnit != ''">
-            or AMOUNT_UNIT = #{amountUnit}
-        </if>
-        <if test="trustDay != null">
-            or TRUST_DAY = #{trustDay}
-        </if>
-    </delete>
-    <insert id="insert" parameterType="com.steerinfo.pretrack.prerailwayscale.model.PreRailwayScale">
-        insert into PRE_RAILWAY_SCALE (PREDICTION_NO, NOTICE_NO, RAILWAY_NO,
-                                       RAILWAY_CARRIAGE_NO, MATTER_NO, MATTER_NAME,
-                                       CONTRACT_NO, BATCH_NO, CUSTOMER_SUPPLIER_NO,
-                                       CUSTOMER_SUPPLIER_NAME, SOURCE_AREA, FORWARDING_UNIT_NO,
-                                       FORWARDING_UNIT_NAME, RECEIVING_UINT_NO, RECEIVING_UINT_NAME,
-                                       MATERIAL_NO, MATERIAL_NAME, SPEC_NO,
-                                       SPEC_NAME, SHIPMENT_GROSS_WEIGHT, SHIPMENT_NET_WEIGHT,
-                                       SHIPMENT_NUM, LOAD_POINT_NO, LOAD_POINT_NAME,
-                                       SAMPLE_NO, SAMPLE_VOUCHER, CARRIER_UNIT_NO,
-                                       CARRIER_UNIT_NAME, PREDICTION_TYPE, PREDICTION_COMBINATION,
-                                       METER_TYPE_NO, METER_TYPE_NAME, EFFECTIVE_START_TIME,
-                                       EFFECTIVE_END_TIME, RAILWAY_TYPE_NO, RAILWAY_TYPE_NAME,
-                                       MEMO, VALUE_FLAG, USED_TIME,
-                                       CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME,
-                                       UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME,
-                                       DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME,
-                                       P_VALUE_FLAG, IS_CHEMICAL, LIMIT_WEIGHT,
-                                       RAILWAY_MODEL_NO, RAILWAY_MODEL_NAME, ARRIVAL,
-                                       STATION, VOUCHER_IDENTITY, VOUCHER_ITEM,
-                                       BUSINESS_GROUP, TEMP_CONVEYANCE, CONVEYANCE_TYPE,
-                                       RESOURCE_SYSTEM, GROUP_PACKAGE_AMOUNT, GROUP_PACKAGE_UNIT,
-                                       PACKAGE_AMOUNT, PACKAGE_UNIT, THEORY_AMOUNT,
-                                       MEASURE_BATCH, MEASURE_BATCH_COUNT, SENDER_TYPE,
-                                       SENDER_REMARK, RECEIVER_TYPE, RECEIVER_REMARK,
-                                       TRUST_DEPARTMENT_NAME, TRUST_DEPARTMENT, TRUSTOR,
-                                       TRUST_DATE_TIME, TRUST_AVAILABILITY_TIME,
-                                       TRUST_IP, STATION_TYPE, MEASURE_STATION,
-                                       MEASURE_STATION_NAME, AMOUNT_UNIT, TRUST_DAY
-        )
-        values (#{predictionNo,jdbcType=VARCHAR}, #{noticeNo,jdbcType=VARCHAR}, #{railwayNo,jdbcType=VARCHAR},
-                #{railwayCarriageNo,jdbcType=VARCHAR}, #{matterNo,jdbcType=VARCHAR}, #{matterName,jdbcType=VARCHAR},
-                #{contractNo,jdbcType=VARCHAR}, #{batchNo,jdbcType=VARCHAR}, #{customerSupplierNo,jdbcType=VARCHAR},
-                #{customerSupplierName,jdbcType=VARCHAR}, #{sourceArea,jdbcType=VARCHAR}, #{forwardingUnitNo,jdbcType=VARCHAR},
-                #{forwardingUnitName,jdbcType=VARCHAR}, #{receivingUintNo,jdbcType=VARCHAR}, #{receivingUintName,jdbcType=VARCHAR},
-                #{materialNo,jdbcType=VARCHAR}, #{materialName,jdbcType=VARCHAR}, #{specNo,jdbcType=VARCHAR},
-                #{specName,jdbcType=VARCHAR}, #{shipmentGrossWeight,jdbcType=DECIMAL}, #{shipmentNetWeight,jdbcType=DECIMAL},
-                #{shipmentNum,jdbcType=DECIMAL}, #{loadPointNo,jdbcType=VARCHAR}, #{loadPointName,jdbcType=VARCHAR},
-                #{sampleNo,jdbcType=VARCHAR}, #{sampleVoucher,jdbcType=VARCHAR}, #{carrierUnitNo,jdbcType=VARCHAR},
-                #{carrierUnitName,jdbcType=VARCHAR}, #{predictionType,jdbcType=VARCHAR}, #{predictionCombination,jdbcType=VARCHAR},
-                #{meterTypeNo,jdbcType=VARCHAR}, #{meterTypeName,jdbcType=VARCHAR}, #{effectiveStartTime,jdbcType=TIMESTAMP},
-                #{effectiveEndTime,jdbcType=TIMESTAMP}, #{railwayTypeNo,jdbcType=VARCHAR}, #{railwayTypeName,jdbcType=VARCHAR},
-                #{memo,jdbcType=VARCHAR}, #{valueFlag,jdbcType=VARCHAR}, #{usedTime,jdbcType=TIMESTAMP},
-                #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
-                #{updateManNo,jdbcType=VARCHAR}, #{updateManName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
-                #{deleteManNo,jdbcType=VARCHAR}, #{deleteManName,jdbcType=VARCHAR}, #{deleteTime,jdbcType=TIMESTAMP},
-                #{pValueFlag,jdbcType=VARCHAR}, #{isChemical,jdbcType=VARCHAR}, #{limitWeight,jdbcType=DECIMAL},
-                #{railwayModelNo,jdbcType=VARCHAR}, #{railwayModelName,jdbcType=VARCHAR}, #{arrival,jdbcType=VARCHAR},
-                #{station,jdbcType=VARCHAR}, #{voucherIdentity,jdbcType=VARCHAR}, #{voucherItem,jdbcType=VARCHAR},
-                #{businessGroup,jdbcType=VARCHAR}, #{tempConveyance,jdbcType=VARCHAR}, #{conveyanceType,jdbcType=VARCHAR},
-                #{resourceSystem,jdbcType=VARCHAR}, #{groupPackageAmount,jdbcType=DECIMAL}, #{groupPackageUnit,jdbcType=VARCHAR},
-                #{packageAmount,jdbcType=DECIMAL}, #{packageUnit,jdbcType=VARCHAR}, #{theoryAmount,jdbcType=DECIMAL},
-                #{measureBatch,jdbcType=VARCHAR}, #{measureBatchCount,jdbcType=DECIMAL}, #{senderType,jdbcType=VARCHAR},
-                #{senderRemark,jdbcType=VARCHAR}, #{receiverType,jdbcType=VARCHAR}, #{receiverRemark,jdbcType=VARCHAR},
-                #{trustDepartmentName,jdbcType=VARCHAR}, #{trustDepartment,jdbcType=VARCHAR}, #{trustor,jdbcType=VARCHAR},
-                #{trustDateTime,jdbcType=TIMESTAMP}, #{trustAvailabilityTime,jdbcType=TIMESTAMP},
-                #{trustIp,jdbcType=VARCHAR}, #{stationType,jdbcType=VARCHAR}, #{measureStation,jdbcType=VARCHAR},
-                #{measureStationName,jdbcType=VARCHAR}, #{amountUnit,jdbcType=VARCHAR}, #{trustDay,jdbcType=DECIMAL}
-               )
-    </insert>
-    <insert id="insertSelective" parameterType="com.steerinfo.pretrack.prerailwayscale.model.PreRailwayScale">
-        insert into PRE_RAILWAY_SCALE
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="predictionNo != null">
-                PREDICTION_NO,
-            </if>
-            <if test="noticeNo != null">
-                NOTICE_NO,
-            </if>
-            <if test="railwayNo != null">
-                RAILWAY_NO,
-            </if>
-            <if test="railwayCarriageNo != null">
-                RAILWAY_CARRIAGE_NO,
-            </if>
-            <if test="matterNo != null">
-                MATTER_NO,
-            </if>
-            <if test="matterName != null">
-                MATTER_NAME,
-            </if>
-            <if test="contractNo != null">
-                CONTRACT_NO,
-            </if>
-            <if test="batchNo != null">
-                BATCH_NO,
-            </if>
-            <if test="customerSupplierNo != null">
-                CUSTOMER_SUPPLIER_NO,
-            </if>
-            <if test="customerSupplierName != null">
-                CUSTOMER_SUPPLIER_NAME,
-            </if>
-            <if test="sourceArea != null">
-                SOURCE_AREA,
-            </if>
-            <if test="forwardingUnitNo != null">
-                FORWARDING_UNIT_NO,
-            </if>
-            <if test="forwardingUnitName != null">
-                FORWARDING_UNIT_NAME,
-            </if>
-            <if test="receivingUintNo != null">
-                RECEIVING_UINT_NO,
-            </if>
-            <if test="receivingUintName != null">
-                RECEIVING_UINT_NAME,
-            </if>
-            <if test="materialNo != null">
-                MATERIAL_NO,
-            </if>
-            <if test="materialName != null">
-                MATERIAL_NAME,
-            </if>
-            <if test="specNo != null">
-                SPEC_NO,
-            </if>
-            <if test="specName != null">
-                SPEC_NAME,
-            </if>
-            <if test="shipmentGrossWeight != null">
-                SHIPMENT_GROSS_WEIGHT,
-            </if>
-            <if test="shipmentNetWeight != null">
-                SHIPMENT_NET_WEIGHT,
-            </if>
-            <if test="shipmentNum != null">
-                SHIPMENT_NUM,
-            </if>
-            <if test="loadPointNo != null">
-                LOAD_POINT_NO,
-            </if>
-            <if test="loadPointName != null">
-                LOAD_POINT_NAME,
-            </if>
-            <if test="sampleNo != null">
-                SAMPLE_NO,
-            </if>
-            <if test="sampleVoucher != null">
-                SAMPLE_VOUCHER,
-            </if>
-            <if test="carrierUnitNo != null">
-                CARRIER_UNIT_NO,
-            </if>
-            <if test="carrierUnitName != null">
-                CARRIER_UNIT_NAME,
-            </if>
-            <if test="predictionType != null">
-                PREDICTION_TYPE,
-            </if>
-            <if test="predictionCombination != null">
-                PREDICTION_COMBINATION,
-            </if>
-            <if test="meterTypeNo != null">
-                METER_TYPE_NO,
-            </if>
-            <if test="meterTypeName != null">
-                METER_TYPE_NAME,
-            </if>
-            <if test="effectiveStartTime != null">
-                EFFECTIVE_START_TIME,
-            </if>
-            <if test="effectiveEndTime != null">
-                EFFECTIVE_END_TIME,
-            </if>
-            <if test="railwayTypeNo != null">
-                RAILWAY_TYPE_NO,
-            </if>
-            <if test="railwayTypeName != null">
-                RAILWAY_TYPE_NAME,
-            </if>
-            <if test="memo != null">
-                MEMO,
-            </if>
-            <if test="valueFlag != null">
-                VALUE_FLAG,
-            </if>
-            <if test="usedTime != null">
-                USED_TIME,
-            </if>
-            <if test="createManNo != null">
-                CREATE_MAN_NO,
-            </if>
-            <if test="createManName != null">
-                CREATE_MAN_NAME,
-            </if>
-            <if test="createTime != null">
-                CREATE_TIME,
-            </if>
-            <if test="updateManNo != null">
-                UPDATE_MAN_NO,
-            </if>
-            <if test="updateManName != null">
-                UPDATE_MAN_NAME,
-            </if>
-            <if test="updateTime != null">
-                UPDATE_TIME,
-            </if>
-            <if test="deleteManNo != null">
-                DELETE_MAN_NO,
-            </if>
-            <if test="deleteManName != null">
-                DELETE_MAN_NAME,
-            </if>
-            <if test="deleteTime != null">
-                DELETE_TIME,
-            </if>
-            <if test="pValueFlag != null">
-                P_VALUE_FLAG,
-            </if>
-            <if test="isChemical != null">
-                IS_CHEMICAL,
-            </if>
-            <if test="limitWeight != null">
-                LIMIT_WEIGHT,
-            </if>
-            <if test="railwayModelNo != null">
-                RAILWAY_MODEL_NO,
-            </if>
-            <if test="railwayModelName != null">
-                RAILWAY_MODEL_NAME,
-            </if>
-            <if test="arrival != null">
-                ARRIVAL,
-            </if>
-            <if test="station != null">
-                STATION,
-            </if>
-            <if test="voucherIdentity != null">
-                VOUCHER_IDENTITY,
-            </if>
-            <if test="voucherItem != null">
-                VOUCHER_ITEM,
-            </if>
-            <if test="businessGroup != null">
-                BUSINESS_GROUP,
-            </if>
-            <if test="tempConveyance != null">
-                TEMP_CONVEYANCE,
-            </if>
-            <if test="conveyanceType != null">
-                CONVEYANCE_TYPE,
-            </if>
-            <if test="resourceSystem != null">
-                RESOURCE_SYSTEM,
-            </if>
-            <if test="groupPackageAmount != null">
-                GROUP_PACKAGE_AMOUNT,
-            </if>
-            <if test="groupPackageUnit != null">
-                GROUP_PACKAGE_UNIT,
-            </if>
-            <if test="packageAmount != null">
-                PACKAGE_AMOUNT,
-            </if>
-            <if test="packageUnit != null">
-                PACKAGE_UNIT,
-            </if>
-            <if test="theoryAmount != null">
-                THEORY_AMOUNT,
-            </if>
-            <if test="measureBatch != null">
-                MEASURE_BATCH,
-            </if>
-            <if test="measureBatchCount != null">
-                MEASURE_BATCH_COUNT,
-            </if>
-            <if test="senderType != null">
-                SENDER_TYPE,
-            </if>
-            <if test="senderRemark != null">
-                SENDER_REMARK,
-            </if>
-            <if test="receiverType != null">
-                RECEIVER_TYPE,
-            </if>
-            <if test="receiverRemark != null">
-                RECEIVER_REMARK,
-            </if>
-            <if test="trustDepartmentName != null">
-                TRUST_DEPARTMENT_NAME,
-            </if>
-            <if test="trustDepartment != null">
-                TRUST_DEPARTMENT,
-            </if>
-            <if test="trustor != null">
-                TRUSTOR,
-            </if>
-            <if test="trustDateTime != null">
-                TRUST_DATE_TIME,
-            </if>
-            <if test="trustAvailabilityTime != null">
-                TRUST_AVAILABILITY_TIME,
-            </if>
-            <if test="trustIp != null">
-                TRUST_IP,
-            </if>
-            <if test="stationType != null">
-                STATION_TYPE,
-            </if>
-            <if test="measureStation != null">
-                MEASURE_STATION,
-            </if>
-            <if test="measureStationName != null">
-                MEASURE_STATION_NAME,
-            </if>
-            <if test="amountUnit != null">
-                AMOUNT_UNIT,
-            </if>
-            <if test="trustDay != null">
-                TRUST_DAY,
-            </if>
-        </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="predictionNo != null">
-                #{predictionNo,jdbcType=VARCHAR},
-            </if>
-            <if test="noticeNo != null">
-                #{noticeNo,jdbcType=VARCHAR},
-            </if>
-            <if test="railwayNo != null">
-                #{railwayNo,jdbcType=VARCHAR},
-            </if>
-            <if test="railwayCarriageNo != null">
-                #{railwayCarriageNo,jdbcType=VARCHAR},
-            </if>
-            <if test="matterNo != null">
-                #{matterNo,jdbcType=VARCHAR},
-            </if>
-            <if test="matterName != null">
-                #{matterName,jdbcType=VARCHAR},
-            </if>
-            <if test="contractNo != null">
-                #{contractNo,jdbcType=VARCHAR},
-            </if>
-            <if test="batchNo != null">
-                #{batchNo,jdbcType=VARCHAR},
-            </if>
-            <if test="customerSupplierNo != null">
-                #{customerSupplierNo,jdbcType=VARCHAR},
-            </if>
-            <if test="customerSupplierName != null">
-                #{customerSupplierName,jdbcType=VARCHAR},
-            </if>
-            <if test="sourceArea != null">
-                #{sourceArea,jdbcType=VARCHAR},
-            </if>
-            <if test="forwardingUnitNo != null">
-                #{forwardingUnitNo,jdbcType=VARCHAR},
-            </if>
-            <if test="forwardingUnitName != null">
-                #{forwardingUnitName,jdbcType=VARCHAR},
-            </if>
-            <if test="receivingUintNo != null">
-                #{receivingUintNo,jdbcType=VARCHAR},
-            </if>
-            <if test="receivingUintName != null">
-                #{receivingUintName,jdbcType=VARCHAR},
-            </if>
-            <if test="materialNo != null">
-                #{materialNo,jdbcType=VARCHAR},
-            </if>
-            <if test="materialName != null">
-                #{materialName,jdbcType=VARCHAR},
-            </if>
-            <if test="specNo != null">
-                #{specNo,jdbcType=VARCHAR},
-            </if>
-            <if test="specName != null">
-                #{specName,jdbcType=VARCHAR},
-            </if>
-            <if test="shipmentGrossWeight != null">
-                #{shipmentGrossWeight,jdbcType=DECIMAL},
-            </if>
-            <if test="shipmentNetWeight != null">
-                #{shipmentNetWeight,jdbcType=DECIMAL},
-            </if>
-            <if test="shipmentNum != null">
-                #{shipmentNum,jdbcType=DECIMAL},
-            </if>
-            <if test="loadPointNo != null">
-                #{loadPointNo,jdbcType=VARCHAR},
-            </if>
-            <if test="loadPointName != null">
-                #{loadPointName,jdbcType=VARCHAR},
-            </if>
-            <if test="sampleNo != null">
-                #{sampleNo,jdbcType=VARCHAR},
-            </if>
-            <if test="sampleVoucher != null">
-                #{sampleVoucher,jdbcType=VARCHAR},
-            </if>
-            <if test="carrierUnitNo != null">
-                #{carrierUnitNo,jdbcType=VARCHAR},
-            </if>
-            <if test="carrierUnitName != null">
-                #{carrierUnitName,jdbcType=VARCHAR},
-            </if>
-            <if test="predictionType != null">
-                #{predictionType,jdbcType=VARCHAR},
-            </if>
-            <if test="predictionCombination != null">
-                #{predictionCombination,jdbcType=VARCHAR},
-            </if>
-            <if test="meterTypeNo != null">
-                #{meterTypeNo,jdbcType=VARCHAR},
-            </if>
-            <if test="meterTypeName != null">
-                #{meterTypeName,jdbcType=VARCHAR},
-            </if>
-            <if test="effectiveStartTime != null">
-                #{effectiveStartTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="effectiveEndTime != null">
-                #{effectiveEndTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="railwayTypeNo != null">
-                #{railwayTypeNo,jdbcType=VARCHAR},
-            </if>
-            <if test="railwayTypeName != null">
-                #{railwayTypeName,jdbcType=VARCHAR},
-            </if>
-            <if test="memo != null">
-                #{memo,jdbcType=VARCHAR},
-            </if>
-            <if test="valueFlag != null">
-                #{valueFlag,jdbcType=VARCHAR},
-            </if>
-            <if test="usedTime != null">
-                #{usedTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="createManNo != null">
-                #{createManNo,jdbcType=VARCHAR},
-            </if>
-            <if test="createManName != null">
-                #{createManName,jdbcType=VARCHAR},
-            </if>
-            <if test="createTime != null">
-                #{createTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="updateManNo != null">
-                #{updateManNo,jdbcType=VARCHAR},
-            </if>
-            <if test="updateManName != null">
-                #{updateManName,jdbcType=VARCHAR},
-            </if>
-            <if test="updateTime != null">
-                #{updateTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="deleteManNo != null">
-                #{deleteManNo,jdbcType=VARCHAR},
-            </if>
-            <if test="deleteManName != null">
-                #{deleteManName,jdbcType=VARCHAR},
-            </if>
-            <if test="deleteTime != null">
-                #{deleteTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="pValueFlag != null">
-                #{pValueFlag,jdbcType=VARCHAR},
-            </if>
-            <if test="isChemical != null">
-                #{isChemical,jdbcType=VARCHAR},
-            </if>
-            <if test="limitWeight != null">
-                #{limitWeight,jdbcType=DECIMAL},
-            </if>
-            <if test="railwayModelNo != null">
-                #{railwayModelNo,jdbcType=VARCHAR},
-            </if>
-            <if test="railwayModelName != null">
-                #{railwayModelName,jdbcType=VARCHAR},
-            </if>
-            <if test="arrival != null">
-                #{arrival,jdbcType=VARCHAR},
-            </if>
-            <if test="station != null">
-                #{station,jdbcType=VARCHAR},
-            </if>
-            <if test="voucherIdentity != null">
-                #{voucherIdentity,jdbcType=VARCHAR},
-            </if>
-            <if test="voucherItem != null">
-                #{voucherItem,jdbcType=VARCHAR},
-            </if>
-            <if test="businessGroup != null">
-                #{businessGroup,jdbcType=VARCHAR},
-            </if>
-            <if test="tempConveyance != null">
-                #{tempConveyance,jdbcType=VARCHAR},
-            </if>
-            <if test="conveyanceType != null">
-                #{conveyanceType,jdbcType=VARCHAR},
-            </if>
-            <if test="resourceSystem != null">
-                #{resourceSystem,jdbcType=VARCHAR},
-            </if>
-            <if test="groupPackageAmount != null">
-                #{groupPackageAmount,jdbcType=DECIMAL},
-            </if>
-            <if test="groupPackageUnit != null">
-                #{groupPackageUnit,jdbcType=VARCHAR},
-            </if>
-            <if test="packageAmount != null">
-                #{packageAmount,jdbcType=DECIMAL},
-            </if>
-            <if test="packageUnit != null">
-                #{packageUnit,jdbcType=VARCHAR},
-            </if>
-            <if test="theoryAmount != null">
-                #{theoryAmount,jdbcType=DECIMAL},
-            </if>
-            <if test="measureBatch != null">
-                #{measureBatch,jdbcType=VARCHAR},
-            </if>
-            <if test="measureBatchCount != null">
-                #{measureBatchCount,jdbcType=DECIMAL},
-            </if>
-            <if test="senderType != null">
-                #{senderType,jdbcType=VARCHAR},
-            </if>
-            <if test="senderRemark != null">
-                #{senderRemark,jdbcType=VARCHAR},
-            </if>
-            <if test="receiverType != null">
-                #{receiverType,jdbcType=VARCHAR},
-            </if>
-            <if test="receiverRemark != null">
-                #{receiverRemark,jdbcType=VARCHAR},
-            </if>
-            <if test="trustDepartmentName != null">
-                #{trustDepartmentName,jdbcType=VARCHAR},
-            </if>
-            <if test="trustDepartment != null">
-                #{trustDepartment,jdbcType=VARCHAR},
-            </if>
-            <if test="trustor != null">
-                #{trustor,jdbcType=VARCHAR},
-            </if>
-            <if test="trustDateTime != null">
-                #{trustDateTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="trustAvailabilityTime != null">
-                #{trustAvailabilityTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="trustIp != null">
-                #{trustIp,jdbcType=VARCHAR},
-            </if>
-            <if test="stationType != null">
-                #{stationType,jdbcType=VARCHAR},
-            </if>
-            <if test="measureStation != null">
-                #{measureStation,jdbcType=VARCHAR},
-            </if>
-            <if test="measureStationName != null">
-                #{measureStationName,jdbcType=VARCHAR},
-            </if>
-            <if test="amountUnit != null">
-                #{amountUnit,jdbcType=VARCHAR},
-            </if>
-            <if test="trustDay != null">
-                #{trustDay,jdbcType=DECIMAL},
-            </if>
-        </trim>
-    </insert>
-    <update id="updateByPrimaryKey" parameterType="com.steerinfo.pretrack.prerailwayscale.model.PreRailwayScale">
-        update PRE_RAILWAY_SCALE
-        set NOTICE_NO = #{noticeNo,jdbcType=VARCHAR},
-            RAILWAY_NO = #{railwayNo,jdbcType=VARCHAR},
-            RAILWAY_CARRIAGE_NO = #{railwayCarriageNo,jdbcType=VARCHAR},
-            MATTER_NO = #{matterNo,jdbcType=VARCHAR},
-            MATTER_NAME = #{matterName,jdbcType=VARCHAR},
-            CONTRACT_NO = #{contractNo,jdbcType=VARCHAR},
-            BATCH_NO = #{batchNo,jdbcType=VARCHAR},
-            CUSTOMER_SUPPLIER_NO = #{customerSupplierNo,jdbcType=VARCHAR},
-            CUSTOMER_SUPPLIER_NAME = #{customerSupplierName,jdbcType=VARCHAR},
-            SOURCE_AREA = #{sourceArea,jdbcType=VARCHAR},
-            FORWARDING_UNIT_NO = #{forwardingUnitNo,jdbcType=VARCHAR},
-            FORWARDING_UNIT_NAME = #{forwardingUnitName,jdbcType=VARCHAR},
-            RECEIVING_UINT_NO = #{receivingUintNo,jdbcType=VARCHAR},
-            RECEIVING_UINT_NAME = #{receivingUintName,jdbcType=VARCHAR},
-            MATERIAL_NO = #{materialNo,jdbcType=VARCHAR},
-            MATERIAL_NAME = #{materialName,jdbcType=VARCHAR},
-            SPEC_NO = #{specNo,jdbcType=VARCHAR},
-            SPEC_NAME = #{specName,jdbcType=VARCHAR},
-            SHIPMENT_GROSS_WEIGHT = #{shipmentGrossWeight,jdbcType=DECIMAL},
-            SHIPMENT_NET_WEIGHT = #{shipmentNetWeight,jdbcType=DECIMAL},
-            SHIPMENT_NUM = #{shipmentNum,jdbcType=DECIMAL},
-            LOAD_POINT_NO = #{loadPointNo,jdbcType=VARCHAR},
-            LOAD_POINT_NAME = #{loadPointName,jdbcType=VARCHAR},
-            SAMPLE_NO = #{sampleNo,jdbcType=VARCHAR},
-            SAMPLE_VOUCHER = #{sampleVoucher,jdbcType=VARCHAR},
-            CARRIER_UNIT_NO = #{carrierUnitNo,jdbcType=VARCHAR},
-            CARRIER_UNIT_NAME = #{carrierUnitName,jdbcType=VARCHAR},
-            PREDICTION_TYPE = #{predictionType,jdbcType=VARCHAR},
-            PREDICTION_COMBINATION = #{predictionCombination,jdbcType=VARCHAR},
-            METER_TYPE_NO = #{meterTypeNo,jdbcType=VARCHAR},
-            METER_TYPE_NAME = #{meterTypeName,jdbcType=VARCHAR},
-            EFFECTIVE_START_TIME = #{effectiveStartTime,jdbcType=TIMESTAMP},
-            EFFECTIVE_END_TIME = #{effectiveEndTime,jdbcType=TIMESTAMP},
-            RAILWAY_TYPE_NO = #{railwayTypeNo,jdbcType=VARCHAR},
-            RAILWAY_TYPE_NAME = #{railwayTypeName,jdbcType=VARCHAR},
-            MEMO = #{memo,jdbcType=VARCHAR},
-            VALUE_FLAG = #{valueFlag,jdbcType=VARCHAR},
-            USED_TIME = #{usedTime,jdbcType=TIMESTAMP},
-            CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
-            CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
-            CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
-            UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
-            UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
-            UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
-            DELETE_MAN_NO = #{deleteManNo,jdbcType=VARCHAR},
-            DELETE_MAN_NAME = #{deleteManName,jdbcType=VARCHAR},
-            DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
-            P_VALUE_FLAG = #{pValueFlag,jdbcType=VARCHAR},
-            IS_CHEMICAL = #{isChemical,jdbcType=VARCHAR},
-            LIMIT_WEIGHT = #{limitWeight,jdbcType=DECIMAL},
-            RAILWAY_MODEL_NO = #{railwayModelNo,jdbcType=VARCHAR},
-            RAILWAY_MODEL_NAME = #{railwayModelName,jdbcType=VARCHAR},
-            ARRIVAL = #{arrival,jdbcType=VARCHAR},
-            STATION = #{station,jdbcType=VARCHAR},
-            VOUCHER_IDENTITY = #{voucherIdentity,jdbcType=VARCHAR},
-            VOUCHER_ITEM = #{voucherItem,jdbcType=VARCHAR},
-            BUSINESS_GROUP = #{businessGroup,jdbcType=VARCHAR},
-            TEMP_CONVEYANCE = #{tempConveyance,jdbcType=VARCHAR},
-            CONVEYANCE_TYPE = #{conveyanceType,jdbcType=VARCHAR},
-            RESOURCE_SYSTEM = #{resourceSystem,jdbcType=VARCHAR},
-            GROUP_PACKAGE_AMOUNT = #{groupPackageAmount,jdbcType=DECIMAL},
-            GROUP_PACKAGE_UNIT = #{groupPackageUnit,jdbcType=VARCHAR},
-            PACKAGE_AMOUNT = #{packageAmount,jdbcType=DECIMAL},
-            PACKAGE_UNIT = #{packageUnit,jdbcType=VARCHAR},
-            THEORY_AMOUNT = #{theoryAmount,jdbcType=DECIMAL},
-            MEASURE_BATCH = #{measureBatch,jdbcType=VARCHAR},
-            MEASURE_BATCH_COUNT = #{measureBatchCount,jdbcType=DECIMAL},
-            SENDER_TYPE = #{senderType,jdbcType=VARCHAR},
-            SENDER_REMARK = #{senderRemark,jdbcType=VARCHAR},
-            RECEIVER_TYPE = #{receiverType,jdbcType=VARCHAR},
-            RECEIVER_REMARK = #{receiverRemark,jdbcType=VARCHAR},
-            TRUST_DEPARTMENT_NAME = #{trustDepartmentName,jdbcType=VARCHAR},
-            TRUST_DEPARTMENT = #{trustDepartment,jdbcType=VARCHAR},
-            TRUSTOR = #{trustor,jdbcType=VARCHAR},
-            TRUST_DATE_TIME = #{trustDateTime,jdbcType=TIMESTAMP},
-            TRUST_AVAILABILITY_TIME = #{trustAvailabilityTime,jdbcType=TIMESTAMP},
-            TRUST_IP = #{trustIp,jdbcType=VARCHAR},
-            STATION_TYPE = #{stationType,jdbcType=VARCHAR},
-            MEASURE_STATION = #{measureStation,jdbcType=VARCHAR},
-            MEASURE_STATION_NAME = #{measureStationName,jdbcType=VARCHAR},
-            AMOUNT_UNIT = #{amountUnit,jdbcType=VARCHAR},
-            TRUST_DAY = #{trustDay,jdbcType=DECIMAL}
-        where PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR}
-    </update>
-    <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.pretrack.prerailwayscale.model.PreRailwayScale">
-        update PRE_RAILWAY_SCALE
-        <set>
-            <if test="noticeNo != null">
-                NOTICE_NO = #{noticeNo,jdbcType=VARCHAR},
-            </if>
-            <if test="railwayNo != null">
-                RAILWAY_NO = #{railwayNo,jdbcType=VARCHAR},
-            </if>
-            <if test="railwayCarriageNo != null">
-                RAILWAY_CARRIAGE_NO = #{railwayCarriageNo,jdbcType=VARCHAR},
-            </if>
-            <if test="matterNo != null">
-                MATTER_NO = #{matterNo,jdbcType=VARCHAR},
-            </if>
-            <if test="matterName != null">
-                MATTER_NAME = #{matterName,jdbcType=VARCHAR},
-            </if>
-            <if test="contractNo != null">
-                CONTRACT_NO = #{contractNo,jdbcType=VARCHAR},
-            </if>
-            <if test="batchNo != null">
-                BATCH_NO = #{batchNo,jdbcType=VARCHAR},
-            </if>
-            <if test="customerSupplierNo != null">
-                CUSTOMER_SUPPLIER_NO = #{customerSupplierNo,jdbcType=VARCHAR},
-            </if>
-            <if test="customerSupplierName != null">
-                CUSTOMER_SUPPLIER_NAME = #{customerSupplierName,jdbcType=VARCHAR},
-            </if>
-            <if test="sourceArea != null">
-                SOURCE_AREA = #{sourceArea,jdbcType=VARCHAR},
-            </if>
-            <if test="forwardingUnitNo != null">
-                FORWARDING_UNIT_NO = #{forwardingUnitNo,jdbcType=VARCHAR},
-            </if>
-            <if test="forwardingUnitName != null">
-                FORWARDING_UNIT_NAME = #{forwardingUnitName,jdbcType=VARCHAR},
-            </if>
-            <if test="receivingUintNo != null">
-                RECEIVING_UINT_NO = #{receivingUintNo,jdbcType=VARCHAR},
-            </if>
-            <if test="receivingUintName != null">
-                RECEIVING_UINT_NAME = #{receivingUintName,jdbcType=VARCHAR},
-            </if>
-            <if test="materialNo != null">
-                MATERIAL_NO = #{materialNo,jdbcType=VARCHAR},
-            </if>
-            <if test="materialName != null">
-                MATERIAL_NAME = #{materialName,jdbcType=VARCHAR},
-            </if>
-            <if test="specNo != null">
-                SPEC_NO = #{specNo,jdbcType=VARCHAR},
-            </if>
-            <if test="specName != null">
-                SPEC_NAME = #{specName,jdbcType=VARCHAR},
-            </if>
-            <if test="shipmentGrossWeight != null">
-                SHIPMENT_GROSS_WEIGHT = #{shipmentGrossWeight,jdbcType=DECIMAL},
-            </if>
-            <if test="shipmentNetWeight != null">
-                SHIPMENT_NET_WEIGHT = #{shipmentNetWeight,jdbcType=DECIMAL},
-            </if>
-            <if test="shipmentNum != null">
-                SHIPMENT_NUM = #{shipmentNum,jdbcType=DECIMAL},
-            </if>
-            <if test="loadPointNo != null">
-                LOAD_POINT_NO = #{loadPointNo,jdbcType=VARCHAR},
-            </if>
-            <if test="loadPointName != null">
-                LOAD_POINT_NAME = #{loadPointName,jdbcType=VARCHAR},
-            </if>
-            <if test="sampleNo != null">
-                SAMPLE_NO = #{sampleNo,jdbcType=VARCHAR},
-            </if>
-            <if test="sampleVoucher != null">
-                SAMPLE_VOUCHER = #{sampleVoucher,jdbcType=VARCHAR},
-            </if>
-            <if test="carrierUnitNo != null">
-                CARRIER_UNIT_NO = #{carrierUnitNo,jdbcType=VARCHAR},
-            </if>
-            <if test="carrierUnitName != null">
-                CARRIER_UNIT_NAME = #{carrierUnitName,jdbcType=VARCHAR},
-            </if>
-            <if test="predictionType != null">
-                PREDICTION_TYPE = #{predictionType,jdbcType=VARCHAR},
-            </if>
-            <if test="predictionCombination != null">
-                PREDICTION_COMBINATION = #{predictionCombination,jdbcType=VARCHAR},
-            </if>
-            <if test="meterTypeNo != null">
-                METER_TYPE_NO = #{meterTypeNo,jdbcType=VARCHAR},
-            </if>
-            <if test="meterTypeName != null">
-                METER_TYPE_NAME = #{meterTypeName,jdbcType=VARCHAR},
-            </if>
-            <if test="effectiveStartTime != null">
-                EFFECTIVE_START_TIME = #{effectiveStartTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="effectiveEndTime != null">
-                EFFECTIVE_END_TIME = #{effectiveEndTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="railwayTypeNo != null">
-                RAILWAY_TYPE_NO = #{railwayTypeNo,jdbcType=VARCHAR},
-            </if>
-            <if test="railwayTypeName != null">
-                RAILWAY_TYPE_NAME = #{railwayTypeName,jdbcType=VARCHAR},
-            </if>
-            <if test="memo != null">
-                MEMO = #{memo,jdbcType=VARCHAR},
-            </if>
-            <if test="valueFlag != null">
-                VALUE_FLAG = #{valueFlag,jdbcType=VARCHAR},
-            </if>
-            <if test="usedTime != null">
-                USED_TIME = #{usedTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="createManNo != null">
-                CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
-            </if>
-            <if test="createManName != null">
-                CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
-            </if>
-            <if test="createTime != null">
-                CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="updateManNo != null">
-                UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
-            </if>
-            <if test="updateManName != null">
-                UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
-            </if>
-            <if test="updateTime != null">
-                UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="deleteManNo != null">
-                DELETE_MAN_NO = #{deleteManNo,jdbcType=VARCHAR},
-            </if>
-            <if test="deleteManName != null">
-                DELETE_MAN_NAME = #{deleteManName,jdbcType=VARCHAR},
-            </if>
-            <if test="deleteTime != null">
-                DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="pValueFlag != null">
-                P_VALUE_FLAG = #{pValueFlag,jdbcType=VARCHAR},
-            </if>
-            <if test="isChemical != null">
-                IS_CHEMICAL = #{isChemical,jdbcType=VARCHAR},
-            </if>
-            <if test="limitWeight != null">
-                LIMIT_WEIGHT = #{limitWeight,jdbcType=DECIMAL},
-            </if>
-            <if test="railwayModelNo != null">
-                RAILWAY_MODEL_NO = #{railwayModelNo,jdbcType=VARCHAR},
-            </if>
-            <if test="railwayModelName != null">
-                RAILWAY_MODEL_NAME = #{railwayModelName,jdbcType=VARCHAR},
-            </if>
-            <if test="arrival != null">
-                ARRIVAL = #{arrival,jdbcType=VARCHAR},
-            </if>
-            <if test="station != null">
-                STATION = #{station,jdbcType=VARCHAR},
-            </if>
-            <if test="voucherIdentity != null">
-                VOUCHER_IDENTITY = #{voucherIdentity,jdbcType=VARCHAR},
-            </if>
-            <if test="voucherItem != null">
-                VOUCHER_ITEM = #{voucherItem,jdbcType=VARCHAR},
-            </if>
-            <if test="businessGroup != null">
-                BUSINESS_GROUP = #{businessGroup,jdbcType=VARCHAR},
-            </if>
-            <if test="tempConveyance != null">
-                TEMP_CONVEYANCE = #{tempConveyance,jdbcType=VARCHAR},
-            </if>
-            <if test="conveyanceType != null">
-                CONVEYANCE_TYPE = #{conveyanceType,jdbcType=VARCHAR},
-            </if>
-            <if test="resourceSystem != null">
-                RESOURCE_SYSTEM = #{resourceSystem,jdbcType=VARCHAR},
-            </if>
-            <if test="groupPackageAmount != null">
-                GROUP_PACKAGE_AMOUNT = #{groupPackageAmount,jdbcType=DECIMAL},
-            </if>
-            <if test="groupPackageUnit != null">
-                GROUP_PACKAGE_UNIT = #{groupPackageUnit,jdbcType=VARCHAR},
-            </if>
-            <if test="packageAmount != null">
-                PACKAGE_AMOUNT = #{packageAmount,jdbcType=DECIMAL},
-            </if>
-            <if test="packageUnit != null">
-                PACKAGE_UNIT = #{packageUnit,jdbcType=VARCHAR},
-            </if>
-            <if test="theoryAmount != null">
-                THEORY_AMOUNT = #{theoryAmount,jdbcType=DECIMAL},
-            </if>
-            <if test="measureBatch != null">
-                MEASURE_BATCH = #{measureBatch,jdbcType=VARCHAR},
-            </if>
-            <if test="measureBatchCount != null">
-                MEASURE_BATCH_COUNT = #{measureBatchCount,jdbcType=DECIMAL},
-            </if>
-            <if test="senderType != null">
-                SENDER_TYPE = #{senderType,jdbcType=VARCHAR},
-            </if>
-            <if test="senderRemark != null">
-                SENDER_REMARK = #{senderRemark,jdbcType=VARCHAR},
-            </if>
-            <if test="receiverType != null">
-                RECEIVER_TYPE = #{receiverType,jdbcType=VARCHAR},
-            </if>
-            <if test="receiverRemark != null">
-                RECEIVER_REMARK = #{receiverRemark,jdbcType=VARCHAR},
-            </if>
-            <if test="trustDepartmentName != null">
-                TRUST_DEPARTMENT_NAME = #{trustDepartmentName,jdbcType=VARCHAR},
-            </if>
-            <if test="trustDepartment != null">
-                TRUST_DEPARTMENT = #{trustDepartment,jdbcType=VARCHAR},
-            </if>
-            <if test="trustor != null">
-                TRUSTOR = #{trustor,jdbcType=VARCHAR},
-            </if>
-            <if test="trustDateTime != null">
-                TRUST_DATE_TIME = #{trustDateTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="trustAvailabilityTime != null">
-                TRUST_AVAILABILITY_TIME = #{trustAvailabilityTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="trustIp != null">
-                TRUST_IP = #{trustIp,jdbcType=VARCHAR},
-            </if>
-            <if test="stationType != null">
-                STATION_TYPE = #{stationType,jdbcType=VARCHAR},
-            </if>
-            <if test="measureStation != null">
-                MEASURE_STATION = #{measureStation,jdbcType=VARCHAR},
-            </if>
-            <if test="measureStationName != null">
-                MEASURE_STATION_NAME = #{measureStationName,jdbcType=VARCHAR},
-            </if>
-            <if test="amountUnit != null">
-                AMOUNT_UNIT = #{amountUnit,jdbcType=VARCHAR},
-            </if>
-            <if test="trustDay != null">
-                TRUST_DAY = #{trustDay,jdbcType=DECIMAL},
-            </if>
-        </set>
-        where PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR}
-    </update>
-    <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
-        <include refid="select"/>
-        where PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR}
-    </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 PRE_RAILWAY_SCALE
-        (PREDICTION_NO,
-        NOTICE_NO, RAILWAY_NO, RAILWAY_CARRIAGE_NO,
-        MATTER_NO, MATTER_NAME, CONTRACT_NO,
-        BATCH_NO, CUSTOMER_SUPPLIER_NO,
-        CUSTOMER_SUPPLIER_NAME, SOURCE_AREA,
-        FORWARDING_UNIT_NO, FORWARDING_UNIT_NAME,
-        RECEIVING_UINT_NO, RECEIVING_UINT_NAME,
-        MATERIAL_NO, MATERIAL_NAME, SPEC_NO,
-        SPEC_NAME, SHIPMENT_GROSS_WEIGHT,
-        SHIPMENT_NET_WEIGHT, SHIPMENT_NUM,
-        LOAD_POINT_NO, LOAD_POINT_NAME, SAMPLE_NO,
-        SAMPLE_VOUCHER, CARRIER_UNIT_NO,
-        CARRIER_UNIT_NAME, PREDICTION_TYPE,
-        PREDICTION_COMBINATION, METER_TYPE_NO,
-        METER_TYPE_NAME, EFFECTIVE_START_TIME,
-        EFFECTIVE_END_TIME, RAILWAY_TYPE_NO,
-        RAILWAY_TYPE_NAME, MEMO, VALUE_FLAG,
-        USED_TIME, CREATE_MAN_NO, CREATE_MAN_NAME,
-        CREATE_TIME, UPDATE_MAN_NO, UPDATE_MAN_NAME,
-        UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME,
-        DELETE_TIME, P_VALUE_FLAG, IS_CHEMICAL,
-        LIMIT_WEIGHT, RAILWAY_MODEL_NO,
-        RAILWAY_MODEL_NAME, ARRIVAL, STATION,
-        VOUCHER_IDENTITY, VOUCHER_ITEM,
-        BUSINESS_GROUP, TEMP_CONVEYANCE,
-        CONVEYANCE_TYPE, RESOURCE_SYSTEM,
-        GROUP_PACKAGE_AMOUNT, GROUP_PACKAGE_UNIT,
-        PACKAGE_AMOUNT, PACKAGE_UNIT, THEORY_AMOUNT,
-        MEASURE_BATCH, MEASURE_BATCH_COUNT,
-        SENDER_TYPE, SENDER_REMARK, RECEIVER_TYPE,
-        RECEIVER_REMARK, TRUST_DEPARTMENT_NAME,
-        TRUST_DEPARTMENT, TRUSTOR, TRUST_DATE_TIME,
-        TRUST_AVAILABILITY_TIME, TRUST_IP,
-        STATION_TYPE, MEASURE_STATION,
-        MEASURE_STATION_NAME, AMOUNT_UNIT,
-        TRUST_DAY)
-        ( <foreach collection="list" item="item" separator="union all">
-        select
-        #{item.predictionNo,jdbcType=VARCHAR},
-        #{item.noticeNo,jdbcType=VARCHAR}, #{item.railwayNo,jdbcType=VARCHAR}, #{item.railwayCarriageNo,jdbcType=VARCHAR},
-        #{item.matterNo,jdbcType=VARCHAR}, #{item.matterName,jdbcType=VARCHAR}, #{item.contractNo,jdbcType=VARCHAR},
-        #{item.batchNo,jdbcType=VARCHAR}, #{item.customerSupplierNo,jdbcType=VARCHAR},
-        #{item.customerSupplierName,jdbcType=VARCHAR}, #{item.sourceArea,jdbcType=VARCHAR},
-        #{item.forwardingUnitNo,jdbcType=VARCHAR}, #{item.forwardingUnitName,jdbcType=VARCHAR},
-        #{item.receivingUintNo,jdbcType=VARCHAR}, #{item.receivingUintName,jdbcType=VARCHAR},
-        #{item.materialNo,jdbcType=VARCHAR}, #{item.materialName,jdbcType=VARCHAR}, #{item.specNo,jdbcType=VARCHAR},
-        #{item.specName,jdbcType=VARCHAR}, #{item.shipmentGrossWeight,jdbcType=DECIMAL},
-        #{item.shipmentNetWeight,jdbcType=DECIMAL}, #{item.shipmentNum,jdbcType=DECIMAL},
-        #{item.loadPointNo,jdbcType=VARCHAR}, #{item.loadPointName,jdbcType=VARCHAR}, #{item.sampleNo,jdbcType=VARCHAR},
-        #{item.sampleVoucher,jdbcType=VARCHAR}, #{item.carrierUnitNo,jdbcType=VARCHAR},
-        #{item.carrierUnitName,jdbcType=VARCHAR}, #{item.predictionType,jdbcType=VARCHAR},
-        #{item.predictionCombination,jdbcType=VARCHAR}, #{item.meterTypeNo,jdbcType=VARCHAR},
-        #{item.meterTypeName,jdbcType=VARCHAR}, #{item.effectiveStartTime,jdbcType=TIMESTAMP},
-        #{item.effectiveEndTime,jdbcType=TIMESTAMP}, #{item.railwayTypeNo,jdbcType=VARCHAR},
-        #{item.railwayTypeName,jdbcType=VARCHAR}, #{item.memo,jdbcType=VARCHAR}, #{item.valueFlag,jdbcType=VARCHAR},
-        #{item.usedTime,jdbcType=TIMESTAMP}, #{item.createManNo,jdbcType=VARCHAR}, #{item.createManName,jdbcType=VARCHAR},
-        #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateManNo,jdbcType=VARCHAR}, #{item.updateManName,jdbcType=VARCHAR},
-        #{item.updateTime,jdbcType=TIMESTAMP}, #{item.deleteManNo,jdbcType=VARCHAR}, #{item.deleteManName,jdbcType=VARCHAR},
-        #{item.deleteTime,jdbcType=TIMESTAMP}, #{item.pValueFlag,jdbcType=VARCHAR}, #{item.isChemical,jdbcType=VARCHAR},
-        #{item.limitWeight,jdbcType=DECIMAL}, #{item.railwayModelNo,jdbcType=VARCHAR},
-        #{item.railwayModelName,jdbcType=VARCHAR}, #{item.arrival,jdbcType=VARCHAR}, #{item.station,jdbcType=VARCHAR},
-        #{item.voucherIdentity,jdbcType=VARCHAR}, #{item.voucherItem,jdbcType=VARCHAR},
-        #{item.businessGroup,jdbcType=VARCHAR}, #{item.tempConveyance,jdbcType=VARCHAR},
-        #{item.conveyanceType,jdbcType=VARCHAR}, #{item.resourceSystem,jdbcType=VARCHAR},
-        #{item.groupPackageAmount,jdbcType=DECIMAL}, #{item.groupPackageUnit,jdbcType=VARCHAR},
-        #{item.packageAmount,jdbcType=DECIMAL}, #{item.packageUnit,jdbcType=VARCHAR}, #{item.theoryAmount,jdbcType=DECIMAL},
-        #{item.measureBatch,jdbcType=VARCHAR}, #{item.measureBatchCount,jdbcType=DECIMAL},
-        #{item.senderType,jdbcType=VARCHAR}, #{item.senderRemark,jdbcType=VARCHAR}, #{item.receiverType,jdbcType=VARCHAR},
-        #{item.receiverRemark,jdbcType=VARCHAR}, #{item.trustDepartmentName,jdbcType=VARCHAR},
-        #{item.trustDepartment,jdbcType=VARCHAR}, #{item.trustor,jdbcType=VARCHAR}, #{item.trustDateTime,jdbcType=TIMESTAMP},
-        #{item.trustAvailabilityTime,jdbcType=TIMESTAMP}, #{item.trustIp,jdbcType=VARCHAR},
-        #{item.stationType,jdbcType=VARCHAR}, #{item.measureStation,jdbcType=VARCHAR},
-        #{item.measureStationName,jdbcType=VARCHAR}, #{item.amountUnit,jdbcType=VARCHAR},
-        #{item.trustDay,jdbcType=DECIMAL} from dual
-    </foreach> )
-    </insert>
-    <update id="batchUpdate" parameterType="java.util.List">
-        update PRE_RAILWAY_SCALE
-        set
-        PREDICTION_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.predictionNo,jdbcType=VARCHAR}
-        </foreach>
-        ,NOTICE_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.noticeNo,jdbcType=VARCHAR}
-        </foreach>
-        ,RAILWAY_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.railwayNo,jdbcType=VARCHAR}
-        </foreach>
-        ,RAILWAY_CARRIAGE_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.railwayCarriageNo,jdbcType=VARCHAR}
-        </foreach>
-        ,MATTER_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.matterNo,jdbcType=VARCHAR}
-        </foreach>
-        ,MATTER_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.matterName,jdbcType=VARCHAR}
-        </foreach>
-        ,CONTRACT_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.contractNo,jdbcType=VARCHAR}
-        </foreach>
-        ,BATCH_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.batchNo,jdbcType=VARCHAR}
-        </foreach>
-        ,CUSTOMER_SUPPLIER_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.customerSupplierNo,jdbcType=VARCHAR}
-        </foreach>
-        ,CUSTOMER_SUPPLIER_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.customerSupplierName,jdbcType=VARCHAR}
-        </foreach>
-        ,SOURCE_AREA=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.sourceArea,jdbcType=VARCHAR}
-        </foreach>
-        ,FORWARDING_UNIT_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.forwardingUnitNo,jdbcType=VARCHAR}
-        </foreach>
-        ,FORWARDING_UNIT_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.forwardingUnitName,jdbcType=VARCHAR}
-        </foreach>
-        ,RECEIVING_UINT_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.receivingUintNo,jdbcType=VARCHAR}
-        </foreach>
-        ,RECEIVING_UINT_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.receivingUintName,jdbcType=VARCHAR}
-        </foreach>
-        ,MATERIAL_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.materialNo,jdbcType=VARCHAR}
-        </foreach>
-        ,MATERIAL_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.materialName,jdbcType=VARCHAR}
-        </foreach>
-        ,SPEC_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.specNo,jdbcType=VARCHAR}
-        </foreach>
-        ,SPEC_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.specName,jdbcType=VARCHAR}
-        </foreach>
-        ,SHIPMENT_GROSS_WEIGHT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.shipmentGrossWeight,jdbcType=DECIMAL}
-        </foreach>
-        ,SHIPMENT_NET_WEIGHT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.shipmentNetWeight,jdbcType=DECIMAL}
-        </foreach>
-        ,SHIPMENT_NUM=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.shipmentNum,jdbcType=DECIMAL}
-        </foreach>
-        ,LOAD_POINT_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.loadPointNo,jdbcType=VARCHAR}
-        </foreach>
-        ,LOAD_POINT_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.loadPointName,jdbcType=VARCHAR}
-        </foreach>
-        ,SAMPLE_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.sampleNo,jdbcType=VARCHAR}
-        </foreach>
-        ,SAMPLE_VOUCHER=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.sampleVoucher,jdbcType=VARCHAR}
-        </foreach>
-        ,CARRIER_UNIT_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.carrierUnitNo,jdbcType=VARCHAR}
-        </foreach>
-        ,CARRIER_UNIT_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.carrierUnitName,jdbcType=VARCHAR}
-        </foreach>
-        ,PREDICTION_TYPE=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.predictionType,jdbcType=VARCHAR}
-        </foreach>
-        ,PREDICTION_COMBINATION=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.predictionCombination,jdbcType=VARCHAR}
-        </foreach>
-        ,METER_TYPE_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.meterTypeNo,jdbcType=VARCHAR}
-        </foreach>
-        ,METER_TYPE_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.meterTypeName,jdbcType=VARCHAR}
-        </foreach>
-        ,EFFECTIVE_START_TIME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.effectiveStartTime,jdbcType=TIMESTAMP}
-        </foreach>
-        ,EFFECTIVE_END_TIME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.effectiveEndTime,jdbcType=TIMESTAMP}
-        </foreach>
-        ,RAILWAY_TYPE_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.railwayTypeNo,jdbcType=VARCHAR}
-        </foreach>
-        ,RAILWAY_TYPE_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.railwayTypeName,jdbcType=VARCHAR}
-        </foreach>
-        ,MEMO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.memo,jdbcType=VARCHAR}
-        </foreach>
-        ,VALUE_FLAG=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.valueFlag,jdbcType=VARCHAR}
-        </foreach>
-        ,USED_TIME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.usedTime,jdbcType=TIMESTAMP}
-        </foreach>
-        ,CREATE_MAN_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
-        </foreach>
-        ,CREATE_MAN_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
-        </foreach>
-        ,CREATE_TIME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
-        </foreach>
-        ,UPDATE_MAN_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=VARCHAR}
-        </foreach>
-        ,UPDATE_MAN_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.updateManName,jdbcType=VARCHAR}
-        </foreach>
-        ,UPDATE_TIME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
-        </foreach>
-        ,DELETE_MAN_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.deleteManNo,jdbcType=VARCHAR}
-        </foreach>
-        ,DELETE_MAN_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.deleteManName,jdbcType=VARCHAR}
-        </foreach>
-        ,DELETE_TIME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.deleteTime,jdbcType=TIMESTAMP}
-        </foreach>
-        ,P_VALUE_FLAG=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.pValueFlag,jdbcType=VARCHAR}
-        </foreach>
-        ,IS_CHEMICAL=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.isChemical,jdbcType=VARCHAR}
-        </foreach>
-        ,LIMIT_WEIGHT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.limitWeight,jdbcType=DECIMAL}
-        </foreach>
-        ,RAILWAY_MODEL_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.railwayModelNo,jdbcType=VARCHAR}
-        </foreach>
-        ,RAILWAY_MODEL_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.railwayModelName,jdbcType=VARCHAR}
-        </foreach>
-        ,ARRIVAL=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.arrival,jdbcType=VARCHAR}
-        </foreach>
-        ,STATION=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.station,jdbcType=VARCHAR}
-        </foreach>
-        ,VOUCHER_IDENTITY=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.voucherIdentity,jdbcType=VARCHAR}
-        </foreach>
-        ,VOUCHER_ITEM=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.voucherItem,jdbcType=VARCHAR}
-        </foreach>
-        ,BUSINESS_GROUP=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.businessGroup,jdbcType=VARCHAR}
-        </foreach>
-        ,TEMP_CONVEYANCE=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.tempConveyance,jdbcType=VARCHAR}
-        </foreach>
-        ,CONVEYANCE_TYPE=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.conveyanceType,jdbcType=VARCHAR}
-        </foreach>
-        ,RESOURCE_SYSTEM=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.resourceSystem,jdbcType=VARCHAR}
-        </foreach>
-        ,GROUP_PACKAGE_AMOUNT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.groupPackageAmount,jdbcType=DECIMAL}
-        </foreach>
-        ,GROUP_PACKAGE_UNIT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.groupPackageUnit,jdbcType=VARCHAR}
-        </foreach>
-        ,PACKAGE_AMOUNT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.packageAmount,jdbcType=DECIMAL}
-        </foreach>
-        ,PACKAGE_UNIT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.packageUnit,jdbcType=VARCHAR}
-        </foreach>
-        ,THEORY_AMOUNT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.theoryAmount,jdbcType=DECIMAL}
-        </foreach>
-        ,MEASURE_BATCH=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.measureBatch,jdbcType=VARCHAR}
-        </foreach>
-        ,MEASURE_BATCH_COUNT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.measureBatchCount,jdbcType=DECIMAL}
-        </foreach>
-        ,SENDER_TYPE=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.senderType,jdbcType=VARCHAR}
-        </foreach>
-        ,SENDER_REMARK=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.senderRemark,jdbcType=VARCHAR}
-        </foreach>
-        ,RECEIVER_TYPE=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.receiverType,jdbcType=VARCHAR}
-        </foreach>
-        ,RECEIVER_REMARK=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.receiverRemark,jdbcType=VARCHAR}
-        </foreach>
-        ,TRUST_DEPARTMENT_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustDepartmentName,jdbcType=VARCHAR}
-        </foreach>
-        ,TRUST_DEPARTMENT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustDepartment,jdbcType=VARCHAR}
-        </foreach>
-        ,TRUSTOR=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustor,jdbcType=VARCHAR}
-        </foreach>
-        ,TRUST_DATE_TIME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustDateTime,jdbcType=TIMESTAMP}
-        </foreach>
-        ,TRUST_AVAILABILITY_TIME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustAvailabilityTime,jdbcType=TIMESTAMP}
-        </foreach>
-        ,TRUST_IP=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustIp,jdbcType=VARCHAR}
-        </foreach>
-        ,STATION_TYPE=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.stationType,jdbcType=VARCHAR}
-        </foreach>
-        ,MEASURE_STATION=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.measureStation,jdbcType=VARCHAR}
-        </foreach>
-        ,MEASURE_STATION_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.measureStationName,jdbcType=VARCHAR}
-        </foreach>
-        ,AMOUNT_UNIT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.amountUnit,jdbcType=VARCHAR}
-        </foreach>
-        ,TRUST_DAY=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustDay,jdbcType=DECIMAL}
-        </foreach>
-        where PREDICTION_NO in
-        <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
-            #{item.predictionNo,jdbcType=VARCHAR}
-        </foreach>
-    </update>
-    <delete id="batchDelete" parameterType="java.util.List">
-        delete from PRE_RAILWAY_SCALE
-        where PREDICTION_NO in
-        <foreach collection="list" item="id" open="(" close=")" separator=",">
-            #{id}
-        </foreach>
-    </delete>
-    <!-- 友情提示!!!-->
-    <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
-
+  <resultMap id="BaseResultMap" type="com.steerinfo.pretrack.prerailwayscale.model.PreRailwayScale">
+    <id column="PREDICTION_NO" jdbcType="VARCHAR" property="predictionNo" />
+    <result column="NOTICE_NO" jdbcType="VARCHAR" property="noticeNo" />
+    <result column="RAILWAY_NO" jdbcType="VARCHAR" property="railwayNo" />
+    <result column="RAILWAY_CARRIAGE_NO" jdbcType="VARCHAR" property="railwayCarriageNo" />
+    <result column="MATTER_NO" jdbcType="VARCHAR" property="matterNo" />
+    <result column="MATTER_NAME" jdbcType="VARCHAR" property="matterName" />
+    <result column="CONTRACT_NO" jdbcType="VARCHAR" property="contractNo" />
+    <result column="BATCH_NO" jdbcType="VARCHAR" property="batchNo" />
+    <result column="CUSTOMER_SUPPLIER_NO" jdbcType="VARCHAR" property="customerSupplierNo" />
+    <result column="CUSTOMER_SUPPLIER_NAME" jdbcType="VARCHAR" property="customerSupplierName" />
+    <result column="SOURCE_AREA" jdbcType="VARCHAR" property="sourceArea" />
+    <result column="FORWARDING_UNIT_NO" jdbcType="VARCHAR" property="forwardingUnitNo" />
+    <result column="FORWARDING_UNIT_NAME" jdbcType="VARCHAR" property="forwardingUnitName" />
+    <result column="RECEIVING_UINT_NO" jdbcType="VARCHAR" property="receivingUintNo" />
+    <result column="RECEIVING_UINT_NAME" jdbcType="VARCHAR" property="receivingUintName" />
+    <result column="MATERIAL_NO" jdbcType="VARCHAR" property="materialNo" />
+    <result column="MATERIAL_NAME" jdbcType="VARCHAR" property="materialName" />
+    <result column="SPEC_NO" jdbcType="VARCHAR" property="specNo" />
+    <result column="SPEC_NAME" jdbcType="VARCHAR" property="specName" />
+    <result column="SHIPMENT_GROSS_WEIGHT" jdbcType="DECIMAL" property="shipmentGrossWeight" />
+    <result column="SHIPMENT_NET_WEIGHT" jdbcType="DECIMAL" property="shipmentNetWeight" />
+    <result column="SHIPMENT_NUM" jdbcType="DECIMAL" property="shipmentNum" />
+    <result column="LOAD_POINT_NO" jdbcType="VARCHAR" property="loadPointNo" />
+    <result column="LOAD_POINT_NAME" jdbcType="VARCHAR" property="loadPointName" />
+    <result column="SAMPLE_NO" jdbcType="VARCHAR" property="sampleNo" />
+    <result column="SAMPLE_VOUCHER" jdbcType="VARCHAR" property="sampleVoucher" />
+    <result column="CARRIER_UNIT_NO" jdbcType="VARCHAR" property="carrierUnitNo" />
+    <result column="CARRIER_UNIT_NAME" jdbcType="VARCHAR" property="carrierUnitName" />
+    <result column="PREDICTION_TYPE" jdbcType="VARCHAR" property="predictionType" />
+    <result column="PREDICTION_COMBINATION" jdbcType="VARCHAR" property="predictionCombination" />
+    <result column="METER_TYPE_NO" jdbcType="VARCHAR" property="meterTypeNo" />
+    <result column="METER_TYPE_NAME" jdbcType="VARCHAR" property="meterTypeName" />
+    <result column="EFFECTIVE_START_TIME" jdbcType="TIMESTAMP" property="effectiveStartTime" />
+    <result column="EFFECTIVE_END_TIME" jdbcType="TIMESTAMP" property="effectiveEndTime" />
+    <result column="RAILWAY_TYPE_NO" jdbcType="VARCHAR" property="railwayTypeNo" />
+    <result column="RAILWAY_TYPE_NAME" jdbcType="VARCHAR" property="railwayTypeName" />
+    <result column="MEMO" jdbcType="VARCHAR" property="memo" />
+    <result column="VALUE_FLAG" jdbcType="VARCHAR" property="valueFlag" />
+    <result column="USED_TIME" jdbcType="TIMESTAMP" property="usedTime" />
+    <result column="CREATE_MAN_NO" jdbcType="VARCHAR" property="createManNo" />
+    <result column="CREATE_MAN_NAME" jdbcType="VARCHAR" property="createManName" />
+    <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
+    <result column="UPDATE_MAN_NO" jdbcType="VARCHAR" property="updateManNo" />
+    <result column="UPDATE_MAN_NAME" jdbcType="VARCHAR" property="updateManName" />
+    <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
+    <result column="DELETE_MAN_NO" jdbcType="VARCHAR" property="deleteManNo" />
+    <result column="DELETE_MAN_NAME" jdbcType="VARCHAR" property="deleteManName" />
+    <result column="DELETE_TIME" jdbcType="TIMESTAMP" property="deleteTime" />
+    <result column="P_VALUE_FLAG" jdbcType="VARCHAR" property="pValueFlag" />
+    <result column="IS_CHEMICAL" jdbcType="VARCHAR" property="isChemical" />
+    <result column="LIMIT_WEIGHT" jdbcType="DECIMAL" property="limitWeight" />
+    <result column="RAILWAY_MODEL_NO" jdbcType="VARCHAR" property="railwayModelNo" />
+    <result column="RAILWAY_MODEL_NAME" jdbcType="VARCHAR" property="railwayModelName" />
+    <result column="ARRIVAL" jdbcType="VARCHAR" property="arrival" />
+    <result column="STATION" jdbcType="VARCHAR" property="station" />
+    <result column="VOUCHER_IDENTITY" jdbcType="VARCHAR" property="voucherIdentity" />
+    <result column="VOUCHER_ITEM" jdbcType="VARCHAR" property="voucherItem" />
+    <result column="BUSINESS_GROUP" jdbcType="VARCHAR" property="businessGroup" />
+    <result column="TEMP_CONVEYANCE" jdbcType="VARCHAR" property="tempConveyance" />
+    <result column="CONVEYANCE_TYPE" jdbcType="VARCHAR" property="conveyanceType" />
+    <result column="RESOURCE_SYSTEM" jdbcType="VARCHAR" property="resourceSystem" />
+    <result column="GROUP_PACKAGE_AMOUNT" jdbcType="DECIMAL" property="groupPackageAmount" />
+    <result column="GROUP_PACKAGE_UNIT" jdbcType="VARCHAR" property="groupPackageUnit" />
+    <result column="PACKAGE_AMOUNT" jdbcType="DECIMAL" property="packageAmount" />
+    <result column="PACKAGE_UNIT" jdbcType="VARCHAR" property="packageUnit" />
+    <result column="THEORY_AMOUNT" jdbcType="DECIMAL" property="theoryAmount" />
+    <result column="MEASURE_BATCH" jdbcType="VARCHAR" property="measureBatch" />
+    <result column="MEASURE_BATCH_COUNT" jdbcType="DECIMAL" property="measureBatchCount" />
+    <result column="SENDER_TYPE" jdbcType="VARCHAR" property="senderType" />
+    <result column="SENDER_REMARK" jdbcType="VARCHAR" property="senderRemark" />
+    <result column="RECEIVER_TYPE" jdbcType="VARCHAR" property="receiverType" />
+    <result column="RECEIVER_REMARK" jdbcType="VARCHAR" property="receiverRemark" />
+    <result column="TRUST_DEPARTMENT_NAME" jdbcType="VARCHAR" property="trustDepartmentName" />
+    <result column="TRUST_DEPARTMENT" jdbcType="VARCHAR" property="trustDepartment" />
+    <result column="TRUSTOR" jdbcType="VARCHAR" property="trustor" />
+    <result column="TRUST_DATE_TIME" jdbcType="TIMESTAMP" property="trustDateTime" />
+    <result column="TRUST_AVAILABILITY_TIME" jdbcType="TIMESTAMP" property="trustAvailabilityTime" />
+    <result column="TRUST_IP" jdbcType="VARCHAR" property="trustIp" />
+    <result column="STATION_TYPE" jdbcType="VARCHAR" property="stationType" />
+    <result column="MEASURE_STATION" jdbcType="VARCHAR" property="measureStation" />
+    <result column="MEASURE_STATION_NAME" jdbcType="VARCHAR" property="measureStationName" />
+    <result column="AMOUNT_UNIT" jdbcType="VARCHAR" property="amountUnit" />
+    <result column="TRUST_DAY" jdbcType="DECIMAL" property="trustDay" />
+    <result column="CONVEYANCE_GROUP" jdbcType="VARCHAR" property="conveyanceGroup" />
+    <result column="UPLOAD_FLAG" jdbcType="VARCHAR" property="uploadFlag" />
+  </resultMap>
+  <sql id="columns">
+    PREDICTION_NO, NOTICE_NO, RAILWAY_NO, RAILWAY_CARRIAGE_NO, MATTER_NO, MATTER_NAME, 
+    CONTRACT_NO, BATCH_NO, CUSTOMER_SUPPLIER_NO, CUSTOMER_SUPPLIER_NAME, SOURCE_AREA, 
+    FORWARDING_UNIT_NO, FORWARDING_UNIT_NAME, RECEIVING_UINT_NO, RECEIVING_UINT_NAME, 
+    MATERIAL_NO, MATERIAL_NAME, SPEC_NO, SPEC_NAME, SHIPMENT_GROSS_WEIGHT, SHIPMENT_NET_WEIGHT, 
+    SHIPMENT_NUM, LOAD_POINT_NO, LOAD_POINT_NAME, SAMPLE_NO, SAMPLE_VOUCHER, CARRIER_UNIT_NO, 
+    CARRIER_UNIT_NAME, PREDICTION_TYPE, PREDICTION_COMBINATION, METER_TYPE_NO, METER_TYPE_NAME, 
+    EFFECTIVE_START_TIME, EFFECTIVE_END_TIME, RAILWAY_TYPE_NO, RAILWAY_TYPE_NAME, MEMO, 
+    VALUE_FLAG, USED_TIME, CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, UPDATE_MAN_NO, 
+    UPDATE_MAN_NAME, UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME, P_VALUE_FLAG, 
+    IS_CHEMICAL, LIMIT_WEIGHT, RAILWAY_MODEL_NO, RAILWAY_MODEL_NAME, ARRIVAL, STATION, 
+    VOUCHER_IDENTITY, VOUCHER_ITEM, BUSINESS_GROUP, TEMP_CONVEYANCE, CONVEYANCE_TYPE, 
+    RESOURCE_SYSTEM, GROUP_PACKAGE_AMOUNT, GROUP_PACKAGE_UNIT, PACKAGE_AMOUNT, PACKAGE_UNIT, 
+    THEORY_AMOUNT, MEASURE_BATCH, MEASURE_BATCH_COUNT, SENDER_TYPE, SENDER_REMARK, RECEIVER_TYPE, 
+    RECEIVER_REMARK, TRUST_DEPARTMENT_NAME, TRUST_DEPARTMENT, TRUSTOR, TRUST_DATE_TIME, 
+    TRUST_AVAILABILITY_TIME, TRUST_IP, STATION_TYPE, MEASURE_STATION, MEASURE_STATION_NAME, 
+    AMOUNT_UNIT, TRUST_DAY, CONVEYANCE_GROUP, UPLOAD_FLAG
+  </sql>
+  <sql id="columns_alias">
+    t.PREDICTION_NO, t.NOTICE_NO, t.RAILWAY_NO, t.RAILWAY_CARRIAGE_NO, t.MATTER_NO, t.MATTER_NAME, 
+    t.CONTRACT_NO, t.BATCH_NO, t.CUSTOMER_SUPPLIER_NO, t.CUSTOMER_SUPPLIER_NAME, t.SOURCE_AREA, 
+    t.FORWARDING_UNIT_NO, t.FORWARDING_UNIT_NAME, t.RECEIVING_UINT_NO, t.RECEIVING_UINT_NAME, 
+    t.MATERIAL_NO, t.MATERIAL_NAME, t.SPEC_NO, t.SPEC_NAME, t.SHIPMENT_GROSS_WEIGHT, 
+    t.SHIPMENT_NET_WEIGHT, t.SHIPMENT_NUM, t.LOAD_POINT_NO, t.LOAD_POINT_NAME, t.SAMPLE_NO, 
+    t.SAMPLE_VOUCHER, t.CARRIER_UNIT_NO, t.CARRIER_UNIT_NAME, t.PREDICTION_TYPE, t.PREDICTION_COMBINATION, 
+    t.METER_TYPE_NO, t.METER_TYPE_NAME, t.EFFECTIVE_START_TIME, t.EFFECTIVE_END_TIME, 
+    t.RAILWAY_TYPE_NO, t.RAILWAY_TYPE_NAME, t.MEMO, t.VALUE_FLAG, t.USED_TIME, t.CREATE_MAN_NO, 
+    t.CREATE_MAN_NAME, t.CREATE_TIME, t.UPDATE_MAN_NO, t.UPDATE_MAN_NAME, t.UPDATE_TIME, 
+    t.DELETE_MAN_NO, t.DELETE_MAN_NAME, t.DELETE_TIME, t.P_VALUE_FLAG, t.IS_CHEMICAL, 
+    t.LIMIT_WEIGHT, t.RAILWAY_MODEL_NO, t.RAILWAY_MODEL_NAME, t.ARRIVAL, t.STATION, t.VOUCHER_IDENTITY, 
+    t.VOUCHER_ITEM, t.BUSINESS_GROUP, t.TEMP_CONVEYANCE, t.CONVEYANCE_TYPE, t.RESOURCE_SYSTEM, 
+    t.GROUP_PACKAGE_AMOUNT, t.GROUP_PACKAGE_UNIT, t.PACKAGE_AMOUNT, t.PACKAGE_UNIT, t.THEORY_AMOUNT, 
+    t.MEASURE_BATCH, t.MEASURE_BATCH_COUNT, t.SENDER_TYPE, t.SENDER_REMARK, t.RECEIVER_TYPE, 
+    t.RECEIVER_REMARK, t.TRUST_DEPARTMENT_NAME, t.TRUST_DEPARTMENT, t.TRUSTOR, t.TRUST_DATE_TIME, 
+    t.TRUST_AVAILABILITY_TIME, t.TRUST_IP, t.STATION_TYPE, t.MEASURE_STATION, t.MEASURE_STATION_NAME, 
+    t.AMOUNT_UNIT, t.TRUST_DAY, t.CONVEYANCE_GROUP, t.UPLOAD_FLAG
+  </sql>
+  <sql id="select">
+    SELECT <include refid="columns"/> FROM PRE_RAILWAY_SCALE
+  </sql>
+  <sql id="select_alias">
+    SELECT <include refid="columns_alias"/> FROM PRE_RAILWAY_SCALE t
+  </sql>
+  <sql id="where">
+    <where> 
+      <if test="predictionNo != null and predictionNo != ''">
+        and PREDICTION_NO = #{predictionNo}
+      </if>
+      <if test="noticeNo != null and noticeNo != ''">
+        and NOTICE_NO = #{noticeNo}
+      </if>
+      <if test="railwayNo != null and railwayNo != ''">
+        and RAILWAY_NO = #{railwayNo}
+      </if>
+      <if test="railwayCarriageNo != null and railwayCarriageNo != ''">
+        and RAILWAY_CARRIAGE_NO = #{railwayCarriageNo}
+      </if>
+      <if test="matterNo != null and matterNo != ''">
+        and MATTER_NO = #{matterNo}
+      </if>
+      <if test="matterName != null and matterName != ''">
+        and MATTER_NAME = #{matterName}
+      </if>
+      <if test="contractNo != null and contractNo != ''">
+        and CONTRACT_NO = #{contractNo}
+      </if>
+      <if test="batchNo != null and batchNo != ''">
+        and BATCH_NO = #{batchNo}
+      </if>
+      <if test="customerSupplierNo != null and customerSupplierNo != ''">
+        and CUSTOMER_SUPPLIER_NO = #{customerSupplierNo}
+      </if>
+      <if test="customerSupplierName != null and customerSupplierName != ''">
+        and CUSTOMER_SUPPLIER_NAME = #{customerSupplierName}
+      </if>
+      <if test="sourceArea != null and sourceArea != ''">
+        and SOURCE_AREA = #{sourceArea}
+      </if>
+      <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
+        and FORWARDING_UNIT_NO = #{forwardingUnitNo}
+      </if>
+      <if test="forwardingUnitName != null and forwardingUnitName != ''">
+        and FORWARDING_UNIT_NAME = #{forwardingUnitName}
+      </if>
+      <if test="receivingUintNo != null and receivingUintNo != ''">
+        and RECEIVING_UINT_NO = #{receivingUintNo}
+      </if>
+      <if test="receivingUintName != null and receivingUintName != ''">
+        and RECEIVING_UINT_NAME = #{receivingUintName}
+      </if>
+      <if test="materialNo != null and materialNo != ''">
+        and MATERIAL_NO = #{materialNo}
+      </if>
+      <if test="materialName != null and materialName != ''">
+        and MATERIAL_NAME = #{materialName}
+      </if>
+      <if test="specNo != null and specNo != ''">
+        and SPEC_NO = #{specNo}
+      </if>
+      <if test="specName != null and specName != ''">
+        and SPEC_NAME = #{specName}
+      </if>
+      <if test="shipmentGrossWeight != null">
+        and SHIPMENT_GROSS_WEIGHT = #{shipmentGrossWeight}
+      </if>
+      <if test="shipmentNetWeight != null">
+        and SHIPMENT_NET_WEIGHT = #{shipmentNetWeight}
+      </if>
+      <if test="shipmentNum != null">
+        and SHIPMENT_NUM = #{shipmentNum}
+      </if>
+      <if test="loadPointNo != null and loadPointNo != ''">
+        and LOAD_POINT_NO = #{loadPointNo}
+      </if>
+      <if test="loadPointName != null and loadPointName != ''">
+        and LOAD_POINT_NAME = #{loadPointName}
+      </if>
+      <if test="sampleNo != null and sampleNo != ''">
+        and SAMPLE_NO = #{sampleNo}
+      </if>
+      <if test="sampleVoucher != null and sampleVoucher != ''">
+        and SAMPLE_VOUCHER = #{sampleVoucher}
+      </if>
+      <if test="carrierUnitNo != null and carrierUnitNo != ''">
+        and CARRIER_UNIT_NO = #{carrierUnitNo}
+      </if>
+      <if test="carrierUnitName != null and carrierUnitName != ''">
+        and CARRIER_UNIT_NAME = #{carrierUnitName}
+      </if>
+      <if test="predictionType != null and predictionType != ''">
+        and PREDICTION_TYPE = #{predictionType}
+      </if>
+      <if test="predictionCombination != null and predictionCombination != ''">
+        and PREDICTION_COMBINATION = #{predictionCombination}
+      </if>
+      <if test="meterTypeNo != null and meterTypeNo != ''">
+        and METER_TYPE_NO = #{meterTypeNo}
+      </if>
+      <if test="meterTypeName != null and meterTypeName != ''">
+        and METER_TYPE_NAME = #{meterTypeName}
+      </if>
+      <if test="effectiveStartTime != null">
+        and TO_CHAR(EFFECTIVE_START_TIME,'yyyy-MM-dd') = #{effectiveStartTime}
+      </if>
+      <if test="effectiveEndTime != null">
+        and TO_CHAR(EFFECTIVE_END_TIME,'yyyy-MM-dd') = #{effectiveEndTime}
+      </if>
+      <if test="railwayTypeNo != null and railwayTypeNo != ''">
+        and RAILWAY_TYPE_NO = #{railwayTypeNo}
+      </if>
+      <if test="railwayTypeName != null and railwayTypeName != ''">
+        and RAILWAY_TYPE_NAME = #{railwayTypeName}
+      </if>
+      <if test="memo != null and memo != ''">
+        and MEMO = #{memo}
+      </if>
+      <if test="valueFlag != null and valueFlag != ''">
+        and VALUE_FLAG = #{valueFlag}
+      </if>
+      <if test="usedTime != null">
+        and TO_CHAR(USED_TIME,'yyyy-MM-dd') = #{usedTime}
+      </if>
+      <if test="createManNo != null and createManNo != ''">
+        and CREATE_MAN_NO = #{createManNo}
+      </if>
+      <if test="createManName != null and createManName != ''">
+        and CREATE_MAN_NAME = #{createManName}
+      </if>
+      <if test="createTime != null">
+        and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
+      </if>
+      <if test="updateManNo != null and updateManNo != ''">
+        and UPDATE_MAN_NO = #{updateManNo}
+      </if>
+      <if test="updateManName != null and updateManName != ''">
+        and UPDATE_MAN_NAME = #{updateManName}
+      </if>
+      <if test="updateTime != null">
+        and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
+      </if>
+      <if test="deleteManNo != null and deleteManNo != ''">
+        and DELETE_MAN_NO = #{deleteManNo}
+      </if>
+      <if test="deleteManName != null and deleteManName != ''">
+        and DELETE_MAN_NAME = #{deleteManName}
+      </if>
+      <if test="deleteTime != null">
+        and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
+      </if>
+      <if test="pValueFlag != null and pValueFlag != ''">
+        and P_VALUE_FLAG = #{pValueFlag}
+      </if>
+      <if test="isChemical != null and isChemical != ''">
+        and IS_CHEMICAL = #{isChemical}
+      </if>
+      <if test="limitWeight != null">
+        and LIMIT_WEIGHT = #{limitWeight}
+      </if>
+      <if test="railwayModelNo != null and railwayModelNo != ''">
+        and RAILWAY_MODEL_NO = #{railwayModelNo}
+      </if>
+      <if test="railwayModelName != null and railwayModelName != ''">
+        and RAILWAY_MODEL_NAME = #{railwayModelName}
+      </if>
+      <if test="arrival != null and arrival != ''">
+        and ARRIVAL = #{arrival}
+      </if>
+      <if test="station != null and station != ''">
+        and STATION = #{station}
+      </if>
+      <if test="voucherIdentity != null and voucherIdentity != ''">
+        and VOUCHER_IDENTITY = #{voucherIdentity}
+      </if>
+      <if test="voucherItem != null and voucherItem != ''">
+        and VOUCHER_ITEM = #{voucherItem}
+      </if>
+      <if test="businessGroup != null and businessGroup != ''">
+        and BUSINESS_GROUP = #{businessGroup}
+      </if>
+      <if test="tempConveyance != null and tempConveyance != ''">
+        and TEMP_CONVEYANCE = #{tempConveyance}
+      </if>
+      <if test="conveyanceType != null and conveyanceType != ''">
+        and CONVEYANCE_TYPE = #{conveyanceType}
+      </if>
+      <if test="resourceSystem != null and resourceSystem != ''">
+        and RESOURCE_SYSTEM = #{resourceSystem}
+      </if>
+      <if test="groupPackageAmount != null">
+        and GROUP_PACKAGE_AMOUNT = #{groupPackageAmount}
+      </if>
+      <if test="groupPackageUnit != null and groupPackageUnit != ''">
+        and GROUP_PACKAGE_UNIT = #{groupPackageUnit}
+      </if>
+      <if test="packageAmount != null">
+        and PACKAGE_AMOUNT = #{packageAmount}
+      </if>
+      <if test="packageUnit != null and packageUnit != ''">
+        and PACKAGE_UNIT = #{packageUnit}
+      </if>
+      <if test="theoryAmount != null">
+        and THEORY_AMOUNT = #{theoryAmount}
+      </if>
+      <if test="measureBatch != null and measureBatch != ''">
+        and MEASURE_BATCH = #{measureBatch}
+      </if>
+      <if test="measureBatchCount != null">
+        and MEASURE_BATCH_COUNT = #{measureBatchCount}
+      </if>
+      <if test="senderType != null and senderType != ''">
+        and SENDER_TYPE = #{senderType}
+      </if>
+      <if test="senderRemark != null and senderRemark != ''">
+        and SENDER_REMARK = #{senderRemark}
+      </if>
+      <if test="receiverType != null and receiverType != ''">
+        and RECEIVER_TYPE = #{receiverType}
+      </if>
+      <if test="receiverRemark != null and receiverRemark != ''">
+        and RECEIVER_REMARK = #{receiverRemark}
+      </if>
+      <if test="trustDepartmentName != null and trustDepartmentName != ''">
+        and TRUST_DEPARTMENT_NAME = #{trustDepartmentName}
+      </if>
+      <if test="trustDepartment != null and trustDepartment != ''">
+        and TRUST_DEPARTMENT = #{trustDepartment}
+      </if>
+      <if test="trustor != null and trustor != ''">
+        and TRUSTOR = #{trustor}
+      </if>
+      <if test="trustDateTime != null">
+        and TO_CHAR(TRUST_DATE_TIME,'yyyy-MM-dd') = #{trustDateTime}
+      </if>
+      <if test="trustAvailabilityTime != null">
+        and TO_CHAR(TRUST_AVAILABILITY_TIME,'yyyy-MM-dd') = #{trustAvailabilityTime}
+      </if>
+      <if test="trustIp != null and trustIp != ''">
+        and TRUST_IP = #{trustIp}
+      </if>
+      <if test="stationType != null and stationType != ''">
+        and STATION_TYPE = #{stationType}
+      </if>
+      <if test="measureStation != null and measureStation != ''">
+        and MEASURE_STATION = #{measureStation}
+      </if>
+      <if test="measureStationName != null and measureStationName != ''">
+        and MEASURE_STATION_NAME = #{measureStationName}
+      </if>
+      <if test="amountUnit != null and amountUnit != ''">
+        and AMOUNT_UNIT = #{amountUnit}
+      </if>
+      <if test="trustDay != null">
+        and TRUST_DAY = #{trustDay}
+      </if>
+      <if test="conveyanceGroup != null and conveyanceGroup != ''">
+        and CONVEYANCE_GROUP = #{conveyanceGroup}
+      </if>
+      <if test="uploadFlag != null and uploadFlag != ''">
+        and UPLOAD_FLAG = #{uploadFlag}
+      </if>
+    </where>
+  </sql>
+  <sql id="whereLike">
+    <where> 
+      <if test="predictionNo != null and predictionNo != ''">
+        and PREDICTION_NO LIKE '%${predictionNo}%'
+      </if>
+      <if test="noticeNo != null and noticeNo != ''">
+        and NOTICE_NO LIKE '%${noticeNo}%'
+      </if>
+      <if test="railwayNo != null and railwayNo != ''">
+        and RAILWAY_NO LIKE '%${railwayNo}%'
+      </if>
+      <if test="railwayCarriageNo != null and railwayCarriageNo != ''">
+        and RAILWAY_CARRIAGE_NO LIKE '%${railwayCarriageNo}%'
+      </if>
+      <if test="matterNo != null and matterNo != ''">
+        and MATTER_NO LIKE '%${matterNo}%'
+      </if>
+      <if test="matterName != null and matterName != ''">
+        and MATTER_NAME LIKE '%${matterName}%'
+      </if>
+      <if test="contractNo != null and contractNo != ''">
+        and CONTRACT_NO LIKE '%${contractNo}%'
+      </if>
+      <if test="batchNo != null and batchNo != ''">
+        and BATCH_NO LIKE '%${batchNo}%'
+      </if>
+      <if test="customerSupplierNo != null and customerSupplierNo != ''">
+        and CUSTOMER_SUPPLIER_NO LIKE '%${customerSupplierNo}%'
+      </if>
+      <if test="customerSupplierName != null and customerSupplierName != ''">
+        and CUSTOMER_SUPPLIER_NAME LIKE '%${customerSupplierName}%'
+      </if>
+      <if test="sourceArea != null and sourceArea != ''">
+        and SOURCE_AREA LIKE '%${sourceArea}%'
+      </if>
+      <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
+        and FORWARDING_UNIT_NO LIKE '%${forwardingUnitNo}%'
+      </if>
+      <if test="forwardingUnitName != null and forwardingUnitName != ''">
+        and FORWARDING_UNIT_NAME LIKE '%${forwardingUnitName}%'
+      </if>
+      <if test="receivingUintNo != null and receivingUintNo != ''">
+        and RECEIVING_UINT_NO LIKE '%${receivingUintNo}%'
+      </if>
+      <if test="receivingUintName != null and receivingUintName != ''">
+        and RECEIVING_UINT_NAME LIKE '%${receivingUintName}%'
+      </if>
+      <if test="materialNo != null and materialNo != ''">
+        and MATERIAL_NO LIKE '%${materialNo}%'
+      </if>
+      <if test="materialName != null and materialName != ''">
+        and MATERIAL_NAME LIKE '%${materialName}%'
+      </if>
+      <if test="specNo != null and specNo != ''">
+        and SPEC_NO LIKE '%${specNo}%'
+      </if>
+      <if test="specName != null and specName != ''">
+        and SPEC_NAME LIKE '%${specName}%'
+      </if>
+      <if test="shipmentGrossWeight != null">
+        and SHIPMENT_GROSS_WEIGHT = #{shipmentGrossWeight}
+      </if>
+      <if test="shipmentNetWeight != null">
+        and SHIPMENT_NET_WEIGHT = #{shipmentNetWeight}
+      </if>
+      <if test="shipmentNum != null">
+        and SHIPMENT_NUM = #{shipmentNum}
+      </if>
+      <if test="loadPointNo != null and loadPointNo != ''">
+        and LOAD_POINT_NO LIKE '%${loadPointNo}%'
+      </if>
+      <if test="loadPointName != null and loadPointName != ''">
+        and LOAD_POINT_NAME LIKE '%${loadPointName}%'
+      </if>
+      <if test="sampleNo != null and sampleNo != ''">
+        and SAMPLE_NO LIKE '%${sampleNo}%'
+      </if>
+      <if test="sampleVoucher != null and sampleVoucher != ''">
+        and SAMPLE_VOUCHER LIKE '%${sampleVoucher}%'
+      </if>
+      <if test="carrierUnitNo != null and carrierUnitNo != ''">
+        and CARRIER_UNIT_NO LIKE '%${carrierUnitNo}%'
+      </if>
+      <if test="carrierUnitName != null and carrierUnitName != ''">
+        and CARRIER_UNIT_NAME LIKE '%${carrierUnitName}%'
+      </if>
+      <if test="predictionType != null and predictionType != ''">
+        and PREDICTION_TYPE LIKE '%${predictionType}%'
+      </if>
+      <if test="predictionCombination != null and predictionCombination != ''">
+        and PREDICTION_COMBINATION LIKE '%${predictionCombination}%'
+      </if>
+      <if test="meterTypeNo != null and meterTypeNo != ''">
+        and METER_TYPE_NO LIKE '%${meterTypeNo}%'
+      </if>
+      <if test="meterTypeName != null and meterTypeName != ''">
+        and METER_TYPE_NAME LIKE '%${meterTypeName}%'
+      </if>
+      <if test="effectiveStartTime != null">
+        and TO_CHAR(EFFECTIVE_START_TIME,'yyyy-MM-dd') = #{effectiveStartTime}
+      </if>
+      <if test="effectiveEndTime != null">
+        and TO_CHAR(EFFECTIVE_END_TIME,'yyyy-MM-dd') = #{effectiveEndTime}
+      </if>
+      <if test="railwayTypeNo != null and railwayTypeNo != ''">
+        and RAILWAY_TYPE_NO LIKE '%${railwayTypeNo}%'
+      </if>
+      <if test="railwayTypeName != null and railwayTypeName != ''">
+        and RAILWAY_TYPE_NAME LIKE '%${railwayTypeName}%'
+      </if>
+      <if test="memo != null and memo != ''">
+        and MEMO LIKE '%${memo}%'
+      </if>
+      <if test="valueFlag != null and valueFlag != ''">
+        and VALUE_FLAG LIKE '%${valueFlag}%'
+      </if>
+      <if test="usedTime != null">
+        and TO_CHAR(USED_TIME,'yyyy-MM-dd') = #{usedTime}
+      </if>
+      <if test="createManNo != null and createManNo != ''">
+        and CREATE_MAN_NO LIKE '%${createManNo}%'
+      </if>
+      <if test="createManName != null and createManName != ''">
+        and CREATE_MAN_NAME LIKE '%${createManName}%'
+      </if>
+      <if test="createTime != null">
+        and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
+      </if>
+      <if test="updateManNo != null and updateManNo != ''">
+        and UPDATE_MAN_NO LIKE '%${updateManNo}%'
+      </if>
+      <if test="updateManName != null and updateManName != ''">
+        and UPDATE_MAN_NAME LIKE '%${updateManName}%'
+      </if>
+      <if test="updateTime != null">
+        and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
+      </if>
+      <if test="deleteManNo != null and deleteManNo != ''">
+        and DELETE_MAN_NO LIKE '%${deleteManNo}%'
+      </if>
+      <if test="deleteManName != null and deleteManName != ''">
+        and DELETE_MAN_NAME LIKE '%${deleteManName}%'
+      </if>
+      <if test="deleteTime != null">
+        and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
+      </if>
+      <if test="pValueFlag != null and pValueFlag != ''">
+        and P_VALUE_FLAG LIKE '%${pValueFlag}%'
+      </if>
+      <if test="isChemical != null and isChemical != ''">
+        and IS_CHEMICAL LIKE '%${isChemical}%'
+      </if>
+      <if test="limitWeight != null">
+        and LIMIT_WEIGHT = #{limitWeight}
+      </if>
+      <if test="railwayModelNo != null and railwayModelNo != ''">
+        and RAILWAY_MODEL_NO LIKE '%${railwayModelNo}%'
+      </if>
+      <if test="railwayModelName != null and railwayModelName != ''">
+        and RAILWAY_MODEL_NAME LIKE '%${railwayModelName}%'
+      </if>
+      <if test="arrival != null and arrival != ''">
+        and ARRIVAL LIKE '%${arrival}%'
+      </if>
+      <if test="station != null and station != ''">
+        and STATION LIKE '%${station}%'
+      </if>
+      <if test="voucherIdentity != null and voucherIdentity != ''">
+        and VOUCHER_IDENTITY LIKE '%${voucherIdentity}%'
+      </if>
+      <if test="voucherItem != null and voucherItem != ''">
+        and VOUCHER_ITEM LIKE '%${voucherItem}%'
+      </if>
+      <if test="businessGroup != null and businessGroup != ''">
+        and BUSINESS_GROUP LIKE '%${businessGroup}%'
+      </if>
+      <if test="tempConveyance != null and tempConveyance != ''">
+        and TEMP_CONVEYANCE LIKE '%${tempConveyance}%'
+      </if>
+      <if test="conveyanceType != null and conveyanceType != ''">
+        and CONVEYANCE_TYPE LIKE '%${conveyanceType}%'
+      </if>
+      <if test="resourceSystem != null and resourceSystem != ''">
+        and RESOURCE_SYSTEM LIKE '%${resourceSystem}%'
+      </if>
+      <if test="groupPackageAmount != null">
+        and GROUP_PACKAGE_AMOUNT = #{groupPackageAmount}
+      </if>
+      <if test="groupPackageUnit != null and groupPackageUnit != ''">
+        and GROUP_PACKAGE_UNIT LIKE '%${groupPackageUnit}%'
+      </if>
+      <if test="packageAmount != null">
+        and PACKAGE_AMOUNT = #{packageAmount}
+      </if>
+      <if test="packageUnit != null and packageUnit != ''">
+        and PACKAGE_UNIT LIKE '%${packageUnit}%'
+      </if>
+      <if test="theoryAmount != null">
+        and THEORY_AMOUNT = #{theoryAmount}
+      </if>
+      <if test="measureBatch != null and measureBatch != ''">
+        and MEASURE_BATCH LIKE '%${measureBatch}%'
+      </if>
+      <if test="measureBatchCount != null">
+        and MEASURE_BATCH_COUNT = #{measureBatchCount}
+      </if>
+      <if test="senderType != null and senderType != ''">
+        and SENDER_TYPE LIKE '%${senderType}%'
+      </if>
+      <if test="senderRemark != null and senderRemark != ''">
+        and SENDER_REMARK LIKE '%${senderRemark}%'
+      </if>
+      <if test="receiverType != null and receiverType != ''">
+        and RECEIVER_TYPE LIKE '%${receiverType}%'
+      </if>
+      <if test="receiverRemark != null and receiverRemark != ''">
+        and RECEIVER_REMARK LIKE '%${receiverRemark}%'
+      </if>
+      <if test="trustDepartmentName != null and trustDepartmentName != ''">
+        and TRUST_DEPARTMENT_NAME LIKE '%${trustDepartmentName}%'
+      </if>
+      <if test="trustDepartment != null and trustDepartment != ''">
+        and TRUST_DEPARTMENT LIKE '%${trustDepartment}%'
+      </if>
+      <if test="trustor != null and trustor != ''">
+        and TRUSTOR LIKE '%${trustor}%'
+      </if>
+      <if test="trustDateTime != null">
+        and TO_CHAR(TRUST_DATE_TIME,'yyyy-MM-dd') = #{trustDateTime}
+      </if>
+      <if test="trustAvailabilityTime != null">
+        and TO_CHAR(TRUST_AVAILABILITY_TIME,'yyyy-MM-dd') = #{trustAvailabilityTime}
+      </if>
+      <if test="trustIp != null and trustIp != ''">
+        and TRUST_IP LIKE '%${trustIp}%'
+      </if>
+      <if test="stationType != null and stationType != ''">
+        and STATION_TYPE LIKE '%${stationType}%'
+      </if>
+      <if test="measureStation != null and measureStation != ''">
+        and MEASURE_STATION LIKE '%${measureStation}%'
+      </if>
+      <if test="measureStationName != null and measureStationName != ''">
+        and MEASURE_STATION_NAME LIKE '%${measureStationName}%'
+      </if>
+      <if test="amountUnit != null and amountUnit != ''">
+        and AMOUNT_UNIT LIKE '%${amountUnit}%'
+      </if>
+      <if test="trustDay != null">
+        and TRUST_DAY = #{trustDay}
+      </if>
+      <if test="conveyanceGroup != null and conveyanceGroup != ''">
+        and CONVEYANCE_GROUP LIKE '%${conveyanceGroup}%'
+      </if>
+      <if test="uploadFlag != null and uploadFlag != ''">
+        and UPLOAD_FLAG LIKE '%${uploadFlag}%'
+      </if>
+    </where>
+  </sql>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
+    delete from PRE_RAILWAY_SCALE
+    where PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR}
+  </delete>
+  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
+    delete from PRE_RAILWAY_SCALE
+    where 1!=1 
+      <if test="noticeNo != null and noticeNo != ''">
+        or NOTICE_NO = #{noticeNo}
+      </if>
+      <if test="railwayNo != null and railwayNo != ''">
+        or RAILWAY_NO = #{railwayNo}
+      </if>
+      <if test="railwayCarriageNo != null and railwayCarriageNo != ''">
+        or RAILWAY_CARRIAGE_NO = #{railwayCarriageNo}
+      </if>
+      <if test="matterNo != null and matterNo != ''">
+        or MATTER_NO = #{matterNo}
+      </if>
+      <if test="matterName != null and matterName != ''">
+        or MATTER_NAME = #{matterName}
+      </if>
+      <if test="contractNo != null and contractNo != ''">
+        or CONTRACT_NO = #{contractNo}
+      </if>
+      <if test="batchNo != null and batchNo != ''">
+        or BATCH_NO = #{batchNo}
+      </if>
+      <if test="customerSupplierNo != null and customerSupplierNo != ''">
+        or CUSTOMER_SUPPLIER_NO = #{customerSupplierNo}
+      </if>
+      <if test="customerSupplierName != null and customerSupplierName != ''">
+        or CUSTOMER_SUPPLIER_NAME = #{customerSupplierName}
+      </if>
+      <if test="sourceArea != null and sourceArea != ''">
+        or SOURCE_AREA = #{sourceArea}
+      </if>
+      <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
+        or FORWARDING_UNIT_NO = #{forwardingUnitNo}
+      </if>
+      <if test="forwardingUnitName != null and forwardingUnitName != ''">
+        or FORWARDING_UNIT_NAME = #{forwardingUnitName}
+      </if>
+      <if test="receivingUintNo != null and receivingUintNo != ''">
+        or RECEIVING_UINT_NO = #{receivingUintNo}
+      </if>
+      <if test="receivingUintName != null and receivingUintName != ''">
+        or RECEIVING_UINT_NAME = #{receivingUintName}
+      </if>
+      <if test="materialNo != null and materialNo != ''">
+        or MATERIAL_NO = #{materialNo}
+      </if>
+      <if test="materialName != null and materialName != ''">
+        or MATERIAL_NAME = #{materialName}
+      </if>
+      <if test="specNo != null and specNo != ''">
+        or SPEC_NO = #{specNo}
+      </if>
+      <if test="specName != null and specName != ''">
+        or SPEC_NAME = #{specName}
+      </if>
+      <if test="shipmentGrossWeight != null">
+        or SHIPMENT_GROSS_WEIGHT = #{shipmentGrossWeight}
+      </if>
+      <if test="shipmentNetWeight != null">
+        or SHIPMENT_NET_WEIGHT = #{shipmentNetWeight}
+      </if>
+      <if test="shipmentNum != null">
+        or SHIPMENT_NUM = #{shipmentNum}
+      </if>
+      <if test="loadPointNo != null and loadPointNo != ''">
+        or LOAD_POINT_NO = #{loadPointNo}
+      </if>
+      <if test="loadPointName != null and loadPointName != ''">
+        or LOAD_POINT_NAME = #{loadPointName}
+      </if>
+      <if test="sampleNo != null and sampleNo != ''">
+        or SAMPLE_NO = #{sampleNo}
+      </if>
+      <if test="sampleVoucher != null and sampleVoucher != ''">
+        or SAMPLE_VOUCHER = #{sampleVoucher}
+      </if>
+      <if test="carrierUnitNo != null and carrierUnitNo != ''">
+        or CARRIER_UNIT_NO = #{carrierUnitNo}
+      </if>
+      <if test="carrierUnitName != null and carrierUnitName != ''">
+        or CARRIER_UNIT_NAME = #{carrierUnitName}
+      </if>
+      <if test="predictionType != null and predictionType != ''">
+        or PREDICTION_TYPE = #{predictionType}
+      </if>
+      <if test="predictionCombination != null and predictionCombination != ''">
+        or PREDICTION_COMBINATION = #{predictionCombination}
+      </if>
+      <if test="meterTypeNo != null and meterTypeNo != ''">
+        or METER_TYPE_NO = #{meterTypeNo}
+      </if>
+      <if test="meterTypeName != null and meterTypeName != ''">
+        or METER_TYPE_NAME = #{meterTypeName}
+      </if>
+      <if test="effectiveStartTime != null">
+        or TO_CHAR(EFFECTIVE_START_TIME,'yyyy-MM-dd') = '#{effectiveStartTime}'
+      </if>
+      <if test="effectiveEndTime != null">
+        or TO_CHAR(EFFECTIVE_END_TIME,'yyyy-MM-dd') = '#{effectiveEndTime}'
+      </if>
+      <if test="railwayTypeNo != null and railwayTypeNo != ''">
+        or RAILWAY_TYPE_NO = #{railwayTypeNo}
+      </if>
+      <if test="railwayTypeName != null and railwayTypeName != ''">
+        or RAILWAY_TYPE_NAME = #{railwayTypeName}
+      </if>
+      <if test="memo != null and memo != ''">
+        or MEMO = #{memo}
+      </if>
+      <if test="valueFlag != null and valueFlag != ''">
+        or VALUE_FLAG = #{valueFlag}
+      </if>
+      <if test="usedTime != null">
+        or TO_CHAR(USED_TIME,'yyyy-MM-dd') = '#{usedTime}'
+      </if>
+      <if test="createManNo != null and createManNo != ''">
+        or CREATE_MAN_NO = #{createManNo}
+      </if>
+      <if test="createManName != null and createManName != ''">
+        or CREATE_MAN_NAME = #{createManName}
+      </if>
+      <if test="createTime != null">
+        or TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = '#{createTime}'
+      </if>
+      <if test="updateManNo != null and updateManNo != ''">
+        or UPDATE_MAN_NO = #{updateManNo}
+      </if>
+      <if test="updateManName != null and updateManName != ''">
+        or UPDATE_MAN_NAME = #{updateManName}
+      </if>
+      <if test="updateTime != null">
+        or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
+      </if>
+      <if test="deleteManNo != null and deleteManNo != ''">
+        or DELETE_MAN_NO = #{deleteManNo}
+      </if>
+      <if test="deleteManName != null and deleteManName != ''">
+        or DELETE_MAN_NAME = #{deleteManName}
+      </if>
+      <if test="deleteTime != null">
+        or TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = '#{deleteTime}'
+      </if>
+      <if test="pValueFlag != null and pValueFlag != ''">
+        or P_VALUE_FLAG = #{pValueFlag}
+      </if>
+      <if test="isChemical != null and isChemical != ''">
+        or IS_CHEMICAL = #{isChemical}
+      </if>
+      <if test="limitWeight != null">
+        or LIMIT_WEIGHT = #{limitWeight}
+      </if>
+      <if test="railwayModelNo != null and railwayModelNo != ''">
+        or RAILWAY_MODEL_NO = #{railwayModelNo}
+      </if>
+      <if test="railwayModelName != null and railwayModelName != ''">
+        or RAILWAY_MODEL_NAME = #{railwayModelName}
+      </if>
+      <if test="arrival != null and arrival != ''">
+        or ARRIVAL = #{arrival}
+      </if>
+      <if test="station != null and station != ''">
+        or STATION = #{station}
+      </if>
+      <if test="voucherIdentity != null and voucherIdentity != ''">
+        or VOUCHER_IDENTITY = #{voucherIdentity}
+      </if>
+      <if test="voucherItem != null and voucherItem != ''">
+        or VOUCHER_ITEM = #{voucherItem}
+      </if>
+      <if test="businessGroup != null and businessGroup != ''">
+        or BUSINESS_GROUP = #{businessGroup}
+      </if>
+      <if test="tempConveyance != null and tempConveyance != ''">
+        or TEMP_CONVEYANCE = #{tempConveyance}
+      </if>
+      <if test="conveyanceType != null and conveyanceType != ''">
+        or CONVEYANCE_TYPE = #{conveyanceType}
+      </if>
+      <if test="resourceSystem != null and resourceSystem != ''">
+        or RESOURCE_SYSTEM = #{resourceSystem}
+      </if>
+      <if test="groupPackageAmount != null">
+        or GROUP_PACKAGE_AMOUNT = #{groupPackageAmount}
+      </if>
+      <if test="groupPackageUnit != null and groupPackageUnit != ''">
+        or GROUP_PACKAGE_UNIT = #{groupPackageUnit}
+      </if>
+      <if test="packageAmount != null">
+        or PACKAGE_AMOUNT = #{packageAmount}
+      </if>
+      <if test="packageUnit != null and packageUnit != ''">
+        or PACKAGE_UNIT = #{packageUnit}
+      </if>
+      <if test="theoryAmount != null">
+        or THEORY_AMOUNT = #{theoryAmount}
+      </if>
+      <if test="measureBatch != null and measureBatch != ''">
+        or MEASURE_BATCH = #{measureBatch}
+      </if>
+      <if test="measureBatchCount != null">
+        or MEASURE_BATCH_COUNT = #{measureBatchCount}
+      </if>
+      <if test="senderType != null and senderType != ''">
+        or SENDER_TYPE = #{senderType}
+      </if>
+      <if test="senderRemark != null and senderRemark != ''">
+        or SENDER_REMARK = #{senderRemark}
+      </if>
+      <if test="receiverType != null and receiverType != ''">
+        or RECEIVER_TYPE = #{receiverType}
+      </if>
+      <if test="receiverRemark != null and receiverRemark != ''">
+        or RECEIVER_REMARK = #{receiverRemark}
+      </if>
+      <if test="trustDepartmentName != null and trustDepartmentName != ''">
+        or TRUST_DEPARTMENT_NAME = #{trustDepartmentName}
+      </if>
+      <if test="trustDepartment != null and trustDepartment != ''">
+        or TRUST_DEPARTMENT = #{trustDepartment}
+      </if>
+      <if test="trustor != null and trustor != ''">
+        or TRUSTOR = #{trustor}
+      </if>
+      <if test="trustDateTime != null">
+        or TO_CHAR(TRUST_DATE_TIME,'yyyy-MM-dd') = '#{trustDateTime}'
+      </if>
+      <if test="trustAvailabilityTime != null">
+        or TO_CHAR(TRUST_AVAILABILITY_TIME,'yyyy-MM-dd') = '#{trustAvailabilityTime}'
+      </if>
+      <if test="trustIp != null and trustIp != ''">
+        or TRUST_IP = #{trustIp}
+      </if>
+      <if test="stationType != null and stationType != ''">
+        or STATION_TYPE = #{stationType}
+      </if>
+      <if test="measureStation != null and measureStation != ''">
+        or MEASURE_STATION = #{measureStation}
+      </if>
+      <if test="measureStationName != null and measureStationName != ''">
+        or MEASURE_STATION_NAME = #{measureStationName}
+      </if>
+      <if test="amountUnit != null and amountUnit != ''">
+        or AMOUNT_UNIT = #{amountUnit}
+      </if>
+      <if test="trustDay != null">
+        or TRUST_DAY = #{trustDay}
+      </if>
+      <if test="conveyanceGroup != null and conveyanceGroup != ''">
+        or CONVEYANCE_GROUP = #{conveyanceGroup}
+      </if>
+      <if test="uploadFlag != null and uploadFlag != ''">
+        or UPLOAD_FLAG = #{uploadFlag}
+      </if>
+  </delete>
+  <insert id="insert" parameterType="com.steerinfo.pretrack.prerailwayscale.model.PreRailwayScale">
+    insert into PRE_RAILWAY_SCALE (PREDICTION_NO, NOTICE_NO, RAILWAY_NO, 
+      RAILWAY_CARRIAGE_NO, MATTER_NO, MATTER_NAME, 
+      CONTRACT_NO, BATCH_NO, CUSTOMER_SUPPLIER_NO, 
+      CUSTOMER_SUPPLIER_NAME, SOURCE_AREA, FORWARDING_UNIT_NO, 
+      FORWARDING_UNIT_NAME, RECEIVING_UINT_NO, RECEIVING_UINT_NAME, 
+      MATERIAL_NO, MATERIAL_NAME, SPEC_NO, 
+      SPEC_NAME, SHIPMENT_GROSS_WEIGHT, SHIPMENT_NET_WEIGHT, 
+      SHIPMENT_NUM, LOAD_POINT_NO, LOAD_POINT_NAME, 
+      SAMPLE_NO, SAMPLE_VOUCHER, CARRIER_UNIT_NO, 
+      CARRIER_UNIT_NAME, PREDICTION_TYPE, PREDICTION_COMBINATION, 
+      METER_TYPE_NO, METER_TYPE_NAME, EFFECTIVE_START_TIME, 
+      EFFECTIVE_END_TIME, RAILWAY_TYPE_NO, RAILWAY_TYPE_NAME, 
+      MEMO, VALUE_FLAG, USED_TIME, 
+      CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, 
+      UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME, 
+      DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME, 
+      P_VALUE_FLAG, IS_CHEMICAL, LIMIT_WEIGHT, 
+      RAILWAY_MODEL_NO, RAILWAY_MODEL_NAME, ARRIVAL, 
+      STATION, VOUCHER_IDENTITY, VOUCHER_ITEM, 
+      BUSINESS_GROUP, TEMP_CONVEYANCE, CONVEYANCE_TYPE, 
+      RESOURCE_SYSTEM, GROUP_PACKAGE_AMOUNT, GROUP_PACKAGE_UNIT, 
+      PACKAGE_AMOUNT, PACKAGE_UNIT, THEORY_AMOUNT, 
+      MEASURE_BATCH, MEASURE_BATCH_COUNT, SENDER_TYPE, 
+      SENDER_REMARK, RECEIVER_TYPE, RECEIVER_REMARK, 
+      TRUST_DEPARTMENT_NAME, TRUST_DEPARTMENT, TRUSTOR, 
+      TRUST_DATE_TIME, TRUST_AVAILABILITY_TIME, 
+      TRUST_IP, STATION_TYPE, MEASURE_STATION, 
+      MEASURE_STATION_NAME, AMOUNT_UNIT, TRUST_DAY, 
+      CONVEYANCE_GROUP, UPLOAD_FLAG)
+    values (#{predictionNo,jdbcType=VARCHAR}, #{noticeNo,jdbcType=VARCHAR}, #{railwayNo,jdbcType=VARCHAR}, 
+      #{railwayCarriageNo,jdbcType=VARCHAR}, #{matterNo,jdbcType=VARCHAR}, #{matterName,jdbcType=VARCHAR}, 
+      #{contractNo,jdbcType=VARCHAR}, #{batchNo,jdbcType=VARCHAR}, #{customerSupplierNo,jdbcType=VARCHAR}, 
+      #{customerSupplierName,jdbcType=VARCHAR}, #{sourceArea,jdbcType=VARCHAR}, #{forwardingUnitNo,jdbcType=VARCHAR}, 
+      #{forwardingUnitName,jdbcType=VARCHAR}, #{receivingUintNo,jdbcType=VARCHAR}, #{receivingUintName,jdbcType=VARCHAR}, 
+      #{materialNo,jdbcType=VARCHAR}, #{materialName,jdbcType=VARCHAR}, #{specNo,jdbcType=VARCHAR}, 
+      #{specName,jdbcType=VARCHAR}, #{shipmentGrossWeight,jdbcType=DECIMAL}, #{shipmentNetWeight,jdbcType=DECIMAL}, 
+      #{shipmentNum,jdbcType=DECIMAL}, #{loadPointNo,jdbcType=VARCHAR}, #{loadPointName,jdbcType=VARCHAR}, 
+      #{sampleNo,jdbcType=VARCHAR}, #{sampleVoucher,jdbcType=VARCHAR}, #{carrierUnitNo,jdbcType=VARCHAR}, 
+      #{carrierUnitName,jdbcType=VARCHAR}, #{predictionType,jdbcType=VARCHAR}, #{predictionCombination,jdbcType=VARCHAR}, 
+      #{meterTypeNo,jdbcType=VARCHAR}, #{meterTypeName,jdbcType=VARCHAR}, #{effectiveStartTime,jdbcType=TIMESTAMP}, 
+      #{effectiveEndTime,jdbcType=TIMESTAMP}, #{railwayTypeNo,jdbcType=VARCHAR}, #{railwayTypeName,jdbcType=VARCHAR}, 
+      #{memo,jdbcType=VARCHAR}, #{valueFlag,jdbcType=VARCHAR}, #{usedTime,jdbcType=TIMESTAMP}, 
+      #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, 
+      #{updateManNo,jdbcType=VARCHAR}, #{updateManName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, 
+      #{deleteManNo,jdbcType=VARCHAR}, #{deleteManName,jdbcType=VARCHAR}, #{deleteTime,jdbcType=TIMESTAMP}, 
+      #{pValueFlag,jdbcType=VARCHAR}, #{isChemical,jdbcType=VARCHAR}, #{limitWeight,jdbcType=DECIMAL}, 
+      #{railwayModelNo,jdbcType=VARCHAR}, #{railwayModelName,jdbcType=VARCHAR}, #{arrival,jdbcType=VARCHAR}, 
+      #{station,jdbcType=VARCHAR}, #{voucherIdentity,jdbcType=VARCHAR}, #{voucherItem,jdbcType=VARCHAR}, 
+      #{businessGroup,jdbcType=VARCHAR}, #{tempConveyance,jdbcType=VARCHAR}, #{conveyanceType,jdbcType=VARCHAR}, 
+      #{resourceSystem,jdbcType=VARCHAR}, #{groupPackageAmount,jdbcType=DECIMAL}, #{groupPackageUnit,jdbcType=VARCHAR}, 
+      #{packageAmount,jdbcType=DECIMAL}, #{packageUnit,jdbcType=VARCHAR}, #{theoryAmount,jdbcType=DECIMAL}, 
+      #{measureBatch,jdbcType=VARCHAR}, #{measureBatchCount,jdbcType=DECIMAL}, #{senderType,jdbcType=VARCHAR}, 
+      #{senderRemark,jdbcType=VARCHAR}, #{receiverType,jdbcType=VARCHAR}, #{receiverRemark,jdbcType=VARCHAR}, 
+      #{trustDepartmentName,jdbcType=VARCHAR}, #{trustDepartment,jdbcType=VARCHAR}, #{trustor,jdbcType=VARCHAR}, 
+      #{trustDateTime,jdbcType=TIMESTAMP}, #{trustAvailabilityTime,jdbcType=TIMESTAMP}, 
+      #{trustIp,jdbcType=VARCHAR}, #{stationType,jdbcType=VARCHAR}, #{measureStation,jdbcType=VARCHAR}, 
+      #{measureStationName,jdbcType=VARCHAR}, #{amountUnit,jdbcType=VARCHAR}, #{trustDay,jdbcType=DECIMAL}, 
+      #{conveyanceGroup,jdbcType=VARCHAR}, #{uploadFlag,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.steerinfo.pretrack.prerailwayscale.model.PreRailwayScale">
+    insert into PRE_RAILWAY_SCALE
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="predictionNo != null">
+        PREDICTION_NO,
+      </if>
+      <if test="noticeNo != null">
+        NOTICE_NO,
+      </if>
+      <if test="railwayNo != null">
+        RAILWAY_NO,
+      </if>
+      <if test="railwayCarriageNo != null">
+        RAILWAY_CARRIAGE_NO,
+      </if>
+      <if test="matterNo != null">
+        MATTER_NO,
+      </if>
+      <if test="matterName != null">
+        MATTER_NAME,
+      </if>
+      <if test="contractNo != null">
+        CONTRACT_NO,
+      </if>
+      <if test="batchNo != null">
+        BATCH_NO,
+      </if>
+      <if test="customerSupplierNo != null">
+        CUSTOMER_SUPPLIER_NO,
+      </if>
+      <if test="customerSupplierName != null">
+        CUSTOMER_SUPPLIER_NAME,
+      </if>
+      <if test="sourceArea != null">
+        SOURCE_AREA,
+      </if>
+      <if test="forwardingUnitNo != null">
+        FORWARDING_UNIT_NO,
+      </if>
+      <if test="forwardingUnitName != null">
+        FORWARDING_UNIT_NAME,
+      </if>
+      <if test="receivingUintNo != null">
+        RECEIVING_UINT_NO,
+      </if>
+      <if test="receivingUintName != null">
+        RECEIVING_UINT_NAME,
+      </if>
+      <if test="materialNo != null">
+        MATERIAL_NO,
+      </if>
+      <if test="materialName != null">
+        MATERIAL_NAME,
+      </if>
+      <if test="specNo != null">
+        SPEC_NO,
+      </if>
+      <if test="specName != null">
+        SPEC_NAME,
+      </if>
+      <if test="shipmentGrossWeight != null">
+        SHIPMENT_GROSS_WEIGHT,
+      </if>
+      <if test="shipmentNetWeight != null">
+        SHIPMENT_NET_WEIGHT,
+      </if>
+      <if test="shipmentNum != null">
+        SHIPMENT_NUM,
+      </if>
+      <if test="loadPointNo != null">
+        LOAD_POINT_NO,
+      </if>
+      <if test="loadPointName != null">
+        LOAD_POINT_NAME,
+      </if>
+      <if test="sampleNo != null">
+        SAMPLE_NO,
+      </if>
+      <if test="sampleVoucher != null">
+        SAMPLE_VOUCHER,
+      </if>
+      <if test="carrierUnitNo != null">
+        CARRIER_UNIT_NO,
+      </if>
+      <if test="carrierUnitName != null">
+        CARRIER_UNIT_NAME,
+      </if>
+      <if test="predictionType != null">
+        PREDICTION_TYPE,
+      </if>
+      <if test="predictionCombination != null">
+        PREDICTION_COMBINATION,
+      </if>
+      <if test="meterTypeNo != null">
+        METER_TYPE_NO,
+      </if>
+      <if test="meterTypeName != null">
+        METER_TYPE_NAME,
+      </if>
+      <if test="effectiveStartTime != null">
+        EFFECTIVE_START_TIME,
+      </if>
+      <if test="effectiveEndTime != null">
+        EFFECTIVE_END_TIME,
+      </if>
+      <if test="railwayTypeNo != null">
+        RAILWAY_TYPE_NO,
+      </if>
+      <if test="railwayTypeName != null">
+        RAILWAY_TYPE_NAME,
+      </if>
+      <if test="memo != null">
+        MEMO,
+      </if>
+      <if test="valueFlag != null">
+        VALUE_FLAG,
+      </if>
+      <if test="usedTime != null">
+        USED_TIME,
+      </if>
+      <if test="createManNo != null">
+        CREATE_MAN_NO,
+      </if>
+      <if test="createManName != null">
+        CREATE_MAN_NAME,
+      </if>
+      <if test="createTime != null">
+        CREATE_TIME,
+      </if>
+      <if test="updateManNo != null">
+        UPDATE_MAN_NO,
+      </if>
+      <if test="updateManName != null">
+        UPDATE_MAN_NAME,
+      </if>
+      <if test="updateTime != null">
+        UPDATE_TIME,
+      </if>
+      <if test="deleteManNo != null">
+        DELETE_MAN_NO,
+      </if>
+      <if test="deleteManName != null">
+        DELETE_MAN_NAME,
+      </if>
+      <if test="deleteTime != null">
+        DELETE_TIME,
+      </if>
+      <if test="pValueFlag != null">
+        P_VALUE_FLAG,
+      </if>
+      <if test="isChemical != null">
+        IS_CHEMICAL,
+      </if>
+      <if test="limitWeight != null">
+        LIMIT_WEIGHT,
+      </if>
+      <if test="railwayModelNo != null">
+        RAILWAY_MODEL_NO,
+      </if>
+      <if test="railwayModelName != null">
+        RAILWAY_MODEL_NAME,
+      </if>
+      <if test="arrival != null">
+        ARRIVAL,
+      </if>
+      <if test="station != null">
+        STATION,
+      </if>
+      <if test="voucherIdentity != null">
+        VOUCHER_IDENTITY,
+      </if>
+      <if test="voucherItem != null">
+        VOUCHER_ITEM,
+      </if>
+      <if test="businessGroup != null">
+        BUSINESS_GROUP,
+      </if>
+      <if test="tempConveyance != null">
+        TEMP_CONVEYANCE,
+      </if>
+      <if test="conveyanceType != null">
+        CONVEYANCE_TYPE,
+      </if>
+      <if test="resourceSystem != null">
+        RESOURCE_SYSTEM,
+      </if>
+      <if test="groupPackageAmount != null">
+        GROUP_PACKAGE_AMOUNT,
+      </if>
+      <if test="groupPackageUnit != null">
+        GROUP_PACKAGE_UNIT,
+      </if>
+      <if test="packageAmount != null">
+        PACKAGE_AMOUNT,
+      </if>
+      <if test="packageUnit != null">
+        PACKAGE_UNIT,
+      </if>
+      <if test="theoryAmount != null">
+        THEORY_AMOUNT,
+      </if>
+      <if test="measureBatch != null">
+        MEASURE_BATCH,
+      </if>
+      <if test="measureBatchCount != null">
+        MEASURE_BATCH_COUNT,
+      </if>
+      <if test="senderType != null">
+        SENDER_TYPE,
+      </if>
+      <if test="senderRemark != null">
+        SENDER_REMARK,
+      </if>
+      <if test="receiverType != null">
+        RECEIVER_TYPE,
+      </if>
+      <if test="receiverRemark != null">
+        RECEIVER_REMARK,
+      </if>
+      <if test="trustDepartmentName != null">
+        TRUST_DEPARTMENT_NAME,
+      </if>
+      <if test="trustDepartment != null">
+        TRUST_DEPARTMENT,
+      </if>
+      <if test="trustor != null">
+        TRUSTOR,
+      </if>
+      <if test="trustDateTime != null">
+        TRUST_DATE_TIME,
+      </if>
+      <if test="trustAvailabilityTime != null">
+        TRUST_AVAILABILITY_TIME,
+      </if>
+      <if test="trustIp != null">
+        TRUST_IP,
+      </if>
+      <if test="stationType != null">
+        STATION_TYPE,
+      </if>
+      <if test="measureStation != null">
+        MEASURE_STATION,
+      </if>
+      <if test="measureStationName != null">
+        MEASURE_STATION_NAME,
+      </if>
+      <if test="amountUnit != null">
+        AMOUNT_UNIT,
+      </if>
+      <if test="trustDay != null">
+        TRUST_DAY,
+      </if>
+      <if test="conveyanceGroup != null">
+        CONVEYANCE_GROUP,
+      </if>
+      <if test="uploadFlag != null">
+        UPLOAD_FLAG,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="predictionNo != null">
+        #{predictionNo,jdbcType=VARCHAR},
+      </if>
+      <if test="noticeNo != null">
+        #{noticeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayNo != null">
+        #{railwayNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayCarriageNo != null">
+        #{railwayCarriageNo,jdbcType=VARCHAR},
+      </if>
+      <if test="matterNo != null">
+        #{matterNo,jdbcType=VARCHAR},
+      </if>
+      <if test="matterName != null">
+        #{matterName,jdbcType=VARCHAR},
+      </if>
+      <if test="contractNo != null">
+        #{contractNo,jdbcType=VARCHAR},
+      </if>
+      <if test="batchNo != null">
+        #{batchNo,jdbcType=VARCHAR},
+      </if>
+      <if test="customerSupplierNo != null">
+        #{customerSupplierNo,jdbcType=VARCHAR},
+      </if>
+      <if test="customerSupplierName != null">
+        #{customerSupplierName,jdbcType=VARCHAR},
+      </if>
+      <if test="sourceArea != null">
+        #{sourceArea,jdbcType=VARCHAR},
+      </if>
+      <if test="forwardingUnitNo != null">
+        #{forwardingUnitNo,jdbcType=VARCHAR},
+      </if>
+      <if test="forwardingUnitName != null">
+        #{forwardingUnitName,jdbcType=VARCHAR},
+      </if>
+      <if test="receivingUintNo != null">
+        #{receivingUintNo,jdbcType=VARCHAR},
+      </if>
+      <if test="receivingUintName != null">
+        #{receivingUintName,jdbcType=VARCHAR},
+      </if>
+      <if test="materialNo != null">
+        #{materialNo,jdbcType=VARCHAR},
+      </if>
+      <if test="materialName != null">
+        #{materialName,jdbcType=VARCHAR},
+      </if>
+      <if test="specNo != null">
+        #{specNo,jdbcType=VARCHAR},
+      </if>
+      <if test="specName != null">
+        #{specName,jdbcType=VARCHAR},
+      </if>
+      <if test="shipmentGrossWeight != null">
+        #{shipmentGrossWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="shipmentNetWeight != null">
+        #{shipmentNetWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="shipmentNum != null">
+        #{shipmentNum,jdbcType=DECIMAL},
+      </if>
+      <if test="loadPointNo != null">
+        #{loadPointNo,jdbcType=VARCHAR},
+      </if>
+      <if test="loadPointName != null">
+        #{loadPointName,jdbcType=VARCHAR},
+      </if>
+      <if test="sampleNo != null">
+        #{sampleNo,jdbcType=VARCHAR},
+      </if>
+      <if test="sampleVoucher != null">
+        #{sampleVoucher,jdbcType=VARCHAR},
+      </if>
+      <if test="carrierUnitNo != null">
+        #{carrierUnitNo,jdbcType=VARCHAR},
+      </if>
+      <if test="carrierUnitName != null">
+        #{carrierUnitName,jdbcType=VARCHAR},
+      </if>
+      <if test="predictionType != null">
+        #{predictionType,jdbcType=VARCHAR},
+      </if>
+      <if test="predictionCombination != null">
+        #{predictionCombination,jdbcType=VARCHAR},
+      </if>
+      <if test="meterTypeNo != null">
+        #{meterTypeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="meterTypeName != null">
+        #{meterTypeName,jdbcType=VARCHAR},
+      </if>
+      <if test="effectiveStartTime != null">
+        #{effectiveStartTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="effectiveEndTime != null">
+        #{effectiveEndTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="railwayTypeNo != null">
+        #{railwayTypeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayTypeName != null">
+        #{railwayTypeName,jdbcType=VARCHAR},
+      </if>
+      <if test="memo != null">
+        #{memo,jdbcType=VARCHAR},
+      </if>
+      <if test="valueFlag != null">
+        #{valueFlag,jdbcType=VARCHAR},
+      </if>
+      <if test="usedTime != null">
+        #{usedTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="createManNo != null">
+        #{createManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="createManName != null">
+        #{createManName,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateManNo != null">
+        #{updateManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="updateManName != null">
+        #{updateManName,jdbcType=VARCHAR},
+      </if>
+      <if test="updateTime != null">
+        #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="deleteManNo != null">
+        #{deleteManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="deleteManName != null">
+        #{deleteManName,jdbcType=VARCHAR},
+      </if>
+      <if test="deleteTime != null">
+        #{deleteTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="pValueFlag != null">
+        #{pValueFlag,jdbcType=VARCHAR},
+      </if>
+      <if test="isChemical != null">
+        #{isChemical,jdbcType=VARCHAR},
+      </if>
+      <if test="limitWeight != null">
+        #{limitWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="railwayModelNo != null">
+        #{railwayModelNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayModelName != null">
+        #{railwayModelName,jdbcType=VARCHAR},
+      </if>
+      <if test="arrival != null">
+        #{arrival,jdbcType=VARCHAR},
+      </if>
+      <if test="station != null">
+        #{station,jdbcType=VARCHAR},
+      </if>
+      <if test="voucherIdentity != null">
+        #{voucherIdentity,jdbcType=VARCHAR},
+      </if>
+      <if test="voucherItem != null">
+        #{voucherItem,jdbcType=VARCHAR},
+      </if>
+      <if test="businessGroup != null">
+        #{businessGroup,jdbcType=VARCHAR},
+      </if>
+      <if test="tempConveyance != null">
+        #{tempConveyance,jdbcType=VARCHAR},
+      </if>
+      <if test="conveyanceType != null">
+        #{conveyanceType,jdbcType=VARCHAR},
+      </if>
+      <if test="resourceSystem != null">
+        #{resourceSystem,jdbcType=VARCHAR},
+      </if>
+      <if test="groupPackageAmount != null">
+        #{groupPackageAmount,jdbcType=DECIMAL},
+      </if>
+      <if test="groupPackageUnit != null">
+        #{groupPackageUnit,jdbcType=VARCHAR},
+      </if>
+      <if test="packageAmount != null">
+        #{packageAmount,jdbcType=DECIMAL},
+      </if>
+      <if test="packageUnit != null">
+        #{packageUnit,jdbcType=VARCHAR},
+      </if>
+      <if test="theoryAmount != null">
+        #{theoryAmount,jdbcType=DECIMAL},
+      </if>
+      <if test="measureBatch != null">
+        #{measureBatch,jdbcType=VARCHAR},
+      </if>
+      <if test="measureBatchCount != null">
+        #{measureBatchCount,jdbcType=DECIMAL},
+      </if>
+      <if test="senderType != null">
+        #{senderType,jdbcType=VARCHAR},
+      </if>
+      <if test="senderRemark != null">
+        #{senderRemark,jdbcType=VARCHAR},
+      </if>
+      <if test="receiverType != null">
+        #{receiverType,jdbcType=VARCHAR},
+      </if>
+      <if test="receiverRemark != null">
+        #{receiverRemark,jdbcType=VARCHAR},
+      </if>
+      <if test="trustDepartmentName != null">
+        #{trustDepartmentName,jdbcType=VARCHAR},
+      </if>
+      <if test="trustDepartment != null">
+        #{trustDepartment,jdbcType=VARCHAR},
+      </if>
+      <if test="trustor != null">
+        #{trustor,jdbcType=VARCHAR},
+      </if>
+      <if test="trustDateTime != null">
+        #{trustDateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="trustAvailabilityTime != null">
+        #{trustAvailabilityTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="trustIp != null">
+        #{trustIp,jdbcType=VARCHAR},
+      </if>
+      <if test="stationType != null">
+        #{stationType,jdbcType=VARCHAR},
+      </if>
+      <if test="measureStation != null">
+        #{measureStation,jdbcType=VARCHAR},
+      </if>
+      <if test="measureStationName != null">
+        #{measureStationName,jdbcType=VARCHAR},
+      </if>
+      <if test="amountUnit != null">
+        #{amountUnit,jdbcType=VARCHAR},
+      </if>
+      <if test="trustDay != null">
+        #{trustDay,jdbcType=DECIMAL},
+      </if>
+      <if test="conveyanceGroup != null">
+        #{conveyanceGroup,jdbcType=VARCHAR},
+      </if>
+      <if test="uploadFlag != null">
+        #{uploadFlag,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKey" parameterType="com.steerinfo.pretrack.prerailwayscale.model.PreRailwayScale">
+    update PRE_RAILWAY_SCALE
+    set NOTICE_NO = #{noticeNo,jdbcType=VARCHAR},
+      RAILWAY_NO = #{railwayNo,jdbcType=VARCHAR},
+      RAILWAY_CARRIAGE_NO = #{railwayCarriageNo,jdbcType=VARCHAR},
+      MATTER_NO = #{matterNo,jdbcType=VARCHAR},
+      MATTER_NAME = #{matterName,jdbcType=VARCHAR},
+      CONTRACT_NO = #{contractNo,jdbcType=VARCHAR},
+      BATCH_NO = #{batchNo,jdbcType=VARCHAR},
+      CUSTOMER_SUPPLIER_NO = #{customerSupplierNo,jdbcType=VARCHAR},
+      CUSTOMER_SUPPLIER_NAME = #{customerSupplierName,jdbcType=VARCHAR},
+      SOURCE_AREA = #{sourceArea,jdbcType=VARCHAR},
+      FORWARDING_UNIT_NO = #{forwardingUnitNo,jdbcType=VARCHAR},
+      FORWARDING_UNIT_NAME = #{forwardingUnitName,jdbcType=VARCHAR},
+      RECEIVING_UINT_NO = #{receivingUintNo,jdbcType=VARCHAR},
+      RECEIVING_UINT_NAME = #{receivingUintName,jdbcType=VARCHAR},
+      MATERIAL_NO = #{materialNo,jdbcType=VARCHAR},
+      MATERIAL_NAME = #{materialName,jdbcType=VARCHAR},
+      SPEC_NO = #{specNo,jdbcType=VARCHAR},
+      SPEC_NAME = #{specName,jdbcType=VARCHAR},
+      SHIPMENT_GROSS_WEIGHT = #{shipmentGrossWeight,jdbcType=DECIMAL},
+      SHIPMENT_NET_WEIGHT = #{shipmentNetWeight,jdbcType=DECIMAL},
+      SHIPMENT_NUM = #{shipmentNum,jdbcType=DECIMAL},
+      LOAD_POINT_NO = #{loadPointNo,jdbcType=VARCHAR},
+      LOAD_POINT_NAME = #{loadPointName,jdbcType=VARCHAR},
+      SAMPLE_NO = #{sampleNo,jdbcType=VARCHAR},
+      SAMPLE_VOUCHER = #{sampleVoucher,jdbcType=VARCHAR},
+      CARRIER_UNIT_NO = #{carrierUnitNo,jdbcType=VARCHAR},
+      CARRIER_UNIT_NAME = #{carrierUnitName,jdbcType=VARCHAR},
+      PREDICTION_TYPE = #{predictionType,jdbcType=VARCHAR},
+      PREDICTION_COMBINATION = #{predictionCombination,jdbcType=VARCHAR},
+      METER_TYPE_NO = #{meterTypeNo,jdbcType=VARCHAR},
+      METER_TYPE_NAME = #{meterTypeName,jdbcType=VARCHAR},
+      EFFECTIVE_START_TIME = #{effectiveStartTime,jdbcType=TIMESTAMP},
+      EFFECTIVE_END_TIME = #{effectiveEndTime,jdbcType=TIMESTAMP},
+      RAILWAY_TYPE_NO = #{railwayTypeNo,jdbcType=VARCHAR},
+      RAILWAY_TYPE_NAME = #{railwayTypeName,jdbcType=VARCHAR},
+      MEMO = #{memo,jdbcType=VARCHAR},
+      VALUE_FLAG = #{valueFlag,jdbcType=VARCHAR},
+      USED_TIME = #{usedTime,jdbcType=TIMESTAMP},
+      CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
+      CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
+      CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
+      UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
+      UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
+      UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
+      DELETE_MAN_NO = #{deleteManNo,jdbcType=VARCHAR},
+      DELETE_MAN_NAME = #{deleteManName,jdbcType=VARCHAR},
+      DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
+      P_VALUE_FLAG = #{pValueFlag,jdbcType=VARCHAR},
+      IS_CHEMICAL = #{isChemical,jdbcType=VARCHAR},
+      LIMIT_WEIGHT = #{limitWeight,jdbcType=DECIMAL},
+      RAILWAY_MODEL_NO = #{railwayModelNo,jdbcType=VARCHAR},
+      RAILWAY_MODEL_NAME = #{railwayModelName,jdbcType=VARCHAR},
+      ARRIVAL = #{arrival,jdbcType=VARCHAR},
+      STATION = #{station,jdbcType=VARCHAR},
+      VOUCHER_IDENTITY = #{voucherIdentity,jdbcType=VARCHAR},
+      VOUCHER_ITEM = #{voucherItem,jdbcType=VARCHAR},
+      BUSINESS_GROUP = #{businessGroup,jdbcType=VARCHAR},
+      TEMP_CONVEYANCE = #{tempConveyance,jdbcType=VARCHAR},
+      CONVEYANCE_TYPE = #{conveyanceType,jdbcType=VARCHAR},
+      RESOURCE_SYSTEM = #{resourceSystem,jdbcType=VARCHAR},
+      GROUP_PACKAGE_AMOUNT = #{groupPackageAmount,jdbcType=DECIMAL},
+      GROUP_PACKAGE_UNIT = #{groupPackageUnit,jdbcType=VARCHAR},
+      PACKAGE_AMOUNT = #{packageAmount,jdbcType=DECIMAL},
+      PACKAGE_UNIT = #{packageUnit,jdbcType=VARCHAR},
+      THEORY_AMOUNT = #{theoryAmount,jdbcType=DECIMAL},
+      MEASURE_BATCH = #{measureBatch,jdbcType=VARCHAR},
+      MEASURE_BATCH_COUNT = #{measureBatchCount,jdbcType=DECIMAL},
+      SENDER_TYPE = #{senderType,jdbcType=VARCHAR},
+      SENDER_REMARK = #{senderRemark,jdbcType=VARCHAR},
+      RECEIVER_TYPE = #{receiverType,jdbcType=VARCHAR},
+      RECEIVER_REMARK = #{receiverRemark,jdbcType=VARCHAR},
+      TRUST_DEPARTMENT_NAME = #{trustDepartmentName,jdbcType=VARCHAR},
+      TRUST_DEPARTMENT = #{trustDepartment,jdbcType=VARCHAR},
+      TRUSTOR = #{trustor,jdbcType=VARCHAR},
+      TRUST_DATE_TIME = #{trustDateTime,jdbcType=TIMESTAMP},
+      TRUST_AVAILABILITY_TIME = #{trustAvailabilityTime,jdbcType=TIMESTAMP},
+      TRUST_IP = #{trustIp,jdbcType=VARCHAR},
+      STATION_TYPE = #{stationType,jdbcType=VARCHAR},
+      MEASURE_STATION = #{measureStation,jdbcType=VARCHAR},
+      MEASURE_STATION_NAME = #{measureStationName,jdbcType=VARCHAR},
+      AMOUNT_UNIT = #{amountUnit,jdbcType=VARCHAR},
+      TRUST_DAY = #{trustDay,jdbcType=DECIMAL},
+      CONVEYANCE_GROUP = #{conveyanceGroup,jdbcType=VARCHAR},
+      UPLOAD_FLAG = #{uploadFlag,jdbcType=VARCHAR}
+    where PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR}
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.pretrack.prerailwayscale.model.PreRailwayScale">
+    update PRE_RAILWAY_SCALE
+    <set>
+      <if test="noticeNo != null">
+        NOTICE_NO = #{noticeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayNo != null">
+        RAILWAY_NO = #{railwayNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayCarriageNo != null">
+        RAILWAY_CARRIAGE_NO = #{railwayCarriageNo,jdbcType=VARCHAR},
+      </if>
+      <if test="matterNo != null">
+        MATTER_NO = #{matterNo,jdbcType=VARCHAR},
+      </if>
+      <if test="matterName != null">
+        MATTER_NAME = #{matterName,jdbcType=VARCHAR},
+      </if>
+      <if test="contractNo != null">
+        CONTRACT_NO = #{contractNo,jdbcType=VARCHAR},
+      </if>
+      <if test="batchNo != null">
+        BATCH_NO = #{batchNo,jdbcType=VARCHAR},
+      </if>
+      <if test="customerSupplierNo != null">
+        CUSTOMER_SUPPLIER_NO = #{customerSupplierNo,jdbcType=VARCHAR},
+      </if>
+      <if test="customerSupplierName != null">
+        CUSTOMER_SUPPLIER_NAME = #{customerSupplierName,jdbcType=VARCHAR},
+      </if>
+      <if test="sourceArea != null">
+        SOURCE_AREA = #{sourceArea,jdbcType=VARCHAR},
+      </if>
+      <if test="forwardingUnitNo != null">
+        FORWARDING_UNIT_NO = #{forwardingUnitNo,jdbcType=VARCHAR},
+      </if>
+      <if test="forwardingUnitName != null">
+        FORWARDING_UNIT_NAME = #{forwardingUnitName,jdbcType=VARCHAR},
+      </if>
+      <if test="receivingUintNo != null">
+        RECEIVING_UINT_NO = #{receivingUintNo,jdbcType=VARCHAR},
+      </if>
+      <if test="receivingUintName != null">
+        RECEIVING_UINT_NAME = #{receivingUintName,jdbcType=VARCHAR},
+      </if>
+      <if test="materialNo != null">
+        MATERIAL_NO = #{materialNo,jdbcType=VARCHAR},
+      </if>
+      <if test="materialName != null">
+        MATERIAL_NAME = #{materialName,jdbcType=VARCHAR},
+      </if>
+      <if test="specNo != null">
+        SPEC_NO = #{specNo,jdbcType=VARCHAR},
+      </if>
+      <if test="specName != null">
+        SPEC_NAME = #{specName,jdbcType=VARCHAR},
+      </if>
+      <if test="shipmentGrossWeight != null">
+        SHIPMENT_GROSS_WEIGHT = #{shipmentGrossWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="shipmentNetWeight != null">
+        SHIPMENT_NET_WEIGHT = #{shipmentNetWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="shipmentNum != null">
+        SHIPMENT_NUM = #{shipmentNum,jdbcType=DECIMAL},
+      </if>
+      <if test="loadPointNo != null">
+        LOAD_POINT_NO = #{loadPointNo,jdbcType=VARCHAR},
+      </if>
+      <if test="loadPointName != null">
+        LOAD_POINT_NAME = #{loadPointName,jdbcType=VARCHAR},
+      </if>
+      <if test="sampleNo != null">
+        SAMPLE_NO = #{sampleNo,jdbcType=VARCHAR},
+      </if>
+      <if test="sampleVoucher != null">
+        SAMPLE_VOUCHER = #{sampleVoucher,jdbcType=VARCHAR},
+      </if>
+      <if test="carrierUnitNo != null">
+        CARRIER_UNIT_NO = #{carrierUnitNo,jdbcType=VARCHAR},
+      </if>
+      <if test="carrierUnitName != null">
+        CARRIER_UNIT_NAME = #{carrierUnitName,jdbcType=VARCHAR},
+      </if>
+      <if test="predictionType != null">
+        PREDICTION_TYPE = #{predictionType,jdbcType=VARCHAR},
+      </if>
+      <if test="predictionCombination != null">
+        PREDICTION_COMBINATION = #{predictionCombination,jdbcType=VARCHAR},
+      </if>
+      <if test="meterTypeNo != null">
+        METER_TYPE_NO = #{meterTypeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="meterTypeName != null">
+        METER_TYPE_NAME = #{meterTypeName,jdbcType=VARCHAR},
+      </if>
+      <if test="effectiveStartTime != null">
+        EFFECTIVE_START_TIME = #{effectiveStartTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="effectiveEndTime != null">
+        EFFECTIVE_END_TIME = #{effectiveEndTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="railwayTypeNo != null">
+        RAILWAY_TYPE_NO = #{railwayTypeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayTypeName != null">
+        RAILWAY_TYPE_NAME = #{railwayTypeName,jdbcType=VARCHAR},
+      </if>
+      <if test="memo != null">
+        MEMO = #{memo,jdbcType=VARCHAR},
+      </if>
+      <if test="valueFlag != null">
+        VALUE_FLAG = #{valueFlag,jdbcType=VARCHAR},
+      </if>
+      <if test="usedTime != null">
+        USED_TIME = #{usedTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="createManNo != null">
+        CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="createManName != null">
+        CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateManNo != null">
+        UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="updateManName != null">
+        UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
+      </if>
+      <if test="updateTime != null">
+        UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="deleteManNo != null">
+        DELETE_MAN_NO = #{deleteManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="deleteManName != null">
+        DELETE_MAN_NAME = #{deleteManName,jdbcType=VARCHAR},
+      </if>
+      <if test="deleteTime != null">
+        DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="pValueFlag != null">
+        P_VALUE_FLAG = #{pValueFlag,jdbcType=VARCHAR},
+      </if>
+      <if test="isChemical != null">
+        IS_CHEMICAL = #{isChemical,jdbcType=VARCHAR},
+      </if>
+      <if test="limitWeight != null">
+        LIMIT_WEIGHT = #{limitWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="railwayModelNo != null">
+        RAILWAY_MODEL_NO = #{railwayModelNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayModelName != null">
+        RAILWAY_MODEL_NAME = #{railwayModelName,jdbcType=VARCHAR},
+      </if>
+      <if test="arrival != null">
+        ARRIVAL = #{arrival,jdbcType=VARCHAR},
+      </if>
+      <if test="station != null">
+        STATION = #{station,jdbcType=VARCHAR},
+      </if>
+      <if test="voucherIdentity != null">
+        VOUCHER_IDENTITY = #{voucherIdentity,jdbcType=VARCHAR},
+      </if>
+      <if test="voucherItem != null">
+        VOUCHER_ITEM = #{voucherItem,jdbcType=VARCHAR},
+      </if>
+      <if test="businessGroup != null">
+        BUSINESS_GROUP = #{businessGroup,jdbcType=VARCHAR},
+      </if>
+      <if test="tempConveyance != null">
+        TEMP_CONVEYANCE = #{tempConveyance,jdbcType=VARCHAR},
+      </if>
+      <if test="conveyanceType != null">
+        CONVEYANCE_TYPE = #{conveyanceType,jdbcType=VARCHAR},
+      </if>
+      <if test="resourceSystem != null">
+        RESOURCE_SYSTEM = #{resourceSystem,jdbcType=VARCHAR},
+      </if>
+      <if test="groupPackageAmount != null">
+        GROUP_PACKAGE_AMOUNT = #{groupPackageAmount,jdbcType=DECIMAL},
+      </if>
+      <if test="groupPackageUnit != null">
+        GROUP_PACKAGE_UNIT = #{groupPackageUnit,jdbcType=VARCHAR},
+      </if>
+      <if test="packageAmount != null">
+        PACKAGE_AMOUNT = #{packageAmount,jdbcType=DECIMAL},
+      </if>
+      <if test="packageUnit != null">
+        PACKAGE_UNIT = #{packageUnit,jdbcType=VARCHAR},
+      </if>
+      <if test="theoryAmount != null">
+        THEORY_AMOUNT = #{theoryAmount,jdbcType=DECIMAL},
+      </if>
+      <if test="measureBatch != null">
+        MEASURE_BATCH = #{measureBatch,jdbcType=VARCHAR},
+      </if>
+      <if test="measureBatchCount != null">
+        MEASURE_BATCH_COUNT = #{measureBatchCount,jdbcType=DECIMAL},
+      </if>
+      <if test="senderType != null">
+        SENDER_TYPE = #{senderType,jdbcType=VARCHAR},
+      </if>
+      <if test="senderRemark != null">
+        SENDER_REMARK = #{senderRemark,jdbcType=VARCHAR},
+      </if>
+      <if test="receiverType != null">
+        RECEIVER_TYPE = #{receiverType,jdbcType=VARCHAR},
+      </if>
+      <if test="receiverRemark != null">
+        RECEIVER_REMARK = #{receiverRemark,jdbcType=VARCHAR},
+      </if>
+      <if test="trustDepartmentName != null">
+        TRUST_DEPARTMENT_NAME = #{trustDepartmentName,jdbcType=VARCHAR},
+      </if>
+      <if test="trustDepartment != null">
+        TRUST_DEPARTMENT = #{trustDepartment,jdbcType=VARCHAR},
+      </if>
+      <if test="trustor != null">
+        TRUSTOR = #{trustor,jdbcType=VARCHAR},
+      </if>
+      <if test="trustDateTime != null">
+        TRUST_DATE_TIME = #{trustDateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="trustAvailabilityTime != null">
+        TRUST_AVAILABILITY_TIME = #{trustAvailabilityTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="trustIp != null">
+        TRUST_IP = #{trustIp,jdbcType=VARCHAR},
+      </if>
+      <if test="stationType != null">
+        STATION_TYPE = #{stationType,jdbcType=VARCHAR},
+      </if>
+      <if test="measureStation != null">
+        MEASURE_STATION = #{measureStation,jdbcType=VARCHAR},
+      </if>
+      <if test="measureStationName != null">
+        MEASURE_STATION_NAME = #{measureStationName,jdbcType=VARCHAR},
+      </if>
+      <if test="amountUnit != null">
+        AMOUNT_UNIT = #{amountUnit,jdbcType=VARCHAR},
+      </if>
+      <if test="trustDay != null">
+        TRUST_DAY = #{trustDay,jdbcType=DECIMAL},
+      </if>
+      <if test="conveyanceGroup != null">
+        CONVEYANCE_GROUP = #{conveyanceGroup,jdbcType=VARCHAR},
+      </if>
+      <if test="uploadFlag != null">
+        UPLOAD_FLAG = #{uploadFlag,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR}
+  </update>
+  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
+    <include refid="select"/>
+    where PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR}
+  </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 PRE_RAILWAY_SCALE 
+      (PREDICTION_NO, 
+      NOTICE_NO, RAILWAY_NO, RAILWAY_CARRIAGE_NO, 
+      MATTER_NO, MATTER_NAME, CONTRACT_NO, 
+      BATCH_NO, CUSTOMER_SUPPLIER_NO, 
+      CUSTOMER_SUPPLIER_NAME, SOURCE_AREA, 
+      FORWARDING_UNIT_NO, FORWARDING_UNIT_NAME, 
+      RECEIVING_UINT_NO, RECEIVING_UINT_NAME, 
+      MATERIAL_NO, MATERIAL_NAME, SPEC_NO, 
+      SPEC_NAME, SHIPMENT_GROSS_WEIGHT, 
+      SHIPMENT_NET_WEIGHT, SHIPMENT_NUM, 
+      LOAD_POINT_NO, LOAD_POINT_NAME, SAMPLE_NO, 
+      SAMPLE_VOUCHER, CARRIER_UNIT_NO, 
+      CARRIER_UNIT_NAME, PREDICTION_TYPE, 
+      PREDICTION_COMBINATION, METER_TYPE_NO, 
+      METER_TYPE_NAME, EFFECTIVE_START_TIME, 
+      EFFECTIVE_END_TIME, RAILWAY_TYPE_NO, 
+      RAILWAY_TYPE_NAME, MEMO, VALUE_FLAG, 
+      USED_TIME, CREATE_MAN_NO, CREATE_MAN_NAME, 
+      CREATE_TIME, UPDATE_MAN_NO, UPDATE_MAN_NAME, 
+      UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME, 
+      DELETE_TIME, P_VALUE_FLAG, IS_CHEMICAL, 
+      LIMIT_WEIGHT, RAILWAY_MODEL_NO, 
+      RAILWAY_MODEL_NAME, ARRIVAL, STATION, 
+      VOUCHER_IDENTITY, VOUCHER_ITEM, 
+      BUSINESS_GROUP, TEMP_CONVEYANCE, 
+      CONVEYANCE_TYPE, RESOURCE_SYSTEM, 
+      GROUP_PACKAGE_AMOUNT, GROUP_PACKAGE_UNIT, 
+      PACKAGE_AMOUNT, PACKAGE_UNIT, THEORY_AMOUNT, 
+      MEASURE_BATCH, MEASURE_BATCH_COUNT, 
+      SENDER_TYPE, SENDER_REMARK, RECEIVER_TYPE, 
+      RECEIVER_REMARK, TRUST_DEPARTMENT_NAME, 
+      TRUST_DEPARTMENT, TRUSTOR, TRUST_DATE_TIME, 
+      TRUST_AVAILABILITY_TIME, TRUST_IP, 
+      STATION_TYPE, MEASURE_STATION, 
+      MEASURE_STATION_NAME, AMOUNT_UNIT, 
+      TRUST_DAY, CONVEYANCE_GROUP, UPLOAD_FLAG
+      )
+    ( <foreach collection="list" item="item" separator="union all"> 
+   select  
+      #{item.predictionNo,jdbcType=VARCHAR}, 
+      #{item.noticeNo,jdbcType=VARCHAR}, #{item.railwayNo,jdbcType=VARCHAR}, #{item.railwayCarriageNo,jdbcType=VARCHAR}, 
+      #{item.matterNo,jdbcType=VARCHAR}, #{item.matterName,jdbcType=VARCHAR}, #{item.contractNo,jdbcType=VARCHAR}, 
+      #{item.batchNo,jdbcType=VARCHAR}, #{item.customerSupplierNo,jdbcType=VARCHAR}, 
+      #{item.customerSupplierName,jdbcType=VARCHAR}, #{item.sourceArea,jdbcType=VARCHAR}, 
+      #{item.forwardingUnitNo,jdbcType=VARCHAR}, #{item.forwardingUnitName,jdbcType=VARCHAR}, 
+      #{item.receivingUintNo,jdbcType=VARCHAR}, #{item.receivingUintName,jdbcType=VARCHAR}, 
+      #{item.materialNo,jdbcType=VARCHAR}, #{item.materialName,jdbcType=VARCHAR}, #{item.specNo,jdbcType=VARCHAR}, 
+      #{item.specName,jdbcType=VARCHAR}, #{item.shipmentGrossWeight,jdbcType=DECIMAL}, 
+      #{item.shipmentNetWeight,jdbcType=DECIMAL}, #{item.shipmentNum,jdbcType=DECIMAL}, 
+      #{item.loadPointNo,jdbcType=VARCHAR}, #{item.loadPointName,jdbcType=VARCHAR}, #{item.sampleNo,jdbcType=VARCHAR}, 
+      #{item.sampleVoucher,jdbcType=VARCHAR}, #{item.carrierUnitNo,jdbcType=VARCHAR}, 
+      #{item.carrierUnitName,jdbcType=VARCHAR}, #{item.predictionType,jdbcType=VARCHAR}, 
+      #{item.predictionCombination,jdbcType=VARCHAR}, #{item.meterTypeNo,jdbcType=VARCHAR}, 
+      #{item.meterTypeName,jdbcType=VARCHAR}, #{item.effectiveStartTime,jdbcType=TIMESTAMP}, 
+      #{item.effectiveEndTime,jdbcType=TIMESTAMP}, #{item.railwayTypeNo,jdbcType=VARCHAR}, 
+      #{item.railwayTypeName,jdbcType=VARCHAR}, #{item.memo,jdbcType=VARCHAR}, #{item.valueFlag,jdbcType=VARCHAR}, 
+      #{item.usedTime,jdbcType=TIMESTAMP}, #{item.createManNo,jdbcType=VARCHAR}, #{item.createManName,jdbcType=VARCHAR}, 
+      #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateManNo,jdbcType=VARCHAR}, #{item.updateManName,jdbcType=VARCHAR}, 
+      #{item.updateTime,jdbcType=TIMESTAMP}, #{item.deleteManNo,jdbcType=VARCHAR}, #{item.deleteManName,jdbcType=VARCHAR}, 
+      #{item.deleteTime,jdbcType=TIMESTAMP}, #{item.pValueFlag,jdbcType=VARCHAR}, #{item.isChemical,jdbcType=VARCHAR}, 
+      #{item.limitWeight,jdbcType=DECIMAL}, #{item.railwayModelNo,jdbcType=VARCHAR}, 
+      #{item.railwayModelName,jdbcType=VARCHAR}, #{item.arrival,jdbcType=VARCHAR}, #{item.station,jdbcType=VARCHAR}, 
+      #{item.voucherIdentity,jdbcType=VARCHAR}, #{item.voucherItem,jdbcType=VARCHAR}, 
+      #{item.businessGroup,jdbcType=VARCHAR}, #{item.tempConveyance,jdbcType=VARCHAR}, 
+      #{item.conveyanceType,jdbcType=VARCHAR}, #{item.resourceSystem,jdbcType=VARCHAR}, 
+      #{item.groupPackageAmount,jdbcType=DECIMAL}, #{item.groupPackageUnit,jdbcType=VARCHAR}, 
+      #{item.packageAmount,jdbcType=DECIMAL}, #{item.packageUnit,jdbcType=VARCHAR}, #{item.theoryAmount,jdbcType=DECIMAL}, 
+      #{item.measureBatch,jdbcType=VARCHAR}, #{item.measureBatchCount,jdbcType=DECIMAL}, 
+      #{item.senderType,jdbcType=VARCHAR}, #{item.senderRemark,jdbcType=VARCHAR}, #{item.receiverType,jdbcType=VARCHAR}, 
+      #{item.receiverRemark,jdbcType=VARCHAR}, #{item.trustDepartmentName,jdbcType=VARCHAR}, 
+      #{item.trustDepartment,jdbcType=VARCHAR}, #{item.trustor,jdbcType=VARCHAR}, #{item.trustDateTime,jdbcType=TIMESTAMP}, 
+      #{item.trustAvailabilityTime,jdbcType=TIMESTAMP}, #{item.trustIp,jdbcType=VARCHAR}, 
+      #{item.stationType,jdbcType=VARCHAR}, #{item.measureStation,jdbcType=VARCHAR}, 
+      #{item.measureStationName,jdbcType=VARCHAR}, #{item.amountUnit,jdbcType=VARCHAR}, 
+      #{item.trustDay,jdbcType=DECIMAL}, #{item.conveyanceGroup,jdbcType=VARCHAR}, #{item.uploadFlag,jdbcType=VARCHAR}
+       from dual  
+   </foreach> )
+  </insert>
+  <update id="batchUpdate" parameterType="java.util.List">
+     update PRE_RAILWAY_SCALE
+     set
+       PREDICTION_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.predictionNo,jdbcType=VARCHAR}
+       </foreach>
+       ,NOTICE_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.noticeNo,jdbcType=VARCHAR}
+       </foreach>
+       ,RAILWAY_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.railwayNo,jdbcType=VARCHAR}
+       </foreach>
+       ,RAILWAY_CARRIAGE_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.railwayCarriageNo,jdbcType=VARCHAR}
+       </foreach>
+       ,MATTER_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.matterNo,jdbcType=VARCHAR}
+       </foreach>
+       ,MATTER_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.matterName,jdbcType=VARCHAR}
+       </foreach>
+       ,CONTRACT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.contractNo,jdbcType=VARCHAR}
+       </foreach>
+       ,BATCH_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.batchNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CUSTOMER_SUPPLIER_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.customerSupplierNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CUSTOMER_SUPPLIER_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.customerSupplierName,jdbcType=VARCHAR}
+       </foreach>
+       ,SOURCE_AREA=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.sourceArea,jdbcType=VARCHAR}
+       </foreach>
+       ,FORWARDING_UNIT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.forwardingUnitNo,jdbcType=VARCHAR}
+       </foreach>
+       ,FORWARDING_UNIT_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.forwardingUnitName,jdbcType=VARCHAR}
+       </foreach>
+       ,RECEIVING_UINT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.receivingUintNo,jdbcType=VARCHAR}
+       </foreach>
+       ,RECEIVING_UINT_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.receivingUintName,jdbcType=VARCHAR}
+       </foreach>
+       ,MATERIAL_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.materialNo,jdbcType=VARCHAR}
+       </foreach>
+       ,MATERIAL_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.materialName,jdbcType=VARCHAR}
+       </foreach>
+       ,SPEC_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.specNo,jdbcType=VARCHAR}
+       </foreach>
+       ,SPEC_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.specName,jdbcType=VARCHAR}
+       </foreach>
+       ,SHIPMENT_GROSS_WEIGHT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.shipmentGrossWeight,jdbcType=DECIMAL}
+       </foreach>
+       ,SHIPMENT_NET_WEIGHT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.shipmentNetWeight,jdbcType=DECIMAL}
+       </foreach>
+       ,SHIPMENT_NUM=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.shipmentNum,jdbcType=DECIMAL}
+       </foreach>
+       ,LOAD_POINT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.loadPointNo,jdbcType=VARCHAR}
+       </foreach>
+       ,LOAD_POINT_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.loadPointName,jdbcType=VARCHAR}
+       </foreach>
+       ,SAMPLE_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.sampleNo,jdbcType=VARCHAR}
+       </foreach>
+       ,SAMPLE_VOUCHER=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.sampleVoucher,jdbcType=VARCHAR}
+       </foreach>
+       ,CARRIER_UNIT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.carrierUnitNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CARRIER_UNIT_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.carrierUnitName,jdbcType=VARCHAR}
+       </foreach>
+       ,PREDICTION_TYPE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.predictionType,jdbcType=VARCHAR}
+       </foreach>
+       ,PREDICTION_COMBINATION=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.predictionCombination,jdbcType=VARCHAR}
+       </foreach>
+       ,METER_TYPE_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.meterTypeNo,jdbcType=VARCHAR}
+       </foreach>
+       ,METER_TYPE_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.meterTypeName,jdbcType=VARCHAR}
+       </foreach>
+       ,EFFECTIVE_START_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.effectiveStartTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,EFFECTIVE_END_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.effectiveEndTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,RAILWAY_TYPE_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.railwayTypeNo,jdbcType=VARCHAR}
+       </foreach>
+       ,RAILWAY_TYPE_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.railwayTypeName,jdbcType=VARCHAR}
+       </foreach>
+       ,MEMO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.memo,jdbcType=VARCHAR}
+       </foreach>
+       ,VALUE_FLAG=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.valueFlag,jdbcType=VARCHAR}
+       </foreach>
+       ,USED_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.usedTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,CREATE_MAN_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CREATE_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
+       </foreach>
+       ,CREATE_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,UPDATE_MAN_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=VARCHAR}
+       </foreach>
+       ,UPDATE_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.updateManName,jdbcType=VARCHAR}
+       </foreach>
+       ,UPDATE_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,DELETE_MAN_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.deleteManNo,jdbcType=VARCHAR}
+       </foreach>
+       ,DELETE_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.deleteManName,jdbcType=VARCHAR}
+       </foreach>
+       ,DELETE_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.deleteTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,P_VALUE_FLAG=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.pValueFlag,jdbcType=VARCHAR}
+       </foreach>
+       ,IS_CHEMICAL=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.isChemical,jdbcType=VARCHAR}
+       </foreach>
+       ,LIMIT_WEIGHT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.limitWeight,jdbcType=DECIMAL}
+       </foreach>
+       ,RAILWAY_MODEL_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.railwayModelNo,jdbcType=VARCHAR}
+       </foreach>
+       ,RAILWAY_MODEL_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.railwayModelName,jdbcType=VARCHAR}
+       </foreach>
+       ,ARRIVAL=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.arrival,jdbcType=VARCHAR}
+       </foreach>
+       ,STATION=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.station,jdbcType=VARCHAR}
+       </foreach>
+       ,VOUCHER_IDENTITY=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.voucherIdentity,jdbcType=VARCHAR}
+       </foreach>
+       ,VOUCHER_ITEM=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.voucherItem,jdbcType=VARCHAR}
+       </foreach>
+       ,BUSINESS_GROUP=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.businessGroup,jdbcType=VARCHAR}
+       </foreach>
+       ,TEMP_CONVEYANCE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.tempConveyance,jdbcType=VARCHAR}
+       </foreach>
+       ,CONVEYANCE_TYPE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.conveyanceType,jdbcType=VARCHAR}
+       </foreach>
+       ,RESOURCE_SYSTEM=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.resourceSystem,jdbcType=VARCHAR}
+       </foreach>
+       ,GROUP_PACKAGE_AMOUNT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.groupPackageAmount,jdbcType=DECIMAL}
+       </foreach>
+       ,GROUP_PACKAGE_UNIT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.groupPackageUnit,jdbcType=VARCHAR}
+       </foreach>
+       ,PACKAGE_AMOUNT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.packageAmount,jdbcType=DECIMAL}
+       </foreach>
+       ,PACKAGE_UNIT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.packageUnit,jdbcType=VARCHAR}
+       </foreach>
+       ,THEORY_AMOUNT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.theoryAmount,jdbcType=DECIMAL}
+       </foreach>
+       ,MEASURE_BATCH=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.measureBatch,jdbcType=VARCHAR}
+       </foreach>
+       ,MEASURE_BATCH_COUNT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.measureBatchCount,jdbcType=DECIMAL}
+       </foreach>
+       ,SENDER_TYPE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.senderType,jdbcType=VARCHAR}
+       </foreach>
+       ,SENDER_REMARK=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.senderRemark,jdbcType=VARCHAR}
+       </foreach>
+       ,RECEIVER_TYPE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.receiverType,jdbcType=VARCHAR}
+       </foreach>
+       ,RECEIVER_REMARK=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.receiverRemark,jdbcType=VARCHAR}
+       </foreach>
+       ,TRUST_DEPARTMENT_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustDepartmentName,jdbcType=VARCHAR}
+       </foreach>
+       ,TRUST_DEPARTMENT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustDepartment,jdbcType=VARCHAR}
+       </foreach>
+       ,TRUSTOR=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustor,jdbcType=VARCHAR}
+       </foreach>
+       ,TRUST_DATE_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustDateTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,TRUST_AVAILABILITY_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustAvailabilityTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,TRUST_IP=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustIp,jdbcType=VARCHAR}
+       </foreach>
+       ,STATION_TYPE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.stationType,jdbcType=VARCHAR}
+       </foreach>
+       ,MEASURE_STATION=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.measureStation,jdbcType=VARCHAR}
+       </foreach>
+       ,MEASURE_STATION_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.measureStationName,jdbcType=VARCHAR}
+       </foreach>
+       ,AMOUNT_UNIT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.amountUnit,jdbcType=VARCHAR}
+       </foreach>
+       ,TRUST_DAY=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustDay,jdbcType=DECIMAL}
+       </foreach>
+       ,CONVEYANCE_GROUP=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.conveyanceGroup,jdbcType=VARCHAR}
+       </foreach>
+       ,UPLOAD_FLAG=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.uploadFlag,jdbcType=VARCHAR}
+       </foreach>
+     where PREDICTION_NO in 
+     <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
+    #{item.predictionNo,jdbcType=VARCHAR}
+     </foreach> 
+  </update>
+  <delete id="batchDelete" parameterType="java.util.List">
+    delete from PRE_RAILWAY_SCALE
+    where PREDICTION_NO in 
+    <foreach collection="list" item="id" open="(" close=")" separator=",">
+      #{id}
+    </foreach>
+  </delete>
+  <!-- 友情提示!!!-->
+  <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
     <!-- 友情提示!!!-->
     <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
     <select id="selectlist" parameterType="java.lang.String" resultMap="BaseResultMap">

+ 30 - 1
src/main/java/com/steerinfo/pretrack/prerailwayscale/model/PreRailwayScale.java

@@ -3,7 +3,6 @@ package com.steerinfo.pretrack.prerailwayscale.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;
 
@@ -507,6 +506,18 @@ public class PreRailwayScale implements IBasePO<String> {
     @ApiModelProperty(value="委托有效天数",required=false)
     private Short trustDay;
 
+    /**
+     * 运输工具组(CONVEYANCE_GROUP,VARCHAR,30)
+     */
+    @ApiModelProperty(value="运输工具组",required=false)
+    private String conveyanceGroup;
+
+    /**
+     * 上传状态(1=待上传;0=已上传 )(UPLOAD_FLAG,VARCHAR,1)
+     */
+    @ApiModelProperty(value="上传状态(1=待上传;0=已上传 )",required=false)
+    private String uploadFlag;
+
     private static final long serialVersionUID = 1L;
 
     @Override
@@ -1183,6 +1194,22 @@ public class PreRailwayScale implements IBasePO<String> {
         this.trustDay = trustDay;
     }
 
+    public String getConveyanceGroup() {
+        return conveyanceGroup;
+    }
+
+    public void setConveyanceGroup(String conveyanceGroup) {
+        this.conveyanceGroup = conveyanceGroup == null ? null : conveyanceGroup.trim();
+    }
+
+    public String getUploadFlag() {
+        return uploadFlag;
+    }
+
+    public void setUploadFlag(String uploadFlag) {
+        this.uploadFlag = uploadFlag == null ? null : uploadFlag.trim();
+    }
+
     @Override
     public String toString() {
         StringBuilder sb = new StringBuilder();
@@ -1272,6 +1299,8 @@ public class PreRailwayScale implements IBasePO<String> {
         sb.append(", measureStationName=").append(measureStationName);
         sb.append(", amountUnit=").append(amountUnit);
         sb.append(", trustDay=").append(trustDay);
+        sb.append(", conveyanceGroup=").append(conveyanceGroup);
+        sb.append(", uploadFlag=").append(uploadFlag);
         sb.append(", serialVersionUID=").append(serialVersionUID);
         sb.append("]");
         return sb.toString();

+ 5 - 1
src/main/java/com/steerinfo/pretrack/prerailwayscale/service/impl/PreRailwayScaleServiceImpl.java

@@ -139,6 +139,7 @@ public class PreRailwayScaleServiceImpl extends BaseServiceImpl<PreRailwayScale,
             }
             model.setpValueFlag(model.getValueFlag());
             model.setValueFlag(DbConstants.DROP);
+            model.setUploadFlag("1");
             /*model.setUpdateManNo(userId);
             model.setUpdateManName(userName);*/
             model.setUpdateTime(new Date());
@@ -157,6 +158,7 @@ public class PreRailwayScaleServiceImpl extends BaseServiceImpl<PreRailwayScale,
         }
         for (PreRailwayScale model : models) {
             model.setValueFlag("1"); //直接恢复到未使用状态
+            model.setUploadFlag("1");
             model.setUpdateTime(new Date());
             num++;
         }
@@ -259,8 +261,10 @@ public class PreRailwayScaleServiceImpl extends BaseServiceImpl<PreRailwayScale,
         if (model.getRailwayTypeName() == null || model.getRailwayTypeName().equals("")) {
             throw new MarkerMetException(500, "轨道衡类型名称为空!!");
         }
-        if (model.getPredictionNo() == null || model.getPredictionNo().equals(""))
+        if (model.getPredictionNo() == null || model.getPredictionNo().equals("")){
             model.setValueFlag("1");//未使用
+            model.setUploadFlag("1");
+        }
         UserPayload payload = UserPayload.getCurrUser();
         String userId = payload.getId();
         String userName = payload.getUserName();

+ 2616 - 2515
src/main/java/com/steerinfo/pretrack/pretrackscale/mapper/PreTrackScaleMapper.xml

@@ -1,2521 +1,2622 @@
 <?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.pretrack.pretrackscale.mapper.PreTrackScaleMapper">
-    <resultMap id="BaseResultMap" type="com.steerinfo.pretrack.pretrackscale.model.PreTrackScale">
-        <id column="PREDICTION_NO" jdbcType="VARCHAR" property="predictionNo" />
-        <result column="NOTICE_NO" jdbcType="VARCHAR" property="noticeNo" />
-        <result column="CAR_NO" jdbcType="VARCHAR" property="carNo" />
-        <result column="TRAILER_NO" jdbcType="VARCHAR" property="trailerNo" />
-        <result column="MATTER_NO" jdbcType="VARCHAR" property="matterNo" />
-        <result column="MATTER_NAME" jdbcType="VARCHAR" property="matterName" />
-        <result column="CONTRACT_NO" jdbcType="VARCHAR" property="contractNo" />
-        <result column="BATCH_NO" jdbcType="VARCHAR" property="batchNo" />
-        <result column="CUSTOMER_SUPPLIER_NO" jdbcType="VARCHAR" property="customerSupplierNo" />
-        <result column="CUSTOMER_SUPPLIER_NAME" jdbcType="VARCHAR" property="customerSupplierName" />
-        <result column="SOURCE_AREA" jdbcType="VARCHAR" property="sourceArea" />
-        <result column="FORWARDING_UNIT_NO" jdbcType="VARCHAR" property="forwardingUnitNo" />
-        <result column="FORWARDING_UNIT_NAME" jdbcType="VARCHAR" property="forwardingUnitName" />
-        <result column="RECEIVING_UINT_NO" jdbcType="VARCHAR" property="receivingUintNo" />
-        <result column="RECEIVING_UINT_NAME" jdbcType="VARCHAR" property="receivingUintName" />
-        <result column="MATERIAL_NO" jdbcType="VARCHAR" property="materialNo" />
-        <result column="MATERIAL_NAME" jdbcType="VARCHAR" property="materialName" />
-        <result column="SPEC_NO" jdbcType="VARCHAR" property="specNo" />
-        <result column="SPEC_NAME" jdbcType="VARCHAR" property="specName" />
-        <result column="SHIPMENT_GROSS_WEIGHT" jdbcType="DECIMAL" property="shipmentGrossWeight" />
-        <result column="SHIPMENT_NET_WEIGHT" jdbcType="DECIMAL" property="shipmentNetWeight" />
-        <result column="SHIPMENT_NUM" jdbcType="DECIMAL" property="shipmentNum" />
-        <result column="ADD_WEIGHT_SUM" jdbcType="DECIMAL" property="addWeightSum" />
-        <result column="BIND_CARD_NO" jdbcType="VARCHAR" property="bindCardNo" />
-        <result column="LOAD_POINT_NO" jdbcType="VARCHAR" property="loadPointNo" />
-        <result column="LOAD_POINT_NAME" jdbcType="VARCHAR" property="loadPointName" />
-        <result column="SAMPLE_NO" jdbcType="VARCHAR" property="sampleNo" />
-        <result column="SAMPLE_VOUCHER" jdbcType="VARCHAR" property="sampleVoucher" />
-        <result column="CARRIER_UNIT_NO" jdbcType="VARCHAR" property="carrierUnitNo" />
-        <result column="CARRIER_UNIT_NAME" jdbcType="VARCHAR" property="carrierUnitName" />
-        <result column="PREDICTION_TYPE" jdbcType="VARCHAR" property="predictionType" />
-        <result column="PREDICTION_COMBINATION" jdbcType="VARCHAR" property="predictionCombination" />
-        <result column="METER_TYPE_NO" jdbcType="VARCHAR" property="meterTypeNo" />
-        <result column="METER_TYPE_NAME" jdbcType="VARCHAR" property="meterTypeName" />
-        <result column="USED_TYPE" jdbcType="VARCHAR" property="usedType" />
-        <result column="EFFECTIVE_START_TIME" jdbcType="TIMESTAMP" property="effectiveStartTime" />
-        <result column="EFFECTIVE_END_TIME" jdbcType="TIMESTAMP" property="effectiveEndTime" />
-        <result column="EFFECTIVE_WEIGHT" jdbcType="DECIMAL" property="effectiveWeight" />
-        <result column="EFFECTIVE_NUM" jdbcType="DECIMAL" property="effectiveNum" />
-        <result column="METER_WEIGHT" jdbcType="DECIMAL" property="meterWeight" />
-        <result column="METER_NUM" jdbcType="DECIMAL" property="meterNum" />
-        <result column="RAILWAY_NO" jdbcType="VARCHAR" property="railwayNo" />
-        <result column="METER_PROCESS_NO" jdbcType="VARCHAR" property="meterProcessNo" />
-        <result column="METER_PROCESS_EDITION_NO" jdbcType="VARCHAR" property="meterProcessEditionNo" />
-        <result column="MEMO" jdbcType="VARCHAR" property="memo" />
-        <result column="VALUE_FLAG" jdbcType="VARCHAR" property="valueFlag" />
-        <result column="USED_TIME" jdbcType="TIMESTAMP" property="usedTime" />
-        <result column="CREATE_MAN_NO" jdbcType="VARCHAR" property="createManNo" />
-        <result column="CREATE_MAN_NAME" jdbcType="VARCHAR" property="createManName" />
-        <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
-        <result column="UPDATE_MAN_NO" jdbcType="VARCHAR" property="updateManNo" />
-        <result column="UPDATE_MAN_NAME" jdbcType="VARCHAR" property="updateManName" />
-        <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
-        <result column="DELETE_MAN_NO" jdbcType="VARCHAR" property="deleteManNo" />
-        <result column="DELETE_MAN_NAME" jdbcType="VARCHAR" property="deleteManName" />
-        <result column="DELETE_TIME" jdbcType="TIMESTAMP" property="deleteTime" />
-        <result column="P_VALUE_FLAG" jdbcType="VARCHAR" property="pValueFlag" />
-        <result column="CAR_ALLOCATION_TIME" jdbcType="TIMESTAMP" property="carAllocationTime" />
-        <result column="IS_COMPLETED" jdbcType="VARCHAR" property="isCompleted" />
-        <result column="LIMS_SAMPLING_FLAG" jdbcType="VARCHAR" property="limsSamplingFlag" />
-        <result column="HEAT_NO" jdbcType="VARCHAR" property="heatNo" />
-        <result column="ID_NUM" jdbcType="VARCHAR" property="idNum" />
-        <result column="PREDICTION_SOURCE" jdbcType="VARCHAR" property="predictionSource" />
-        <result column="CREATE_DEPNAME" jdbcType="VARCHAR" property="createDepname" />
-        <result column="CREATE_DEPID" jdbcType="VARCHAR" property="createDepid" />
-        <result column="LINE_DESC" jdbcType="VARCHAR" property="lineDesc" />
-        <result column="VOUCHER_IDENTITY" jdbcType="VARCHAR" property="voucherIdentity" />
-        <result column="VOUCHER_ITEM" jdbcType="VARCHAR" property="voucherItem" />
-        <result column="BUSINESS_GROUP" jdbcType="VARCHAR" property="businessGroup" />
-        <result column="TEMP_CONVEYANCE" jdbcType="VARCHAR" property="tempConveyance" />
-        <result column="CONVEYANCE_TYPE" jdbcType="VARCHAR" property="conveyanceType" />
-        <result column="RESOURCE_SYSTEM" jdbcType="VARCHAR" property="resourceSystem" />
-        <result column="GROUP_PACKAGE_AMOUNT" jdbcType="DECIMAL" property="groupPackageAmount" />
-        <result column="GROUP_PACKAGE_UNIT" jdbcType="VARCHAR" property="groupPackageUnit" />
-        <result column="PACKAGE_AMOUNT" jdbcType="DECIMAL" property="packageAmount" />
-        <result column="PACKAGE_UNIT" jdbcType="VARCHAR" property="packageUnit" />
-        <result column="THEORY_AMOUNT" jdbcType="DECIMAL" property="theoryAmount" />
-        <result column="MEASURE_BATCH" jdbcType="VARCHAR" property="measureBatch" />
-        <result column="MEASURE_BATCH_COUNT" jdbcType="DECIMAL" property="measureBatchCount" />
-        <result column="SENDER_TYPE" jdbcType="VARCHAR" property="senderType" />
-        <result column="SENDER_REMARK" jdbcType="VARCHAR" property="senderRemark" />
-        <result column="RECEIVER_TYPE" jdbcType="VARCHAR" property="receiverType" />
-        <result column="RECEIVER_REMARK" jdbcType="VARCHAR" property="receiverRemark" />
-        <result column="TRUST_DEPARTMENT_NAME" jdbcType="VARCHAR" property="trustDepartmentName" />
-        <result column="TRUST_DEPARTMENT" jdbcType="VARCHAR" property="trustDepartment" />
-        <result column="TRUSTOR" jdbcType="VARCHAR" property="trustor" />
-        <result column="TRUST_DATE_TIME" jdbcType="TIMESTAMP" property="trustDateTime" />
-        <result column="TRUST_AVAILABILITY_TIME" jdbcType="TIMESTAMP" property="trustAvailabilityTime" />
-        <result column="TRUST_IP" jdbcType="VARCHAR" property="trustIp" />
-        <result column="STATION_TYPE" jdbcType="VARCHAR" property="stationType" />
-        <result column="MEASURE_STATION" jdbcType="VARCHAR" property="measureStation" />
-        <result column="MEASURE_STATION_NAME" jdbcType="VARCHAR" property="measureStationName" />
-        <result column="AMOUNT_UNIT" jdbcType="VARCHAR" property="amountUnit" />
-        <result column="TRUST_DAY" jdbcType="DECIMAL" property="trustDay" />
-    </resultMap>
-    <sql id="columns">
-        PREDICTION_NO, NOTICE_NO, CAR_NO, TRAILER_NO, MATTER_NO, MATTER_NAME, CONTRACT_NO,
-    BATCH_NO, CUSTOMER_SUPPLIER_NO, CUSTOMER_SUPPLIER_NAME, SOURCE_AREA, FORWARDING_UNIT_NO,
-    FORWARDING_UNIT_NAME, RECEIVING_UINT_NO, RECEIVING_UINT_NAME, MATERIAL_NO, MATERIAL_NAME,
-    SPEC_NO, SPEC_NAME, SHIPMENT_GROSS_WEIGHT, SHIPMENT_NET_WEIGHT, SHIPMENT_NUM, ADD_WEIGHT_SUM,
-    BIND_CARD_NO, LOAD_POINT_NO, LOAD_POINT_NAME, SAMPLE_NO, SAMPLE_VOUCHER, CARRIER_UNIT_NO,
-    CARRIER_UNIT_NAME, PREDICTION_TYPE, PREDICTION_COMBINATION, METER_TYPE_NO, METER_TYPE_NAME,
-    USED_TYPE, EFFECTIVE_START_TIME, EFFECTIVE_END_TIME, EFFECTIVE_WEIGHT, EFFECTIVE_NUM,
-    METER_WEIGHT, METER_NUM, RAILWAY_NO, METER_PROCESS_NO, METER_PROCESS_EDITION_NO,
-    MEMO, VALUE_FLAG, USED_TIME, CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, UPDATE_MAN_NO,
-    UPDATE_MAN_NAME, UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME, P_VALUE_FLAG,
-    CAR_ALLOCATION_TIME, IS_COMPLETED, LIMS_SAMPLING_FLAG, HEAT_NO, ID_NUM, PREDICTION_SOURCE,
-    CREATE_DEPNAME, CREATE_DEPID, LINE_DESC, VOUCHER_IDENTITY, VOUCHER_ITEM, BUSINESS_GROUP,
-    TEMP_CONVEYANCE, CONVEYANCE_TYPE, RESOURCE_SYSTEM, GROUP_PACKAGE_AMOUNT, GROUP_PACKAGE_UNIT,
-    PACKAGE_AMOUNT, PACKAGE_UNIT, THEORY_AMOUNT, MEASURE_BATCH, MEASURE_BATCH_COUNT,
-    SENDER_TYPE, SENDER_REMARK, RECEIVER_TYPE, RECEIVER_REMARK, TRUST_DEPARTMENT_NAME,
-    TRUST_DEPARTMENT, TRUSTOR, TRUST_DATE_TIME, TRUST_AVAILABILITY_TIME, TRUST_IP, STATION_TYPE,
-    MEASURE_STATION, MEASURE_STATION_NAME, AMOUNT_UNIT, TRUST_DAY
-    </sql>
-    <sql id="columns_alias">
-        t.PREDICTION_NO, t.NOTICE_NO, t.CAR_NO, t.TRAILER_NO, t.MATTER_NO, t.MATTER_NAME,
-    t.CONTRACT_NO, t.BATCH_NO, t.CUSTOMER_SUPPLIER_NO, t.CUSTOMER_SUPPLIER_NAME, t.SOURCE_AREA,
-    t.FORWARDING_UNIT_NO, t.FORWARDING_UNIT_NAME, t.RECEIVING_UINT_NO, t.RECEIVING_UINT_NAME,
-    t.MATERIAL_NO, t.MATERIAL_NAME, t.SPEC_NO, t.SPEC_NAME, t.SHIPMENT_GROSS_WEIGHT,
-    t.SHIPMENT_NET_WEIGHT, t.SHIPMENT_NUM, t.ADD_WEIGHT_SUM, t.BIND_CARD_NO, t.LOAD_POINT_NO,
-    t.LOAD_POINT_NAME, t.SAMPLE_NO, t.SAMPLE_VOUCHER, t.CARRIER_UNIT_NO, t.CARRIER_UNIT_NAME,
-    t.PREDICTION_TYPE, t.PREDICTION_COMBINATION, t.METER_TYPE_NO, t.METER_TYPE_NAME,
-    t.USED_TYPE, t.EFFECTIVE_START_TIME, t.EFFECTIVE_END_TIME, t.EFFECTIVE_WEIGHT, t.EFFECTIVE_NUM,
-    t.METER_WEIGHT, t.METER_NUM, t.RAILWAY_NO, t.METER_PROCESS_NO, t.METER_PROCESS_EDITION_NO,
-    t.MEMO, t.VALUE_FLAG, t.USED_TIME, t.CREATE_MAN_NO, t.CREATE_MAN_NAME, t.CREATE_TIME,
-    t.UPDATE_MAN_NO, t.UPDATE_MAN_NAME, t.UPDATE_TIME, t.DELETE_MAN_NO, t.DELETE_MAN_NAME,
-    t.DELETE_TIME, t.P_VALUE_FLAG, t.CAR_ALLOCATION_TIME, t.IS_COMPLETED, t.LIMS_SAMPLING_FLAG,
-    t.HEAT_NO, t.ID_NUM, t.PREDICTION_SOURCE, t.CREATE_DEPNAME, t.CREATE_DEPID, t.LINE_DESC,
-    t.VOUCHER_IDENTITY, t.VOUCHER_ITEM, t.BUSINESS_GROUP, t.TEMP_CONVEYANCE, t.CONVEYANCE_TYPE,
-    t.RESOURCE_SYSTEM, t.GROUP_PACKAGE_AMOUNT, t.GROUP_PACKAGE_UNIT, t.PACKAGE_AMOUNT,
-    t.PACKAGE_UNIT, t.THEORY_AMOUNT, t.MEASURE_BATCH, t.MEASURE_BATCH_COUNT, t.SENDER_TYPE,
-    t.SENDER_REMARK, t.RECEIVER_TYPE, t.RECEIVER_REMARK, t.TRUST_DEPARTMENT_NAME, t.TRUST_DEPARTMENT,
-    t.TRUSTOR, t.TRUST_DATE_TIME, t.TRUST_AVAILABILITY_TIME, t.TRUST_IP, t.STATION_TYPE,
-    t.MEASURE_STATION, t.MEASURE_STATION_NAME, t.AMOUNT_UNIT, t.TRUST_DAY
-    </sql>
-    <sql id="select">
-        SELECT <include refid="columns"/> FROM PRE_TRACK_SCALE
-    </sql>
-    <sql id="select_alias">
-        SELECT <include refid="columns_alias"/> FROM PRE_TRACK_SCALE t
-    </sql>
-    <sql id="where">
-        <where>
-            <if test="predictionNo != null and predictionNo != ''">
-                and PREDICTION_NO = #{predictionNo}
-            </if>
-            <if test="noticeNo != null and noticeNo != ''">
-                and NOTICE_NO = #{noticeNo}
-            </if>
-            <if test="carNo != null and carNo != ''">
-                and CAR_NO = #{carNo}
-            </if>
-            <if test="trailerNo != null and trailerNo != ''">
-                and TRAILER_NO = #{trailerNo}
-            </if>
-            <if test="matterNo != null and matterNo != ''">
-                and MATTER_NO = #{matterNo}
-            </if>
-            <if test="matterName != null and matterName != ''">
-                and MATTER_NAME = #{matterName}
-            </if>
-            <if test="contractNo != null and contractNo != ''">
-                and CONTRACT_NO = #{contractNo}
-            </if>
-            <if test="batchNo != null and batchNo != ''">
-                and BATCH_NO = #{batchNo}
-            </if>
-            <if test="customerSupplierNo != null and customerSupplierNo != ''">
-                and CUSTOMER_SUPPLIER_NO = #{customerSupplierNo}
-            </if>
-            <if test="customerSupplierName != null and customerSupplierName != ''">
-                and CUSTOMER_SUPPLIER_NAME = #{customerSupplierName}
-            </if>
-            <if test="sourceArea != null and sourceArea != ''">
-                and SOURCE_AREA = #{sourceArea}
-            </if>
-            <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
-                and FORWARDING_UNIT_NO = #{forwardingUnitNo}
-            </if>
-            <if test="forwardingUnitName != null and forwardingUnitName != ''">
-                and FORWARDING_UNIT_NAME = #{forwardingUnitName}
-            </if>
-            <if test="receivingUintNo != null and receivingUintNo != ''">
-                and RECEIVING_UINT_NO = #{receivingUintNo}
-            </if>
-            <if test="receivingUintName != null and receivingUintName != ''">
-                and RECEIVING_UINT_NAME = #{receivingUintName}
-            </if>
-            <if test="materialNo != null and materialNo != ''">
-                and MATERIAL_NO = #{materialNo}
-            </if>
-            <if test="materialName != null and materialName != ''">
-                and MATERIAL_NAME = #{materialName}
-            </if>
-            <if test="specNo != null and specNo != ''">
-                and SPEC_NO = #{specNo}
-            </if>
-            <if test="specName != null and specName != ''">
-                and SPEC_NAME = #{specName}
-            </if>
-            <if test="shipmentGrossWeight != null">
-                and SHIPMENT_GROSS_WEIGHT = #{shipmentGrossWeight}
-            </if>
-            <if test="shipmentNetWeight != null">
-                and SHIPMENT_NET_WEIGHT = #{shipmentNetWeight}
-            </if>
-            <if test="shipmentNum != null">
-                and SHIPMENT_NUM = #{shipmentNum}
-            </if>
-            <if test="addWeightSum != null">
-                and ADD_WEIGHT_SUM = #{addWeightSum}
-            </if>
-            <if test="bindCardNo != null and bindCardNo != ''">
-                and BIND_CARD_NO = #{bindCardNo}
-            </if>
-            <if test="loadPointNo != null and loadPointNo != ''">
-                and LOAD_POINT_NO = #{loadPointNo}
-            </if>
-            <if test="loadPointName != null and loadPointName != ''">
-                and LOAD_POINT_NAME = #{loadPointName}
-            </if>
-            <if test="sampleNo != null and sampleNo != ''">
-                and SAMPLE_NO = #{sampleNo}
-            </if>
-            <if test="sampleVoucher != null and sampleVoucher != ''">
-                and SAMPLE_VOUCHER = #{sampleVoucher}
-            </if>
-            <if test="carrierUnitNo != null and carrierUnitNo != ''">
-                and CARRIER_UNIT_NO = #{carrierUnitNo}
-            </if>
-            <if test="carrierUnitName != null and carrierUnitName != ''">
-                and CARRIER_UNIT_NAME = #{carrierUnitName}
-            </if>
-            <if test="predictionType != null and predictionType != ''">
-                and PREDICTION_TYPE = #{predictionType}
-            </if>
-            <if test="predictionCombination != null and predictionCombination != ''">
-                and PREDICTION_COMBINATION = #{predictionCombination}
-            </if>
-            <if test="meterTypeNo != null and meterTypeNo != ''">
-                and METER_TYPE_NO = #{meterTypeNo}
-            </if>
-            <if test="meterTypeName != null and meterTypeName != ''">
-                and METER_TYPE_NAME = #{meterTypeName}
-            </if>
-            <if test="usedType != null and usedType != ''">
-                and USED_TYPE = #{usedType}
-            </if>
-            <if test="effectiveStartTime != null">
-                and TO_CHAR(EFFECTIVE_START_TIME,'yyyy-MM-dd') = #{effectiveStartTime}
-            </if>
-            <if test="effectiveEndTime != null">
-                and TO_CHAR(EFFECTIVE_END_TIME,'yyyy-MM-dd') = #{effectiveEndTime}
-            </if>
-            <if test="effectiveWeight != null">
-                and EFFECTIVE_WEIGHT = #{effectiveWeight}
-            </if>
-            <if test="effectiveNum != null">
-                and EFFECTIVE_NUM = #{effectiveNum}
-            </if>
-            <if test="meterWeight != null">
-                and METER_WEIGHT = #{meterWeight}
-            </if>
-            <if test="meterNum != null">
-                and METER_NUM = #{meterNum}
-            </if>
-            <if test="railwayNo != null and railwayNo != ''">
-                and RAILWAY_NO = #{railwayNo}
-            </if>
-            <if test="meterProcessNo != null and meterProcessNo != ''">
-                and METER_PROCESS_NO = #{meterProcessNo}
-            </if>
-            <if test="meterProcessEditionNo != null and meterProcessEditionNo != ''">
-                and METER_PROCESS_EDITION_NO = #{meterProcessEditionNo}
-            </if>
-            <if test="memo != null and memo != ''">
-                and MEMO = #{memo}
-            </if>
-            <if test="valueFlag != null and valueFlag != ''">
-                and VALUE_FLAG = #{valueFlag}
-            </if>
-            <if test="usedTime != null">
-                and TO_CHAR(USED_TIME,'yyyy-MM-dd') = #{usedTime}
-            </if>
-            <if test="createManNo != null and createManNo != ''">
-                and CREATE_MAN_NO = #{createManNo}
-            </if>
-            <if test="createManName != null and createManName != ''">
-                and CREATE_MAN_NAME = #{createManName}
-            </if>
-            <if test="createTime != null">
-                and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
-            </if>
-            <if test="updateManNo != null and updateManNo != ''">
-                and UPDATE_MAN_NO = #{updateManNo}
-            </if>
-            <if test="updateManName != null and updateManName != ''">
-                and UPDATE_MAN_NAME = #{updateManName}
-            </if>
-            <if test="updateTime != null">
-                and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
-            </if>
-            <if test="deleteManNo != null and deleteManNo != ''">
-                and DELETE_MAN_NO = #{deleteManNo}
-            </if>
-            <if test="deleteManName != null and deleteManName != ''">
-                and DELETE_MAN_NAME = #{deleteManName}
-            </if>
-            <if test="deleteTime != null">
-                and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
-            </if>
-            <if test="pValueFlag != null and pValueFlag != ''">
-                and P_VALUE_FLAG = #{pValueFlag}
-            </if>
-            <if test="carAllocationTime != null">
-                and TO_CHAR(CAR_ALLOCATION_TIME,'yyyy-MM-dd') = #{carAllocationTime}
-            </if>
-            <if test="isCompleted != null and isCompleted != ''">
-                and IS_COMPLETED = #{isCompleted}
-            </if>
-            <if test="limsSamplingFlag != null and limsSamplingFlag != ''">
-                and LIMS_SAMPLING_FLAG = #{limsSamplingFlag}
-            </if>
-            <if test="heatNo != null and heatNo != ''">
-                and HEAT_NO = #{heatNo}
-            </if>
-            <if test="idNum != null and idNum != ''">
-                and ID_NUM = #{idNum}
-            </if>
-            <if test="predictionSource != null and predictionSource != ''">
-                and PREDICTION_SOURCE = #{predictionSource}
-            </if>
-            <if test="createDepname != null and createDepname != ''">
-                and CREATE_DEPNAME = #{createDepname}
-            </if>
-            <if test="createDepid != null and createDepid != ''">
-                and CREATE_DEPID = #{createDepid}
-            </if>
-            <if test="lineDesc != null and lineDesc != ''">
-                and LINE_DESC = #{lineDesc}
-            </if>
-            <if test="voucherIdentity != null and voucherIdentity != ''">
-                and VOUCHER_IDENTITY = #{voucherIdentity}
-            </if>
-            <if test="voucherItem != null and voucherItem != ''">
-                and VOUCHER_ITEM = #{voucherItem}
-            </if>
-            <if test="businessGroup != null and businessGroup != ''">
-                and BUSINESS_GROUP = #{businessGroup}
-            </if>
-            <if test="tempConveyance != null and tempConveyance != ''">
-                and TEMP_CONVEYANCE = #{tempConveyance}
-            </if>
-            <if test="conveyanceType != null and conveyanceType != ''">
-                and CONVEYANCE_TYPE = #{conveyanceType}
-            </if>
-            <if test="resourceSystem != null and resourceSystem != ''">
-                and RESOURCE_SYSTEM = #{resourceSystem}
-            </if>
-            <if test="groupPackageAmount != null">
-                and GROUP_PACKAGE_AMOUNT = #{groupPackageAmount}
-            </if>
-            <if test="groupPackageUnit != null and groupPackageUnit != ''">
-                and GROUP_PACKAGE_UNIT = #{groupPackageUnit}
-            </if>
-            <if test="packageAmount != null">
-                and PACKAGE_AMOUNT = #{packageAmount}
-            </if>
-            <if test="packageUnit != null and packageUnit != ''">
-                and PACKAGE_UNIT = #{packageUnit}
-            </if>
-            <if test="theoryAmount != null">
-                and THEORY_AMOUNT = #{theoryAmount}
-            </if>
-            <if test="measureBatch != null and measureBatch != ''">
-                and MEASURE_BATCH = #{measureBatch}
-            </if>
-            <if test="measureBatchCount != null">
-                and MEASURE_BATCH_COUNT = #{measureBatchCount}
-            </if>
-            <if test="senderType != null and senderType != ''">
-                and SENDER_TYPE = #{senderType}
-            </if>
-            <if test="senderRemark != null and senderRemark != ''">
-                and SENDER_REMARK = #{senderRemark}
-            </if>
-            <if test="receiverType != null and receiverType != ''">
-                and RECEIVER_TYPE = #{receiverType}
-            </if>
-            <if test="receiverRemark != null and receiverRemark != ''">
-                and RECEIVER_REMARK = #{receiverRemark}
-            </if>
-            <if test="trustDepartmentName != null and trustDepartmentName != ''">
-                and TRUST_DEPARTMENT_NAME = #{trustDepartmentName}
-            </if>
-            <if test="trustDepartment != null and trustDepartment != ''">
-                and TRUST_DEPARTMENT = #{trustDepartment}
-            </if>
-            <if test="trustor != null and trustor != ''">
-                and TRUSTOR = #{trustor}
-            </if>
-            <if test="trustDateTime != null">
-                and TO_CHAR(TRUST_DATE_TIME,'yyyy-MM-dd') = #{trustDateTime}
-            </if>
-            <if test="trustAvailabilityTime != null">
-                and TO_CHAR(TRUST_AVAILABILITY_TIME,'yyyy-MM-dd') = #{trustAvailabilityTime}
-            </if>
-            <if test="trustIp != null and trustIp != ''">
-                and TRUST_IP = #{trustIp}
-            </if>
-            <if test="stationType != null and stationType != ''">
-                and STATION_TYPE = #{stationType}
-            </if>
-            <if test="measureStation != null and measureStation != ''">
-                and MEASURE_STATION = #{measureStation}
-            </if>
-            <if test="measureStationName != null and measureStationName != ''">
-                and MEASURE_STATION_NAME = #{measureStationName}
-            </if>
-            <if test="amountUnit != null and amountUnit != ''">
-                and AMOUNT_UNIT = #{amountUnit}
-            </if>
-            <if test="trustDay != null">
-                and TRUST_DAY = #{trustDay}
-            </if>
-        </where>
-    </sql>
-    <sql id="whereLike">
-        <where>
-            <if test="predictionNo != null and predictionNo != ''">
-                and PREDICTION_NO LIKE '%${predictionNo}%'
-            </if>
-            <if test="noticeNo != null and noticeNo != ''">
-                and NOTICE_NO LIKE '%${noticeNo}%'
-            </if>
-            <if test="carNo != null and carNo != ''">
-                and CAR_NO LIKE '%${carNo}%'
-            </if>
-            <if test="trailerNo != null and trailerNo != ''">
-                and TRAILER_NO LIKE '%${trailerNo}%'
-            </if>
-            <if test="matterNo != null and matterNo != ''">
-                and MATTER_NO LIKE '%${matterNo}%'
-            </if>
-            <if test="matterName != null and matterName != ''">
-                and MATTER_NAME LIKE '%${matterName}%'
-            </if>
-            <if test="contractNo != null and contractNo != ''">
-                and CONTRACT_NO LIKE '%${contractNo}%'
-            </if>
-            <if test="batchNo != null and batchNo != ''">
-                and BATCH_NO LIKE '%${batchNo}%'
-            </if>
-            <if test="customerSupplierNo != null and customerSupplierNo != ''">
-                and CUSTOMER_SUPPLIER_NO LIKE '%${customerSupplierNo}%'
-            </if>
-            <if test="customerSupplierName != null and customerSupplierName != ''">
-                and CUSTOMER_SUPPLIER_NAME LIKE '%${customerSupplierName}%'
-            </if>
-            <if test="sourceArea != null and sourceArea != ''">
-                and SOURCE_AREA LIKE '%${sourceArea}%'
-            </if>
-            <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
-                and FORWARDING_UNIT_NO LIKE '%${forwardingUnitNo}%'
-            </if>
-            <if test="forwardingUnitName != null and forwardingUnitName != ''">
-                and FORWARDING_UNIT_NAME LIKE '%${forwardingUnitName}%'
-            </if>
-            <if test="receivingUintNo != null and receivingUintNo != ''">
-                and RECEIVING_UINT_NO LIKE '%${receivingUintNo}%'
-            </if>
-            <if test="receivingUintName != null and receivingUintName != ''">
-                and RECEIVING_UINT_NAME LIKE '%${receivingUintName}%'
-            </if>
-            <if test="materialNo != null and materialNo != ''">
-                and MATERIAL_NO LIKE '%${materialNo}%'
-            </if>
-            <if test="materialName != null and materialName != ''">
-                and MATERIAL_NAME LIKE '%${materialName}%'
-            </if>
-            <if test="specNo != null and specNo != ''">
-                and SPEC_NO LIKE '%${specNo}%'
-            </if>
-            <if test="specName != null and specName != ''">
-                and SPEC_NAME LIKE '%${specName}%'
-            </if>
-            <if test="shipmentGrossWeight != null">
-                and SHIPMENT_GROSS_WEIGHT = #{shipmentGrossWeight}
-            </if>
-            <if test="shipmentNetWeight != null">
-                and SHIPMENT_NET_WEIGHT = #{shipmentNetWeight}
-            </if>
-            <if test="shipmentNum != null">
-                and SHIPMENT_NUM = #{shipmentNum}
-            </if>
-            <if test="addWeightSum != null">
-                and ADD_WEIGHT_SUM = #{addWeightSum}
-            </if>
-            <if test="bindCardNo != null and bindCardNo != ''">
-                and BIND_CARD_NO LIKE '%${bindCardNo}%'
-            </if>
-            <if test="loadPointNo != null and loadPointNo != ''">
-                and LOAD_POINT_NO LIKE '%${loadPointNo}%'
-            </if>
-            <if test="loadPointName != null and loadPointName != ''">
-                and LOAD_POINT_NAME LIKE '%${loadPointName}%'
-            </if>
-            <if test="sampleNo != null and sampleNo != ''">
-                and SAMPLE_NO LIKE '%${sampleNo}%'
-            </if>
-            <if test="sampleVoucher != null and sampleVoucher != ''">
-                and SAMPLE_VOUCHER LIKE '%${sampleVoucher}%'
-            </if>
-            <if test="carrierUnitNo != null and carrierUnitNo != ''">
-                and CARRIER_UNIT_NO LIKE '%${carrierUnitNo}%'
-            </if>
-            <if test="carrierUnitName != null and carrierUnitName != ''">
-                and CARRIER_UNIT_NAME LIKE '%${carrierUnitName}%'
-            </if>
-            <if test="predictionType != null and predictionType != ''">
-                and PREDICTION_TYPE LIKE '%${predictionType}%'
-            </if>
-            <if test="predictionCombination != null and predictionCombination != ''">
-                and PREDICTION_COMBINATION LIKE '%${predictionCombination}%'
-            </if>
-            <if test="meterTypeNo != null and meterTypeNo != ''">
-                and METER_TYPE_NO LIKE '%${meterTypeNo}%'
-            </if>
-            <if test="meterTypeName != null and meterTypeName != ''">
-                and METER_TYPE_NAME LIKE '%${meterTypeName}%'
-            </if>
-            <if test="usedType != null and usedType != ''">
-                and USED_TYPE LIKE '%${usedType}%'
-            </if>
-            <if test="effectiveStartTime != null">
-                and TO_CHAR(EFFECTIVE_START_TIME,'yyyy-MM-dd') = #{effectiveStartTime}
-            </if>
-            <if test="effectiveEndTime != null">
-                and TO_CHAR(EFFECTIVE_END_TIME,'yyyy-MM-dd') = #{effectiveEndTime}
-            </if>
-            <if test="effectiveWeight != null">
-                and EFFECTIVE_WEIGHT = #{effectiveWeight}
-            </if>
-            <if test="effectiveNum != null">
-                and EFFECTIVE_NUM = #{effectiveNum}
-            </if>
-            <if test="meterWeight != null">
-                and METER_WEIGHT = #{meterWeight}
-            </if>
-            <if test="meterNum != null">
-                and METER_NUM = #{meterNum}
-            </if>
-            <if test="railwayNo != null and railwayNo != ''">
-                and RAILWAY_NO LIKE '%${railwayNo}%'
-            </if>
-            <if test="meterProcessNo != null and meterProcessNo != ''">
-                and METER_PROCESS_NO LIKE '%${meterProcessNo}%'
-            </if>
-            <if test="meterProcessEditionNo != null and meterProcessEditionNo != ''">
-                and METER_PROCESS_EDITION_NO LIKE '%${meterProcessEditionNo}%'
-            </if>
-            <if test="memo != null and memo != ''">
-                and MEMO LIKE '%${memo}%'
-            </if>
-            <if test="valueFlag != null and valueFlag != ''">
-                and VALUE_FLAG LIKE '%${valueFlag}%'
-            </if>
-            <if test="usedTime != null">
-                and TO_CHAR(USED_TIME,'yyyy-MM-dd') = #{usedTime}
-            </if>
-            <if test="createManNo != null and createManNo != ''">
-                and CREATE_MAN_NO LIKE '%${createManNo}%'
-            </if>
-            <if test="createManName != null and createManName != ''">
-                and CREATE_MAN_NAME LIKE '%${createManName}%'
-            </if>
-            <if test="createTime != null">
-                and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
-            </if>
-            <if test="updateManNo != null and updateManNo != ''">
-                and UPDATE_MAN_NO LIKE '%${updateManNo}%'
-            </if>
-            <if test="updateManName != null and updateManName != ''">
-                and UPDATE_MAN_NAME LIKE '%${updateManName}%'
-            </if>
-            <if test="updateTime != null">
-                and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
-            </if>
-            <if test="deleteManNo != null and deleteManNo != ''">
-                and DELETE_MAN_NO LIKE '%${deleteManNo}%'
-            </if>
-            <if test="deleteManName != null and deleteManName != ''">
-                and DELETE_MAN_NAME LIKE '%${deleteManName}%'
-            </if>
-            <if test="deleteTime != null">
-                and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
-            </if>
-            <if test="pValueFlag != null and pValueFlag != ''">
-                and P_VALUE_FLAG LIKE '%${pValueFlag}%'
-            </if>
-            <if test="carAllocationTime != null">
-                and TO_CHAR(CAR_ALLOCATION_TIME,'yyyy-MM-dd') = #{carAllocationTime}
-            </if>
-            <if test="isCompleted != null and isCompleted != ''">
-                and IS_COMPLETED LIKE '%${isCompleted}%'
-            </if>
-            <if test="limsSamplingFlag != null and limsSamplingFlag != ''">
-                and LIMS_SAMPLING_FLAG LIKE '%${limsSamplingFlag}%'
-            </if>
-            <if test="heatNo != null and heatNo != ''">
-                and HEAT_NO LIKE '%${heatNo}%'
-            </if>
-            <if test="idNum != null and idNum != ''">
-                and ID_NUM LIKE '%${idNum}%'
-            </if>
-            <if test="predictionSource != null and predictionSource != ''">
-                and PREDICTION_SOURCE LIKE '%${predictionSource}%'
-            </if>
-            <if test="createDepname != null and createDepname != ''">
-                and CREATE_DEPNAME LIKE '%${createDepname}%'
-            </if>
-            <if test="createDepid != null and createDepid != ''">
-                and CREATE_DEPID LIKE '%${createDepid}%'
-            </if>
-            <if test="lineDesc != null and lineDesc != ''">
-                and LINE_DESC LIKE '%${lineDesc}%'
-            </if>
-            <if test="voucherIdentity != null and voucherIdentity != ''">
-                and VOUCHER_IDENTITY LIKE '%${voucherIdentity}%'
-            </if>
-            <if test="voucherItem != null and voucherItem != ''">
-                and VOUCHER_ITEM LIKE '%${voucherItem}%'
-            </if>
-            <if test="businessGroup != null and businessGroup != ''">
-                and BUSINESS_GROUP LIKE '%${businessGroup}%'
-            </if>
-            <if test="tempConveyance != null and tempConveyance != ''">
-                and TEMP_CONVEYANCE LIKE '%${tempConveyance}%'
-            </if>
-            <if test="conveyanceType != null and conveyanceType != ''">
-                and CONVEYANCE_TYPE LIKE '%${conveyanceType}%'
-            </if>
-            <if test="resourceSystem != null and resourceSystem != ''">
-                and RESOURCE_SYSTEM LIKE '%${resourceSystem}%'
-            </if>
-            <if test="groupPackageAmount != null">
-                and GROUP_PACKAGE_AMOUNT = #{groupPackageAmount}
-            </if>
-            <if test="groupPackageUnit != null and groupPackageUnit != ''">
-                and GROUP_PACKAGE_UNIT LIKE '%${groupPackageUnit}%'
-            </if>
-            <if test="packageAmount != null">
-                and PACKAGE_AMOUNT = #{packageAmount}
-            </if>
-            <if test="packageUnit != null and packageUnit != ''">
-                and PACKAGE_UNIT LIKE '%${packageUnit}%'
-            </if>
-            <if test="theoryAmount != null">
-                and THEORY_AMOUNT = #{theoryAmount}
-            </if>
-            <if test="measureBatch != null and measureBatch != ''">
-                and MEASURE_BATCH LIKE '%${measureBatch}%'
-            </if>
-            <if test="measureBatchCount != null">
-                and MEASURE_BATCH_COUNT = #{measureBatchCount}
-            </if>
-            <if test="senderType != null and senderType != ''">
-                and SENDER_TYPE LIKE '%${senderType}%'
-            </if>
-            <if test="senderRemark != null and senderRemark != ''">
-                and SENDER_REMARK LIKE '%${senderRemark}%'
-            </if>
-            <if test="receiverType != null and receiverType != ''">
-                and RECEIVER_TYPE LIKE '%${receiverType}%'
-            </if>
-            <if test="receiverRemark != null and receiverRemark != ''">
-                and RECEIVER_REMARK LIKE '%${receiverRemark}%'
-            </if>
-            <if test="trustDepartmentName != null and trustDepartmentName != ''">
-                and TRUST_DEPARTMENT_NAME LIKE '%${trustDepartmentName}%'
-            </if>
-            <if test="trustDepartment != null and trustDepartment != ''">
-                and TRUST_DEPARTMENT LIKE '%${trustDepartment}%'
-            </if>
-            <if test="trustor != null and trustor != ''">
-                and TRUSTOR LIKE '%${trustor}%'
-            </if>
-            <if test="trustDateTime != null">
-                and TO_CHAR(TRUST_DATE_TIME,'yyyy-MM-dd') = #{trustDateTime}
-            </if>
-            <if test="trustAvailabilityTime != null">
-                and TO_CHAR(TRUST_AVAILABILITY_TIME,'yyyy-MM-dd') = #{trustAvailabilityTime}
-            </if>
-            <if test="trustIp != null and trustIp != ''">
-                and TRUST_IP LIKE '%${trustIp}%'
-            </if>
-            <if test="stationType != null and stationType != ''">
-                and STATION_TYPE LIKE '%${stationType}%'
-            </if>
-            <if test="measureStation != null and measureStation != ''">
-                and MEASURE_STATION LIKE '%${measureStation}%'
-            </if>
-            <if test="measureStationName != null and measureStationName != ''">
-                and MEASURE_STATION_NAME LIKE '%${measureStationName}%'
-            </if>
-            <if test="amountUnit != null and amountUnit != ''">
-                and AMOUNT_UNIT LIKE '%${amountUnit}%'
-            </if>
-            <if test="trustDay != null">
-                and TRUST_DAY = #{trustDay}
-            </if>
-        </where>
-    </sql>
-    <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
-        delete from PRE_TRACK_SCALE
-        where PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR}
-    </delete>
-    <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
-        delete from PRE_TRACK_SCALE
-        where 1!=1
-        <if test="noticeNo != null and noticeNo != ''">
-            or NOTICE_NO = #{noticeNo}
-        </if>
-        <if test="carNo != null and carNo != ''">
-            or CAR_NO = #{carNo}
-        </if>
-        <if test="trailerNo != null and trailerNo != ''">
-            or TRAILER_NO = #{trailerNo}
-        </if>
-        <if test="matterNo != null and matterNo != ''">
-            or MATTER_NO = #{matterNo}
-        </if>
-        <if test="matterName != null and matterName != ''">
-            or MATTER_NAME = #{matterName}
-        </if>
-        <if test="contractNo != null and contractNo != ''">
-            or CONTRACT_NO = #{contractNo}
-        </if>
-        <if test="batchNo != null and batchNo != ''">
-            or BATCH_NO = #{batchNo}
-        </if>
-        <if test="customerSupplierNo != null and customerSupplierNo != ''">
-            or CUSTOMER_SUPPLIER_NO = #{customerSupplierNo}
-        </if>
-        <if test="customerSupplierName != null and customerSupplierName != ''">
-            or CUSTOMER_SUPPLIER_NAME = #{customerSupplierName}
-        </if>
-        <if test="sourceArea != null and sourceArea != ''">
-            or SOURCE_AREA = #{sourceArea}
-        </if>
-        <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
-            or FORWARDING_UNIT_NO = #{forwardingUnitNo}
-        </if>
-        <if test="forwardingUnitName != null and forwardingUnitName != ''">
-            or FORWARDING_UNIT_NAME = #{forwardingUnitName}
-        </if>
-        <if test="receivingUintNo != null and receivingUintNo != ''">
-            or RECEIVING_UINT_NO = #{receivingUintNo}
-        </if>
-        <if test="receivingUintName != null and receivingUintName != ''">
-            or RECEIVING_UINT_NAME = #{receivingUintName}
-        </if>
-        <if test="materialNo != null and materialNo != ''">
-            or MATERIAL_NO = #{materialNo}
-        </if>
-        <if test="materialName != null and materialName != ''">
-            or MATERIAL_NAME = #{materialName}
-        </if>
-        <if test="specNo != null and specNo != ''">
-            or SPEC_NO = #{specNo}
-        </if>
-        <if test="specName != null and specName != ''">
-            or SPEC_NAME = #{specName}
-        </if>
-        <if test="shipmentGrossWeight != null">
-            or SHIPMENT_GROSS_WEIGHT = #{shipmentGrossWeight}
-        </if>
-        <if test="shipmentNetWeight != null">
-            or SHIPMENT_NET_WEIGHT = #{shipmentNetWeight}
-        </if>
-        <if test="shipmentNum != null">
-            or SHIPMENT_NUM = #{shipmentNum}
-        </if>
-        <if test="addWeightSum != null">
-            or ADD_WEIGHT_SUM = #{addWeightSum}
-        </if>
-        <if test="bindCardNo != null and bindCardNo != ''">
-            or BIND_CARD_NO = #{bindCardNo}
-        </if>
-        <if test="loadPointNo != null and loadPointNo != ''">
-            or LOAD_POINT_NO = #{loadPointNo}
-        </if>
-        <if test="loadPointName != null and loadPointName != ''">
-            or LOAD_POINT_NAME = #{loadPointName}
-        </if>
-        <if test="sampleNo != null and sampleNo != ''">
-            or SAMPLE_NO = #{sampleNo}
-        </if>
-        <if test="sampleVoucher != null and sampleVoucher != ''">
-            or SAMPLE_VOUCHER = #{sampleVoucher}
-        </if>
-        <if test="carrierUnitNo != null and carrierUnitNo != ''">
-            or CARRIER_UNIT_NO = #{carrierUnitNo}
-        </if>
-        <if test="carrierUnitName != null and carrierUnitName != ''">
-            or CARRIER_UNIT_NAME = #{carrierUnitName}
-        </if>
-        <if test="predictionType != null and predictionType != ''">
-            or PREDICTION_TYPE = #{predictionType}
-        </if>
-        <if test="predictionCombination != null and predictionCombination != ''">
-            or PREDICTION_COMBINATION = #{predictionCombination}
-        </if>
-        <if test="meterTypeNo != null and meterTypeNo != ''">
-            or METER_TYPE_NO = #{meterTypeNo}
-        </if>
-        <if test="meterTypeName != null and meterTypeName != ''">
-            or METER_TYPE_NAME = #{meterTypeName}
-        </if>
-        <if test="usedType != null and usedType != ''">
-            or USED_TYPE = #{usedType}
-        </if>
-        <if test="effectiveStartTime != null">
-            or TO_CHAR(EFFECTIVE_START_TIME,'yyyy-MM-dd') = '#{effectiveStartTime}'
-        </if>
-        <if test="effectiveEndTime != null">
-            or TO_CHAR(EFFECTIVE_END_TIME,'yyyy-MM-dd') = '#{effectiveEndTime}'
-        </if>
-        <if test="effectiveWeight != null">
-            or EFFECTIVE_WEIGHT = #{effectiveWeight}
-        </if>
-        <if test="effectiveNum != null">
-            or EFFECTIVE_NUM = #{effectiveNum}
-        </if>
-        <if test="meterWeight != null">
-            or METER_WEIGHT = #{meterWeight}
-        </if>
-        <if test="meterNum != null">
-            or METER_NUM = #{meterNum}
-        </if>
-        <if test="railwayNo != null and railwayNo != ''">
-            or RAILWAY_NO = #{railwayNo}
-        </if>
-        <if test="meterProcessNo != null and meterProcessNo != ''">
-            or METER_PROCESS_NO = #{meterProcessNo}
-        </if>
-        <if test="meterProcessEditionNo != null and meterProcessEditionNo != ''">
-            or METER_PROCESS_EDITION_NO = #{meterProcessEditionNo}
-        </if>
-        <if test="memo != null and memo != ''">
-            or MEMO = #{memo}
-        </if>
-        <if test="valueFlag != null and valueFlag != ''">
-            or VALUE_FLAG = #{valueFlag}
-        </if>
-        <if test="usedTime != null">
-            or TO_CHAR(USED_TIME,'yyyy-MM-dd') = '#{usedTime}'
-        </if>
-        <if test="createManNo != null and createManNo != ''">
-            or CREATE_MAN_NO = #{createManNo}
-        </if>
-        <if test="createManName != null and createManName != ''">
-            or CREATE_MAN_NAME = #{createManName}
-        </if>
-        <if test="createTime != null">
-            or TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = '#{createTime}'
-        </if>
-        <if test="updateManNo != null and updateManNo != ''">
-            or UPDATE_MAN_NO = #{updateManNo}
-        </if>
-        <if test="updateManName != null and updateManName != ''">
-            or UPDATE_MAN_NAME = #{updateManName}
-        </if>
-        <if test="updateTime != null">
-            or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
-        </if>
-        <if test="deleteManNo != null and deleteManNo != ''">
-            or DELETE_MAN_NO = #{deleteManNo}
-        </if>
-        <if test="deleteManName != null and deleteManName != ''">
-            or DELETE_MAN_NAME = #{deleteManName}
-        </if>
-        <if test="deleteTime != null">
-            or TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = '#{deleteTime}'
-        </if>
-        <if test="pValueFlag != null and pValueFlag != ''">
-            or P_VALUE_FLAG = #{pValueFlag}
-        </if>
-        <if test="carAllocationTime != null">
-            or TO_CHAR(CAR_ALLOCATION_TIME,'yyyy-MM-dd') = '#{carAllocationTime}'
-        </if>
-        <if test="isCompleted != null and isCompleted != ''">
-            or IS_COMPLETED = #{isCompleted}
-        </if>
-        <if test="limsSamplingFlag != null and limsSamplingFlag != ''">
-            or LIMS_SAMPLING_FLAG = #{limsSamplingFlag}
-        </if>
-        <if test="heatNo != null and heatNo != ''">
-            or HEAT_NO = #{heatNo}
-        </if>
-        <if test="idNum != null and idNum != ''">
-            or ID_NUM = #{idNum}
-        </if>
-        <if test="predictionSource != null and predictionSource != ''">
-            or PREDICTION_SOURCE = #{predictionSource}
-        </if>
-        <if test="createDepname != null and createDepname != ''">
-            or CREATE_DEPNAME = #{createDepname}
-        </if>
-        <if test="createDepid != null and createDepid != ''">
-            or CREATE_DEPID = #{createDepid}
-        </if>
-        <if test="lineDesc != null and lineDesc != ''">
-            or LINE_DESC = #{lineDesc}
-        </if>
-        <if test="voucherIdentity != null and voucherIdentity != ''">
-            or VOUCHER_IDENTITY = #{voucherIdentity}
-        </if>
-        <if test="voucherItem != null and voucherItem != ''">
-            or VOUCHER_ITEM = #{voucherItem}
-        </if>
-        <if test="businessGroup != null and businessGroup != ''">
-            or BUSINESS_GROUP = #{businessGroup}
-        </if>
-        <if test="tempConveyance != null and tempConveyance != ''">
-            or TEMP_CONVEYANCE = #{tempConveyance}
-        </if>
-        <if test="conveyanceType != null and conveyanceType != ''">
-            or CONVEYANCE_TYPE = #{conveyanceType}
-        </if>
-        <if test="resourceSystem != null and resourceSystem != ''">
-            or RESOURCE_SYSTEM = #{resourceSystem}
-        </if>
-        <if test="groupPackageAmount != null">
-            or GROUP_PACKAGE_AMOUNT = #{groupPackageAmount}
-        </if>
-        <if test="groupPackageUnit != null and groupPackageUnit != ''">
-            or GROUP_PACKAGE_UNIT = #{groupPackageUnit}
-        </if>
-        <if test="packageAmount != null">
-            or PACKAGE_AMOUNT = #{packageAmount}
-        </if>
-        <if test="packageUnit != null and packageUnit != ''">
-            or PACKAGE_UNIT = #{packageUnit}
-        </if>
-        <if test="theoryAmount != null">
-            or THEORY_AMOUNT = #{theoryAmount}
-        </if>
-        <if test="measureBatch != null and measureBatch != ''">
-            or MEASURE_BATCH = #{measureBatch}
-        </if>
-        <if test="measureBatchCount != null">
-            or MEASURE_BATCH_COUNT = #{measureBatchCount}
-        </if>
-        <if test="senderType != null and senderType != ''">
-            or SENDER_TYPE = #{senderType}
-        </if>
-        <if test="senderRemark != null and senderRemark != ''">
-            or SENDER_REMARK = #{senderRemark}
-        </if>
-        <if test="receiverType != null and receiverType != ''">
-            or RECEIVER_TYPE = #{receiverType}
-        </if>
-        <if test="receiverRemark != null and receiverRemark != ''">
-            or RECEIVER_REMARK = #{receiverRemark}
-        </if>
-        <if test="trustDepartmentName != null and trustDepartmentName != ''">
-            or TRUST_DEPARTMENT_NAME = #{trustDepartmentName}
-        </if>
-        <if test="trustDepartment != null and trustDepartment != ''">
-            or TRUST_DEPARTMENT = #{trustDepartment}
-        </if>
-        <if test="trustor != null and trustor != ''">
-            or TRUSTOR = #{trustor}
-        </if>
-        <if test="trustDateTime != null">
-            or TO_CHAR(TRUST_DATE_TIME,'yyyy-MM-dd') = '#{trustDateTime}'
-        </if>
-        <if test="trustAvailabilityTime != null">
-            or TO_CHAR(TRUST_AVAILABILITY_TIME,'yyyy-MM-dd') = '#{trustAvailabilityTime}'
-        </if>
-        <if test="trustIp != null and trustIp != ''">
-            or TRUST_IP = #{trustIp}
-        </if>
-        <if test="stationType != null and stationType != ''">
-            or STATION_TYPE = #{stationType}
-        </if>
-        <if test="measureStation != null and measureStation != ''">
-            or MEASURE_STATION = #{measureStation}
-        </if>
-        <if test="measureStationName != null and measureStationName != ''">
-            or MEASURE_STATION_NAME = #{measureStationName}
-        </if>
-        <if test="amountUnit != null and amountUnit != ''">
-            or AMOUNT_UNIT = #{amountUnit}
-        </if>
-        <if test="trustDay != null">
-            or TRUST_DAY = #{trustDay}
-        </if>
-    </delete>
-    <insert id="insert" parameterType="com.steerinfo.pretrack.pretrackscale.model.PreTrackScale">
-        insert into PRE_TRACK_SCALE (PREDICTION_NO, NOTICE_NO, CAR_NO,
-                                     TRAILER_NO, MATTER_NO, MATTER_NAME,
-                                     CONTRACT_NO, BATCH_NO, CUSTOMER_SUPPLIER_NO,
-                                     CUSTOMER_SUPPLIER_NAME, SOURCE_AREA, FORWARDING_UNIT_NO,
-                                     FORWARDING_UNIT_NAME, RECEIVING_UINT_NO, RECEIVING_UINT_NAME,
-                                     MATERIAL_NO, MATERIAL_NAME, SPEC_NO,
-                                     SPEC_NAME, SHIPMENT_GROSS_WEIGHT, SHIPMENT_NET_WEIGHT,
-                                     SHIPMENT_NUM, ADD_WEIGHT_SUM, BIND_CARD_NO,
-                                     LOAD_POINT_NO, LOAD_POINT_NAME, SAMPLE_NO,
-                                     SAMPLE_VOUCHER, CARRIER_UNIT_NO, CARRIER_UNIT_NAME,
-                                     PREDICTION_TYPE, PREDICTION_COMBINATION,
-                                     METER_TYPE_NO, METER_TYPE_NAME, USED_TYPE,
-                                     EFFECTIVE_START_TIME, EFFECTIVE_END_TIME,
-                                     EFFECTIVE_WEIGHT, EFFECTIVE_NUM, METER_WEIGHT,
-                                     METER_NUM, RAILWAY_NO, METER_PROCESS_NO,
-                                     METER_PROCESS_EDITION_NO, MEMO, VALUE_FLAG,
-                                     USED_TIME, CREATE_MAN_NO, CREATE_MAN_NAME,
-                                     CREATE_TIME, UPDATE_MAN_NO, UPDATE_MAN_NAME,
-                                     UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME,
-                                     DELETE_TIME, P_VALUE_FLAG, CAR_ALLOCATION_TIME,
-                                     IS_COMPLETED, LIMS_SAMPLING_FLAG, HEAT_NO,
-                                     ID_NUM, PREDICTION_SOURCE, CREATE_DEPNAME,
-                                     CREATE_DEPID, LINE_DESC, VOUCHER_IDENTITY,
-                                     VOUCHER_ITEM, BUSINESS_GROUP, TEMP_CONVEYANCE,
-                                     CONVEYANCE_TYPE, RESOURCE_SYSTEM, GROUP_PACKAGE_AMOUNT,
-                                     GROUP_PACKAGE_UNIT, PACKAGE_AMOUNT, PACKAGE_UNIT,
-                                     THEORY_AMOUNT, MEASURE_BATCH, MEASURE_BATCH_COUNT,
-                                     SENDER_TYPE, SENDER_REMARK, RECEIVER_TYPE,
-                                     RECEIVER_REMARK, TRUST_DEPARTMENT_NAME, TRUST_DEPARTMENT,
-                                     TRUSTOR, TRUST_DATE_TIME, TRUST_AVAILABILITY_TIME,
-                                     TRUST_IP, STATION_TYPE, MEASURE_STATION,
-                                     MEASURE_STATION_NAME, AMOUNT_UNIT, TRUST_DAY
-        )
-        values (#{predictionNo,jdbcType=VARCHAR}, #{noticeNo,jdbcType=VARCHAR}, #{carNo,jdbcType=VARCHAR},
-                #{trailerNo,jdbcType=VARCHAR}, #{matterNo,jdbcType=VARCHAR}, #{matterName,jdbcType=VARCHAR},
-                #{contractNo,jdbcType=VARCHAR}, #{batchNo,jdbcType=VARCHAR}, #{customerSupplierNo,jdbcType=VARCHAR},
-                #{customerSupplierName,jdbcType=VARCHAR}, #{sourceArea,jdbcType=VARCHAR}, #{forwardingUnitNo,jdbcType=VARCHAR},
-                #{forwardingUnitName,jdbcType=VARCHAR}, #{receivingUintNo,jdbcType=VARCHAR}, #{receivingUintName,jdbcType=VARCHAR},
-                #{materialNo,jdbcType=VARCHAR}, #{materialName,jdbcType=VARCHAR}, #{specNo,jdbcType=VARCHAR},
-                #{specName,jdbcType=VARCHAR}, #{shipmentGrossWeight,jdbcType=DECIMAL}, #{shipmentNetWeight,jdbcType=DECIMAL},
-                #{shipmentNum,jdbcType=DECIMAL}, #{addWeightSum,jdbcType=DECIMAL}, #{bindCardNo,jdbcType=VARCHAR},
-                #{loadPointNo,jdbcType=VARCHAR}, #{loadPointName,jdbcType=VARCHAR}, #{sampleNo,jdbcType=VARCHAR},
-                #{sampleVoucher,jdbcType=VARCHAR}, #{carrierUnitNo,jdbcType=VARCHAR}, #{carrierUnitName,jdbcType=VARCHAR},
-                #{predictionType,jdbcType=VARCHAR}, #{predictionCombination,jdbcType=VARCHAR},
-                #{meterTypeNo,jdbcType=VARCHAR}, #{meterTypeName,jdbcType=VARCHAR}, #{usedType,jdbcType=VARCHAR},
-                #{effectiveStartTime,jdbcType=TIMESTAMP}, #{effectiveEndTime,jdbcType=TIMESTAMP},
-                #{effectiveWeight,jdbcType=DECIMAL}, #{effectiveNum,jdbcType=DECIMAL}, #{meterWeight,jdbcType=DECIMAL},
-                #{meterNum,jdbcType=DECIMAL}, #{railwayNo,jdbcType=VARCHAR}, #{meterProcessNo,jdbcType=VARCHAR},
-                #{meterProcessEditionNo,jdbcType=VARCHAR}, #{memo,jdbcType=VARCHAR}, #{valueFlag,jdbcType=VARCHAR},
-                #{usedTime,jdbcType=TIMESTAMP}, #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR},
-                #{createTime,jdbcType=TIMESTAMP}, #{updateManNo,jdbcType=VARCHAR}, #{updateManName,jdbcType=VARCHAR},
-                #{updateTime,jdbcType=TIMESTAMP}, #{deleteManNo,jdbcType=VARCHAR}, #{deleteManName,jdbcType=VARCHAR},
-                #{deleteTime,jdbcType=TIMESTAMP}, #{pValueFlag,jdbcType=VARCHAR}, #{carAllocationTime,jdbcType=TIMESTAMP},
-                #{isCompleted,jdbcType=VARCHAR}, #{limsSamplingFlag,jdbcType=VARCHAR}, #{heatNo,jdbcType=VARCHAR},
-                #{idNum,jdbcType=VARCHAR}, #{predictionSource,jdbcType=VARCHAR}, #{createDepname,jdbcType=VARCHAR},
-                #{createDepid,jdbcType=VARCHAR}, #{lineDesc,jdbcType=VARCHAR}, #{voucherIdentity,jdbcType=VARCHAR},
-                #{voucherItem,jdbcType=VARCHAR}, #{businessGroup,jdbcType=VARCHAR}, #{tempConveyance,jdbcType=VARCHAR},
-                #{conveyanceType,jdbcType=VARCHAR}, #{resourceSystem,jdbcType=VARCHAR}, #{groupPackageAmount,jdbcType=DECIMAL},
-                #{groupPackageUnit,jdbcType=VARCHAR}, #{packageAmount,jdbcType=DECIMAL}, #{packageUnit,jdbcType=VARCHAR},
-                #{theoryAmount,jdbcType=DECIMAL}, #{measureBatch,jdbcType=VARCHAR}, #{measureBatchCount,jdbcType=DECIMAL},
-                #{senderType,jdbcType=VARCHAR}, #{senderRemark,jdbcType=VARCHAR}, #{receiverType,jdbcType=VARCHAR},
-                #{receiverRemark,jdbcType=VARCHAR}, #{trustDepartmentName,jdbcType=VARCHAR}, #{trustDepartment,jdbcType=VARCHAR},
-                #{trustor,jdbcType=VARCHAR}, #{trustDateTime,jdbcType=TIMESTAMP}, #{trustAvailabilityTime,jdbcType=TIMESTAMP},
-                #{trustIp,jdbcType=VARCHAR}, #{stationType,jdbcType=VARCHAR}, #{measureStation,jdbcType=VARCHAR},
-                #{measureStationName,jdbcType=VARCHAR}, #{amountUnit,jdbcType=VARCHAR}, #{trustDay,jdbcType=DECIMAL}
-               )
-    </insert>
-    <insert id="insertSelective" parameterType="com.steerinfo.pretrack.pretrackscale.model.PreTrackScale">
-        insert into PRE_TRACK_SCALE
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="predictionNo != null">
-                PREDICTION_NO,
-            </if>
-            <if test="noticeNo != null">
-                NOTICE_NO,
-            </if>
-            <if test="carNo != null">
-                CAR_NO,
-            </if>
-            <if test="trailerNo != null">
-                TRAILER_NO,
-            </if>
-            <if test="matterNo != null">
-                MATTER_NO,
-            </if>
-            <if test="matterName != null">
-                MATTER_NAME,
-            </if>
-            <if test="contractNo != null">
-                CONTRACT_NO,
-            </if>
-            <if test="batchNo != null">
-                BATCH_NO,
-            </if>
-            <if test="customerSupplierNo != null">
-                CUSTOMER_SUPPLIER_NO,
-            </if>
-            <if test="customerSupplierName != null">
-                CUSTOMER_SUPPLIER_NAME,
-            </if>
-            <if test="sourceArea != null">
-                SOURCE_AREA,
-            </if>
-            <if test="forwardingUnitNo != null">
-                FORWARDING_UNIT_NO,
-            </if>
-            <if test="forwardingUnitName != null">
-                FORWARDING_UNIT_NAME,
-            </if>
-            <if test="receivingUintNo != null">
-                RECEIVING_UINT_NO,
-            </if>
-            <if test="receivingUintName != null">
-                RECEIVING_UINT_NAME,
-            </if>
-            <if test="materialNo != null">
-                MATERIAL_NO,
-            </if>
-            <if test="materialName != null">
-                MATERIAL_NAME,
-            </if>
-            <if test="specNo != null">
-                SPEC_NO,
-            </if>
-            <if test="specName != null">
-                SPEC_NAME,
-            </if>
-            <if test="shipmentGrossWeight != null">
-                SHIPMENT_GROSS_WEIGHT,
-            </if>
-            <if test="shipmentNetWeight != null">
-                SHIPMENT_NET_WEIGHT,
-            </if>
-            <if test="shipmentNum != null">
-                SHIPMENT_NUM,
-            </if>
-            <if test="addWeightSum != null">
-                ADD_WEIGHT_SUM,
-            </if>
-            <if test="bindCardNo != null">
-                BIND_CARD_NO,
-            </if>
-            <if test="loadPointNo != null">
-                LOAD_POINT_NO,
-            </if>
-            <if test="loadPointName != null">
-                LOAD_POINT_NAME,
-            </if>
-            <if test="sampleNo != null">
-                SAMPLE_NO,
-            </if>
-            <if test="sampleVoucher != null">
-                SAMPLE_VOUCHER,
-            </if>
-            <if test="carrierUnitNo != null">
-                CARRIER_UNIT_NO,
-            </if>
-            <if test="carrierUnitName != null">
-                CARRIER_UNIT_NAME,
-            </if>
-            <if test="predictionType != null">
-                PREDICTION_TYPE,
-            </if>
-            <if test="predictionCombination != null">
-                PREDICTION_COMBINATION,
-            </if>
-            <if test="meterTypeNo != null">
-                METER_TYPE_NO,
-            </if>
-            <if test="meterTypeName != null">
-                METER_TYPE_NAME,
-            </if>
-            <if test="usedType != null">
-                USED_TYPE,
-            </if>
-            <if test="effectiveStartTime != null">
-                EFFECTIVE_START_TIME,
-            </if>
-            <if test="effectiveEndTime != null">
-                EFFECTIVE_END_TIME,
-            </if>
-            <if test="effectiveWeight != null">
-                EFFECTIVE_WEIGHT,
-            </if>
-            <if test="effectiveNum != null">
-                EFFECTIVE_NUM,
-            </if>
-            <if test="meterWeight != null">
-                METER_WEIGHT,
-            </if>
-            <if test="meterNum != null">
-                METER_NUM,
-            </if>
-            <if test="railwayNo != null">
-                RAILWAY_NO,
-            </if>
-            <if test="meterProcessNo != null">
-                METER_PROCESS_NO,
-            </if>
-            <if test="meterProcessEditionNo != null">
-                METER_PROCESS_EDITION_NO,
-            </if>
-            <if test="memo != null">
-                MEMO,
-            </if>
-            <if test="valueFlag != null">
-                VALUE_FLAG,
-            </if>
-            <if test="usedTime != null">
-                USED_TIME,
-            </if>
-            <if test="createManNo != null">
-                CREATE_MAN_NO,
-            </if>
-            <if test="createManName != null">
-                CREATE_MAN_NAME,
-            </if>
-            <if test="createTime != null">
-                CREATE_TIME,
-            </if>
-            <if test="updateManNo != null">
-                UPDATE_MAN_NO,
-            </if>
-            <if test="updateManName != null">
-                UPDATE_MAN_NAME,
-            </if>
-            <if test="updateTime != null">
-                UPDATE_TIME,
-            </if>
-            <if test="deleteManNo != null">
-                DELETE_MAN_NO,
-            </if>
-            <if test="deleteManName != null">
-                DELETE_MAN_NAME,
-            </if>
-            <if test="deleteTime != null">
-                DELETE_TIME,
-            </if>
-            <if test="pValueFlag != null">
-                P_VALUE_FLAG,
-            </if>
-            <if test="carAllocationTime != null">
-                CAR_ALLOCATION_TIME,
-            </if>
-            <if test="isCompleted != null">
-                IS_COMPLETED,
-            </if>
-            <if test="limsSamplingFlag != null">
-                LIMS_SAMPLING_FLAG,
-            </if>
-            <if test="heatNo != null">
-                HEAT_NO,
-            </if>
-            <if test="idNum != null">
-                ID_NUM,
-            </if>
-            <if test="predictionSource != null">
-                PREDICTION_SOURCE,
-            </if>
-            <if test="createDepname != null">
-                CREATE_DEPNAME,
-            </if>
-            <if test="createDepid != null">
-                CREATE_DEPID,
-            </if>
-            <if test="lineDesc != null">
-                LINE_DESC,
-            </if>
-            <if test="voucherIdentity != null">
-                VOUCHER_IDENTITY,
-            </if>
-            <if test="voucherItem != null">
-                VOUCHER_ITEM,
-            </if>
-            <if test="businessGroup != null">
-                BUSINESS_GROUP,
-            </if>
-            <if test="tempConveyance != null">
-                TEMP_CONVEYANCE,
-            </if>
-            <if test="conveyanceType != null">
-                CONVEYANCE_TYPE,
-            </if>
-            <if test="resourceSystem != null">
-                RESOURCE_SYSTEM,
-            </if>
-            <if test="groupPackageAmount != null">
-                GROUP_PACKAGE_AMOUNT,
-            </if>
-            <if test="groupPackageUnit != null">
-                GROUP_PACKAGE_UNIT,
-            </if>
-            <if test="packageAmount != null">
-                PACKAGE_AMOUNT,
-            </if>
-            <if test="packageUnit != null">
-                PACKAGE_UNIT,
-            </if>
-            <if test="theoryAmount != null">
-                THEORY_AMOUNT,
-            </if>
-            <if test="measureBatch != null">
-                MEASURE_BATCH,
-            </if>
-            <if test="measureBatchCount != null">
-                MEASURE_BATCH_COUNT,
-            </if>
-            <if test="senderType != null">
-                SENDER_TYPE,
-            </if>
-            <if test="senderRemark != null">
-                SENDER_REMARK,
-            </if>
-            <if test="receiverType != null">
-                RECEIVER_TYPE,
-            </if>
-            <if test="receiverRemark != null">
-                RECEIVER_REMARK,
-            </if>
-            <if test="trustDepartmentName != null">
-                TRUST_DEPARTMENT_NAME,
-            </if>
-            <if test="trustDepartment != null">
-                TRUST_DEPARTMENT,
-            </if>
-            <if test="trustor != null">
-                TRUSTOR,
-            </if>
-            <if test="trustDateTime != null">
-                TRUST_DATE_TIME,
-            </if>
-            <if test="trustAvailabilityTime != null">
-                TRUST_AVAILABILITY_TIME,
-            </if>
-            <if test="trustIp != null">
-                TRUST_IP,
-            </if>
-            <if test="stationType != null">
-                STATION_TYPE,
-            </if>
-            <if test="measureStation != null">
-                MEASURE_STATION,
-            </if>
-            <if test="measureStationName != null">
-                MEASURE_STATION_NAME,
-            </if>
-            <if test="amountUnit != null">
-                AMOUNT_UNIT,
-            </if>
-            <if test="trustDay != null">
-                TRUST_DAY,
-            </if>
-        </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="predictionNo != null">
-                #{predictionNo,jdbcType=VARCHAR},
-            </if>
-            <if test="noticeNo != null">
-                #{noticeNo,jdbcType=VARCHAR},
-            </if>
-            <if test="carNo != null">
-                #{carNo,jdbcType=VARCHAR},
-            </if>
-            <if test="trailerNo != null">
-                #{trailerNo,jdbcType=VARCHAR},
-            </if>
-            <if test="matterNo != null">
-                #{matterNo,jdbcType=VARCHAR},
-            </if>
-            <if test="matterName != null">
-                #{matterName,jdbcType=VARCHAR},
-            </if>
-            <if test="contractNo != null">
-                #{contractNo,jdbcType=VARCHAR},
-            </if>
-            <if test="batchNo != null">
-                #{batchNo,jdbcType=VARCHAR},
-            </if>
-            <if test="customerSupplierNo != null">
-                #{customerSupplierNo,jdbcType=VARCHAR},
-            </if>
-            <if test="customerSupplierName != null">
-                #{customerSupplierName,jdbcType=VARCHAR},
-            </if>
-            <if test="sourceArea != null">
-                #{sourceArea,jdbcType=VARCHAR},
-            </if>
-            <if test="forwardingUnitNo != null">
-                #{forwardingUnitNo,jdbcType=VARCHAR},
-            </if>
-            <if test="forwardingUnitName != null">
-                #{forwardingUnitName,jdbcType=VARCHAR},
-            </if>
-            <if test="receivingUintNo != null">
-                #{receivingUintNo,jdbcType=VARCHAR},
-            </if>
-            <if test="receivingUintName != null">
-                #{receivingUintName,jdbcType=VARCHAR},
-            </if>
-            <if test="materialNo != null">
-                #{materialNo,jdbcType=VARCHAR},
-            </if>
-            <if test="materialName != null">
-                #{materialName,jdbcType=VARCHAR},
-            </if>
-            <if test="specNo != null">
-                #{specNo,jdbcType=VARCHAR},
-            </if>
-            <if test="specName != null">
-                #{specName,jdbcType=VARCHAR},
-            </if>
-            <if test="shipmentGrossWeight != null">
-                #{shipmentGrossWeight,jdbcType=DECIMAL},
-            </if>
-            <if test="shipmentNetWeight != null">
-                #{shipmentNetWeight,jdbcType=DECIMAL},
-            </if>
-            <if test="shipmentNum != null">
-                #{shipmentNum,jdbcType=DECIMAL},
-            </if>
-            <if test="addWeightSum != null">
-                #{addWeightSum,jdbcType=DECIMAL},
-            </if>
-            <if test="bindCardNo != null">
-                #{bindCardNo,jdbcType=VARCHAR},
-            </if>
-            <if test="loadPointNo != null">
-                #{loadPointNo,jdbcType=VARCHAR},
-            </if>
-            <if test="loadPointName != null">
-                #{loadPointName,jdbcType=VARCHAR},
-            </if>
-            <if test="sampleNo != null">
-                #{sampleNo,jdbcType=VARCHAR},
-            </if>
-            <if test="sampleVoucher != null">
-                #{sampleVoucher,jdbcType=VARCHAR},
-            </if>
-            <if test="carrierUnitNo != null">
-                #{carrierUnitNo,jdbcType=VARCHAR},
-            </if>
-            <if test="carrierUnitName != null">
-                #{carrierUnitName,jdbcType=VARCHAR},
-            </if>
-            <if test="predictionType != null">
-                #{predictionType,jdbcType=VARCHAR},
-            </if>
-            <if test="predictionCombination != null">
-                #{predictionCombination,jdbcType=VARCHAR},
-            </if>
-            <if test="meterTypeNo != null">
-                #{meterTypeNo,jdbcType=VARCHAR},
-            </if>
-            <if test="meterTypeName != null">
-                #{meterTypeName,jdbcType=VARCHAR},
-            </if>
-            <if test="usedType != null">
-                #{usedType,jdbcType=VARCHAR},
-            </if>
-            <if test="effectiveStartTime != null">
-                #{effectiveStartTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="effectiveEndTime != null">
-                #{effectiveEndTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="effectiveWeight != null">
-                #{effectiveWeight,jdbcType=DECIMAL},
-            </if>
-            <if test="effectiveNum != null">
-                #{effectiveNum,jdbcType=DECIMAL},
-            </if>
-            <if test="meterWeight != null">
-                #{meterWeight,jdbcType=DECIMAL},
-            </if>
-            <if test="meterNum != null">
-                #{meterNum,jdbcType=DECIMAL},
-            </if>
-            <if test="railwayNo != null">
-                #{railwayNo,jdbcType=VARCHAR},
-            </if>
-            <if test="meterProcessNo != null">
-                #{meterProcessNo,jdbcType=VARCHAR},
-            </if>
-            <if test="meterProcessEditionNo != null">
-                #{meterProcessEditionNo,jdbcType=VARCHAR},
-            </if>
-            <if test="memo != null">
-                #{memo,jdbcType=VARCHAR},
-            </if>
-            <if test="valueFlag != null">
-                #{valueFlag,jdbcType=VARCHAR},
-            </if>
-            <if test="usedTime != null">
-                #{usedTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="createManNo != null">
-                #{createManNo,jdbcType=VARCHAR},
-            </if>
-            <if test="createManName != null">
-                #{createManName,jdbcType=VARCHAR},
-            </if>
-            <if test="createTime != null">
-                #{createTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="updateManNo != null">
-                #{updateManNo,jdbcType=VARCHAR},
-            </if>
-            <if test="updateManName != null">
-                #{updateManName,jdbcType=VARCHAR},
-            </if>
-            <if test="updateTime != null">
-                #{updateTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="deleteManNo != null">
-                #{deleteManNo,jdbcType=VARCHAR},
-            </if>
-            <if test="deleteManName != null">
-                #{deleteManName,jdbcType=VARCHAR},
-            </if>
-            <if test="deleteTime != null">
-                #{deleteTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="pValueFlag != null">
-                #{pValueFlag,jdbcType=VARCHAR},
-            </if>
-            <if test="carAllocationTime != null">
-                #{carAllocationTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="isCompleted != null">
-                #{isCompleted,jdbcType=VARCHAR},
-            </if>
-            <if test="limsSamplingFlag != null">
-                #{limsSamplingFlag,jdbcType=VARCHAR},
-            </if>
-            <if test="heatNo != null">
-                #{heatNo,jdbcType=VARCHAR},
-            </if>
-            <if test="idNum != null">
-                #{idNum,jdbcType=VARCHAR},
-            </if>
-            <if test="predictionSource != null">
-                #{predictionSource,jdbcType=VARCHAR},
-            </if>
-            <if test="createDepname != null">
-                #{createDepname,jdbcType=VARCHAR},
-            </if>
-            <if test="createDepid != null">
-                #{createDepid,jdbcType=VARCHAR},
-            </if>
-            <if test="lineDesc != null">
-                #{lineDesc,jdbcType=VARCHAR},
-            </if>
-            <if test="voucherIdentity != null">
-                #{voucherIdentity,jdbcType=VARCHAR},
-            </if>
-            <if test="voucherItem != null">
-                #{voucherItem,jdbcType=VARCHAR},
-            </if>
-            <if test="businessGroup != null">
-                #{businessGroup,jdbcType=VARCHAR},
-            </if>
-            <if test="tempConveyance != null">
-                #{tempConveyance,jdbcType=VARCHAR},
-            </if>
-            <if test="conveyanceType != null">
-                #{conveyanceType,jdbcType=VARCHAR},
-            </if>
-            <if test="resourceSystem != null">
-                #{resourceSystem,jdbcType=VARCHAR},
-            </if>
-            <if test="groupPackageAmount != null">
-                #{groupPackageAmount,jdbcType=DECIMAL},
-            </if>
-            <if test="groupPackageUnit != null">
-                #{groupPackageUnit,jdbcType=VARCHAR},
-            </if>
-            <if test="packageAmount != null">
-                #{packageAmount,jdbcType=DECIMAL},
-            </if>
-            <if test="packageUnit != null">
-                #{packageUnit,jdbcType=VARCHAR},
-            </if>
-            <if test="theoryAmount != null">
-                #{theoryAmount,jdbcType=DECIMAL},
-            </if>
-            <if test="measureBatch != null">
-                #{measureBatch,jdbcType=VARCHAR},
-            </if>
-            <if test="measureBatchCount != null">
-                #{measureBatchCount,jdbcType=DECIMAL},
-            </if>
-            <if test="senderType != null">
-                #{senderType,jdbcType=VARCHAR},
-            </if>
-            <if test="senderRemark != null">
-                #{senderRemark,jdbcType=VARCHAR},
-            </if>
-            <if test="receiverType != null">
-                #{receiverType,jdbcType=VARCHAR},
-            </if>
-            <if test="receiverRemark != null">
-                #{receiverRemark,jdbcType=VARCHAR},
-            </if>
-            <if test="trustDepartmentName != null">
-                #{trustDepartmentName,jdbcType=VARCHAR},
-            </if>
-            <if test="trustDepartment != null">
-                #{trustDepartment,jdbcType=VARCHAR},
-            </if>
-            <if test="trustor != null">
-                #{trustor,jdbcType=VARCHAR},
-            </if>
-            <if test="trustDateTime != null">
-                #{trustDateTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="trustAvailabilityTime != null">
-                #{trustAvailabilityTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="trustIp != null">
-                #{trustIp,jdbcType=VARCHAR},
-            </if>
-            <if test="stationType != null">
-                #{stationType,jdbcType=VARCHAR},
-            </if>
-            <if test="measureStation != null">
-                #{measureStation,jdbcType=VARCHAR},
-            </if>
-            <if test="measureStationName != null">
-                #{measureStationName,jdbcType=VARCHAR},
-            </if>
-            <if test="amountUnit != null">
-                #{amountUnit,jdbcType=VARCHAR},
-            </if>
-            <if test="trustDay != null">
-                #{trustDay,jdbcType=DECIMAL},
-            </if>
-        </trim>
-    </insert>
-    <update id="updateByPrimaryKey" parameterType="com.steerinfo.pretrack.pretrackscale.model.PreTrackScale">
-        update PRE_TRACK_SCALE
-        set NOTICE_NO = #{noticeNo,jdbcType=VARCHAR},
-            CAR_NO = #{carNo,jdbcType=VARCHAR},
-            TRAILER_NO = #{trailerNo,jdbcType=VARCHAR},
-            MATTER_NO = #{matterNo,jdbcType=VARCHAR},
-            MATTER_NAME = #{matterName,jdbcType=VARCHAR},
-            CONTRACT_NO = #{contractNo,jdbcType=VARCHAR},
-            BATCH_NO = #{batchNo,jdbcType=VARCHAR},
-            CUSTOMER_SUPPLIER_NO = #{customerSupplierNo,jdbcType=VARCHAR},
-            CUSTOMER_SUPPLIER_NAME = #{customerSupplierName,jdbcType=VARCHAR},
-            SOURCE_AREA = #{sourceArea,jdbcType=VARCHAR},
-            FORWARDING_UNIT_NO = #{forwardingUnitNo,jdbcType=VARCHAR},
-            FORWARDING_UNIT_NAME = #{forwardingUnitName,jdbcType=VARCHAR},
-            RECEIVING_UINT_NO = #{receivingUintNo,jdbcType=VARCHAR},
-            RECEIVING_UINT_NAME = #{receivingUintName,jdbcType=VARCHAR},
-            MATERIAL_NO = #{materialNo,jdbcType=VARCHAR},
-            MATERIAL_NAME = #{materialName,jdbcType=VARCHAR},
-            SPEC_NO = #{specNo,jdbcType=VARCHAR},
-            SPEC_NAME = #{specName,jdbcType=VARCHAR},
-            SHIPMENT_GROSS_WEIGHT = #{shipmentGrossWeight,jdbcType=DECIMAL},
-            SHIPMENT_NET_WEIGHT = #{shipmentNetWeight,jdbcType=DECIMAL},
-            SHIPMENT_NUM = #{shipmentNum,jdbcType=DECIMAL},
-            ADD_WEIGHT_SUM = #{addWeightSum,jdbcType=DECIMAL},
-            BIND_CARD_NO = #{bindCardNo,jdbcType=VARCHAR},
-            LOAD_POINT_NO = #{loadPointNo,jdbcType=VARCHAR},
-            LOAD_POINT_NAME = #{loadPointName,jdbcType=VARCHAR},
-            SAMPLE_NO = #{sampleNo,jdbcType=VARCHAR},
-            SAMPLE_VOUCHER = #{sampleVoucher,jdbcType=VARCHAR},
-            CARRIER_UNIT_NO = #{carrierUnitNo,jdbcType=VARCHAR},
-            CARRIER_UNIT_NAME = #{carrierUnitName,jdbcType=VARCHAR},
-            PREDICTION_TYPE = #{predictionType,jdbcType=VARCHAR},
-            PREDICTION_COMBINATION = #{predictionCombination,jdbcType=VARCHAR},
-            METER_TYPE_NO = #{meterTypeNo,jdbcType=VARCHAR},
-            METER_TYPE_NAME = #{meterTypeName,jdbcType=VARCHAR},
-            USED_TYPE = #{usedType,jdbcType=VARCHAR},
-            EFFECTIVE_START_TIME = #{effectiveStartTime,jdbcType=TIMESTAMP},
-            EFFECTIVE_END_TIME = #{effectiveEndTime,jdbcType=TIMESTAMP},
-            EFFECTIVE_WEIGHT = #{effectiveWeight,jdbcType=DECIMAL},
-            EFFECTIVE_NUM = #{effectiveNum,jdbcType=DECIMAL},
-            METER_WEIGHT = #{meterWeight,jdbcType=DECIMAL},
-            METER_NUM = #{meterNum,jdbcType=DECIMAL},
-            RAILWAY_NO = #{railwayNo,jdbcType=VARCHAR},
-            METER_PROCESS_NO = #{meterProcessNo,jdbcType=VARCHAR},
-            METER_PROCESS_EDITION_NO = #{meterProcessEditionNo,jdbcType=VARCHAR},
-            MEMO = #{memo,jdbcType=VARCHAR},
-            VALUE_FLAG = #{valueFlag,jdbcType=VARCHAR},
-            USED_TIME = #{usedTime,jdbcType=TIMESTAMP},
-            CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
-            CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
-            CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
-            UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
-            UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
-            UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
-            DELETE_MAN_NO = #{deleteManNo,jdbcType=VARCHAR},
-            DELETE_MAN_NAME = #{deleteManName,jdbcType=VARCHAR},
-            DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
-            P_VALUE_FLAG = #{pValueFlag,jdbcType=VARCHAR},
-            CAR_ALLOCATION_TIME = #{carAllocationTime,jdbcType=TIMESTAMP},
-            IS_COMPLETED = #{isCompleted,jdbcType=VARCHAR},
-            LIMS_SAMPLING_FLAG = #{limsSamplingFlag,jdbcType=VARCHAR},
-            HEAT_NO = #{heatNo,jdbcType=VARCHAR},
-            ID_NUM = #{idNum,jdbcType=VARCHAR},
-            PREDICTION_SOURCE = #{predictionSource,jdbcType=VARCHAR},
-            CREATE_DEPNAME = #{createDepname,jdbcType=VARCHAR},
-            CREATE_DEPID = #{createDepid,jdbcType=VARCHAR},
-            LINE_DESC = #{lineDesc,jdbcType=VARCHAR},
-            VOUCHER_IDENTITY = #{voucherIdentity,jdbcType=VARCHAR},
-            VOUCHER_ITEM = #{voucherItem,jdbcType=VARCHAR},
-            BUSINESS_GROUP = #{businessGroup,jdbcType=VARCHAR},
-            TEMP_CONVEYANCE = #{tempConveyance,jdbcType=VARCHAR},
-            CONVEYANCE_TYPE = #{conveyanceType,jdbcType=VARCHAR},
-            RESOURCE_SYSTEM = #{resourceSystem,jdbcType=VARCHAR},
-            GROUP_PACKAGE_AMOUNT = #{groupPackageAmount,jdbcType=DECIMAL},
-            GROUP_PACKAGE_UNIT = #{groupPackageUnit,jdbcType=VARCHAR},
-            PACKAGE_AMOUNT = #{packageAmount,jdbcType=DECIMAL},
-            PACKAGE_UNIT = #{packageUnit,jdbcType=VARCHAR},
-            THEORY_AMOUNT = #{theoryAmount,jdbcType=DECIMAL},
-            MEASURE_BATCH = #{measureBatch,jdbcType=VARCHAR},
-            MEASURE_BATCH_COUNT = #{measureBatchCount,jdbcType=DECIMAL},
-            SENDER_TYPE = #{senderType,jdbcType=VARCHAR},
-            SENDER_REMARK = #{senderRemark,jdbcType=VARCHAR},
-            RECEIVER_TYPE = #{receiverType,jdbcType=VARCHAR},
-            RECEIVER_REMARK = #{receiverRemark,jdbcType=VARCHAR},
-            TRUST_DEPARTMENT_NAME = #{trustDepartmentName,jdbcType=VARCHAR},
-            TRUST_DEPARTMENT = #{trustDepartment,jdbcType=VARCHAR},
-            TRUSTOR = #{trustor,jdbcType=VARCHAR},
-            TRUST_DATE_TIME = #{trustDateTime,jdbcType=TIMESTAMP},
-            TRUST_AVAILABILITY_TIME = #{trustAvailabilityTime,jdbcType=TIMESTAMP},
-            TRUST_IP = #{trustIp,jdbcType=VARCHAR},
-            STATION_TYPE = #{stationType,jdbcType=VARCHAR},
-            MEASURE_STATION = #{measureStation,jdbcType=VARCHAR},
-            MEASURE_STATION_NAME = #{measureStationName,jdbcType=VARCHAR},
-            AMOUNT_UNIT = #{amountUnit,jdbcType=VARCHAR},
-            TRUST_DAY = #{trustDay,jdbcType=DECIMAL}
-        where PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR}
-    </update>
-    <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.pretrack.pretrackscale.model.PreTrackScale">
-        update PRE_TRACK_SCALE
-        <set>
-            <if test="noticeNo != null">
-                NOTICE_NO = #{noticeNo,jdbcType=VARCHAR},
-            </if>
-            <if test="carNo != null">
-                CAR_NO = #{carNo,jdbcType=VARCHAR},
-            </if>
-            <if test="trailerNo != null">
-                TRAILER_NO = #{trailerNo,jdbcType=VARCHAR},
-            </if>
-            <if test="matterNo != null">
-                MATTER_NO = #{matterNo,jdbcType=VARCHAR},
-            </if>
-            <if test="matterName != null">
-                MATTER_NAME = #{matterName,jdbcType=VARCHAR},
-            </if>
-            <if test="contractNo != null">
-                CONTRACT_NO = #{contractNo,jdbcType=VARCHAR},
-            </if>
-            <if test="batchNo != null">
-                BATCH_NO = #{batchNo,jdbcType=VARCHAR},
-            </if>
-            <if test="customerSupplierNo != null">
-                CUSTOMER_SUPPLIER_NO = #{customerSupplierNo,jdbcType=VARCHAR},
-            </if>
-            <if test="customerSupplierName != null">
-                CUSTOMER_SUPPLIER_NAME = #{customerSupplierName,jdbcType=VARCHAR},
-            </if>
-            <if test="sourceArea != null">
-                SOURCE_AREA = #{sourceArea,jdbcType=VARCHAR},
-            </if>
-            <if test="forwardingUnitNo != null">
-                FORWARDING_UNIT_NO = #{forwardingUnitNo,jdbcType=VARCHAR},
-            </if>
-            <if test="forwardingUnitName != null">
-                FORWARDING_UNIT_NAME = #{forwardingUnitName,jdbcType=VARCHAR},
-            </if>
-            <if test="receivingUintNo != null">
-                RECEIVING_UINT_NO = #{receivingUintNo,jdbcType=VARCHAR},
-            </if>
-            <if test="receivingUintName != null">
-                RECEIVING_UINT_NAME = #{receivingUintName,jdbcType=VARCHAR},
-            </if>
-            <if test="materialNo != null">
-                MATERIAL_NO = #{materialNo,jdbcType=VARCHAR},
-            </if>
-            <if test="materialName != null">
-                MATERIAL_NAME = #{materialName,jdbcType=VARCHAR},
-            </if>
-            <if test="specNo != null">
-                SPEC_NO = #{specNo,jdbcType=VARCHAR},
-            </if>
-            <if test="specName != null">
-                SPEC_NAME = #{specName,jdbcType=VARCHAR},
-            </if>
-            <if test="shipmentGrossWeight != null">
-                SHIPMENT_GROSS_WEIGHT = #{shipmentGrossWeight,jdbcType=DECIMAL},
-            </if>
-            <if test="shipmentNetWeight != null">
-                SHIPMENT_NET_WEIGHT = #{shipmentNetWeight,jdbcType=DECIMAL},
-            </if>
-            <if test="shipmentNum != null">
-                SHIPMENT_NUM = #{shipmentNum,jdbcType=DECIMAL},
-            </if>
-            <if test="addWeightSum != null">
-                ADD_WEIGHT_SUM = #{addWeightSum,jdbcType=DECIMAL},
-            </if>
-            <if test="bindCardNo != null">
-                BIND_CARD_NO = #{bindCardNo,jdbcType=VARCHAR},
-            </if>
-            <if test="loadPointNo != null">
-                LOAD_POINT_NO = #{loadPointNo,jdbcType=VARCHAR},
-            </if>
-            <if test="loadPointName != null">
-                LOAD_POINT_NAME = #{loadPointName,jdbcType=VARCHAR},
-            </if>
-            <if test="sampleNo != null">
-                SAMPLE_NO = #{sampleNo,jdbcType=VARCHAR},
-            </if>
-            <if test="sampleVoucher != null">
-                SAMPLE_VOUCHER = #{sampleVoucher,jdbcType=VARCHAR},
-            </if>
-            <if test="carrierUnitNo != null">
-                CARRIER_UNIT_NO = #{carrierUnitNo,jdbcType=VARCHAR},
-            </if>
-            <if test="carrierUnitName != null">
-                CARRIER_UNIT_NAME = #{carrierUnitName,jdbcType=VARCHAR},
-            </if>
-            <if test="predictionType != null">
-                PREDICTION_TYPE = #{predictionType,jdbcType=VARCHAR},
-            </if>
-            <if test="predictionCombination != null">
-                PREDICTION_COMBINATION = #{predictionCombination,jdbcType=VARCHAR},
-            </if>
-            <if test="meterTypeNo != null">
-                METER_TYPE_NO = #{meterTypeNo,jdbcType=VARCHAR},
-            </if>
-            <if test="meterTypeName != null">
-                METER_TYPE_NAME = #{meterTypeName,jdbcType=VARCHAR},
-            </if>
-            <if test="usedType != null">
-                USED_TYPE = #{usedType,jdbcType=VARCHAR},
-            </if>
-            <if test="effectiveStartTime != null">
-                EFFECTIVE_START_TIME = #{effectiveStartTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="effectiveEndTime != null">
-                EFFECTIVE_END_TIME = #{effectiveEndTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="effectiveWeight != null">
-                EFFECTIVE_WEIGHT = #{effectiveWeight,jdbcType=DECIMAL},
-            </if>
-            <if test="effectiveNum != null">
-                EFFECTIVE_NUM = #{effectiveNum,jdbcType=DECIMAL},
-            </if>
-            <if test="meterWeight != null">
-                METER_WEIGHT = #{meterWeight,jdbcType=DECIMAL},
-            </if>
-            <if test="meterNum != null">
-                METER_NUM = #{meterNum,jdbcType=DECIMAL},
-            </if>
-            <if test="railwayNo != null">
-                RAILWAY_NO = #{railwayNo,jdbcType=VARCHAR},
-            </if>
-            <if test="meterProcessNo != null">
-                METER_PROCESS_NO = #{meterProcessNo,jdbcType=VARCHAR},
-            </if>
-            <if test="meterProcessEditionNo != null">
-                METER_PROCESS_EDITION_NO = #{meterProcessEditionNo,jdbcType=VARCHAR},
-            </if>
-            <if test="memo != null">
-                MEMO = #{memo,jdbcType=VARCHAR},
-            </if>
-            <if test="valueFlag != null">
-                VALUE_FLAG = #{valueFlag,jdbcType=VARCHAR},
-            </if>
-            <if test="usedTime != null">
-                USED_TIME = #{usedTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="createManNo != null">
-                CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
-            </if>
-            <if test="createManName != null">
-                CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
-            </if>
-            <if test="createTime != null">
-                CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="updateManNo != null">
-                UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
-            </if>
-            <if test="updateManName != null">
-                UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
-            </if>
-            <if test="updateTime != null">
-                UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="deleteManNo != null">
-                DELETE_MAN_NO = #{deleteManNo,jdbcType=VARCHAR},
-            </if>
-            <if test="deleteManName != null">
-                DELETE_MAN_NAME = #{deleteManName,jdbcType=VARCHAR},
-            </if>
-            <if test="deleteTime != null">
-                DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="pValueFlag != null">
-                P_VALUE_FLAG = #{pValueFlag,jdbcType=VARCHAR},
-            </if>
-            <if test="carAllocationTime != null">
-                CAR_ALLOCATION_TIME = #{carAllocationTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="isCompleted != null">
-                IS_COMPLETED = #{isCompleted,jdbcType=VARCHAR},
-            </if>
-            <if test="limsSamplingFlag != null">
-                LIMS_SAMPLING_FLAG = #{limsSamplingFlag,jdbcType=VARCHAR},
-            </if>
-            <if test="heatNo != null">
-                HEAT_NO = #{heatNo,jdbcType=VARCHAR},
-            </if>
-            <if test="idNum != null">
-                ID_NUM = #{idNum,jdbcType=VARCHAR},
-            </if>
-            <if test="predictionSource != null">
-                PREDICTION_SOURCE = #{predictionSource,jdbcType=VARCHAR},
-            </if>
-            <if test="createDepname != null">
-                CREATE_DEPNAME = #{createDepname,jdbcType=VARCHAR},
-            </if>
-            <if test="createDepid != null">
-                CREATE_DEPID = #{createDepid,jdbcType=VARCHAR},
-            </if>
-            <if test="lineDesc != null">
-                LINE_DESC = #{lineDesc,jdbcType=VARCHAR},
-            </if>
-            <if test="voucherIdentity != null">
-                VOUCHER_IDENTITY = #{voucherIdentity,jdbcType=VARCHAR},
-            </if>
-            <if test="voucherItem != null">
-                VOUCHER_ITEM = #{voucherItem,jdbcType=VARCHAR},
-            </if>
-            <if test="businessGroup != null">
-                BUSINESS_GROUP = #{businessGroup,jdbcType=VARCHAR},
-            </if>
-            <if test="tempConveyance != null">
-                TEMP_CONVEYANCE = #{tempConveyance,jdbcType=VARCHAR},
-            </if>
-            <if test="conveyanceType != null">
-                CONVEYANCE_TYPE = #{conveyanceType,jdbcType=VARCHAR},
-            </if>
-            <if test="resourceSystem != null">
-                RESOURCE_SYSTEM = #{resourceSystem,jdbcType=VARCHAR},
-            </if>
-            <if test="groupPackageAmount != null">
-                GROUP_PACKAGE_AMOUNT = #{groupPackageAmount,jdbcType=DECIMAL},
-            </if>
-            <if test="groupPackageUnit != null">
-                GROUP_PACKAGE_UNIT = #{groupPackageUnit,jdbcType=VARCHAR},
-            </if>
-            <if test="packageAmount != null">
-                PACKAGE_AMOUNT = #{packageAmount,jdbcType=DECIMAL},
-            </if>
-            <if test="packageUnit != null">
-                PACKAGE_UNIT = #{packageUnit,jdbcType=VARCHAR},
-            </if>
-            <if test="theoryAmount != null">
-                THEORY_AMOUNT = #{theoryAmount,jdbcType=DECIMAL},
-            </if>
-            <if test="measureBatch != null">
-                MEASURE_BATCH = #{measureBatch,jdbcType=VARCHAR},
-            </if>
-            <if test="measureBatchCount != null">
-                MEASURE_BATCH_COUNT = #{measureBatchCount,jdbcType=DECIMAL},
-            </if>
-            <if test="senderType != null">
-                SENDER_TYPE = #{senderType,jdbcType=VARCHAR},
-            </if>
-            <if test="senderRemark != null">
-                SENDER_REMARK = #{senderRemark,jdbcType=VARCHAR},
-            </if>
-            <if test="receiverType != null">
-                RECEIVER_TYPE = #{receiverType,jdbcType=VARCHAR},
-            </if>
-            <if test="receiverRemark != null">
-                RECEIVER_REMARK = #{receiverRemark,jdbcType=VARCHAR},
-            </if>
-            <if test="trustDepartmentName != null">
-                TRUST_DEPARTMENT_NAME = #{trustDepartmentName,jdbcType=VARCHAR},
-            </if>
-            <if test="trustDepartment != null">
-                TRUST_DEPARTMENT = #{trustDepartment,jdbcType=VARCHAR},
-            </if>
-            <if test="trustor != null">
-                TRUSTOR = #{trustor,jdbcType=VARCHAR},
-            </if>
-            <if test="trustDateTime != null">
-                TRUST_DATE_TIME = #{trustDateTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="trustAvailabilityTime != null">
-                TRUST_AVAILABILITY_TIME = #{trustAvailabilityTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="trustIp != null">
-                TRUST_IP = #{trustIp,jdbcType=VARCHAR},
-            </if>
-            <if test="stationType != null">
-                STATION_TYPE = #{stationType,jdbcType=VARCHAR},
-            </if>
-            <if test="measureStation != null">
-                MEASURE_STATION = #{measureStation,jdbcType=VARCHAR},
-            </if>
-            <if test="measureStationName != null">
-                MEASURE_STATION_NAME = #{measureStationName,jdbcType=VARCHAR},
-            </if>
-            <if test="amountUnit != null">
-                AMOUNT_UNIT = #{amountUnit,jdbcType=VARCHAR},
-            </if>
-            <if test="trustDay != null">
-                TRUST_DAY = #{trustDay,jdbcType=DECIMAL},
-            </if>
-        </set>
-        where PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR}
-    </update>
-    <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
-        <include refid="select"/>
-        where PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR}
-    </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 PRE_TRACK_SCALE
-        (PREDICTION_NO,
-        NOTICE_NO, CAR_NO, TRAILER_NO,
-        MATTER_NO, MATTER_NAME, CONTRACT_NO,
-        BATCH_NO, CUSTOMER_SUPPLIER_NO,
-        CUSTOMER_SUPPLIER_NAME, SOURCE_AREA,
-        FORWARDING_UNIT_NO, FORWARDING_UNIT_NAME,
-        RECEIVING_UINT_NO, RECEIVING_UINT_NAME,
-        MATERIAL_NO, MATERIAL_NAME, SPEC_NO,
-        SPEC_NAME, SHIPMENT_GROSS_WEIGHT,
-        SHIPMENT_NET_WEIGHT, SHIPMENT_NUM,
-        ADD_WEIGHT_SUM, BIND_CARD_NO, LOAD_POINT_NO,
-        LOAD_POINT_NAME, SAMPLE_NO, SAMPLE_VOUCHER,
-        CARRIER_UNIT_NO, CARRIER_UNIT_NAME,
-        PREDICTION_TYPE, PREDICTION_COMBINATION,
-        METER_TYPE_NO, METER_TYPE_NAME, USED_TYPE,
-        EFFECTIVE_START_TIME, EFFECTIVE_END_TIME,
-        EFFECTIVE_WEIGHT, EFFECTIVE_NUM,
-        METER_WEIGHT, METER_NUM, RAILWAY_NO,
-        METER_PROCESS_NO, METER_PROCESS_EDITION_NO,
-        MEMO, VALUE_FLAG, USED_TIME,
-        CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME,
-        UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME,
-        DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME,
-        P_VALUE_FLAG, CAR_ALLOCATION_TIME,
-        IS_COMPLETED, LIMS_SAMPLING_FLAG,
-        HEAT_NO, ID_NUM, PREDICTION_SOURCE,
-        CREATE_DEPNAME, CREATE_DEPID, LINE_DESC,
-        VOUCHER_IDENTITY, VOUCHER_ITEM,
-        BUSINESS_GROUP, TEMP_CONVEYANCE,
-        CONVEYANCE_TYPE, RESOURCE_SYSTEM,
-        GROUP_PACKAGE_AMOUNT, GROUP_PACKAGE_UNIT,
-        PACKAGE_AMOUNT, PACKAGE_UNIT, THEORY_AMOUNT,
-        MEASURE_BATCH, MEASURE_BATCH_COUNT,
-        SENDER_TYPE, SENDER_REMARK, RECEIVER_TYPE,
-        RECEIVER_REMARK, TRUST_DEPARTMENT_NAME,
-        TRUST_DEPARTMENT, TRUSTOR, TRUST_DATE_TIME,
-        TRUST_AVAILABILITY_TIME, TRUST_IP,
-        STATION_TYPE, MEASURE_STATION,
-        MEASURE_STATION_NAME, AMOUNT_UNIT,
-        TRUST_DAY)
-        ( <foreach collection="list" item="item" separator="union all">
-        select
-        #{item.predictionNo,jdbcType=VARCHAR},
-        #{item.noticeNo,jdbcType=VARCHAR}, #{item.carNo,jdbcType=VARCHAR}, #{item.trailerNo,jdbcType=VARCHAR},
-        #{item.matterNo,jdbcType=VARCHAR}, #{item.matterName,jdbcType=VARCHAR}, #{item.contractNo,jdbcType=VARCHAR},
-        #{item.batchNo,jdbcType=VARCHAR}, #{item.customerSupplierNo,jdbcType=VARCHAR},
-        #{item.customerSupplierName,jdbcType=VARCHAR}, #{item.sourceArea,jdbcType=VARCHAR},
-        #{item.forwardingUnitNo,jdbcType=VARCHAR}, #{item.forwardingUnitName,jdbcType=VARCHAR},
-        #{item.receivingUintNo,jdbcType=VARCHAR}, #{item.receivingUintName,jdbcType=VARCHAR},
-        #{item.materialNo,jdbcType=VARCHAR}, #{item.materialName,jdbcType=VARCHAR}, #{item.specNo,jdbcType=VARCHAR},
-        #{item.specName,jdbcType=VARCHAR}, #{item.shipmentGrossWeight,jdbcType=DECIMAL},
-        #{item.shipmentNetWeight,jdbcType=DECIMAL}, #{item.shipmentNum,jdbcType=DECIMAL},
-        #{item.addWeightSum,jdbcType=DECIMAL}, #{item.bindCardNo,jdbcType=VARCHAR}, #{item.loadPointNo,jdbcType=VARCHAR},
-        #{item.loadPointName,jdbcType=VARCHAR}, #{item.sampleNo,jdbcType=VARCHAR}, #{item.sampleVoucher,jdbcType=VARCHAR},
-        #{item.carrierUnitNo,jdbcType=VARCHAR}, #{item.carrierUnitName,jdbcType=VARCHAR},
-        #{item.predictionType,jdbcType=VARCHAR}, #{item.predictionCombination,jdbcType=VARCHAR},
-        #{item.meterTypeNo,jdbcType=VARCHAR}, #{item.meterTypeName,jdbcType=VARCHAR}, #{item.usedType,jdbcType=VARCHAR},
-        #{item.effectiveStartTime,jdbcType=TIMESTAMP}, #{item.effectiveEndTime,jdbcType=TIMESTAMP},
-        #{item.effectiveWeight,jdbcType=DECIMAL}, #{item.effectiveNum,jdbcType=DECIMAL},
-        #{item.meterWeight,jdbcType=DECIMAL}, #{item.meterNum,jdbcType=DECIMAL}, #{item.railwayNo,jdbcType=VARCHAR},
-        #{item.meterProcessNo,jdbcType=VARCHAR}, #{item.meterProcessEditionNo,jdbcType=VARCHAR},
-        #{item.memo,jdbcType=VARCHAR}, #{item.valueFlag,jdbcType=VARCHAR}, #{item.usedTime,jdbcType=TIMESTAMP},
-        #{item.createManNo,jdbcType=VARCHAR}, #{item.createManName,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP},
-        #{item.updateManNo,jdbcType=VARCHAR}, #{item.updateManName,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
-        #{item.deleteManNo,jdbcType=VARCHAR}, #{item.deleteManName,jdbcType=VARCHAR}, #{item.deleteTime,jdbcType=TIMESTAMP},
-        #{item.pValueFlag,jdbcType=VARCHAR}, #{item.carAllocationTime,jdbcType=TIMESTAMP},
-        #{item.isCompleted,jdbcType=VARCHAR}, #{item.limsSamplingFlag,jdbcType=VARCHAR},
-        #{item.heatNo,jdbcType=VARCHAR}, #{item.idNum,jdbcType=VARCHAR}, #{item.predictionSource,jdbcType=VARCHAR},
-        #{item.createDepname,jdbcType=VARCHAR}, #{item.createDepid,jdbcType=VARCHAR}, #{item.lineDesc,jdbcType=VARCHAR},
-        #{item.voucherIdentity,jdbcType=VARCHAR}, #{item.voucherItem,jdbcType=VARCHAR},
-        #{item.businessGroup,jdbcType=VARCHAR}, #{item.tempConveyance,jdbcType=VARCHAR},
-        #{item.conveyanceType,jdbcType=VARCHAR}, #{item.resourceSystem,jdbcType=VARCHAR},
-        #{item.groupPackageAmount,jdbcType=DECIMAL}, #{item.groupPackageUnit,jdbcType=VARCHAR},
-        #{item.packageAmount,jdbcType=DECIMAL}, #{item.packageUnit,jdbcType=VARCHAR}, #{item.theoryAmount,jdbcType=DECIMAL},
-        #{item.measureBatch,jdbcType=VARCHAR}, #{item.measureBatchCount,jdbcType=DECIMAL},
-        #{item.senderType,jdbcType=VARCHAR}, #{item.senderRemark,jdbcType=VARCHAR}, #{item.receiverType,jdbcType=VARCHAR},
-        #{item.receiverRemark,jdbcType=VARCHAR}, #{item.trustDepartmentName,jdbcType=VARCHAR},
-        #{item.trustDepartment,jdbcType=VARCHAR}, #{item.trustor,jdbcType=VARCHAR}, #{item.trustDateTime,jdbcType=TIMESTAMP},
-        #{item.trustAvailabilityTime,jdbcType=TIMESTAMP}, #{item.trustIp,jdbcType=VARCHAR},
-        #{item.stationType,jdbcType=VARCHAR}, #{item.measureStation,jdbcType=VARCHAR},
-        #{item.measureStationName,jdbcType=VARCHAR}, #{item.amountUnit,jdbcType=VARCHAR},
-        #{item.trustDay,jdbcType=DECIMAL} from dual
-    </foreach> )
-    </insert>
-    <update id="batchUpdate" parameterType="java.util.List">
-        update PRE_TRACK_SCALE
-        set
-        PREDICTION_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.predictionNo,jdbcType=VARCHAR}
-        </foreach>
-        ,NOTICE_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.noticeNo,jdbcType=VARCHAR}
-        </foreach>
-        ,CAR_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.carNo,jdbcType=VARCHAR}
-        </foreach>
-        ,TRAILER_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trailerNo,jdbcType=VARCHAR}
-        </foreach>
-        ,MATTER_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.matterNo,jdbcType=VARCHAR}
-        </foreach>
-        ,MATTER_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.matterName,jdbcType=VARCHAR}
-        </foreach>
-        ,CONTRACT_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.contractNo,jdbcType=VARCHAR}
-        </foreach>
-        ,BATCH_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.batchNo,jdbcType=VARCHAR}
-        </foreach>
-        ,CUSTOMER_SUPPLIER_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.customerSupplierNo,jdbcType=VARCHAR}
-        </foreach>
-        ,CUSTOMER_SUPPLIER_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.customerSupplierName,jdbcType=VARCHAR}
-        </foreach>
-        ,SOURCE_AREA=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.sourceArea,jdbcType=VARCHAR}
-        </foreach>
-        ,FORWARDING_UNIT_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.forwardingUnitNo,jdbcType=VARCHAR}
-        </foreach>
-        ,FORWARDING_UNIT_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.forwardingUnitName,jdbcType=VARCHAR}
-        </foreach>
-        ,RECEIVING_UINT_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.receivingUintNo,jdbcType=VARCHAR}
-        </foreach>
-        ,RECEIVING_UINT_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.receivingUintName,jdbcType=VARCHAR}
-        </foreach>
-        ,MATERIAL_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.materialNo,jdbcType=VARCHAR}
-        </foreach>
-        ,MATERIAL_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.materialName,jdbcType=VARCHAR}
-        </foreach>
-        ,SPEC_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.specNo,jdbcType=VARCHAR}
-        </foreach>
-        ,SPEC_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.specName,jdbcType=VARCHAR}
-        </foreach>
-        ,SHIPMENT_GROSS_WEIGHT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.shipmentGrossWeight,jdbcType=DECIMAL}
-        </foreach>
-        ,SHIPMENT_NET_WEIGHT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.shipmentNetWeight,jdbcType=DECIMAL}
-        </foreach>
-        ,SHIPMENT_NUM=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.shipmentNum,jdbcType=DECIMAL}
-        </foreach>
-        ,ADD_WEIGHT_SUM=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.addWeightSum,jdbcType=DECIMAL}
-        </foreach>
-        ,BIND_CARD_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.bindCardNo,jdbcType=VARCHAR}
-        </foreach>
-        ,LOAD_POINT_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.loadPointNo,jdbcType=VARCHAR}
-        </foreach>
-        ,LOAD_POINT_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.loadPointName,jdbcType=VARCHAR}
-        </foreach>
-        ,SAMPLE_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.sampleNo,jdbcType=VARCHAR}
-        </foreach>
-        ,SAMPLE_VOUCHER=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.sampleVoucher,jdbcType=VARCHAR}
-        </foreach>
-        ,CARRIER_UNIT_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.carrierUnitNo,jdbcType=VARCHAR}
-        </foreach>
-        ,CARRIER_UNIT_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.carrierUnitName,jdbcType=VARCHAR}
-        </foreach>
-        ,PREDICTION_TYPE=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.predictionType,jdbcType=VARCHAR}
-        </foreach>
-        ,PREDICTION_COMBINATION=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.predictionCombination,jdbcType=VARCHAR}
-        </foreach>
-        ,METER_TYPE_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.meterTypeNo,jdbcType=VARCHAR}
-        </foreach>
-        ,METER_TYPE_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.meterTypeName,jdbcType=VARCHAR}
-        </foreach>
-        ,USED_TYPE=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.usedType,jdbcType=VARCHAR}
-        </foreach>
-        ,EFFECTIVE_START_TIME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.effectiveStartTime,jdbcType=TIMESTAMP}
-        </foreach>
-        ,EFFECTIVE_END_TIME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.effectiveEndTime,jdbcType=TIMESTAMP}
-        </foreach>
-        ,EFFECTIVE_WEIGHT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.effectiveWeight,jdbcType=DECIMAL}
-        </foreach>
-        ,EFFECTIVE_NUM=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.effectiveNum,jdbcType=DECIMAL}
-        </foreach>
-        ,METER_WEIGHT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.meterWeight,jdbcType=DECIMAL}
-        </foreach>
-        ,METER_NUM=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.meterNum,jdbcType=DECIMAL}
-        </foreach>
-        ,RAILWAY_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.railwayNo,jdbcType=VARCHAR}
-        </foreach>
-        ,METER_PROCESS_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.meterProcessNo,jdbcType=VARCHAR}
-        </foreach>
-        ,METER_PROCESS_EDITION_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.meterProcessEditionNo,jdbcType=VARCHAR}
-        </foreach>
-        ,MEMO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.memo,jdbcType=VARCHAR}
-        </foreach>
-        ,VALUE_FLAG=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.valueFlag,jdbcType=VARCHAR}
-        </foreach>
-        ,USED_TIME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.usedTime,jdbcType=TIMESTAMP}
-        </foreach>
-        ,CREATE_MAN_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
-        </foreach>
-        ,CREATE_MAN_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
-        </foreach>
-        ,CREATE_TIME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
-        </foreach>
-        ,UPDATE_MAN_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=VARCHAR}
-        </foreach>
-        ,UPDATE_MAN_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.updateManName,jdbcType=VARCHAR}
-        </foreach>
-        ,UPDATE_TIME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
-        </foreach>
-        ,DELETE_MAN_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.deleteManNo,jdbcType=VARCHAR}
-        </foreach>
-        ,DELETE_MAN_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.deleteManName,jdbcType=VARCHAR}
-        </foreach>
-        ,DELETE_TIME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.deleteTime,jdbcType=TIMESTAMP}
-        </foreach>
-        ,P_VALUE_FLAG=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.pValueFlag,jdbcType=VARCHAR}
-        </foreach>
-        ,CAR_ALLOCATION_TIME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.carAllocationTime,jdbcType=TIMESTAMP}
-        </foreach>
-        ,IS_COMPLETED=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.isCompleted,jdbcType=VARCHAR}
-        </foreach>
-        ,LIMS_SAMPLING_FLAG=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.limsSamplingFlag,jdbcType=VARCHAR}
-        </foreach>
-        ,HEAT_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.heatNo,jdbcType=VARCHAR}
-        </foreach>
-        ,ID_NUM=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.idNum,jdbcType=VARCHAR}
-        </foreach>
-        ,PREDICTION_SOURCE=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.predictionSource,jdbcType=VARCHAR}
-        </foreach>
-        ,CREATE_DEPNAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.createDepname,jdbcType=VARCHAR}
-        </foreach>
-        ,CREATE_DEPID=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.createDepid,jdbcType=VARCHAR}
-        </foreach>
-        ,LINE_DESC=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.lineDesc,jdbcType=VARCHAR}
-        </foreach>
-        ,VOUCHER_IDENTITY=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.voucherIdentity,jdbcType=VARCHAR}
-        </foreach>
-        ,VOUCHER_ITEM=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.voucherItem,jdbcType=VARCHAR}
-        </foreach>
-        ,BUSINESS_GROUP=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.businessGroup,jdbcType=VARCHAR}
-        </foreach>
-        ,TEMP_CONVEYANCE=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.tempConveyance,jdbcType=VARCHAR}
-        </foreach>
-        ,CONVEYANCE_TYPE=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.conveyanceType,jdbcType=VARCHAR}
-        </foreach>
-        ,RESOURCE_SYSTEM=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.resourceSystem,jdbcType=VARCHAR}
-        </foreach>
-        ,GROUP_PACKAGE_AMOUNT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.groupPackageAmount,jdbcType=DECIMAL}
-        </foreach>
-        ,GROUP_PACKAGE_UNIT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.groupPackageUnit,jdbcType=VARCHAR}
-        </foreach>
-        ,PACKAGE_AMOUNT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.packageAmount,jdbcType=DECIMAL}
-        </foreach>
-        ,PACKAGE_UNIT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.packageUnit,jdbcType=VARCHAR}
-        </foreach>
-        ,THEORY_AMOUNT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.theoryAmount,jdbcType=DECIMAL}
-        </foreach>
-        ,MEASURE_BATCH=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.measureBatch,jdbcType=VARCHAR}
-        </foreach>
-        ,MEASURE_BATCH_COUNT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.measureBatchCount,jdbcType=DECIMAL}
-        </foreach>
-        ,SENDER_TYPE=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.senderType,jdbcType=VARCHAR}
-        </foreach>
-        ,SENDER_REMARK=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.senderRemark,jdbcType=VARCHAR}
-        </foreach>
-        ,RECEIVER_TYPE=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.receiverType,jdbcType=VARCHAR}
-        </foreach>
-        ,RECEIVER_REMARK=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.receiverRemark,jdbcType=VARCHAR}
-        </foreach>
-        ,TRUST_DEPARTMENT_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustDepartmentName,jdbcType=VARCHAR}
-        </foreach>
-        ,TRUST_DEPARTMENT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustDepartment,jdbcType=VARCHAR}
-        </foreach>
-        ,TRUSTOR=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustor,jdbcType=VARCHAR}
-        </foreach>
-        ,TRUST_DATE_TIME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustDateTime,jdbcType=TIMESTAMP}
-        </foreach>
-        ,TRUST_AVAILABILITY_TIME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustAvailabilityTime,jdbcType=TIMESTAMP}
-        </foreach>
-        ,TRUST_IP=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustIp,jdbcType=VARCHAR}
-        </foreach>
-        ,STATION_TYPE=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.stationType,jdbcType=VARCHAR}
-        </foreach>
-        ,MEASURE_STATION=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.measureStation,jdbcType=VARCHAR}
-        </foreach>
-        ,MEASURE_STATION_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.measureStationName,jdbcType=VARCHAR}
-        </foreach>
-        ,AMOUNT_UNIT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.amountUnit,jdbcType=VARCHAR}
-        </foreach>
-        ,TRUST_DAY=
-        <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
-            when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustDay,jdbcType=DECIMAL}
-        </foreach>
-        where PREDICTION_NO in
-        <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
-            #{item.predictionNo,jdbcType=VARCHAR}
-        </foreach>
-    </update>
-    <delete id="batchDelete" parameterType="java.util.List">
-        delete from PRE_TRACK_SCALE
-        where PREDICTION_NO in
-        <foreach collection="list" item="id" open="(" close=")" separator=",">
-            #{id}
-        </foreach>
-    </delete>
-    <!-- 友情提示!!!-->
-    <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
-    <!-- 友情提示!!!-->
-    <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
+  <resultMap id="BaseResultMap" type="com.steerinfo.pretrack.pretrackscale.model.PreTrackScale">
+    <id column="PREDICTION_NO" jdbcType="VARCHAR" property="predictionNo" />
+    <result column="NOTICE_NO" jdbcType="VARCHAR" property="noticeNo" />
+    <result column="CAR_NO" jdbcType="VARCHAR" property="carNo" />
+    <result column="TRAILER_NO" jdbcType="VARCHAR" property="trailerNo" />
+    <result column="MATTER_NO" jdbcType="VARCHAR" property="matterNo" />
+    <result column="MATTER_NAME" jdbcType="VARCHAR" property="matterName" />
+    <result column="CONTRACT_NO" jdbcType="VARCHAR" property="contractNo" />
+    <result column="BATCH_NO" jdbcType="VARCHAR" property="batchNo" />
+    <result column="CUSTOMER_SUPPLIER_NO" jdbcType="VARCHAR" property="customerSupplierNo" />
+    <result column="CUSTOMER_SUPPLIER_NAME" jdbcType="VARCHAR" property="customerSupplierName" />
+    <result column="SOURCE_AREA" jdbcType="VARCHAR" property="sourceArea" />
+    <result column="FORWARDING_UNIT_NO" jdbcType="VARCHAR" property="forwardingUnitNo" />
+    <result column="FORWARDING_UNIT_NAME" jdbcType="VARCHAR" property="forwardingUnitName" />
+    <result column="RECEIVING_UINT_NO" jdbcType="VARCHAR" property="receivingUintNo" />
+    <result column="RECEIVING_UINT_NAME" jdbcType="VARCHAR" property="receivingUintName" />
+    <result column="MATERIAL_NO" jdbcType="VARCHAR" property="materialNo" />
+    <result column="MATERIAL_NAME" jdbcType="VARCHAR" property="materialName" />
+    <result column="SPEC_NO" jdbcType="VARCHAR" property="specNo" />
+    <result column="SPEC_NAME" jdbcType="VARCHAR" property="specName" />
+    <result column="SHIPMENT_GROSS_WEIGHT" jdbcType="DECIMAL" property="shipmentGrossWeight" />
+    <result column="SHIPMENT_NET_WEIGHT" jdbcType="DECIMAL" property="shipmentNetWeight" />
+    <result column="SHIPMENT_NUM" jdbcType="DECIMAL" property="shipmentNum" />
+    <result column="ADD_WEIGHT_SUM" jdbcType="DECIMAL" property="addWeightSum" />
+    <result column="BIND_CARD_NO" jdbcType="VARCHAR" property="bindCardNo" />
+    <result column="LOAD_POINT_NO" jdbcType="VARCHAR" property="loadPointNo" />
+    <result column="LOAD_POINT_NAME" jdbcType="VARCHAR" property="loadPointName" />
+    <result column="SAMPLE_NO" jdbcType="VARCHAR" property="sampleNo" />
+    <result column="SAMPLE_VOUCHER" jdbcType="VARCHAR" property="sampleVoucher" />
+    <result column="CARRIER_UNIT_NO" jdbcType="VARCHAR" property="carrierUnitNo" />
+    <result column="CARRIER_UNIT_NAME" jdbcType="VARCHAR" property="carrierUnitName" />
+    <result column="PREDICTION_TYPE" jdbcType="VARCHAR" property="predictionType" />
+    <result column="PREDICTION_COMBINATION" jdbcType="VARCHAR" property="predictionCombination" />
+    <result column="METER_TYPE_NO" jdbcType="VARCHAR" property="meterTypeNo" />
+    <result column="METER_TYPE_NAME" jdbcType="VARCHAR" property="meterTypeName" />
+    <result column="USED_TYPE" jdbcType="VARCHAR" property="usedType" />
+    <result column="EFFECTIVE_START_TIME" jdbcType="TIMESTAMP" property="effectiveStartTime" />
+    <result column="EFFECTIVE_END_TIME" jdbcType="TIMESTAMP" property="effectiveEndTime" />
+    <result column="EFFECTIVE_WEIGHT" jdbcType="DECIMAL" property="effectiveWeight" />
+    <result column="EFFECTIVE_NUM" jdbcType="DECIMAL" property="effectiveNum" />
+    <result column="METER_WEIGHT" jdbcType="DECIMAL" property="meterWeight" />
+    <result column="METER_NUM" jdbcType="DECIMAL" property="meterNum" />
+    <result column="RAILWAY_NO" jdbcType="VARCHAR" property="railwayNo" />
+    <result column="METER_PROCESS_NO" jdbcType="VARCHAR" property="meterProcessNo" />
+    <result column="METER_PROCESS_EDITION_NO" jdbcType="VARCHAR" property="meterProcessEditionNo" />
+    <result column="MEMO" jdbcType="VARCHAR" property="memo" />
+    <result column="VALUE_FLAG" jdbcType="VARCHAR" property="valueFlag" />
+    <result column="USED_TIME" jdbcType="TIMESTAMP" property="usedTime" />
+    <result column="CREATE_MAN_NO" jdbcType="VARCHAR" property="createManNo" />
+    <result column="CREATE_MAN_NAME" jdbcType="VARCHAR" property="createManName" />
+    <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
+    <result column="UPDATE_MAN_NO" jdbcType="VARCHAR" property="updateManNo" />
+    <result column="UPDATE_MAN_NAME" jdbcType="VARCHAR" property="updateManName" />
+    <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
+    <result column="DELETE_MAN_NO" jdbcType="VARCHAR" property="deleteManNo" />
+    <result column="DELETE_MAN_NAME" jdbcType="VARCHAR" property="deleteManName" />
+    <result column="DELETE_TIME" jdbcType="TIMESTAMP" property="deleteTime" />
+    <result column="P_VALUE_FLAG" jdbcType="VARCHAR" property="pValueFlag" />
+    <result column="CAR_ALLOCATION_TIME" jdbcType="TIMESTAMP" property="carAllocationTime" />
+    <result column="IS_COMPLETED" jdbcType="VARCHAR" property="isCompleted" />
+    <result column="LIMS_SAMPLING_FLAG" jdbcType="VARCHAR" property="limsSamplingFlag" />
+    <result column="HEAT_NO" jdbcType="VARCHAR" property="heatNo" />
+    <result column="ID_NUM" jdbcType="VARCHAR" property="idNum" />
+    <result column="PREDICTION_SOURCE" jdbcType="VARCHAR" property="predictionSource" />
+    <result column="CREATE_DEPNAME" jdbcType="VARCHAR" property="createDepname" />
+    <result column="CREATE_DEPID" jdbcType="VARCHAR" property="createDepid" />
+    <result column="LINE_DESC" jdbcType="VARCHAR" property="lineDesc" />
+    <result column="VOUCHER_IDENTITY" jdbcType="VARCHAR" property="voucherIdentity" />
+    <result column="VOUCHER_ITEM" jdbcType="VARCHAR" property="voucherItem" />
+    <result column="BUSINESS_GROUP" jdbcType="VARCHAR" property="businessGroup" />
+    <result column="TEMP_CONVEYANCE" jdbcType="VARCHAR" property="tempConveyance" />
+    <result column="CONVEYANCE_TYPE" jdbcType="VARCHAR" property="conveyanceType" />
+    <result column="RESOURCE_SYSTEM" jdbcType="VARCHAR" property="resourceSystem" />
+    <result column="GROUP_PACKAGE_AMOUNT" jdbcType="DECIMAL" property="groupPackageAmount" />
+    <result column="GROUP_PACKAGE_UNIT" jdbcType="VARCHAR" property="groupPackageUnit" />
+    <result column="PACKAGE_AMOUNT" jdbcType="DECIMAL" property="packageAmount" />
+    <result column="PACKAGE_UNIT" jdbcType="VARCHAR" property="packageUnit" />
+    <result column="THEORY_AMOUNT" jdbcType="DECIMAL" property="theoryAmount" />
+    <result column="MEASURE_BATCH" jdbcType="VARCHAR" property="measureBatch" />
+    <result column="MEASURE_BATCH_COUNT" jdbcType="DECIMAL" property="measureBatchCount" />
+    <result column="SENDER_TYPE" jdbcType="VARCHAR" property="senderType" />
+    <result column="SENDER_REMARK" jdbcType="VARCHAR" property="senderRemark" />
+    <result column="RECEIVER_TYPE" jdbcType="VARCHAR" property="receiverType" />
+    <result column="RECEIVER_REMARK" jdbcType="VARCHAR" property="receiverRemark" />
+    <result column="TRUST_DEPARTMENT_NAME" jdbcType="VARCHAR" property="trustDepartmentName" />
+    <result column="TRUST_DEPARTMENT" jdbcType="VARCHAR" property="trustDepartment" />
+    <result column="TRUSTOR" jdbcType="VARCHAR" property="trustor" />
+    <result column="TRUST_DATE_TIME" jdbcType="TIMESTAMP" property="trustDateTime" />
+    <result column="TRUST_AVAILABILITY_TIME" jdbcType="TIMESTAMP" property="trustAvailabilityTime" />
+    <result column="TRUST_IP" jdbcType="VARCHAR" property="trustIp" />
+    <result column="STATION_TYPE" jdbcType="VARCHAR" property="stationType" />
+    <result column="MEASURE_STATION" jdbcType="VARCHAR" property="measureStation" />
+    <result column="MEASURE_STATION_NAME" jdbcType="VARCHAR" property="measureStationName" />
+    <result column="AMOUNT_UNIT" jdbcType="VARCHAR" property="amountUnit" />
+    <result column="TRUST_DAY" jdbcType="DECIMAL" property="trustDay" />
+    <result column="CONVEYANCE_GROUP" jdbcType="VARCHAR" property="conveyanceGroup" />
+    <result column="REVOCARTION_STATUS" jdbcType="VARCHAR" property="revocartionStatus" />
+    <result column="USE_SITE" jdbcType="VARCHAR" property="useSite" />
+    <result column="UPLOAD_FLAG" jdbcType="VARCHAR" property="uploadFlag" />
+  </resultMap>
+  <sql id="columns">
+    PREDICTION_NO, NOTICE_NO, CAR_NO, TRAILER_NO, MATTER_NO, MATTER_NAME, CONTRACT_NO, 
+    BATCH_NO, CUSTOMER_SUPPLIER_NO, CUSTOMER_SUPPLIER_NAME, SOURCE_AREA, FORWARDING_UNIT_NO, 
+    FORWARDING_UNIT_NAME, RECEIVING_UINT_NO, RECEIVING_UINT_NAME, MATERIAL_NO, MATERIAL_NAME, 
+    SPEC_NO, SPEC_NAME, SHIPMENT_GROSS_WEIGHT, SHIPMENT_NET_WEIGHT, SHIPMENT_NUM, ADD_WEIGHT_SUM, 
+    BIND_CARD_NO, LOAD_POINT_NO, LOAD_POINT_NAME, SAMPLE_NO, SAMPLE_VOUCHER, CARRIER_UNIT_NO, 
+    CARRIER_UNIT_NAME, PREDICTION_TYPE, PREDICTION_COMBINATION, METER_TYPE_NO, METER_TYPE_NAME, 
+    USED_TYPE, EFFECTIVE_START_TIME, EFFECTIVE_END_TIME, EFFECTIVE_WEIGHT, EFFECTIVE_NUM, 
+    METER_WEIGHT, METER_NUM, RAILWAY_NO, METER_PROCESS_NO, METER_PROCESS_EDITION_NO, 
+    MEMO, VALUE_FLAG, USED_TIME, CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, UPDATE_MAN_NO, 
+    UPDATE_MAN_NAME, UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME, P_VALUE_FLAG, 
+    CAR_ALLOCATION_TIME, IS_COMPLETED, LIMS_SAMPLING_FLAG, HEAT_NO, ID_NUM, PREDICTION_SOURCE, 
+    CREATE_DEPNAME, CREATE_DEPID, LINE_DESC, VOUCHER_IDENTITY, VOUCHER_ITEM, BUSINESS_GROUP, 
+    TEMP_CONVEYANCE, CONVEYANCE_TYPE, RESOURCE_SYSTEM, GROUP_PACKAGE_AMOUNT, GROUP_PACKAGE_UNIT, 
+    PACKAGE_AMOUNT, PACKAGE_UNIT, THEORY_AMOUNT, MEASURE_BATCH, MEASURE_BATCH_COUNT, 
+    SENDER_TYPE, SENDER_REMARK, RECEIVER_TYPE, RECEIVER_REMARK, TRUST_DEPARTMENT_NAME, 
+    TRUST_DEPARTMENT, TRUSTOR, TRUST_DATE_TIME, TRUST_AVAILABILITY_TIME, TRUST_IP, STATION_TYPE, 
+    MEASURE_STATION, MEASURE_STATION_NAME, AMOUNT_UNIT, TRUST_DAY, CONVEYANCE_GROUP, 
+    REVOCARTION_STATUS, USE_SITE, UPLOAD_FLAG
+  </sql>
+  <sql id="columns_alias">
+    t.PREDICTION_NO, t.NOTICE_NO, t.CAR_NO, t.TRAILER_NO, t.MATTER_NO, t.MATTER_NAME, 
+    t.CONTRACT_NO, t.BATCH_NO, t.CUSTOMER_SUPPLIER_NO, t.CUSTOMER_SUPPLIER_NAME, t.SOURCE_AREA, 
+    t.FORWARDING_UNIT_NO, t.FORWARDING_UNIT_NAME, t.RECEIVING_UINT_NO, t.RECEIVING_UINT_NAME, 
+    t.MATERIAL_NO, t.MATERIAL_NAME, t.SPEC_NO, t.SPEC_NAME, t.SHIPMENT_GROSS_WEIGHT, 
+    t.SHIPMENT_NET_WEIGHT, t.SHIPMENT_NUM, t.ADD_WEIGHT_SUM, t.BIND_CARD_NO, t.LOAD_POINT_NO, 
+    t.LOAD_POINT_NAME, t.SAMPLE_NO, t.SAMPLE_VOUCHER, t.CARRIER_UNIT_NO, t.CARRIER_UNIT_NAME, 
+    t.PREDICTION_TYPE, t.PREDICTION_COMBINATION, t.METER_TYPE_NO, t.METER_TYPE_NAME, 
+    t.USED_TYPE, t.EFFECTIVE_START_TIME, t.EFFECTIVE_END_TIME, t.EFFECTIVE_WEIGHT, t.EFFECTIVE_NUM, 
+    t.METER_WEIGHT, t.METER_NUM, t.RAILWAY_NO, t.METER_PROCESS_NO, t.METER_PROCESS_EDITION_NO, 
+    t.MEMO, t.VALUE_FLAG, t.USED_TIME, t.CREATE_MAN_NO, t.CREATE_MAN_NAME, t.CREATE_TIME, 
+    t.UPDATE_MAN_NO, t.UPDATE_MAN_NAME, t.UPDATE_TIME, t.DELETE_MAN_NO, t.DELETE_MAN_NAME, 
+    t.DELETE_TIME, t.P_VALUE_FLAG, t.CAR_ALLOCATION_TIME, t.IS_COMPLETED, t.LIMS_SAMPLING_FLAG, 
+    t.HEAT_NO, t.ID_NUM, t.PREDICTION_SOURCE, t.CREATE_DEPNAME, t.CREATE_DEPID, t.LINE_DESC, 
+    t.VOUCHER_IDENTITY, t.VOUCHER_ITEM, t.BUSINESS_GROUP, t.TEMP_CONVEYANCE, t.CONVEYANCE_TYPE, 
+    t.RESOURCE_SYSTEM, t.GROUP_PACKAGE_AMOUNT, t.GROUP_PACKAGE_UNIT, t.PACKAGE_AMOUNT, 
+    t.PACKAGE_UNIT, t.THEORY_AMOUNT, t.MEASURE_BATCH, t.MEASURE_BATCH_COUNT, t.SENDER_TYPE, 
+    t.SENDER_REMARK, t.RECEIVER_TYPE, t.RECEIVER_REMARK, t.TRUST_DEPARTMENT_NAME, t.TRUST_DEPARTMENT, 
+    t.TRUSTOR, t.TRUST_DATE_TIME, t.TRUST_AVAILABILITY_TIME, t.TRUST_IP, t.STATION_TYPE, 
+    t.MEASURE_STATION, t.MEASURE_STATION_NAME, t.AMOUNT_UNIT, t.TRUST_DAY, t.CONVEYANCE_GROUP, 
+    t.REVOCARTION_STATUS, t.USE_SITE, t.UPLOAD_FLAG
+  </sql>
+  <sql id="select">
+    SELECT <include refid="columns"/> FROM PRE_TRACK_SCALE
+  </sql>
+  <sql id="select_alias">
+    SELECT <include refid="columns_alias"/> FROM PRE_TRACK_SCALE t
+  </sql>
+  <sql id="where">
+    <where> 
+      <if test="predictionNo != null and predictionNo != ''">
+        and PREDICTION_NO = #{predictionNo}
+      </if>
+      <if test="noticeNo != null and noticeNo != ''">
+        and NOTICE_NO = #{noticeNo}
+      </if>
+      <if test="carNo != null and carNo != ''">
+        and CAR_NO = #{carNo}
+      </if>
+      <if test="trailerNo != null and trailerNo != ''">
+        and TRAILER_NO = #{trailerNo}
+      </if>
+      <if test="matterNo != null and matterNo != ''">
+        and MATTER_NO = #{matterNo}
+      </if>
+      <if test="matterName != null and matterName != ''">
+        and MATTER_NAME = #{matterName}
+      </if>
+      <if test="contractNo != null and contractNo != ''">
+        and CONTRACT_NO = #{contractNo}
+      </if>
+      <if test="batchNo != null and batchNo != ''">
+        and BATCH_NO = #{batchNo}
+      </if>
+      <if test="customerSupplierNo != null and customerSupplierNo != ''">
+        and CUSTOMER_SUPPLIER_NO = #{customerSupplierNo}
+      </if>
+      <if test="customerSupplierName != null and customerSupplierName != ''">
+        and CUSTOMER_SUPPLIER_NAME = #{customerSupplierName}
+      </if>
+      <if test="sourceArea != null and sourceArea != ''">
+        and SOURCE_AREA = #{sourceArea}
+      </if>
+      <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
+        and FORWARDING_UNIT_NO = #{forwardingUnitNo}
+      </if>
+      <if test="forwardingUnitName != null and forwardingUnitName != ''">
+        and FORWARDING_UNIT_NAME = #{forwardingUnitName}
+      </if>
+      <if test="receivingUintNo != null and receivingUintNo != ''">
+        and RECEIVING_UINT_NO = #{receivingUintNo}
+      </if>
+      <if test="receivingUintName != null and receivingUintName != ''">
+        and RECEIVING_UINT_NAME = #{receivingUintName}
+      </if>
+      <if test="materialNo != null and materialNo != ''">
+        and MATERIAL_NO = #{materialNo}
+      </if>
+      <if test="materialName != null and materialName != ''">
+        and MATERIAL_NAME = #{materialName}
+      </if>
+      <if test="specNo != null and specNo != ''">
+        and SPEC_NO = #{specNo}
+      </if>
+      <if test="specName != null and specName != ''">
+        and SPEC_NAME = #{specName}
+      </if>
+      <if test="shipmentGrossWeight != null">
+        and SHIPMENT_GROSS_WEIGHT = #{shipmentGrossWeight}
+      </if>
+      <if test="shipmentNetWeight != null">
+        and SHIPMENT_NET_WEIGHT = #{shipmentNetWeight}
+      </if>
+      <if test="shipmentNum != null">
+        and SHIPMENT_NUM = #{shipmentNum}
+      </if>
+      <if test="addWeightSum != null">
+        and ADD_WEIGHT_SUM = #{addWeightSum}
+      </if>
+      <if test="bindCardNo != null and bindCardNo != ''">
+        and BIND_CARD_NO = #{bindCardNo}
+      </if>
+      <if test="loadPointNo != null and loadPointNo != ''">
+        and LOAD_POINT_NO = #{loadPointNo}
+      </if>
+      <if test="loadPointName != null and loadPointName != ''">
+        and LOAD_POINT_NAME = #{loadPointName}
+      </if>
+      <if test="sampleNo != null and sampleNo != ''">
+        and SAMPLE_NO = #{sampleNo}
+      </if>
+      <if test="sampleVoucher != null and sampleVoucher != ''">
+        and SAMPLE_VOUCHER = #{sampleVoucher}
+      </if>
+      <if test="carrierUnitNo != null and carrierUnitNo != ''">
+        and CARRIER_UNIT_NO = #{carrierUnitNo}
+      </if>
+      <if test="carrierUnitName != null and carrierUnitName != ''">
+        and CARRIER_UNIT_NAME = #{carrierUnitName}
+      </if>
+      <if test="predictionType != null and predictionType != ''">
+        and PREDICTION_TYPE = #{predictionType}
+      </if>
+      <if test="predictionCombination != null and predictionCombination != ''">
+        and PREDICTION_COMBINATION = #{predictionCombination}
+      </if>
+      <if test="meterTypeNo != null and meterTypeNo != ''">
+        and METER_TYPE_NO = #{meterTypeNo}
+      </if>
+      <if test="meterTypeName != null and meterTypeName != ''">
+        and METER_TYPE_NAME = #{meterTypeName}
+      </if>
+      <if test="usedType != null and usedType != ''">
+        and USED_TYPE = #{usedType}
+      </if>
+      <if test="effectiveStartTime != null">
+        and TO_CHAR(EFFECTIVE_START_TIME,'yyyy-MM-dd') = #{effectiveStartTime}
+      </if>
+      <if test="effectiveEndTime != null">
+        and TO_CHAR(EFFECTIVE_END_TIME,'yyyy-MM-dd') = #{effectiveEndTime}
+      </if>
+      <if test="effectiveWeight != null">
+        and EFFECTIVE_WEIGHT = #{effectiveWeight}
+      </if>
+      <if test="effectiveNum != null">
+        and EFFECTIVE_NUM = #{effectiveNum}
+      </if>
+      <if test="meterWeight != null">
+        and METER_WEIGHT = #{meterWeight}
+      </if>
+      <if test="meterNum != null">
+        and METER_NUM = #{meterNum}
+      </if>
+      <if test="railwayNo != null and railwayNo != ''">
+        and RAILWAY_NO = #{railwayNo}
+      </if>
+      <if test="meterProcessNo != null and meterProcessNo != ''">
+        and METER_PROCESS_NO = #{meterProcessNo}
+      </if>
+      <if test="meterProcessEditionNo != null and meterProcessEditionNo != ''">
+        and METER_PROCESS_EDITION_NO = #{meterProcessEditionNo}
+      </if>
+      <if test="memo != null and memo != ''">
+        and MEMO = #{memo}
+      </if>
+      <if test="valueFlag != null and valueFlag != ''">
+        and VALUE_FLAG = #{valueFlag}
+      </if>
+      <if test="usedTime != null">
+        and TO_CHAR(USED_TIME,'yyyy-MM-dd') = #{usedTime}
+      </if>
+      <if test="createManNo != null and createManNo != ''">
+        and CREATE_MAN_NO = #{createManNo}
+      </if>
+      <if test="createManName != null and createManName != ''">
+        and CREATE_MAN_NAME = #{createManName}
+      </if>
+      <if test="createTime != null">
+        and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
+      </if>
+      <if test="updateManNo != null and updateManNo != ''">
+        and UPDATE_MAN_NO = #{updateManNo}
+      </if>
+      <if test="updateManName != null and updateManName != ''">
+        and UPDATE_MAN_NAME = #{updateManName}
+      </if>
+      <if test="updateTime != null">
+        and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
+      </if>
+      <if test="deleteManNo != null and deleteManNo != ''">
+        and DELETE_MAN_NO = #{deleteManNo}
+      </if>
+      <if test="deleteManName != null and deleteManName != ''">
+        and DELETE_MAN_NAME = #{deleteManName}
+      </if>
+      <if test="deleteTime != null">
+        and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
+      </if>
+      <if test="pValueFlag != null and pValueFlag != ''">
+        and P_VALUE_FLAG = #{pValueFlag}
+      </if>
+      <if test="carAllocationTime != null">
+        and TO_CHAR(CAR_ALLOCATION_TIME,'yyyy-MM-dd') = #{carAllocationTime}
+      </if>
+      <if test="isCompleted != null and isCompleted != ''">
+        and IS_COMPLETED = #{isCompleted}
+      </if>
+      <if test="limsSamplingFlag != null and limsSamplingFlag != ''">
+        and LIMS_SAMPLING_FLAG = #{limsSamplingFlag}
+      </if>
+      <if test="heatNo != null and heatNo != ''">
+        and HEAT_NO = #{heatNo}
+      </if>
+      <if test="idNum != null and idNum != ''">
+        and ID_NUM = #{idNum}
+      </if>
+      <if test="predictionSource != null and predictionSource != ''">
+        and PREDICTION_SOURCE = #{predictionSource}
+      </if>
+      <if test="createDepname != null and createDepname != ''">
+        and CREATE_DEPNAME = #{createDepname}
+      </if>
+      <if test="createDepid != null and createDepid != ''">
+        and CREATE_DEPID = #{createDepid}
+      </if>
+      <if test="lineDesc != null and lineDesc != ''">
+        and LINE_DESC = #{lineDesc}
+      </if>
+      <if test="voucherIdentity != null and voucherIdentity != ''">
+        and VOUCHER_IDENTITY = #{voucherIdentity}
+      </if>
+      <if test="voucherItem != null and voucherItem != ''">
+        and VOUCHER_ITEM = #{voucherItem}
+      </if>
+      <if test="businessGroup != null and businessGroup != ''">
+        and BUSINESS_GROUP = #{businessGroup}
+      </if>
+      <if test="tempConveyance != null and tempConveyance != ''">
+        and TEMP_CONVEYANCE = #{tempConveyance}
+      </if>
+      <if test="conveyanceType != null and conveyanceType != ''">
+        and CONVEYANCE_TYPE = #{conveyanceType}
+      </if>
+      <if test="resourceSystem != null and resourceSystem != ''">
+        and RESOURCE_SYSTEM = #{resourceSystem}
+      </if>
+      <if test="groupPackageAmount != null">
+        and GROUP_PACKAGE_AMOUNT = #{groupPackageAmount}
+      </if>
+      <if test="groupPackageUnit != null and groupPackageUnit != ''">
+        and GROUP_PACKAGE_UNIT = #{groupPackageUnit}
+      </if>
+      <if test="packageAmount != null">
+        and PACKAGE_AMOUNT = #{packageAmount}
+      </if>
+      <if test="packageUnit != null and packageUnit != ''">
+        and PACKAGE_UNIT = #{packageUnit}
+      </if>
+      <if test="theoryAmount != null">
+        and THEORY_AMOUNT = #{theoryAmount}
+      </if>
+      <if test="measureBatch != null and measureBatch != ''">
+        and MEASURE_BATCH = #{measureBatch}
+      </if>
+      <if test="measureBatchCount != null">
+        and MEASURE_BATCH_COUNT = #{measureBatchCount}
+      </if>
+      <if test="senderType != null and senderType != ''">
+        and SENDER_TYPE = #{senderType}
+      </if>
+      <if test="senderRemark != null and senderRemark != ''">
+        and SENDER_REMARK = #{senderRemark}
+      </if>
+      <if test="receiverType != null and receiverType != ''">
+        and RECEIVER_TYPE = #{receiverType}
+      </if>
+      <if test="receiverRemark != null and receiverRemark != ''">
+        and RECEIVER_REMARK = #{receiverRemark}
+      </if>
+      <if test="trustDepartmentName != null and trustDepartmentName != ''">
+        and TRUST_DEPARTMENT_NAME = #{trustDepartmentName}
+      </if>
+      <if test="trustDepartment != null and trustDepartment != ''">
+        and TRUST_DEPARTMENT = #{trustDepartment}
+      </if>
+      <if test="trustor != null and trustor != ''">
+        and TRUSTOR = #{trustor}
+      </if>
+      <if test="trustDateTime != null">
+        and TO_CHAR(TRUST_DATE_TIME,'yyyy-MM-dd') = #{trustDateTime}
+      </if>
+      <if test="trustAvailabilityTime != null">
+        and TO_CHAR(TRUST_AVAILABILITY_TIME,'yyyy-MM-dd') = #{trustAvailabilityTime}
+      </if>
+      <if test="trustIp != null and trustIp != ''">
+        and TRUST_IP = #{trustIp}
+      </if>
+      <if test="stationType != null and stationType != ''">
+        and STATION_TYPE = #{stationType}
+      </if>
+      <if test="measureStation != null and measureStation != ''">
+        and MEASURE_STATION = #{measureStation}
+      </if>
+      <if test="measureStationName != null and measureStationName != ''">
+        and MEASURE_STATION_NAME = #{measureStationName}
+      </if>
+      <if test="amountUnit != null and amountUnit != ''">
+        and AMOUNT_UNIT = #{amountUnit}
+      </if>
+      <if test="trustDay != null">
+        and TRUST_DAY = #{trustDay}
+      </if>
+      <if test="conveyanceGroup != null and conveyanceGroup != ''">
+        and CONVEYANCE_GROUP = #{conveyanceGroup}
+      </if>
+      <if test="revocartionStatus != null and revocartionStatus != ''">
+        and REVOCARTION_STATUS = #{revocartionStatus}
+      </if>
+      <if test="useSite != null and useSite != ''">
+        and USE_SITE = #{useSite}
+      </if>
+      <if test="uploadFlag != null and uploadFlag != ''">
+        and UPLOAD_FLAG = #{uploadFlag}
+      </if>
+    </where>
+  </sql>
+  <sql id="whereLike">
+    <where> 
+      <if test="predictionNo != null and predictionNo != ''">
+        and PREDICTION_NO LIKE '%${predictionNo}%'
+      </if>
+      <if test="noticeNo != null and noticeNo != ''">
+        and NOTICE_NO LIKE '%${noticeNo}%'
+      </if>
+      <if test="carNo != null and carNo != ''">
+        and CAR_NO LIKE '%${carNo}%'
+      </if>
+      <if test="trailerNo != null and trailerNo != ''">
+        and TRAILER_NO LIKE '%${trailerNo}%'
+      </if>
+      <if test="matterNo != null and matterNo != ''">
+        and MATTER_NO LIKE '%${matterNo}%'
+      </if>
+      <if test="matterName != null and matterName != ''">
+        and MATTER_NAME LIKE '%${matterName}%'
+      </if>
+      <if test="contractNo != null and contractNo != ''">
+        and CONTRACT_NO LIKE '%${contractNo}%'
+      </if>
+      <if test="batchNo != null and batchNo != ''">
+        and BATCH_NO LIKE '%${batchNo}%'
+      </if>
+      <if test="customerSupplierNo != null and customerSupplierNo != ''">
+        and CUSTOMER_SUPPLIER_NO LIKE '%${customerSupplierNo}%'
+      </if>
+      <if test="customerSupplierName != null and customerSupplierName != ''">
+        and CUSTOMER_SUPPLIER_NAME LIKE '%${customerSupplierName}%'
+      </if>
+      <if test="sourceArea != null and sourceArea != ''">
+        and SOURCE_AREA LIKE '%${sourceArea}%'
+      </if>
+      <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
+        and FORWARDING_UNIT_NO LIKE '%${forwardingUnitNo}%'
+      </if>
+      <if test="forwardingUnitName != null and forwardingUnitName != ''">
+        and FORWARDING_UNIT_NAME LIKE '%${forwardingUnitName}%'
+      </if>
+      <if test="receivingUintNo != null and receivingUintNo != ''">
+        and RECEIVING_UINT_NO LIKE '%${receivingUintNo}%'
+      </if>
+      <if test="receivingUintName != null and receivingUintName != ''">
+        and RECEIVING_UINT_NAME LIKE '%${receivingUintName}%'
+      </if>
+      <if test="materialNo != null and materialNo != ''">
+        and MATERIAL_NO LIKE '%${materialNo}%'
+      </if>
+      <if test="materialName != null and materialName != ''">
+        and MATERIAL_NAME LIKE '%${materialName}%'
+      </if>
+      <if test="specNo != null and specNo != ''">
+        and SPEC_NO LIKE '%${specNo}%'
+      </if>
+      <if test="specName != null and specName != ''">
+        and SPEC_NAME LIKE '%${specName}%'
+      </if>
+      <if test="shipmentGrossWeight != null">
+        and SHIPMENT_GROSS_WEIGHT = #{shipmentGrossWeight}
+      </if>
+      <if test="shipmentNetWeight != null">
+        and SHIPMENT_NET_WEIGHT = #{shipmentNetWeight}
+      </if>
+      <if test="shipmentNum != null">
+        and SHIPMENT_NUM = #{shipmentNum}
+      </if>
+      <if test="addWeightSum != null">
+        and ADD_WEIGHT_SUM = #{addWeightSum}
+      </if>
+      <if test="bindCardNo != null and bindCardNo != ''">
+        and BIND_CARD_NO LIKE '%${bindCardNo}%'
+      </if>
+      <if test="loadPointNo != null and loadPointNo != ''">
+        and LOAD_POINT_NO LIKE '%${loadPointNo}%'
+      </if>
+      <if test="loadPointName != null and loadPointName != ''">
+        and LOAD_POINT_NAME LIKE '%${loadPointName}%'
+      </if>
+      <if test="sampleNo != null and sampleNo != ''">
+        and SAMPLE_NO LIKE '%${sampleNo}%'
+      </if>
+      <if test="sampleVoucher != null and sampleVoucher != ''">
+        and SAMPLE_VOUCHER LIKE '%${sampleVoucher}%'
+      </if>
+      <if test="carrierUnitNo != null and carrierUnitNo != ''">
+        and CARRIER_UNIT_NO LIKE '%${carrierUnitNo}%'
+      </if>
+      <if test="carrierUnitName != null and carrierUnitName != ''">
+        and CARRIER_UNIT_NAME LIKE '%${carrierUnitName}%'
+      </if>
+      <if test="predictionType != null and predictionType != ''">
+        and PREDICTION_TYPE LIKE '%${predictionType}%'
+      </if>
+      <if test="predictionCombination != null and predictionCombination != ''">
+        and PREDICTION_COMBINATION LIKE '%${predictionCombination}%'
+      </if>
+      <if test="meterTypeNo != null and meterTypeNo != ''">
+        and METER_TYPE_NO LIKE '%${meterTypeNo}%'
+      </if>
+      <if test="meterTypeName != null and meterTypeName != ''">
+        and METER_TYPE_NAME LIKE '%${meterTypeName}%'
+      </if>
+      <if test="usedType != null and usedType != ''">
+        and USED_TYPE LIKE '%${usedType}%'
+      </if>
+      <if test="effectiveStartTime != null">
+        and TO_CHAR(EFFECTIVE_START_TIME,'yyyy-MM-dd') = #{effectiveStartTime}
+      </if>
+      <if test="effectiveEndTime != null">
+        and TO_CHAR(EFFECTIVE_END_TIME,'yyyy-MM-dd') = #{effectiveEndTime}
+      </if>
+      <if test="effectiveWeight != null">
+        and EFFECTIVE_WEIGHT = #{effectiveWeight}
+      </if>
+      <if test="effectiveNum != null">
+        and EFFECTIVE_NUM = #{effectiveNum}
+      </if>
+      <if test="meterWeight != null">
+        and METER_WEIGHT = #{meterWeight}
+      </if>
+      <if test="meterNum != null">
+        and METER_NUM = #{meterNum}
+      </if>
+      <if test="railwayNo != null and railwayNo != ''">
+        and RAILWAY_NO LIKE '%${railwayNo}%'
+      </if>
+      <if test="meterProcessNo != null and meterProcessNo != ''">
+        and METER_PROCESS_NO LIKE '%${meterProcessNo}%'
+      </if>
+      <if test="meterProcessEditionNo != null and meterProcessEditionNo != ''">
+        and METER_PROCESS_EDITION_NO LIKE '%${meterProcessEditionNo}%'
+      </if>
+      <if test="memo != null and memo != ''">
+        and MEMO LIKE '%${memo}%'
+      </if>
+      <if test="valueFlag != null and valueFlag != ''">
+        and VALUE_FLAG LIKE '%${valueFlag}%'
+      </if>
+      <if test="usedTime != null">
+        and TO_CHAR(USED_TIME,'yyyy-MM-dd') = #{usedTime}
+      </if>
+      <if test="createManNo != null and createManNo != ''">
+        and CREATE_MAN_NO LIKE '%${createManNo}%'
+      </if>
+      <if test="createManName != null and createManName != ''">
+        and CREATE_MAN_NAME LIKE '%${createManName}%'
+      </if>
+      <if test="createTime != null">
+        and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
+      </if>
+      <if test="updateManNo != null and updateManNo != ''">
+        and UPDATE_MAN_NO LIKE '%${updateManNo}%'
+      </if>
+      <if test="updateManName != null and updateManName != ''">
+        and UPDATE_MAN_NAME LIKE '%${updateManName}%'
+      </if>
+      <if test="updateTime != null">
+        and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
+      </if>
+      <if test="deleteManNo != null and deleteManNo != ''">
+        and DELETE_MAN_NO LIKE '%${deleteManNo}%'
+      </if>
+      <if test="deleteManName != null and deleteManName != ''">
+        and DELETE_MAN_NAME LIKE '%${deleteManName}%'
+      </if>
+      <if test="deleteTime != null">
+        and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
+      </if>
+      <if test="pValueFlag != null and pValueFlag != ''">
+        and P_VALUE_FLAG LIKE '%${pValueFlag}%'
+      </if>
+      <if test="carAllocationTime != null">
+        and TO_CHAR(CAR_ALLOCATION_TIME,'yyyy-MM-dd') = #{carAllocationTime}
+      </if>
+      <if test="isCompleted != null and isCompleted != ''">
+        and IS_COMPLETED LIKE '%${isCompleted}%'
+      </if>
+      <if test="limsSamplingFlag != null and limsSamplingFlag != ''">
+        and LIMS_SAMPLING_FLAG LIKE '%${limsSamplingFlag}%'
+      </if>
+      <if test="heatNo != null and heatNo != ''">
+        and HEAT_NO LIKE '%${heatNo}%'
+      </if>
+      <if test="idNum != null and idNum != ''">
+        and ID_NUM LIKE '%${idNum}%'
+      </if>
+      <if test="predictionSource != null and predictionSource != ''">
+        and PREDICTION_SOURCE LIKE '%${predictionSource}%'
+      </if>
+      <if test="createDepname != null and createDepname != ''">
+        and CREATE_DEPNAME LIKE '%${createDepname}%'
+      </if>
+      <if test="createDepid != null and createDepid != ''">
+        and CREATE_DEPID LIKE '%${createDepid}%'
+      </if>
+      <if test="lineDesc != null and lineDesc != ''">
+        and LINE_DESC LIKE '%${lineDesc}%'
+      </if>
+      <if test="voucherIdentity != null and voucherIdentity != ''">
+        and VOUCHER_IDENTITY LIKE '%${voucherIdentity}%'
+      </if>
+      <if test="voucherItem != null and voucherItem != ''">
+        and VOUCHER_ITEM LIKE '%${voucherItem}%'
+      </if>
+      <if test="businessGroup != null and businessGroup != ''">
+        and BUSINESS_GROUP LIKE '%${businessGroup}%'
+      </if>
+      <if test="tempConveyance != null and tempConveyance != ''">
+        and TEMP_CONVEYANCE LIKE '%${tempConveyance}%'
+      </if>
+      <if test="conveyanceType != null and conveyanceType != ''">
+        and CONVEYANCE_TYPE LIKE '%${conveyanceType}%'
+      </if>
+      <if test="resourceSystem != null and resourceSystem != ''">
+        and RESOURCE_SYSTEM LIKE '%${resourceSystem}%'
+      </if>
+      <if test="groupPackageAmount != null">
+        and GROUP_PACKAGE_AMOUNT = #{groupPackageAmount}
+      </if>
+      <if test="groupPackageUnit != null and groupPackageUnit != ''">
+        and GROUP_PACKAGE_UNIT LIKE '%${groupPackageUnit}%'
+      </if>
+      <if test="packageAmount != null">
+        and PACKAGE_AMOUNT = #{packageAmount}
+      </if>
+      <if test="packageUnit != null and packageUnit != ''">
+        and PACKAGE_UNIT LIKE '%${packageUnit}%'
+      </if>
+      <if test="theoryAmount != null">
+        and THEORY_AMOUNT = #{theoryAmount}
+      </if>
+      <if test="measureBatch != null and measureBatch != ''">
+        and MEASURE_BATCH LIKE '%${measureBatch}%'
+      </if>
+      <if test="measureBatchCount != null">
+        and MEASURE_BATCH_COUNT = #{measureBatchCount}
+      </if>
+      <if test="senderType != null and senderType != ''">
+        and SENDER_TYPE LIKE '%${senderType}%'
+      </if>
+      <if test="senderRemark != null and senderRemark != ''">
+        and SENDER_REMARK LIKE '%${senderRemark}%'
+      </if>
+      <if test="receiverType != null and receiverType != ''">
+        and RECEIVER_TYPE LIKE '%${receiverType}%'
+      </if>
+      <if test="receiverRemark != null and receiverRemark != ''">
+        and RECEIVER_REMARK LIKE '%${receiverRemark}%'
+      </if>
+      <if test="trustDepartmentName != null and trustDepartmentName != ''">
+        and TRUST_DEPARTMENT_NAME LIKE '%${trustDepartmentName}%'
+      </if>
+      <if test="trustDepartment != null and trustDepartment != ''">
+        and TRUST_DEPARTMENT LIKE '%${trustDepartment}%'
+      </if>
+      <if test="trustor != null and trustor != ''">
+        and TRUSTOR LIKE '%${trustor}%'
+      </if>
+      <if test="trustDateTime != null">
+        and TO_CHAR(TRUST_DATE_TIME,'yyyy-MM-dd') = #{trustDateTime}
+      </if>
+      <if test="trustAvailabilityTime != null">
+        and TO_CHAR(TRUST_AVAILABILITY_TIME,'yyyy-MM-dd') = #{trustAvailabilityTime}
+      </if>
+      <if test="trustIp != null and trustIp != ''">
+        and TRUST_IP LIKE '%${trustIp}%'
+      </if>
+      <if test="stationType != null and stationType != ''">
+        and STATION_TYPE LIKE '%${stationType}%'
+      </if>
+      <if test="measureStation != null and measureStation != ''">
+        and MEASURE_STATION LIKE '%${measureStation}%'
+      </if>
+      <if test="measureStationName != null and measureStationName != ''">
+        and MEASURE_STATION_NAME LIKE '%${measureStationName}%'
+      </if>
+      <if test="amountUnit != null and amountUnit != ''">
+        and AMOUNT_UNIT LIKE '%${amountUnit}%'
+      </if>
+      <if test="trustDay != null">
+        and TRUST_DAY = #{trustDay}
+      </if>
+      <if test="conveyanceGroup != null and conveyanceGroup != ''">
+        and CONVEYANCE_GROUP LIKE '%${conveyanceGroup}%'
+      </if>
+      <if test="revocartionStatus != null and revocartionStatus != ''">
+        and REVOCARTION_STATUS LIKE '%${revocartionStatus}%'
+      </if>
+      <if test="useSite != null and useSite != ''">
+        and USE_SITE LIKE '%${useSite}%'
+      </if>
+      <if test="uploadFlag != null and uploadFlag != ''">
+        and UPLOAD_FLAG LIKE '%${uploadFlag}%'
+      </if>
+    </where>
+  </sql>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
+    delete from PRE_TRACK_SCALE
+    where PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR}
+  </delete>
+  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
+    delete from PRE_TRACK_SCALE
+    where 1!=1 
+      <if test="noticeNo != null and noticeNo != ''">
+        or NOTICE_NO = #{noticeNo}
+      </if>
+      <if test="carNo != null and carNo != ''">
+        or CAR_NO = #{carNo}
+      </if>
+      <if test="trailerNo != null and trailerNo != ''">
+        or TRAILER_NO = #{trailerNo}
+      </if>
+      <if test="matterNo != null and matterNo != ''">
+        or MATTER_NO = #{matterNo}
+      </if>
+      <if test="matterName != null and matterName != ''">
+        or MATTER_NAME = #{matterName}
+      </if>
+      <if test="contractNo != null and contractNo != ''">
+        or CONTRACT_NO = #{contractNo}
+      </if>
+      <if test="batchNo != null and batchNo != ''">
+        or BATCH_NO = #{batchNo}
+      </if>
+      <if test="customerSupplierNo != null and customerSupplierNo != ''">
+        or CUSTOMER_SUPPLIER_NO = #{customerSupplierNo}
+      </if>
+      <if test="customerSupplierName != null and customerSupplierName != ''">
+        or CUSTOMER_SUPPLIER_NAME = #{customerSupplierName}
+      </if>
+      <if test="sourceArea != null and sourceArea != ''">
+        or SOURCE_AREA = #{sourceArea}
+      </if>
+      <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
+        or FORWARDING_UNIT_NO = #{forwardingUnitNo}
+      </if>
+      <if test="forwardingUnitName != null and forwardingUnitName != ''">
+        or FORWARDING_UNIT_NAME = #{forwardingUnitName}
+      </if>
+      <if test="receivingUintNo != null and receivingUintNo != ''">
+        or RECEIVING_UINT_NO = #{receivingUintNo}
+      </if>
+      <if test="receivingUintName != null and receivingUintName != ''">
+        or RECEIVING_UINT_NAME = #{receivingUintName}
+      </if>
+      <if test="materialNo != null and materialNo != ''">
+        or MATERIAL_NO = #{materialNo}
+      </if>
+      <if test="materialName != null and materialName != ''">
+        or MATERIAL_NAME = #{materialName}
+      </if>
+      <if test="specNo != null and specNo != ''">
+        or SPEC_NO = #{specNo}
+      </if>
+      <if test="specName != null and specName != ''">
+        or SPEC_NAME = #{specName}
+      </if>
+      <if test="shipmentGrossWeight != null">
+        or SHIPMENT_GROSS_WEIGHT = #{shipmentGrossWeight}
+      </if>
+      <if test="shipmentNetWeight != null">
+        or SHIPMENT_NET_WEIGHT = #{shipmentNetWeight}
+      </if>
+      <if test="shipmentNum != null">
+        or SHIPMENT_NUM = #{shipmentNum}
+      </if>
+      <if test="addWeightSum != null">
+        or ADD_WEIGHT_SUM = #{addWeightSum}
+      </if>
+      <if test="bindCardNo != null and bindCardNo != ''">
+        or BIND_CARD_NO = #{bindCardNo}
+      </if>
+      <if test="loadPointNo != null and loadPointNo != ''">
+        or LOAD_POINT_NO = #{loadPointNo}
+      </if>
+      <if test="loadPointName != null and loadPointName != ''">
+        or LOAD_POINT_NAME = #{loadPointName}
+      </if>
+      <if test="sampleNo != null and sampleNo != ''">
+        or SAMPLE_NO = #{sampleNo}
+      </if>
+      <if test="sampleVoucher != null and sampleVoucher != ''">
+        or SAMPLE_VOUCHER = #{sampleVoucher}
+      </if>
+      <if test="carrierUnitNo != null and carrierUnitNo != ''">
+        or CARRIER_UNIT_NO = #{carrierUnitNo}
+      </if>
+      <if test="carrierUnitName != null and carrierUnitName != ''">
+        or CARRIER_UNIT_NAME = #{carrierUnitName}
+      </if>
+      <if test="predictionType != null and predictionType != ''">
+        or PREDICTION_TYPE = #{predictionType}
+      </if>
+      <if test="predictionCombination != null and predictionCombination != ''">
+        or PREDICTION_COMBINATION = #{predictionCombination}
+      </if>
+      <if test="meterTypeNo != null and meterTypeNo != ''">
+        or METER_TYPE_NO = #{meterTypeNo}
+      </if>
+      <if test="meterTypeName != null and meterTypeName != ''">
+        or METER_TYPE_NAME = #{meterTypeName}
+      </if>
+      <if test="usedType != null and usedType != ''">
+        or USED_TYPE = #{usedType}
+      </if>
+      <if test="effectiveStartTime != null">
+        or TO_CHAR(EFFECTIVE_START_TIME,'yyyy-MM-dd') = '#{effectiveStartTime}'
+      </if>
+      <if test="effectiveEndTime != null">
+        or TO_CHAR(EFFECTIVE_END_TIME,'yyyy-MM-dd') = '#{effectiveEndTime}'
+      </if>
+      <if test="effectiveWeight != null">
+        or EFFECTIVE_WEIGHT = #{effectiveWeight}
+      </if>
+      <if test="effectiveNum != null">
+        or EFFECTIVE_NUM = #{effectiveNum}
+      </if>
+      <if test="meterWeight != null">
+        or METER_WEIGHT = #{meterWeight}
+      </if>
+      <if test="meterNum != null">
+        or METER_NUM = #{meterNum}
+      </if>
+      <if test="railwayNo != null and railwayNo != ''">
+        or RAILWAY_NO = #{railwayNo}
+      </if>
+      <if test="meterProcessNo != null and meterProcessNo != ''">
+        or METER_PROCESS_NO = #{meterProcessNo}
+      </if>
+      <if test="meterProcessEditionNo != null and meterProcessEditionNo != ''">
+        or METER_PROCESS_EDITION_NO = #{meterProcessEditionNo}
+      </if>
+      <if test="memo != null and memo != ''">
+        or MEMO = #{memo}
+      </if>
+      <if test="valueFlag != null and valueFlag != ''">
+        or VALUE_FLAG = #{valueFlag}
+      </if>
+      <if test="usedTime != null">
+        or TO_CHAR(USED_TIME,'yyyy-MM-dd') = '#{usedTime}'
+      </if>
+      <if test="createManNo != null and createManNo != ''">
+        or CREATE_MAN_NO = #{createManNo}
+      </if>
+      <if test="createManName != null and createManName != ''">
+        or CREATE_MAN_NAME = #{createManName}
+      </if>
+      <if test="createTime != null">
+        or TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = '#{createTime}'
+      </if>
+      <if test="updateManNo != null and updateManNo != ''">
+        or UPDATE_MAN_NO = #{updateManNo}
+      </if>
+      <if test="updateManName != null and updateManName != ''">
+        or UPDATE_MAN_NAME = #{updateManName}
+      </if>
+      <if test="updateTime != null">
+        or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
+      </if>
+      <if test="deleteManNo != null and deleteManNo != ''">
+        or DELETE_MAN_NO = #{deleteManNo}
+      </if>
+      <if test="deleteManName != null and deleteManName != ''">
+        or DELETE_MAN_NAME = #{deleteManName}
+      </if>
+      <if test="deleteTime != null">
+        or TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = '#{deleteTime}'
+      </if>
+      <if test="pValueFlag != null and pValueFlag != ''">
+        or P_VALUE_FLAG = #{pValueFlag}
+      </if>
+      <if test="carAllocationTime != null">
+        or TO_CHAR(CAR_ALLOCATION_TIME,'yyyy-MM-dd') = '#{carAllocationTime}'
+      </if>
+      <if test="isCompleted != null and isCompleted != ''">
+        or IS_COMPLETED = #{isCompleted}
+      </if>
+      <if test="limsSamplingFlag != null and limsSamplingFlag != ''">
+        or LIMS_SAMPLING_FLAG = #{limsSamplingFlag}
+      </if>
+      <if test="heatNo != null and heatNo != ''">
+        or HEAT_NO = #{heatNo}
+      </if>
+      <if test="idNum != null and idNum != ''">
+        or ID_NUM = #{idNum}
+      </if>
+      <if test="predictionSource != null and predictionSource != ''">
+        or PREDICTION_SOURCE = #{predictionSource}
+      </if>
+      <if test="createDepname != null and createDepname != ''">
+        or CREATE_DEPNAME = #{createDepname}
+      </if>
+      <if test="createDepid != null and createDepid != ''">
+        or CREATE_DEPID = #{createDepid}
+      </if>
+      <if test="lineDesc != null and lineDesc != ''">
+        or LINE_DESC = #{lineDesc}
+      </if>
+      <if test="voucherIdentity != null and voucherIdentity != ''">
+        or VOUCHER_IDENTITY = #{voucherIdentity}
+      </if>
+      <if test="voucherItem != null and voucherItem != ''">
+        or VOUCHER_ITEM = #{voucherItem}
+      </if>
+      <if test="businessGroup != null and businessGroup != ''">
+        or BUSINESS_GROUP = #{businessGroup}
+      </if>
+      <if test="tempConveyance != null and tempConveyance != ''">
+        or TEMP_CONVEYANCE = #{tempConveyance}
+      </if>
+      <if test="conveyanceType != null and conveyanceType != ''">
+        or CONVEYANCE_TYPE = #{conveyanceType}
+      </if>
+      <if test="resourceSystem != null and resourceSystem != ''">
+        or RESOURCE_SYSTEM = #{resourceSystem}
+      </if>
+      <if test="groupPackageAmount != null">
+        or GROUP_PACKAGE_AMOUNT = #{groupPackageAmount}
+      </if>
+      <if test="groupPackageUnit != null and groupPackageUnit != ''">
+        or GROUP_PACKAGE_UNIT = #{groupPackageUnit}
+      </if>
+      <if test="packageAmount != null">
+        or PACKAGE_AMOUNT = #{packageAmount}
+      </if>
+      <if test="packageUnit != null and packageUnit != ''">
+        or PACKAGE_UNIT = #{packageUnit}
+      </if>
+      <if test="theoryAmount != null">
+        or THEORY_AMOUNT = #{theoryAmount}
+      </if>
+      <if test="measureBatch != null and measureBatch != ''">
+        or MEASURE_BATCH = #{measureBatch}
+      </if>
+      <if test="measureBatchCount != null">
+        or MEASURE_BATCH_COUNT = #{measureBatchCount}
+      </if>
+      <if test="senderType != null and senderType != ''">
+        or SENDER_TYPE = #{senderType}
+      </if>
+      <if test="senderRemark != null and senderRemark != ''">
+        or SENDER_REMARK = #{senderRemark}
+      </if>
+      <if test="receiverType != null and receiverType != ''">
+        or RECEIVER_TYPE = #{receiverType}
+      </if>
+      <if test="receiverRemark != null and receiverRemark != ''">
+        or RECEIVER_REMARK = #{receiverRemark}
+      </if>
+      <if test="trustDepartmentName != null and trustDepartmentName != ''">
+        or TRUST_DEPARTMENT_NAME = #{trustDepartmentName}
+      </if>
+      <if test="trustDepartment != null and trustDepartment != ''">
+        or TRUST_DEPARTMENT = #{trustDepartment}
+      </if>
+      <if test="trustor != null and trustor != ''">
+        or TRUSTOR = #{trustor}
+      </if>
+      <if test="trustDateTime != null">
+        or TO_CHAR(TRUST_DATE_TIME,'yyyy-MM-dd') = '#{trustDateTime}'
+      </if>
+      <if test="trustAvailabilityTime != null">
+        or TO_CHAR(TRUST_AVAILABILITY_TIME,'yyyy-MM-dd') = '#{trustAvailabilityTime}'
+      </if>
+      <if test="trustIp != null and trustIp != ''">
+        or TRUST_IP = #{trustIp}
+      </if>
+      <if test="stationType != null and stationType != ''">
+        or STATION_TYPE = #{stationType}
+      </if>
+      <if test="measureStation != null and measureStation != ''">
+        or MEASURE_STATION = #{measureStation}
+      </if>
+      <if test="measureStationName != null and measureStationName != ''">
+        or MEASURE_STATION_NAME = #{measureStationName}
+      </if>
+      <if test="amountUnit != null and amountUnit != ''">
+        or AMOUNT_UNIT = #{amountUnit}
+      </if>
+      <if test="trustDay != null">
+        or TRUST_DAY = #{trustDay}
+      </if>
+      <if test="conveyanceGroup != null and conveyanceGroup != ''">
+        or CONVEYANCE_GROUP = #{conveyanceGroup}
+      </if>
+      <if test="revocartionStatus != null and revocartionStatus != ''">
+        or REVOCARTION_STATUS = #{revocartionStatus}
+      </if>
+      <if test="useSite != null and useSite != ''">
+        or USE_SITE = #{useSite}
+      </if>
+      <if test="uploadFlag != null and uploadFlag != ''">
+        or UPLOAD_FLAG = #{uploadFlag}
+      </if>
+  </delete>
+  <insert id="insert" parameterType="com.steerinfo.pretrack.pretrackscale.model.PreTrackScale">
+    insert into PRE_TRACK_SCALE (PREDICTION_NO, NOTICE_NO, CAR_NO, 
+      TRAILER_NO, MATTER_NO, MATTER_NAME, 
+      CONTRACT_NO, BATCH_NO, CUSTOMER_SUPPLIER_NO, 
+      CUSTOMER_SUPPLIER_NAME, SOURCE_AREA, FORWARDING_UNIT_NO, 
+      FORWARDING_UNIT_NAME, RECEIVING_UINT_NO, RECEIVING_UINT_NAME, 
+      MATERIAL_NO, MATERIAL_NAME, SPEC_NO, 
+      SPEC_NAME, SHIPMENT_GROSS_WEIGHT, SHIPMENT_NET_WEIGHT, 
+      SHIPMENT_NUM, ADD_WEIGHT_SUM, BIND_CARD_NO, 
+      LOAD_POINT_NO, LOAD_POINT_NAME, SAMPLE_NO, 
+      SAMPLE_VOUCHER, CARRIER_UNIT_NO, CARRIER_UNIT_NAME, 
+      PREDICTION_TYPE, PREDICTION_COMBINATION, 
+      METER_TYPE_NO, METER_TYPE_NAME, USED_TYPE, 
+      EFFECTIVE_START_TIME, EFFECTIVE_END_TIME, 
+      EFFECTIVE_WEIGHT, EFFECTIVE_NUM, METER_WEIGHT, 
+      METER_NUM, RAILWAY_NO, METER_PROCESS_NO, 
+      METER_PROCESS_EDITION_NO, MEMO, VALUE_FLAG, 
+      USED_TIME, CREATE_MAN_NO, CREATE_MAN_NAME, 
+      CREATE_TIME, UPDATE_MAN_NO, UPDATE_MAN_NAME, 
+      UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME, 
+      DELETE_TIME, P_VALUE_FLAG, CAR_ALLOCATION_TIME, 
+      IS_COMPLETED, LIMS_SAMPLING_FLAG, HEAT_NO, 
+      ID_NUM, PREDICTION_SOURCE, CREATE_DEPNAME, 
+      CREATE_DEPID, LINE_DESC, VOUCHER_IDENTITY, 
+      VOUCHER_ITEM, BUSINESS_GROUP, TEMP_CONVEYANCE, 
+      CONVEYANCE_TYPE, RESOURCE_SYSTEM, GROUP_PACKAGE_AMOUNT, 
+      GROUP_PACKAGE_UNIT, PACKAGE_AMOUNT, PACKAGE_UNIT, 
+      THEORY_AMOUNT, MEASURE_BATCH, MEASURE_BATCH_COUNT, 
+      SENDER_TYPE, SENDER_REMARK, RECEIVER_TYPE, 
+      RECEIVER_REMARK, TRUST_DEPARTMENT_NAME, TRUST_DEPARTMENT, 
+      TRUSTOR, TRUST_DATE_TIME, TRUST_AVAILABILITY_TIME, 
+      TRUST_IP, STATION_TYPE, MEASURE_STATION, 
+      MEASURE_STATION_NAME, AMOUNT_UNIT, TRUST_DAY, 
+      CONVEYANCE_GROUP, REVOCARTION_STATUS, USE_SITE, 
+      UPLOAD_FLAG)
+    values (#{predictionNo,jdbcType=VARCHAR}, #{noticeNo,jdbcType=VARCHAR}, #{carNo,jdbcType=VARCHAR}, 
+      #{trailerNo,jdbcType=VARCHAR}, #{matterNo,jdbcType=VARCHAR}, #{matterName,jdbcType=VARCHAR}, 
+      #{contractNo,jdbcType=VARCHAR}, #{batchNo,jdbcType=VARCHAR}, #{customerSupplierNo,jdbcType=VARCHAR}, 
+      #{customerSupplierName,jdbcType=VARCHAR}, #{sourceArea,jdbcType=VARCHAR}, #{forwardingUnitNo,jdbcType=VARCHAR}, 
+      #{forwardingUnitName,jdbcType=VARCHAR}, #{receivingUintNo,jdbcType=VARCHAR}, #{receivingUintName,jdbcType=VARCHAR}, 
+      #{materialNo,jdbcType=VARCHAR}, #{materialName,jdbcType=VARCHAR}, #{specNo,jdbcType=VARCHAR}, 
+      #{specName,jdbcType=VARCHAR}, #{shipmentGrossWeight,jdbcType=DECIMAL}, #{shipmentNetWeight,jdbcType=DECIMAL}, 
+      #{shipmentNum,jdbcType=DECIMAL}, #{addWeightSum,jdbcType=DECIMAL}, #{bindCardNo,jdbcType=VARCHAR}, 
+      #{loadPointNo,jdbcType=VARCHAR}, #{loadPointName,jdbcType=VARCHAR}, #{sampleNo,jdbcType=VARCHAR}, 
+      #{sampleVoucher,jdbcType=VARCHAR}, #{carrierUnitNo,jdbcType=VARCHAR}, #{carrierUnitName,jdbcType=VARCHAR}, 
+      #{predictionType,jdbcType=VARCHAR}, #{predictionCombination,jdbcType=VARCHAR}, 
+      #{meterTypeNo,jdbcType=VARCHAR}, #{meterTypeName,jdbcType=VARCHAR}, #{usedType,jdbcType=VARCHAR}, 
+      #{effectiveStartTime,jdbcType=TIMESTAMP}, #{effectiveEndTime,jdbcType=TIMESTAMP}, 
+      #{effectiveWeight,jdbcType=DECIMAL}, #{effectiveNum,jdbcType=DECIMAL}, #{meterWeight,jdbcType=DECIMAL}, 
+      #{meterNum,jdbcType=DECIMAL}, #{railwayNo,jdbcType=VARCHAR}, #{meterProcessNo,jdbcType=VARCHAR}, 
+      #{meterProcessEditionNo,jdbcType=VARCHAR}, #{memo,jdbcType=VARCHAR}, #{valueFlag,jdbcType=VARCHAR}, 
+      #{usedTime,jdbcType=TIMESTAMP}, #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR}, 
+      #{createTime,jdbcType=TIMESTAMP}, #{updateManNo,jdbcType=VARCHAR}, #{updateManName,jdbcType=VARCHAR}, 
+      #{updateTime,jdbcType=TIMESTAMP}, #{deleteManNo,jdbcType=VARCHAR}, #{deleteManName,jdbcType=VARCHAR}, 
+      #{deleteTime,jdbcType=TIMESTAMP}, #{pValueFlag,jdbcType=VARCHAR}, #{carAllocationTime,jdbcType=TIMESTAMP}, 
+      #{isCompleted,jdbcType=VARCHAR}, #{limsSamplingFlag,jdbcType=VARCHAR}, #{heatNo,jdbcType=VARCHAR}, 
+      #{idNum,jdbcType=VARCHAR}, #{predictionSource,jdbcType=VARCHAR}, #{createDepname,jdbcType=VARCHAR}, 
+      #{createDepid,jdbcType=VARCHAR}, #{lineDesc,jdbcType=VARCHAR}, #{voucherIdentity,jdbcType=VARCHAR}, 
+      #{voucherItem,jdbcType=VARCHAR}, #{businessGroup,jdbcType=VARCHAR}, #{tempConveyance,jdbcType=VARCHAR}, 
+      #{conveyanceType,jdbcType=VARCHAR}, #{resourceSystem,jdbcType=VARCHAR}, #{groupPackageAmount,jdbcType=DECIMAL}, 
+      #{groupPackageUnit,jdbcType=VARCHAR}, #{packageAmount,jdbcType=DECIMAL}, #{packageUnit,jdbcType=VARCHAR}, 
+      #{theoryAmount,jdbcType=DECIMAL}, #{measureBatch,jdbcType=VARCHAR}, #{measureBatchCount,jdbcType=DECIMAL}, 
+      #{senderType,jdbcType=VARCHAR}, #{senderRemark,jdbcType=VARCHAR}, #{receiverType,jdbcType=VARCHAR}, 
+      #{receiverRemark,jdbcType=VARCHAR}, #{trustDepartmentName,jdbcType=VARCHAR}, #{trustDepartment,jdbcType=VARCHAR}, 
+      #{trustor,jdbcType=VARCHAR}, #{trustDateTime,jdbcType=TIMESTAMP}, #{trustAvailabilityTime,jdbcType=TIMESTAMP}, 
+      #{trustIp,jdbcType=VARCHAR}, #{stationType,jdbcType=VARCHAR}, #{measureStation,jdbcType=VARCHAR}, 
+      #{measureStationName,jdbcType=VARCHAR}, #{amountUnit,jdbcType=VARCHAR}, #{trustDay,jdbcType=DECIMAL}, 
+      #{conveyanceGroup,jdbcType=VARCHAR}, #{revocartionStatus,jdbcType=VARCHAR}, #{useSite,jdbcType=VARCHAR}, 
+      #{uploadFlag,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.steerinfo.pretrack.pretrackscale.model.PreTrackScale">
+    insert into PRE_TRACK_SCALE
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="predictionNo != null">
+        PREDICTION_NO,
+      </if>
+      <if test="noticeNo != null">
+        NOTICE_NO,
+      </if>
+      <if test="carNo != null">
+        CAR_NO,
+      </if>
+      <if test="trailerNo != null">
+        TRAILER_NO,
+      </if>
+      <if test="matterNo != null">
+        MATTER_NO,
+      </if>
+      <if test="matterName != null">
+        MATTER_NAME,
+      </if>
+      <if test="contractNo != null">
+        CONTRACT_NO,
+      </if>
+      <if test="batchNo != null">
+        BATCH_NO,
+      </if>
+      <if test="customerSupplierNo != null">
+        CUSTOMER_SUPPLIER_NO,
+      </if>
+      <if test="customerSupplierName != null">
+        CUSTOMER_SUPPLIER_NAME,
+      </if>
+      <if test="sourceArea != null">
+        SOURCE_AREA,
+      </if>
+      <if test="forwardingUnitNo != null">
+        FORWARDING_UNIT_NO,
+      </if>
+      <if test="forwardingUnitName != null">
+        FORWARDING_UNIT_NAME,
+      </if>
+      <if test="receivingUintNo != null">
+        RECEIVING_UINT_NO,
+      </if>
+      <if test="receivingUintName != null">
+        RECEIVING_UINT_NAME,
+      </if>
+      <if test="materialNo != null">
+        MATERIAL_NO,
+      </if>
+      <if test="materialName != null">
+        MATERIAL_NAME,
+      </if>
+      <if test="specNo != null">
+        SPEC_NO,
+      </if>
+      <if test="specName != null">
+        SPEC_NAME,
+      </if>
+      <if test="shipmentGrossWeight != null">
+        SHIPMENT_GROSS_WEIGHT,
+      </if>
+      <if test="shipmentNetWeight != null">
+        SHIPMENT_NET_WEIGHT,
+      </if>
+      <if test="shipmentNum != null">
+        SHIPMENT_NUM,
+      </if>
+      <if test="addWeightSum != null">
+        ADD_WEIGHT_SUM,
+      </if>
+      <if test="bindCardNo != null">
+        BIND_CARD_NO,
+      </if>
+      <if test="loadPointNo != null">
+        LOAD_POINT_NO,
+      </if>
+      <if test="loadPointName != null">
+        LOAD_POINT_NAME,
+      </if>
+      <if test="sampleNo != null">
+        SAMPLE_NO,
+      </if>
+      <if test="sampleVoucher != null">
+        SAMPLE_VOUCHER,
+      </if>
+      <if test="carrierUnitNo != null">
+        CARRIER_UNIT_NO,
+      </if>
+      <if test="carrierUnitName != null">
+        CARRIER_UNIT_NAME,
+      </if>
+      <if test="predictionType != null">
+        PREDICTION_TYPE,
+      </if>
+      <if test="predictionCombination != null">
+        PREDICTION_COMBINATION,
+      </if>
+      <if test="meterTypeNo != null">
+        METER_TYPE_NO,
+      </if>
+      <if test="meterTypeName != null">
+        METER_TYPE_NAME,
+      </if>
+      <if test="usedType != null">
+        USED_TYPE,
+      </if>
+      <if test="effectiveStartTime != null">
+        EFFECTIVE_START_TIME,
+      </if>
+      <if test="effectiveEndTime != null">
+        EFFECTIVE_END_TIME,
+      </if>
+      <if test="effectiveWeight != null">
+        EFFECTIVE_WEIGHT,
+      </if>
+      <if test="effectiveNum != null">
+        EFFECTIVE_NUM,
+      </if>
+      <if test="meterWeight != null">
+        METER_WEIGHT,
+      </if>
+      <if test="meterNum != null">
+        METER_NUM,
+      </if>
+      <if test="railwayNo != null">
+        RAILWAY_NO,
+      </if>
+      <if test="meterProcessNo != null">
+        METER_PROCESS_NO,
+      </if>
+      <if test="meterProcessEditionNo != null">
+        METER_PROCESS_EDITION_NO,
+      </if>
+      <if test="memo != null">
+        MEMO,
+      </if>
+      <if test="valueFlag != null">
+        VALUE_FLAG,
+      </if>
+      <if test="usedTime != null">
+        USED_TIME,
+      </if>
+      <if test="createManNo != null">
+        CREATE_MAN_NO,
+      </if>
+      <if test="createManName != null">
+        CREATE_MAN_NAME,
+      </if>
+      <if test="createTime != null">
+        CREATE_TIME,
+      </if>
+      <if test="updateManNo != null">
+        UPDATE_MAN_NO,
+      </if>
+      <if test="updateManName != null">
+        UPDATE_MAN_NAME,
+      </if>
+      <if test="updateTime != null">
+        UPDATE_TIME,
+      </if>
+      <if test="deleteManNo != null">
+        DELETE_MAN_NO,
+      </if>
+      <if test="deleteManName != null">
+        DELETE_MAN_NAME,
+      </if>
+      <if test="deleteTime != null">
+        DELETE_TIME,
+      </if>
+      <if test="pValueFlag != null">
+        P_VALUE_FLAG,
+      </if>
+      <if test="carAllocationTime != null">
+        CAR_ALLOCATION_TIME,
+      </if>
+      <if test="isCompleted != null">
+        IS_COMPLETED,
+      </if>
+      <if test="limsSamplingFlag != null">
+        LIMS_SAMPLING_FLAG,
+      </if>
+      <if test="heatNo != null">
+        HEAT_NO,
+      </if>
+      <if test="idNum != null">
+        ID_NUM,
+      </if>
+      <if test="predictionSource != null">
+        PREDICTION_SOURCE,
+      </if>
+      <if test="createDepname != null">
+        CREATE_DEPNAME,
+      </if>
+      <if test="createDepid != null">
+        CREATE_DEPID,
+      </if>
+      <if test="lineDesc != null">
+        LINE_DESC,
+      </if>
+      <if test="voucherIdentity != null">
+        VOUCHER_IDENTITY,
+      </if>
+      <if test="voucherItem != null">
+        VOUCHER_ITEM,
+      </if>
+      <if test="businessGroup != null">
+        BUSINESS_GROUP,
+      </if>
+      <if test="tempConveyance != null">
+        TEMP_CONVEYANCE,
+      </if>
+      <if test="conveyanceType != null">
+        CONVEYANCE_TYPE,
+      </if>
+      <if test="resourceSystem != null">
+        RESOURCE_SYSTEM,
+      </if>
+      <if test="groupPackageAmount != null">
+        GROUP_PACKAGE_AMOUNT,
+      </if>
+      <if test="groupPackageUnit != null">
+        GROUP_PACKAGE_UNIT,
+      </if>
+      <if test="packageAmount != null">
+        PACKAGE_AMOUNT,
+      </if>
+      <if test="packageUnit != null">
+        PACKAGE_UNIT,
+      </if>
+      <if test="theoryAmount != null">
+        THEORY_AMOUNT,
+      </if>
+      <if test="measureBatch != null">
+        MEASURE_BATCH,
+      </if>
+      <if test="measureBatchCount != null">
+        MEASURE_BATCH_COUNT,
+      </if>
+      <if test="senderType != null">
+        SENDER_TYPE,
+      </if>
+      <if test="senderRemark != null">
+        SENDER_REMARK,
+      </if>
+      <if test="receiverType != null">
+        RECEIVER_TYPE,
+      </if>
+      <if test="receiverRemark != null">
+        RECEIVER_REMARK,
+      </if>
+      <if test="trustDepartmentName != null">
+        TRUST_DEPARTMENT_NAME,
+      </if>
+      <if test="trustDepartment != null">
+        TRUST_DEPARTMENT,
+      </if>
+      <if test="trustor != null">
+        TRUSTOR,
+      </if>
+      <if test="trustDateTime != null">
+        TRUST_DATE_TIME,
+      </if>
+      <if test="trustAvailabilityTime != null">
+        TRUST_AVAILABILITY_TIME,
+      </if>
+      <if test="trustIp != null">
+        TRUST_IP,
+      </if>
+      <if test="stationType != null">
+        STATION_TYPE,
+      </if>
+      <if test="measureStation != null">
+        MEASURE_STATION,
+      </if>
+      <if test="measureStationName != null">
+        MEASURE_STATION_NAME,
+      </if>
+      <if test="amountUnit != null">
+        AMOUNT_UNIT,
+      </if>
+      <if test="trustDay != null">
+        TRUST_DAY,
+      </if>
+      <if test="conveyanceGroup != null">
+        CONVEYANCE_GROUP,
+      </if>
+      <if test="revocartionStatus != null">
+        REVOCARTION_STATUS,
+      </if>
+      <if test="useSite != null">
+        USE_SITE,
+      </if>
+      <if test="uploadFlag != null">
+        UPLOAD_FLAG,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="predictionNo != null">
+        #{predictionNo,jdbcType=VARCHAR},
+      </if>
+      <if test="noticeNo != null">
+        #{noticeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="carNo != null">
+        #{carNo,jdbcType=VARCHAR},
+      </if>
+      <if test="trailerNo != null">
+        #{trailerNo,jdbcType=VARCHAR},
+      </if>
+      <if test="matterNo != null">
+        #{matterNo,jdbcType=VARCHAR},
+      </if>
+      <if test="matterName != null">
+        #{matterName,jdbcType=VARCHAR},
+      </if>
+      <if test="contractNo != null">
+        #{contractNo,jdbcType=VARCHAR},
+      </if>
+      <if test="batchNo != null">
+        #{batchNo,jdbcType=VARCHAR},
+      </if>
+      <if test="customerSupplierNo != null">
+        #{customerSupplierNo,jdbcType=VARCHAR},
+      </if>
+      <if test="customerSupplierName != null">
+        #{customerSupplierName,jdbcType=VARCHAR},
+      </if>
+      <if test="sourceArea != null">
+        #{sourceArea,jdbcType=VARCHAR},
+      </if>
+      <if test="forwardingUnitNo != null">
+        #{forwardingUnitNo,jdbcType=VARCHAR},
+      </if>
+      <if test="forwardingUnitName != null">
+        #{forwardingUnitName,jdbcType=VARCHAR},
+      </if>
+      <if test="receivingUintNo != null">
+        #{receivingUintNo,jdbcType=VARCHAR},
+      </if>
+      <if test="receivingUintName != null">
+        #{receivingUintName,jdbcType=VARCHAR},
+      </if>
+      <if test="materialNo != null">
+        #{materialNo,jdbcType=VARCHAR},
+      </if>
+      <if test="materialName != null">
+        #{materialName,jdbcType=VARCHAR},
+      </if>
+      <if test="specNo != null">
+        #{specNo,jdbcType=VARCHAR},
+      </if>
+      <if test="specName != null">
+        #{specName,jdbcType=VARCHAR},
+      </if>
+      <if test="shipmentGrossWeight != null">
+        #{shipmentGrossWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="shipmentNetWeight != null">
+        #{shipmentNetWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="shipmentNum != null">
+        #{shipmentNum,jdbcType=DECIMAL},
+      </if>
+      <if test="addWeightSum != null">
+        #{addWeightSum,jdbcType=DECIMAL},
+      </if>
+      <if test="bindCardNo != null">
+        #{bindCardNo,jdbcType=VARCHAR},
+      </if>
+      <if test="loadPointNo != null">
+        #{loadPointNo,jdbcType=VARCHAR},
+      </if>
+      <if test="loadPointName != null">
+        #{loadPointName,jdbcType=VARCHAR},
+      </if>
+      <if test="sampleNo != null">
+        #{sampleNo,jdbcType=VARCHAR},
+      </if>
+      <if test="sampleVoucher != null">
+        #{sampleVoucher,jdbcType=VARCHAR},
+      </if>
+      <if test="carrierUnitNo != null">
+        #{carrierUnitNo,jdbcType=VARCHAR},
+      </if>
+      <if test="carrierUnitName != null">
+        #{carrierUnitName,jdbcType=VARCHAR},
+      </if>
+      <if test="predictionType != null">
+        #{predictionType,jdbcType=VARCHAR},
+      </if>
+      <if test="predictionCombination != null">
+        #{predictionCombination,jdbcType=VARCHAR},
+      </if>
+      <if test="meterTypeNo != null">
+        #{meterTypeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="meterTypeName != null">
+        #{meterTypeName,jdbcType=VARCHAR},
+      </if>
+      <if test="usedType != null">
+        #{usedType,jdbcType=VARCHAR},
+      </if>
+      <if test="effectiveStartTime != null">
+        #{effectiveStartTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="effectiveEndTime != null">
+        #{effectiveEndTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="effectiveWeight != null">
+        #{effectiveWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="effectiveNum != null">
+        #{effectiveNum,jdbcType=DECIMAL},
+      </if>
+      <if test="meterWeight != null">
+        #{meterWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="meterNum != null">
+        #{meterNum,jdbcType=DECIMAL},
+      </if>
+      <if test="railwayNo != null">
+        #{railwayNo,jdbcType=VARCHAR},
+      </if>
+      <if test="meterProcessNo != null">
+        #{meterProcessNo,jdbcType=VARCHAR},
+      </if>
+      <if test="meterProcessEditionNo != null">
+        #{meterProcessEditionNo,jdbcType=VARCHAR},
+      </if>
+      <if test="memo != null">
+        #{memo,jdbcType=VARCHAR},
+      </if>
+      <if test="valueFlag != null">
+        #{valueFlag,jdbcType=VARCHAR},
+      </if>
+      <if test="usedTime != null">
+        #{usedTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="createManNo != null">
+        #{createManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="createManName != null">
+        #{createManName,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateManNo != null">
+        #{updateManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="updateManName != null">
+        #{updateManName,jdbcType=VARCHAR},
+      </if>
+      <if test="updateTime != null">
+        #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="deleteManNo != null">
+        #{deleteManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="deleteManName != null">
+        #{deleteManName,jdbcType=VARCHAR},
+      </if>
+      <if test="deleteTime != null">
+        #{deleteTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="pValueFlag != null">
+        #{pValueFlag,jdbcType=VARCHAR},
+      </if>
+      <if test="carAllocationTime != null">
+        #{carAllocationTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="isCompleted != null">
+        #{isCompleted,jdbcType=VARCHAR},
+      </if>
+      <if test="limsSamplingFlag != null">
+        #{limsSamplingFlag,jdbcType=VARCHAR},
+      </if>
+      <if test="heatNo != null">
+        #{heatNo,jdbcType=VARCHAR},
+      </if>
+      <if test="idNum != null">
+        #{idNum,jdbcType=VARCHAR},
+      </if>
+      <if test="predictionSource != null">
+        #{predictionSource,jdbcType=VARCHAR},
+      </if>
+      <if test="createDepname != null">
+        #{createDepname,jdbcType=VARCHAR},
+      </if>
+      <if test="createDepid != null">
+        #{createDepid,jdbcType=VARCHAR},
+      </if>
+      <if test="lineDesc != null">
+        #{lineDesc,jdbcType=VARCHAR},
+      </if>
+      <if test="voucherIdentity != null">
+        #{voucherIdentity,jdbcType=VARCHAR},
+      </if>
+      <if test="voucherItem != null">
+        #{voucherItem,jdbcType=VARCHAR},
+      </if>
+      <if test="businessGroup != null">
+        #{businessGroup,jdbcType=VARCHAR},
+      </if>
+      <if test="tempConveyance != null">
+        #{tempConveyance,jdbcType=VARCHAR},
+      </if>
+      <if test="conveyanceType != null">
+        #{conveyanceType,jdbcType=VARCHAR},
+      </if>
+      <if test="resourceSystem != null">
+        #{resourceSystem,jdbcType=VARCHAR},
+      </if>
+      <if test="groupPackageAmount != null">
+        #{groupPackageAmount,jdbcType=DECIMAL},
+      </if>
+      <if test="groupPackageUnit != null">
+        #{groupPackageUnit,jdbcType=VARCHAR},
+      </if>
+      <if test="packageAmount != null">
+        #{packageAmount,jdbcType=DECIMAL},
+      </if>
+      <if test="packageUnit != null">
+        #{packageUnit,jdbcType=VARCHAR},
+      </if>
+      <if test="theoryAmount != null">
+        #{theoryAmount,jdbcType=DECIMAL},
+      </if>
+      <if test="measureBatch != null">
+        #{measureBatch,jdbcType=VARCHAR},
+      </if>
+      <if test="measureBatchCount != null">
+        #{measureBatchCount,jdbcType=DECIMAL},
+      </if>
+      <if test="senderType != null">
+        #{senderType,jdbcType=VARCHAR},
+      </if>
+      <if test="senderRemark != null">
+        #{senderRemark,jdbcType=VARCHAR},
+      </if>
+      <if test="receiverType != null">
+        #{receiverType,jdbcType=VARCHAR},
+      </if>
+      <if test="receiverRemark != null">
+        #{receiverRemark,jdbcType=VARCHAR},
+      </if>
+      <if test="trustDepartmentName != null">
+        #{trustDepartmentName,jdbcType=VARCHAR},
+      </if>
+      <if test="trustDepartment != null">
+        #{trustDepartment,jdbcType=VARCHAR},
+      </if>
+      <if test="trustor != null">
+        #{trustor,jdbcType=VARCHAR},
+      </if>
+      <if test="trustDateTime != null">
+        #{trustDateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="trustAvailabilityTime != null">
+        #{trustAvailabilityTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="trustIp != null">
+        #{trustIp,jdbcType=VARCHAR},
+      </if>
+      <if test="stationType != null">
+        #{stationType,jdbcType=VARCHAR},
+      </if>
+      <if test="measureStation != null">
+        #{measureStation,jdbcType=VARCHAR},
+      </if>
+      <if test="measureStationName != null">
+        #{measureStationName,jdbcType=VARCHAR},
+      </if>
+      <if test="amountUnit != null">
+        #{amountUnit,jdbcType=VARCHAR},
+      </if>
+      <if test="trustDay != null">
+        #{trustDay,jdbcType=DECIMAL},
+      </if>
+      <if test="conveyanceGroup != null">
+        #{conveyanceGroup,jdbcType=VARCHAR},
+      </if>
+      <if test="revocartionStatus != null">
+        #{revocartionStatus,jdbcType=VARCHAR},
+      </if>
+      <if test="useSite != null">
+        #{useSite,jdbcType=VARCHAR},
+      </if>
+      <if test="uploadFlag != null">
+        #{uploadFlag,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKey" parameterType="com.steerinfo.pretrack.pretrackscale.model.PreTrackScale">
+    update PRE_TRACK_SCALE
+    set NOTICE_NO = #{noticeNo,jdbcType=VARCHAR},
+      CAR_NO = #{carNo,jdbcType=VARCHAR},
+      TRAILER_NO = #{trailerNo,jdbcType=VARCHAR},
+      MATTER_NO = #{matterNo,jdbcType=VARCHAR},
+      MATTER_NAME = #{matterName,jdbcType=VARCHAR},
+      CONTRACT_NO = #{contractNo,jdbcType=VARCHAR},
+      BATCH_NO = #{batchNo,jdbcType=VARCHAR},
+      CUSTOMER_SUPPLIER_NO = #{customerSupplierNo,jdbcType=VARCHAR},
+      CUSTOMER_SUPPLIER_NAME = #{customerSupplierName,jdbcType=VARCHAR},
+      SOURCE_AREA = #{sourceArea,jdbcType=VARCHAR},
+      FORWARDING_UNIT_NO = #{forwardingUnitNo,jdbcType=VARCHAR},
+      FORWARDING_UNIT_NAME = #{forwardingUnitName,jdbcType=VARCHAR},
+      RECEIVING_UINT_NO = #{receivingUintNo,jdbcType=VARCHAR},
+      RECEIVING_UINT_NAME = #{receivingUintName,jdbcType=VARCHAR},
+      MATERIAL_NO = #{materialNo,jdbcType=VARCHAR},
+      MATERIAL_NAME = #{materialName,jdbcType=VARCHAR},
+      SPEC_NO = #{specNo,jdbcType=VARCHAR},
+      SPEC_NAME = #{specName,jdbcType=VARCHAR},
+      SHIPMENT_GROSS_WEIGHT = #{shipmentGrossWeight,jdbcType=DECIMAL},
+      SHIPMENT_NET_WEIGHT = #{shipmentNetWeight,jdbcType=DECIMAL},
+      SHIPMENT_NUM = #{shipmentNum,jdbcType=DECIMAL},
+      ADD_WEIGHT_SUM = #{addWeightSum,jdbcType=DECIMAL},
+      BIND_CARD_NO = #{bindCardNo,jdbcType=VARCHAR},
+      LOAD_POINT_NO = #{loadPointNo,jdbcType=VARCHAR},
+      LOAD_POINT_NAME = #{loadPointName,jdbcType=VARCHAR},
+      SAMPLE_NO = #{sampleNo,jdbcType=VARCHAR},
+      SAMPLE_VOUCHER = #{sampleVoucher,jdbcType=VARCHAR},
+      CARRIER_UNIT_NO = #{carrierUnitNo,jdbcType=VARCHAR},
+      CARRIER_UNIT_NAME = #{carrierUnitName,jdbcType=VARCHAR},
+      PREDICTION_TYPE = #{predictionType,jdbcType=VARCHAR},
+      PREDICTION_COMBINATION = #{predictionCombination,jdbcType=VARCHAR},
+      METER_TYPE_NO = #{meterTypeNo,jdbcType=VARCHAR},
+      METER_TYPE_NAME = #{meterTypeName,jdbcType=VARCHAR},
+      USED_TYPE = #{usedType,jdbcType=VARCHAR},
+      EFFECTIVE_START_TIME = #{effectiveStartTime,jdbcType=TIMESTAMP},
+      EFFECTIVE_END_TIME = #{effectiveEndTime,jdbcType=TIMESTAMP},
+      EFFECTIVE_WEIGHT = #{effectiveWeight,jdbcType=DECIMAL},
+      EFFECTIVE_NUM = #{effectiveNum,jdbcType=DECIMAL},
+      METER_WEIGHT = #{meterWeight,jdbcType=DECIMAL},
+      METER_NUM = #{meterNum,jdbcType=DECIMAL},
+      RAILWAY_NO = #{railwayNo,jdbcType=VARCHAR},
+      METER_PROCESS_NO = #{meterProcessNo,jdbcType=VARCHAR},
+      METER_PROCESS_EDITION_NO = #{meterProcessEditionNo,jdbcType=VARCHAR},
+      MEMO = #{memo,jdbcType=VARCHAR},
+      VALUE_FLAG = #{valueFlag,jdbcType=VARCHAR},
+      USED_TIME = #{usedTime,jdbcType=TIMESTAMP},
+      CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
+      CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
+      CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
+      UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
+      UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
+      UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
+      DELETE_MAN_NO = #{deleteManNo,jdbcType=VARCHAR},
+      DELETE_MAN_NAME = #{deleteManName,jdbcType=VARCHAR},
+      DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
+      P_VALUE_FLAG = #{pValueFlag,jdbcType=VARCHAR},
+      CAR_ALLOCATION_TIME = #{carAllocationTime,jdbcType=TIMESTAMP},
+      IS_COMPLETED = #{isCompleted,jdbcType=VARCHAR},
+      LIMS_SAMPLING_FLAG = #{limsSamplingFlag,jdbcType=VARCHAR},
+      HEAT_NO = #{heatNo,jdbcType=VARCHAR},
+      ID_NUM = #{idNum,jdbcType=VARCHAR},
+      PREDICTION_SOURCE = #{predictionSource,jdbcType=VARCHAR},
+      CREATE_DEPNAME = #{createDepname,jdbcType=VARCHAR},
+      CREATE_DEPID = #{createDepid,jdbcType=VARCHAR},
+      LINE_DESC = #{lineDesc,jdbcType=VARCHAR},
+      VOUCHER_IDENTITY = #{voucherIdentity,jdbcType=VARCHAR},
+      VOUCHER_ITEM = #{voucherItem,jdbcType=VARCHAR},
+      BUSINESS_GROUP = #{businessGroup,jdbcType=VARCHAR},
+      TEMP_CONVEYANCE = #{tempConveyance,jdbcType=VARCHAR},
+      CONVEYANCE_TYPE = #{conveyanceType,jdbcType=VARCHAR},
+      RESOURCE_SYSTEM = #{resourceSystem,jdbcType=VARCHAR},
+      GROUP_PACKAGE_AMOUNT = #{groupPackageAmount,jdbcType=DECIMAL},
+      GROUP_PACKAGE_UNIT = #{groupPackageUnit,jdbcType=VARCHAR},
+      PACKAGE_AMOUNT = #{packageAmount,jdbcType=DECIMAL},
+      PACKAGE_UNIT = #{packageUnit,jdbcType=VARCHAR},
+      THEORY_AMOUNT = #{theoryAmount,jdbcType=DECIMAL},
+      MEASURE_BATCH = #{measureBatch,jdbcType=VARCHAR},
+      MEASURE_BATCH_COUNT = #{measureBatchCount,jdbcType=DECIMAL},
+      SENDER_TYPE = #{senderType,jdbcType=VARCHAR},
+      SENDER_REMARK = #{senderRemark,jdbcType=VARCHAR},
+      RECEIVER_TYPE = #{receiverType,jdbcType=VARCHAR},
+      RECEIVER_REMARK = #{receiverRemark,jdbcType=VARCHAR},
+      TRUST_DEPARTMENT_NAME = #{trustDepartmentName,jdbcType=VARCHAR},
+      TRUST_DEPARTMENT = #{trustDepartment,jdbcType=VARCHAR},
+      TRUSTOR = #{trustor,jdbcType=VARCHAR},
+      TRUST_DATE_TIME = #{trustDateTime,jdbcType=TIMESTAMP},
+      TRUST_AVAILABILITY_TIME = #{trustAvailabilityTime,jdbcType=TIMESTAMP},
+      TRUST_IP = #{trustIp,jdbcType=VARCHAR},
+      STATION_TYPE = #{stationType,jdbcType=VARCHAR},
+      MEASURE_STATION = #{measureStation,jdbcType=VARCHAR},
+      MEASURE_STATION_NAME = #{measureStationName,jdbcType=VARCHAR},
+      AMOUNT_UNIT = #{amountUnit,jdbcType=VARCHAR},
+      TRUST_DAY = #{trustDay,jdbcType=DECIMAL},
+      CONVEYANCE_GROUP = #{conveyanceGroup,jdbcType=VARCHAR},
+      REVOCARTION_STATUS = #{revocartionStatus,jdbcType=VARCHAR},
+      USE_SITE = #{useSite,jdbcType=VARCHAR},
+      UPLOAD_FLAG = #{uploadFlag,jdbcType=VARCHAR}
+    where PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR}
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.pretrack.pretrackscale.model.PreTrackScale">
+    update PRE_TRACK_SCALE
+    <set>
+      <if test="noticeNo != null">
+        NOTICE_NO = #{noticeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="carNo != null">
+        CAR_NO = #{carNo,jdbcType=VARCHAR},
+      </if>
+      <if test="trailerNo != null">
+        TRAILER_NO = #{trailerNo,jdbcType=VARCHAR},
+      </if>
+      <if test="matterNo != null">
+        MATTER_NO = #{matterNo,jdbcType=VARCHAR},
+      </if>
+      <if test="matterName != null">
+        MATTER_NAME = #{matterName,jdbcType=VARCHAR},
+      </if>
+      <if test="contractNo != null">
+        CONTRACT_NO = #{contractNo,jdbcType=VARCHAR},
+      </if>
+      <if test="batchNo != null">
+        BATCH_NO = #{batchNo,jdbcType=VARCHAR},
+      </if>
+      <if test="customerSupplierNo != null">
+        CUSTOMER_SUPPLIER_NO = #{customerSupplierNo,jdbcType=VARCHAR},
+      </if>
+      <if test="customerSupplierName != null">
+        CUSTOMER_SUPPLIER_NAME = #{customerSupplierName,jdbcType=VARCHAR},
+      </if>
+      <if test="sourceArea != null">
+        SOURCE_AREA = #{sourceArea,jdbcType=VARCHAR},
+      </if>
+      <if test="forwardingUnitNo != null">
+        FORWARDING_UNIT_NO = #{forwardingUnitNo,jdbcType=VARCHAR},
+      </if>
+      <if test="forwardingUnitName != null">
+        FORWARDING_UNIT_NAME = #{forwardingUnitName,jdbcType=VARCHAR},
+      </if>
+      <if test="receivingUintNo != null">
+        RECEIVING_UINT_NO = #{receivingUintNo,jdbcType=VARCHAR},
+      </if>
+      <if test="receivingUintName != null">
+        RECEIVING_UINT_NAME = #{receivingUintName,jdbcType=VARCHAR},
+      </if>
+      <if test="materialNo != null">
+        MATERIAL_NO = #{materialNo,jdbcType=VARCHAR},
+      </if>
+      <if test="materialName != null">
+        MATERIAL_NAME = #{materialName,jdbcType=VARCHAR},
+      </if>
+      <if test="specNo != null">
+        SPEC_NO = #{specNo,jdbcType=VARCHAR},
+      </if>
+      <if test="specName != null">
+        SPEC_NAME = #{specName,jdbcType=VARCHAR},
+      </if>
+      <if test="shipmentGrossWeight != null">
+        SHIPMENT_GROSS_WEIGHT = #{shipmentGrossWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="shipmentNetWeight != null">
+        SHIPMENT_NET_WEIGHT = #{shipmentNetWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="shipmentNum != null">
+        SHIPMENT_NUM = #{shipmentNum,jdbcType=DECIMAL},
+      </if>
+      <if test="addWeightSum != null">
+        ADD_WEIGHT_SUM = #{addWeightSum,jdbcType=DECIMAL},
+      </if>
+      <if test="bindCardNo != null">
+        BIND_CARD_NO = #{bindCardNo,jdbcType=VARCHAR},
+      </if>
+      <if test="loadPointNo != null">
+        LOAD_POINT_NO = #{loadPointNo,jdbcType=VARCHAR},
+      </if>
+      <if test="loadPointName != null">
+        LOAD_POINT_NAME = #{loadPointName,jdbcType=VARCHAR},
+      </if>
+      <if test="sampleNo != null">
+        SAMPLE_NO = #{sampleNo,jdbcType=VARCHAR},
+      </if>
+      <if test="sampleVoucher != null">
+        SAMPLE_VOUCHER = #{sampleVoucher,jdbcType=VARCHAR},
+      </if>
+      <if test="carrierUnitNo != null">
+        CARRIER_UNIT_NO = #{carrierUnitNo,jdbcType=VARCHAR},
+      </if>
+      <if test="carrierUnitName != null">
+        CARRIER_UNIT_NAME = #{carrierUnitName,jdbcType=VARCHAR},
+      </if>
+      <if test="predictionType != null">
+        PREDICTION_TYPE = #{predictionType,jdbcType=VARCHAR},
+      </if>
+      <if test="predictionCombination != null">
+        PREDICTION_COMBINATION = #{predictionCombination,jdbcType=VARCHAR},
+      </if>
+      <if test="meterTypeNo != null">
+        METER_TYPE_NO = #{meterTypeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="meterTypeName != null">
+        METER_TYPE_NAME = #{meterTypeName,jdbcType=VARCHAR},
+      </if>
+      <if test="usedType != null">
+        USED_TYPE = #{usedType,jdbcType=VARCHAR},
+      </if>
+      <if test="effectiveStartTime != null">
+        EFFECTIVE_START_TIME = #{effectiveStartTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="effectiveEndTime != null">
+        EFFECTIVE_END_TIME = #{effectiveEndTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="effectiveWeight != null">
+        EFFECTIVE_WEIGHT = #{effectiveWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="effectiveNum != null">
+        EFFECTIVE_NUM = #{effectiveNum,jdbcType=DECIMAL},
+      </if>
+      <if test="meterWeight != null">
+        METER_WEIGHT = #{meterWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="meterNum != null">
+        METER_NUM = #{meterNum,jdbcType=DECIMAL},
+      </if>
+      <if test="railwayNo != null">
+        RAILWAY_NO = #{railwayNo,jdbcType=VARCHAR},
+      </if>
+      <if test="meterProcessNo != null">
+        METER_PROCESS_NO = #{meterProcessNo,jdbcType=VARCHAR},
+      </if>
+      <if test="meterProcessEditionNo != null">
+        METER_PROCESS_EDITION_NO = #{meterProcessEditionNo,jdbcType=VARCHAR},
+      </if>
+      <if test="memo != null">
+        MEMO = #{memo,jdbcType=VARCHAR},
+      </if>
+      <if test="valueFlag != null">
+        VALUE_FLAG = #{valueFlag,jdbcType=VARCHAR},
+      </if>
+      <if test="usedTime != null">
+        USED_TIME = #{usedTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="createManNo != null">
+        CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="createManName != null">
+        CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateManNo != null">
+        UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="updateManName != null">
+        UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
+      </if>
+      <if test="updateTime != null">
+        UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="deleteManNo != null">
+        DELETE_MAN_NO = #{deleteManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="deleteManName != null">
+        DELETE_MAN_NAME = #{deleteManName,jdbcType=VARCHAR},
+      </if>
+      <if test="deleteTime != null">
+        DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="pValueFlag != null">
+        P_VALUE_FLAG = #{pValueFlag,jdbcType=VARCHAR},
+      </if>
+      <if test="carAllocationTime != null">
+        CAR_ALLOCATION_TIME = #{carAllocationTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="isCompleted != null">
+        IS_COMPLETED = #{isCompleted,jdbcType=VARCHAR},
+      </if>
+      <if test="limsSamplingFlag != null">
+        LIMS_SAMPLING_FLAG = #{limsSamplingFlag,jdbcType=VARCHAR},
+      </if>
+      <if test="heatNo != null">
+        HEAT_NO = #{heatNo,jdbcType=VARCHAR},
+      </if>
+      <if test="idNum != null">
+        ID_NUM = #{idNum,jdbcType=VARCHAR},
+      </if>
+      <if test="predictionSource != null">
+        PREDICTION_SOURCE = #{predictionSource,jdbcType=VARCHAR},
+      </if>
+      <if test="createDepname != null">
+        CREATE_DEPNAME = #{createDepname,jdbcType=VARCHAR},
+      </if>
+      <if test="createDepid != null">
+        CREATE_DEPID = #{createDepid,jdbcType=VARCHAR},
+      </if>
+      <if test="lineDesc != null">
+        LINE_DESC = #{lineDesc,jdbcType=VARCHAR},
+      </if>
+      <if test="voucherIdentity != null">
+        VOUCHER_IDENTITY = #{voucherIdentity,jdbcType=VARCHAR},
+      </if>
+      <if test="voucherItem != null">
+        VOUCHER_ITEM = #{voucherItem,jdbcType=VARCHAR},
+      </if>
+      <if test="businessGroup != null">
+        BUSINESS_GROUP = #{businessGroup,jdbcType=VARCHAR},
+      </if>
+      <if test="tempConveyance != null">
+        TEMP_CONVEYANCE = #{tempConveyance,jdbcType=VARCHAR},
+      </if>
+      <if test="conveyanceType != null">
+        CONVEYANCE_TYPE = #{conveyanceType,jdbcType=VARCHAR},
+      </if>
+      <if test="resourceSystem != null">
+        RESOURCE_SYSTEM = #{resourceSystem,jdbcType=VARCHAR},
+      </if>
+      <if test="groupPackageAmount != null">
+        GROUP_PACKAGE_AMOUNT = #{groupPackageAmount,jdbcType=DECIMAL},
+      </if>
+      <if test="groupPackageUnit != null">
+        GROUP_PACKAGE_UNIT = #{groupPackageUnit,jdbcType=VARCHAR},
+      </if>
+      <if test="packageAmount != null">
+        PACKAGE_AMOUNT = #{packageAmount,jdbcType=DECIMAL},
+      </if>
+      <if test="packageUnit != null">
+        PACKAGE_UNIT = #{packageUnit,jdbcType=VARCHAR},
+      </if>
+      <if test="theoryAmount != null">
+        THEORY_AMOUNT = #{theoryAmount,jdbcType=DECIMAL},
+      </if>
+      <if test="measureBatch != null">
+        MEASURE_BATCH = #{measureBatch,jdbcType=VARCHAR},
+      </if>
+      <if test="measureBatchCount != null">
+        MEASURE_BATCH_COUNT = #{measureBatchCount,jdbcType=DECIMAL},
+      </if>
+      <if test="senderType != null">
+        SENDER_TYPE = #{senderType,jdbcType=VARCHAR},
+      </if>
+      <if test="senderRemark != null">
+        SENDER_REMARK = #{senderRemark,jdbcType=VARCHAR},
+      </if>
+      <if test="receiverType != null">
+        RECEIVER_TYPE = #{receiverType,jdbcType=VARCHAR},
+      </if>
+      <if test="receiverRemark != null">
+        RECEIVER_REMARK = #{receiverRemark,jdbcType=VARCHAR},
+      </if>
+      <if test="trustDepartmentName != null">
+        TRUST_DEPARTMENT_NAME = #{trustDepartmentName,jdbcType=VARCHAR},
+      </if>
+      <if test="trustDepartment != null">
+        TRUST_DEPARTMENT = #{trustDepartment,jdbcType=VARCHAR},
+      </if>
+      <if test="trustor != null">
+        TRUSTOR = #{trustor,jdbcType=VARCHAR},
+      </if>
+      <if test="trustDateTime != null">
+        TRUST_DATE_TIME = #{trustDateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="trustAvailabilityTime != null">
+        TRUST_AVAILABILITY_TIME = #{trustAvailabilityTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="trustIp != null">
+        TRUST_IP = #{trustIp,jdbcType=VARCHAR},
+      </if>
+      <if test="stationType != null">
+        STATION_TYPE = #{stationType,jdbcType=VARCHAR},
+      </if>
+      <if test="measureStation != null">
+        MEASURE_STATION = #{measureStation,jdbcType=VARCHAR},
+      </if>
+      <if test="measureStationName != null">
+        MEASURE_STATION_NAME = #{measureStationName,jdbcType=VARCHAR},
+      </if>
+      <if test="amountUnit != null">
+        AMOUNT_UNIT = #{amountUnit,jdbcType=VARCHAR},
+      </if>
+      <if test="trustDay != null">
+        TRUST_DAY = #{trustDay,jdbcType=DECIMAL},
+      </if>
+      <if test="conveyanceGroup != null">
+        CONVEYANCE_GROUP = #{conveyanceGroup,jdbcType=VARCHAR},
+      </if>
+      <if test="revocartionStatus != null">
+        REVOCARTION_STATUS = #{revocartionStatus,jdbcType=VARCHAR},
+      </if>
+      <if test="useSite != null">
+        USE_SITE = #{useSite,jdbcType=VARCHAR},
+      </if>
+      <if test="uploadFlag != null">
+        UPLOAD_FLAG = #{uploadFlag,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR}
+  </update>
+  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
+    <include refid="select"/>
+    where PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR}
+  </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 PRE_TRACK_SCALE 
+      (PREDICTION_NO, 
+      NOTICE_NO, CAR_NO, TRAILER_NO, 
+      MATTER_NO, MATTER_NAME, CONTRACT_NO, 
+      BATCH_NO, CUSTOMER_SUPPLIER_NO, 
+      CUSTOMER_SUPPLIER_NAME, SOURCE_AREA, 
+      FORWARDING_UNIT_NO, FORWARDING_UNIT_NAME, 
+      RECEIVING_UINT_NO, RECEIVING_UINT_NAME, 
+      MATERIAL_NO, MATERIAL_NAME, SPEC_NO, 
+      SPEC_NAME, SHIPMENT_GROSS_WEIGHT, 
+      SHIPMENT_NET_WEIGHT, SHIPMENT_NUM, 
+      ADD_WEIGHT_SUM, BIND_CARD_NO, LOAD_POINT_NO, 
+      LOAD_POINT_NAME, SAMPLE_NO, SAMPLE_VOUCHER, 
+      CARRIER_UNIT_NO, CARRIER_UNIT_NAME, 
+      PREDICTION_TYPE, PREDICTION_COMBINATION, 
+      METER_TYPE_NO, METER_TYPE_NAME, USED_TYPE, 
+      EFFECTIVE_START_TIME, EFFECTIVE_END_TIME, 
+      EFFECTIVE_WEIGHT, EFFECTIVE_NUM, 
+      METER_WEIGHT, METER_NUM, RAILWAY_NO, 
+      METER_PROCESS_NO, METER_PROCESS_EDITION_NO, 
+      MEMO, VALUE_FLAG, USED_TIME, 
+      CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, 
+      UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME, 
+      DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME, 
+      P_VALUE_FLAG, CAR_ALLOCATION_TIME, 
+      IS_COMPLETED, LIMS_SAMPLING_FLAG, 
+      HEAT_NO, ID_NUM, PREDICTION_SOURCE, 
+      CREATE_DEPNAME, CREATE_DEPID, LINE_DESC, 
+      VOUCHER_IDENTITY, VOUCHER_ITEM, 
+      BUSINESS_GROUP, TEMP_CONVEYANCE, 
+      CONVEYANCE_TYPE, RESOURCE_SYSTEM, 
+      GROUP_PACKAGE_AMOUNT, GROUP_PACKAGE_UNIT, 
+      PACKAGE_AMOUNT, PACKAGE_UNIT, THEORY_AMOUNT, 
+      MEASURE_BATCH, MEASURE_BATCH_COUNT, 
+      SENDER_TYPE, SENDER_REMARK, RECEIVER_TYPE, 
+      RECEIVER_REMARK, TRUST_DEPARTMENT_NAME, 
+      TRUST_DEPARTMENT, TRUSTOR, TRUST_DATE_TIME, 
+      TRUST_AVAILABILITY_TIME, TRUST_IP, 
+      STATION_TYPE, MEASURE_STATION, 
+      MEASURE_STATION_NAME, AMOUNT_UNIT, 
+      TRUST_DAY, CONVEYANCE_GROUP, REVOCARTION_STATUS, 
+      USE_SITE, UPLOAD_FLAG)
+    ( <foreach collection="list" item="item" separator="union all"> 
+   select  
+      #{item.predictionNo,jdbcType=VARCHAR}, 
+      #{item.noticeNo,jdbcType=VARCHAR}, #{item.carNo,jdbcType=VARCHAR}, #{item.trailerNo,jdbcType=VARCHAR}, 
+      #{item.matterNo,jdbcType=VARCHAR}, #{item.matterName,jdbcType=VARCHAR}, #{item.contractNo,jdbcType=VARCHAR}, 
+      #{item.batchNo,jdbcType=VARCHAR}, #{item.customerSupplierNo,jdbcType=VARCHAR}, 
+      #{item.customerSupplierName,jdbcType=VARCHAR}, #{item.sourceArea,jdbcType=VARCHAR}, 
+      #{item.forwardingUnitNo,jdbcType=VARCHAR}, #{item.forwardingUnitName,jdbcType=VARCHAR}, 
+      #{item.receivingUintNo,jdbcType=VARCHAR}, #{item.receivingUintName,jdbcType=VARCHAR}, 
+      #{item.materialNo,jdbcType=VARCHAR}, #{item.materialName,jdbcType=VARCHAR}, #{item.specNo,jdbcType=VARCHAR}, 
+      #{item.specName,jdbcType=VARCHAR}, #{item.shipmentGrossWeight,jdbcType=DECIMAL}, 
+      #{item.shipmentNetWeight,jdbcType=DECIMAL}, #{item.shipmentNum,jdbcType=DECIMAL}, 
+      #{item.addWeightSum,jdbcType=DECIMAL}, #{item.bindCardNo,jdbcType=VARCHAR}, #{item.loadPointNo,jdbcType=VARCHAR}, 
+      #{item.loadPointName,jdbcType=VARCHAR}, #{item.sampleNo,jdbcType=VARCHAR}, #{item.sampleVoucher,jdbcType=VARCHAR}, 
+      #{item.carrierUnitNo,jdbcType=VARCHAR}, #{item.carrierUnitName,jdbcType=VARCHAR}, 
+      #{item.predictionType,jdbcType=VARCHAR}, #{item.predictionCombination,jdbcType=VARCHAR}, 
+      #{item.meterTypeNo,jdbcType=VARCHAR}, #{item.meterTypeName,jdbcType=VARCHAR}, #{item.usedType,jdbcType=VARCHAR}, 
+      #{item.effectiveStartTime,jdbcType=TIMESTAMP}, #{item.effectiveEndTime,jdbcType=TIMESTAMP}, 
+      #{item.effectiveWeight,jdbcType=DECIMAL}, #{item.effectiveNum,jdbcType=DECIMAL}, 
+      #{item.meterWeight,jdbcType=DECIMAL}, #{item.meterNum,jdbcType=DECIMAL}, #{item.railwayNo,jdbcType=VARCHAR}, 
+      #{item.meterProcessNo,jdbcType=VARCHAR}, #{item.meterProcessEditionNo,jdbcType=VARCHAR}, 
+      #{item.memo,jdbcType=VARCHAR}, #{item.valueFlag,jdbcType=VARCHAR}, #{item.usedTime,jdbcType=TIMESTAMP}, 
+      #{item.createManNo,jdbcType=VARCHAR}, #{item.createManName,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, 
+      #{item.updateManNo,jdbcType=VARCHAR}, #{item.updateManName,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, 
+      #{item.deleteManNo,jdbcType=VARCHAR}, #{item.deleteManName,jdbcType=VARCHAR}, #{item.deleteTime,jdbcType=TIMESTAMP}, 
+      #{item.pValueFlag,jdbcType=VARCHAR}, #{item.carAllocationTime,jdbcType=TIMESTAMP}, 
+      #{item.isCompleted,jdbcType=VARCHAR}, #{item.limsSamplingFlag,jdbcType=VARCHAR}, 
+      #{item.heatNo,jdbcType=VARCHAR}, #{item.idNum,jdbcType=VARCHAR}, #{item.predictionSource,jdbcType=VARCHAR}, 
+      #{item.createDepname,jdbcType=VARCHAR}, #{item.createDepid,jdbcType=VARCHAR}, #{item.lineDesc,jdbcType=VARCHAR}, 
+      #{item.voucherIdentity,jdbcType=VARCHAR}, #{item.voucherItem,jdbcType=VARCHAR}, 
+      #{item.businessGroup,jdbcType=VARCHAR}, #{item.tempConveyance,jdbcType=VARCHAR}, 
+      #{item.conveyanceType,jdbcType=VARCHAR}, #{item.resourceSystem,jdbcType=VARCHAR}, 
+      #{item.groupPackageAmount,jdbcType=DECIMAL}, #{item.groupPackageUnit,jdbcType=VARCHAR}, 
+      #{item.packageAmount,jdbcType=DECIMAL}, #{item.packageUnit,jdbcType=VARCHAR}, #{item.theoryAmount,jdbcType=DECIMAL}, 
+      #{item.measureBatch,jdbcType=VARCHAR}, #{item.measureBatchCount,jdbcType=DECIMAL}, 
+      #{item.senderType,jdbcType=VARCHAR}, #{item.senderRemark,jdbcType=VARCHAR}, #{item.receiverType,jdbcType=VARCHAR}, 
+      #{item.receiverRemark,jdbcType=VARCHAR}, #{item.trustDepartmentName,jdbcType=VARCHAR}, 
+      #{item.trustDepartment,jdbcType=VARCHAR}, #{item.trustor,jdbcType=VARCHAR}, #{item.trustDateTime,jdbcType=TIMESTAMP}, 
+      #{item.trustAvailabilityTime,jdbcType=TIMESTAMP}, #{item.trustIp,jdbcType=VARCHAR}, 
+      #{item.stationType,jdbcType=VARCHAR}, #{item.measureStation,jdbcType=VARCHAR}, 
+      #{item.measureStationName,jdbcType=VARCHAR}, #{item.amountUnit,jdbcType=VARCHAR}, 
+      #{item.trustDay,jdbcType=DECIMAL}, #{item.conveyanceGroup,jdbcType=VARCHAR}, #{item.revocartionStatus,jdbcType=VARCHAR}, 
+      #{item.useSite,jdbcType=VARCHAR}, #{item.uploadFlag,jdbcType=VARCHAR} from dual  
+   </foreach> )
+  </insert>
+  <update id="batchUpdate" parameterType="java.util.List">
+     update PRE_TRACK_SCALE
+     set
+       PREDICTION_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.predictionNo,jdbcType=VARCHAR}
+       </foreach>
+       ,NOTICE_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.noticeNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CAR_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.carNo,jdbcType=VARCHAR}
+       </foreach>
+       ,TRAILER_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trailerNo,jdbcType=VARCHAR}
+       </foreach>
+       ,MATTER_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.matterNo,jdbcType=VARCHAR}
+       </foreach>
+       ,MATTER_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.matterName,jdbcType=VARCHAR}
+       </foreach>
+       ,CONTRACT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.contractNo,jdbcType=VARCHAR}
+       </foreach>
+       ,BATCH_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.batchNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CUSTOMER_SUPPLIER_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.customerSupplierNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CUSTOMER_SUPPLIER_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.customerSupplierName,jdbcType=VARCHAR}
+       </foreach>
+       ,SOURCE_AREA=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.sourceArea,jdbcType=VARCHAR}
+       </foreach>
+       ,FORWARDING_UNIT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.forwardingUnitNo,jdbcType=VARCHAR}
+       </foreach>
+       ,FORWARDING_UNIT_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.forwardingUnitName,jdbcType=VARCHAR}
+       </foreach>
+       ,RECEIVING_UINT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.receivingUintNo,jdbcType=VARCHAR}
+       </foreach>
+       ,RECEIVING_UINT_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.receivingUintName,jdbcType=VARCHAR}
+       </foreach>
+       ,MATERIAL_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.materialNo,jdbcType=VARCHAR}
+       </foreach>
+       ,MATERIAL_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.materialName,jdbcType=VARCHAR}
+       </foreach>
+       ,SPEC_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.specNo,jdbcType=VARCHAR}
+       </foreach>
+       ,SPEC_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.specName,jdbcType=VARCHAR}
+       </foreach>
+       ,SHIPMENT_GROSS_WEIGHT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.shipmentGrossWeight,jdbcType=DECIMAL}
+       </foreach>
+       ,SHIPMENT_NET_WEIGHT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.shipmentNetWeight,jdbcType=DECIMAL}
+       </foreach>
+       ,SHIPMENT_NUM=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.shipmentNum,jdbcType=DECIMAL}
+       </foreach>
+       ,ADD_WEIGHT_SUM=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.addWeightSum,jdbcType=DECIMAL}
+       </foreach>
+       ,BIND_CARD_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.bindCardNo,jdbcType=VARCHAR}
+       </foreach>
+       ,LOAD_POINT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.loadPointNo,jdbcType=VARCHAR}
+       </foreach>
+       ,LOAD_POINT_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.loadPointName,jdbcType=VARCHAR}
+       </foreach>
+       ,SAMPLE_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.sampleNo,jdbcType=VARCHAR}
+       </foreach>
+       ,SAMPLE_VOUCHER=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.sampleVoucher,jdbcType=VARCHAR}
+       </foreach>
+       ,CARRIER_UNIT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.carrierUnitNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CARRIER_UNIT_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.carrierUnitName,jdbcType=VARCHAR}
+       </foreach>
+       ,PREDICTION_TYPE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.predictionType,jdbcType=VARCHAR}
+       </foreach>
+       ,PREDICTION_COMBINATION=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.predictionCombination,jdbcType=VARCHAR}
+       </foreach>
+       ,METER_TYPE_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.meterTypeNo,jdbcType=VARCHAR}
+       </foreach>
+       ,METER_TYPE_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.meterTypeName,jdbcType=VARCHAR}
+       </foreach>
+       ,USED_TYPE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.usedType,jdbcType=VARCHAR}
+       </foreach>
+       ,EFFECTIVE_START_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.effectiveStartTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,EFFECTIVE_END_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.effectiveEndTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,EFFECTIVE_WEIGHT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.effectiveWeight,jdbcType=DECIMAL}
+       </foreach>
+       ,EFFECTIVE_NUM=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.effectiveNum,jdbcType=DECIMAL}
+       </foreach>
+       ,METER_WEIGHT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.meterWeight,jdbcType=DECIMAL}
+       </foreach>
+       ,METER_NUM=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.meterNum,jdbcType=DECIMAL}
+       </foreach>
+       ,RAILWAY_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.railwayNo,jdbcType=VARCHAR}
+       </foreach>
+       ,METER_PROCESS_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.meterProcessNo,jdbcType=VARCHAR}
+       </foreach>
+       ,METER_PROCESS_EDITION_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.meterProcessEditionNo,jdbcType=VARCHAR}
+       </foreach>
+       ,MEMO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.memo,jdbcType=VARCHAR}
+       </foreach>
+       ,VALUE_FLAG=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.valueFlag,jdbcType=VARCHAR}
+       </foreach>
+       ,USED_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.usedTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,CREATE_MAN_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CREATE_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
+       </foreach>
+       ,CREATE_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,UPDATE_MAN_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=VARCHAR}
+       </foreach>
+       ,UPDATE_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.updateManName,jdbcType=VARCHAR}
+       </foreach>
+       ,UPDATE_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,DELETE_MAN_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.deleteManNo,jdbcType=VARCHAR}
+       </foreach>
+       ,DELETE_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.deleteManName,jdbcType=VARCHAR}
+       </foreach>
+       ,DELETE_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.deleteTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,P_VALUE_FLAG=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.pValueFlag,jdbcType=VARCHAR}
+       </foreach>
+       ,CAR_ALLOCATION_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.carAllocationTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,IS_COMPLETED=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.isCompleted,jdbcType=VARCHAR}
+       </foreach>
+       ,LIMS_SAMPLING_FLAG=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.limsSamplingFlag,jdbcType=VARCHAR}
+       </foreach>
+       ,HEAT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.heatNo,jdbcType=VARCHAR}
+       </foreach>
+       ,ID_NUM=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.idNum,jdbcType=VARCHAR}
+       </foreach>
+       ,PREDICTION_SOURCE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.predictionSource,jdbcType=VARCHAR}
+       </foreach>
+       ,CREATE_DEPNAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.createDepname,jdbcType=VARCHAR}
+       </foreach>
+       ,CREATE_DEPID=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.createDepid,jdbcType=VARCHAR}
+       </foreach>
+       ,LINE_DESC=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.lineDesc,jdbcType=VARCHAR}
+       </foreach>
+       ,VOUCHER_IDENTITY=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.voucherIdentity,jdbcType=VARCHAR}
+       </foreach>
+       ,VOUCHER_ITEM=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.voucherItem,jdbcType=VARCHAR}
+       </foreach>
+       ,BUSINESS_GROUP=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.businessGroup,jdbcType=VARCHAR}
+       </foreach>
+       ,TEMP_CONVEYANCE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.tempConveyance,jdbcType=VARCHAR}
+       </foreach>
+       ,CONVEYANCE_TYPE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.conveyanceType,jdbcType=VARCHAR}
+       </foreach>
+       ,RESOURCE_SYSTEM=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.resourceSystem,jdbcType=VARCHAR}
+       </foreach>
+       ,GROUP_PACKAGE_AMOUNT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.groupPackageAmount,jdbcType=DECIMAL}
+       </foreach>
+       ,GROUP_PACKAGE_UNIT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.groupPackageUnit,jdbcType=VARCHAR}
+       </foreach>
+       ,PACKAGE_AMOUNT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.packageAmount,jdbcType=DECIMAL}
+       </foreach>
+       ,PACKAGE_UNIT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.packageUnit,jdbcType=VARCHAR}
+       </foreach>
+       ,THEORY_AMOUNT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.theoryAmount,jdbcType=DECIMAL}
+       </foreach>
+       ,MEASURE_BATCH=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.measureBatch,jdbcType=VARCHAR}
+       </foreach>
+       ,MEASURE_BATCH_COUNT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.measureBatchCount,jdbcType=DECIMAL}
+       </foreach>
+       ,SENDER_TYPE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.senderType,jdbcType=VARCHAR}
+       </foreach>
+       ,SENDER_REMARK=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.senderRemark,jdbcType=VARCHAR}
+       </foreach>
+       ,RECEIVER_TYPE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.receiverType,jdbcType=VARCHAR}
+       </foreach>
+       ,RECEIVER_REMARK=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.receiverRemark,jdbcType=VARCHAR}
+       </foreach>
+       ,TRUST_DEPARTMENT_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustDepartmentName,jdbcType=VARCHAR}
+       </foreach>
+       ,TRUST_DEPARTMENT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustDepartment,jdbcType=VARCHAR}
+       </foreach>
+       ,TRUSTOR=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustor,jdbcType=VARCHAR}
+       </foreach>
+       ,TRUST_DATE_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustDateTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,TRUST_AVAILABILITY_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustAvailabilityTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,TRUST_IP=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustIp,jdbcType=VARCHAR}
+       </foreach>
+       ,STATION_TYPE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.stationType,jdbcType=VARCHAR}
+       </foreach>
+       ,MEASURE_STATION=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.measureStation,jdbcType=VARCHAR}
+       </foreach>
+       ,MEASURE_STATION_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.measureStationName,jdbcType=VARCHAR}
+       </foreach>
+       ,AMOUNT_UNIT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.amountUnit,jdbcType=VARCHAR}
+       </foreach>
+       ,TRUST_DAY=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustDay,jdbcType=DECIMAL}
+       </foreach>
+       ,CONVEYANCE_GROUP=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.conveyanceGroup,jdbcType=VARCHAR}
+       </foreach>
+       ,REVOCARTION_STATUS=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.revocartionStatus,jdbcType=VARCHAR}
+       </foreach>
+       ,USE_SITE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.useSite,jdbcType=VARCHAR}
+       </foreach>
+       ,UPLOAD_FLAG=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.uploadFlag,jdbcType=VARCHAR}
+       </foreach>
+     where PREDICTION_NO in 
+     <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
+    #{item.predictionNo,jdbcType=VARCHAR}
+     </foreach> 
+  </update>
+  <delete id="batchDelete" parameterType="java.util.List">
+    delete from PRE_TRACK_SCALE
+    where PREDICTION_NO in 
+    <foreach collection="list" item="id" open="(" close=")" separator=",">
+      #{id}
+    </foreach>
+  </delete>
+  <!-- 友情提示!!!-->
+  <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
+
 
     <!-- 友情提示!!!-->
     <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->

+ 65 - 5
src/main/java/com/steerinfo/pretrack/pretrackscale/model/PreTrackScale.java

@@ -192,10 +192,10 @@ public class PreTrackScale implements IBasePO<String> {
      * 委托类型(0:批次预报;1:单次预报;2:联运预报;3:分检预报;4:集装箱预报(同单次预报)
 
 
-     分检预报:火车皮上托运了几种物料,在完成计量后需修改动态轨道衡那边的数据
-     )(PREDICTION_TYPE,VARCHAR,1)
+分检预报:火车皮上托运了几种物料,在完成计量后需修改动态轨道衡那边的数据
+);5:双委托;6:一车多卸;7:混装(PREDICTION_TYPE,VARCHAR,1)
      */
-    @ApiModelProperty(value="委托类型(0:批次预报;1:单次预报;2:联运预报;3:分检预报;4:集装箱预报(同单次预报)分检预报:火车皮上托运了几种物料,在完成计量后需修改动态轨道衡那边的数据)",required=false)
+    @ApiModelProperty(value="委托类型(0:批次预报;1:单次预报;2:联运预报;3:分检预报;4:集装箱预报(同单次预报)分检预报:火车皮上托运了几种物料,在完成计量后需修改动态轨道衡那边的数据);5:双委托;6:一车多卸;7:混装",required=false)
     private String predictionType;
 
     /**
@@ -283,9 +283,9 @@ public class PreTrackScale implements IBasePO<String> {
     private String memo;
 
     /**
-     * 状态(0:未配车;1:未使用;2:已使用;3:已作废;4:正使用)(VALUE_FLAG,VARCHAR,1)
+     * 状态(0:未配车;1:未使用;2:已使用;3:已作废;4:正使用;9:已结算,被JISCO业务系统使用,不可撤销净重)(VALUE_FLAG,VARCHAR,1)
      */
-    @ApiModelProperty(value="状态(0:未配车;1:未使用;2:已使用;3:已作废;4:正使用)",required=true)
+    @ApiModelProperty(value="状态(0:未配车;1:未使用;2:已使用;3:已作废;4:正使用;9:已结算,被JISCO业务系统使用,不可撤销净重)",required=true)
     private String valueFlag;
 
     /**
@@ -576,6 +576,30 @@ public class PreTrackScale implements IBasePO<String> {
     @ApiModelProperty(value="委托有效天数",required=false)
     private Short trustDay;
 
+    /**
+     * 运输工具组(CONVEYANCE_GROUP,VARCHAR,30)
+     */
+    @ApiModelProperty(value="运输工具组",required=false)
+    private String conveyanceGroup;
+
+    /**
+     * 撤销状态(REVOCARTION_STATUS,VARCHAR,1)
+     */
+    @ApiModelProperty(value="撤销状态",required=false)
+    private String revocartionStatus;
+
+    /**
+     * 使用站点(USE_SITE,VARCHAR,255)
+     */
+    @ApiModelProperty(value="使用站点",required=false)
+    private String useSite;
+
+    /**
+     * 上传状态(1=待上传;2=已上传 )(UPLOAD_FLAG,VARCHAR,1)
+     */
+    @ApiModelProperty(value="上传状态(1=待上传;2=已上传 )",required=false)
+    private String uploadFlag;
+
     private static final long serialVersionUID = 1L;
 
     @Override
@@ -1340,6 +1364,38 @@ public class PreTrackScale implements IBasePO<String> {
         this.trustDay = trustDay;
     }
 
+    public String getConveyanceGroup() {
+        return conveyanceGroup;
+    }
+
+    public void setConveyanceGroup(String conveyanceGroup) {
+        this.conveyanceGroup = conveyanceGroup == null ? null : conveyanceGroup.trim();
+    }
+
+    public String getRevocartionStatus() {
+        return revocartionStatus;
+    }
+
+    public void setRevocartionStatus(String revocartionStatus) {
+        this.revocartionStatus = revocartionStatus == null ? null : revocartionStatus.trim();
+    }
+
+    public String getUseSite() {
+        return useSite;
+    }
+
+    public void setUseSite(String useSite) {
+        this.useSite = useSite == null ? null : useSite.trim();
+    }
+
+    public String getUploadFlag() {
+        return uploadFlag;
+    }
+
+    public void setUploadFlag(String uploadFlag) {
+        this.uploadFlag = uploadFlag == null ? null : uploadFlag.trim();
+    }
+
     @Override
     public String toString() {
         StringBuilder sb = new StringBuilder();
@@ -1440,6 +1496,10 @@ public class PreTrackScale implements IBasePO<String> {
         sb.append(", measureStationName=").append(measureStationName);
         sb.append(", amountUnit=").append(amountUnit);
         sb.append(", trustDay=").append(trustDay);
+        sb.append(", conveyanceGroup=").append(conveyanceGroup);
+        sb.append(", revocartionStatus=").append(revocartionStatus);
+        sb.append(", useSite=").append(useSite);
+        sb.append(", uploadFlag=").append(uploadFlag);
         sb.append(", serialVersionUID=").append(serialVersionUID);
         sb.append("]");
         return sb.toString();