BourneCao hace 4 años
padre
commit
7247471dab
Se han modificado 14 ficheros con 2866 adiciones y 1890 borrados
  1. 2 1
      src/main/java/com/steerinfo/baseinfo/combaseinfo/controller/ComBaseInfoController.java
  2. 279 44
      src/main/java/com/steerinfo/baseinfo/meterbasecussupcar/controller/MeterBaseCusSupCarController.java
  3. 4 3
      src/main/java/com/steerinfo/baseinfo/meterbasecussupcar/service/impl/MeterBaseCusSupCarServiceImpl.java
  4. 2 0
      src/main/java/com/steerinfo/baseinfo/meterbasepredictiondiff/controller/MeterBasePredictionDiffController.java
  5. 135 0
      src/main/java/com/steerinfo/baseinfo/meterbasevoicerelation/controller/MeterBaseVoiceRelationController.java
  6. 16 0
      src/main/java/com/steerinfo/baseinfo/meterbasevoicerelation/mapper/MeterBaseVoiceRelationMapper.java
  7. 249 0
      src/main/java/com/steerinfo/baseinfo/meterbasevoicerelation/mapper/MeterBaseVoiceRelationMapper.xml
  8. 113 0
      src/main/java/com/steerinfo/baseinfo/meterbasevoicerelation/model/MeterBaseVoiceRelation.java
  9. 29 0
      src/main/java/com/steerinfo/baseinfo/meterbasevoicerelation/service/IMeterBaseVoiceRelationService.java
  10. 94 0
      src/main/java/com/steerinfo/baseinfo/meterbasevoicerelation/service/impl/MeterBaseVoiceRelationServiceImpl.java
  11. 103 50
      src/main/java/com/steerinfo/meterwork/meterworkaddweight/mapper/MeterWorkAddWeightMapper.xml
  12. 15 1
      src/main/java/com/steerinfo/meterwork/meterworkcaractual/model/MeterWorkCarActual.java
  13. 1812 1791
      src/main/java/com/steerinfo/meterwork/meterworkcaractualfirst/mapper/MeterWorkCarActualFirstMapper.xml
  14. 13 0
      src/main/java/com/steerinfo/meterwork/meterworkcaractualfirst/model/MeterWorkCarActualFirst.java

+ 2 - 1
src/main/java/com/steerinfo/baseinfo/combaseinfo/controller/ComBaseInfoController.java

@@ -10,6 +10,7 @@ import com.steerinfo.framework.utils.collection.ListUtils;
 import com.steerinfo.meterwork.except.MarkerMetException;
 import com.steerinfo.meterwork.meterworkstoragecalibration.model.MeterWorkStorageCalibration;
 import com.steerinfo.util.StringUtils;
+import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiImplicitParam;
 import io.swagger.annotations.ApiImplicitParams;
 import io.swagger.annotations.ApiOperation;
@@ -39,7 +40,7 @@ import java.util.List;
  */
 @RestController
 @RequestMapping("/${api.version}/combaseinfos")
-@ApiOperation(value = "基础数据配置")
+@Api(value = "/${api.version}/combaseinfos", tags = "基础数据配置 - ComBaseInfoController")
 public class ComBaseInfoController extends BaseRESTfulController {
 
     @Autowired

+ 279 - 44
src/main/java/com/steerinfo/baseinfo/meterbasecussupcar/controller/MeterBaseCusSupCarController.java

@@ -16,6 +16,7 @@ import io.swagger.annotations.ApiImplicitParam;
 import io.swagger.annotations.ApiImplicitParams;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Value;
 import org.springframework.transaction.annotation.Transactional;
 import org.springframework.transaction.interceptor.TransactionAspectSupport;
 import org.springframework.web.bind.annotation.*;
@@ -43,6 +44,15 @@ import java.util.*;
 @Api(value = "/${api.version}/meterbasecussupcars", tags = "客商车辆维护 - MeterBaseCusSupCarController")
 public class MeterBaseCusSupCarController extends BaseRESTfulController {
 
+    @Value("${sso.url}")
+    String ssoUrl;
+
+    @Value("${sso.appuser}")
+    String ssoAppUser;
+
+    @Value("${sso.password}")
+    String ssoPassword;
+
     @Autowired
     IMeterBaseCusSupCarService meterBaseCusSupCarService;
 
@@ -218,25 +228,55 @@ public class MeterBaseCusSupCarController extends BaseRESTfulController {
     @Transactional
     @PostMapping(value = "/appregister")
     public RESTfulResult appregister(@RequestBody HashMap params) {
-        /***
-         *  注意:做完以后记得把SSO地址抽出去
-         */
         try {
             String msg = "";
 
+            // 拆分司机list,新增客商车辆表
+            List<MeterBaseCusSupCar> driverList = JSONObject.parseArray(params.get("driverList").toString(), MeterBaseCusSupCar.class);
+            // 循环新增车辆
+            for (MeterBaseCusSupCar car: driverList) {
+                // 检查车辆 + 司机是否存在
+                HashMap query = new HashMap();
+                query.put("cusSupCarNo", params.get("cusSupCarNo").toString());
+                query.put("telNum", car.getTelNum());
+                query.put("validFlag", "0");
+
+                List<MeterBaseCusSupCar> list = meterBaseCusSupCarService.query(query);
+                if(list.size() == 0){
+                    // 将车辆类型,载重信息加入实体
+                    car.setCusSupCarNo(params.get("cusSupCarNo").toString());
+
+                    car.setCarTypeNo(params.get("carTypeNo").toString());
+                    car.setCarTypeName(params.get("carTypeName").toString());
+                    car.setCarCarrierWeight(new BigDecimal(params.get("carCarrierWeight").toString()));
+
+                    car.setCreateManNo("admin");
+                    car.setCreateManName("admins");
+                    car.setCreateTime(new Date());
+
+                    msg = meterBaseCusSupCarService.checkandadd(car);
+
+
+                }
+
+                if(StringUtils.isNotEmpty(msg)){
+                    break;
+                }
+            }
+
             // *将司机注册sso账户*
             // 使用默认账号登录sso
             // 默认账户密码加密
-            String shaPass = SHAUtil.shaEncode("appuser@123456");
+            String shaPass = SHAUtil.shaEncode(ssoPassword);
             // 获取sso token
             // https://jgwzjl.jiugang.com/icore.icp.web/pass/auth/login   post请求, 参数类型content-type: application/x-www-form-urlencoded
             // loginName=admin&password=fb94871a1c3c7c38330a3a434a0ee28f0deea30b&app_code=web
             Map<String, String> loginMap = new HashMap<>();
-            loginMap.put("loginName", "appuser");
+            loginMap.put("loginName", ssoAppUser);
             loginMap.put("password", shaPass);
 
 
-            String ssomsg1 = HttpsRequest.sendPost("https://jgwzjl.jiugang.com/icore.icp.web/pass/auth/login", loginMap);
+            String ssomsg1 = HttpsRequest.sendPost(ssoUrl + "/auth/login", loginMap);
             // ssomsg1转JSONObject
             JSONObject jsonObject1 = JSONObject.parseObject(ssomsg1);
             //如果成功,读取accessToken
@@ -258,7 +298,7 @@ public class MeterBaseCusSupCarController extends BaseRESTfulController {
                 userMap.put("companyId", "713710108567277568");
                 userMap.put("orgId", "925357747573231616");
                 userMap.put("loginStatus", "1");
-                String ssomsg2 = HttpsRequest.sendPost("https://jgwzjl.jiugang.com/icore.icp.web/pass/v1/sysusers/", userMap, accessToken);
+                String ssomsg2 = HttpsRequest.sendPost(ssoUrl + "/v1/sysusers/", userMap, accessToken);
 
                 JSONObject jsonObject2 = JSONObject.parseObject(ssomsg2);
 
@@ -274,45 +314,12 @@ public class MeterBaseCusSupCarController extends BaseRESTfulController {
                     pwdMap.put("againNewpassword", params.get("password").toString());
 
                     // 修改用户密码
-                    String ssomsg3 = HttpsRequest.sendPost("https://jgwzjl.jiugang.com/icore.icp.web/pass/v1/sysusers/updpsw", pwdMap, accessToken);
+                    String ssomsg3 = HttpsRequest.sendPost(ssoUrl + "/v1/sysusers/updpsw", pwdMap, accessToken);
 
                     JSONObject jsonObject3 = JSONObject.parseObject(ssomsg3);
                 }
             }
 
-            // 拆分司机list,新增客商车辆表
-            List<MeterBaseCusSupCar> driverList = JSONObject.parseArray(params.get("driverList").toString(), MeterBaseCusSupCar.class);
-            // 循环新增车辆
-            for (MeterBaseCusSupCar car: driverList) {
-                // 检查车辆 + 司机是否存在
-                HashMap query = new HashMap();
-                query.put("cusSupCarNo", params.get("cusSupCarNo").toString());
-                query.put("telNum", car.getTelNum());
-                query.put("validFlag", "0");
-
-                List<MeterBaseCusSupCar> list = meterBaseCusSupCarService.query(query);
-                if(list.size() == 0){
-                    // 将车辆类型,载重信息加入实体
-                    car.setCusSupCarNo(params.get("cusSupCarNo").toString());
-
-                    car.setCarTypeNo(params.get("carTypeNo").toString());
-                    car.setCarTypeName(params.get("carTypeName").toString());
-                    car.setCarCarrierWeight(new BigDecimal(params.get("carCarrierWeight").toString()));
-
-                    car.setCreateManNo("admin");
-                    car.setCreateManName("admins");
-                    car.setCreateTime(new Date());
-
-                    msg = meterBaseCusSupCarService.checkandadd(car);
-
-
-                }
-
-                if(StringUtils.isNotEmpty(msg)){
-                    break;
-                }
-            }
-
             if (StringUtils.isNotEmpty(msg)) {
                 return failed(null, msg);
             }
@@ -355,7 +362,7 @@ public class MeterBaseCusSupCarController extends BaseRESTfulController {
                     loginMap.put("loginName", params.get("cusSupCarNo").toString());
                     loginMap.put("password", shaPass);
 
-                    String ssomsg1 = HttpsRequest.sendPost("https://jgwzjl.jiugang.com/icore.icp.web/pass/auth/login", loginMap);
+                    String ssomsg1 = HttpsRequest.sendPost(ssoUrl + "/auth/login", loginMap);
                     // ssomsg1转JSONObject
                     JSONObject jsonObject1 = JSONObject.parseObject(ssomsg1);
                     //如果成功,读取accessToken
@@ -418,7 +425,7 @@ public class MeterBaseCusSupCarController extends BaseRESTfulController {
                     loginMap.put("loginName", params.get("cusSupCarNo").toString());
                     loginMap.put("password", shaPass);
 
-                    String ssomsg1 = HttpsRequest.sendPost("https://jgwzjl.jiugang.com/icore.icp.web/pass/auth/login", loginMap);
+                    String ssomsg1 = HttpsRequest.sendPost(ssoUrl + "/auth/login", loginMap);
                     // ssomsg1转JSONObject
                     JSONObject jsonObject1 = JSONObject.parseObject(ssomsg1);
                     //如果成功,读取accessToken
@@ -438,7 +445,7 @@ public class MeterBaseCusSupCarController extends BaseRESTfulController {
                         pwdMap.put("againNewpassword", params.get("newpassword").toString());
 
                         // 修改用户密码
-                        String ssomsg3 = HttpsRequest.sendPost("https://jgwzjl.jiugang.com/icore.icp.web/pass/v1/sysusers/updpsw", pwdMap, accessToken);
+                        String ssomsg3 = HttpsRequest.sendPost(ssoUrl + "/v1/sysusers/updpsw", pwdMap, accessToken);
 
                         JSONObject jsonObject3 = JSONObject.parseObject(ssomsg3);
 
@@ -472,4 +479,232 @@ public class MeterBaseCusSupCarController extends BaseRESTfulController {
 
         return success();
     }
+
+    @ApiOperation(value = "PC新增车辆", notes = "PC新增车辆")
+    @Transactional
+    @PostMapping(value = "/addcar")
+    public RESTfulResult addcar(@RequestBody HashMap params) {
+        try {
+            String msg = "";
+
+            // 拆分司机list,新增客商车辆表
+            List<MeterBaseCusSupCar> driverList = JSONObject.parseArray(params.get("driverList").toString(), MeterBaseCusSupCar.class);
+            // 循环新增车辆
+            for (MeterBaseCusSupCar car: driverList) {
+                // 检查车辆是否存在
+                HashMap query = new HashMap();
+                query.put("cusSupCarNo", params.get("cusSupCarNo").toString());
+                query.put("validFlag", "0");
+
+                List<MeterBaseCusSupCar> list = meterBaseCusSupCarService.query(query);
+                if(list.size() == 0){
+                    // 将车辆类型,载重信息加入实体
+                    car.setCusSupCarNo(params.get("cusSupCarNo").toString());
+
+                    car.setCarTypeNo(params.get("carTypeNo").toString());
+                    car.setCarTypeName(params.get("carTypeName").toString());
+                    car.setCarCarrierWeight(new BigDecimal(params.get("carCarrierWeight").toString()));
+
+                    car.setCreateManNo("admin");
+                    car.setCreateManName("admins");
+                    car.setCreateTime(new Date());
+
+                    msg = meterBaseCusSupCarService.checkandadd(car);
+                }
+
+                if(StringUtils.isNotEmpty(msg)){
+                    break;
+                }
+            }
+
+            // *将司机注册sso账户*
+            // 使用默认账号登录sso
+            // 默认账户密码加密
+            String shaPass = SHAUtil.shaEncode(ssoPassword);
+            // 获取sso token
+            // https://jgwzjl.jiugang.com/icore.icp.web/pass/auth/login   post请求, 参数类型content-type: application/x-www-form-urlencoded
+            // loginName=admin&password=fb94871a1c3c7c38330a3a434a0ee28f0deea30b&app_code=web
+            Map<String, String> loginMap = new HashMap<>();
+            loginMap.put("loginName", ssoAppUser);
+            loginMap.put("password", shaPass);
+
+
+            String ssomsg1 = HttpsRequest.sendPost(ssoUrl + "/auth/login", loginMap);
+            // ssomsg1转JSONObject
+            JSONObject jsonObject1 = JSONObject.parseObject(ssomsg1);
+            //如果成功,读取accessToken
+            String accessToken = "";
+            if(jsonObject1.get("code").toString().equals("0")){
+                String tempData = jsonObject1.get("data").toString();
+                JSONObject tempObject = JSONObject.parseObject(tempData);
+                accessToken = tempObject.get("accessToken").toString();
+
+                // 新增车辆SSO账号
+                Map<String, String> userMap = new HashMap<>();
+                userMap.put("userCode", params.get("cusSupCarNo").toString());
+                userMap.put("userName", params.get("cusSupCarNo").toString());
+                userMap.put("orgCode", "123456789");
+                userMap.put("orgName", "测试机构");
+                userMap.put("groupData", "506514577756917769");
+                userMap.put("companyData", "713710108567277568");
+                userMap.put("groupId", "506514577756917769");
+                userMap.put("companyId", "713710108567277568");
+                userMap.put("orgId", "925357747573231616");
+                userMap.put("loginStatus", "1");
+                String ssomsg2 = HttpsRequest.sendPost(ssoUrl + "/v1/sysusers/", userMap, accessToken);
+
+                JSONObject jsonObject2 = JSONObject.parseObject(ssomsg2);
+
+                if(jsonObject2.get("code").toString().equals("0")) {
+                    String tempData2 = jsonObject2.get("data").toString();
+                    JSONObject tempObject2 = JSONObject.parseObject(tempData2);
+
+                    // 修改用户密码,参数生成
+                    Map<String, String> pwdMap = new HashMap<>();
+                    pwdMap.put("userid", tempObject2.get("userId").toString());
+                    pwdMap.put("prepassword", "123456");
+                    pwdMap.put("newpassword", params.get("password").toString());
+                    pwdMap.put("againNewpassword", params.get("password").toString());
+
+                    // 修改用户密码
+                    String ssomsg3 = HttpsRequest.sendPost(ssoUrl + "/v1/sysusers/updpsw", pwdMap, accessToken);
+
+                    JSONObject jsonObject3 = JSONObject.parseObject(ssomsg3);
+                }
+            }
+
+            if (StringUtils.isNotEmpty(msg)) {
+                return failed(null, msg);
+            }
+
+        } catch (Exception e) {
+            e.printStackTrace();
+            TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
+            return failed(null, "操作异常,请确认!");
+        }
+        return success();
+    }
+
+    @ApiOperation(value = "PC新增司机", notes = "PC新增司机")
+    @Transactional
+    @PostMapping(value = "/adddriver")
+    public RESTfulResult adddriver(@RequestBody HashMap params) {
+        try {
+            String msg = "";
+
+            // 拆分司机list,新增客商车辆表
+            List<MeterBaseCusSupCar> driverList = JSONObject.parseArray(params.get("driverList").toString(), MeterBaseCusSupCar.class);
+            // 循环新增车辆
+            for (MeterBaseCusSupCar car: driverList) {
+                // 检查是否存在没有司机的车辆(有车号,但是没有司机姓名和联系电话)
+                HashMap query = new HashMap();
+                query.put("cusSupCarNo", params.get("cusSupCarNo").toString());
+                query.put("driverName", "");
+                query.put("telNum", "");
+                query.put("validFlag", "0");
+
+                List<MeterBaseCusSupCar> list = meterBaseCusSupCarService.query(query);
+                // 新增一条车辆记录
+                if(list.size() == 0){
+                    // 新增司机时,如果不存在没有司机的车辆,这个车号必然存在至少一条有司机的记录
+                    // 读取这条记录
+                    query.remove("driverName");
+                    query.remove("telNum");
+                    List<MeterBaseCusSupCar> listHasDriver = meterBaseCusSupCarService.query(query);
+                    if (listHasDriver.size() >=1){
+                        // 将车辆类型,载重信息加入实体
+                        MeterBaseCusSupCar tempCar = listHasDriver.get(0);
+
+                        tempCar.setDriverName(params.get("driverName").toString());
+                        tempCar.setTelNum(params.get("telNum").toString());
+
+                        tempCar.setCreateManNo("admin");
+                        tempCar.setCreateManName("admins");
+                        tempCar.setCreateTime(new Date());
+
+                        msg = meterBaseCusSupCarService.checkandadd(tempCar);
+                    }
+                    else {
+                        msg = "不存在符合条件的车辆";
+                    }
+
+                }
+                // 将司机姓名和联系方式附加到没有司机的车辆上
+                else {
+                    MeterBaseCusSupCar tempCar = list.get(0);
+                    tempCar.setDriverName(params.get("driverName").toString());
+                    tempCar.setDriverName(params.get("telNum").toString());
+
+                    msg = meterBaseCusSupCarService.checkandupdate(tempCar.getId(), tempCar);
+                }
+
+                if(StringUtils.isNotEmpty(msg)){
+                    break;
+                }
+            }
+
+            if (StringUtils.isNotEmpty(msg)) {
+                return failed(null, msg);
+            }
+
+        } catch (Exception e) {
+            e.printStackTrace();
+            TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
+            return failed(null, "操作异常,请确认!");
+        }
+        return success();
+    }
+
+    @ApiOperation(value = "PC移除司机", notes = "PC移除司机")
+    @Transactional
+    @PostMapping(value = "/removedriver")
+    public RESTfulResult removedriver(@RequestBody HashMap params) {
+        try {
+            String msg = "";
+
+            // 拆分司机list,移除客商车辆表
+            List<MeterBaseCusSupCar> driverList = JSONObject.parseArray(params.get("driverList").toString(), MeterBaseCusSupCar.class);
+            // 循环新增车辆
+            for (MeterBaseCusSupCar car: driverList) {
+                // 检查是存在相关记录
+                HashMap query = new HashMap();
+                query.put("cusSupCarNo", params.get("cusSupCarNo").toString());
+                query.put("driverName", params.get("driverName").toString());
+                query.put("telNum", params.get("telNum").toString());
+                query.put("validFlag", "0");
+
+                List<MeterBaseCusSupCar> list = meterBaseCusSupCarService.query(query);
+                // 移除一条车辆记录
+                if(list.size() == 1){
+                    meterBaseCusSupCarService.delete(list.get(0).getId());
+                }
+                else {
+                    msg = "不存在相关司机信息";
+                }
+
+                // 移除司机完成后,检查此车号是否还有司机记录
+                // 如果没有,移除SSO账户信息
+                query.remove("driverName");
+                query.remove("telNum");
+                List<MeterBaseCusSupCar> list2 = meterBaseCusSupCarService.query(query);
+                if(list2.size() == 0){
+                    // 移除sso账户信息
+                }
+
+                if(StringUtils.isNotEmpty(msg)){
+                    break;
+                }
+            }
+
+            if (StringUtils.isNotEmpty(msg)) {
+                return failed(null, msg);
+            }
+
+        } catch (Exception e) {
+            e.printStackTrace();
+            TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
+            return failed(null, "操作异常,请确认!");
+        }
+        return success();
+    }
 }

+ 4 - 3
src/main/java/com/steerinfo/baseinfo/meterbasecussupcar/service/impl/MeterBaseCusSupCarServiceImpl.java

@@ -129,10 +129,11 @@ public class MeterBaseCusSupCarServiceImpl extends BaseServiceImpl<MeterBaseCusS
         if (StringUtils.isEmpty(model.getCusSupCarNo())){
             return "车号不能为空!!";
         }
-        if (StringUtils.isEmpty(model.getDriverName())){
-            return "司机姓名不能为空!!";
-        }
+
         // 20211229 by BourneCao APP自助注册不要求身份证,客商信息
+//        if (StringUtils.isEmpty(model.getDriverName())){
+//            return "司机姓名不能为空!!";
+//        }
 //        if (StringUtils.isEmpty(model.getIdNum())){
 //            return "身份证号不能为空!!";
 //        }

+ 2 - 0
src/main/java/com/steerinfo/baseinfo/meterbasepredictiondiff/controller/MeterBasePredictionDiffController.java

@@ -8,6 +8,7 @@ import com.steerinfo.baseinfo.meterbasepredictiondiff.model.MeterBasePredictionD
 import com.steerinfo.baseinfo.meterbasepredictiondiff.service.IMeterBasePredictionDiffService;
 import com.steerinfo.meterwork.except.MarkerMetException;
 import com.steerinfo.util.StringUtils;
+import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiImplicitParam;
 import io.swagger.annotations.ApiImplicitParams;
 import io.swagger.annotations.ApiOperation;
@@ -36,6 +37,7 @@ import java.util.List;
  */
 @RestController
 @RequestMapping("/${api.version}/meterbasepredictiondiffs")
+@Api(value = "/${api.version}/meterbasepredictiondiffs", tags = "预报超差配置 - MeterBasePredictionDiffController")
 public class MeterBasePredictionDiffController extends BaseRESTfulController {
 
     @Autowired

+ 135 - 0
src/main/java/com/steerinfo/baseinfo/meterbasevoicerelation/controller/MeterBaseVoiceRelationController.java

@@ -0,0 +1,135 @@
+package com.steerinfo.baseinfo.meterbasevoicerelation.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.meterbasevoicerelation.model.MeterBaseVoiceRelation;
+import com.steerinfo.baseinfo.meterbasevoicerelation.service.IMeterBaseVoiceRelationService;
+import com.steerinfo.meterwork.except.MarkerMetException;
+import com.steerinfo.meterwork.meterworkcaractual.model.MeterWorkCarActual;
+import com.steerinfo.util.StringUtils;
+import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiImplicitParams;
+import io.swagger.annotations.ApiOperation;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.transaction.interceptor.TransactionAspectSupport;
+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;
+
+/**
+ * MeterBaseVoiceRelation RESTful接口:
+ * @author generator
+ * @version 1.0-SNAPSHORT 2022-01-05 05:34
+ * 类描述
+ * 修订历史:
+ * 日期:2022-01-05
+ * 作者:generator
+ * 参考:
+ * 描述:MeterBaseVoiceRelation RESTful接口
+ * @see null
+ * @Copyright 湖南视拓信息技术股份有限公司. All rights reserved.
+ */
+@RestController
+@RequestMapping("/${api.version}/meterbasevoicerelations")
+public class MeterBaseVoiceRelationController extends BaseRESTfulController {
+
+    @Autowired
+    IMeterBaseVoiceRelationService meterBaseVoiceRelationService;
+
+    @ApiOperation(value="获取列表", notes="分页查询")
+    @ApiImplicitParams({
+        @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
+        @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer")
+    })
+    //@RequiresPermissions("meterbasevoicerelation:view")
+    @GetMapping(value = "/")
+    public RESTfulResult list(@RequestParam HashMap parmas,Integer pageNum, Integer pageSize){
+        PageList<MeterBaseVoiceRelation> list = meterBaseVoiceRelationService.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("meterbasevoicerelation:view")
+    @GetMapping(value = "/like/")
+    public RESTfulResult listLike(@RequestParam HashMap parmas,Integer pageNum, Integer pageSize){
+        PageList<MeterBaseVoiceRelation> list = meterBaseVoiceRelationService.queryLikeForPage(parmas, pageNum, pageSize);
+        return success(list);
+    }
+    
+    @ApiOperation(value="创建", notes="根据MeterBaseVoiceRelation对象创建")
+    @ApiImplicitParam(name = "meterBaseVoiceRelation", value = "详细实体meterBaseVoiceRelation", required = true, dataType = "MeterBaseVoiceRelation")
+    //@RequiresPermissions("meterbasevoicerelation:create")
+    @PostMapping(value = "/")
+    public RESTfulResult add(@ModelAttribute MeterBaseVoiceRelation model){
+        try {
+            String msg = meterBaseVoiceRelationService.checkandadd(model);
+            if (StringUtils.isNotEmpty(msg)) {
+                return failed(null, msg);
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+            TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
+            return failed(null, "操作异常,请确认!");
+        }
+
+        return success();
+    }
+
+    @ApiOperation(value="获取详细信息", notes="根据url的id来获取详细信息")
+    @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "String")
+    //@RequiresPermissions("meterbasevoicerelation:view")
+    @GetMapping(value = "/{id}")
+    public RESTfulResult get(@PathVariable String id){
+        MeterBaseVoiceRelation meterBaseVoiceRelation = meterBaseVoiceRelationService.getById(id);
+        return success(meterBaseVoiceRelation);
+    }
+
+    @ApiOperation(value="更新详细信息", notes="根据url的id来指定更新对象,并根据传过来的meterBaseVoiceRelation信息来更新详细信息")
+    @ApiImplicitParams({
+        @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "String"),
+        @ApiImplicitParam(name = "meterBaseVoiceRelation", value = "详细实体meterBaseVoiceRelation", required = true, dataType = "MeterBaseVoiceRelation")
+    })
+    //@RequiresPermissions("meterbasevoicerelation:update")
+    @PutMapping(value = "/{id}", produces  = "application/json;charset=UTF-8")
+    public RESTfulResult update(@PathVariable String id, @RequestBody MeterBaseVoiceRelation model){
+        model.setId(id);
+        MeterBaseVoiceRelation meterBaseVoiceRelation = meterBaseVoiceRelationService.modify(model);
+        return success(meterBaseVoiceRelation);
+    }
+
+    @ApiOperation(value="删除", notes="根据url的id来指定删除对象")
+    @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "String")
+    //@RequiresPermissions("meterbasevoicerelation: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);
+			  meterBaseVoiceRelationService.delete(ids);
+    	}
+      return success();
+    }
+
+    @ApiOperation(value="获取列表", notes="分页查询")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
+            @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer")
+    })
+    //@RequiresPermissions("meterbasevoicerelation:view")
+    @GetMapping(value = "/listrelation")
+    public RESTfulResult listRelation(@RequestParam HashMap parmas,Integer pageNum, Integer pageSize){
+        PageList list = meterBaseVoiceRelationService.queryForRelationPage(parmas, pageNum, pageSize);
+        return success(list);
+    }
+}

+ 16 - 0
src/main/java/com/steerinfo/baseinfo/meterbasevoicerelation/mapper/MeterBaseVoiceRelationMapper.java

@@ -0,0 +1,16 @@
+package com.steerinfo.baseinfo.meterbasevoicerelation.mapper;
+
+import com.steerinfo.baseinfo.meterbasevoicerelation.model.MeterBaseVoiceRelation;
+import com.steerinfo.framework.mapper.IBaseMapper;
+import java.math.*;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.ibatis.annotations.Mapper;
+
+@Mapper
+public interface MeterBaseVoiceRelationMapper extends IBaseMapper<MeterBaseVoiceRelation, String> {
+    String GetNewID();
+
+    List selectRelationByParameters(Map<String, Object> var1);
+}

+ 249 - 0
src/main/java/com/steerinfo/baseinfo/meterbasevoicerelation/mapper/MeterBaseVoiceRelationMapper.xml

@@ -0,0 +1,249 @@
+<?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.meterbasevoicerelation.mapper.MeterBaseVoiceRelationMapper">
+  <resultMap id="BaseResultMap" type="com.steerinfo.baseinfo.meterbasevoicerelation.model.MeterBaseVoiceRelation">
+    <id column="RELATION_ID" jdbcType="VARCHAR" property="relationId" />
+    <result column="VOICE_ID" jdbcType="VARCHAR" property="voiceId" />
+    <result column="BASE_SPOT_ID" jdbcType="VARCHAR" property="baseSpotId" />
+    <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" />
+  </resultMap>
+  <sql id="columns">
+    RELATION_ID, VOICE_ID, BASE_SPOT_ID, CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME
+  </sql>
+  <sql id="columns_alias">
+    t.RELATION_ID, t.VOICE_ID, t.BASE_SPOT_ID, t.CREATE_MAN_NO, t.CREATE_MAN_NAME, t.CREATE_TIME
+  </sql>
+  <sql id="select">
+    SELECT <include refid="columns"/> FROM METER_BASE_VOICE_RELATION
+  </sql>
+  <sql id="select_alias">
+    SELECT <include refid="columns_alias"/> FROM METER_BASE_VOICE_RELATION t
+  </sql>
+  <sql id="where">
+    <where> 
+      <if test="relationId != null and relationId != ''">
+        and RELATION_ID = #{relationId}
+      </if>
+      <if test="voiceId != null and voiceId != ''">
+        and VOICE_ID = #{voiceId}
+      </if>
+      <if test="baseSpotId != null and baseSpotId != ''">
+        and BASE_SPOT_ID = #{baseSpotId}
+      </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>
+    </where>
+  </sql>
+  <sql id="whereLike">
+    <where> 
+      <if test="relationId != null and relationId != ''">
+        and RELATION_ID LIKE '%${relationId}%'
+      </if>
+      <if test="voiceId != null and voiceId != ''">
+        and VOICE_ID LIKE '%${voiceId}%'
+      </if>
+      <if test="baseSpotId != null and baseSpotId != ''">
+        and BASE_SPOT_ID LIKE '%${baseSpotId}%'
+      </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>
+    </where>
+  </sql>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
+    delete from METER_BASE_VOICE_RELATION
+    where RELATION_ID = #{relationId,jdbcType=VARCHAR}
+  </delete>
+  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
+    delete from METER_BASE_VOICE_RELATION
+    where 1!=1 
+      <if test="voiceId != null and voiceId != ''">
+        or VOICE_ID = #{voiceId}
+      </if>
+      <if test="baseSpotId != null and baseSpotId != ''">
+        or BASE_SPOT_ID = #{baseSpotId}
+      </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>
+  </delete>
+  <insert id="insert" parameterType="com.steerinfo.baseinfo.meterbasevoicerelation.model.MeterBaseVoiceRelation">
+    insert into METER_BASE_VOICE_RELATION (RELATION_ID, VOICE_ID, BASE_SPOT_ID, 
+      CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME
+      )
+    values (#{relationId,jdbcType=VARCHAR}, #{voiceId,jdbcType=VARCHAR}, #{baseSpotId,jdbcType=VARCHAR}, 
+      #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.steerinfo.baseinfo.meterbasevoicerelation.model.MeterBaseVoiceRelation">
+    insert into METER_BASE_VOICE_RELATION
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="relationId != null">
+        RELATION_ID,
+      </if>
+      <if test="voiceId != null">
+        VOICE_ID,
+      </if>
+      <if test="baseSpotId != null">
+        BASE_SPOT_ID,
+      </if>
+      <if test="createManNo != null">
+        CREATE_MAN_NO,
+      </if>
+      <if test="createManName != null">
+        CREATE_MAN_NAME,
+      </if>
+      <if test="createTime != null">
+        CREATE_TIME,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="relationId != null">
+        #{relationId,jdbcType=VARCHAR},
+      </if>
+      <if test="voiceId != null">
+        #{voiceId,jdbcType=VARCHAR},
+      </if>
+      <if test="baseSpotId != null">
+        #{baseSpotId,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>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKey" parameterType="com.steerinfo.baseinfo.meterbasevoicerelation.model.MeterBaseVoiceRelation">
+    update METER_BASE_VOICE_RELATION
+    set VOICE_ID = #{voiceId,jdbcType=VARCHAR},
+      BASE_SPOT_ID = #{baseSpotId,jdbcType=VARCHAR},
+      CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
+      CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
+      CREATE_TIME = #{createTime,jdbcType=TIMESTAMP}
+    where RELATION_ID = #{relationId,jdbcType=VARCHAR}
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.baseinfo.meterbasevoicerelation.model.MeterBaseVoiceRelation">
+    update METER_BASE_VOICE_RELATION
+    <set>
+      <if test="voiceId != null">
+        VOICE_ID = #{voiceId,jdbcType=VARCHAR},
+      </if>
+      <if test="baseSpotId != null">
+        BASE_SPOT_ID = #{baseSpotId,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>
+    </set>
+    where RELATION_ID = #{relationId,jdbcType=VARCHAR}
+  </update>
+  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
+    <include refid="select"/>
+    where RELATION_ID = #{relationId,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_VOICE_RELATION 
+      (RELATION_ID, 
+      VOICE_ID, BASE_SPOT_ID, CREATE_MAN_NO, 
+      CREATE_MAN_NAME, CREATE_TIME)
+    ( <foreach collection="list" item="item" separator="union all"> 
+   select  
+      #{item.relationId,jdbcType=VARCHAR}, 
+      #{item.voiceId,jdbcType=VARCHAR}, #{item.baseSpotId,jdbcType=VARCHAR}, #{item.createManNo,jdbcType=VARCHAR}, 
+      #{item.createManName,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP} from dual  
+   </foreach> )
+  </insert>
+  <update id="batchUpdate" parameterType="java.util.List">
+     update METER_BASE_VOICE_RELATION
+     set
+       RELATION_ID=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RELATION_ID" close="end">
+          when #{item.relationId,jdbcType=VARCHAR} then #{item.relationId,jdbcType=VARCHAR}
+       </foreach>
+       ,VOICE_ID=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RELATION_ID" close="end">
+          when #{item.relationId,jdbcType=VARCHAR} then #{item.voiceId,jdbcType=VARCHAR}
+       </foreach>
+       ,BASE_SPOT_ID=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RELATION_ID" close="end">
+          when #{item.relationId,jdbcType=VARCHAR} then #{item.baseSpotId,jdbcType=VARCHAR}
+       </foreach>
+       ,CREATE_MAN_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RELATION_ID" close="end">
+          when #{item.relationId,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CREATE_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RELATION_ID" close="end">
+          when #{item.relationId,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
+       </foreach>
+       ,CREATE_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case RELATION_ID" close="end">
+          when #{item.relationId,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
+       </foreach>
+     where RELATION_ID in 
+     <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
+    #{item.relationId,jdbcType=VARCHAR}
+     </foreach> 
+  </update>
+  <delete id="batchDelete" parameterType="java.util.List">
+    delete from METER_BASE_VOICE_RELATION
+    where RELATION_ID 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(RELATION_ID, LENGTH(RELATION_ID)-4 ))),0) + 1,5,'0') RELATION_ID
+    FROM METER_BASE_VOICE_RELATION
+  </select>
+
+
+  <select id="selectRelationByParameters" parameterType="java.util.HashMap" resultType="hashmap">
+    select a.RELATION_ID,a.CREATE_MAN_NO,a.CREATE_MAN_NAME,a.CREATE_TIME,b.VOICE_NO,b.VOICE_NAME,b.VOICE_FILE_NAME,b.VOICE_FILE_URL,c.BASE_SPOT_NO,c.BASE_SPOT_NAME from METER_BASE_VOICE_RELATION a
+        inner join METER_BASE_VOICE b on a.VOICE_ID=b.VOICE_NO
+	    inner Join METER_BASE_SPOT_INFO c on a.BASE_SPOT_ID=BASE_SPOT_NO
+	order by a.CREATE_TIME desc
+  </select>
+</mapper>

+ 113 - 0
src/main/java/com/steerinfo/baseinfo/meterbasevoicerelation/model/MeterBaseVoiceRelation.java

@@ -0,0 +1,113 @@
+package com.steerinfo.baseinfo.meterbasevoicerelation.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 MeterBaseVoiceRelation implements IBasePO<String> {
+    @ApiModelProperty(value="",required=true)
+    private String relationId;
+
+    @ApiModelProperty(value="",required=false)
+    private String voiceId;
+
+    @ApiModelProperty(value="",required=false)
+    private String baseSpotId;
+
+    /**
+     * 创建人编号(CREATE_MAN_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="创建人编号",required=false)
+    private String createManNo;
+
+    /**
+     * 创建人姓名(CREATE_MAN_NAME,VARCHAR,30)
+     */
+    @ApiModelProperty(value="创建人姓名",required=false)
+    private String createManName;
+
+    /**
+     * 创建时间(CREATE_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="创建时间",required=false)
+    private Date createTime;
+
+    private static final long serialVersionUID = 1L;
+
+    @Override
+    public String getId() {
+        return this.relationId;
+    }
+
+    @Override
+    public void setId(String relationId) {
+        this.relationId = relationId == null ? null : relationId.trim();
+    }
+
+    public String getRelationId() {
+        return relationId;
+    }
+
+    public void setRelationId(String relationId) {
+        this.relationId = relationId == null ? null : relationId.trim();
+    }
+
+    public String getVoiceId() {
+        return voiceId;
+    }
+
+    public void setVoiceId(String voiceId) {
+        this.voiceId = voiceId == null ? null : voiceId.trim();
+    }
+
+    public String getBaseSpotId() {
+        return baseSpotId;
+    }
+
+    public void setBaseSpotId(String baseSpotId) {
+        this.baseSpotId = baseSpotId == null ? null : baseSpotId.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;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", relationId=").append(relationId);
+        sb.append(", voiceId=").append(voiceId);
+        sb.append(", baseSpotId=").append(baseSpotId);
+        sb.append(", createManNo=").append(createManNo);
+        sb.append(", createManName=").append(createManName);
+        sb.append(", createTime=").append(createTime);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 29 - 0
src/main/java/com/steerinfo/baseinfo/meterbasevoicerelation/service/IMeterBaseVoiceRelationService.java

@@ -0,0 +1,29 @@
+package com.steerinfo.baseinfo.meterbasevoicerelation.service;
+
+import com.steerinfo.framework.service.IBaseService;
+import com.steerinfo.baseinfo.meterbasevoicerelation.model.MeterBaseVoiceRelation;
+import com.steerinfo.framework.service.pagehelper.PageList;
+import org.apache.poi.ss.formula.functions.T;
+
+import java.util.Date;
+import java.math.BigDecimal;
+import java.util.Map;
+
+/**
+ * MeterBaseVoiceRelation服务接口:
+ * @author generator
+ * @version 1.0-SNAPSHORT 2022-01-05 05:34
+ * 类描述
+ * 修订历史:
+ * 日期:2022-01-05
+ * 作者:generator
+ * 参考:
+ * 描述:MeterBaseVoiceRelation服务接口
+ * @see null
+ * @Copyright 湖南视拓信息技术股份有限公司. All rights reserved.
+ */
+public interface IMeterBaseVoiceRelationService extends IBaseService<MeterBaseVoiceRelation, String>{
+    String checkandadd(MeterBaseVoiceRelation model);
+
+    PageList<T> queryForRelationPage(Map<String, Object> var1, Integer var2, Integer var3);
+}

+ 94 - 0
src/main/java/com/steerinfo/baseinfo/meterbasevoicerelation/service/impl/MeterBaseVoiceRelationServiceImpl.java

@@ -0,0 +1,94 @@
+package com.steerinfo.baseinfo.meterbasevoicerelation.service.impl;
+
+import com.steerinfo.baseinfo.meterbasetare.model.MeterBaseTare;
+import com.steerinfo.framework.mapper.IBaseMapper;
+import com.steerinfo.framework.service.impl.BaseServiceImpl;
+import com.steerinfo.baseinfo.meterbasevoicerelation.model.MeterBaseVoiceRelation;
+import com.steerinfo.baseinfo.meterbasevoicerelation.mapper.MeterBaseVoiceRelationMapper;
+import com.steerinfo.baseinfo.meterbasevoicerelation.service.IMeterBaseVoiceRelationService;
+import com.steerinfo.framework.service.pagehelper.PageHelper;
+import com.steerinfo.framework.service.pagehelper.PageList;
+import com.steerinfo.framework.user.UserPayload;
+import com.steerinfo.framework.utils.base.StringUtils;
+import org.apache.poi.ss.formula.functions.T;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import java.math.BigDecimal;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * MeterBaseVoiceRelation服务实现:
+ * @author generator
+ * @version 1.0-SNAPSHORT 2022-01-05 05:34
+ * 类描述
+ * 修订历史:
+ * 日期:2022-01-05
+ * 作者:generator
+ * 参考:
+ * 描述:MeterBaseVoiceRelation服务实现
+ * @see null
+ * @Copyright 湖南视拓信息技术股份有限公司. All rights reserved.
+ */
+@Service(value = "meterBaseVoiceRelationService")
+public class MeterBaseVoiceRelationServiceImpl extends BaseServiceImpl<MeterBaseVoiceRelation, String> implements IMeterBaseVoiceRelationService {
+
+    @Autowired
+    private MeterBaseVoiceRelationMapper meterBaseVoiceRelationMapper;
+
+    @Override
+    protected IBaseMapper<MeterBaseVoiceRelation, String> getMapper() {
+        return meterBaseVoiceRelationMapper;
+    }
+
+    @Override
+    public String checkandadd(MeterBaseVoiceRelation model)
+    {
+        String msg=check(model);
+        if (StringUtils.isNotEmpty(msg)){
+            return msg;
+        }
+
+        String no=meterBaseVoiceRelationMapper.GetNewID();
+        model.setRelationId(new SimpleDateFormat("yyyyMMdd").format(new Date()) +no);
+        meterBaseVoiceRelationMapper.insertSelective(model);
+        return "";
+    }
+
+    @Override
+    public PageList<T> queryForRelationPage(Map<String, Object> parameters, Integer pageNum, Integer pageSize) {
+        PageHelper.startPage(pageNum, pageSize);
+        List rows = meterBaseVoiceRelationMapper.selectRelationByParameters(parameters);
+        PageList pageInfo = new PageList(rows);
+        return pageInfo;
+    }
+
+    private String check(MeterBaseVoiceRelation model)
+    {
+        if( model == null){
+            return "参数为空!!";
+        }
+        if (StringUtils.isEmpty(model.getVoiceId())){
+            return "声音编号不能为空!!";
+        }
+        if (StringUtils.isEmpty(model.getBaseSpotId())){
+            return "秤点编号不能为空!!";
+        }
+
+        UserPayload payload = UserPayload.getCurrUser();
+        String userId = payload.getId();
+        String userName = payload.getUserName();
+        if (model.getRelationId() == null) {
+            model.setCreateTime(new Date());
+            model.setCreateManNo(userId);
+            model.setCreateManName(userName);
+        }
+
+        return "";
+    }
+
+}

+ 103 - 50
src/main/java/com/steerinfo/meterwork/meterworkaddweight/mapper/MeterWorkAddWeightMapper.xml

@@ -301,56 +301,56 @@
    </foreach> )
   </insert>
   <update id="batchUpdate" parameterType="java.util.List">
-     update METER_WORK_ADD_WEIGHT
-     set
-       ADD_WEIGHT_ACT_NO=
-       <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
-          when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.addWeightActNo,jdbcType=VARCHAR}
-       </foreach>
-       ,ADD_WEIGHT_NO=
-       <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
-          when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.addWeightNo,jdbcType=VARCHAR}
-       </foreach>
-       ,UTENSIL_NO=
-       <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
-          when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.utensilNo,jdbcType=VARCHAR}
-       </foreach>
-       ,UTENSIL_NAME=
-       <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
-          when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.utensilName,jdbcType=VARCHAR}
-       </foreach>
-       ,UTENSIL_WEIGHT=
-       <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
-          when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.utensilWeight,jdbcType=VARCHAR}
-       </foreach>
-       ,UTENSIL_TYPE_NO=
-       <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
-          when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.utensilTypeNo,jdbcType=VARCHAR}
-       </foreach>
-       ,UTENSIL_UTENSIL_NAME=
-       <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
-          when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.utensilUtensilName,jdbcType=VARCHAR}
-       </foreach>
-       ,ACTUAL_FIRST_NO=
-       <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
-          when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.actualFirstNo,jdbcType=VARCHAR}
-       </foreach>
-       ,CREATE_MAN_NO=
-       <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
-          when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
-       </foreach>
-       ,CREATE_MAN_NAME=
-       <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
-          when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
-       </foreach>
-       ,CREATE_TIME=
-       <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
-          when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
-       </foreach>
-     where ADD_WEIGHT_ACT_NO in 
-     <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
-    #{item.addWeightActNo,jdbcType=VARCHAR}
-     </foreach> 
+    update METER_WORK_ADD_WEIGHT
+    set
+    ADD_WEIGHT_ACT_NO=
+    <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
+      when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.addWeightActNo,jdbcType=VARCHAR}
+    </foreach>
+    ,ADD_WEIGHT_NO=
+    <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
+      when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.addWeightNo,jdbcType=VARCHAR}
+    </foreach>
+    ,UTENSIL_NO=
+    <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
+      when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.utensilNo,jdbcType=VARCHAR}
+    </foreach>
+    ,UTENSIL_NAME=
+    <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
+      when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.utensilName,jdbcType=VARCHAR}
+    </foreach>
+    ,UTENSIL_WEIGHT=
+    <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
+      when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.utensilWeight,jdbcType=VARCHAR}
+    </foreach>
+    ,UTENSIL_TYPE_NO=
+    <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
+      when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.utensilTypeNo,jdbcType=VARCHAR}
+    </foreach>
+    ,UTENSIL_UTENSIL_NAME=
+    <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
+      when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.utensilUtensilName,jdbcType=VARCHAR}
+    </foreach>
+    ,ACTUAL_FIRST_NO=
+    <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
+      when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.actualFirstNo,jdbcType=VARCHAR}
+    </foreach>
+    ,CREATE_MAN_NO=
+    <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
+      when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
+    </foreach>
+    ,CREATE_MAN_NAME=
+    <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
+      when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
+    </foreach>
+    ,CREATE_TIME=
+    <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
+      when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
+    </foreach>
+    where ADD_WEIGHT_ACT_NO in
+    <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
+      #{item.addWeightActNo,jdbcType=VARCHAR}
+    </foreach>
   </update>
   <delete id="batchDelete" parameterType="java.util.List">
     delete from METER_WORK_ADD_WEIGHT
@@ -365,4 +365,57 @@
     SELECT LPAD(NVL(MAX(TO_NUMBER(SUBSTR(ADD_WEIGHT_ACT_NO,9))),0) + 1,4,'0') ADD_WEIGHT_ACT_NO
     FROM METER_WORK_ADD_WEIGHT where substr(ADD_WEIGHT_ACT_NO,0,8)=to_char(sysdate,'yyyyMMdd')
   </select>
+
+  <update id="batchUpdate123" parameterType="java.util.List">
+    update METER_WORK_ADD_WEIGHT
+    set
+    ADD_WEIGHT_ACT_NO=
+    <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
+      when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.addWeightActNo,jdbcType=VARCHAR}
+    </foreach>
+    ,ADD_WEIGHT_NO=
+    <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
+      when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.addWeightNo,jdbcType=VARCHAR}
+    </foreach>
+    ,UTENSIL_NO=
+    <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
+      when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.utensilNo,jdbcType=VARCHAR}
+    </foreach>
+    ,UTENSIL_NAME=
+    <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
+      when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.utensilName,jdbcType=VARCHAR}
+    </foreach>
+    ,UTENSIL_WEIGHT=
+    <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
+      when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.utensilWeight,jdbcType=VARCHAR}
+    </foreach>
+    ,UTENSIL_TYPE_NO=
+    <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
+      when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.utensilTypeNo,jdbcType=VARCHAR}
+    </foreach>
+    ,UTENSIL_UTENSIL_NAME=
+    <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
+      when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.utensilUtensilName,jdbcType=VARCHAR}
+    </foreach>
+    ,ACTUAL_FIRST_NO=
+    <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
+      when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.actualFirstNo,jdbcType=VARCHAR}
+    </foreach>
+    ,CREATE_MAN_NO=
+    <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
+      when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
+    </foreach>
+    ,CREATE_MAN_NAME=
+    <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
+      when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
+    </foreach>
+    ,CREATE_TIME=
+    <foreach collection="list" item="item" index="index" separator=" " open="case ADD_WEIGHT_ACT_NO" close="end">
+      when #{item.addWeightActNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
+    </foreach>
+    where ADD_WEIGHT_ACT_NO in
+    <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
+      #{item.addWeightActNo,jdbcType=VARCHAR}
+    </foreach>
+  </update>
 </mapper>

+ 15 - 1
src/main/java/com/steerinfo/meterwork/meterworkcaractual/model/MeterWorkCarActual.java

@@ -3,7 +3,6 @@ package com.steerinfo.meterwork.meterworkcaractual.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;
 
@@ -513,6 +512,12 @@ public class MeterWorkCarActual implements IBasePO<String> {
     @ApiModelProperty(value="船号",required=false)
     private String shipNo;
 
+    /**
+     * 停用,启用,修改等原因(NOTE,VARCHAR,500)
+     */
+    @ApiModelProperty(value="停用,启用,修改等原因",required=false)
+    private String note;
+
     private static final long serialVersionUID = 1L;
 
     @Override
@@ -1197,6 +1202,14 @@ public class MeterWorkCarActual implements IBasePO<String> {
         this.shipNo = shipNo == null ? null : shipNo.trim();
     }
 
+    public String getNote() {
+        return note;
+    }
+
+    public void setNote(String note) {
+        this.note = note == null ? null : note.trim();
+    }
+
     @Override
     public String toString() {
         StringBuilder sb = new StringBuilder();
@@ -1287,6 +1300,7 @@ public class MeterWorkCarActual implements IBasePO<String> {
         sb.append(", meterPierName=").append(meterPierName);
         sb.append(", meterPierNo=").append(meterPierNo);
         sb.append(", shipNo=").append(shipNo);
+        sb.append(", note=").append(note);
         sb.append(", serialVersionUID=").append(serialVersionUID);
         sb.append("]");
         return sb.toString();

+ 1812 - 1791
src/main/java/com/steerinfo/meterwork/meterworkcaractualfirst/mapper/MeterWorkCarActualFirstMapper.xml

@@ -1,77 +1,78 @@
 <?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.meterworkcaractualfirst.mapper.MeterWorkCarActualFirstMapper">
-    <resultMap id="BaseResultMap" type="com.steerinfo.meterwork.meterworkcaractualfirst.model.MeterWorkCarActualFirst">
-        <id column="ACTUAL_FIRST_NO" jdbcType="VARCHAR" property="actualFirstNo" />
-        <result 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="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="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="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="METER_WEIGHT" jdbcType="DECIMAL" property="meterWeight" />
-        <result column="ADD_WEIGHT" jdbcType="DECIMAL" property="addWeight" />
-        <result column="METER_NUM" jdbcType="DECIMAL" property="meterNum" />
-        <result column="WEIGHT_TYPE" jdbcType="VARCHAR" property="weightType" />
-        <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="BASE_SPOT_NO" jdbcType="VARCHAR" property="baseSpotNo" />
-        <result column="BASE_SPOT_NAME" jdbcType="VARCHAR" property="baseSpotName" />
-        <result column="METER_CLASS" jdbcType="VARCHAR" property="meterClass" />
-        <result column="METER_GROUP" jdbcType="VARCHAR" property="meterGroup" />
-        <result column="MEMO" jdbcType="VARCHAR" property="memo" />
-        <result column="VALUE_FLAG" jdbcType="VARCHAR" property="valueFlag" />
-        <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="CHECK_FLAG" jdbcType="VARCHAR" property="checkFlag" />
-        <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="METER_MODE" jdbcType="VARCHAR" property="meterMode" />
-        <result column="METER_REASON_NO" jdbcType="VARCHAR" property="meterReasonNo" />
-        <result column="METER_REASON_NAME" jdbcType="VARCHAR" property="meterReasonName" />
-        <result column="LOAD_END_TIME" jdbcType="TIMESTAMP" property="loadEndTime" />
-        <result column="ADD_WGT_NO" jdbcType="VARCHAR" property="addWgtNo" />
-        <result column="ADD_WGT_PK" jdbcType="VARCHAR" property="addWgtPk" />
-        <result column="LIMS_SAMPLING_FLAG" jdbcType="VARCHAR" property="limsSamplingFlag" />
-        <result column="HEAT_NO" jdbcType="VARCHAR" property="heatNo" />
-        <result column="METER_PIER_NAME" jdbcType="VARCHAR" property="meterPierName" />
-        <result column="METER_PIER_NO" jdbcType="VARCHAR" property="meterPierNo" />
-        <result column="SHIP_NO" jdbcType="VARCHAR" property="shipNo" />
-    </resultMap>
-    <sql id="columns">
-        ACTUAL_FIRST_NO, PREDICTION_NO, NOTICE_NO, CAR_NO, TRAILER_NO, MATTER_NO, MATTER_NAME, 
+  <resultMap id="BaseResultMap" type="com.steerinfo.meterwork.meterworkcaractualfirst.model.MeterWorkCarActualFirst">
+    <id column="ACTUAL_FIRST_NO" jdbcType="VARCHAR" property="actualFirstNo" />
+    <result 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="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="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="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="METER_WEIGHT" jdbcType="DECIMAL" property="meterWeight" />
+    <result column="ADD_WEIGHT" jdbcType="DECIMAL" property="addWeight" />
+    <result column="METER_NUM" jdbcType="DECIMAL" property="meterNum" />
+    <result column="WEIGHT_TYPE" jdbcType="VARCHAR" property="weightType" />
+    <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="BASE_SPOT_NO" jdbcType="VARCHAR" property="baseSpotNo" />
+    <result column="BASE_SPOT_NAME" jdbcType="VARCHAR" property="baseSpotName" />
+    <result column="METER_CLASS" jdbcType="VARCHAR" property="meterClass" />
+    <result column="METER_GROUP" jdbcType="VARCHAR" property="meterGroup" />
+    <result column="MEMO" jdbcType="VARCHAR" property="memo" />
+    <result column="VALUE_FLAG" jdbcType="VARCHAR" property="valueFlag" />
+    <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="CHECK_FLAG" jdbcType="VARCHAR" property="checkFlag" />
+    <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="METER_MODE" jdbcType="VARCHAR" property="meterMode" />
+    <result column="METER_REASON_NO" jdbcType="VARCHAR" property="meterReasonNo" />
+    <result column="METER_REASON_NAME" jdbcType="VARCHAR" property="meterReasonName" />
+    <result column="LOAD_END_TIME" jdbcType="TIMESTAMP" property="loadEndTime" />
+    <result column="ADD_WGT_NO" jdbcType="VARCHAR" property="addWgtNo" />
+    <result column="ADD_WGT_PK" jdbcType="VARCHAR" property="addWgtPk" />
+    <result column="LIMS_SAMPLING_FLAG" jdbcType="VARCHAR" property="limsSamplingFlag" />
+    <result column="HEAT_NO" jdbcType="VARCHAR" property="heatNo" />
+    <result column="METER_PIER_NAME" jdbcType="VARCHAR" property="meterPierName" />
+    <result column="METER_PIER_NO" jdbcType="VARCHAR" property="meterPierNo" />
+    <result column="SHIP_NO" jdbcType="VARCHAR" property="shipNo" />
+    <result column="NOTE" jdbcType="VARCHAR" property="note" />
+  </resultMap>
+  <sql id="columns">
+    ACTUAL_FIRST_NO, PREDICTION_NO, NOTICE_NO, CAR_NO, TRAILER_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, SHIPMENT_GROSS_WEIGHT, SHIPMENT_NET_WEIGHT, SHIPMENT_NUM, BIND_CARD_NO, 
@@ -82,10 +83,10 @@
     METER_CLASS, METER_GROUP, MEMO, VALUE_FLAG, UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME, 
     CHECK_FLAG, CHECK_MAN_NO, CHECK_MAN_NAME, CHECK_TIME, METER_MODE, METER_REASON_NO, 
     METER_REASON_NAME, LOAD_END_TIME, ADD_WGT_NO, ADD_WGT_PK, LIMS_SAMPLING_FLAG, HEAT_NO, 
-    METER_PIER_NAME, METER_PIER_NO, SHIP_NO
-    </sql>
-    <sql id="columns_alias">
-        t.ACTUAL_FIRST_NO, t.PREDICTION_NO, t.NOTICE_NO, t.CAR_NO, t.TRAILER_NO, t.MATTER_NO, 
+    METER_PIER_NAME, METER_PIER_NO, SHIP_NO, NOTE
+  </sql>
+  <sql id="columns_alias">
+    t.ACTUAL_FIRST_NO, 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.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, 
@@ -97,1722 +98,1742 @@
     t.METER_CLASS, t.METER_GROUP, t.MEMO, t.VALUE_FLAG, t.UPDATE_MAN_NO, t.UPDATE_MAN_NAME, 
     t.UPDATE_TIME, t.CHECK_FLAG, t.CHECK_MAN_NO, t.CHECK_MAN_NAME, t.CHECK_TIME, t.METER_MODE, 
     t.METER_REASON_NO, t.METER_REASON_NAME, t.LOAD_END_TIME, t.ADD_WGT_NO, t.ADD_WGT_PK, 
-    t.LIMS_SAMPLING_FLAG, t.HEAT_NO, t.METER_PIER_NAME, t.METER_PIER_NO, t.SHIP_NO
-    </sql>
-    <sql id="select">
-        SELECT <include refid="columns"/> FROM METER_WORK_CAR_ACTUAL_FIRST
-    </sql>
-    <sql id="select_alias">
-        SELECT <include refid="columns_alias"/> FROM METER_WORK_CAR_ACTUAL_FIRST t
-    </sql>
-    <sql id="where">
-        <where>
-            <if test="actualFirstNo != null and actualFirstNo != ''">
-                and ACTUAL_FIRST_NO = #{actualFirstNo}
-            </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="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="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="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="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="meterWeight != null">
-                and METER_WEIGHT = #{meterWeight}
-            </if>
-            <if test="addWeight != null">
-                and ADD_WEIGHT = #{addWeight}
-            </if>
-            <if test="meterNum != null">
-                and METER_NUM = #{meterNum}
-            </if>
-            <if test="weightType != null and weightType != ''">
-                and WEIGHT_TYPE = #{weightType}
-            </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="baseSpotNo != null and baseSpotNo != ''">
-                and BASE_SPOT_NO = #{baseSpotNo}
-            </if>
-            <if test="baseSpotName != null and baseSpotName != ''">
-                and BASE_SPOT_NAME = #{baseSpotName}
-            </if>
-            <if test="meterClass != null and meterClass != ''">
-                and METER_CLASS = #{meterClass}
-            </if>
-            <if test="meterGroup != null and meterGroup != ''">
-                and METER_GROUP = #{meterGroup}
-            </if>
-            <if test="memo != null and memo != ''">
-                and MEMO = #{memo}
-            </if>
-            <if test="valueFlag != null and valueFlag != ''">
-                and VALUE_FLAG = #{valueFlag}
-            </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="checkFlag != null and checkFlag != ''">
-                and CHECK_FLAG = #{checkFlag}
-            </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="meterMode != null and meterMode != ''">
-                and METER_MODE = #{meterMode}
-            </if>
-            <if test="meterReasonNo != null and meterReasonNo != ''">
-                and METER_REASON_NO = #{meterReasonNo}
-            </if>
-            <if test="meterReasonName != null and meterReasonName != ''">
-                and METER_REASON_NAME = #{meterReasonName}
-            </if>
-            <if test="loadEndTime != null">
-                and TO_CHAR(LOAD_END_TIME,'yyyy-MM-dd') = #{loadEndTime}
-            </if>
-            <if test="addWgtNo != null and addWgtNo != ''">
-                and ADD_WGT_NO = #{addWgtNo}
-            </if>
-            <if test="addWgtPk != null and addWgtPk != ''">
-                and ADD_WGT_PK = #{addWgtPk}
-            </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="meterPierName != null and meterPierName != ''">
-                and METER_PIER_NAME = #{meterPierName}
-            </if>
-            <if test="meterPierNo != null and meterPierNo != ''">
-                and METER_PIER_NO = #{meterPierNo}
-            </if>
-            <if test="shipNo != null and shipNo != ''">
-                and SHIP_NO = #{shipNo}
-            </if>
-            <if test="createTime1 != null and createTime2 != null and createTime1 != '' and createTime2 != ''">
-                and  CREATE_TIME  >= TO_DATE(#{createTime1}, 'yyyy-MM-dd HH24:mi:ss') and CREATE_TIME  &lt;=  TO_DATE(#{createTime2}, 'yyyy-MM-dd HH24:mi:ss')
-            </if>
-        </where>
-    </sql>
-    <sql id="whereLike">
-        <where>
-            <if test="actualFirstNo != null and actualFirstNo != ''">
-                and ACTUAL_FIRST_NO LIKE '%${actualFirstNo}%'
-            </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="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="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="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="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="meterWeight != null">
-                and METER_WEIGHT = #{meterWeight}
-            </if>
-            <if test="addWeight != null">
-                and ADD_WEIGHT = #{addWeight}
-            </if>
-            <if test="meterNum != null">
-                and METER_NUM = #{meterNum}
-            </if>
-            <if test="weightType != null and weightType != ''">
-                and WEIGHT_TYPE LIKE '%${weightType}%'
-            </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="baseSpotNo != null and baseSpotNo != ''">
-                and BASE_SPOT_NO LIKE '%${baseSpotNo}%'
-            </if>
-            <if test="baseSpotName != null and baseSpotName != ''">
-                and BASE_SPOT_NAME LIKE '%${baseSpotName}%'
-            </if>
-            <if test="meterClass != null and meterClass != ''">
-                and METER_CLASS LIKE '%${meterClass}%'
-            </if>
-            <if test="meterGroup != null and meterGroup != ''">
-                and METER_GROUP LIKE '%${meterGroup}%'
-            </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="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="checkFlag != null and checkFlag != ''">
-                and CHECK_FLAG LIKE '%${checkFlag}%'
-            </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="meterMode != null and meterMode != ''">
-                and METER_MODE LIKE '%${meterMode}%'
-            </if>
-            <if test="meterReasonNo != null and meterReasonNo != ''">
-                and METER_REASON_NO LIKE '%${meterReasonNo}%'
-            </if>
-            <if test="meterReasonName != null and meterReasonName != ''">
-                and METER_REASON_NAME LIKE '%${meterReasonName}%'
-            </if>
-            <if test="loadEndTime != null">
-                and TO_CHAR(LOAD_END_TIME,'yyyy-MM-dd') = #{loadEndTime}
-            </if>
-            <if test="addWgtNo != null and addWgtNo != ''">
-                and ADD_WGT_NO LIKE '%${addWgtNo}%'
-            </if>
-            <if test="addWgtPk != null and addWgtPk != ''">
-                and ADD_WGT_PK LIKE '%${addWgtPk}%'
-            </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="meterPierName != null and meterPierName != ''">
-                and METER_PIER_NAME LIKE '%${meterPierName}%'
-            </if>
-            <if test="meterPierNo != null and meterPierNo != ''">
-                and METER_PIER_NO LIKE '%${meterPierNo}%'
-            </if>
-            <if test="shipNo != null and shipNo != ''">
-                and SHIP_NO LIKE '%${shipNo}%'
-            </if>
-        </where>
-    </sql>
-    <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
-        delete from METER_WORK_CAR_ACTUAL_FIRST
-        where ACTUAL_FIRST_NO = #{actualFirstNo,jdbcType=VARCHAR}
-    </delete>
-    <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
-        delete from METER_WORK_CAR_ACTUAL_FIRST
-        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="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="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="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="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="meterWeight != null">
-            or METER_WEIGHT = #{meterWeight}
-        </if>
-        <if test="addWeight != null">
-            or ADD_WEIGHT = #{addWeight}
-        </if>
-        <if test="meterNum != null">
-            or METER_NUM = #{meterNum}
-        </if>
-        <if test="weightType != null and weightType != ''">
-            or WEIGHT_TYPE = #{weightType}
-        </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="baseSpotNo != null and baseSpotNo != ''">
-            or BASE_SPOT_NO = #{baseSpotNo}
-        </if>
-        <if test="baseSpotName != null and baseSpotName != ''">
-            or BASE_SPOT_NAME = #{baseSpotName}
-        </if>
-        <if test="meterClass != null and meterClass != ''">
-            or METER_CLASS = #{meterClass}
-        </if>
-        <if test="meterGroup != null and meterGroup != ''">
-            or METER_GROUP = #{meterGroup}
-        </if>
-        <if test="memo != null and memo != ''">
-            or MEMO = #{memo}
-        </if>
-        <if test="valueFlag != null and valueFlag != ''">
-            or VALUE_FLAG = #{valueFlag}
-        </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="checkFlag != null and checkFlag != ''">
-            or CHECK_FLAG = #{checkFlag}
-        </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="meterMode != null and meterMode != ''">
-            or METER_MODE = #{meterMode}
-        </if>
-        <if test="meterReasonNo != null and meterReasonNo != ''">
-            or METER_REASON_NO = #{meterReasonNo}
-        </if>
-        <if test="meterReasonName != null and meterReasonName != ''">
-            or METER_REASON_NAME = #{meterReasonName}
-        </if>
-        <if test="loadEndTime != null">
-            or TO_CHAR(LOAD_END_TIME,'yyyy-MM-dd') = '#{loadEndTime}'
-        </if>
-        <if test="addWgtNo != null and addWgtNo != ''">
-            or ADD_WGT_NO = #{addWgtNo}
-        </if>
-        <if test="addWgtPk != null and addWgtPk != ''">
-            or ADD_WGT_PK = #{addWgtPk}
-        </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="meterPierName != null and meterPierName != ''">
-            or METER_PIER_NAME = #{meterPierName}
-        </if>
-        <if test="meterPierNo != null and meterPierNo != ''">
-            or METER_PIER_NO = #{meterPierNo}
-        </if>
-        <if test="shipNo != null and shipNo != ''">
-            or SHIP_NO = #{shipNo}
-        </if>
-    </delete>
-    <insert id="insert" parameterType="com.steerinfo.meterwork.meterworkcaractualfirst.model.MeterWorkCarActualFirst">
-        insert into METER_WORK_CAR_ACTUAL_FIRST (ACTUAL_FIRST_NO, PREDICTION_NO, NOTICE_NO,
-                                                 CAR_NO, TRAILER_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, SHIPMENT_GROSS_WEIGHT,
-                                                 SHIPMENT_NET_WEIGHT, SHIPMENT_NUM, 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, RAILWAY_NO,
-                                                 METER_PROCESS_NO, METER_PROCESS_EDITION_NO,
-                                                 METER_WEIGHT, ADD_WEIGHT, METER_NUM,
-                                                 WEIGHT_TYPE, CREATE_MAN_NO, CREATE_MAN_NAME,
-                                                 CREATE_TIME, BASE_SPOT_NO, BASE_SPOT_NAME,
-                                                 METER_CLASS, METER_GROUP, MEMO,
-                                                 VALUE_FLAG, UPDATE_MAN_NO, UPDATE_MAN_NAME,
-                                                 UPDATE_TIME, CHECK_FLAG, CHECK_MAN_NO,
-                                                 CHECK_MAN_NAME, CHECK_TIME, METER_MODE,
-                                                 METER_REASON_NO, METER_REASON_NAME, LOAD_END_TIME,
-                                                 ADD_WGT_NO, ADD_WGT_PK, LIMS_SAMPLING_FLAG,
-                                                 HEAT_NO, METER_PIER_NAME, METER_PIER_NO,
-                                                 SHIP_NO)
-        values (#{actualFirstNo,jdbcType=VARCHAR}, #{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},
-                #{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}, #{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}, #{railwayNo,jdbcType=VARCHAR},
-                #{meterProcessNo,jdbcType=VARCHAR}, #{meterProcessEditionNo,jdbcType=VARCHAR},
-                #{meterWeight,jdbcType=DECIMAL}, #{addWeight,jdbcType=DECIMAL}, #{meterNum,jdbcType=DECIMAL},
-                #{weightType,jdbcType=VARCHAR}, #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR},
-                #{createTime,jdbcType=TIMESTAMP}, #{baseSpotNo,jdbcType=VARCHAR}, #{baseSpotName,jdbcType=VARCHAR},
-                #{meterClass,jdbcType=VARCHAR}, #{meterGroup,jdbcType=VARCHAR}, #{memo,jdbcType=VARCHAR},
-                #{valueFlag,jdbcType=VARCHAR}, #{updateManNo,jdbcType=VARCHAR}, #{updateManName,jdbcType=VARCHAR},
-                #{updateTime,jdbcType=TIMESTAMP}, #{checkFlag,jdbcType=VARCHAR}, #{checkManNo,jdbcType=VARCHAR},
-                #{checkManName,jdbcType=VARCHAR}, #{checkTime,jdbcType=TIMESTAMP}, #{meterMode,jdbcType=VARCHAR},
-                #{meterReasonNo,jdbcType=VARCHAR}, #{meterReasonName,jdbcType=VARCHAR}, #{loadEndTime,jdbcType=TIMESTAMP},
-                #{addWgtNo,jdbcType=VARCHAR}, #{addWgtPk,jdbcType=VARCHAR}, #{limsSamplingFlag,jdbcType=VARCHAR},
-                #{heatNo,jdbcType=VARCHAR}, #{meterPierName,jdbcType=VARCHAR}, #{meterPierNo,jdbcType=VARCHAR},
-                #{shipNo,jdbcType=VARCHAR})
-    </insert>
-    <insert id="insertSelective" parameterType="com.steerinfo.meterwork.meterworkcaractualfirst.model.MeterWorkCarActualFirst">
-        insert into METER_WORK_CAR_ACTUAL_FIRST
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="actualFirstNo != null">
-                ACTUAL_FIRST_NO,
-            </if>
-            <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="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="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="railwayNo != null">
-                RAILWAY_NO,
-            </if>
-            <if test="meterProcessNo != null">
-                METER_PROCESS_NO,
-            </if>
-            <if test="meterProcessEditionNo != null">
-                METER_PROCESS_EDITION_NO,
-            </if>
-            <if test="meterWeight != null">
-                METER_WEIGHT,
-            </if>
-            <if test="addWeight != null">
-                ADD_WEIGHT,
-            </if>
-            <if test="meterNum != null">
-                METER_NUM,
-            </if>
-            <if test="weightType != null">
-                WEIGHT_TYPE,
-            </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="baseSpotNo != null">
-                BASE_SPOT_NO,
-            </if>
-            <if test="baseSpotName != null">
-                BASE_SPOT_NAME,
-            </if>
-            <if test="meterClass != null">
-                METER_CLASS,
-            </if>
-            <if test="meterGroup != null">
-                METER_GROUP,
-            </if>
-            <if test="memo != null">
-                MEMO,
-            </if>
-            <if test="valueFlag != null">
-                VALUE_FLAG,
-            </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="checkFlag != null">
-                CHECK_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="meterMode != null">
-                METER_MODE,
-            </if>
-            <if test="meterReasonNo != null">
-                METER_REASON_NO,
-            </if>
-            <if test="meterReasonName != null">
-                METER_REASON_NAME,
-            </if>
-            <if test="loadEndTime != null">
-                LOAD_END_TIME,
-            </if>
-            <if test="addWgtNo != null">
-                ADD_WGT_NO,
-            </if>
-            <if test="addWgtPk != null">
-                ADD_WGT_PK,
-            </if>
-            <if test="limsSamplingFlag != null">
-                LIMS_SAMPLING_FLAG,
-            </if>
-            <if test="heatNo != null">
-                HEAT_NO,
-            </if>
-            <if test="meterPierName != null">
-                METER_PIER_NAME,
-            </if>
-            <if test="meterPierNo != null">
-                METER_PIER_NO,
-            </if>
-            <if test="shipNo != null">
-                SHIP_NO,
-            </if>
-        </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="actualFirstNo != null">
-                #{actualFirstNo,jdbcType=VARCHAR},
-            </if>
-            <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="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="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="railwayNo != null">
-                #{railwayNo,jdbcType=VARCHAR},
-            </if>
-            <if test="meterProcessNo != null">
-                #{meterProcessNo,jdbcType=VARCHAR},
-            </if>
-            <if test="meterProcessEditionNo != null">
-                #{meterProcessEditionNo,jdbcType=VARCHAR},
-            </if>
-            <if test="meterWeight != null">
-                #{meterWeight,jdbcType=DECIMAL},
-            </if>
-            <if test="addWeight != null">
-                #{addWeight,jdbcType=DECIMAL},
-            </if>
-            <if test="meterNum != null">
-                #{meterNum,jdbcType=DECIMAL},
-            </if>
-            <if test="weightType != null">
-                #{weightType,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="baseSpotNo != null">
-                #{baseSpotNo,jdbcType=VARCHAR},
-            </if>
-            <if test="baseSpotName != null">
-                #{baseSpotName,jdbcType=VARCHAR},
-            </if>
-            <if test="meterClass != null">
-                #{meterClass,jdbcType=VARCHAR},
-            </if>
-            <if test="meterGroup != null">
-                #{meterGroup,jdbcType=VARCHAR},
-            </if>
-            <if test="memo != null">
-                #{memo,jdbcType=VARCHAR},
-            </if>
-            <if test="valueFlag != null">
-                #{valueFlag,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="checkFlag != null">
-                #{checkFlag,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="meterMode != null">
-                #{meterMode,jdbcType=VARCHAR},
-            </if>
-            <if test="meterReasonNo != null">
-                #{meterReasonNo,jdbcType=VARCHAR},
-            </if>
-            <if test="meterReasonName != null">
-                #{meterReasonName,jdbcType=VARCHAR},
-            </if>
-            <if test="loadEndTime != null">
-                #{loadEndTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="addWgtNo != null">
-                #{addWgtNo,jdbcType=VARCHAR},
-            </if>
-            <if test="addWgtPk != null">
-                #{addWgtPk,jdbcType=VARCHAR},
-            </if>
-            <if test="limsSamplingFlag != null">
-                #{limsSamplingFlag,jdbcType=VARCHAR},
-            </if>
-            <if test="heatNo != null">
-                #{heatNo,jdbcType=VARCHAR},
-            </if>
-            <if test="meterPierName != null">
-                #{meterPierName,jdbcType=VARCHAR},
-            </if>
-            <if test="meterPierNo != null">
-                #{meterPierNo,jdbcType=VARCHAR},
-            </if>
-            <if test="shipNo != null">
-                #{shipNo,jdbcType=VARCHAR},
-            </if>
-        </trim>
-    </insert>
-    <update id="updateByPrimaryKey" parameterType="com.steerinfo.meterwork.meterworkcaractualfirst.model.MeterWorkCarActualFirst">
-        update METER_WORK_CAR_ACTUAL_FIRST
-        set PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR},
-            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},
-            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},
-            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},
-            RAILWAY_NO = #{railwayNo,jdbcType=VARCHAR},
-            METER_PROCESS_NO = #{meterProcessNo,jdbcType=VARCHAR},
-            METER_PROCESS_EDITION_NO = #{meterProcessEditionNo,jdbcType=VARCHAR},
-            METER_WEIGHT = #{meterWeight,jdbcType=DECIMAL},
-            ADD_WEIGHT = #{addWeight,jdbcType=DECIMAL},
-            METER_NUM = #{meterNum,jdbcType=DECIMAL},
-            WEIGHT_TYPE = #{weightType,jdbcType=VARCHAR},
-            CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
-            CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
-            CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
-            BASE_SPOT_NO = #{baseSpotNo,jdbcType=VARCHAR},
-            BASE_SPOT_NAME = #{baseSpotName,jdbcType=VARCHAR},
-            METER_CLASS = #{meterClass,jdbcType=VARCHAR},
-            METER_GROUP = #{meterGroup,jdbcType=VARCHAR},
-            MEMO = #{memo,jdbcType=VARCHAR},
-            VALUE_FLAG = #{valueFlag,jdbcType=VARCHAR},
-            UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
-            UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
-            UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
-            CHECK_FLAG = #{checkFlag,jdbcType=VARCHAR},
-            CHECK_MAN_NO = #{checkManNo,jdbcType=VARCHAR},
-            CHECK_MAN_NAME = #{checkManName,jdbcType=VARCHAR},
-            CHECK_TIME = #{checkTime,jdbcType=TIMESTAMP},
-            METER_MODE = #{meterMode,jdbcType=VARCHAR},
-            METER_REASON_NO = #{meterReasonNo,jdbcType=VARCHAR},
-            METER_REASON_NAME = #{meterReasonName,jdbcType=VARCHAR},
-            LOAD_END_TIME = #{loadEndTime,jdbcType=TIMESTAMP},
-            ADD_WGT_NO = #{addWgtNo,jdbcType=VARCHAR},
-            ADD_WGT_PK = #{addWgtPk,jdbcType=VARCHAR},
-            LIMS_SAMPLING_FLAG = #{limsSamplingFlag,jdbcType=VARCHAR},
-            HEAT_NO = #{heatNo,jdbcType=VARCHAR},
-            METER_PIER_NAME = #{meterPierName,jdbcType=VARCHAR},
-            METER_PIER_NO = #{meterPierNo,jdbcType=VARCHAR},
-            SHIP_NO = #{shipNo,jdbcType=VARCHAR}
-        where ACTUAL_FIRST_NO = #{actualFirstNo,jdbcType=VARCHAR}
-    </update>
-    <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.meterwork.meterworkcaractualfirst.model.MeterWorkCarActualFirst">
-        update METER_WORK_CAR_ACTUAL_FIRST
-        <set>
-            <if test="predictionNo != null">
-                PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR},
-            </if>
-            <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="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="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="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="meterWeight != null">
-                METER_WEIGHT = #{meterWeight,jdbcType=DECIMAL},
-            </if>
-            <if test="addWeight != null">
-                ADD_WEIGHT = #{addWeight,jdbcType=DECIMAL},
-            </if>
-            <if test="meterNum != null">
-                METER_NUM = #{meterNum,jdbcType=DECIMAL},
-            </if>
-            <if test="weightType != null">
-                WEIGHT_TYPE = #{weightType,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="baseSpotNo != null">
-                BASE_SPOT_NO = #{baseSpotNo,jdbcType=VARCHAR},
-            </if>
-            <if test="baseSpotName != null">
-                BASE_SPOT_NAME = #{baseSpotName,jdbcType=VARCHAR},
-            </if>
-            <if test="meterClass != null">
-                METER_CLASS = #{meterClass,jdbcType=VARCHAR},
-            </if>
-            <if test="meterGroup != null">
-                METER_GROUP = #{meterGroup,jdbcType=VARCHAR},
-            </if>
-            <if test="memo != null">
-                MEMO = #{memo,jdbcType=VARCHAR},
-            </if>
-            <if test="valueFlag != null">
-                VALUE_FLAG = #{valueFlag,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="checkFlag != null">
-                CHECK_FLAG = #{checkFlag,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="meterMode != null">
-                METER_MODE = #{meterMode,jdbcType=VARCHAR},
-            </if>
-            <if test="meterReasonNo != null">
-                METER_REASON_NO = #{meterReasonNo,jdbcType=VARCHAR},
-            </if>
-            <if test="meterReasonName != null">
-                METER_REASON_NAME = #{meterReasonName,jdbcType=VARCHAR},
-            </if>
-            <if test="loadEndTime != null">
-                LOAD_END_TIME = #{loadEndTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="addWgtNo != null">
-                ADD_WGT_NO = #{addWgtNo,jdbcType=VARCHAR},
-            </if>
-            <if test="addWgtPk != null">
-                ADD_WGT_PK = #{addWgtPk,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="meterPierName != null">
-                METER_PIER_NAME = #{meterPierName,jdbcType=VARCHAR},
-            </if>
-            <if test="meterPierNo != null">
-                METER_PIER_NO = #{meterPierNo,jdbcType=VARCHAR},
-            </if>
-            <if test="shipNo != null">
-                SHIP_NO = #{shipNo,jdbcType=VARCHAR},
-            </if>
-        </set>
-        where ACTUAL_FIRST_NO = #{actualFirstNo,jdbcType=VARCHAR}
-    </update>
-    <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
-        <include refid="select"/>
-        where ACTUAL_FIRST_NO = #{actualFirstNo,jdbcType=VARCHAR}
-    </select>
-    <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
-        <include refid="select"/>
-        <include refid="where"/>
-        order by actual_first_no desc
-    </select>
-    <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
-        <include refid="select"/>
-        <include refid="whereLike"/>
-        order by actual_first_no desc
-    </select>
-    <insert id="batchInsert" parameterType="java.util.List">
-        insert into METER_WORK_CAR_ACTUAL_FIRST
-        (ACTUAL_FIRST_NO,
-        PREDICTION_NO, NOTICE_NO, CAR_NO,
-        TRAILER_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,
-        SHIPMENT_GROSS_WEIGHT, SHIPMENT_NET_WEIGHT,
-        SHIPMENT_NUM, 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, RAILWAY_NO,
-        METER_PROCESS_NO, METER_PROCESS_EDITION_NO,
-        METER_WEIGHT, ADD_WEIGHT, METER_NUM,
-        WEIGHT_TYPE, CREATE_MAN_NO, CREATE_MAN_NAME,
-        CREATE_TIME, BASE_SPOT_NO, BASE_SPOT_NAME,
-        METER_CLASS, METER_GROUP, MEMO,
-        VALUE_FLAG, UPDATE_MAN_NO, UPDATE_MAN_NAME,
-        UPDATE_TIME, CHECK_FLAG, CHECK_MAN_NO,
-        CHECK_MAN_NAME, CHECK_TIME, METER_MODE,
-        METER_REASON_NO, METER_REASON_NAME,
-        LOAD_END_TIME, ADD_WGT_NO, ADD_WGT_PK,
-        LIMS_SAMPLING_FLAG, HEAT_NO, METER_PIER_NAME,
-        METER_PIER_NO, SHIP_NO)
-        ( <foreach collection="list" item="item" separator="union all">
-        select
-        #{item.actualFirstNo,jdbcType=VARCHAR},
-        #{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.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.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.railwayNo,jdbcType=VARCHAR},
-        #{item.meterProcessNo,jdbcType=VARCHAR}, #{item.meterProcessEditionNo,jdbcType=VARCHAR},
-        #{item.meterWeight,jdbcType=DECIMAL}, #{item.addWeight,jdbcType=DECIMAL}, #{item.meterNum,jdbcType=DECIMAL},
-        #{item.weightType,jdbcType=VARCHAR}, #{item.createManNo,jdbcType=VARCHAR}, #{item.createManName,jdbcType=VARCHAR},
-        #{item.createTime,jdbcType=TIMESTAMP}, #{item.baseSpotNo,jdbcType=VARCHAR}, #{item.baseSpotName,jdbcType=VARCHAR},
-        #{item.meterClass,jdbcType=VARCHAR}, #{item.meterGroup,jdbcType=VARCHAR}, #{item.memo,jdbcType=VARCHAR},
-        #{item.valueFlag,jdbcType=VARCHAR}, #{item.updateManNo,jdbcType=VARCHAR}, #{item.updateManName,jdbcType=VARCHAR},
-        #{item.updateTime,jdbcType=TIMESTAMP}, #{item.checkFlag,jdbcType=VARCHAR}, #{item.checkManNo,jdbcType=VARCHAR},
-        #{item.checkManName,jdbcType=VARCHAR}, #{item.checkTime,jdbcType=TIMESTAMP}, #{item.meterMode,jdbcType=VARCHAR},
-        #{item.meterReasonNo,jdbcType=VARCHAR}, #{item.meterReasonName,jdbcType=VARCHAR},
-        #{item.loadEndTime,jdbcType=TIMESTAMP}, #{item.addWgtNo,jdbcType=VARCHAR}, #{item.addWgtPk,jdbcType=VARCHAR},
-        #{item.limsSamplingFlag,jdbcType=VARCHAR}, #{item.heatNo,jdbcType=VARCHAR}, #{item.meterPierName,jdbcType=VARCHAR},
-        #{item.meterPierNo,jdbcType=VARCHAR}, #{item.shipNo,jdbcType=VARCHAR} from dual
-    </foreach> )
-    </insert>
-    <update id="batchUpdate" parameterType="java.util.List">
-        update METER_WORK_CAR_ACTUAL_FIRST
-        set
-        ACTUAL_FIRST_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.actualFirstNo,jdbcType=VARCHAR}
-        </foreach>
-        ,PREDICTION_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.predictionNo,jdbcType=VARCHAR}
-        </foreach>
-        ,NOTICE_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.noticeNo,jdbcType=VARCHAR}
-        </foreach>
-        ,CAR_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.carNo,jdbcType=VARCHAR}
-        </foreach>
-        ,TRAILER_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.trailerNo,jdbcType=VARCHAR}
-        </foreach>
-        ,MATTER_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.matterNo,jdbcType=VARCHAR}
-        </foreach>
-        ,MATTER_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.matterName,jdbcType=VARCHAR}
-        </foreach>
-        ,CONTRACT_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.contractNo,jdbcType=VARCHAR}
-        </foreach>
-        ,BATCH_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.batchNo,jdbcType=VARCHAR}
-        </foreach>
-        ,CUSTOMER_SUPPLIER_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.customerSupplierNo,jdbcType=VARCHAR}
-        </foreach>
-        ,CUSTOMER_SUPPLIER_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.customerSupplierName,jdbcType=VARCHAR}
-        </foreach>
-        ,FORWARDING_UNIT_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.forwardingUnitNo,jdbcType=VARCHAR}
-        </foreach>
-        ,FORWARDING_UNIT_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.forwardingUnitName,jdbcType=VARCHAR}
-        </foreach>
-        ,RECEIVING_UINT_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.receivingUintNo,jdbcType=VARCHAR}
-        </foreach>
-        ,RECEIVING_UINT_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.receivingUintName,jdbcType=VARCHAR}
-        </foreach>
-        ,MATERIAL_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.materialNo,jdbcType=VARCHAR}
-        </foreach>
-        ,MATERIAL_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.materialName,jdbcType=VARCHAR}
-        </foreach>
-        ,SPEC_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.specNo,jdbcType=VARCHAR}
-        </foreach>
-        ,SPEC_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.specName,jdbcType=VARCHAR}
-        </foreach>
-        ,SHIPMENT_GROSS_WEIGHT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.shipmentGrossWeight,jdbcType=DECIMAL}
-        </foreach>
-        ,SHIPMENT_NET_WEIGHT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.shipmentNetWeight,jdbcType=DECIMAL}
-        </foreach>
-        ,SHIPMENT_NUM=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.shipmentNum,jdbcType=DECIMAL}
-        </foreach>
-        ,BIND_CARD_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.bindCardNo,jdbcType=VARCHAR}
-        </foreach>
-        ,LOAD_POINT_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.loadPointNo,jdbcType=VARCHAR}
-        </foreach>
-        ,LOAD_POINT_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.loadPointName,jdbcType=VARCHAR}
-        </foreach>
-        ,SAMPLE_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.sampleNo,jdbcType=VARCHAR}
-        </foreach>
-        ,SAMPLE_VOUCHER=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.sampleVoucher,jdbcType=VARCHAR}
-        </foreach>
-        ,CARRIER_UNIT_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.carrierUnitNo,jdbcType=VARCHAR}
-        </foreach>
-        ,CARRIER_UNIT_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.carrierUnitName,jdbcType=VARCHAR}
-        </foreach>
-        ,PREDICTION_TYPE=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.predictionType,jdbcType=VARCHAR}
-        </foreach>
-        ,PREDICTION_COMBINATION=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.predictionCombination,jdbcType=VARCHAR}
-        </foreach>
-        ,METER_TYPE_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterTypeNo,jdbcType=VARCHAR}
-        </foreach>
-        ,METER_TYPE_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterTypeName,jdbcType=VARCHAR}
-        </foreach>
-        ,RAILWAY_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.railwayNo,jdbcType=VARCHAR}
-        </foreach>
-        ,METER_PROCESS_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterProcessNo,jdbcType=VARCHAR}
-        </foreach>
-        ,METER_PROCESS_EDITION_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterProcessEditionNo,jdbcType=VARCHAR}
-        </foreach>
-        ,METER_WEIGHT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterWeight,jdbcType=DECIMAL}
-        </foreach>
-        ,ADD_WEIGHT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.addWeight,jdbcType=DECIMAL}
-        </foreach>
-        ,METER_NUM=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterNum,jdbcType=DECIMAL}
-        </foreach>
-        ,WEIGHT_TYPE=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.weightType,jdbcType=VARCHAR}
-        </foreach>
-        ,CREATE_MAN_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
-        </foreach>
-        ,CREATE_MAN_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
-        </foreach>
-        ,CREATE_TIME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
-        </foreach>
-        ,BASE_SPOT_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.baseSpotNo,jdbcType=VARCHAR}
-        </foreach>
-        ,BASE_SPOT_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.baseSpotName,jdbcType=VARCHAR}
-        </foreach>
-        ,METER_CLASS=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterClass,jdbcType=VARCHAR}
-        </foreach>
-        ,METER_GROUP=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterGroup,jdbcType=VARCHAR}
-        </foreach>
-        ,MEMO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.memo,jdbcType=VARCHAR}
-        </foreach>
-        ,VALUE_FLAG=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.valueFlag,jdbcType=VARCHAR}
-        </foreach>
-        ,UPDATE_MAN_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=VARCHAR}
-        </foreach>
-        ,UPDATE_MAN_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.updateManName,jdbcType=VARCHAR}
-        </foreach>
-        ,UPDATE_TIME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
-        </foreach>
-        ,CHECK_FLAG=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.checkFlag,jdbcType=VARCHAR}
-        </foreach>
-        ,CHECK_MAN_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.checkManNo,jdbcType=VARCHAR}
-        </foreach>
-        ,CHECK_MAN_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.checkManName,jdbcType=VARCHAR}
-        </foreach>
-        ,CHECK_TIME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.checkTime,jdbcType=TIMESTAMP}
-        </foreach>
-        ,METER_MODE=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterMode,jdbcType=VARCHAR}
-        </foreach>
-        ,METER_REASON_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterReasonNo,jdbcType=VARCHAR}
-        </foreach>
-        ,METER_REASON_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterReasonName,jdbcType=VARCHAR}
-        </foreach>
-        ,LOAD_END_TIME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.loadEndTime,jdbcType=TIMESTAMP}
-        </foreach>
-        ,ADD_WGT_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.addWgtNo,jdbcType=VARCHAR}
-        </foreach>
-        ,ADD_WGT_PK=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.addWgtPk,jdbcType=VARCHAR}
-        </foreach>
-        ,LIMS_SAMPLING_FLAG=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.limsSamplingFlag,jdbcType=VARCHAR}
-        </foreach>
-        ,HEAT_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.heatNo,jdbcType=VARCHAR}
-        </foreach>
-        ,METER_PIER_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterPierName,jdbcType=VARCHAR}
-        </foreach>
-        ,METER_PIER_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterPierNo,jdbcType=VARCHAR}
-        </foreach>
-        ,SHIP_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
-            when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.shipNo,jdbcType=VARCHAR}
-        </foreach>
-        where ACTUAL_FIRST_NO in
-        <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
-            #{item.actualFirstNo,jdbcType=VARCHAR}
-        </foreach>
-    </update>
-    <delete id="batchDelete" parameterType="java.util.List">
-        delete from METER_WORK_CAR_ACTUAL_FIRST
-        where ACTUAL_FIRST_NO in
-        <foreach collection="list" item="id" open="(" close=")" separator=",">
-            #{id}
-        </foreach>
-    </delete>
-    <!-- 友情提示!!!-->
+    t.LIMS_SAMPLING_FLAG, t.HEAT_NO, t.METER_PIER_NAME, t.METER_PIER_NO, t.SHIP_NO, t.NOTE
+  </sql>
+  <sql id="select">
+    SELECT <include refid="columns"/> FROM METER_WORK_CAR_ACTUAL_FIRST
+  </sql>
+  <sql id="select_alias">
+    SELECT <include refid="columns_alias"/> FROM METER_WORK_CAR_ACTUAL_FIRST t
+  </sql>
+  <sql id="where">
+    <where> 
+      <if test="actualFirstNo != null and actualFirstNo != ''">
+        and ACTUAL_FIRST_NO = #{actualFirstNo}
+      </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="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="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="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="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="meterWeight != null">
+        and METER_WEIGHT = #{meterWeight}
+      </if>
+      <if test="addWeight != null">
+        and ADD_WEIGHT = #{addWeight}
+      </if>
+      <if test="meterNum != null">
+        and METER_NUM = #{meterNum}
+      </if>
+      <if test="weightType != null and weightType != ''">
+        and WEIGHT_TYPE = #{weightType}
+      </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="baseSpotNo != null and baseSpotNo != ''">
+        and BASE_SPOT_NO = #{baseSpotNo}
+      </if>
+      <if test="baseSpotName != null and baseSpotName != ''">
+        and BASE_SPOT_NAME = #{baseSpotName}
+      </if>
+      <if test="meterClass != null and meterClass != ''">
+        and METER_CLASS = #{meterClass}
+      </if>
+      <if test="meterGroup != null and meterGroup != ''">
+        and METER_GROUP = #{meterGroup}
+      </if>
+      <if test="memo != null and memo != ''">
+        and MEMO = #{memo}
+      </if>
+      <if test="valueFlag != null and valueFlag != ''">
+        and VALUE_FLAG = #{valueFlag}
+      </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="checkFlag != null and checkFlag != ''">
+        and CHECK_FLAG = #{checkFlag}
+      </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="meterMode != null and meterMode != ''">
+        and METER_MODE = #{meterMode}
+      </if>
+      <if test="meterReasonNo != null and meterReasonNo != ''">
+        and METER_REASON_NO = #{meterReasonNo}
+      </if>
+      <if test="meterReasonName != null and meterReasonName != ''">
+        and METER_REASON_NAME = #{meterReasonName}
+      </if>
+      <if test="loadEndTime != null">
+        and TO_CHAR(LOAD_END_TIME,'yyyy-MM-dd') = #{loadEndTime}
+      </if>
+      <if test="addWgtNo != null and addWgtNo != ''">
+        and ADD_WGT_NO = #{addWgtNo}
+      </if>
+      <if test="addWgtPk != null and addWgtPk != ''">
+        and ADD_WGT_PK = #{addWgtPk}
+      </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="meterPierName != null and meterPierName != ''">
+        and METER_PIER_NAME = #{meterPierName}
+      </if>
+      <if test="meterPierNo != null and meterPierNo != ''">
+        and METER_PIER_NO = #{meterPierNo}
+      </if>
+      <if test="shipNo != null and shipNo != ''">
+        and SHIP_NO = #{shipNo}
+      </if>
+      <if test="note != null and note != ''">
+        and NOTE = #{note}
+      </if>
+    </where>
+  </sql>
+  <sql id="whereLike">
+    <where> 
+      <if test="actualFirstNo != null and actualFirstNo != ''">
+        and ACTUAL_FIRST_NO LIKE '%${actualFirstNo}%'
+      </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="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="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="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="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="meterWeight != null">
+        and METER_WEIGHT = #{meterWeight}
+      </if>
+      <if test="addWeight != null">
+        and ADD_WEIGHT = #{addWeight}
+      </if>
+      <if test="meterNum != null">
+        and METER_NUM = #{meterNum}
+      </if>
+      <if test="weightType != null and weightType != ''">
+        and WEIGHT_TYPE LIKE '%${weightType}%'
+      </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="baseSpotNo != null and baseSpotNo != ''">
+        and BASE_SPOT_NO LIKE '%${baseSpotNo}%'
+      </if>
+      <if test="baseSpotName != null and baseSpotName != ''">
+        and BASE_SPOT_NAME LIKE '%${baseSpotName}%'
+      </if>
+      <if test="meterClass != null and meterClass != ''">
+        and METER_CLASS LIKE '%${meterClass}%'
+      </if>
+      <if test="meterGroup != null and meterGroup != ''">
+        and METER_GROUP LIKE '%${meterGroup}%'
+      </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="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="checkFlag != null and checkFlag != ''">
+        and CHECK_FLAG LIKE '%${checkFlag}%'
+      </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="meterMode != null and meterMode != ''">
+        and METER_MODE LIKE '%${meterMode}%'
+      </if>
+      <if test="meterReasonNo != null and meterReasonNo != ''">
+        and METER_REASON_NO LIKE '%${meterReasonNo}%'
+      </if>
+      <if test="meterReasonName != null and meterReasonName != ''">
+        and METER_REASON_NAME LIKE '%${meterReasonName}%'
+      </if>
+      <if test="loadEndTime != null">
+        and TO_CHAR(LOAD_END_TIME,'yyyy-MM-dd') = #{loadEndTime}
+      </if>
+      <if test="addWgtNo != null and addWgtNo != ''">
+        and ADD_WGT_NO LIKE '%${addWgtNo}%'
+      </if>
+      <if test="addWgtPk != null and addWgtPk != ''">
+        and ADD_WGT_PK LIKE '%${addWgtPk}%'
+      </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="meterPierName != null and meterPierName != ''">
+        and METER_PIER_NAME LIKE '%${meterPierName}%'
+      </if>
+      <if test="meterPierNo != null and meterPierNo != ''">
+        and METER_PIER_NO LIKE '%${meterPierNo}%'
+      </if>
+      <if test="shipNo != null and shipNo != ''">
+        and SHIP_NO LIKE '%${shipNo}%'
+      </if>
+      <if test="note != null and note != ''">
+        and NOTE LIKE '%${note}%'
+      </if>
+    </where>
+  </sql>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
+    delete from METER_WORK_CAR_ACTUAL_FIRST
+    where ACTUAL_FIRST_NO = #{actualFirstNo,jdbcType=VARCHAR}
+  </delete>
+  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
+    delete from METER_WORK_CAR_ACTUAL_FIRST
+    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="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="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="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="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="meterWeight != null">
+        or METER_WEIGHT = #{meterWeight}
+      </if>
+      <if test="addWeight != null">
+        or ADD_WEIGHT = #{addWeight}
+      </if>
+      <if test="meterNum != null">
+        or METER_NUM = #{meterNum}
+      </if>
+      <if test="weightType != null and weightType != ''">
+        or WEIGHT_TYPE = #{weightType}
+      </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="baseSpotNo != null and baseSpotNo != ''">
+        or BASE_SPOT_NO = #{baseSpotNo}
+      </if>
+      <if test="baseSpotName != null and baseSpotName != ''">
+        or BASE_SPOT_NAME = #{baseSpotName}
+      </if>
+      <if test="meterClass != null and meterClass != ''">
+        or METER_CLASS = #{meterClass}
+      </if>
+      <if test="meterGroup != null and meterGroup != ''">
+        or METER_GROUP = #{meterGroup}
+      </if>
+      <if test="memo != null and memo != ''">
+        or MEMO = #{memo}
+      </if>
+      <if test="valueFlag != null and valueFlag != ''">
+        or VALUE_FLAG = #{valueFlag}
+      </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="checkFlag != null and checkFlag != ''">
+        or CHECK_FLAG = #{checkFlag}
+      </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="meterMode != null and meterMode != ''">
+        or METER_MODE = #{meterMode}
+      </if>
+      <if test="meterReasonNo != null and meterReasonNo != ''">
+        or METER_REASON_NO = #{meterReasonNo}
+      </if>
+      <if test="meterReasonName != null and meterReasonName != ''">
+        or METER_REASON_NAME = #{meterReasonName}
+      </if>
+      <if test="loadEndTime != null">
+        or TO_CHAR(LOAD_END_TIME,'yyyy-MM-dd') = '#{loadEndTime}'
+      </if>
+      <if test="addWgtNo != null and addWgtNo != ''">
+        or ADD_WGT_NO = #{addWgtNo}
+      </if>
+      <if test="addWgtPk != null and addWgtPk != ''">
+        or ADD_WGT_PK = #{addWgtPk}
+      </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="meterPierName != null and meterPierName != ''">
+        or METER_PIER_NAME = #{meterPierName}
+      </if>
+      <if test="meterPierNo != null and meterPierNo != ''">
+        or METER_PIER_NO = #{meterPierNo}
+      </if>
+      <if test="shipNo != null and shipNo != ''">
+        or SHIP_NO = #{shipNo}
+      </if>
+      <if test="note != null and note != ''">
+        or NOTE = #{note}
+      </if>
+  </delete>
+  <insert id="insert" parameterType="com.steerinfo.meterwork.meterworkcaractualfirst.model.MeterWorkCarActualFirst">
+    insert into METER_WORK_CAR_ACTUAL_FIRST (ACTUAL_FIRST_NO, PREDICTION_NO, NOTICE_NO, 
+      CAR_NO, TRAILER_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, SHIPMENT_GROSS_WEIGHT, 
+      SHIPMENT_NET_WEIGHT, SHIPMENT_NUM, 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, RAILWAY_NO, 
+      METER_PROCESS_NO, METER_PROCESS_EDITION_NO, 
+      METER_WEIGHT, ADD_WEIGHT, METER_NUM, 
+      WEIGHT_TYPE, CREATE_MAN_NO, CREATE_MAN_NAME, 
+      CREATE_TIME, BASE_SPOT_NO, BASE_SPOT_NAME, 
+      METER_CLASS, METER_GROUP, MEMO, 
+      VALUE_FLAG, UPDATE_MAN_NO, UPDATE_MAN_NAME, 
+      UPDATE_TIME, CHECK_FLAG, CHECK_MAN_NO, 
+      CHECK_MAN_NAME, CHECK_TIME, METER_MODE, 
+      METER_REASON_NO, METER_REASON_NAME, LOAD_END_TIME, 
+      ADD_WGT_NO, ADD_WGT_PK, LIMS_SAMPLING_FLAG, 
+      HEAT_NO, METER_PIER_NAME, METER_PIER_NO, 
+      SHIP_NO, NOTE)
+    values (#{actualFirstNo,jdbcType=VARCHAR}, #{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}, 
+      #{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}, #{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}, #{railwayNo,jdbcType=VARCHAR}, 
+      #{meterProcessNo,jdbcType=VARCHAR}, #{meterProcessEditionNo,jdbcType=VARCHAR}, 
+      #{meterWeight,jdbcType=DECIMAL}, #{addWeight,jdbcType=DECIMAL}, #{meterNum,jdbcType=DECIMAL}, 
+      #{weightType,jdbcType=VARCHAR}, #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR}, 
+      #{createTime,jdbcType=TIMESTAMP}, #{baseSpotNo,jdbcType=VARCHAR}, #{baseSpotName,jdbcType=VARCHAR}, 
+      #{meterClass,jdbcType=VARCHAR}, #{meterGroup,jdbcType=VARCHAR}, #{memo,jdbcType=VARCHAR}, 
+      #{valueFlag,jdbcType=VARCHAR}, #{updateManNo,jdbcType=VARCHAR}, #{updateManName,jdbcType=VARCHAR}, 
+      #{updateTime,jdbcType=TIMESTAMP}, #{checkFlag,jdbcType=VARCHAR}, #{checkManNo,jdbcType=VARCHAR}, 
+      #{checkManName,jdbcType=VARCHAR}, #{checkTime,jdbcType=TIMESTAMP}, #{meterMode,jdbcType=VARCHAR}, 
+      #{meterReasonNo,jdbcType=VARCHAR}, #{meterReasonName,jdbcType=VARCHAR}, #{loadEndTime,jdbcType=TIMESTAMP}, 
+      #{addWgtNo,jdbcType=VARCHAR}, #{addWgtPk,jdbcType=VARCHAR}, #{limsSamplingFlag,jdbcType=VARCHAR}, 
+      #{heatNo,jdbcType=VARCHAR}, #{meterPierName,jdbcType=VARCHAR}, #{meterPierNo,jdbcType=VARCHAR}, 
+      #{shipNo,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.steerinfo.meterwork.meterworkcaractualfirst.model.MeterWorkCarActualFirst">
+    insert into METER_WORK_CAR_ACTUAL_FIRST
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="actualFirstNo != null">
+        ACTUAL_FIRST_NO,
+      </if>
+      <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="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="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="railwayNo != null">
+        RAILWAY_NO,
+      </if>
+      <if test="meterProcessNo != null">
+        METER_PROCESS_NO,
+      </if>
+      <if test="meterProcessEditionNo != null">
+        METER_PROCESS_EDITION_NO,
+      </if>
+      <if test="meterWeight != null">
+        METER_WEIGHT,
+      </if>
+      <if test="addWeight != null">
+        ADD_WEIGHT,
+      </if>
+      <if test="meterNum != null">
+        METER_NUM,
+      </if>
+      <if test="weightType != null">
+        WEIGHT_TYPE,
+      </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="baseSpotNo != null">
+        BASE_SPOT_NO,
+      </if>
+      <if test="baseSpotName != null">
+        BASE_SPOT_NAME,
+      </if>
+      <if test="meterClass != null">
+        METER_CLASS,
+      </if>
+      <if test="meterGroup != null">
+        METER_GROUP,
+      </if>
+      <if test="memo != null">
+        MEMO,
+      </if>
+      <if test="valueFlag != null">
+        VALUE_FLAG,
+      </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="checkFlag != null">
+        CHECK_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="meterMode != null">
+        METER_MODE,
+      </if>
+      <if test="meterReasonNo != null">
+        METER_REASON_NO,
+      </if>
+      <if test="meterReasonName != null">
+        METER_REASON_NAME,
+      </if>
+      <if test="loadEndTime != null">
+        LOAD_END_TIME,
+      </if>
+      <if test="addWgtNo != null">
+        ADD_WGT_NO,
+      </if>
+      <if test="addWgtPk != null">
+        ADD_WGT_PK,
+      </if>
+      <if test="limsSamplingFlag != null">
+        LIMS_SAMPLING_FLAG,
+      </if>
+      <if test="heatNo != null">
+        HEAT_NO,
+      </if>
+      <if test="meterPierName != null">
+        METER_PIER_NAME,
+      </if>
+      <if test="meterPierNo != null">
+        METER_PIER_NO,
+      </if>
+      <if test="shipNo != null">
+        SHIP_NO,
+      </if>
+      <if test="note != null">
+        NOTE,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="actualFirstNo != null">
+        #{actualFirstNo,jdbcType=VARCHAR},
+      </if>
+      <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="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="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="railwayNo != null">
+        #{railwayNo,jdbcType=VARCHAR},
+      </if>
+      <if test="meterProcessNo != null">
+        #{meterProcessNo,jdbcType=VARCHAR},
+      </if>
+      <if test="meterProcessEditionNo != null">
+        #{meterProcessEditionNo,jdbcType=VARCHAR},
+      </if>
+      <if test="meterWeight != null">
+        #{meterWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="addWeight != null">
+        #{addWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="meterNum != null">
+        #{meterNum,jdbcType=DECIMAL},
+      </if>
+      <if test="weightType != null">
+        #{weightType,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="baseSpotNo != null">
+        #{baseSpotNo,jdbcType=VARCHAR},
+      </if>
+      <if test="baseSpotName != null">
+        #{baseSpotName,jdbcType=VARCHAR},
+      </if>
+      <if test="meterClass != null">
+        #{meterClass,jdbcType=VARCHAR},
+      </if>
+      <if test="meterGroup != null">
+        #{meterGroup,jdbcType=VARCHAR},
+      </if>
+      <if test="memo != null">
+        #{memo,jdbcType=VARCHAR},
+      </if>
+      <if test="valueFlag != null">
+        #{valueFlag,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="checkFlag != null">
+        #{checkFlag,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="meterMode != null">
+        #{meterMode,jdbcType=VARCHAR},
+      </if>
+      <if test="meterReasonNo != null">
+        #{meterReasonNo,jdbcType=VARCHAR},
+      </if>
+      <if test="meterReasonName != null">
+        #{meterReasonName,jdbcType=VARCHAR},
+      </if>
+      <if test="loadEndTime != null">
+        #{loadEndTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="addWgtNo != null">
+        #{addWgtNo,jdbcType=VARCHAR},
+      </if>
+      <if test="addWgtPk != null">
+        #{addWgtPk,jdbcType=VARCHAR},
+      </if>
+      <if test="limsSamplingFlag != null">
+        #{limsSamplingFlag,jdbcType=VARCHAR},
+      </if>
+      <if test="heatNo != null">
+        #{heatNo,jdbcType=VARCHAR},
+      </if>
+      <if test="meterPierName != null">
+        #{meterPierName,jdbcType=VARCHAR},
+      </if>
+      <if test="meterPierNo != null">
+        #{meterPierNo,jdbcType=VARCHAR},
+      </if>
+      <if test="shipNo != null">
+        #{shipNo,jdbcType=VARCHAR},
+      </if>
+      <if test="note != null">
+        #{note,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKey" parameterType="com.steerinfo.meterwork.meterworkcaractualfirst.model.MeterWorkCarActualFirst">
+    update METER_WORK_CAR_ACTUAL_FIRST
+    set PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR},
+      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},
+      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},
+      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},
+      RAILWAY_NO = #{railwayNo,jdbcType=VARCHAR},
+      METER_PROCESS_NO = #{meterProcessNo,jdbcType=VARCHAR},
+      METER_PROCESS_EDITION_NO = #{meterProcessEditionNo,jdbcType=VARCHAR},
+      METER_WEIGHT = #{meterWeight,jdbcType=DECIMAL},
+      ADD_WEIGHT = #{addWeight,jdbcType=DECIMAL},
+      METER_NUM = #{meterNum,jdbcType=DECIMAL},
+      WEIGHT_TYPE = #{weightType,jdbcType=VARCHAR},
+      CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
+      CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
+      CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
+      BASE_SPOT_NO = #{baseSpotNo,jdbcType=VARCHAR},
+      BASE_SPOT_NAME = #{baseSpotName,jdbcType=VARCHAR},
+      METER_CLASS = #{meterClass,jdbcType=VARCHAR},
+      METER_GROUP = #{meterGroup,jdbcType=VARCHAR},
+      MEMO = #{memo,jdbcType=VARCHAR},
+      VALUE_FLAG = #{valueFlag,jdbcType=VARCHAR},
+      UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
+      UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
+      UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
+      CHECK_FLAG = #{checkFlag,jdbcType=VARCHAR},
+      CHECK_MAN_NO = #{checkManNo,jdbcType=VARCHAR},
+      CHECK_MAN_NAME = #{checkManName,jdbcType=VARCHAR},
+      CHECK_TIME = #{checkTime,jdbcType=TIMESTAMP},
+      METER_MODE = #{meterMode,jdbcType=VARCHAR},
+      METER_REASON_NO = #{meterReasonNo,jdbcType=VARCHAR},
+      METER_REASON_NAME = #{meterReasonName,jdbcType=VARCHAR},
+      LOAD_END_TIME = #{loadEndTime,jdbcType=TIMESTAMP},
+      ADD_WGT_NO = #{addWgtNo,jdbcType=VARCHAR},
+      ADD_WGT_PK = #{addWgtPk,jdbcType=VARCHAR},
+      LIMS_SAMPLING_FLAG = #{limsSamplingFlag,jdbcType=VARCHAR},
+      HEAT_NO = #{heatNo,jdbcType=VARCHAR},
+      METER_PIER_NAME = #{meterPierName,jdbcType=VARCHAR},
+      METER_PIER_NO = #{meterPierNo,jdbcType=VARCHAR},
+      SHIP_NO = #{shipNo,jdbcType=VARCHAR},
+      NOTE = NOTE || ';\n\r' || #{note,jdbcType=VARCHAR}
+    where ACTUAL_FIRST_NO = #{actualFirstNo,jdbcType=VARCHAR}
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.meterwork.meterworkcaractualfirst.model.MeterWorkCarActualFirst">
+    update METER_WORK_CAR_ACTUAL_FIRST
+    <set>
+      <if test="predictionNo != null">
+        PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR},
+      </if>
+      <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="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="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="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="meterWeight != null">
+        METER_WEIGHT = #{meterWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="addWeight != null">
+        ADD_WEIGHT = #{addWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="meterNum != null">
+        METER_NUM = #{meterNum,jdbcType=DECIMAL},
+      </if>
+      <if test="weightType != null">
+        WEIGHT_TYPE = #{weightType,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="baseSpotNo != null">
+        BASE_SPOT_NO = #{baseSpotNo,jdbcType=VARCHAR},
+      </if>
+      <if test="baseSpotName != null">
+        BASE_SPOT_NAME = #{baseSpotName,jdbcType=VARCHAR},
+      </if>
+      <if test="meterClass != null">
+        METER_CLASS = #{meterClass,jdbcType=VARCHAR},
+      </if>
+      <if test="meterGroup != null">
+        METER_GROUP = #{meterGroup,jdbcType=VARCHAR},
+      </if>
+      <if test="memo != null">
+        MEMO = #{memo,jdbcType=VARCHAR},
+      </if>
+      <if test="valueFlag != null">
+        VALUE_FLAG = #{valueFlag,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="checkFlag != null">
+        CHECK_FLAG = #{checkFlag,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="meterMode != null">
+        METER_MODE = #{meterMode,jdbcType=VARCHAR},
+      </if>
+      <if test="meterReasonNo != null">
+        METER_REASON_NO = #{meterReasonNo,jdbcType=VARCHAR},
+      </if>
+      <if test="meterReasonName != null">
+        METER_REASON_NAME = #{meterReasonName,jdbcType=VARCHAR},
+      </if>
+      <if test="loadEndTime != null">
+        LOAD_END_TIME = #{loadEndTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="addWgtNo != null">
+        ADD_WGT_NO = #{addWgtNo,jdbcType=VARCHAR},
+      </if>
+      <if test="addWgtPk != null">
+        ADD_WGT_PK = #{addWgtPk,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="meterPierName != null">
+        METER_PIER_NAME = #{meterPierName,jdbcType=VARCHAR},
+      </if>
+      <if test="meterPierNo != null">
+        METER_PIER_NO = #{meterPierNo,jdbcType=VARCHAR},
+      </if>
+      <if test="shipNo != null">
+        SHIP_NO = #{shipNo,jdbcType=VARCHAR},
+      </if>
+      <if test="note != null">
+        NOTE = NOTE || ';\n\r' || #{note,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where ACTUAL_FIRST_NO = #{actualFirstNo,jdbcType=VARCHAR}
+  </update>
+  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
+    <include refid="select"/>
+    where ACTUAL_FIRST_NO = #{actualFirstNo,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_CAR_ACTUAL_FIRST 
+      (ACTUAL_FIRST_NO, 
+      PREDICTION_NO, NOTICE_NO, CAR_NO, 
+      TRAILER_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, 
+      SHIPMENT_GROSS_WEIGHT, SHIPMENT_NET_WEIGHT, 
+      SHIPMENT_NUM, 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, RAILWAY_NO, 
+      METER_PROCESS_NO, METER_PROCESS_EDITION_NO, 
+      METER_WEIGHT, ADD_WEIGHT, METER_NUM, 
+      WEIGHT_TYPE, CREATE_MAN_NO, CREATE_MAN_NAME, 
+      CREATE_TIME, BASE_SPOT_NO, BASE_SPOT_NAME, 
+      METER_CLASS, METER_GROUP, MEMO, 
+      VALUE_FLAG, UPDATE_MAN_NO, UPDATE_MAN_NAME, 
+      UPDATE_TIME, CHECK_FLAG, CHECK_MAN_NO, 
+      CHECK_MAN_NAME, CHECK_TIME, METER_MODE, 
+      METER_REASON_NO, METER_REASON_NAME, 
+      LOAD_END_TIME, ADD_WGT_NO, ADD_WGT_PK, 
+      LIMS_SAMPLING_FLAG, HEAT_NO, METER_PIER_NAME, 
+      METER_PIER_NO, SHIP_NO, NOTE
+      )
+    ( <foreach collection="list" item="item" separator="union all"> 
+   select  
+      #{item.actualFirstNo,jdbcType=VARCHAR}, 
+      #{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.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.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.railwayNo,jdbcType=VARCHAR}, 
+      #{item.meterProcessNo,jdbcType=VARCHAR}, #{item.meterProcessEditionNo,jdbcType=VARCHAR}, 
+      #{item.meterWeight,jdbcType=DECIMAL}, #{item.addWeight,jdbcType=DECIMAL}, #{item.meterNum,jdbcType=DECIMAL}, 
+      #{item.weightType,jdbcType=VARCHAR}, #{item.createManNo,jdbcType=VARCHAR}, #{item.createManName,jdbcType=VARCHAR}, 
+      #{item.createTime,jdbcType=TIMESTAMP}, #{item.baseSpotNo,jdbcType=VARCHAR}, #{item.baseSpotName,jdbcType=VARCHAR}, 
+      #{item.meterClass,jdbcType=VARCHAR}, #{item.meterGroup,jdbcType=VARCHAR}, #{item.memo,jdbcType=VARCHAR}, 
+      #{item.valueFlag,jdbcType=VARCHAR}, #{item.updateManNo,jdbcType=VARCHAR}, #{item.updateManName,jdbcType=VARCHAR}, 
+      #{item.updateTime,jdbcType=TIMESTAMP}, #{item.checkFlag,jdbcType=VARCHAR}, #{item.checkManNo,jdbcType=VARCHAR}, 
+      #{item.checkManName,jdbcType=VARCHAR}, #{item.checkTime,jdbcType=TIMESTAMP}, #{item.meterMode,jdbcType=VARCHAR}, 
+      #{item.meterReasonNo,jdbcType=VARCHAR}, #{item.meterReasonName,jdbcType=VARCHAR}, 
+      #{item.loadEndTime,jdbcType=TIMESTAMP}, #{item.addWgtNo,jdbcType=VARCHAR}, #{item.addWgtPk,jdbcType=VARCHAR}, 
+      #{item.limsSamplingFlag,jdbcType=VARCHAR}, #{item.heatNo,jdbcType=VARCHAR}, #{item.meterPierName,jdbcType=VARCHAR}, 
+      #{item.meterPierNo,jdbcType=VARCHAR}, #{item.shipNo,jdbcType=VARCHAR}, #{item.note,jdbcType=VARCHAR}
+       from dual  
+   </foreach> )
+  </insert>
+  <update id="batchUpdate" parameterType="java.util.List">
+     update METER_WORK_CAR_ACTUAL_FIRST
+     set
+       ACTUAL_FIRST_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.actualFirstNo,jdbcType=VARCHAR}
+       </foreach>
+       ,PREDICTION_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.predictionNo,jdbcType=VARCHAR}
+       </foreach>
+       ,NOTICE_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.noticeNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CAR_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.carNo,jdbcType=VARCHAR}
+       </foreach>
+       ,TRAILER_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.trailerNo,jdbcType=VARCHAR}
+       </foreach>
+       ,MATTER_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.matterNo,jdbcType=VARCHAR}
+       </foreach>
+       ,MATTER_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.matterName,jdbcType=VARCHAR}
+       </foreach>
+       ,CONTRACT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.contractNo,jdbcType=VARCHAR}
+       </foreach>
+       ,BATCH_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.batchNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CUSTOMER_SUPPLIER_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.customerSupplierNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CUSTOMER_SUPPLIER_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.customerSupplierName,jdbcType=VARCHAR}
+       </foreach>
+       ,FORWARDING_UNIT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.forwardingUnitNo,jdbcType=VARCHAR}
+       </foreach>
+       ,FORWARDING_UNIT_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.forwardingUnitName,jdbcType=VARCHAR}
+       </foreach>
+       ,RECEIVING_UINT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.receivingUintNo,jdbcType=VARCHAR}
+       </foreach>
+       ,RECEIVING_UINT_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.receivingUintName,jdbcType=VARCHAR}
+       </foreach>
+       ,MATERIAL_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.materialNo,jdbcType=VARCHAR}
+       </foreach>
+       ,MATERIAL_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.materialName,jdbcType=VARCHAR}
+       </foreach>
+       ,SPEC_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.specNo,jdbcType=VARCHAR}
+       </foreach>
+       ,SPEC_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.specName,jdbcType=VARCHAR}
+       </foreach>
+       ,SHIPMENT_GROSS_WEIGHT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.shipmentGrossWeight,jdbcType=DECIMAL}
+       </foreach>
+       ,SHIPMENT_NET_WEIGHT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.shipmentNetWeight,jdbcType=DECIMAL}
+       </foreach>
+       ,SHIPMENT_NUM=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.shipmentNum,jdbcType=DECIMAL}
+       </foreach>
+       ,BIND_CARD_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.bindCardNo,jdbcType=VARCHAR}
+       </foreach>
+       ,LOAD_POINT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.loadPointNo,jdbcType=VARCHAR}
+       </foreach>
+       ,LOAD_POINT_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.loadPointName,jdbcType=VARCHAR}
+       </foreach>
+       ,SAMPLE_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.sampleNo,jdbcType=VARCHAR}
+       </foreach>
+       ,SAMPLE_VOUCHER=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.sampleVoucher,jdbcType=VARCHAR}
+       </foreach>
+       ,CARRIER_UNIT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.carrierUnitNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CARRIER_UNIT_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.carrierUnitName,jdbcType=VARCHAR}
+       </foreach>
+       ,PREDICTION_TYPE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.predictionType,jdbcType=VARCHAR}
+       </foreach>
+       ,PREDICTION_COMBINATION=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.predictionCombination,jdbcType=VARCHAR}
+       </foreach>
+       ,METER_TYPE_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterTypeNo,jdbcType=VARCHAR}
+       </foreach>
+       ,METER_TYPE_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterTypeName,jdbcType=VARCHAR}
+       </foreach>
+       ,RAILWAY_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.railwayNo,jdbcType=VARCHAR}
+       </foreach>
+       ,METER_PROCESS_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterProcessNo,jdbcType=VARCHAR}
+       </foreach>
+       ,METER_PROCESS_EDITION_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterProcessEditionNo,jdbcType=VARCHAR}
+       </foreach>
+       ,METER_WEIGHT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterWeight,jdbcType=DECIMAL}
+       </foreach>
+       ,ADD_WEIGHT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.addWeight,jdbcType=DECIMAL}
+       </foreach>
+       ,METER_NUM=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterNum,jdbcType=DECIMAL}
+       </foreach>
+       ,WEIGHT_TYPE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.weightType,jdbcType=VARCHAR}
+       </foreach>
+       ,CREATE_MAN_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CREATE_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
+       </foreach>
+       ,CREATE_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,BASE_SPOT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.baseSpotNo,jdbcType=VARCHAR}
+       </foreach>
+       ,BASE_SPOT_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.baseSpotName,jdbcType=VARCHAR}
+       </foreach>
+       ,METER_CLASS=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterClass,jdbcType=VARCHAR}
+       </foreach>
+       ,METER_GROUP=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterGroup,jdbcType=VARCHAR}
+       </foreach>
+       ,MEMO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.memo,jdbcType=VARCHAR}
+       </foreach>
+       ,VALUE_FLAG=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.valueFlag,jdbcType=VARCHAR}
+       </foreach>
+       ,UPDATE_MAN_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=VARCHAR}
+       </foreach>
+       ,UPDATE_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.updateManName,jdbcType=VARCHAR}
+       </foreach>
+       ,UPDATE_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,CHECK_FLAG=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.checkFlag,jdbcType=VARCHAR}
+       </foreach>
+       ,CHECK_MAN_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.checkManNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CHECK_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.checkManName,jdbcType=VARCHAR}
+       </foreach>
+       ,CHECK_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.checkTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,METER_MODE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterMode,jdbcType=VARCHAR}
+       </foreach>
+       ,METER_REASON_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterReasonNo,jdbcType=VARCHAR}
+       </foreach>
+       ,METER_REASON_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterReasonName,jdbcType=VARCHAR}
+       </foreach>
+       ,LOAD_END_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.loadEndTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,ADD_WGT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.addWgtNo,jdbcType=VARCHAR}
+       </foreach>
+       ,ADD_WGT_PK=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.addWgtPk,jdbcType=VARCHAR}
+       </foreach>
+       ,LIMS_SAMPLING_FLAG=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.limsSamplingFlag,jdbcType=VARCHAR}
+       </foreach>
+       ,HEAT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.heatNo,jdbcType=VARCHAR}
+       </foreach>
+       ,METER_PIER_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterPierName,jdbcType=VARCHAR}
+       </foreach>
+       ,METER_PIER_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterPierNo,jdbcType=VARCHAR}
+       </foreach>
+       ,SHIP_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.shipNo,jdbcType=VARCHAR}
+       </foreach>
+       ,NOTE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then NOTE || ';\n\r' || #{item.note,jdbcType=VARCHAR}
+       </foreach>
+     where ACTUAL_FIRST_NO in 
+     <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
+    #{item.actualFirstNo,jdbcType=VARCHAR}
+     </foreach> 
+  </update>
+  <delete id="batchDelete" parameterType="java.util.List">
+    delete from METER_WORK_CAR_ACTUAL_FIRST
+    where ACTUAL_FIRST_NO in 
+    <foreach collection="list" item="id" open="(" close=")" separator=",">
+      #{id}
+    </foreach>
+  </delete>
+  <!-- 友情提示!!!-->
     <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
     <!-- 友情提示!!!-->
     <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->

+ 13 - 0
src/main/java/com/steerinfo/meterwork/meterworkcaractualfirst/model/MeterWorkCarActualFirst.java

@@ -410,6 +410,12 @@ public class MeterWorkCarActualFirst implements IBasePO<String> {
     @ApiModelProperty(value="船号",required=false)
     private String shipNo;
 
+    /**
+     * 停用,启用,修改等原因(NOTE,VARCHAR,500)
+     */
+    @ApiModelProperty(value="停用,启用,修改等原因",required=false)
+    private String note;
+
     private static final long serialVersionUID = 1L;
 
     @Override
@@ -958,6 +964,12 @@ public class MeterWorkCarActualFirst implements IBasePO<String> {
         this.shipNo = shipNo == null ? null : shipNo.trim();
     }
 
+    public String getNote() {
+        return note;
+    }
+
+    public void setNote(String note) { this.note = note == null ? null : note.trim(); }
+
     @Override
     public String toString() {
         StringBuilder sb = new StringBuilder();
@@ -1031,6 +1043,7 @@ public class MeterWorkCarActualFirst implements IBasePO<String> {
         sb.append(", meterPierName=").append(meterPierName);
         sb.append(", meterPierNo=").append(meterPierNo);
         sb.append(", shipNo=").append(shipNo);
+        sb.append(", note=").append(note);
         sb.append(", serialVersionUID=").append(serialVersionUID);
         sb.append("]");
         return sb.toString();