xieb 4 лет назад
Родитель
Сommit
ddcf193774
38 измененных файлов с 9471 добавлено и 166 удалено
  1. 1 1
      src/main/java/com/steerinfo/baseinfo/meterbasecalibranumrel/controller/MeterBaseCalibraNumRelController.java
  2. 31 3
      src/main/java/com/steerinfo/baseinfo/meterbasecalibranumrel/service/impl/MeterBaseCalibraNumRelServiceImpl.java
  3. 1 1
      src/main/java/com/steerinfo/baseinfo/meterbasecalibrarelation/controller/MeterBaseCalibraRelationController.java
  4. 90 69
      src/main/java/com/steerinfo/baseinfo/meterbasecalibrarelation/service/impl/MeterBaseCalibraRelationServiceImpl.java
  5. 19 2
      src/main/java/com/steerinfo/baseinfo/meterbasecalibrationnum/controller/MeterBaseCalibrationNumController.java
  6. 2 0
      src/main/java/com/steerinfo/baseinfo/meterbasecalibrationnum/mapper/MeterBaseCalibrationNumMapper.java
  7. 44 9
      src/main/java/com/steerinfo/baseinfo/meterbasecalibrationnum/mapper/MeterBaseCalibrationNumMapper.xml
  8. 15 0
      src/main/java/com/steerinfo/baseinfo/meterbasecalibrationnum/model/MeterBaseCalibrationNum.java
  9. 2 0
      src/main/java/com/steerinfo/baseinfo/meterbasecalibrationnum/service/IMeterBaseCalibrationNumService.java
  10. 49 29
      src/main/java/com/steerinfo/baseinfo/meterbasecalibrationnum/service/impl/MeterBaseCalibrationNumServiceImpl.java
  11. 17 0
      src/main/java/com/steerinfo/baseinfo/meterbasecalibrationtime/controller/MeterBaseCalibrationTimeController.java
  12. 1 0
      src/main/java/com/steerinfo/baseinfo/meterbasecalibrationtime/mapper/MeterBaseCalibrationTimeMapper.java
  13. 38 9
      src/main/java/com/steerinfo/baseinfo/meterbasecalibrationtime/mapper/MeterBaseCalibrationTimeMapper.xml
  14. 15 0
      src/main/java/com/steerinfo/baseinfo/meterbasecalibrationtime/model/MeterBaseCalibrationTime.java
  15. 2 0
      src/main/java/com/steerinfo/baseinfo/meterbasecalibrationtime/service/IMeterBaseCalibrationTimeService.java
  16. 27 6
      src/main/java/com/steerinfo/baseinfo/meterbasecalibrationtime/service/impl/MeterBaseCalibrationTimeServiceImpl.java
  17. 4 4
      src/main/java/com/steerinfo/meterwork/meterworkcaractual/controller/MeterWorkCarActualController.java
  18. 3 3
      src/main/java/com/steerinfo/meterwork/meterworkcaractual/mapper/MeterWorkCarActualMapper.xml
  19. 2 2
      src/main/java/com/steerinfo/meterwork/meterworkcaractual/service/IMeterWorkCarActualService.java
  20. 53 28
      src/main/java/com/steerinfo/meterwork/meterworkcaractual/service/impl/MeterWorkCarActualServiceImpl.java
  21. 110 0
      src/main/java/com/steerinfo/meterwork/meterworkhookactfirst/controller/MeterWorkHookActFirstController.java
  22. 10 0
      src/main/java/com/steerinfo/meterwork/meterworkhookactfirst/mapper/MeterWorkHookActFirstMapper.java
  23. 1869 0
      src/main/java/com/steerinfo/meterwork/meterworkhookactfirst/mapper/MeterWorkHookActFirstMapper.xml
  24. 1068 0
      src/main/java/com/steerinfo/meterwork/meterworkhookactfirst/model/MeterWorkHookActFirst.java
  25. 23 0
      src/main/java/com/steerinfo/meterwork/meterworkhookactfirst/service/IMeterWorkHookActFirstService.java
  26. 36 0
      src/main/java/com/steerinfo/meterwork/meterworkhookactfirst/service/impl/MeterWorkHookActFirstServiceImpl.java
  27. 110 0
      src/main/java/com/steerinfo/meterwork/meterworkhookactual/controller/MeterWorkHookActualController.java
  28. 10 0
      src/main/java/com/steerinfo/meterwork/meterworkhookactual/mapper/MeterWorkHookActualMapper.java
  29. 2043 0
      src/main/java/com/steerinfo/meterwork/meterworkhookactual/mapper/MeterWorkHookActualMapper.xml
  30. 1173 0
      src/main/java/com/steerinfo/meterwork/meterworkhookactual/model/MeterWorkHookActual.java
  31. 23 0
      src/main/java/com/steerinfo/meterwork/meterworkhookactual/service/IMeterWorkHookActualService.java
  32. 36 0
      src/main/java/com/steerinfo/meterwork/meterworkhookactual/service/impl/MeterWorkHookActualServiceImpl.java
  33. 110 0
      src/main/java/com/steerinfo/pretrack/prehookscale/controller/PreHookScaleController.java
  34. 10 0
      src/main/java/com/steerinfo/pretrack/prehookscale/mapper/PreHookScaleMapper.java
  35. 1507 0
      src/main/java/com/steerinfo/pretrack/prehookscale/mapper/PreHookScaleMapper.xml
  36. 858 0
      src/main/java/com/steerinfo/pretrack/prehookscale/model/PreHookScale.java
  37. 23 0
      src/main/java/com/steerinfo/pretrack/prehookscale/service/IPreHookScaleService.java
  38. 36 0
      src/main/java/com/steerinfo/pretrack/prehookscale/service/impl/PreHookScaleServiceImpl.java

+ 1 - 1
src/main/java/com/steerinfo/baseinfo/meterbasecalibranumrel/controller/MeterBaseCalibraNumRelController.java

@@ -165,7 +165,7 @@ throw new MarkerMetException(500, "操作异常!!");
         } catch (Exception e) {
         } catch (Exception e) {
             e.printStackTrace();
             e.printStackTrace();
             TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
             TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
-            return failed(null, "操作异常,请确认!");
+            return failed(null, "操作异常,请确认:"+ e.getMessage());
         }
         }
         return success();
         return success();
     }
     }

+ 31 - 3
src/main/java/com/steerinfo/baseinfo/meterbasecalibranumrel/service/impl/MeterBaseCalibraNumRelServiceImpl.java

@@ -5,11 +5,12 @@ import com.steerinfo.baseinfo.meterbasecalibranumrel.model.MeterBaseCalibraNumRe
 import com.steerinfo.baseinfo.meterbasecalibranumrel.service.IMeterBaseCalibraNumRelService;
 import com.steerinfo.baseinfo.meterbasecalibranumrel.service.IMeterBaseCalibraNumRelService;
 import com.steerinfo.baseinfo.meterbasecalibrarelation.model.MeterBaseCalibraRelation;
 import com.steerinfo.baseinfo.meterbasecalibrarelation.model.MeterBaseCalibraRelation;
 import com.steerinfo.baseinfo.meterbasecalibrationnum.model.MeterBaseCalibrationNum;
 import com.steerinfo.baseinfo.meterbasecalibrationnum.model.MeterBaseCalibrationNum;
-import com.steerinfo.baseinfo.meterbasecalibrationtime.model.MeterBaseCalibrationTime;
+import com.steerinfo.baseinfo.meterbasecalibrationnum.service.impl.MeterBaseCalibrationNumServiceImpl;
 import com.steerinfo.baseinfo.meterbasespotinfo.model.MeterBaseSpotInfo;
 import com.steerinfo.baseinfo.meterbasespotinfo.model.MeterBaseSpotInfo;
 import com.steerinfo.framework.mapper.IBaseMapper;
 import com.steerinfo.framework.mapper.IBaseMapper;
 import com.steerinfo.framework.service.impl.BaseServiceImpl;
 import com.steerinfo.framework.service.impl.BaseServiceImpl;
 import com.steerinfo.framework.utils.base.StringUtils;
 import com.steerinfo.framework.utils.base.StringUtils;
+import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.interceptor.TransactionAspectSupport;
 import org.springframework.transaction.interceptor.TransactionAspectSupport;
 import org.springframework.util.Assert;
 import org.springframework.util.Assert;
@@ -45,6 +46,12 @@ public class MeterBaseCalibraNumRelServiceImpl extends BaseServiceImpl<MeterBase
         return meterBaseCalibraNumRelMapper;
         return meterBaseCalibraNumRelMapper;
     }
     }
 
 
+    @Autowired
+    private MeterBaseCalibrationNumServiceImpl meterBaseCalibrationNumService;
+
+    //校称重量是否绑定标志
+    private String flag;
+
     @Override
     @Override
     public String checkandadd(List<MeterBaseCalibraNumRel> models)
     public String checkandadd(List<MeterBaseCalibraNumRel> models)
     {
     {
@@ -79,6 +86,14 @@ public class MeterBaseCalibraNumRelServiceImpl extends BaseServiceImpl<MeterBase
                 model.setUpdateTime(new Date());
                 model.setUpdateTime(new Date());
 
 
                 meterBaseCalibraNumRelMapper.updateByPrimaryKey(model);
                 meterBaseCalibraNumRelMapper.updateByPrimaryKey(model);
+
+                List<MeterBaseCalibraNumRel> mbCalibNumRels=meterBaseCalibraNumRelMapper.selectByCalibWeightNo(model.getCalibrationNumNo());
+                if(mbCalibNumRels.size() < 1){
+                    //设置flag="0",解除计量点和校称时间的绑定
+                    flag = "0";
+                    String key2 = meterBaseCalibrationNumService.updateStateByPrimaryKey(model.getCalibrationNumNo(),flag);
+                    Assert.isTrue((key2 == null || key2.equals("")),"更新关联表错误"+key2);
+                }
             }
             }
         } catch (Exception ex) {
         } catch (Exception ex) {
             ex.printStackTrace();
             ex.printStackTrace();
@@ -98,8 +113,18 @@ public class MeterBaseCalibraNumRelServiceImpl extends BaseServiceImpl<MeterBase
         Assert.isTrue(StringUtils.isNotBlank(mbSpotInfo.getBaseSpotName()),"计量点名称不能为空!");
         Assert.isTrue(StringUtils.isNotBlank(mbSpotInfo.getBaseSpotName()),"计量点名称不能为空!");
         mbCalibrationNumRel.setBaseSpotName(mbSpotInfo.getBaseSpotName());
         mbCalibrationNumRel.setBaseSpotName(mbSpotInfo.getBaseSpotName());
 
 
+        if (mbCalibrationNum == null){
+            return "请选择校称重量!";
+        }
+        Integer validFlag = Integer.parseInt(mbCalibrationNum.getValidFlag());
+        //if (validFlag == 0){
+        //    return "校称重量不能选择已经废弃的数据,请选择状态是'启用'的校称时间";
+        //}
+        Assert.isTrue(!(validFlag == 0),"校称重量不能选择已经废弃的数据,请选择状态是'启用'的校称时间");
+
         Assert.isTrue(StringUtils.isNotBlank(mbCalibrationNum.getCalibrationNumNo()),"校称重量编号不能为空,请选择一条校称重量配置数据!");
         Assert.isTrue(StringUtils.isNotBlank(mbCalibrationNum.getCalibrationNumNo()),"校称重量编号不能为空,请选择一条校称重量配置数据!");
         mbCalibrationNumRel.setCalibrationNumNo(mbCalibrationNum.getCalibrationNumNo());
         mbCalibrationNumRel.setCalibrationNumNo(mbCalibrationNum.getCalibrationNumNo());
+        flag = "1";
         //Assert.isTrue(!Objects.isNull(mbCalibrationNum.getCalibrationNum()),"校称有效次数不能为空!");
         //Assert.isTrue(!Objects.isNull(mbCalibrationNum.getCalibrationNum()),"校称有效次数不能为空!");
         Assert.isTrue(StringUtils.isNotBlank(mbCalibrationNum.getCalibrationNum().toString()),"校称有效次数不能为空!");
         Assert.isTrue(StringUtils.isNotBlank(mbCalibrationNum.getCalibrationNum().toString()),"校称有效次数不能为空!");
         mbCalibrationNumRel.setCalibrationNum(mbCalibrationNum.getCalibrationNum());
         mbCalibrationNumRel.setCalibrationNum(mbCalibrationNum.getCalibrationNum());
@@ -114,9 +139,9 @@ public class MeterBaseCalibraNumRelServiceImpl extends BaseServiceImpl<MeterBase
         Assert.isTrue(StringUtils.isNotBlank(mbCalibrationNum.getCalibrationTypeName()),"校称类型名称不能为空!");
         Assert.isTrue(StringUtils.isNotBlank(mbCalibrationNum.getCalibrationTypeName()),"校称类型名称不能为空!");
         mbCalibrationNumRel.setCalibrationTypeName(mbCalibrationNum.getCalibrationTypeName());
         mbCalibrationNumRel.setCalibrationTypeName(mbCalibrationNum.getCalibrationTypeName());
         if(mbCalibrationNum.getCalibrationTypeName().equals("互检")){
         if(mbCalibrationNum.getCalibrationTypeName().equals("互检")){
-            Assert.isTrue(StringUtils.isNotBlank(mbCalibrationNum.getMutualStrategyNo()),"校称类型为“互检”情况下,必须选择校称策略,校称策略编码不能为空!");
+            Assert.isTrue(StringUtils.isNotBlank(mbCalibrationNum.getMutualStrategyNo()),"校称类型为“互检”情况下,校称策略编码不能为空!");
             mbCalibrationNumRel.setMutualStrategyNo(mbCalibrationNum.getMutualStrategyNo());
             mbCalibrationNumRel.setMutualStrategyNo(mbCalibrationNum.getMutualStrategyNo());
-            Assert.isTrue(StringUtils.isNotBlank(mbCalibrationNum.getMutualStrategyName()),"校称类型为“互检”情况下,必须选择校称策略,校称策略名称不能为空!");
+            Assert.isTrue(StringUtils.isNotBlank(mbCalibrationNum.getMutualStrategyName()),"校称类型为“互检”情况下,校称策略名称不能为空!");
             mbCalibrationNumRel.setMutualStrategyName(mbCalibrationNum.getMutualStrategyName());
             mbCalibrationNumRel.setMutualStrategyName(mbCalibrationNum.getMutualStrategyName());
         }
         }
         Assert.isTrue(StringUtils.isNotBlank(mbCalibrationNum.getUpWeight().toString()),"可允许的重量上限不能为空!");
         Assert.isTrue(StringUtils.isNotBlank(mbCalibrationNum.getUpWeight().toString()),"可允许的重量上限不能为空!");
@@ -135,6 +160,9 @@ public class MeterBaseCalibraNumRelServiceImpl extends BaseServiceImpl<MeterBase
 
 
         meterBaseCalibraNumRelMapper.insertSelective(mbCalibrationNumRel);
         meterBaseCalibraNumRelMapper.insertSelective(mbCalibrationNumRel);
 
 
+        String key2 = meterBaseCalibrationNumService.updateStateByPrimaryKey(mbCalibrationNum.getCalibrationNumNo(),flag);
+        Assert.isTrue((key2 == null || key2.equals("")),"更新关联表错误"+key2);
+
         return "";
         return "";
     }
     }
 
 

+ 1 - 1
src/main/java/com/steerinfo/baseinfo/meterbasecalibrarelation/controller/MeterBaseCalibraRelationController.java

@@ -198,7 +198,7 @@ throw new MarkerMetException(500, "操作异常!!");
         } catch (Exception e) {
         } catch (Exception e) {
             e.printStackTrace();
             e.printStackTrace();
             TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
             TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
-            return failed(null, "操作异常,请确认!");
+            return failed(null, "操作异常,请确认!"+e.getMessage());
         }
         }
         return success();
         return success();
     }
     }

+ 90 - 69
src/main/java/com/steerinfo/baseinfo/meterbasecalibrarelation/service/impl/MeterBaseCalibraRelationServiceImpl.java

@@ -2,6 +2,7 @@ package com.steerinfo.baseinfo.meterbasecalibrarelation.service.impl;
 
 
 
 
 import com.steerinfo.baseinfo.meterbasecalibrationtime.model.MeterBaseCalibrationTime;
 import com.steerinfo.baseinfo.meterbasecalibrationtime.model.MeterBaseCalibrationTime;
+import com.steerinfo.baseinfo.meterbasecalibrationtime.service.impl.MeterBaseCalibrationTimeServiceImpl;
 import com.steerinfo.baseinfo.meterbasespotinfo.model.MeterBaseSpotInfo;
 import com.steerinfo.baseinfo.meterbasespotinfo.model.MeterBaseSpotInfo;
 import com.steerinfo.framework.mapper.IBaseMapper;
 import com.steerinfo.framework.mapper.IBaseMapper;
 import com.steerinfo.framework.service.impl.BaseServiceImpl;
 import com.steerinfo.framework.service.impl.BaseServiceImpl;
@@ -40,11 +41,17 @@ public class MeterBaseCalibraRelationServiceImpl extends BaseServiceImpl<MeterBa
     @Autowired
     @Autowired
     private MeterBaseCalibraRelationMapper meterBaseCalibraRelationMapper;
     private MeterBaseCalibraRelationMapper meterBaseCalibraRelationMapper;
 
 
+    @Autowired
+    private MeterBaseCalibrationTimeServiceImpl meterBaseCalibrationTimeService;
+
     @Override
     @Override
     protected IBaseMapper<MeterBaseCalibraRelation, String> getMapper() {
     protected IBaseMapper<MeterBaseCalibraRelation, String> getMapper() {
         return meterBaseCalibraRelationMapper;
         return meterBaseCalibraRelationMapper;
     }
     }
 
 
+    //新增数据标记位
+    private  String flag;
+
     @Override
     @Override
     public String checkandadd(List<MeterBaseCalibraRelation> models)
     public String checkandadd(List<MeterBaseCalibraRelation> models)
     {
     {
@@ -70,79 +77,85 @@ public class MeterBaseCalibraRelationServiceImpl extends BaseServiceImpl<MeterBa
     @Override
     @Override
     public String addSpotTime(MeterBaseCalibrationTime mbCalibrationTime, MeterBaseSpotInfo mbSpotInfo) {
     public String addSpotTime(MeterBaseCalibrationTime mbCalibrationTime, MeterBaseSpotInfo mbSpotInfo) {
 
 
-        MeterBaseCalibraRelation mtCalibraRelation = new MeterBaseCalibraRelation();
-
-        if (mbSpotInfo == null ) {
-            return "请选择计量点";
-        }
-        if (StringUtils.isEmpty(mbSpotInfo.getBaseSpotNo())) {
-            return "计量点编号不能为空";
-        }else{
-            mtCalibraRelation.setBaseSpotNo(mbSpotInfo.getBaseSpotNo());
-        }
-        if (StringUtils.isEmpty(mbSpotInfo.getBaseSpotName())) {
-            return "计量点名称不能为空";
-        }else{
-            mtCalibraRelation.setBaseSpotName(mbSpotInfo.getBaseSpotName());
-        }
-
+        try {
+            MeterBaseCalibraRelation mtCalibraRelation = new MeterBaseCalibraRelation();
 
 
-        if (mbCalibrationTime == null){
-            return "请选择校称时间标准";
-        }
-        Integer validFlag = Integer.parseInt(mbCalibrationTime.getValidFlag());
-        if (validFlag == 0){
-            return "校称时间不能选择已经废弃的数据,请选择状态是'启用'的校称时间";
-        }
-        if (StringUtils.isEmpty(mbCalibrationTime.getCalibrationTimeNo())) {
-            return "校称时间编号不能为空";
-        }else{
-            mtCalibraRelation.setCalibrationTimeNo(mbCalibrationTime.getCalibrationTimeNo());
-        }
-        if (StringUtils.isEmpty(mbCalibrationTime.getCalibrationTimeUnit())) {
-            return "校称时间单位不能为空";
-        }else{
-            mtCalibraRelation.setCalibrationTimeUnit(mbCalibrationTime.getCalibrationTimeUnit());
-        }
-        if (mbCalibrationTime.getStartTime() == null) {
-            System.out.println("#################################3");
-            System.out.println(mbCalibrationTime.getStartTime());
-            return "校称开始时间不能为空";
-        }else{
-            mtCalibraRelation.setStartTime(mbCalibrationTime.getStartTime());
-        }
-        if (mbCalibrationTime.getEndTime() == null) {
-            return "校称结束时间不能为空";
-        }else{
-            mtCalibraRelation.setEndTime(mbCalibrationTime.getEndTime());
-        }
-        if (mbCalibrationTime.getDayNum() == null) {
-            return "校称天数不能为空";
-        }else{
-            mtCalibraRelation.setDayNum(mbCalibrationTime.getDayNum());
-        }
-        if (StringUtils.isEmpty(mbCalibrationTime.getCalibrationTypeNo())) {
-            return "校称类型编号不能为空";
-        }else{
-            mtCalibraRelation.setCalibrationTypeNo(mbCalibrationTime.getCalibrationTypeNo());
-        }
-        if (StringUtils.isEmpty(mbCalibrationTime.getCalibrationTypeName())) {
-            return "校称类型名称不能为空";
-        }else{
-            mtCalibraRelation.setCalibrationTypeName(mbCalibrationTime.getCalibrationTypeName());
-        }
+            if (mbSpotInfo == null ) {
+                return "请选择计量点";
+            }
+            if (StringUtils.isEmpty(mbSpotInfo.getBaseSpotNo())) {
+                return "计量点编号不能为空";
+            }else{
+                mtCalibraRelation.setBaseSpotNo(mbSpotInfo.getBaseSpotNo());
+            }
+            if (StringUtils.isEmpty(mbSpotInfo.getBaseSpotName())) {
+                return "计量点名称不能为空";
+            }else{
+                mtCalibraRelation.setBaseSpotName(mbSpotInfo.getBaseSpotName());
+            }
 
 
-        String no = meterBaseCalibraRelationMapper.GetNewID();
-        //mtCalibraRelation.setId(new SimpleDateFormat("yyyyMMdd").format(new Date()) +no);
-        mtCalibraRelation.setRelationNo(new SimpleDateFormat("yyyyMMdd").format(new Date()) +no);
-        mtCalibraRelation.setValidFlag("1");
-        ////设置创建人、创建时间
-        mtCalibraRelation.setCreateManNo(mbCalibrationTime.getCreateManNo());
-        mtCalibraRelation.setCreateManName(mbCalibrationTime.getCreateManName());
-        mtCalibraRelation.setCreateTime(new Date());
 
 
-        meterBaseCalibraRelationMapper.insertSelective(mtCalibraRelation);
+            if (mbCalibrationTime == null){
+                return "请选择校称时间标准";
+            }
+            Integer validFlag = Integer.parseInt(mbCalibrationTime.getValidFlag());
+            if (validFlag == 0){
+                return "校称时间不能选择已经废弃的数据,请选择状态是'启用'的校称时间";
+            }
+            if (StringUtils.isEmpty(mbCalibrationTime.getCalibrationTimeNo())) {
+                return "校称时间编号不能为空";
+            }else{
+                mtCalibraRelation.setCalibrationTimeNo(mbCalibrationTime.getCalibrationTimeNo());
+                flag = "1"; //flag = "1"是绑定校称时间,当校称时间与计量点绑定的时候不允许修改校称时间
+            }
+            if (StringUtils.isEmpty(mbCalibrationTime.getCalibrationTimeUnit())) {
+                return "校称时间单位不能为空";
+            }else{
+                mtCalibraRelation.setCalibrationTimeUnit(mbCalibrationTime.getCalibrationTimeUnit());
+            }
+            if (mbCalibrationTime.getStartTime() == null) {
+                return "校称开始时间不能为空";
+            }else{
+                mtCalibraRelation.setStartTime(mbCalibrationTime.getStartTime());
+            }
+            if (mbCalibrationTime.getEndTime() == null) {
+                return "校称结束时间不能为空";
+            }else{
+                mtCalibraRelation.setEndTime(mbCalibrationTime.getEndTime());
+            }
+            if (mbCalibrationTime.getDayNum() == null) {
+                return "校称天数不能为空";
+            }else{
+                mtCalibraRelation.setDayNum(mbCalibrationTime.getDayNum());
+            }
+            if (StringUtils.isEmpty(mbCalibrationTime.getCalibrationTypeNo())) {
+                return "校称类型编号不能为空";
+            }else{
+                mtCalibraRelation.setCalibrationTypeNo(mbCalibrationTime.getCalibrationTypeNo());
+            }
+            if (StringUtils.isEmpty(mbCalibrationTime.getCalibrationTypeName())) {
+                return "校称类型名称不能为空";
+            }else{
+                mtCalibraRelation.setCalibrationTypeName(mbCalibrationTime.getCalibrationTypeName());
+            }
 
 
+            String no = meterBaseCalibraRelationMapper.GetNewID();
+            mtCalibraRelation.setId(new SimpleDateFormat("yyyyMMdd").format(new Date()) +no);
+            //mtCalibraRelation.setRelationNo(new SimpleDateFormat("yyyyMMdd").format(new Date()) +no);
+            mtCalibraRelation.setValidFlag("1");
+            ////设置创建人、创建时间
+            mtCalibraRelation.setCreateManNo(mbCalibrationTime.getCreateManNo());
+            mtCalibraRelation.setCreateManName(mbCalibrationTime.getCreateManName());
+            mtCalibraRelation.setCreateTime(new Date());
+
+            int key = meterBaseCalibraRelationMapper.insertSelective(mtCalibraRelation);
+            String key2 = meterBaseCalibrationTimeService.updateStateByPrimaryKey(mbCalibrationTime.getCalibrationTimeNo(),flag);
+            Assert.isTrue((key2 == null || key2.equals("")),"更新关联表错误"+key2);
+        }catch (Exception ex){
+            ex.printStackTrace();
+            TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
+            return "操作异常,请联系管理员";
+        }
         return "";
         return "";
     }
     }
 
 
@@ -164,6 +177,14 @@ public class MeterBaseCalibraRelationServiceImpl extends BaseServiceImpl<MeterBa
                 model.setDeleteTime(new Date());
                 model.setDeleteTime(new Date());
 
 
                 meterBaseCalibraRelationMapper.updateByPrimaryKey(model);
                 meterBaseCalibraRelationMapper.updateByPrimaryKey(model);
+
+                List<MeterBaseCalibraRelation> mbCalibRelations=meterBaseCalibraRelationMapper.selectByCalibTimeNo(model.getCalibrationTimeNo());
+                if(mbCalibRelations.size() < 1){
+                    //设置flag="0",解除计量点和校称时间的绑定
+                    flag = "0";
+                    String key2 = meterBaseCalibrationTimeService.updateStateByPrimaryKey(model.getCalibrationTimeNo(),flag);
+                    Assert.isTrue((key2 == null || key2.equals("")),"更新关联表错误"+key2);
+                }
             }
             }
         } catch (Exception ex) {
         } catch (Exception ex) {
             ex.printStackTrace();
             ex.printStackTrace();

+ 19 - 2
src/main/java/com/steerinfo/baseinfo/meterbasecalibrationnum/controller/MeterBaseCalibrationNumController.java

@@ -93,7 +93,7 @@ throw new MarkerMetException(500, "操作异常!!");
         } catch (Exception e) {
         } catch (Exception e) {
             e.printStackTrace();
             e.printStackTrace();
             TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
             TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
-            return failed(null, "操作异常,请确认!");
+            return failed(null, "操作异常,请确认!"+e.getMessage());
         }
         }
 
 
         return success();
         return success();
@@ -130,7 +130,7 @@ throw new MarkerMetException(500, "操作异常!!");
         } catch (Exception e) {
         } catch (Exception e) {
             e.printStackTrace();
             e.printStackTrace();
             TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
             TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
-            return failed(null, "操作异常,请确认!");
+            return failed(null, "操作异常,请确认!"+e.getMessage());
         }
         }
 
 
         return success();
         return success();
@@ -202,4 +202,21 @@ throw new MarkerMetException(500, "操作异常!!");
         }
         }
         return success();
         return success();
     }
     }
+
+    @ApiOperation(value = "按校称重量编号修改校称重量数据使用状态", notes = "根据传过来的MeterBaseCalibrationNum集合信息来更新详细信息")
+    @Transactional
+    @PostMapping(value = "/updateStateByPrimaryKey")
+    public RESTfulResult updateStateByPrimaryKey(@RequestParam(required = true) String mbCalibNumNo,@RequestParam(required = true) String flag) {
+        try {
+            String msg = meterBaseCalibrationNumService.updateStateByPrimaryKey(mbCalibNumNo,flag);
+            if (StringUtils.isNotEmpty(msg)) {
+                return failed(null, msg);
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+            TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
+            return failed(null, "操作异常,请确认!");
+        }
+        return success();
+    }
 }
 }

+ 2 - 0
src/main/java/com/steerinfo/baseinfo/meterbasecalibrationnum/mapper/MeterBaseCalibrationNumMapper.java

@@ -12,4 +12,6 @@ public interface MeterBaseCalibrationNumMapper extends IBaseMapper<MeterBaseCali
      String GetNewID();
      String GetNewID();
 
 
      List<MeterBaseCalibrationNum> selectForUpdate(Map<String, Object> parameters);
      List<MeterBaseCalibrationNum> selectForUpdate(Map<String, Object> parameters);
+
+    int updateStateByPrimaryKey(MeterBaseCalibrationNum meterBaseCalibrationNum);
 }
 }

+ 44 - 9
src/main/java/com/steerinfo/baseinfo/meterbasecalibrationnum/mapper/MeterBaseCalibrationNumMapper.xml

@@ -22,18 +22,20 @@
     <result column="IS_METER" jdbcType="VARCHAR" property="isMeter" />
     <result column="IS_METER" jdbcType="VARCHAR" property="isMeter" />
     <result column="MUTUAL_STRATEGY_NO" jdbcType="VARCHAR" property="mutualStrategyNo" />
     <result column="MUTUAL_STRATEGY_NO" jdbcType="VARCHAR" property="mutualStrategyNo" />
     <result column="MUTUAL_STRATEGY_NAME" jdbcType="VARCHAR" property="mutualStrategyName" />
     <result column="MUTUAL_STRATEGY_NAME" jdbcType="VARCHAR" property="mutualStrategyName" />
+    <result column="STATE_FLAG" jdbcType="VARCHAR" property="stateFlag" />
   </resultMap>
   </resultMap>
   <sql id="columns">
   <sql id="columns">
     CALIBRATION_NUM_NO, SPOT_TYPE_NO, SPOT_TYPE_NAME, CALIBRATION_NUM, CALIBRATION_TYPE_NO,
     CALIBRATION_NUM_NO, SPOT_TYPE_NO, SPOT_TYPE_NAME, CALIBRATION_NUM, CALIBRATION_TYPE_NO,
     CALIBRATION_TYPE_NAME, VALID_FLAG, CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, UPDATE_MAN_NO,
     CALIBRATION_TYPE_NAME, VALID_FLAG, CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, UPDATE_MAN_NO,
     UPDATE_MAN_NAME, UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME, UP_WEIGHT,
     UPDATE_MAN_NAME, UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME, UP_WEIGHT,
-    IS_METER, MUTUAL_STRATEGY_NO, MUTUAL_STRATEGY_NAME
+    IS_METER, MUTUAL_STRATEGY_NO, MUTUAL_STRATEGY_NAME, STATE_FLAG
   </sql>
   </sql>
   <sql id="columns_alias">
   <sql id="columns_alias">
     t.CALIBRATION_NUM_NO, t.SPOT_TYPE_NO, t.SPOT_TYPE_NAME, t.CALIBRATION_NUM, t.CALIBRATION_TYPE_NO,
     t.CALIBRATION_NUM_NO, t.SPOT_TYPE_NO, t.SPOT_TYPE_NAME, t.CALIBRATION_NUM, t.CALIBRATION_TYPE_NO,
     t.CALIBRATION_TYPE_NAME, t.VALID_FLAG, t.CREATE_MAN_NO, t.CREATE_MAN_NAME, t.CREATE_TIME,
     t.CALIBRATION_TYPE_NAME, t.VALID_FLAG, t.CREATE_MAN_NO, t.CREATE_MAN_NAME, t.CREATE_TIME,
     t.UPDATE_MAN_NO, t.UPDATE_MAN_NAME, t.UPDATE_TIME, t.DELETE_MAN_NO, t.DELETE_MAN_NAME,
     t.UPDATE_MAN_NO, t.UPDATE_MAN_NAME, t.UPDATE_TIME, t.DELETE_MAN_NO, t.DELETE_MAN_NAME,
-    t.DELETE_TIME, t.UP_WEIGHT, t.IS_METER, t.MUTUAL_STRATEGY_NO, t.MUTUAL_STRATEGY_NAME
+    t.DELETE_TIME, t.UP_WEIGHT, t.IS_METER, t.MUTUAL_STRATEGY_NO, t.MUTUAL_STRATEGY_NAME,
+    t.STATE_FLAG
   </sql>
   </sql>
   <sql id="select">
   <sql id="select">
     SELECT <include refid="columns"/> FROM METER_BASE_CALIBRATION_NUM
     SELECT <include refid="columns"/> FROM METER_BASE_CALIBRATION_NUM
@@ -103,6 +105,9 @@
       <if test="mutualStrategyName != null and mutualStrategyName != ''">
       <if test="mutualStrategyName != null and mutualStrategyName != ''">
         and MUTUAL_STRATEGY_NAME = #{mutualStrategyName}
         and MUTUAL_STRATEGY_NAME = #{mutualStrategyName}
       </if>
       </if>
+      <if test="stateFlag != null and stateFlag != ''">
+        and STATE_FLAG = #{stateFlag}
+      </if>
     </where>
     </where>
   </sql>
   </sql>
   <sql id="whereLike">
   <sql id="whereLike">
@@ -167,6 +172,9 @@
       <if test="mutualStrategyName != null and mutualStrategyName != ''">
       <if test="mutualStrategyName != null and mutualStrategyName != ''">
         and MUTUAL_STRATEGY_NAME LIKE '%${mutualStrategyName}%'
         and MUTUAL_STRATEGY_NAME LIKE '%${mutualStrategyName}%'
       </if>
       </if>
+      <if test="stateFlag != null and stateFlag != ''">
+        and STATE_FLAG LIKE '%${stateFlag}%'
+      </if>
     </where>
     </where>
   </sql>
   </sql>
   <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
   <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
@@ -233,6 +241,9 @@
     <if test="mutualStrategyName != null and mutualStrategyName != ''">
     <if test="mutualStrategyName != null and mutualStrategyName != ''">
       or MUTUAL_STRATEGY_NAME = #{mutualStrategyName}
       or MUTUAL_STRATEGY_NAME = #{mutualStrategyName}
     </if>
     </if>
+    <if test="stateFlag != null and stateFlag != ''">
+      or STATE_FLAG = #{stateFlag}
+    </if>
   </delete>
   </delete>
   <insert id="insert" parameterType="com.steerinfo.baseinfo.meterbasecalibrationnum.model.MeterBaseCalibrationNum">
   <insert id="insert" parameterType="com.steerinfo.baseinfo.meterbasecalibrationnum.model.MeterBaseCalibrationNum">
     insert into METER_BASE_CALIBRATION_NUM (CALIBRATION_NUM_NO, SPOT_TYPE_NO, SPOT_TYPE_NAME,
     insert into METER_BASE_CALIBRATION_NUM (CALIBRATION_NUM_NO, SPOT_TYPE_NO, SPOT_TYPE_NAME,
@@ -241,14 +252,16 @@
       CREATE_TIME, UPDATE_MAN_NO, UPDATE_MAN_NAME,
       CREATE_TIME, UPDATE_MAN_NO, UPDATE_MAN_NAME,
       UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME,
       UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME,
       DELETE_TIME, UP_WEIGHT, IS_METER,
       DELETE_TIME, UP_WEIGHT, IS_METER,
-      MUTUAL_STRATEGY_NO, MUTUAL_STRATEGY_NAME)
+      MUTUAL_STRATEGY_NO, MUTUAL_STRATEGY_NAME, STATE_FLAG
+      )
     values (#{calibrationNumNo,jdbcType=VARCHAR}, #{spotTypeNo,jdbcType=VARCHAR}, #{spotTypeName,jdbcType=VARCHAR},
     values (#{calibrationNumNo,jdbcType=VARCHAR}, #{spotTypeNo,jdbcType=VARCHAR}, #{spotTypeName,jdbcType=VARCHAR},
       #{calibrationNum,jdbcType=DECIMAL}, #{calibrationTypeNo,jdbcType=VARCHAR}, #{calibrationTypeName,jdbcType=VARCHAR},
       #{calibrationNum,jdbcType=DECIMAL}, #{calibrationTypeNo,jdbcType=VARCHAR}, #{calibrationTypeName,jdbcType=VARCHAR},
       #{validFlag,jdbcType=VARCHAR}, #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR},
       #{validFlag,jdbcType=VARCHAR}, #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR},
       #{createTime,jdbcType=TIMESTAMP}, #{updateManNo,jdbcType=VARCHAR}, #{updateManName,jdbcType=VARCHAR},
       #{createTime,jdbcType=TIMESTAMP}, #{updateManNo,jdbcType=VARCHAR}, #{updateManName,jdbcType=VARCHAR},
       #{updateTime,jdbcType=TIMESTAMP}, #{deleteManNo,jdbcType=VARCHAR}, #{deleteManName,jdbcType=VARCHAR},
       #{updateTime,jdbcType=TIMESTAMP}, #{deleteManNo,jdbcType=VARCHAR}, #{deleteManName,jdbcType=VARCHAR},
       #{deleteTime,jdbcType=TIMESTAMP}, #{upWeight,jdbcType=DECIMAL}, #{isMeter,jdbcType=VARCHAR},
       #{deleteTime,jdbcType=TIMESTAMP}, #{upWeight,jdbcType=DECIMAL}, #{isMeter,jdbcType=VARCHAR},
-      #{mutualStrategyNo,jdbcType=VARCHAR}, #{mutualStrategyName,jdbcType=VARCHAR})
+      #{mutualStrategyNo,jdbcType=VARCHAR}, #{mutualStrategyName,jdbcType=VARCHAR}, #{stateFlag,jdbcType=VARCHAR}
+      )
   </insert>
   </insert>
   <insert id="insertSelective" parameterType="com.steerinfo.baseinfo.meterbasecalibrationnum.model.MeterBaseCalibrationNum">
   <insert id="insertSelective" parameterType="com.steerinfo.baseinfo.meterbasecalibrationnum.model.MeterBaseCalibrationNum">
     insert into METER_BASE_CALIBRATION_NUM
     insert into METER_BASE_CALIBRATION_NUM
@@ -313,6 +326,9 @@
       <if test="mutualStrategyName != null">
       <if test="mutualStrategyName != null">
         MUTUAL_STRATEGY_NAME,
         MUTUAL_STRATEGY_NAME,
       </if>
       </if>
+      <if test="stateFlag != null">
+        STATE_FLAG,
+      </if>
     </trim>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides=",">
     <trim prefix="values (" suffix=")" suffixOverrides=",">
       <if test="calibrationNumNo != null">
       <if test="calibrationNumNo != null">
@@ -375,6 +391,9 @@
       <if test="mutualStrategyName != null">
       <if test="mutualStrategyName != null">
         #{mutualStrategyName,jdbcType=VARCHAR},
         #{mutualStrategyName,jdbcType=VARCHAR},
       </if>
       </if>
+      <if test="stateFlag != null">
+        #{stateFlag,jdbcType=VARCHAR},
+      </if>
     </trim>
     </trim>
   </insert>
   </insert>
   <update id="updateByPrimaryKey" parameterType="com.steerinfo.baseinfo.meterbasecalibrationnum.model.MeterBaseCalibrationNum">
   <update id="updateByPrimaryKey" parameterType="com.steerinfo.baseinfo.meterbasecalibrationnum.model.MeterBaseCalibrationNum">
@@ -397,7 +416,8 @@
       UP_WEIGHT = #{upWeight,jdbcType=DECIMAL},
       UP_WEIGHT = #{upWeight,jdbcType=DECIMAL},
       IS_METER = #{isMeter,jdbcType=VARCHAR},
       IS_METER = #{isMeter,jdbcType=VARCHAR},
       MUTUAL_STRATEGY_NO = #{mutualStrategyNo,jdbcType=VARCHAR},
       MUTUAL_STRATEGY_NO = #{mutualStrategyNo,jdbcType=VARCHAR},
-      MUTUAL_STRATEGY_NAME = #{mutualStrategyName,jdbcType=VARCHAR}
+      MUTUAL_STRATEGY_NAME = #{mutualStrategyName,jdbcType=VARCHAR},
+      STATE_FLAG = #{stateFlag,jdbcType=VARCHAR}
     where CALIBRATION_NUM_NO = #{calibrationNumNo,jdbcType=VARCHAR}
     where CALIBRATION_NUM_NO = #{calibrationNumNo,jdbcType=VARCHAR}
   </update>
   </update>
   <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.baseinfo.meterbasecalibrationnum.model.MeterBaseCalibrationNum">
   <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.baseinfo.meterbasecalibrationnum.model.MeterBaseCalibrationNum">
@@ -460,6 +480,9 @@
       <if test="mutualStrategyName != null">
       <if test="mutualStrategyName != null">
         MUTUAL_STRATEGY_NAME = #{mutualStrategyName,jdbcType=VARCHAR},
         MUTUAL_STRATEGY_NAME = #{mutualStrategyName,jdbcType=VARCHAR},
       </if>
       </if>
+      <if test="stateFlag != null">
+        STATE_FLAG = #{stateFlag,jdbcType=VARCHAR},
+      </if>
     </set>
     </set>
     where CALIBRATION_NUM_NO = #{calibrationNumNo,jdbcType=VARCHAR}
     where CALIBRATION_NUM_NO = #{calibrationNumNo,jdbcType=VARCHAR}
   </update>
   </update>
@@ -486,8 +509,8 @@
     CREATE_TIME, UPDATE_MAN_NO, UPDATE_MAN_NAME,
     CREATE_TIME, UPDATE_MAN_NO, UPDATE_MAN_NAME,
     UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME,
     UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME,
     DELETE_TIME, UP_WEIGHT, IS_METER,
     DELETE_TIME, UP_WEIGHT, IS_METER,
-    MUTUAL_STRATEGY_NO, MUTUAL_STRATEGY_NAME
-    )
+    MUTUAL_STRATEGY_NO, MUTUAL_STRATEGY_NAME,
+    STATE_FLAG)
     ( <foreach collection="list" item="item" separator="union all">
     ( <foreach collection="list" item="item" separator="union all">
     select
     select
     #{item.calibrationNumNo,jdbcType=VARCHAR},
     #{item.calibrationNumNo,jdbcType=VARCHAR},
@@ -497,8 +520,8 @@
     #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateManNo,jdbcType=VARCHAR}, #{item.updateManName,jdbcType=VARCHAR},
     #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateManNo,jdbcType=VARCHAR}, #{item.updateManName,jdbcType=VARCHAR},
     #{item.updateTime,jdbcType=TIMESTAMP}, #{item.deleteManNo,jdbcType=VARCHAR}, #{item.deleteManName,jdbcType=VARCHAR},
     #{item.updateTime,jdbcType=TIMESTAMP}, #{item.deleteManNo,jdbcType=VARCHAR}, #{item.deleteManName,jdbcType=VARCHAR},
     #{item.deleteTime,jdbcType=TIMESTAMP}, #{item.upWeight,jdbcType=DECIMAL}, #{item.isMeter,jdbcType=VARCHAR},
     #{item.deleteTime,jdbcType=TIMESTAMP}, #{item.upWeight,jdbcType=DECIMAL}, #{item.isMeter,jdbcType=VARCHAR},
-    #{item.mutualStrategyNo,jdbcType=VARCHAR}, #{item.mutualStrategyName,jdbcType=VARCHAR}
-    from dual
+    #{item.mutualStrategyNo,jdbcType=VARCHAR}, #{item.mutualStrategyName,jdbcType=VARCHAR},
+    #{item.stateFlag,jdbcType=VARCHAR} from dual
   </foreach> )
   </foreach> )
   </insert>
   </insert>
   <update id="batchUpdate" parameterType="java.util.List">
   <update id="batchUpdate" parameterType="java.util.List">
@@ -584,6 +607,10 @@
     <foreach collection="list" item="item" index="index" separator=" " open="case CALIBRATION_NUM_NO" close="end">
     <foreach collection="list" item="item" index="index" separator=" " open="case CALIBRATION_NUM_NO" close="end">
       when #{item.calibrationNumNo,jdbcType=VARCHAR} then #{item.mutualStrategyName,jdbcType=VARCHAR}
       when #{item.calibrationNumNo,jdbcType=VARCHAR} then #{item.mutualStrategyName,jdbcType=VARCHAR}
     </foreach>
     </foreach>
+    ,STATE_FLAG=
+    <foreach collection="list" item="item" index="index" separator=" " open="case CALIBRATION_NUM_NO" close="end">
+      when #{item.calibrationNumNo,jdbcType=VARCHAR} then #{item.stateFlag,jdbcType=VARCHAR}
+    </foreach>
     where CALIBRATION_NUM_NO in
     where CALIBRATION_NUM_NO in
     <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
     <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
       #{item.calibrationNumNo,jdbcType=VARCHAR}
       #{item.calibrationNumNo,jdbcType=VARCHAR}
@@ -618,6 +645,14 @@
         <if test="calibrationTypeNo != null and calibrationTypeNo != ''">
         <if test="calibrationTypeNo != null and calibrationTypeNo != ''">
           and CALIBRATION_TYPE_NO = #{calibrationTypeNo}
           and CALIBRATION_TYPE_NO = #{calibrationTypeNo}
         </if>
         </if>
+        <if test="mutualStrategyNo != null and mutualStrategyNo != ''">
+          and MUTUAL_STRATEGY_NO = #{mutualStrategyNo}
+        </if>
       </where>
       </where>
   </select>
   </select>
+  <update id="updateStateByPrimaryKey" parameterType="java.lang.String" >
+   update METER_BASE_CALIBRATION_NUM t2
+         set t2.state_flag = #{stateFlag,jdbcType=VARCHAR}
+         where t2.calibration_num_no =  #{calibrationNumNo,jdbcType=VARCHAR}
+  </update>
 </mapper>
 </mapper>

+ 15 - 0
src/main/java/com/steerinfo/baseinfo/meterbasecalibrationnum/model/MeterBaseCalibrationNum.java

@@ -127,6 +127,12 @@ public class MeterBaseCalibrationNum implements IBasePO<String> {
     @ApiModelProperty(value="互检策略名称",required=false)
     @ApiModelProperty(value="互检策略名称",required=false)
     private String mutualStrategyName;
     private String mutualStrategyName;
 
 
+    /**
+     * 数据是否使用标志位(0:未使用;1:已使用)(STATE_FLAG,VARCHAR,255)
+     */
+    @ApiModelProperty(value="数据是否使用标志位(0:未使用;1:已使用)",required=false)
+    private String stateFlag;
+
     private static final long serialVersionUID = 1L;
     private static final long serialVersionUID = 1L;
 
 
     @Override
     @Override
@@ -299,6 +305,14 @@ public class MeterBaseCalibrationNum implements IBasePO<String> {
         this.mutualStrategyName = mutualStrategyName == null ? null : mutualStrategyName.trim();
         this.mutualStrategyName = mutualStrategyName == null ? null : mutualStrategyName.trim();
     }
     }
 
 
+    public String getStateFlag() {
+        return stateFlag;
+    }
+
+    public void setStateFlag(String stateFlag) {
+        this.stateFlag = stateFlag == null ? null : stateFlag.trim();
+    }
+
     @Override
     @Override
     public String toString() {
     public String toString() {
         StringBuilder sb = new StringBuilder();
         StringBuilder sb = new StringBuilder();
@@ -325,6 +339,7 @@ public class MeterBaseCalibrationNum implements IBasePO<String> {
         sb.append(", isMeter=").append(isMeter);
         sb.append(", isMeter=").append(isMeter);
         sb.append(", mutualStrategyNo=").append(mutualStrategyNo);
         sb.append(", mutualStrategyNo=").append(mutualStrategyNo);
         sb.append(", mutualStrategyName=").append(mutualStrategyName);
         sb.append(", mutualStrategyName=").append(mutualStrategyName);
+        sb.append(", stateFlag=").append(stateFlag);
         sb.append(", serialVersionUID=").append(serialVersionUID);
         sb.append(", serialVersionUID=").append(serialVersionUID);
         sb.append("]");
         sb.append("]");
         return sb.toString();
         return sb.toString();

+ 2 - 0
src/main/java/com/steerinfo/baseinfo/meterbasecalibrationnum/service/IMeterBaseCalibrationNumService.java

@@ -27,4 +27,6 @@ public interface IMeterBaseCalibrationNumService extends IBaseService<MeterBaseC
      String recovery(List<MeterBaseCalibrationNum> models);
      String recovery(List<MeterBaseCalibrationNum> models);
 
 
      String abolish(List<MeterBaseCalibrationNum> models);
      String abolish(List<MeterBaseCalibrationNum> models);
+
+    String updateStateByPrimaryKey(String mbCalibNumNo, String flag);
 }
 }

+ 49 - 29
src/main/java/com/steerinfo/baseinfo/meterbasecalibrationnum/service/impl/MeterBaseCalibrationNumServiceImpl.java

@@ -56,38 +56,26 @@ public class MeterBaseCalibrationNumServiceImpl extends BaseServiceImpl<MeterBas
         HashMap<String, Object> obj = new HashMap<>();
         HashMap<String, Object> obj = new HashMap<>();
         obj.put("spotTypeNo", model.getSpotTypeNo());
         obj.put("spotTypeNo", model.getSpotTypeNo());
         obj.put("calibrationTypeNo", model.getCalibrationTypeNo());
         obj.put("calibrationTypeNo", model.getCalibrationTypeNo());
-        List<MeterBaseCalibrationNum> com=meterBaseCalibrationNumMapper.selectByParameters(obj);
-        if (! com.isEmpty()) {
-            return model.getCalibrationTypeName()+"与"+model.getSpotTypeName()+"已配置,请直接修改!!";
+        if (model.getCalibrationTypeNo().equals("001005002") ) {
+            obj.put("mutualStrategyNo",model.getMutualStrategyNo());
+            List<MeterBaseCalibrationNum> com=meterBaseCalibrationNumMapper.selectByParameters(obj);
+            if (! com.isEmpty()) {
+                return model.getCalibrationTypeName()+"为"+model.getMutualStrategyName()+"的模式与"+model.getSpotTypeName()+"已配置,请直接修改!!";
+            }
+        }else {
+            List<MeterBaseCalibrationNum> com=meterBaseCalibrationNumMapper.selectByParameters(obj);
+            if (! com.isEmpty()) {
+                return model.getCalibrationTypeName()+"与"+model.getSpotTypeName()+"已配置,请直接修改!!";
+            }
         }
         }
 
 
         String no= meterBaseCalibrationNumMapper.GetNewID();
         String no= meterBaseCalibrationNumMapper.GetNewID();
         model.setId(new SimpleDateFormat("yyyyMMdd").format(new Date()) +no);
         model.setId(new SimpleDateFormat("yyyyMMdd").format(new Date()) +no);
+        model.setStateFlag("0");
         meterBaseCalibrationNumMapper.insertSelective(model);
         meterBaseCalibrationNumMapper.insertSelective(model);
         return "";
         return "";
     }
     }
 
 
-    //@Override
-    //public String checkandupdate(String id,MeterBaseCalibrationNum model)
-    //{
-    //    try{
-    //        String msg=check(model);
-    //        if (StringUtils.isNotEmpty(msg)){
-    //            return msg;
-    //        }
-    //        int key1=meterBaseCalibrationNumMapper.updateByPrimaryKey(model);
-    //        Assert.isTrue(key1 == 1,"更新校称时间错误");
-    //        String key2 = meterBaseCalibraNumRelService.updateBymbCalibWeightNo(id, model);
-    //        Assert.isTrue((key2 == null || key2.equals("")),"更新关联表错误"+key2);
-    //    }catch (Exception ex){
-    //        ex.printStackTrace();
-    //        TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
-    //        return "操作异常,请联系管理员";
-    //    }
-    //    return "";
-    //}
-
-
     @Override
     @Override
     public String checkandupdate(String id,MeterBaseCalibrationNum model)
     public String checkandupdate(String id,MeterBaseCalibrationNum model)
     {
     {
@@ -100,15 +88,26 @@ public class MeterBaseCalibrationNumServiceImpl extends BaseServiceImpl<MeterBas
             obj.put("spotTypeNo", model.getSpotTypeNo());
             obj.put("spotTypeNo", model.getSpotTypeNo());
             obj.put("calibrationTypeNo", model.getCalibrationTypeNo());
             obj.put("calibrationTypeNo", model.getCalibrationTypeNo());
             obj.put("calibrationNumNo", id);
             obj.put("calibrationNumNo", id);
-            List<MeterBaseCalibrationNum> com=meterBaseCalibrationNumMapper.selectForUpdate(obj);
-            if (! com.isEmpty()) {
-                return model.getCalibrationTypeName()+"与"+model.getSpotTypeName()+"已配置,请直接修改!!";
+            //校称类型不是”互检类型时“,只判定校称类型和计量点类型是否重复;如果校称类型为”互检“时,判定校称类型、计量点类型、校称策略三者是否重复
+            if (model.getCalibrationTypeNo().equals("001005002")){
+                obj.put("mutualStrategyNo",model.getMutualStrategyNo());
+                List<MeterBaseCalibrationNum> com=meterBaseCalibrationNumMapper.selectForUpdate(obj);
+                if (! com.isEmpty()) {
+                    return model.getCalibrationTypeName()+"为"+model.getMutualStrategyName()+"的模式与"+model.getSpotTypeName()+"已配置,请重新修改!!";
+                }
+            }else{
+                List<MeterBaseCalibrationNum> com=meterBaseCalibrationNumMapper.selectForUpdate(obj);
+                if (! com.isEmpty()) {
+                    return model.getCalibrationTypeName()+"与"+model.getSpotTypeName()+"已配置,请重新修改!!";
+                }
+            }
+            if ("1".equals(model.getStateFlag())){
+                return "该数据已经使用与计量点匹配,无法修改,请废除已绑定数据后再修改!";
             }
             }
 
 
             int key1=meterBaseCalibrationNumMapper.updateByPrimaryKey(model);
             int key1=meterBaseCalibrationNumMapper.updateByPrimaryKey(model);
             Assert.isTrue(key1 == 1,"更新校称重量错误");
             Assert.isTrue(key1 == 1,"更新校称重量错误");
-            String key2 = meterBaseCalibraNumRelService.updateBymbCalibWeightNo(id, model);
-            Assert.isTrue((key2 == null || key2.equals("")),"更新关联表错误"+key2);
+
 
 
         }catch (Exception ex){
         }catch (Exception ex){
             ex.printStackTrace();
             ex.printStackTrace();
@@ -186,4 +185,25 @@ public class MeterBaseCalibrationNumServiceImpl extends BaseServiceImpl<MeterBas
         return "";
         return "";
     }
     }
 
 
+    @Override
+    public String updateStateByPrimaryKey(String mbCalibNumNo, String flag) {
+        if (mbCalibNumNo == null ) {
+            return "请传入校称重量编号参数!";
+        }
+        if (com.steerinfo.framework.utils.base.StringUtils.isBlank(flag)){
+            return "请传入操作状态!";
+        }
+        MeterBaseCalibrationNum meterBaseCalibrationNum = new MeterBaseCalibrationNum();
+        meterBaseCalibrationNum.setCalibrationNumNo(mbCalibNumNo);
+        //flag=1是绑定校称时间,flag=0是废除(解除)校称时间绑定
+        if(flag.equals("1")){
+            meterBaseCalibrationNum.setStateFlag("1");
+        }else{
+            meterBaseCalibrationNum.setStateFlag("0");
+        }
+
+        meterBaseCalibrationNumMapper.updateStateByPrimaryKey(meterBaseCalibrationNum);
+        return "";
+    }
+
 }
 }

+ 17 - 0
src/main/java/com/steerinfo/baseinfo/meterbasecalibrationtime/controller/MeterBaseCalibrationTimeController.java

@@ -226,5 +226,22 @@ public class MeterBaseCalibrationTimeController extends BaseRESTfulController {
         return success();
         return success();
     }
     }
 
 
+    @ApiOperation(value = "按校称时间编号修改校称时间数据使用状态", notes = "根据传过来的MeterBaseCalibrationTime集合信息来更新详细信息")
+    @Transactional
+    @PostMapping(value = "/updateStateByPrimaryKey")
+    public RESTfulResult updateStateByPrimaryKey(@RequestParam(required = true) String calTimeNo,@RequestParam(required = true) String flag) {
+        try {
+            String msg = meterBaseCalibrationTimeService.updateStateByPrimaryKey(calTimeNo,flag);
+            if (StringUtils.isNotEmpty(msg)) {
+                return failed(null, msg);
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+            TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
+            return failed(null, "操作异常,请确认!");
+        }
+        return success();
+    }
+
 
 
 }
 }

+ 1 - 0
src/main/java/com/steerinfo/baseinfo/meterbasecalibrationtime/mapper/MeterBaseCalibrationTimeMapper.java

@@ -11,4 +11,5 @@ import java.util.Map;
 public interface MeterBaseCalibrationTimeMapper extends IBaseMapper<MeterBaseCalibrationTime, String> {
 public interface MeterBaseCalibrationTimeMapper extends IBaseMapper<MeterBaseCalibrationTime, String> {
      String GetNewID();
      String GetNewID();
 
 
+     int updateStateByPrimaryKey(MeterBaseCalibrationTime meterBaseCalibrationTime);
 }
 }

+ 38 - 9
src/main/java/com/steerinfo/baseinfo/meterbasecalibrationtime/mapper/MeterBaseCalibrationTimeMapper.xml

@@ -19,17 +19,18 @@
     <result column="DELETE_MAN_NO" jdbcType="VARCHAR" property="deleteManNo" />
     <result column="DELETE_MAN_NO" jdbcType="VARCHAR" property="deleteManNo" />
     <result column="DELETE_MAN_NAME" jdbcType="VARCHAR" property="deleteManName" />
     <result column="DELETE_MAN_NAME" jdbcType="VARCHAR" property="deleteManName" />
     <result column="DELETE_TIME" jdbcType="TIMESTAMP" property="deleteTime" />
     <result column="DELETE_TIME" jdbcType="TIMESTAMP" property="deleteTime" />
+    <result column="STATE_FLAG" jdbcType="VARCHAR" property="stateFlag" />
   </resultMap>
   </resultMap>
   <sql id="columns">
   <sql id="columns">
     CALIBRATION_TIME_NO, CALIBRATION_TIME_UNIT, START_TIME, END_TIME, DAY_NUM, CALIBRATION_TYPE_NO, 
     CALIBRATION_TIME_NO, CALIBRATION_TIME_UNIT, START_TIME, END_TIME, DAY_NUM, CALIBRATION_TYPE_NO, 
     CALIBRATION_TYPE_NAME, VALID_FLAG, CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, UPDATE_MAN_NO, 
     CALIBRATION_TYPE_NAME, VALID_FLAG, CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, UPDATE_MAN_NO, 
-    UPDATE_MAN_NAME, UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME
+    UPDATE_MAN_NAME, UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME, STATE_FLAG
   </sql>
   </sql>
   <sql id="columns_alias">
   <sql id="columns_alias">
     t.CALIBRATION_TIME_NO, t.CALIBRATION_TIME_UNIT, t.START_TIME, t.END_TIME, t.DAY_NUM, 
     t.CALIBRATION_TIME_NO, t.CALIBRATION_TIME_UNIT, t.START_TIME, t.END_TIME, t.DAY_NUM, 
     t.CALIBRATION_TYPE_NO, t.CALIBRATION_TYPE_NAME, t.VALID_FLAG, t.CREATE_MAN_NO, t.CREATE_MAN_NAME, 
     t.CALIBRATION_TYPE_NO, t.CALIBRATION_TYPE_NAME, t.VALID_FLAG, t.CREATE_MAN_NO, t.CREATE_MAN_NAME, 
     t.CREATE_TIME, t.UPDATE_MAN_NO, t.UPDATE_MAN_NAME, t.UPDATE_TIME, t.DELETE_MAN_NO, 
     t.CREATE_TIME, t.UPDATE_MAN_NO, t.UPDATE_MAN_NAME, t.UPDATE_TIME, t.DELETE_MAN_NO, 
-    t.DELETE_MAN_NAME, t.DELETE_TIME
+    t.DELETE_MAN_NAME, t.DELETE_TIME, t.STATE_FLAG
   </sql>
   </sql>
   <sql id="select">
   <sql id="select">
     SELECT <include refid="columns"/> FROM METER_BASE_CALIBRATION_TIME
     SELECT <include refid="columns"/> FROM METER_BASE_CALIBRATION_TIME
@@ -90,6 +91,9 @@
       <if test="deleteTime != null">
       <if test="deleteTime != null">
         and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
         and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
       </if>
       </if>
+      <if test="stateFlag != null and stateFlag != ''">
+        and STATE_FLAG = #{stateFlag}
+      </if>
     </where>
     </where>
   </sql>
   </sql>
   <sql id="whereLike">
   <sql id="whereLike">
@@ -145,6 +149,9 @@
       <if test="deleteTime != null">
       <if test="deleteTime != null">
         and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
         and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
       </if>
       </if>
+      <if test="stateFlag != null and stateFlag != ''">
+        and STATE_FLAG LIKE '%${stateFlag}%'
+      </if>
     </where>
     </where>
   </sql>
   </sql>
   <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
   <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
@@ -202,6 +209,9 @@
       <if test="deleteTime != null">
       <if test="deleteTime != null">
         or TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = '#{deleteTime}'
         or TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = '#{deleteTime}'
       </if>
       </if>
+      <if test="stateFlag != null and stateFlag != ''">
+        or STATE_FLAG = #{stateFlag}
+      </if>
   </delete>
   </delete>
   <insert id="insert" parameterType="com.steerinfo.baseinfo.meterbasecalibrationtime.model.MeterBaseCalibrationTime">
   <insert id="insert" parameterType="com.steerinfo.baseinfo.meterbasecalibrationtime.model.MeterBaseCalibrationTime">
     insert into METER_BASE_CALIBRATION_TIME (CALIBRATION_TIME_NO, CALIBRATION_TIME_UNIT, 
     insert into METER_BASE_CALIBRATION_TIME (CALIBRATION_TIME_NO, CALIBRATION_TIME_UNIT, 
@@ -210,14 +220,14 @@
       VALID_FLAG, CREATE_MAN_NO, CREATE_MAN_NAME, 
       VALID_FLAG, CREATE_MAN_NO, CREATE_MAN_NAME, 
       CREATE_TIME, UPDATE_MAN_NO, UPDATE_MAN_NAME, 
       CREATE_TIME, UPDATE_MAN_NO, UPDATE_MAN_NAME, 
       UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME, 
       UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME, 
-      DELETE_TIME)
+      DELETE_TIME, STATE_FLAG)
     values (#{calibrationTimeNo,jdbcType=VARCHAR}, #{calibrationTimeUnit,jdbcType=VARCHAR}, 
     values (#{calibrationTimeNo,jdbcType=VARCHAR}, #{calibrationTimeUnit,jdbcType=VARCHAR}, 
       #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{dayNum,jdbcType=DECIMAL}, 
       #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{dayNum,jdbcType=DECIMAL}, 
       #{calibrationTypeNo,jdbcType=VARCHAR}, #{calibrationTypeName,jdbcType=VARCHAR}, 
       #{calibrationTypeNo,jdbcType=VARCHAR}, #{calibrationTypeName,jdbcType=VARCHAR}, 
       #{validFlag,jdbcType=VARCHAR}, #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR}, 
       #{validFlag,jdbcType=VARCHAR}, #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR}, 
       #{createTime,jdbcType=TIMESTAMP}, #{updateManNo,jdbcType=VARCHAR}, #{updateManName,jdbcType=VARCHAR}, 
       #{createTime,jdbcType=TIMESTAMP}, #{updateManNo,jdbcType=VARCHAR}, #{updateManName,jdbcType=VARCHAR}, 
       #{updateTime,jdbcType=TIMESTAMP}, #{deleteManNo,jdbcType=VARCHAR}, #{deleteManName,jdbcType=VARCHAR}, 
       #{updateTime,jdbcType=TIMESTAMP}, #{deleteManNo,jdbcType=VARCHAR}, #{deleteManName,jdbcType=VARCHAR}, 
-      #{deleteTime,jdbcType=TIMESTAMP})
+      #{deleteTime,jdbcType=TIMESTAMP}, #{stateFlag,jdbcType=VARCHAR})
   </insert>
   </insert>
   <insert id="insertSelective" parameterType="com.steerinfo.baseinfo.meterbasecalibrationtime.model.MeterBaseCalibrationTime">
   <insert id="insertSelective" parameterType="com.steerinfo.baseinfo.meterbasecalibrationtime.model.MeterBaseCalibrationTime">
     insert into METER_BASE_CALIBRATION_TIME
     insert into METER_BASE_CALIBRATION_TIME
@@ -273,6 +283,9 @@
       <if test="deleteTime != null">
       <if test="deleteTime != null">
         DELETE_TIME,
         DELETE_TIME,
       </if>
       </if>
+      <if test="stateFlag != null">
+        STATE_FLAG,
+      </if>
     </trim>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides=",">
     <trim prefix="values (" suffix=")" suffixOverrides=",">
       <if test="calibrationTimeNo != null">
       <if test="calibrationTimeNo != null">
@@ -326,6 +339,9 @@
       <if test="deleteTime != null">
       <if test="deleteTime != null">
         #{deleteTime,jdbcType=TIMESTAMP},
         #{deleteTime,jdbcType=TIMESTAMP},
       </if>
       </if>
+      <if test="stateFlag != null">
+        #{stateFlag,jdbcType=VARCHAR},
+      </if>
     </trim>
     </trim>
   </insert>
   </insert>
   <update id="updateByPrimaryKey" parameterType="com.steerinfo.baseinfo.meterbasecalibrationtime.model.MeterBaseCalibrationTime">
   <update id="updateByPrimaryKey" parameterType="com.steerinfo.baseinfo.meterbasecalibrationtime.model.MeterBaseCalibrationTime">
@@ -345,7 +361,8 @@
       UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
       UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
       DELETE_MAN_NO = #{deleteManNo,jdbcType=VARCHAR},
       DELETE_MAN_NO = #{deleteManNo,jdbcType=VARCHAR},
       DELETE_MAN_NAME = #{deleteManName,jdbcType=VARCHAR},
       DELETE_MAN_NAME = #{deleteManName,jdbcType=VARCHAR},
-      DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP}
+      DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
+      STATE_FLAG = #{stateFlag,jdbcType=VARCHAR}
     where CALIBRATION_TIME_NO = #{calibrationTimeNo,jdbcType=VARCHAR}
     where CALIBRATION_TIME_NO = #{calibrationTimeNo,jdbcType=VARCHAR}
   </update>
   </update>
   <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.baseinfo.meterbasecalibrationtime.model.MeterBaseCalibrationTime">
   <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.baseinfo.meterbasecalibrationtime.model.MeterBaseCalibrationTime">
@@ -399,6 +416,9 @@
       <if test="deleteTime != null">
       <if test="deleteTime != null">
         DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
         DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
       </if>
       </if>
+      <if test="stateFlag != null">
+        STATE_FLAG = #{stateFlag,jdbcType=VARCHAR},
+      </if>
     </set>
     </set>
     where CALIBRATION_TIME_NO = #{calibrationTimeNo,jdbcType=VARCHAR}
     where CALIBRATION_TIME_NO = #{calibrationTimeNo,jdbcType=VARCHAR}
   </update>
   </update>
@@ -424,8 +444,8 @@
       CALIBRATION_TYPE_NAME, VALID_FLAG, 
       CALIBRATION_TYPE_NAME, VALID_FLAG, 
       CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, 
       CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, 
       UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME, 
       UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME, 
-      DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME
-      )
+      DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME,
+      STATE_FLAG)
     ( <foreach collection="list" item="item" separator="union all"> 
     ( <foreach collection="list" item="item" separator="union all"> 
    select  
    select  
       #{item.calibrationTimeNo,jdbcType=VARCHAR}, 
       #{item.calibrationTimeNo,jdbcType=VARCHAR}, 
@@ -434,8 +454,8 @@
       #{item.calibrationTypeName,jdbcType=VARCHAR}, #{item.validFlag,jdbcType=VARCHAR}, 
       #{item.calibrationTypeName,jdbcType=VARCHAR}, #{item.validFlag,jdbcType=VARCHAR}, 
       #{item.createManNo,jdbcType=VARCHAR}, #{item.createManName,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, 
       #{item.createManNo,jdbcType=VARCHAR}, #{item.createManName,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, 
       #{item.updateManNo,jdbcType=VARCHAR}, #{item.updateManName,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, 
       #{item.updateManNo,jdbcType=VARCHAR}, #{item.updateManName,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, 
-      #{item.deleteManNo,jdbcType=VARCHAR}, #{item.deleteManName,jdbcType=VARCHAR}, #{item.deleteTime,jdbcType=TIMESTAMP}
-       from dual  
+      #{item.deleteManNo,jdbcType=VARCHAR}, #{item.deleteManName,jdbcType=VARCHAR}, #{item.deleteTime,jdbcType=TIMESTAMP},
+      #{item.stateFlag,jdbcType=VARCHAR} from dual
    </foreach> )
    </foreach> )
   </insert>
   </insert>
   <update id="batchUpdate" parameterType="java.util.List">
   <update id="batchUpdate" parameterType="java.util.List">
@@ -509,6 +529,10 @@
        <foreach collection="list" item="item" index="index" separator=" " open="case CALIBRATION_TIME_NO" close="end">
        <foreach collection="list" item="item" index="index" separator=" " open="case CALIBRATION_TIME_NO" close="end">
           when #{item.calibrationTimeNo,jdbcType=VARCHAR} then #{item.deleteTime,jdbcType=TIMESTAMP}
           when #{item.calibrationTimeNo,jdbcType=VARCHAR} then #{item.deleteTime,jdbcType=TIMESTAMP}
        </foreach>
        </foreach>
+      ,STATE_FLAG=
+      <foreach collection="list" item="item" index="index" separator=" " open="case CALIBRATION_TIME_NO" close="end">
+        when #{item.calibrationTimeNo,jdbcType=VARCHAR} then #{item.stateFlag,jdbcType=VARCHAR}
+      </foreach>
      where CALIBRATION_TIME_NO in 
      where CALIBRATION_TIME_NO in 
      <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
      <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
     #{item.calibrationTimeNo,jdbcType=VARCHAR}
     #{item.calibrationTimeNo,jdbcType=VARCHAR}
@@ -527,4 +551,9 @@
     SELECT LPAD(NVL(MAX(TO_NUMBER(SUBSTR(CALIBRATION_TIME_NO, LENGTH(CALIBRATION_TIME_NO)-4 ))),0) + 1,5,'0') CALIBRATION_TIME_NO
     SELECT LPAD(NVL(MAX(TO_NUMBER(SUBSTR(CALIBRATION_TIME_NO, LENGTH(CALIBRATION_TIME_NO)-4 ))),0) + 1,5,'0') CALIBRATION_TIME_NO
     FROM METER_BASE_CALIBRATION_TIME
     FROM METER_BASE_CALIBRATION_TIME
   </select>
   </select>
+  <update id="updateStateByPrimaryKey" parameterType="java.lang.String" >
+   update METER_BASE_CALIBRATION_TIME t2
+         set t2.state_flag = #{stateFlag,jdbcType=VARCHAR}
+         where t2.calibration_time_no =  #{calibrationTimeNo,jdbcType=VARCHAR}
+  </update>
 </mapper>
 </mapper>

+ 15 - 0
src/main/java/com/steerinfo/baseinfo/meterbasecalibrationtime/model/MeterBaseCalibrationTime.java

@@ -107,6 +107,12 @@ public class MeterBaseCalibrationTime implements IBasePO<String> {
     @ApiModelProperty(value="删除时间",required=false)
     @ApiModelProperty(value="删除时间",required=false)
     private Date deleteTime;
     private Date deleteTime;
 
 
+    /**
+     * 数据是否使用标志位(0:未使用;1:已使用)(STATE_FLAG,VARCHAR,1)
+     */
+    @ApiModelProperty(value="数据是否使用标志位(0:未使用;1:已使用)",required=false)
+    private String stateFlag;
+
     private static final long serialVersionUID = 1L;
     private static final long serialVersionUID = 1L;
 
 
     @Override
     @Override
@@ -255,6 +261,14 @@ public class MeterBaseCalibrationTime implements IBasePO<String> {
         this.deleteTime = deleteTime;
         this.deleteTime = deleteTime;
     }
     }
 
 
+    public String getStateFlag() {
+        return stateFlag;
+    }
+
+    public void setStateFlag(String stateFlag) {
+        this.stateFlag = stateFlag == null ? null : stateFlag.trim();
+    }
+
     @Override
     @Override
     public String toString() {
     public String toString() {
         StringBuilder sb = new StringBuilder();
         StringBuilder sb = new StringBuilder();
@@ -278,6 +292,7 @@ public class MeterBaseCalibrationTime implements IBasePO<String> {
         sb.append(", deleteManNo=").append(deleteManNo);
         sb.append(", deleteManNo=").append(deleteManNo);
         sb.append(", deleteManName=").append(deleteManName);
         sb.append(", deleteManName=").append(deleteManName);
         sb.append(", deleteTime=").append(deleteTime);
         sb.append(", deleteTime=").append(deleteTime);
+        sb.append(", stateFlag=").append(stateFlag);
         sb.append(", serialVersionUID=").append(serialVersionUID);
         sb.append(", serialVersionUID=").append(serialVersionUID);
         sb.append("]");
         sb.append("]");
         return sb.toString();
         return sb.toString();

+ 2 - 0
src/main/java/com/steerinfo/baseinfo/meterbasecalibrationtime/service/IMeterBaseCalibrationTimeService.java

@@ -30,4 +30,6 @@ public interface IMeterBaseCalibrationTimeService extends IBaseService<MeterBase
      String abolish(List<MeterBaseCalibrationTime> models);
      String abolish(List<MeterBaseCalibrationTime> models);
 
 
      String recovery(List<MeterBaseCalibrationTime> models);
      String recovery(List<MeterBaseCalibrationTime> models);
+
+     String updateStateByPrimaryKey(String calTimeNo,String flag);
 }
 }

+ 27 - 6
src/main/java/com/steerinfo/baseinfo/meterbasecalibrationtime/service/impl/MeterBaseCalibrationTimeServiceImpl.java

@@ -38,9 +38,6 @@ public class MeterBaseCalibrationTimeServiceImpl extends BaseServiceImpl<MeterBa
     @Autowired
     @Autowired
     private MeterBaseCalibrationTimeMapper meterBaseCalibrationTimeMapper;
     private MeterBaseCalibrationTimeMapper meterBaseCalibrationTimeMapper;
 
 
-    @Autowired
-    private MeterBaseCalibraRelationServiceImpl meterBaseCalibraRelationService;
-
     @Override
     @Override
     protected IBaseMapper<MeterBaseCalibrationTime, String> getMapper() {
     protected IBaseMapper<MeterBaseCalibrationTime, String> getMapper() {
         return meterBaseCalibrationTimeMapper;
         return meterBaseCalibrationTimeMapper;
@@ -64,7 +61,8 @@ public class MeterBaseCalibrationTimeServiceImpl extends BaseServiceImpl<MeterBa
 
 
 
 
         model.setCreateTime(new Date());
         model.setCreateTime(new Date());
-        model.setValidFlag("1");
+        model.setValidFlag("0");
+        model.setStateFlag("0");
 
 
         meterBaseCalibrationTimeMapper.insertSelective(model);
         meterBaseCalibrationTimeMapper.insertSelective(model);
         return "";
         return "";
@@ -82,12 +80,13 @@ public class MeterBaseCalibrationTimeServiceImpl extends BaseServiceImpl<MeterBa
             }
             }
             if (StringUtils.isEmpty(model.getCalibrationTypeName())) {
             if (StringUtils.isEmpty(model.getCalibrationTypeName())) {
                 return "校秤类型名称不能为空";
                 return "校秤类型名称不能为空";
+            }if ("1".equals(model.getStateFlag())){
+                return "该数据已经使用与计量点匹配,无法修改,请废除已绑定数据后再修改!";
             }
             }
 
 
             int key1=meterBaseCalibrationTimeMapper.updateByPrimaryKey(model);
             int key1=meterBaseCalibrationTimeMapper.updateByPrimaryKey(model);
             Assert.isTrue(key1 == 1,"更新校称时间错误");
             Assert.isTrue(key1 == 1,"更新校称时间错误");
-            String key2 = meterBaseCalibraRelationService.updateBymbCalibTimeNo(id, model);
-            Assert.isTrue((key2 == null || key2.equals("")),"更新关联表错误"+key2);
+
 
 
         }catch (Exception ex){
         }catch (Exception ex){
             ex.printStackTrace();
             ex.printStackTrace();
@@ -144,4 +143,26 @@ public class MeterBaseCalibrationTimeServiceImpl extends BaseServiceImpl<MeterBa
         }
         }
         return "";
         return "";
     }
     }
+
+    @Override
+    public String updateStateByPrimaryKey(String calTimeNo,String flag) {
+
+        if (calTimeNo == null ) {
+            return "请传入校称时间编号参数!";
+        }
+        if (StringUtils.isBlank(flag)){
+            return "请传入操作状态!";
+        }
+        MeterBaseCalibrationTime meterBaseCalibrationTime = new MeterBaseCalibrationTime();
+        meterBaseCalibrationTime.setCalibrationTimeNo(calTimeNo);
+        //flag=1是绑定校称时间,flag=0是废除(解除)校称时间绑定
+        if(flag.equals("1")){
+            meterBaseCalibrationTime.setStateFlag("1");
+        }else{
+            meterBaseCalibrationTime.setStateFlag("0");
+        }
+
+        meterBaseCalibrationTimeMapper.updateStateByPrimaryKey(meterBaseCalibrationTime);
+        return "";
+    }
 }
 }

+ 4 - 4
src/main/java/com/steerinfo/meterwork/meterworkcaractual/controller/MeterWorkCarActualController.java

@@ -314,10 +314,10 @@ throw new MarkerMetException(500, "操作异常!!");
 
 
     @ApiOperation(value = "洁净")
     @ApiOperation(value = "洁净")
     @PostMapping(value = "/clean")
     @PostMapping(value = "/clean")
-    public RESTfulResult clean(@RequestParam String actualFirstNo, String dataNo, String predictionNo) {
+    public RESTfulResult clean(@RequestParam String actualFirstNo, String dataNo, String predictionNo, String note) {
         RESTfulResult rm = failed();
         RESTfulResult rm = failed();
         try {
         try {
-            MeterWorkCarActual mwca = meterWorkCarActualService.clean(actualFirstNo, dataNo, predictionNo);
+            MeterWorkCarActual mwca = meterWorkCarActualService.clean(actualFirstNo, dataNo, predictionNo, note);
             return success(mwca);
             return success(mwca);
         } catch (MarkerMetException e) {
         } catch (MarkerMetException e) {
             e.printStackTrace();
             e.printStackTrace();
@@ -333,10 +333,10 @@ throw new MarkerMetException(500, "操作异常!!");
 
 
     @ApiOperation(value = "匹配委托")
     @ApiOperation(value = "匹配委托")
     @PostMapping(value = "/matchPrediction")
     @PostMapping(value = "/matchPrediction")
-    public RESTfulResult matchPrediction(@RequestParam String actualNo, String predictionNo) {
+    public RESTfulResult matchPrediction(@RequestParam String actualNo, String predictionNo, String note) {
         RESTfulResult rm = failed();
         RESTfulResult rm = failed();
         try {
         try {
-            MeterWorkCarActual mwca = meterWorkCarActualService.matchPrediction(actualNo, predictionNo);
+            MeterWorkCarActual mwca = meterWorkCarActualService.matchPrediction(actualNo, predictionNo, note);
             return success(mwca);
             return success(mwca);
         } catch (MarkerMetException e) {
         } catch (MarkerMetException e) {
             e.printStackTrace();
             e.printStackTrace();

+ 3 - 3
src/main/java/com/steerinfo/meterwork/meterworkcaractual/mapper/MeterWorkCarActualMapper.xml

@@ -3148,12 +3148,12 @@
                t.net_class, t.tb_flage, t1.railway_no, t.update_man_no, t.update_man_name, t.update_time,
                t.net_class, t.tb_flage, t1.railway_no, t.update_man_no, t.update_man_name, t.update_time,
                t.memo, t1.heat_no, t1.shipment_gross_weight, t1.shipment_net_weight, t1.shipment_num,
                t.memo, t1.heat_no, t1.shipment_gross_weight, t1.shipment_net_weight, t1.shipment_num,
                t1.bind_card_no, t1.prediction_type, t1.prediction_combination, t.meter_pier_name,
                t1.bind_card_no, t1.prediction_type, t1.prediction_combination, t.meter_pier_name,
-               t.meter_pier_no, t1.ship_no,t.note
+               t.meter_pier_no, t.note
         from meter_work_car_actual t, pre_track_scale t1 where t.actual_no = #{actualNo,jdbcType=VARCHAR} and t1.prediction_no = #{predictionNo,jdbcType=VARCHAR}
         from meter_work_car_actual t, pre_track_scale t1 where t.actual_no = #{actualNo,jdbcType=VARCHAR} and t1.prediction_no = #{predictionNo,jdbcType=VARCHAR}
     </select>
     </select>
 
 
     <select id="cleanPredcition" parameterType="java.lang.String" resultMap="BaseResultMap">
     <select id="cleanPredcition" parameterType="java.lang.String" resultMap="BaseResultMap">
-        select t.actual_no, t.actual_first1_no, t.gross_weight, t.gross_man_no, t.gross_man_name, t.gross_time,
+        select t.actual_no, t.actual_first1_no,t.car_no, t.gross_weight, t.gross_man_no, t.gross_man_name, t.gross_time,
                t.base_spot1_no, t.base_spot1_name, t.gross_class, t.gross_group, t.gross_mode,
                t.base_spot1_no, t.base_spot1_name, t.gross_class, t.gross_group, t.gross_mode,
                t.actual_first2_no,  t.tare_weight, t.tare_man_no, t.tare_man_name, t.tare_time,
                t.actual_first2_no,  t.tare_weight, t.tare_man_no, t.tare_man_name, t.tare_time,
                t.base_spot2_no, t.base_spot2_name, t.tare_class, t.tare_group, t.tare_mode,
                t.base_spot2_no, t.base_spot2_name, t.tare_class, t.tare_group, t.tare_mode,
@@ -3312,7 +3312,7 @@
     <select id="distinctCarNo" parameterType="java.lang.String" resultMap="BaseResultMap">
     <select id="distinctCarNo" parameterType="java.lang.String" resultMap="BaseResultMap">
         SELECT distinct car_No
         SELECT distinct car_No
         from METER_WORK_CAR_ACTUAL
         from METER_WORK_CAR_ACTUAL
-        where VALUE_FLAG != '1' and CAR_NO like '%${carNo}%'
+        where VALUE_FLAG != '0' and CAR_NO like '%${carNo}%'
         <if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
         <if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
             and  NET_TIME  >= TO_DATE(#{startTime}, 'yyyy-MM-dd HH24:mi:ss') and NET_TIME  &lt;=  TO_DATE(#{endTime}, 'yyyy-MM-dd HH24:mi:ss')
             and  NET_TIME  >= TO_DATE(#{startTime}, 'yyyy-MM-dd HH24:mi:ss') and NET_TIME  &lt;=  TO_DATE(#{endTime}, 'yyyy-MM-dd HH24:mi:ss')
         </if>
         </if>

+ 2 - 2
src/main/java/com/steerinfo/meterwork/meterworkcaractual/service/IMeterWorkCarActualService.java

@@ -38,13 +38,13 @@ public interface IMeterWorkCarActualService extends IBaseService<MeterWorkCarAct
 
 
     int cancel(MeterWorkCarActual model);
     int cancel(MeterWorkCarActual model);
 
 
-    MeterWorkCarActual matchPrediction(String actualNo, String predictionNo);
+    MeterWorkCarActual matchPrediction(String actualNo, String predictionNo, String note);
 
 
     MeterWorkCarActual cleanPrediction(MeterWorkCarActual model);
     MeterWorkCarActual cleanPrediction(MeterWorkCarActual model);
 
 
     PageList<MeterWorkCarActual> selectView(Map<Objects,String> parmas,Integer pageNum, Integer pageSize);
     PageList<MeterWorkCarActual> selectView(Map<Objects,String> parmas,Integer pageNum, Integer pageSize);
 
 
-    MeterWorkCarActual clean(String actualFirstNo, String dataNo, String predictionNo);
+    MeterWorkCarActual clean(String actualFirstNo, String dataNo, String predictionNo, String note);
 
 
     int remove(List<MeterWorkCarActual> models);
     int remove(List<MeterWorkCarActual> models);
 
 

+ 53 - 28
src/main/java/com/steerinfo/meterwork/meterworkcaractual/service/impl/MeterWorkCarActualServiceImpl.java

@@ -224,7 +224,7 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
         if (model.getActualNo() == null || "".equals(model.getActualNo())) {
         if (model.getActualNo() == null || "".equals(model.getActualNo())) {
             throw new MarkerMetException(500, "操作数据主键不能为空!!!");
             throw new MarkerMetException(500, "操作数据主键不能为空!!!");
         }
         }
-        if (model.getValueFlag() != "3") {
+        if (!model.getValueFlag().equals("3")) {
             throw new MarkerMetException(500, "只有未匹配委托的数据才能修改车号!!!");
             throw new MarkerMetException(500, "只有未匹配委托的数据才能修改车号!!!");
         }
         }
         if (model.getNote() == null || "".equals(model.getNote())) {
         if (model.getNote() == null || "".equals(model.getNote())) {
@@ -242,7 +242,7 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
 
 
     @Override
     @Override
     @Transactional(rollbackFor = Exception.class)
     @Transactional(rollbackFor = Exception.class)
-    public MeterWorkCarActual clean(String actualFirstNo, String dataNo, String predictionNo) {
+    public MeterWorkCarActual clean(String actualFirstNo, String dataNo, String predictionNo, String note) {
         try {
         try {
             if (actualFirstNo == null || "".equals(actualFirstNo)) {
             if (actualFirstNo == null || "".equals(actualFirstNo)) {
                 throw new MarkerMetException(500, "毛重数据编号为空");
                 throw new MarkerMetException(500, "毛重数据编号为空");
@@ -263,12 +263,12 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
                 throw new MarkerMetException(500, "皮重重量大于毛重重量!!");
                 throw new MarkerMetException(500, "皮重重量大于毛重重量!!");
             }
             }
             // 选中的是否为同一车的数据
             // 选中的是否为同一车的数据
-            if (mwcaf1.getCarNo() != mwcaf2.getCarNo()) {
+            if (!mwcaf1.getCarNo().equals(mwcaf2.getCarNo())) {
                 throw new MarkerMetException(500, "请选择同一车号的一次计量数据进行结净");
                 throw new MarkerMetException(500, "请选择同一车号的一次计量数据进行结净");
             }
             }
             // 一次计量数据是否已经完成委托匹配
             // 一次计量数据是否已经完成委托匹配
             if ((mwcaf1.getPredictionNo() != null && "".equals(mwcaf1.getPredictionNo())) || (mwcaf2.getPredictionNo() != null && "".equals(mwcaf2.getPredictionNo()))) {
             if ((mwcaf1.getPredictionNo() != null && "".equals(mwcaf1.getPredictionNo())) || (mwcaf2.getPredictionNo() != null && "".equals(mwcaf2.getPredictionNo()))) {
-                if (mwcaf1.getPredictionNo() != mwcaf2.getPredictionNo()) {
+                if (!mwcaf1.getPredictionNo().equals(mwcaf2.getPredictionNo())) {
                     throw new MarkerMetException(500, "选中的两条一次计量数据匹配的委托不一致,不允许进行洁净操作!!!");
                     throw new MarkerMetException(500, "选中的两条一次计量数据匹配的委托不一致,不允许进行洁净操作!!!");
                 } else if (predictionNo != null && !"".equals(predictionNo)) {
                 } else if (predictionNo != null && !"".equals(predictionNo)) {
                     throw new MarkerMetException(500, "选中的两条一次计量数据已经匹配委托,请正确选择数据!!!");
                     throw new MarkerMetException(500, "选中的两条一次计量数据已经匹配委托,请正确选择数据!!!");
@@ -281,7 +281,7 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
             if (preNo != null && !"".equals(preNo)) {
             if (preNo != null && !"".equals(preNo)) {
                 // 选中预报和选中一次计量数据中车号是否一致
                 // 选中预报和选中一次计量数据中车号是否一致
                 PreTrackScale queryRow = preTrackScaleMapper.selectByPrimaryKey(preNo);
                 PreTrackScale queryRow = preTrackScaleMapper.selectByPrimaryKey(preNo);
-                if (mwcaf1.getCarNo() != queryRow.getCarNo()) {
+                if (!mwcaf1.getCarNo().equals(queryRow.getCarNo())) {
                     throw new MarkerMetException(500, "选中预报中车号与一次计量数据中车号不一致!!!");
                     throw new MarkerMetException(500, "选中预报中车号与一次计量数据中车号不一致!!!");
                 }
                 }
                 PreTrackScale scale = new PreTrackScale();
                 PreTrackScale scale = new PreTrackScale();
@@ -299,16 +299,15 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
             if (predictionNo != null && !"".equals(predictionNo)) {
             if (predictionNo != null && !"".equals(predictionNo)) {
                 // 根据一次计量数据和预报数据生成净重相关信息
                 // 根据一次计量数据和预报数据生成净重相关信息
                 MeterWorkCarActualFirst first1 = meterWorkCarActualFirstMapper.selectAndMatch(actualFirstNo, predictionNo);
                 MeterWorkCarActualFirst first1 = meterWorkCarActualFirstMapper.selectAndMatch(actualFirstNo, predictionNo);
-                BeanUtils.copyProperties(mwcaf1, first1);
+                BeanUtils.copyProperties(first1,mwcaf1);
                 MeterWorkCarActualFirst first2 = meterWorkCarActualFirstMapper.selectAndMatch(dataNo, predictionNo);
                 MeterWorkCarActualFirst first2 = meterWorkCarActualFirstMapper.selectAndMatch(dataNo, predictionNo);
-                BeanUtils.copyProperties(mwcaf2, first2);
+                BeanUtils.copyProperties(first2, mwcaf2);
                 MeterWorkCarActual mwca1 = meterWorkCarActualMapper.manualAddPre(actualFirstNo, dataNo, predictionNo);
                 MeterWorkCarActual mwca1 = meterWorkCarActualMapper.manualAddPre(actualFirstNo, dataNo, predictionNo);
-                BeanUtils.copyProperties(actualRow, mwca1);
+                BeanUtils.copyProperties(mwca1, actualRow);
             } else {
             } else {
                 MeterWorkCarActual mwca2 = meterWorkCarActualMapper.manualAdd(actualFirstNo, dataNo);
                 MeterWorkCarActual mwca2 = meterWorkCarActualMapper.manualAdd(actualFirstNo, dataNo);
-                BeanUtils.copyProperties(actualRow, mwca2);
+                BeanUtils.copyProperties(mwca2, actualRow);
             }
             }
-
             check(actualRow);
             check(actualRow);
             // 毛重数据处理
             // 毛重数据处理
             mwcaf1.setValueFlag(DbConstants.NET);
             mwcaf1.setValueFlag(DbConstants.NET);
@@ -337,6 +336,7 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
             SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
             SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
             String no = meterWorkCarActualMapper.getNewID(sdf.format(new Date()));
             String no = meterWorkCarActualMapper.getNewID(sdf.format(new Date()));
             actualRow.setActualNo(sdf.format(new Date()) + no);
             actualRow.setActualNo(sdf.format(new Date()) + no);
+            actualRow.setNote(note);
             actualRow.setNetWeight(mwcaf1.getMeterWeight().subtract(mwcaf2.getMeterWeight()));
             actualRow.setNetWeight(mwcaf1.getMeterWeight().subtract(mwcaf2.getMeterWeight()));
             meterWorkCarActualMapper.insertSelective(actualRow);
             meterWorkCarActualMapper.insertSelective(actualRow);
             return actualRow;
             return actualRow;
@@ -401,11 +401,10 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
 //                        meterWorkPreLinkMapper.updateByPrimaryKey(mwpl);
 //                        meterWorkPreLinkMapper.updateByPrimaryKey(mwpl);
 //                    }
 //                    }
                 //修改预报
                 //修改预报
-                if (StringUtils.isNotEmpty(model.getPredictionNo())
-                        && model.getPredictionNo().length() > 10) {
+                if (StringUtils.isNotEmpty(model.getPredictionNo())) {
                     PreTrackScale scale = new PreTrackScale();
                     PreTrackScale scale = new PreTrackScale();
                     scale.setPredictionNo(model.getPredictionNo());
                     scale.setPredictionNo(model.getPredictionNo());
-                    scale.setValueFlag(DbConstants.IN);
+                    scale.setValueFlag("4");
                     scale.setUpdateTime(new Date());
                     scale.setUpdateTime(new Date());
                     scale.setUpdateManNo("system");
                     scale.setUpdateManNo("system");
                     scale.setUpdateManName("计量洁净数据解除操作");
                     scale.setUpdateManName("计量洁净数据解除操作");
@@ -424,7 +423,7 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
 
 
     @Override
     @Override
     @Transactional(rollbackFor = Exception.class)
     @Transactional(rollbackFor = Exception.class)
-    public MeterWorkCarActual matchPrediction (String actualNo, String predictionNo) throws MarkerMetException {
+    public MeterWorkCarActual matchPrediction (String actualNo, String predictionNo, String note) throws MarkerMetException {
         if (actualNo == null || "".equals(actualNo)) {
         if (actualNo == null || "".equals(actualNo)) {
             throw new MarkerMetException(500, "洁净数据主键不能为空");
             throw new MarkerMetException(500, "洁净数据主键不能为空");
         }
         }
@@ -434,16 +433,16 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
         MeterWorkCarActual queryrow = meterWorkCarActualMapper.selectByPrimaryKey(actualNo);
         MeterWorkCarActual queryrow = meterWorkCarActualMapper.selectByPrimaryKey(actualNo);
         if (queryrow == null) {
         if (queryrow == null) {
             throw new MarkerMetException(500, "不存在对应的洁净数据");
             throw new MarkerMetException(500, "不存在对应的洁净数据");
-        } else if (queryrow.getValueFlag() != "3" || queryrow.getPredictionNo() != null || !"".equals(queryrow.getPredictionNo())) {
+        } else if (!queryrow.getValueFlag().equals("3") || queryrow.getPredictionNo() != null) {
             throw new MarkerMetException(500, "只有未匹配的净重数据才能进行委托匹配操作");
             throw new MarkerMetException(500, "只有未匹配的净重数据才能进行委托匹配操作");
         }
         }
         PreTrackScale prerow = preTrackScaleMapper.selectByPrimaryKey(predictionNo);
         PreTrackScale prerow = preTrackScaleMapper.selectByPrimaryKey(predictionNo);
         if (prerow == null) {
         if (prerow == null) {
             throw new MarkerMetException(500, "不存在对应的预报数据");
             throw new MarkerMetException(500, "不存在对应的预报数据");
-        } else if (prerow.getValueFlag() != "1") {
+        } else if (!prerow.getValueFlag().equals("1")) {
             throw new MarkerMetException(500, "只有未使用的委托才能进行匹配委托操作");
             throw new MarkerMetException(500, "只有未使用的委托才能进行匹配委托操作");
         }
         }
-        if (queryrow.getCarNo() != prerow.getCarNo()) {
+        if (!queryrow.getCarNo().equals(prerow.getCarNo())) {
             throw new MarkerMetException(500, "洁净数据中车号和预报中车号不一致,不允许进行匹配委托操作");
             throw new MarkerMetException(500, "洁净数据中车号和预报中车号不一致,不允许进行匹配委托操作");
         }
         }
         UserPayload payload = UserPayload.getCurrUser();
         UserPayload payload = UserPayload.getCurrUser();
@@ -465,8 +464,20 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
         tarerow.setUpdateManNo(userId);
         tarerow.setUpdateManNo(userId);
         meterWorkCarActualFirstMapper.updateByPrimaryKey(tarerow);
         meterWorkCarActualFirstMapper.updateByPrimaryKey(tarerow);
 
 
+        // 处理预报
+        if (StringUtils.isNotEmpty(predictionNo)) {
+            PreTrackScale scale = new PreTrackScale();
+            scale.setPredictionNo(predictionNo);
+            scale.setValueFlag("2");
+            scale.setUpdateTime(new Date());
+            scale.setUpdateManNo("system");
+            scale.setUpdateManName("计量洁净数据匹配委托操作");
+            preTrackScaleMapper.updateByPrimaryKeySelective(scale);
+        }
+
         MeterWorkCarActual mwca = meterWorkCarActualMapper.mathPredcition(actualNo, predictionNo);
         MeterWorkCarActual mwca = meterWorkCarActualMapper.mathPredcition(actualNo, predictionNo);
         mwca.setValueFlag("1");
         mwca.setValueFlag("1");
+        mwca.setNote(note);
         meterWorkCarActualMapper.updateByPrimaryKey(mwca);
         meterWorkCarActualMapper.updateByPrimaryKey(mwca);
         return mwca;
         return mwca;
     }
     }
@@ -477,7 +488,7 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
         if (model.getActualNo() == null || "".equals(model.getActualNo())) {
         if (model.getActualNo() == null || "".equals(model.getActualNo())) {
             throw new MarkerMetException(500, "洁净数据主键不能为空");
             throw new MarkerMetException(500, "洁净数据主键不能为空");
         }
         }
-        if (model.getValueFlag() != "1" && model.getPredictionNo() != null && !"".equals(model.getPredictionNo())) {
+        if (!model.getValueFlag().equals("1") && model.getPredictionNo() != null && !"".equals(model.getPredictionNo())) {
             throw new MarkerMetException(500, "只有有效已匹配的洁净数据才能进行解除操作");
             throw new MarkerMetException(500, "只有有效已匹配的洁净数据才能进行解除操作");
         }
         }
         MeterWorkCarActual mwcaquery = meterWorkCarActualMapper.selectByPrimaryKey(model.getActualNo());
         MeterWorkCarActual mwcaquery = meterWorkCarActualMapper.selectByPrimaryKey(model.getActualNo());
@@ -498,13 +509,23 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
         meterWorkCarActualFirstMapper.updateByPrimaryKey(grossrow);
         meterWorkCarActualFirstMapper.updateByPrimaryKey(grossrow);
 
 
         // 皮重
         // 皮重
-        MeterWorkCarActualFirst tarerow = meterWorkCarActualFirstMapper.selectAndRemove(model.getActualFirst1No());
+        MeterWorkCarActualFirst tarerow = meterWorkCarActualFirstMapper.selectAndRemove(model.getActualFirst2No());
 //        tarerow.setValueFlag("3");
 //        tarerow.setValueFlag("3");
         tarerow.setUpdateTime(new Date());
         tarerow.setUpdateTime(new Date());
         tarerow.setUpdateManName(userName + ": 洁净数据解除委托操作");
         tarerow.setUpdateManName(userName + ": 洁净数据解除委托操作");
         tarerow.setUpdateManNo(userId);
         tarerow.setUpdateManNo(userId);
         meterWorkCarActualFirstMapper.updateByPrimaryKey(tarerow);
         meterWorkCarActualFirstMapper.updateByPrimaryKey(tarerow);
 
 
+        // 处理预报
+        if (StringUtils.isNotEmpty(model.getPredictionNo())) {
+            PreTrackScale scale = new PreTrackScale();
+            scale.setPredictionNo(model.getPredictionNo());
+            scale.setValueFlag("4");
+            scale.setUpdateTime(new Date());
+            scale.setUpdateManNo("system");
+            scale.setUpdateManName("计量洁净数据解除委托操作");
+            preTrackScaleMapper.updateByPrimaryKeySelective(scale);
+        }
         MeterWorkCarActual mwca = meterWorkCarActualMapper.cleanPredcition(model.getActualNo());
         MeterWorkCarActual mwca = meterWorkCarActualMapper.cleanPredcition(model.getActualNo());
 
 
         mwca.setUpdateManNo(userId);
         mwca.setUpdateManNo(userId);
@@ -590,14 +611,14 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
 
 
     private void check(MeterWorkCarActual model) throws MarkerMetException {
     private void check(MeterWorkCarActual model) throws MarkerMetException {
         if (model.getCarNo() == null || model.getCarNo().equals("")) {
         if (model.getCarNo() == null || model.getCarNo().equals("")) {
-            throw new MarkerMetException(500, "车号不能为空");
-        }
-        if (model.getMatterNo() == null || model.getMatterNo().equals("")) {
-            throw new MarkerMetException(500, "物料编号不能为空");
-        }
-        if (model.getMatterName() == null || model.getMatterName().equals("")) {
-            throw new MarkerMetException(500, "物料名称不能为空");
+            throw new MarkerMetException(500, "车号不能为空" + model.getCarNo());
         }
         }
+//        if (model.getMatterNo() == null || model.getMatterNo().equals("")) {
+//            throw new MarkerMetException(500, "物料编号不能为空");
+//        }
+//        if (model.getMatterName() == null || model.getMatterName().equals("")) {
+//            throw new MarkerMetException(500, "物料名称不能为空");
+//        }
 //        if (model.getMeterTypeNo() == null || model.getMeterTypeNo().equals("")) {
 //        if (model.getMeterTypeNo() == null || model.getMeterTypeNo().equals("")) {
 //            throw new MarkerMetException(500, "计量类型编号不能为空");
 //            throw new MarkerMetException(500, "计量类型编号不能为空");
 //        }
 //        }
@@ -628,8 +649,12 @@ public class MeterWorkCarActualServiceImpl extends BaseServiceImpl<MeterWorkCarA
         if (model.getBaseSpot2Name() == null || model.getBaseSpot2Name().equals("")) {
         if (model.getBaseSpot2Name() == null || model.getBaseSpot2Name().equals("")) {
             throw new MarkerMetException(500, "皮重计量点名称不能为空");
             throw new MarkerMetException(500, "皮重计量点名称不能为空");
         }
         }
-        if (model.getActualNo() == null && model.getValueFlag() == null)
-            model.setValueFlag("2");//有效
+        if (model.getActualNo() == null && model.getValueFlag() == null) {
+            model.setValueFlag("1");//有效已匹配
+        } else if (model.getActualNo() == null && model.getPredictionNo() == null){
+            model.setValueFlag("3");//有效已匹配
+        }
+
         if (model.getActualNo() == null && model.getUploadFlag() == null)
         if (model.getActualNo() == null && model.getUploadFlag() == null)
             model.setUploadFlag(DbConstants.INVALID);
             model.setUploadFlag(DbConstants.INVALID);
         UserPayload payload = UserPayload.getCurrUser();
         UserPayload payload = UserPayload.getCurrUser();

+ 110 - 0
src/main/java/com/steerinfo/meterwork/meterworkhookactfirst/controller/MeterWorkHookActFirstController.java

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

+ 10 - 0
src/main/java/com/steerinfo/meterwork/meterworkhookactfirst/mapper/MeterWorkHookActFirstMapper.java

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

+ 1869 - 0
src/main/java/com/steerinfo/meterwork/meterworkhookactfirst/mapper/MeterWorkHookActFirstMapper.xml

@@ -0,0 +1,1869 @@
+<?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.meterworkhookactfirst.mapper.MeterWorkHookActFirstMapper">
+  <resultMap id="BaseResultMap" type="com.steerinfo.meterwork.meterworkhookactfirst.model.MeterWorkHookActFirst">
+    <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="RAILWAY_NO" jdbcType="VARCHAR" property="railwayNo" />
+    <result column="RAILWAY_CARRIAGE_NO" jdbcType="VARCHAR" property="railwayCarriageNo" />
+    <result column="RAILWAY_WORK_NO" jdbcType="VARCHAR" property="railwayWorkNo" />
+    <result column="RAILWAY_SPEED" jdbcType="DECIMAL" property="railwaySpeed" />
+    <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="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="WEIGHT_TYPE" jdbcType="VARCHAR" property="weightType" />
+    <result column="METER_SORT_WEIGHT" jdbcType="DECIMAL" property="meterSortWeight" />
+    <result column="METER_BALANCE_WEIGHT" jdbcType="DECIMAL" property="meterBalanceWeight" />
+    <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="RAILWAY_TYPE_NO" jdbcType="VARCHAR" property="railwayTypeNo" />
+    <result column="RAILWAY_TYPE_NAME" jdbcType="VARCHAR" property="railwayTypeName" />
+    <result column="IS_CHEMICAL" jdbcType="VARCHAR" property="isChemical" />
+    <result column="LIMIT_WEIGHT" jdbcType="DECIMAL" property="limitWeight" />
+    <result column="RAILWAY_MODEL_NO" jdbcType="VARCHAR" property="railwayModelNo" />
+    <result column="RAILWAY_MODEL_NAME" jdbcType="VARCHAR" property="railwayModelName" />
+    <result column="RAILWAY_FACTORY_WEIGHT" jdbcType="DECIMAL" property="railwayFactoryWeight" />
+    <result column="WATER_NUM" jdbcType="DECIMAL" property="waterNum" />
+    <result column="ARRIVAL" jdbcType="VARCHAR" property="arrival" />
+    <result column="STATION" jdbcType="VARCHAR" property="station" />
+    <result column="SOURCE_AREA" jdbcType="VARCHAR" property="sourceArea" />
+  </resultMap>
+  <sql id="columns">
+    ACTUAL_FIRST_NO, PREDICTION_NO, NOTICE_NO, RAILWAY_NO, RAILWAY_CARRIAGE_NO, RAILWAY_WORK_NO, 
+    RAILWAY_SPEED, 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, METER_PROCESS_NO, METER_PROCESS_EDITION_NO, METER_WEIGHT, 
+    WEIGHT_TYPE, METER_SORT_WEIGHT, METER_BALANCE_WEIGHT, 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, RAILWAY_TYPE_NO, RAILWAY_TYPE_NAME, IS_CHEMICAL, LIMIT_WEIGHT, 
+    RAILWAY_MODEL_NO, RAILWAY_MODEL_NAME, RAILWAY_FACTORY_WEIGHT, WATER_NUM, ARRIVAL, 
+    STATION, SOURCE_AREA
+  </sql>
+  <sql id="columns_alias">
+    t.ACTUAL_FIRST_NO, t.PREDICTION_NO, t.NOTICE_NO, t.RAILWAY_NO, t.RAILWAY_CARRIAGE_NO, 
+    t.RAILWAY_WORK_NO, t.RAILWAY_SPEED, 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, t.SHIPMENT_NET_WEIGHT, t.SHIPMENT_NUM, t.BIND_CARD_NO, 
+    t.LOAD_POINT_NO, t.LOAD_POINT_NAME, t.SAMPLE_NO, t.SAMPLE_VOUCHER, t.CARRIER_UNIT_NO, 
+    t.CARRIER_UNIT_NAME, t.PREDICTION_TYPE, t.PREDICTION_COMBINATION, t.METER_TYPE_NO, 
+    t.METER_TYPE_NAME, t.METER_PROCESS_NO, t.METER_PROCESS_EDITION_NO, t.METER_WEIGHT, 
+    t.WEIGHT_TYPE, t.METER_SORT_WEIGHT, t.METER_BALANCE_WEIGHT, t.CREATE_MAN_NO, t.CREATE_MAN_NAME, 
+    t.CREATE_TIME, t.BASE_SPOT_NO, t.BASE_SPOT_NAME, 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.RAILWAY_TYPE_NO, t.RAILWAY_TYPE_NAME, 
+    t.IS_CHEMICAL, t.LIMIT_WEIGHT, t.RAILWAY_MODEL_NO, t.RAILWAY_MODEL_NAME, t.RAILWAY_FACTORY_WEIGHT, 
+    t.WATER_NUM, t.ARRIVAL, t.STATION, t.SOURCE_AREA
+  </sql>
+  <sql id="select">
+    SELECT <include refid="columns"/> FROM METER_WORK_HOOK_ACT_FIRST
+  </sql>
+  <sql id="select_alias">
+    SELECT <include refid="columns_alias"/> FROM METER_WORK_HOOK_ACT_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="railwayNo != null and railwayNo != ''">
+        and RAILWAY_NO = #{railwayNo}
+      </if>
+      <if test="railwayCarriageNo != null and railwayCarriageNo != ''">
+        and RAILWAY_CARRIAGE_NO = #{railwayCarriageNo}
+      </if>
+      <if test="railwayWorkNo != null and railwayWorkNo != ''">
+        and RAILWAY_WORK_NO = #{railwayWorkNo}
+      </if>
+      <if test="railwaySpeed != null">
+        and RAILWAY_SPEED = #{railwaySpeed}
+      </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="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="weightType != null and weightType != ''">
+        and WEIGHT_TYPE = #{weightType}
+      </if>
+      <if test="meterSortWeight != null">
+        and METER_SORT_WEIGHT = #{meterSortWeight}
+      </if>
+      <if test="meterBalanceWeight != null">
+        and METER_BALANCE_WEIGHT = #{meterBalanceWeight}
+      </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="railwayTypeNo != null and railwayTypeNo != ''">
+        and RAILWAY_TYPE_NO = #{railwayTypeNo}
+      </if>
+      <if test="railwayTypeName != null and railwayTypeName != ''">
+        and RAILWAY_TYPE_NAME = #{railwayTypeName}
+      </if>
+      <if test="isChemical != null and isChemical != ''">
+        and IS_CHEMICAL = #{isChemical}
+      </if>
+      <if test="limitWeight != null">
+        and LIMIT_WEIGHT = #{limitWeight}
+      </if>
+      <if test="railwayModelNo != null and railwayModelNo != ''">
+        and RAILWAY_MODEL_NO = #{railwayModelNo}
+      </if>
+      <if test="railwayModelName != null and railwayModelName != ''">
+        and RAILWAY_MODEL_NAME = #{railwayModelName}
+      </if>
+      <if test="railwayFactoryWeight != null">
+        and RAILWAY_FACTORY_WEIGHT = #{railwayFactoryWeight}
+      </if>
+      <if test="waterNum != null">
+        and WATER_NUM = #{waterNum}
+      </if>
+      <if test="arrival != null and arrival != ''">
+        and ARRIVAL = #{arrival}
+      </if>
+      <if test="station != null and station != ''">
+        and STATION = #{station}
+      </if>
+      <if test="sourceArea != null and sourceArea != ''">
+        and SOURCE_AREA = #{sourceArea}
+      </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="railwayNo != null and railwayNo != ''">
+        and RAILWAY_NO LIKE '%${railwayNo}%'
+      </if>
+      <if test="railwayCarriageNo != null and railwayCarriageNo != ''">
+        and RAILWAY_CARRIAGE_NO LIKE '%${railwayCarriageNo}%'
+      </if>
+      <if test="railwayWorkNo != null and railwayWorkNo != ''">
+        and RAILWAY_WORK_NO LIKE '%${railwayWorkNo}%'
+      </if>
+      <if test="railwaySpeed != null">
+        and RAILWAY_SPEED = #{railwaySpeed}
+      </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="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="weightType != null and weightType != ''">
+        and WEIGHT_TYPE LIKE '%${weightType}%'
+      </if>
+      <if test="meterSortWeight != null">
+        and METER_SORT_WEIGHT = #{meterSortWeight}
+      </if>
+      <if test="meterBalanceWeight != null">
+        and METER_BALANCE_WEIGHT = #{meterBalanceWeight}
+      </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="railwayTypeNo != null and railwayTypeNo != ''">
+        and RAILWAY_TYPE_NO LIKE '%${railwayTypeNo}%'
+      </if>
+      <if test="railwayTypeName != null and railwayTypeName != ''">
+        and RAILWAY_TYPE_NAME LIKE '%${railwayTypeName}%'
+      </if>
+      <if test="isChemical != null and isChemical != ''">
+        and IS_CHEMICAL LIKE '%${isChemical}%'
+      </if>
+      <if test="limitWeight != null">
+        and LIMIT_WEIGHT = #{limitWeight}
+      </if>
+      <if test="railwayModelNo != null and railwayModelNo != ''">
+        and RAILWAY_MODEL_NO LIKE '%${railwayModelNo}%'
+      </if>
+      <if test="railwayModelName != null and railwayModelName != ''">
+        and RAILWAY_MODEL_NAME LIKE '%${railwayModelName}%'
+      </if>
+      <if test="railwayFactoryWeight != null">
+        and RAILWAY_FACTORY_WEIGHT = #{railwayFactoryWeight}
+      </if>
+      <if test="waterNum != null">
+        and WATER_NUM = #{waterNum}
+      </if>
+      <if test="arrival != null and arrival != ''">
+        and ARRIVAL LIKE '%${arrival}%'
+      </if>
+      <if test="station != null and station != ''">
+        and STATION LIKE '%${station}%'
+      </if>
+      <if test="sourceArea != null and sourceArea != ''">
+        and SOURCE_AREA LIKE '%${sourceArea}%'
+      </if>
+    </where>
+  </sql>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
+    delete from METER_WORK_HOOK_ACT_FIRST
+    where ACTUAL_FIRST_NO = #{actualFirstNo,jdbcType=VARCHAR}
+  </delete>
+  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
+    delete from METER_WORK_HOOK_ACT_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="railwayNo != null and railwayNo != ''">
+        or RAILWAY_NO = #{railwayNo}
+      </if>
+      <if test="railwayCarriageNo != null and railwayCarriageNo != ''">
+        or RAILWAY_CARRIAGE_NO = #{railwayCarriageNo}
+      </if>
+      <if test="railwayWorkNo != null and railwayWorkNo != ''">
+        or RAILWAY_WORK_NO = #{railwayWorkNo}
+      </if>
+      <if test="railwaySpeed != null">
+        or RAILWAY_SPEED = #{railwaySpeed}
+      </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="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="weightType != null and weightType != ''">
+        or WEIGHT_TYPE = #{weightType}
+      </if>
+      <if test="meterSortWeight != null">
+        or METER_SORT_WEIGHT = #{meterSortWeight}
+      </if>
+      <if test="meterBalanceWeight != null">
+        or METER_BALANCE_WEIGHT = #{meterBalanceWeight}
+      </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="railwayTypeNo != null and railwayTypeNo != ''">
+        or RAILWAY_TYPE_NO = #{railwayTypeNo}
+      </if>
+      <if test="railwayTypeName != null and railwayTypeName != ''">
+        or RAILWAY_TYPE_NAME = #{railwayTypeName}
+      </if>
+      <if test="isChemical != null and isChemical != ''">
+        or IS_CHEMICAL = #{isChemical}
+      </if>
+      <if test="limitWeight != null">
+        or LIMIT_WEIGHT = #{limitWeight}
+      </if>
+      <if test="railwayModelNo != null and railwayModelNo != ''">
+        or RAILWAY_MODEL_NO = #{railwayModelNo}
+      </if>
+      <if test="railwayModelName != null and railwayModelName != ''">
+        or RAILWAY_MODEL_NAME = #{railwayModelName}
+      </if>
+      <if test="railwayFactoryWeight != null">
+        or RAILWAY_FACTORY_WEIGHT = #{railwayFactoryWeight}
+      </if>
+      <if test="waterNum != null">
+        or WATER_NUM = #{waterNum}
+      </if>
+      <if test="arrival != null and arrival != ''">
+        or ARRIVAL = #{arrival}
+      </if>
+      <if test="station != null and station != ''">
+        or STATION = #{station}
+      </if>
+      <if test="sourceArea != null and sourceArea != ''">
+        or SOURCE_AREA = #{sourceArea}
+      </if>
+  </delete>
+  <insert id="insert" parameterType="com.steerinfo.meterwork.meterworkhookactfirst.model.MeterWorkHookActFirst">
+    insert into METER_WORK_HOOK_ACT_FIRST (ACTUAL_FIRST_NO, PREDICTION_NO, NOTICE_NO, 
+      RAILWAY_NO, RAILWAY_CARRIAGE_NO, RAILWAY_WORK_NO, 
+      RAILWAY_SPEED, 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, 
+      METER_PROCESS_NO, METER_PROCESS_EDITION_NO, 
+      METER_WEIGHT, WEIGHT_TYPE, METER_SORT_WEIGHT, 
+      METER_BALANCE_WEIGHT, 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, 
+      RAILWAY_TYPE_NO, RAILWAY_TYPE_NAME, IS_CHEMICAL, 
+      LIMIT_WEIGHT, RAILWAY_MODEL_NO, RAILWAY_MODEL_NAME, 
+      RAILWAY_FACTORY_WEIGHT, WATER_NUM, ARRIVAL, 
+      STATION, SOURCE_AREA)
+    values (#{actualFirstNo,jdbcType=VARCHAR}, #{predictionNo,jdbcType=VARCHAR}, #{noticeNo,jdbcType=VARCHAR}, 
+      #{railwayNo,jdbcType=VARCHAR}, #{railwayCarriageNo,jdbcType=VARCHAR}, #{railwayWorkNo,jdbcType=VARCHAR}, 
+      #{railwaySpeed,jdbcType=DECIMAL}, #{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}, 
+      #{meterProcessNo,jdbcType=VARCHAR}, #{meterProcessEditionNo,jdbcType=VARCHAR}, 
+      #{meterWeight,jdbcType=DECIMAL}, #{weightType,jdbcType=VARCHAR}, #{meterSortWeight,jdbcType=DECIMAL}, 
+      #{meterBalanceWeight,jdbcType=DECIMAL}, #{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}, 
+      #{railwayTypeNo,jdbcType=VARCHAR}, #{railwayTypeName,jdbcType=VARCHAR}, #{isChemical,jdbcType=VARCHAR}, 
+      #{limitWeight,jdbcType=DECIMAL}, #{railwayModelNo,jdbcType=VARCHAR}, #{railwayModelName,jdbcType=VARCHAR}, 
+      #{railwayFactoryWeight,jdbcType=DECIMAL}, #{waterNum,jdbcType=DECIMAL}, #{arrival,jdbcType=VARCHAR}, 
+      #{station,jdbcType=VARCHAR}, #{sourceArea,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.steerinfo.meterwork.meterworkhookactfirst.model.MeterWorkHookActFirst">
+    insert into METER_WORK_HOOK_ACT_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="railwayNo != null">
+        RAILWAY_NO,
+      </if>
+      <if test="railwayCarriageNo != null">
+        RAILWAY_CARRIAGE_NO,
+      </if>
+      <if test="railwayWorkNo != null">
+        RAILWAY_WORK_NO,
+      </if>
+      <if test="railwaySpeed != null">
+        RAILWAY_SPEED,
+      </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="meterProcessNo != null">
+        METER_PROCESS_NO,
+      </if>
+      <if test="meterProcessEditionNo != null">
+        METER_PROCESS_EDITION_NO,
+      </if>
+      <if test="meterWeight != null">
+        METER_WEIGHT,
+      </if>
+      <if test="weightType != null">
+        WEIGHT_TYPE,
+      </if>
+      <if test="meterSortWeight != null">
+        METER_SORT_WEIGHT,
+      </if>
+      <if test="meterBalanceWeight != null">
+        METER_BALANCE_WEIGHT,
+      </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="railwayTypeNo != null">
+        RAILWAY_TYPE_NO,
+      </if>
+      <if test="railwayTypeName != null">
+        RAILWAY_TYPE_NAME,
+      </if>
+      <if test="isChemical != null">
+        IS_CHEMICAL,
+      </if>
+      <if test="limitWeight != null">
+        LIMIT_WEIGHT,
+      </if>
+      <if test="railwayModelNo != null">
+        RAILWAY_MODEL_NO,
+      </if>
+      <if test="railwayModelName != null">
+        RAILWAY_MODEL_NAME,
+      </if>
+      <if test="railwayFactoryWeight != null">
+        RAILWAY_FACTORY_WEIGHT,
+      </if>
+      <if test="waterNum != null">
+        WATER_NUM,
+      </if>
+      <if test="arrival != null">
+        ARRIVAL,
+      </if>
+      <if test="station != null">
+        STATION,
+      </if>
+      <if test="sourceArea != null">
+        SOURCE_AREA,
+      </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="railwayNo != null">
+        #{railwayNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayCarriageNo != null">
+        #{railwayCarriageNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayWorkNo != null">
+        #{railwayWorkNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwaySpeed != null">
+        #{railwaySpeed,jdbcType=DECIMAL},
+      </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="meterProcessNo != null">
+        #{meterProcessNo,jdbcType=VARCHAR},
+      </if>
+      <if test="meterProcessEditionNo != null">
+        #{meterProcessEditionNo,jdbcType=VARCHAR},
+      </if>
+      <if test="meterWeight != null">
+        #{meterWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="weightType != null">
+        #{weightType,jdbcType=VARCHAR},
+      </if>
+      <if test="meterSortWeight != null">
+        #{meterSortWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="meterBalanceWeight != null">
+        #{meterBalanceWeight,jdbcType=DECIMAL},
+      </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="railwayTypeNo != null">
+        #{railwayTypeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayTypeName != null">
+        #{railwayTypeName,jdbcType=VARCHAR},
+      </if>
+      <if test="isChemical != null">
+        #{isChemical,jdbcType=VARCHAR},
+      </if>
+      <if test="limitWeight != null">
+        #{limitWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="railwayModelNo != null">
+        #{railwayModelNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayModelName != null">
+        #{railwayModelName,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayFactoryWeight != null">
+        #{railwayFactoryWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="waterNum != null">
+        #{waterNum,jdbcType=DECIMAL},
+      </if>
+      <if test="arrival != null">
+        #{arrival,jdbcType=VARCHAR},
+      </if>
+      <if test="station != null">
+        #{station,jdbcType=VARCHAR},
+      </if>
+      <if test="sourceArea != null">
+        #{sourceArea,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKey" parameterType="com.steerinfo.meterwork.meterworkhookactfirst.model.MeterWorkHookActFirst">
+    update METER_WORK_HOOK_ACT_FIRST
+    set PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR},
+      NOTICE_NO = #{noticeNo,jdbcType=VARCHAR},
+      RAILWAY_NO = #{railwayNo,jdbcType=VARCHAR},
+      RAILWAY_CARRIAGE_NO = #{railwayCarriageNo,jdbcType=VARCHAR},
+      RAILWAY_WORK_NO = #{railwayWorkNo,jdbcType=VARCHAR},
+      RAILWAY_SPEED = #{railwaySpeed,jdbcType=DECIMAL},
+      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},
+      METER_PROCESS_NO = #{meterProcessNo,jdbcType=VARCHAR},
+      METER_PROCESS_EDITION_NO = #{meterProcessEditionNo,jdbcType=VARCHAR},
+      METER_WEIGHT = #{meterWeight,jdbcType=DECIMAL},
+      WEIGHT_TYPE = #{weightType,jdbcType=VARCHAR},
+      METER_SORT_WEIGHT = #{meterSortWeight,jdbcType=DECIMAL},
+      METER_BALANCE_WEIGHT = #{meterBalanceWeight,jdbcType=DECIMAL},
+      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},
+      RAILWAY_TYPE_NO = #{railwayTypeNo,jdbcType=VARCHAR},
+      RAILWAY_TYPE_NAME = #{railwayTypeName,jdbcType=VARCHAR},
+      IS_CHEMICAL = #{isChemical,jdbcType=VARCHAR},
+      LIMIT_WEIGHT = #{limitWeight,jdbcType=DECIMAL},
+      RAILWAY_MODEL_NO = #{railwayModelNo,jdbcType=VARCHAR},
+      RAILWAY_MODEL_NAME = #{railwayModelName,jdbcType=VARCHAR},
+      RAILWAY_FACTORY_WEIGHT = #{railwayFactoryWeight,jdbcType=DECIMAL},
+      WATER_NUM = #{waterNum,jdbcType=DECIMAL},
+      ARRIVAL = #{arrival,jdbcType=VARCHAR},
+      STATION = #{station,jdbcType=VARCHAR},
+      SOURCE_AREA = #{sourceArea,jdbcType=VARCHAR}
+    where ACTUAL_FIRST_NO = #{actualFirstNo,jdbcType=VARCHAR}
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.meterwork.meterworkhookactfirst.model.MeterWorkHookActFirst">
+    update METER_WORK_HOOK_ACT_FIRST
+    <set>
+      <if test="predictionNo != null">
+        PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR},
+      </if>
+      <if test="noticeNo != null">
+        NOTICE_NO = #{noticeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayNo != null">
+        RAILWAY_NO = #{railwayNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayCarriageNo != null">
+        RAILWAY_CARRIAGE_NO = #{railwayCarriageNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayWorkNo != null">
+        RAILWAY_WORK_NO = #{railwayWorkNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwaySpeed != null">
+        RAILWAY_SPEED = #{railwaySpeed,jdbcType=DECIMAL},
+      </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="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="weightType != null">
+        WEIGHT_TYPE = #{weightType,jdbcType=VARCHAR},
+      </if>
+      <if test="meterSortWeight != null">
+        METER_SORT_WEIGHT = #{meterSortWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="meterBalanceWeight != null">
+        METER_BALANCE_WEIGHT = #{meterBalanceWeight,jdbcType=DECIMAL},
+      </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="railwayTypeNo != null">
+        RAILWAY_TYPE_NO = #{railwayTypeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayTypeName != null">
+        RAILWAY_TYPE_NAME = #{railwayTypeName,jdbcType=VARCHAR},
+      </if>
+      <if test="isChemical != null">
+        IS_CHEMICAL = #{isChemical,jdbcType=VARCHAR},
+      </if>
+      <if test="limitWeight != null">
+        LIMIT_WEIGHT = #{limitWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="railwayModelNo != null">
+        RAILWAY_MODEL_NO = #{railwayModelNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayModelName != null">
+        RAILWAY_MODEL_NAME = #{railwayModelName,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayFactoryWeight != null">
+        RAILWAY_FACTORY_WEIGHT = #{railwayFactoryWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="waterNum != null">
+        WATER_NUM = #{waterNum,jdbcType=DECIMAL},
+      </if>
+      <if test="arrival != null">
+        ARRIVAL = #{arrival,jdbcType=VARCHAR},
+      </if>
+      <if test="station != null">
+        STATION = #{station,jdbcType=VARCHAR},
+      </if>
+      <if test="sourceArea != null">
+        SOURCE_AREA = #{sourceArea,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_HOOK_ACT_FIRST 
+      (ACTUAL_FIRST_NO, 
+      PREDICTION_NO, NOTICE_NO, RAILWAY_NO, 
+      RAILWAY_CARRIAGE_NO, RAILWAY_WORK_NO, 
+      RAILWAY_SPEED, 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, METER_PROCESS_NO, 
+      METER_PROCESS_EDITION_NO, METER_WEIGHT, 
+      WEIGHT_TYPE, METER_SORT_WEIGHT, 
+      METER_BALANCE_WEIGHT, 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, RAILWAY_TYPE_NO, 
+      RAILWAY_TYPE_NAME, IS_CHEMICAL, 
+      LIMIT_WEIGHT, RAILWAY_MODEL_NO, 
+      RAILWAY_MODEL_NAME, RAILWAY_FACTORY_WEIGHT, 
+      WATER_NUM, ARRIVAL, STATION, 
+      SOURCE_AREA)
+    ( <foreach collection="list" item="item" separator="union all"> 
+   select  
+      #{item.actualFirstNo,jdbcType=VARCHAR}, 
+      #{item.predictionNo,jdbcType=VARCHAR}, #{item.noticeNo,jdbcType=VARCHAR}, #{item.railwayNo,jdbcType=VARCHAR}, 
+      #{item.railwayCarriageNo,jdbcType=VARCHAR}, #{item.railwayWorkNo,jdbcType=VARCHAR}, 
+      #{item.railwaySpeed,jdbcType=DECIMAL}, #{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.meterProcessNo,jdbcType=VARCHAR}, 
+      #{item.meterProcessEditionNo,jdbcType=VARCHAR}, #{item.meterWeight,jdbcType=DECIMAL}, 
+      #{item.weightType,jdbcType=VARCHAR}, #{item.meterSortWeight,jdbcType=DECIMAL}, 
+      #{item.meterBalanceWeight,jdbcType=DECIMAL}, #{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.railwayTypeNo,jdbcType=VARCHAR}, 
+      #{item.railwayTypeName,jdbcType=VARCHAR}, #{item.isChemical,jdbcType=VARCHAR}, 
+      #{item.limitWeight,jdbcType=DECIMAL}, #{item.railwayModelNo,jdbcType=VARCHAR}, 
+      #{item.railwayModelName,jdbcType=VARCHAR}, #{item.railwayFactoryWeight,jdbcType=DECIMAL}, 
+      #{item.waterNum,jdbcType=DECIMAL}, #{item.arrival,jdbcType=VARCHAR}, #{item.station,jdbcType=VARCHAR}, 
+      #{item.sourceArea,jdbcType=VARCHAR} from dual  
+   </foreach> )
+  </insert>
+  <update id="batchUpdate" parameterType="java.util.List">
+     update METER_WORK_HOOK_ACT_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>
+       ,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>
+       ,RAILWAY_CARRIAGE_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.railwayCarriageNo,jdbcType=VARCHAR}
+       </foreach>
+       ,RAILWAY_WORK_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.railwayWorkNo,jdbcType=VARCHAR}
+       </foreach>
+       ,RAILWAY_SPEED=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.railwaySpeed,jdbcType=DECIMAL}
+       </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>
+       ,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>
+       ,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>
+       ,METER_SORT_WEIGHT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterSortWeight,jdbcType=DECIMAL}
+       </foreach>
+       ,METER_BALANCE_WEIGHT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.meterBalanceWeight,jdbcType=DECIMAL}
+       </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>
+       ,RAILWAY_TYPE_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.railwayTypeNo,jdbcType=VARCHAR}
+       </foreach>
+       ,RAILWAY_TYPE_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.railwayTypeName,jdbcType=VARCHAR}
+       </foreach>
+       ,IS_CHEMICAL=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.isChemical,jdbcType=VARCHAR}
+       </foreach>
+       ,LIMIT_WEIGHT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.limitWeight,jdbcType=DECIMAL}
+       </foreach>
+       ,RAILWAY_MODEL_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.railwayModelNo,jdbcType=VARCHAR}
+       </foreach>
+       ,RAILWAY_MODEL_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.railwayModelName,jdbcType=VARCHAR}
+       </foreach>
+       ,RAILWAY_FACTORY_WEIGHT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.railwayFactoryWeight,jdbcType=DECIMAL}
+       </foreach>
+       ,WATER_NUM=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.waterNum,jdbcType=DECIMAL}
+       </foreach>
+       ,ARRIVAL=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.arrival,jdbcType=VARCHAR}
+       </foreach>
+       ,STATION=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.station,jdbcType=VARCHAR}
+       </foreach>
+       ,SOURCE_AREA=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_FIRST_NO" close="end">
+          when #{item.actualFirstNo,jdbcType=VARCHAR} then #{item.sourceArea,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_HOOK_ACT_FIRST
+    where ACTUAL_FIRST_NO in 
+    <foreach collection="list" item="id" open="(" close=")" separator=",">
+      #{id}
+    </foreach>
+  </delete>
+  <!-- 友情提示!!!-->
+  <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
+  
+</mapper>

+ 1068 - 0
src/main/java/com/steerinfo/meterwork/meterworkhookactfirst/model/MeterWorkHookActFirst.java

@@ -0,0 +1,1068 @@
+package com.steerinfo.meterwork.meterworkhookactfirst.model;
+
+import com.steerinfo.framework.model.IBasePO;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.Date;
+
+@ApiModel(value="计量吊钩秤一次数据表")
+public class MeterWorkHookActFirst implements IBasePO<String> {
+    /**
+     * 计量作业编号(YYYYMMDD+6位流水)(ACTUAL_FIRST_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="计量作业编号(YYYYMMDD+6位流水)",required=true)
+    private String actualFirstNo;
+
+    /**
+     * 预报编号(PREDICTION_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="预报编号",required=false)
+    private String predictionNo;
+
+    /**
+     * 通知单号(NOTICE_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="通知单号",required=false)
+    private String noticeNo;
+
+    /**
+     * 火车车号(RAILWAY_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="火车车号",required=false)
+    private String railwayNo;
+
+    /**
+     * 车厢序号(RAILWAY_CARRIAGE_NO,VARCHAR,2)
+     */
+    @ApiModelProperty(value="车厢序号",required=false)
+    private String railwayCarriageNo;
+
+    /**
+     * 列车作业编号(RAILWAY_WORK_NO,VARCHAR,40)
+     */
+    @ApiModelProperty(value="列车作业编号",required=false)
+    private String railwayWorkNo;
+
+    /**
+     * 车速(RAILWAY_SPEED,DECIMAL,10)
+     */
+    @ApiModelProperty(value="车速",required=false)
+    private BigDecimal railwaySpeed;
+
+    /**
+     * 物料编号(MATTER_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="物料编号",required=false)
+    private String matterNo;
+
+    /**
+     * 物料名称(MATTER_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="物料名称",required=false)
+    private String matterName;
+
+    /**
+     * 合同号(CONTRACT_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="合同号",required=false)
+    private String contractNo;
+
+    /**
+     * 批次号(BATCH_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="批次号",required=false)
+    private String batchNo;
+
+    /**
+     * 供应商编号(CUSTOMER_SUPPLIER_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="供应商编号",required=false)
+    private String customerSupplierNo;
+
+    /**
+     * 供应商名称(CUSTOMER_SUPPLIER_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="供应商名称",required=false)
+    private String customerSupplierName;
+
+    /**
+     * 发货单位编号(FORWARDING_UNIT_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="发货单位编号",required=false)
+    private String forwardingUnitNo;
+
+    /**
+     * 发货单位名称(FORWARDING_UNIT_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="发货单位名称",required=false)
+    private String forwardingUnitName;
+
+    /**
+     * 收货单位编号(RECEIVING_UINT_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="收货单位编号",required=false)
+    private String receivingUintNo;
+
+    /**
+     * 收货单位名称(RECEIVING_UINT_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="收货单位名称",required=false)
+    private String receivingUintName;
+
+    /**
+     * 材质编号(MATERIAL_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="材质编号",required=false)
+    private String materialNo;
+
+    /**
+     * 材质名称(MATERIAL_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="材质名称",required=false)
+    private String materialName;
+
+    /**
+     * 规格编号(SPEC_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="规格编号",required=false)
+    private String specNo;
+
+    /**
+     * 规格名称(SPEC_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="规格名称",required=false)
+    private String specName;
+
+    /**
+     * 发运毛重(SHIPMENT_GROSS_WEIGHT,DECIMAL,10)
+     */
+    @ApiModelProperty(value="发运毛重",required=false)
+    private BigDecimal shipmentGrossWeight;
+
+    /**
+     * 发运净重(SHIPMENT_NET_WEIGHT,DECIMAL,10)
+     */
+    @ApiModelProperty(value="发运净重",required=false)
+    private BigDecimal shipmentNetWeight;
+
+    /**
+     * 发运数量(SHIPMENT_NUM,DECIMAL,5)
+     */
+    @ApiModelProperty(value="发运数量",required=false)
+    private Integer shipmentNum;
+
+    /**
+     * 绑定卡号(BIND_CARD_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="绑定卡号",required=false)
+    private String bindCardNo;
+
+    /**
+     * 卸货地点编号(LOAD_POINT_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="卸货地点编号",required=false)
+    private String loadPointNo;
+
+    /**
+     * 卸货地点名称(LOAD_POINT_NAME,VARCHAR,60)
+     */
+    @ApiModelProperty(value="卸货地点名称",required=false)
+    private String loadPointName;
+
+    /**
+     * 取样编号(SAMPLE_NO,VARCHAR,40)
+     */
+    @ApiModelProperty(value="取样编号",required=false)
+    private String sampleNo;
+
+    /**
+     * 取样凭证(SAMPLE_VOUCHER,VARCHAR,40)
+     */
+    @ApiModelProperty(value="取样凭证",required=false)
+    private String sampleVoucher;
+
+    /**
+     * 承运单位编号(CARRIER_UNIT_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="承运单位编号",required=false)
+    private String carrierUnitNo;
+
+    /**
+     * 承运单位名称(CARRIER_UNIT_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="承运单位名称",required=false)
+    private String carrierUnitName;
+
+    /**
+     * 预报类型(0:批次预报;1:单次预报;2:联运预报;3:分检预报)(PREDICTION_TYPE,VARCHAR,1)
+     */
+    @ApiModelProperty(value="预报类型(0:批次预报;1:单次预报;2:联运预报;3:分检预报)",required=false)
+    private String predictionType;
+
+    /**
+     * 预报组合(PREDICTION_COMBINATION,VARCHAR,100)
+     */
+    @ApiModelProperty(value="预报组合",required=false)
+    private String predictionCombination;
+
+    /**
+     * 计量类型编号(业务类型)(METER_TYPE_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="计量类型编号(业务类型)",required=false)
+    private String meterTypeNo;
+
+    /**
+     * 计量类型名称(业务类型)(METER_TYPE_NAME,VARCHAR,30)
+     */
+    @ApiModelProperty(value="计量类型名称(业务类型)",required=false)
+    private String meterTypeName;
+
+    /**
+     * 计量流程编号(METER_PROCESS_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="计量流程编号",required=false)
+    private String meterProcessNo;
+
+    /**
+     * 计量流程版本号(METER_PROCESS_EDITION_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="计量流程版本号",required=false)
+    private String meterProcessEditionNo;
+
+    /**
+     * 计量重量(METER_WEIGHT,DECIMAL,10)
+     */
+    @ApiModelProperty(value="计量重量",required=false)
+    private BigDecimal meterWeight;
+
+    /**
+     * 重量类型(0=毛重;1=常规皮重;2=期限皮重;3=历史皮重;4=标识皮重;5=自重皮重)(WEIGHT_TYPE,VARCHAR,1)
+     */
+    @ApiModelProperty(value="重量类型(0=毛重;1=常规皮重;2=期限皮重;3=历史皮重;4=标识皮重;5=自重皮重)",required=false)
+    private String weightType;
+
+    /**
+     * 分检重量(METER_SORT_WEIGHT,DECIMAL,10)
+     */
+    @ApiModelProperty(value="分检重量",required=false)
+    private BigDecimal meterSortWeight;
+
+    /**
+     * 结算重量(METER_BALANCE_WEIGHT,DECIMAL,10)
+     */
+    @ApiModelProperty(value="结算重量",required=false)
+    private BigDecimal meterBalanceWeight;
+
+    /**
+     * 计量员编号(CREATE_MAN_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="计量员编号",required=false)
+    private String createManNo;
+
+    /**
+     * 计量员姓名(CREATE_MAN_NAME,VARCHAR,30)
+     */
+    @ApiModelProperty(value="计量员姓名",required=false)
+    private String createManName;
+
+    /**
+     * 计量时间(YYYY-MM-DD HH:mm:SS)(CREATE_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="计量时间(YYYY-MM-DD HH:mm:SS)",required=false)
+    private Date createTime;
+
+    /**
+     * 计量点编号(BASE_SPOT_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="计量点编号",required=false)
+    private String baseSpotNo;
+
+    /**
+     * 计量点名称(BASE_SPOT_NAME,VARCHAR,40)
+     */
+    @ApiModelProperty(value="计量点名称",required=false)
+    private String baseSpotName;
+
+    /**
+     * 班次(METER_CLASS,VARCHAR,20)
+     */
+    @ApiModelProperty(value="班次",required=false)
+    private String meterClass;
+
+    /**
+     * 班组(METER_GROUP,VARCHAR,20)
+     */
+    @ApiModelProperty(value="班组",required=false)
+    private String meterGroup;
+
+    /**
+     * 备注(MEMO,VARCHAR,2000)
+     */
+    @ApiModelProperty(value="备注",required=false)
+    private String memo;
+
+    /**
+     * 状态(1=有效,0=作废,2=结净)(VALUE_FLAG,VARCHAR,1)
+     */
+    @ApiModelProperty(value="状态(1=有效,0=作废,2=结净)",required=false)
+    private String valueFlag;
+
+    /**
+     * 修改人编号(UPDATE_MAN_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="修改人编号",required=false)
+    private String updateManNo;
+
+    /**
+     * 修改人姓名(UPDATE_MAN_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="修改人姓名",required=false)
+    private String updateManName;
+
+    /**
+     * 修改时间(YYYY-MM-DD HH:mm:SS)(UPDATE_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="修改时间(YYYY-MM-DD HH:mm:SS)",required=false)
+    private Date updateTime;
+
+    /**
+     * 审核状态(0:未审核;1:已审核)(CHECK_FLAG,VARCHAR,1)
+     */
+    @ApiModelProperty(value="审核状态(0:未审核;1:已审核)",required=false)
+    private String checkFlag;
+
+    /**
+     * 审核人编号(CHECK_MAN_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="审核人编号",required=false)
+    private String checkManNo;
+
+    /**
+     * 审核人姓名(CHECK_MAN_NAME,VARCHAR,30)
+     */
+    @ApiModelProperty(value="审核人姓名",required=false)
+    private String checkManName;
+
+    /**
+     * 审核时间(YYYY-MM-DD HH:mm:SS)(CHECK_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="审核时间(YYYY-MM-DD HH:mm:SS)",required=false)
+    private Date checkTime;
+
+    /**
+     * 计量方式(1:远程计量;2:智能计量;3:手工录入;4:放行智能计量;5:滞后匹配)(METER_MODE,VARCHAR,1)
+     */
+    @ApiModelProperty(value="计量方式(1:远程计量;2:智能计量;3:手工录入;4:放行智能计量;5:滞后匹配)",required=false)
+    private String meterMode;
+
+    /**
+     * 轨道衡类型编号(RAILWAY_TYPE_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="轨道衡类型编号",required=false)
+    private String railwayTypeNo;
+
+    /**
+     * 轨道衡类型名称(RAILWAY_TYPE_NAME,VARCHAR,30)
+     */
+    @ApiModelProperty(value="轨道衡类型名称",required=false)
+    private String railwayTypeName;
+
+    /**
+     * 是否危化品(IS_CHEMICAL,VARCHAR,1)
+     */
+    @ApiModelProperty(value="是否危化品",required=false)
+    private String isChemical;
+
+    /**
+     * 限载重量(LIMIT_WEIGHT,DECIMAL,10)
+     */
+    @ApiModelProperty(value="限载重量",required=false)
+    private BigDecimal limitWeight;
+
+    /**
+     * 车型编号(RAILWAY_MODEL_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="车型编号",required=false)
+    private String railwayModelNo;
+
+    /**
+     * 车型名称(RAILWAY_MODEL_NAME,VARCHAR,40)
+     */
+    @ApiModelProperty(value="车型名称",required=false)
+    private String railwayModelName;
+
+    /**
+     * 车型标重(第一次为计量员填写)(RAILWAY_FACTORY_WEIGHT,DECIMAL,10)
+     */
+    @ApiModelProperty(value="车型标重(第一次为计量员填写)",required=false)
+    private BigDecimal railwayFactoryWeight;
+
+    /**
+     * 水分(WATER_NUM,DECIMAL,10)
+     */
+    @ApiModelProperty(value="水分",required=false)
+    private BigDecimal waterNum;
+
+    /**
+     * 到站(ARRIVAL,VARCHAR,40)
+     */
+    @ApiModelProperty(value="到站",required=false)
+    private String arrival;
+
+    /**
+     * 发站(STATION,VARCHAR,40)
+     */
+    @ApiModelProperty(value="发站",required=false)
+    private String station;
+
+    /**
+     * 原产地(SOURCE_AREA,VARCHAR,50)
+     */
+    @ApiModelProperty(value="原产地",required=false)
+    private String sourceArea;
+
+    private static final long serialVersionUID = 1L;
+
+    @Override
+    public String getId() {
+        return this.actualFirstNo;
+    }
+
+    @Override
+    public void setId(String actualFirstNo) {
+        this.actualFirstNo = actualFirstNo == null ? null : actualFirstNo.trim();
+    }
+
+    public String getActualFirstNo() {
+        return actualFirstNo;
+    }
+
+    public void setActualFirstNo(String actualFirstNo) {
+        this.actualFirstNo = actualFirstNo == null ? null : actualFirstNo.trim();
+    }
+
+    public String getPredictionNo() {
+        return predictionNo;
+    }
+
+    public void setPredictionNo(String predictionNo) {
+        this.predictionNo = predictionNo == null ? null : predictionNo.trim();
+    }
+
+    public String getNoticeNo() {
+        return noticeNo;
+    }
+
+    public void setNoticeNo(String noticeNo) {
+        this.noticeNo = noticeNo == null ? null : noticeNo.trim();
+    }
+
+    public String getRailwayNo() {
+        return railwayNo;
+    }
+
+    public void setRailwayNo(String railwayNo) {
+        this.railwayNo = railwayNo == null ? null : railwayNo.trim();
+    }
+
+    public String getRailwayCarriageNo() {
+        return railwayCarriageNo;
+    }
+
+    public void setRailwayCarriageNo(String railwayCarriageNo) {
+        this.railwayCarriageNo = railwayCarriageNo == null ? null : railwayCarriageNo.trim();
+    }
+
+    public String getRailwayWorkNo() {
+        return railwayWorkNo;
+    }
+
+    public void setRailwayWorkNo(String railwayWorkNo) {
+        this.railwayWorkNo = railwayWorkNo == null ? null : railwayWorkNo.trim();
+    }
+
+    public BigDecimal getRailwaySpeed() {
+        return railwaySpeed;
+    }
+
+    public void setRailwaySpeed(BigDecimal railwaySpeed) {
+        this.railwaySpeed = railwaySpeed;
+    }
+
+    public String getMatterNo() {
+        return matterNo;
+    }
+
+    public void setMatterNo(String matterNo) {
+        this.matterNo = matterNo == null ? null : matterNo.trim();
+    }
+
+    public String getMatterName() {
+        return matterName;
+    }
+
+    public void setMatterName(String matterName) {
+        this.matterName = matterName == null ? null : matterName.trim();
+    }
+
+    public String getContractNo() {
+        return contractNo;
+    }
+
+    public void setContractNo(String contractNo) {
+        this.contractNo = contractNo == null ? null : contractNo.trim();
+    }
+
+    public String getBatchNo() {
+        return batchNo;
+    }
+
+    public void setBatchNo(String batchNo) {
+        this.batchNo = batchNo == null ? null : batchNo.trim();
+    }
+
+    public String getCustomerSupplierNo() {
+        return customerSupplierNo;
+    }
+
+    public void setCustomerSupplierNo(String customerSupplierNo) {
+        this.customerSupplierNo = customerSupplierNo == null ? null : customerSupplierNo.trim();
+    }
+
+    public String getCustomerSupplierName() {
+        return customerSupplierName;
+    }
+
+    public void setCustomerSupplierName(String customerSupplierName) {
+        this.customerSupplierName = customerSupplierName == null ? null : customerSupplierName.trim();
+    }
+
+    public String getForwardingUnitNo() {
+        return forwardingUnitNo;
+    }
+
+    public void setForwardingUnitNo(String forwardingUnitNo) {
+        this.forwardingUnitNo = forwardingUnitNo == null ? null : forwardingUnitNo.trim();
+    }
+
+    public String getForwardingUnitName() {
+        return forwardingUnitName;
+    }
+
+    public void setForwardingUnitName(String forwardingUnitName) {
+        this.forwardingUnitName = forwardingUnitName == null ? null : forwardingUnitName.trim();
+    }
+
+    public String getReceivingUintNo() {
+        return receivingUintNo;
+    }
+
+    public void setReceivingUintNo(String receivingUintNo) {
+        this.receivingUintNo = receivingUintNo == null ? null : receivingUintNo.trim();
+    }
+
+    public String getReceivingUintName() {
+        return receivingUintName;
+    }
+
+    public void setReceivingUintName(String receivingUintName) {
+        this.receivingUintName = receivingUintName == null ? null : receivingUintName.trim();
+    }
+
+    public String getMaterialNo() {
+        return materialNo;
+    }
+
+    public void setMaterialNo(String materialNo) {
+        this.materialNo = materialNo == null ? null : materialNo.trim();
+    }
+
+    public String getMaterialName() {
+        return materialName;
+    }
+
+    public void setMaterialName(String materialName) {
+        this.materialName = materialName == null ? null : materialName.trim();
+    }
+
+    public String getSpecNo() {
+        return specNo;
+    }
+
+    public void setSpecNo(String specNo) {
+        this.specNo = specNo == null ? null : specNo.trim();
+    }
+
+    public String getSpecName() {
+        return specName;
+    }
+
+    public void setSpecName(String specName) {
+        this.specName = specName == null ? null : specName.trim();
+    }
+
+    public BigDecimal getShipmentGrossWeight() {
+        return shipmentGrossWeight;
+    }
+
+    public void setShipmentGrossWeight(BigDecimal shipmentGrossWeight) {
+        this.shipmentGrossWeight = shipmentGrossWeight;
+    }
+
+    public BigDecimal getShipmentNetWeight() {
+        return shipmentNetWeight;
+    }
+
+    public void setShipmentNetWeight(BigDecimal shipmentNetWeight) {
+        this.shipmentNetWeight = shipmentNetWeight;
+    }
+
+    public Integer getShipmentNum() {
+        return shipmentNum;
+    }
+
+    public void setShipmentNum(Integer shipmentNum) {
+        this.shipmentNum = shipmentNum;
+    }
+
+    public String getBindCardNo() {
+        return bindCardNo;
+    }
+
+    public void setBindCardNo(String bindCardNo) {
+        this.bindCardNo = bindCardNo == null ? null : bindCardNo.trim();
+    }
+
+    public String getLoadPointNo() {
+        return loadPointNo;
+    }
+
+    public void setLoadPointNo(String loadPointNo) {
+        this.loadPointNo = loadPointNo == null ? null : loadPointNo.trim();
+    }
+
+    public String getLoadPointName() {
+        return loadPointName;
+    }
+
+    public void setLoadPointName(String loadPointName) {
+        this.loadPointName = loadPointName == null ? null : loadPointName.trim();
+    }
+
+    public String getSampleNo() {
+        return sampleNo;
+    }
+
+    public void setSampleNo(String sampleNo) {
+        this.sampleNo = sampleNo == null ? null : sampleNo.trim();
+    }
+
+    public String getSampleVoucher() {
+        return sampleVoucher;
+    }
+
+    public void setSampleVoucher(String sampleVoucher) {
+        this.sampleVoucher = sampleVoucher == null ? null : sampleVoucher.trim();
+    }
+
+    public String getCarrierUnitNo() {
+        return carrierUnitNo;
+    }
+
+    public void setCarrierUnitNo(String carrierUnitNo) {
+        this.carrierUnitNo = carrierUnitNo == null ? null : carrierUnitNo.trim();
+    }
+
+    public String getCarrierUnitName() {
+        return carrierUnitName;
+    }
+
+    public void setCarrierUnitName(String carrierUnitName) {
+        this.carrierUnitName = carrierUnitName == null ? null : carrierUnitName.trim();
+    }
+
+    public String getPredictionType() {
+        return predictionType;
+    }
+
+    public void setPredictionType(String predictionType) {
+        this.predictionType = predictionType == null ? null : predictionType.trim();
+    }
+
+    public String getPredictionCombination() {
+        return predictionCombination;
+    }
+
+    public void setPredictionCombination(String predictionCombination) {
+        this.predictionCombination = predictionCombination == null ? null : predictionCombination.trim();
+    }
+
+    public String getMeterTypeNo() {
+        return meterTypeNo;
+    }
+
+    public void setMeterTypeNo(String meterTypeNo) {
+        this.meterTypeNo = meterTypeNo == null ? null : meterTypeNo.trim();
+    }
+
+    public String getMeterTypeName() {
+        return meterTypeName;
+    }
+
+    public void setMeterTypeName(String meterTypeName) {
+        this.meterTypeName = meterTypeName == null ? null : meterTypeName.trim();
+    }
+
+    public String getMeterProcessNo() {
+        return meterProcessNo;
+    }
+
+    public void setMeterProcessNo(String meterProcessNo) {
+        this.meterProcessNo = meterProcessNo == null ? null : meterProcessNo.trim();
+    }
+
+    public String getMeterProcessEditionNo() {
+        return meterProcessEditionNo;
+    }
+
+    public void setMeterProcessEditionNo(String meterProcessEditionNo) {
+        this.meterProcessEditionNo = meterProcessEditionNo == null ? null : meterProcessEditionNo.trim();
+    }
+
+    public BigDecimal getMeterWeight() {
+        return meterWeight;
+    }
+
+    public void setMeterWeight(BigDecimal meterWeight) {
+        this.meterWeight = meterWeight;
+    }
+
+    public String getWeightType() {
+        return weightType;
+    }
+
+    public void setWeightType(String weightType) {
+        this.weightType = weightType == null ? null : weightType.trim();
+    }
+
+    public BigDecimal getMeterSortWeight() {
+        return meterSortWeight;
+    }
+
+    public void setMeterSortWeight(BigDecimal meterSortWeight) {
+        this.meterSortWeight = meterSortWeight;
+    }
+
+    public BigDecimal getMeterBalanceWeight() {
+        return meterBalanceWeight;
+    }
+
+    public void setMeterBalanceWeight(BigDecimal meterBalanceWeight) {
+        this.meterBalanceWeight = meterBalanceWeight;
+    }
+
+    public String getCreateManNo() {
+        return createManNo;
+    }
+
+    public void setCreateManNo(String createManNo) {
+        this.createManNo = createManNo == null ? null : createManNo.trim();
+    }
+
+    public String getCreateManName() {
+        return createManName;
+    }
+
+    public void setCreateManName(String createManName) {
+        this.createManName = createManName == null ? null : createManName.trim();
+    }
+
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    public String getBaseSpotNo() {
+        return baseSpotNo;
+    }
+
+    public void setBaseSpotNo(String baseSpotNo) {
+        this.baseSpotNo = baseSpotNo == null ? null : baseSpotNo.trim();
+    }
+
+    public String getBaseSpotName() {
+        return baseSpotName;
+    }
+
+    public void setBaseSpotName(String baseSpotName) {
+        this.baseSpotName = baseSpotName == null ? null : baseSpotName.trim();
+    }
+
+    public String getMeterClass() {
+        return meterClass;
+    }
+
+    public void setMeterClass(String meterClass) {
+        this.meterClass = meterClass == null ? null : meterClass.trim();
+    }
+
+    public String getMeterGroup() {
+        return meterGroup;
+    }
+
+    public void setMeterGroup(String meterGroup) {
+        this.meterGroup = meterGroup == null ? null : meterGroup.trim();
+    }
+
+    public String getMemo() {
+        return memo;
+    }
+
+    public void setMemo(String memo) {
+        this.memo = memo == null ? null : memo.trim();
+    }
+
+    public String getValueFlag() {
+        return valueFlag;
+    }
+
+    public void setValueFlag(String valueFlag) {
+        this.valueFlag = valueFlag == null ? null : valueFlag.trim();
+    }
+
+    public String getUpdateManNo() {
+        return updateManNo;
+    }
+
+    public void setUpdateManNo(String updateManNo) {
+        this.updateManNo = updateManNo == null ? null : updateManNo.trim();
+    }
+
+    public String getUpdateManName() {
+        return updateManName;
+    }
+
+    public void setUpdateManName(String updateManName) {
+        this.updateManName = updateManName == null ? null : updateManName.trim();
+    }
+
+    public Date getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Date updateTime) {
+        this.updateTime = updateTime;
+    }
+
+    public String getCheckFlag() {
+        return checkFlag;
+    }
+
+    public void setCheckFlag(String checkFlag) {
+        this.checkFlag = checkFlag == null ? null : checkFlag.trim();
+    }
+
+    public String getCheckManNo() {
+        return checkManNo;
+    }
+
+    public void setCheckManNo(String checkManNo) {
+        this.checkManNo = checkManNo == null ? null : checkManNo.trim();
+    }
+
+    public String getCheckManName() {
+        return checkManName;
+    }
+
+    public void setCheckManName(String checkManName) {
+        this.checkManName = checkManName == null ? null : checkManName.trim();
+    }
+
+    public Date getCheckTime() {
+        return checkTime;
+    }
+
+    public void setCheckTime(Date checkTime) {
+        this.checkTime = checkTime;
+    }
+
+    public String getMeterMode() {
+        return meterMode;
+    }
+
+    public void setMeterMode(String meterMode) {
+        this.meterMode = meterMode == null ? null : meterMode.trim();
+    }
+
+    public String getRailwayTypeNo() {
+        return railwayTypeNo;
+    }
+
+    public void setRailwayTypeNo(String railwayTypeNo) {
+        this.railwayTypeNo = railwayTypeNo == null ? null : railwayTypeNo.trim();
+    }
+
+    public String getRailwayTypeName() {
+        return railwayTypeName;
+    }
+
+    public void setRailwayTypeName(String railwayTypeName) {
+        this.railwayTypeName = railwayTypeName == null ? null : railwayTypeName.trim();
+    }
+
+    public String getIsChemical() {
+        return isChemical;
+    }
+
+    public void setIsChemical(String isChemical) {
+        this.isChemical = isChemical == null ? null : isChemical.trim();
+    }
+
+    public BigDecimal getLimitWeight() {
+        return limitWeight;
+    }
+
+    public void setLimitWeight(BigDecimal limitWeight) {
+        this.limitWeight = limitWeight;
+    }
+
+    public String getRailwayModelNo() {
+        return railwayModelNo;
+    }
+
+    public void setRailwayModelNo(String railwayModelNo) {
+        this.railwayModelNo = railwayModelNo == null ? null : railwayModelNo.trim();
+    }
+
+    public String getRailwayModelName() {
+        return railwayModelName;
+    }
+
+    public void setRailwayModelName(String railwayModelName) {
+        this.railwayModelName = railwayModelName == null ? null : railwayModelName.trim();
+    }
+
+    public BigDecimal getRailwayFactoryWeight() {
+        return railwayFactoryWeight;
+    }
+
+    public void setRailwayFactoryWeight(BigDecimal railwayFactoryWeight) {
+        this.railwayFactoryWeight = railwayFactoryWeight;
+    }
+
+    public BigDecimal getWaterNum() {
+        return waterNum;
+    }
+
+    public void setWaterNum(BigDecimal waterNum) {
+        this.waterNum = waterNum;
+    }
+
+    public String getArrival() {
+        return arrival;
+    }
+
+    public void setArrival(String arrival) {
+        this.arrival = arrival == null ? null : arrival.trim();
+    }
+
+    public String getStation() {
+        return station;
+    }
+
+    public void setStation(String station) {
+        this.station = station == null ? null : station.trim();
+    }
+
+    public String getSourceArea() {
+        return sourceArea;
+    }
+
+    public void setSourceArea(String sourceArea) {
+        this.sourceArea = sourceArea == null ? null : sourceArea.trim();
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", actualFirstNo=").append(actualFirstNo);
+        sb.append(", predictionNo=").append(predictionNo);
+        sb.append(", noticeNo=").append(noticeNo);
+        sb.append(", railwayNo=").append(railwayNo);
+        sb.append(", railwayCarriageNo=").append(railwayCarriageNo);
+        sb.append(", railwayWorkNo=").append(railwayWorkNo);
+        sb.append(", railwaySpeed=").append(railwaySpeed);
+        sb.append(", matterNo=").append(matterNo);
+        sb.append(", matterName=").append(matterName);
+        sb.append(", contractNo=").append(contractNo);
+        sb.append(", batchNo=").append(batchNo);
+        sb.append(", customerSupplierNo=").append(customerSupplierNo);
+        sb.append(", customerSupplierName=").append(customerSupplierName);
+        sb.append(", forwardingUnitNo=").append(forwardingUnitNo);
+        sb.append(", forwardingUnitName=").append(forwardingUnitName);
+        sb.append(", receivingUintNo=").append(receivingUintNo);
+        sb.append(", receivingUintName=").append(receivingUintName);
+        sb.append(", materialNo=").append(materialNo);
+        sb.append(", materialName=").append(materialName);
+        sb.append(", specNo=").append(specNo);
+        sb.append(", specName=").append(specName);
+        sb.append(", shipmentGrossWeight=").append(shipmentGrossWeight);
+        sb.append(", shipmentNetWeight=").append(shipmentNetWeight);
+        sb.append(", shipmentNum=").append(shipmentNum);
+        sb.append(", bindCardNo=").append(bindCardNo);
+        sb.append(", loadPointNo=").append(loadPointNo);
+        sb.append(", loadPointName=").append(loadPointName);
+        sb.append(", sampleNo=").append(sampleNo);
+        sb.append(", sampleVoucher=").append(sampleVoucher);
+        sb.append(", carrierUnitNo=").append(carrierUnitNo);
+        sb.append(", carrierUnitName=").append(carrierUnitName);
+        sb.append(", predictionType=").append(predictionType);
+        sb.append(", predictionCombination=").append(predictionCombination);
+        sb.append(", meterTypeNo=").append(meterTypeNo);
+        sb.append(", meterTypeName=").append(meterTypeName);
+        sb.append(", meterProcessNo=").append(meterProcessNo);
+        sb.append(", meterProcessEditionNo=").append(meterProcessEditionNo);
+        sb.append(", meterWeight=").append(meterWeight);
+        sb.append(", weightType=").append(weightType);
+        sb.append(", meterSortWeight=").append(meterSortWeight);
+        sb.append(", meterBalanceWeight=").append(meterBalanceWeight);
+        sb.append(", createManNo=").append(createManNo);
+        sb.append(", createManName=").append(createManName);
+        sb.append(", createTime=").append(createTime);
+        sb.append(", baseSpotNo=").append(baseSpotNo);
+        sb.append(", baseSpotName=").append(baseSpotName);
+        sb.append(", meterClass=").append(meterClass);
+        sb.append(", meterGroup=").append(meterGroup);
+        sb.append(", memo=").append(memo);
+        sb.append(", valueFlag=").append(valueFlag);
+        sb.append(", updateManNo=").append(updateManNo);
+        sb.append(", updateManName=").append(updateManName);
+        sb.append(", updateTime=").append(updateTime);
+        sb.append(", checkFlag=").append(checkFlag);
+        sb.append(", checkManNo=").append(checkManNo);
+        sb.append(", checkManName=").append(checkManName);
+        sb.append(", checkTime=").append(checkTime);
+        sb.append(", meterMode=").append(meterMode);
+        sb.append(", railwayTypeNo=").append(railwayTypeNo);
+        sb.append(", railwayTypeName=").append(railwayTypeName);
+        sb.append(", isChemical=").append(isChemical);
+        sb.append(", limitWeight=").append(limitWeight);
+        sb.append(", railwayModelNo=").append(railwayModelNo);
+        sb.append(", railwayModelName=").append(railwayModelName);
+        sb.append(", railwayFactoryWeight=").append(railwayFactoryWeight);
+        sb.append(", waterNum=").append(waterNum);
+        sb.append(", arrival=").append(arrival);
+        sb.append(", station=").append(station);
+        sb.append(", sourceArea=").append(sourceArea);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 23 - 0
src/main/java/com/steerinfo/meterwork/meterworkhookactfirst/service/IMeterWorkHookActFirstService.java

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

+ 36 - 0
src/main/java/com/steerinfo/meterwork/meterworkhookactfirst/service/impl/MeterWorkHookActFirstServiceImpl.java

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

+ 110 - 0
src/main/java/com/steerinfo/meterwork/meterworkhookactual/controller/MeterWorkHookActualController.java

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

+ 10 - 0
src/main/java/com/steerinfo/meterwork/meterworkhookactual/mapper/MeterWorkHookActualMapper.java

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

+ 2043 - 0
src/main/java/com/steerinfo/meterwork/meterworkhookactual/mapper/MeterWorkHookActualMapper.xml

@@ -0,0 +1,2043 @@
+<?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.meterworkhookactual.mapper.MeterWorkHookActualMapper">
+  <resultMap id="BaseResultMap" type="com.steerinfo.meterwork.meterworkhookactual.model.MeterWorkHookActual">
+    <id column="ACTUAL_NO" jdbcType="VARCHAR" property="actualNo" />
+    <result column="PREDICTION_NO" jdbcType="VARCHAR" property="predictionNo" />
+    <result column="NOTICE_NO" jdbcType="VARCHAR" property="noticeNo" />
+    <result column="RAILWAY_NO" jdbcType="VARCHAR" property="railwayNo" />
+    <result column="RAILWAY_CARRIAGE_NO" jdbcType="VARCHAR" property="railwayCarriageNo" />
+    <result column="MATTER_NO" jdbcType="VARCHAR" property="matterNo" />
+    <result column="MATTER_NAME" jdbcType="VARCHAR" property="matterName" />
+    <result column="CONTRACT_NO" jdbcType="VARCHAR" property="contractNo" />
+    <result column="BATCH_NO" jdbcType="VARCHAR" property="batchNo" />
+    <result column="CUSTOMER_SUPPLIER_NO" jdbcType="VARCHAR" property="customerSupplierNo" />
+    <result column="CUSTOMER_SUPPLIER_NAME" jdbcType="VARCHAR" property="customerSupplierName" />
+    <result column="FORWARDING_UNIT_NO" jdbcType="VARCHAR" property="forwardingUnitNo" />
+    <result column="FORWARDING_UNIT_NAME" jdbcType="VARCHAR" property="forwardingUnitName" />
+    <result column="RECEIVING_UINT_NO" jdbcType="VARCHAR" property="receivingUintNo" />
+    <result column="RECEIVING_UINT_NAME" jdbcType="VARCHAR" property="receivingUintName" />
+    <result column="MATERIAL_NO" jdbcType="VARCHAR" property="materialNo" />
+    <result column="MATERIAL_NAME" jdbcType="VARCHAR" property="materialName" />
+    <result column="SPEC_NO" jdbcType="VARCHAR" property="specNo" />
+    <result column="SPEC_NAME" jdbcType="VARCHAR" property="specName" />
+    <result column="LOAD_POINT_NO" jdbcType="VARCHAR" property="loadPointNo" />
+    <result column="LOAD_POINT_NAME" jdbcType="VARCHAR" property="loadPointName" />
+    <result column="SAMPLE_VOUCHER" jdbcType="VARCHAR" property="sampleVoucher" />
+    <result column="CARRIER_UNIT_NO" jdbcType="VARCHAR" property="carrierUnitNo" />
+    <result column="CARRIER_UNIT_NAME" jdbcType="VARCHAR" property="carrierUnitName" />
+    <result column="METER_TYPE_NO" jdbcType="VARCHAR" property="meterTypeNo" />
+    <result column="METER_TYPE_NAME" jdbcType="VARCHAR" property="meterTypeName" />
+    <result column="METER_PROCESS_NO" jdbcType="VARCHAR" property="meterProcessNo" />
+    <result column="METER_PROCESS_EDITION_NO" jdbcType="VARCHAR" property="meterProcessEditionNo" />
+    <result column="ACTUAL_FIRST1_NO" jdbcType="VARCHAR" property="actualFirst1No" />
+    <result column="GROSS_WEIGHT" jdbcType="DECIMAL" property="grossWeight" />
+    <result column="GROSS_MAN_NO" jdbcType="VARCHAR" property="grossManNo" />
+    <result column="GROSS_MAN_NAME" jdbcType="VARCHAR" property="grossManName" />
+    <result column="GROSS_TIME" jdbcType="TIMESTAMP" property="grossTime" />
+    <result column="BASE_SPOT1_NO" jdbcType="VARCHAR" property="baseSpot1No" />
+    <result column="BASE_SPOT1_NAME" jdbcType="VARCHAR" property="baseSpot1Name" />
+    <result column="GROSS_CLASS" jdbcType="VARCHAR" property="grossClass" />
+    <result column="GROSS_GROUP" jdbcType="VARCHAR" property="grossGroup" />
+    <result column="GROSS_MODE" jdbcType="VARCHAR" property="grossMode" />
+    <result column="ACTUAL_FIRST2_NO" jdbcType="VARCHAR" property="actualFirst2No" />
+    <result column="TARE_WEIGHT" jdbcType="DECIMAL" property="tareWeight" />
+    <result column="TARE_MAN_NO" jdbcType="VARCHAR" property="tareManNo" />
+    <result column="TARE_MAN_NAME" jdbcType="VARCHAR" property="tareManName" />
+    <result column="TARE_TIME" jdbcType="TIMESTAMP" property="tareTime" />
+    <result column="BASE_SPOT2_NO" jdbcType="VARCHAR" property="baseSpot2No" />
+    <result column="BASE_SPOT2_NAME" jdbcType="VARCHAR" property="baseSpot2Name" />
+    <result column="TARE_CLASS" jdbcType="VARCHAR" property="tareClass" />
+    <result column="TARE_GROUP" jdbcType="VARCHAR" property="tareGroup" />
+    <result column="TARE_MODE" jdbcType="VARCHAR" property="tareMode" />
+    <result column="NET_WEIGHT" jdbcType="DECIMAL" property="netWeight" />
+    <result column="NET_MAN_NO" jdbcType="VARCHAR" property="netManNo" />
+    <result column="NET_MAN_NAME" jdbcType="VARCHAR" property="netManName" />
+    <result column="NET_TIME" jdbcType="TIMESTAMP" property="netTime" />
+    <result column="NET_SPOT3_NO" jdbcType="VARCHAR" property="netSpot3No" />
+    <result column="NET_SPOT3_NAME" jdbcType="VARCHAR" property="netSpot3Name" />
+    <result column="NET_CLASS" jdbcType="VARCHAR" property="netClass" />
+    <result column="NET_GROUP" jdbcType="VARCHAR" property="netGroup" />
+    <result column="NET_MODE" jdbcType="VARCHAR" property="netMode" />
+    <result column="VALUE_FLAG" jdbcType="VARCHAR" property="valueFlag" />
+    <result column="UPLOAD_FLAG" jdbcType="VARCHAR" property="uploadFlag" />
+    <result column="CHECK_MAN_NO" jdbcType="VARCHAR" property="checkManNo" />
+    <result column="CHECK_MAN_NAME" jdbcType="VARCHAR" property="checkManName" />
+    <result column="CHECK_TIME" jdbcType="TIMESTAMP" property="checkTime" />
+    <result column="UPLOAD_MAN_NO" jdbcType="VARCHAR" property="uploadManNo" />
+    <result column="UPLOAD_MAN_NAME" jdbcType="VARCHAR" property="uploadManName" />
+    <result column="UPLOAD_TIME" jdbcType="TIMESTAMP" property="uploadTime" />
+    <result column="SAMPLE_NO" jdbcType="VARCHAR" property="sampleNo" />
+    <result column="RAILWAY_TYPE_NO" jdbcType="VARCHAR" property="railwayTypeNo" />
+    <result column="RAILWAY_TYPE_NAME" jdbcType="VARCHAR" property="railwayTypeName" />
+    <result column="MEMO" jdbcType="VARCHAR" property="memo" />
+    <result column="WATER_NUM" jdbcType="DECIMAL" property="waterNum" />
+    <result column="ARRIVAL" jdbcType="VARCHAR" property="arrival" />
+    <result column="STATION" jdbcType="VARCHAR" property="station" />
+    <result column="UPDATE_MAN_NO" jdbcType="VARCHAR" property="updateManNo" />
+    <result column="UPDATE_MAN_NAME" jdbcType="VARCHAR" property="updateManName" />
+    <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
+    <result column="SOURCE_AREA" jdbcType="VARCHAR" property="sourceArea" />
+  </resultMap>
+  <sql id="columns">
+    ACTUAL_NO, PREDICTION_NO, NOTICE_NO, RAILWAY_NO, RAILWAY_CARRIAGE_NO, MATTER_NO, 
+    MATTER_NAME, CONTRACT_NO, BATCH_NO, CUSTOMER_SUPPLIER_NO, CUSTOMER_SUPPLIER_NAME, 
+    FORWARDING_UNIT_NO, FORWARDING_UNIT_NAME, RECEIVING_UINT_NO, RECEIVING_UINT_NAME, 
+    MATERIAL_NO, MATERIAL_NAME, SPEC_NO, SPEC_NAME, LOAD_POINT_NO, LOAD_POINT_NAME, SAMPLE_VOUCHER, 
+    CARRIER_UNIT_NO, CARRIER_UNIT_NAME, METER_TYPE_NO, METER_TYPE_NAME, METER_PROCESS_NO, 
+    METER_PROCESS_EDITION_NO, ACTUAL_FIRST1_NO, GROSS_WEIGHT, GROSS_MAN_NO, GROSS_MAN_NAME, 
+    GROSS_TIME, BASE_SPOT1_NO, BASE_SPOT1_NAME, GROSS_CLASS, GROSS_GROUP, GROSS_MODE, 
+    ACTUAL_FIRST2_NO, TARE_WEIGHT, TARE_MAN_NO, TARE_MAN_NAME, TARE_TIME, BASE_SPOT2_NO, 
+    BASE_SPOT2_NAME, TARE_CLASS, TARE_GROUP, TARE_MODE, NET_WEIGHT, NET_MAN_NO, NET_MAN_NAME, 
+    NET_TIME, NET_SPOT3_NO, NET_SPOT3_NAME, NET_CLASS, NET_GROUP, NET_MODE, VALUE_FLAG, 
+    UPLOAD_FLAG, CHECK_MAN_NO, CHECK_MAN_NAME, CHECK_TIME, UPLOAD_MAN_NO, UPLOAD_MAN_NAME, 
+    UPLOAD_TIME, SAMPLE_NO, RAILWAY_TYPE_NO, RAILWAY_TYPE_NAME, MEMO, WATER_NUM, ARRIVAL, 
+    STATION, UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME, SOURCE_AREA
+  </sql>
+  <sql id="columns_alias">
+    t.ACTUAL_NO, t.PREDICTION_NO, t.NOTICE_NO, t.RAILWAY_NO, t.RAILWAY_CARRIAGE_NO, t.MATTER_NO, 
+    t.MATTER_NAME, t.CONTRACT_NO, t.BATCH_NO, t.CUSTOMER_SUPPLIER_NO, t.CUSTOMER_SUPPLIER_NAME, 
+    t.FORWARDING_UNIT_NO, t.FORWARDING_UNIT_NAME, t.RECEIVING_UINT_NO, t.RECEIVING_UINT_NAME, 
+    t.MATERIAL_NO, t.MATERIAL_NAME, t.SPEC_NO, t.SPEC_NAME, t.LOAD_POINT_NO, t.LOAD_POINT_NAME, 
+    t.SAMPLE_VOUCHER, t.CARRIER_UNIT_NO, t.CARRIER_UNIT_NAME, t.METER_TYPE_NO, t.METER_TYPE_NAME, 
+    t.METER_PROCESS_NO, t.METER_PROCESS_EDITION_NO, t.ACTUAL_FIRST1_NO, t.GROSS_WEIGHT, 
+    t.GROSS_MAN_NO, t.GROSS_MAN_NAME, t.GROSS_TIME, t.BASE_SPOT1_NO, t.BASE_SPOT1_NAME, 
+    t.GROSS_CLASS, t.GROSS_GROUP, t.GROSS_MODE, t.ACTUAL_FIRST2_NO, t.TARE_WEIGHT, t.TARE_MAN_NO, 
+    t.TARE_MAN_NAME, t.TARE_TIME, t.BASE_SPOT2_NO, t.BASE_SPOT2_NAME, t.TARE_CLASS, t.TARE_GROUP, 
+    t.TARE_MODE, t.NET_WEIGHT, t.NET_MAN_NO, t.NET_MAN_NAME, t.NET_TIME, t.NET_SPOT3_NO, 
+    t.NET_SPOT3_NAME, t.NET_CLASS, t.NET_GROUP, t.NET_MODE, t.VALUE_FLAG, t.UPLOAD_FLAG, 
+    t.CHECK_MAN_NO, t.CHECK_MAN_NAME, t.CHECK_TIME, t.UPLOAD_MAN_NO, t.UPLOAD_MAN_NAME, 
+    t.UPLOAD_TIME, t.SAMPLE_NO, t.RAILWAY_TYPE_NO, t.RAILWAY_TYPE_NAME, t.MEMO, t.WATER_NUM, 
+    t.ARRIVAL, t.STATION, t.UPDATE_MAN_NO, t.UPDATE_MAN_NAME, t.UPDATE_TIME, t.SOURCE_AREA
+  </sql>
+  <sql id="select">
+    SELECT <include refid="columns"/> FROM METER_WORK_HOOK_ACTUAL
+  </sql>
+  <sql id="select_alias">
+    SELECT <include refid="columns_alias"/> FROM METER_WORK_HOOK_ACTUAL t
+  </sql>
+  <sql id="where">
+    <where> 
+      <if test="actualNo != null and actualNo != ''">
+        and ACTUAL_NO = #{actualNo}
+      </if>
+      <if test="predictionNo != null and predictionNo != ''">
+        and PREDICTION_NO = #{predictionNo}
+      </if>
+      <if test="noticeNo != null and noticeNo != ''">
+        and NOTICE_NO = #{noticeNo}
+      </if>
+      <if test="railwayNo != null and railwayNo != ''">
+        and RAILWAY_NO = #{railwayNo}
+      </if>
+      <if test="railwayCarriageNo != null and railwayCarriageNo != ''">
+        and RAILWAY_CARRIAGE_NO = #{railwayCarriageNo}
+      </if>
+      <if test="matterNo != null and matterNo != ''">
+        and MATTER_NO = #{matterNo}
+      </if>
+      <if test="matterName != null and matterName != ''">
+        and MATTER_NAME = #{matterName}
+      </if>
+      <if test="contractNo != null and contractNo != ''">
+        and CONTRACT_NO = #{contractNo}
+      </if>
+      <if test="batchNo != null and batchNo != ''">
+        and BATCH_NO = #{batchNo}
+      </if>
+      <if test="customerSupplierNo != null and customerSupplierNo != ''">
+        and CUSTOMER_SUPPLIER_NO = #{customerSupplierNo}
+      </if>
+      <if test="customerSupplierName != null and customerSupplierName != ''">
+        and CUSTOMER_SUPPLIER_NAME = #{customerSupplierName}
+      </if>
+      <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
+        and FORWARDING_UNIT_NO = #{forwardingUnitNo}
+      </if>
+      <if test="forwardingUnitName != null and forwardingUnitName != ''">
+        and FORWARDING_UNIT_NAME = #{forwardingUnitName}
+      </if>
+      <if test="receivingUintNo != null and receivingUintNo != ''">
+        and RECEIVING_UINT_NO = #{receivingUintNo}
+      </if>
+      <if test="receivingUintName != null and receivingUintName != ''">
+        and RECEIVING_UINT_NAME = #{receivingUintName}
+      </if>
+      <if test="materialNo != null and materialNo != ''">
+        and MATERIAL_NO = #{materialNo}
+      </if>
+      <if test="materialName != null and materialName != ''">
+        and MATERIAL_NAME = #{materialName}
+      </if>
+      <if test="specNo != null and specNo != ''">
+        and SPEC_NO = #{specNo}
+      </if>
+      <if test="specName != null and specName != ''">
+        and SPEC_NAME = #{specName}
+      </if>
+      <if test="loadPointNo != null and loadPointNo != ''">
+        and LOAD_POINT_NO = #{loadPointNo}
+      </if>
+      <if test="loadPointName != null and loadPointName != ''">
+        and LOAD_POINT_NAME = #{loadPointName}
+      </if>
+      <if test="sampleVoucher != null and sampleVoucher != ''">
+        and SAMPLE_VOUCHER = #{sampleVoucher}
+      </if>
+      <if test="carrierUnitNo != null and carrierUnitNo != ''">
+        and CARRIER_UNIT_NO = #{carrierUnitNo}
+      </if>
+      <if test="carrierUnitName != null and carrierUnitName != ''">
+        and CARRIER_UNIT_NAME = #{carrierUnitName}
+      </if>
+      <if test="meterTypeNo != null and meterTypeNo != ''">
+        and METER_TYPE_NO = #{meterTypeNo}
+      </if>
+      <if test="meterTypeName != null and meterTypeName != ''">
+        and METER_TYPE_NAME = #{meterTypeName}
+      </if>
+      <if test="meterProcessNo != null and meterProcessNo != ''">
+        and METER_PROCESS_NO = #{meterProcessNo}
+      </if>
+      <if test="meterProcessEditionNo != null and meterProcessEditionNo != ''">
+        and METER_PROCESS_EDITION_NO = #{meterProcessEditionNo}
+      </if>
+      <if test="actualFirst1No != null and actualFirst1No != ''">
+        and ACTUAL_FIRST1_NO = #{actualFirst1No}
+      </if>
+      <if test="grossWeight != null">
+        and GROSS_WEIGHT = #{grossWeight}
+      </if>
+      <if test="grossManNo != null and grossManNo != ''">
+        and GROSS_MAN_NO = #{grossManNo}
+      </if>
+      <if test="grossManName != null and grossManName != ''">
+        and GROSS_MAN_NAME = #{grossManName}
+      </if>
+      <if test="grossTime != null">
+        and TO_CHAR(GROSS_TIME,'yyyy-MM-dd') = #{grossTime}
+      </if>
+      <if test="baseSpot1No != null and baseSpot1No != ''">
+        and BASE_SPOT1_NO = #{baseSpot1No}
+      </if>
+      <if test="baseSpot1Name != null and baseSpot1Name != ''">
+        and BASE_SPOT1_NAME = #{baseSpot1Name}
+      </if>
+      <if test="grossClass != null and grossClass != ''">
+        and GROSS_CLASS = #{grossClass}
+      </if>
+      <if test="grossGroup != null and grossGroup != ''">
+        and GROSS_GROUP = #{grossGroup}
+      </if>
+      <if test="grossMode != null and grossMode != ''">
+        and GROSS_MODE = #{grossMode}
+      </if>
+      <if test="actualFirst2No != null and actualFirst2No != ''">
+        and ACTUAL_FIRST2_NO = #{actualFirst2No}
+      </if>
+      <if test="tareWeight != null">
+        and TARE_WEIGHT = #{tareWeight}
+      </if>
+      <if test="tareManNo != null and tareManNo != ''">
+        and TARE_MAN_NO = #{tareManNo}
+      </if>
+      <if test="tareManName != null and tareManName != ''">
+        and TARE_MAN_NAME = #{tareManName}
+      </if>
+      <if test="tareTime != null">
+        and TO_CHAR(TARE_TIME,'yyyy-MM-dd') = #{tareTime}
+      </if>
+      <if test="baseSpot2No != null and baseSpot2No != ''">
+        and BASE_SPOT2_NO = #{baseSpot2No}
+      </if>
+      <if test="baseSpot2Name != null and baseSpot2Name != ''">
+        and BASE_SPOT2_NAME = #{baseSpot2Name}
+      </if>
+      <if test="tareClass != null and tareClass != ''">
+        and TARE_CLASS = #{tareClass}
+      </if>
+      <if test="tareGroup != null and tareGroup != ''">
+        and TARE_GROUP = #{tareGroup}
+      </if>
+      <if test="tareMode != null and tareMode != ''">
+        and TARE_MODE = #{tareMode}
+      </if>
+      <if test="netWeight != null">
+        and NET_WEIGHT = #{netWeight}
+      </if>
+      <if test="netManNo != null and netManNo != ''">
+        and NET_MAN_NO = #{netManNo}
+      </if>
+      <if test="netManName != null and netManName != ''">
+        and NET_MAN_NAME = #{netManName}
+      </if>
+      <if test="netTime != null">
+        and TO_CHAR(NET_TIME,'yyyy-MM-dd') = #{netTime}
+      </if>
+      <if test="netSpot3No != null and netSpot3No != ''">
+        and NET_SPOT3_NO = #{netSpot3No}
+      </if>
+      <if test="netSpot3Name != null and netSpot3Name != ''">
+        and NET_SPOT3_NAME = #{netSpot3Name}
+      </if>
+      <if test="netClass != null and netClass != ''">
+        and NET_CLASS = #{netClass}
+      </if>
+      <if test="netGroup != null and netGroup != ''">
+        and NET_GROUP = #{netGroup}
+      </if>
+      <if test="netMode != null and netMode != ''">
+        and NET_MODE = #{netMode}
+      </if>
+      <if test="valueFlag != null and valueFlag != ''">
+        and VALUE_FLAG = #{valueFlag}
+      </if>
+      <if test="uploadFlag != null and uploadFlag != ''">
+        and UPLOAD_FLAG = #{uploadFlag}
+      </if>
+      <if test="checkManNo != null and checkManNo != ''">
+        and CHECK_MAN_NO = #{checkManNo}
+      </if>
+      <if test="checkManName != null and checkManName != ''">
+        and CHECK_MAN_NAME = #{checkManName}
+      </if>
+      <if test="checkTime != null">
+        and TO_CHAR(CHECK_TIME,'yyyy-MM-dd') = #{checkTime}
+      </if>
+      <if test="uploadManNo != null and uploadManNo != ''">
+        and UPLOAD_MAN_NO = #{uploadManNo}
+      </if>
+      <if test="uploadManName != null and uploadManName != ''">
+        and UPLOAD_MAN_NAME = #{uploadManName}
+      </if>
+      <if test="uploadTime != null">
+        and TO_CHAR(UPLOAD_TIME,'yyyy-MM-dd') = #{uploadTime}
+      </if>
+      <if test="sampleNo != null and sampleNo != ''">
+        and SAMPLE_NO = #{sampleNo}
+      </if>
+      <if test="railwayTypeNo != null and railwayTypeNo != ''">
+        and RAILWAY_TYPE_NO = #{railwayTypeNo}
+      </if>
+      <if test="railwayTypeName != null and railwayTypeName != ''">
+        and RAILWAY_TYPE_NAME = #{railwayTypeName}
+      </if>
+      <if test="memo != null and memo != ''">
+        and MEMO = #{memo}
+      </if>
+      <if test="waterNum != null">
+        and WATER_NUM = #{waterNum}
+      </if>
+      <if test="arrival != null and arrival != ''">
+        and ARRIVAL = #{arrival}
+      </if>
+      <if test="station != null and station != ''">
+        and STATION = #{station}
+      </if>
+      <if test="updateManNo != null and updateManNo != ''">
+        and UPDATE_MAN_NO = #{updateManNo}
+      </if>
+      <if test="updateManName != null and updateManName != ''">
+        and UPDATE_MAN_NAME = #{updateManName}
+      </if>
+      <if test="updateTime != null">
+        and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
+      </if>
+      <if test="sourceArea != null and sourceArea != ''">
+        and SOURCE_AREA = #{sourceArea}
+      </if>
+    </where>
+  </sql>
+  <sql id="whereLike">
+    <where> 
+      <if test="actualNo != null and actualNo != ''">
+        and ACTUAL_NO LIKE '%${actualNo}%'
+      </if>
+      <if test="predictionNo != null and predictionNo != ''">
+        and PREDICTION_NO LIKE '%${predictionNo}%'
+      </if>
+      <if test="noticeNo != null and noticeNo != ''">
+        and NOTICE_NO LIKE '%${noticeNo}%'
+      </if>
+      <if test="railwayNo != null and railwayNo != ''">
+        and RAILWAY_NO LIKE '%${railwayNo}%'
+      </if>
+      <if test="railwayCarriageNo != null and railwayCarriageNo != ''">
+        and RAILWAY_CARRIAGE_NO LIKE '%${railwayCarriageNo}%'
+      </if>
+      <if test="matterNo != null and matterNo != ''">
+        and MATTER_NO LIKE '%${matterNo}%'
+      </if>
+      <if test="matterName != null and matterName != ''">
+        and MATTER_NAME LIKE '%${matterName}%'
+      </if>
+      <if test="contractNo != null and contractNo != ''">
+        and CONTRACT_NO LIKE '%${contractNo}%'
+      </if>
+      <if test="batchNo != null and batchNo != ''">
+        and BATCH_NO LIKE '%${batchNo}%'
+      </if>
+      <if test="customerSupplierNo != null and customerSupplierNo != ''">
+        and CUSTOMER_SUPPLIER_NO LIKE '%${customerSupplierNo}%'
+      </if>
+      <if test="customerSupplierName != null and customerSupplierName != ''">
+        and CUSTOMER_SUPPLIER_NAME LIKE '%${customerSupplierName}%'
+      </if>
+      <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
+        and FORWARDING_UNIT_NO LIKE '%${forwardingUnitNo}%'
+      </if>
+      <if test="forwardingUnitName != null and forwardingUnitName != ''">
+        and FORWARDING_UNIT_NAME LIKE '%${forwardingUnitName}%'
+      </if>
+      <if test="receivingUintNo != null and receivingUintNo != ''">
+        and RECEIVING_UINT_NO LIKE '%${receivingUintNo}%'
+      </if>
+      <if test="receivingUintName != null and receivingUintName != ''">
+        and RECEIVING_UINT_NAME LIKE '%${receivingUintName}%'
+      </if>
+      <if test="materialNo != null and materialNo != ''">
+        and MATERIAL_NO LIKE '%${materialNo}%'
+      </if>
+      <if test="materialName != null and materialName != ''">
+        and MATERIAL_NAME LIKE '%${materialName}%'
+      </if>
+      <if test="specNo != null and specNo != ''">
+        and SPEC_NO LIKE '%${specNo}%'
+      </if>
+      <if test="specName != null and specName != ''">
+        and SPEC_NAME LIKE '%${specName}%'
+      </if>
+      <if test="loadPointNo != null and loadPointNo != ''">
+        and LOAD_POINT_NO LIKE '%${loadPointNo}%'
+      </if>
+      <if test="loadPointName != null and loadPointName != ''">
+        and LOAD_POINT_NAME LIKE '%${loadPointName}%'
+      </if>
+      <if test="sampleVoucher != null and sampleVoucher != ''">
+        and SAMPLE_VOUCHER LIKE '%${sampleVoucher}%'
+      </if>
+      <if test="carrierUnitNo != null and carrierUnitNo != ''">
+        and CARRIER_UNIT_NO LIKE '%${carrierUnitNo}%'
+      </if>
+      <if test="carrierUnitName != null and carrierUnitName != ''">
+        and CARRIER_UNIT_NAME LIKE '%${carrierUnitName}%'
+      </if>
+      <if test="meterTypeNo != null and meterTypeNo != ''">
+        and METER_TYPE_NO LIKE '%${meterTypeNo}%'
+      </if>
+      <if test="meterTypeName != null and meterTypeName != ''">
+        and METER_TYPE_NAME LIKE '%${meterTypeName}%'
+      </if>
+      <if test="meterProcessNo != null and meterProcessNo != ''">
+        and METER_PROCESS_NO LIKE '%${meterProcessNo}%'
+      </if>
+      <if test="meterProcessEditionNo != null and meterProcessEditionNo != ''">
+        and METER_PROCESS_EDITION_NO LIKE '%${meterProcessEditionNo}%'
+      </if>
+      <if test="actualFirst1No != null and actualFirst1No != ''">
+        and ACTUAL_FIRST1_NO LIKE '%${actualFirst1No}%'
+      </if>
+      <if test="grossWeight != null">
+        and GROSS_WEIGHT = #{grossWeight}
+      </if>
+      <if test="grossManNo != null and grossManNo != ''">
+        and GROSS_MAN_NO LIKE '%${grossManNo}%'
+      </if>
+      <if test="grossManName != null and grossManName != ''">
+        and GROSS_MAN_NAME LIKE '%${grossManName}%'
+      </if>
+      <if test="grossTime != null">
+        and TO_CHAR(GROSS_TIME,'yyyy-MM-dd') = #{grossTime}
+      </if>
+      <if test="baseSpot1No != null and baseSpot1No != ''">
+        and BASE_SPOT1_NO LIKE '%${baseSpot1No}%'
+      </if>
+      <if test="baseSpot1Name != null and baseSpot1Name != ''">
+        and BASE_SPOT1_NAME LIKE '%${baseSpot1Name}%'
+      </if>
+      <if test="grossClass != null and grossClass != ''">
+        and GROSS_CLASS LIKE '%${grossClass}%'
+      </if>
+      <if test="grossGroup != null and grossGroup != ''">
+        and GROSS_GROUP LIKE '%${grossGroup}%'
+      </if>
+      <if test="grossMode != null and grossMode != ''">
+        and GROSS_MODE LIKE '%${grossMode}%'
+      </if>
+      <if test="actualFirst2No != null and actualFirst2No != ''">
+        and ACTUAL_FIRST2_NO LIKE '%${actualFirst2No}%'
+      </if>
+      <if test="tareWeight != null">
+        and TARE_WEIGHT = #{tareWeight}
+      </if>
+      <if test="tareManNo != null and tareManNo != ''">
+        and TARE_MAN_NO LIKE '%${tareManNo}%'
+      </if>
+      <if test="tareManName != null and tareManName != ''">
+        and TARE_MAN_NAME LIKE '%${tareManName}%'
+      </if>
+      <if test="tareTime != null">
+        and TO_CHAR(TARE_TIME,'yyyy-MM-dd') = #{tareTime}
+      </if>
+      <if test="baseSpot2No != null and baseSpot2No != ''">
+        and BASE_SPOT2_NO LIKE '%${baseSpot2No}%'
+      </if>
+      <if test="baseSpot2Name != null and baseSpot2Name != ''">
+        and BASE_SPOT2_NAME LIKE '%${baseSpot2Name}%'
+      </if>
+      <if test="tareClass != null and tareClass != ''">
+        and TARE_CLASS LIKE '%${tareClass}%'
+      </if>
+      <if test="tareGroup != null and tareGroup != ''">
+        and TARE_GROUP LIKE '%${tareGroup}%'
+      </if>
+      <if test="tareMode != null and tareMode != ''">
+        and TARE_MODE LIKE '%${tareMode}%'
+      </if>
+      <if test="netWeight != null">
+        and NET_WEIGHT = #{netWeight}
+      </if>
+      <if test="netManNo != null and netManNo != ''">
+        and NET_MAN_NO LIKE '%${netManNo}%'
+      </if>
+      <if test="netManName != null and netManName != ''">
+        and NET_MAN_NAME LIKE '%${netManName}%'
+      </if>
+      <if test="netTime != null">
+        and TO_CHAR(NET_TIME,'yyyy-MM-dd') = #{netTime}
+      </if>
+      <if test="netSpot3No != null and netSpot3No != ''">
+        and NET_SPOT3_NO LIKE '%${netSpot3No}%'
+      </if>
+      <if test="netSpot3Name != null and netSpot3Name != ''">
+        and NET_SPOT3_NAME LIKE '%${netSpot3Name}%'
+      </if>
+      <if test="netClass != null and netClass != ''">
+        and NET_CLASS LIKE '%${netClass}%'
+      </if>
+      <if test="netGroup != null and netGroup != ''">
+        and NET_GROUP LIKE '%${netGroup}%'
+      </if>
+      <if test="netMode != null and netMode != ''">
+        and NET_MODE LIKE '%${netMode}%'
+      </if>
+      <if test="valueFlag != null and valueFlag != ''">
+        and VALUE_FLAG LIKE '%${valueFlag}%'
+      </if>
+      <if test="uploadFlag != null and uploadFlag != ''">
+        and UPLOAD_FLAG LIKE '%${uploadFlag}%'
+      </if>
+      <if test="checkManNo != null and checkManNo != ''">
+        and CHECK_MAN_NO LIKE '%${checkManNo}%'
+      </if>
+      <if test="checkManName != null and checkManName != ''">
+        and CHECK_MAN_NAME LIKE '%${checkManName}%'
+      </if>
+      <if test="checkTime != null">
+        and TO_CHAR(CHECK_TIME,'yyyy-MM-dd') = #{checkTime}
+      </if>
+      <if test="uploadManNo != null and uploadManNo != ''">
+        and UPLOAD_MAN_NO LIKE '%${uploadManNo}%'
+      </if>
+      <if test="uploadManName != null and uploadManName != ''">
+        and UPLOAD_MAN_NAME LIKE '%${uploadManName}%'
+      </if>
+      <if test="uploadTime != null">
+        and TO_CHAR(UPLOAD_TIME,'yyyy-MM-dd') = #{uploadTime}
+      </if>
+      <if test="sampleNo != null and sampleNo != ''">
+        and SAMPLE_NO LIKE '%${sampleNo}%'
+      </if>
+      <if test="railwayTypeNo != null and railwayTypeNo != ''">
+        and RAILWAY_TYPE_NO LIKE '%${railwayTypeNo}%'
+      </if>
+      <if test="railwayTypeName != null and railwayTypeName != ''">
+        and RAILWAY_TYPE_NAME LIKE '%${railwayTypeName}%'
+      </if>
+      <if test="memo != null and memo != ''">
+        and MEMO LIKE '%${memo}%'
+      </if>
+      <if test="waterNum != null">
+        and WATER_NUM = #{waterNum}
+      </if>
+      <if test="arrival != null and arrival != ''">
+        and ARRIVAL LIKE '%${arrival}%'
+      </if>
+      <if test="station != null and station != ''">
+        and STATION LIKE '%${station}%'
+      </if>
+      <if test="updateManNo != null and updateManNo != ''">
+        and UPDATE_MAN_NO LIKE '%${updateManNo}%'
+      </if>
+      <if test="updateManName != null and updateManName != ''">
+        and UPDATE_MAN_NAME LIKE '%${updateManName}%'
+      </if>
+      <if test="updateTime != null">
+        and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
+      </if>
+      <if test="sourceArea != null and sourceArea != ''">
+        and SOURCE_AREA LIKE '%${sourceArea}%'
+      </if>
+    </where>
+  </sql>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
+    delete from METER_WORK_HOOK_ACTUAL
+    where ACTUAL_NO = #{actualNo,jdbcType=VARCHAR}
+  </delete>
+  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
+    delete from METER_WORK_HOOK_ACTUAL
+    where 1!=1 
+      <if test="predictionNo != null and predictionNo != ''">
+        or PREDICTION_NO = #{predictionNo}
+      </if>
+      <if test="noticeNo != null and noticeNo != ''">
+        or NOTICE_NO = #{noticeNo}
+      </if>
+      <if test="railwayNo != null and railwayNo != ''">
+        or RAILWAY_NO = #{railwayNo}
+      </if>
+      <if test="railwayCarriageNo != null and railwayCarriageNo != ''">
+        or RAILWAY_CARRIAGE_NO = #{railwayCarriageNo}
+      </if>
+      <if test="matterNo != null and matterNo != ''">
+        or MATTER_NO = #{matterNo}
+      </if>
+      <if test="matterName != null and matterName != ''">
+        or MATTER_NAME = #{matterName}
+      </if>
+      <if test="contractNo != null and contractNo != ''">
+        or CONTRACT_NO = #{contractNo}
+      </if>
+      <if test="batchNo != null and batchNo != ''">
+        or BATCH_NO = #{batchNo}
+      </if>
+      <if test="customerSupplierNo != null and customerSupplierNo != ''">
+        or CUSTOMER_SUPPLIER_NO = #{customerSupplierNo}
+      </if>
+      <if test="customerSupplierName != null and customerSupplierName != ''">
+        or CUSTOMER_SUPPLIER_NAME = #{customerSupplierName}
+      </if>
+      <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
+        or FORWARDING_UNIT_NO = #{forwardingUnitNo}
+      </if>
+      <if test="forwardingUnitName != null and forwardingUnitName != ''">
+        or FORWARDING_UNIT_NAME = #{forwardingUnitName}
+      </if>
+      <if test="receivingUintNo != null and receivingUintNo != ''">
+        or RECEIVING_UINT_NO = #{receivingUintNo}
+      </if>
+      <if test="receivingUintName != null and receivingUintName != ''">
+        or RECEIVING_UINT_NAME = #{receivingUintName}
+      </if>
+      <if test="materialNo != null and materialNo != ''">
+        or MATERIAL_NO = #{materialNo}
+      </if>
+      <if test="materialName != null and materialName != ''">
+        or MATERIAL_NAME = #{materialName}
+      </if>
+      <if test="specNo != null and specNo != ''">
+        or SPEC_NO = #{specNo}
+      </if>
+      <if test="specName != null and specName != ''">
+        or SPEC_NAME = #{specName}
+      </if>
+      <if test="loadPointNo != null and loadPointNo != ''">
+        or LOAD_POINT_NO = #{loadPointNo}
+      </if>
+      <if test="loadPointName != null and loadPointName != ''">
+        or LOAD_POINT_NAME = #{loadPointName}
+      </if>
+      <if test="sampleVoucher != null and sampleVoucher != ''">
+        or SAMPLE_VOUCHER = #{sampleVoucher}
+      </if>
+      <if test="carrierUnitNo != null and carrierUnitNo != ''">
+        or CARRIER_UNIT_NO = #{carrierUnitNo}
+      </if>
+      <if test="carrierUnitName != null and carrierUnitName != ''">
+        or CARRIER_UNIT_NAME = #{carrierUnitName}
+      </if>
+      <if test="meterTypeNo != null and meterTypeNo != ''">
+        or METER_TYPE_NO = #{meterTypeNo}
+      </if>
+      <if test="meterTypeName != null and meterTypeName != ''">
+        or METER_TYPE_NAME = #{meterTypeName}
+      </if>
+      <if test="meterProcessNo != null and meterProcessNo != ''">
+        or METER_PROCESS_NO = #{meterProcessNo}
+      </if>
+      <if test="meterProcessEditionNo != null and meterProcessEditionNo != ''">
+        or METER_PROCESS_EDITION_NO = #{meterProcessEditionNo}
+      </if>
+      <if test="actualFirst1No != null and actualFirst1No != ''">
+        or ACTUAL_FIRST1_NO = #{actualFirst1No}
+      </if>
+      <if test="grossWeight != null">
+        or GROSS_WEIGHT = #{grossWeight}
+      </if>
+      <if test="grossManNo != null and grossManNo != ''">
+        or GROSS_MAN_NO = #{grossManNo}
+      </if>
+      <if test="grossManName != null and grossManName != ''">
+        or GROSS_MAN_NAME = #{grossManName}
+      </if>
+      <if test="grossTime != null">
+        or TO_CHAR(GROSS_TIME,'yyyy-MM-dd') = '#{grossTime}'
+      </if>
+      <if test="baseSpot1No != null and baseSpot1No != ''">
+        or BASE_SPOT1_NO = #{baseSpot1No}
+      </if>
+      <if test="baseSpot1Name != null and baseSpot1Name != ''">
+        or BASE_SPOT1_NAME = #{baseSpot1Name}
+      </if>
+      <if test="grossClass != null and grossClass != ''">
+        or GROSS_CLASS = #{grossClass}
+      </if>
+      <if test="grossGroup != null and grossGroup != ''">
+        or GROSS_GROUP = #{grossGroup}
+      </if>
+      <if test="grossMode != null and grossMode != ''">
+        or GROSS_MODE = #{grossMode}
+      </if>
+      <if test="actualFirst2No != null and actualFirst2No != ''">
+        or ACTUAL_FIRST2_NO = #{actualFirst2No}
+      </if>
+      <if test="tareWeight != null">
+        or TARE_WEIGHT = #{tareWeight}
+      </if>
+      <if test="tareManNo != null and tareManNo != ''">
+        or TARE_MAN_NO = #{tareManNo}
+      </if>
+      <if test="tareManName != null and tareManName != ''">
+        or TARE_MAN_NAME = #{tareManName}
+      </if>
+      <if test="tareTime != null">
+        or TO_CHAR(TARE_TIME,'yyyy-MM-dd') = '#{tareTime}'
+      </if>
+      <if test="baseSpot2No != null and baseSpot2No != ''">
+        or BASE_SPOT2_NO = #{baseSpot2No}
+      </if>
+      <if test="baseSpot2Name != null and baseSpot2Name != ''">
+        or BASE_SPOT2_NAME = #{baseSpot2Name}
+      </if>
+      <if test="tareClass != null and tareClass != ''">
+        or TARE_CLASS = #{tareClass}
+      </if>
+      <if test="tareGroup != null and tareGroup != ''">
+        or TARE_GROUP = #{tareGroup}
+      </if>
+      <if test="tareMode != null and tareMode != ''">
+        or TARE_MODE = #{tareMode}
+      </if>
+      <if test="netWeight != null">
+        or NET_WEIGHT = #{netWeight}
+      </if>
+      <if test="netManNo != null and netManNo != ''">
+        or NET_MAN_NO = #{netManNo}
+      </if>
+      <if test="netManName != null and netManName != ''">
+        or NET_MAN_NAME = #{netManName}
+      </if>
+      <if test="netTime != null">
+        or TO_CHAR(NET_TIME,'yyyy-MM-dd') = '#{netTime}'
+      </if>
+      <if test="netSpot3No != null and netSpot3No != ''">
+        or NET_SPOT3_NO = #{netSpot3No}
+      </if>
+      <if test="netSpot3Name != null and netSpot3Name != ''">
+        or NET_SPOT3_NAME = #{netSpot3Name}
+      </if>
+      <if test="netClass != null and netClass != ''">
+        or NET_CLASS = #{netClass}
+      </if>
+      <if test="netGroup != null and netGroup != ''">
+        or NET_GROUP = #{netGroup}
+      </if>
+      <if test="netMode != null and netMode != ''">
+        or NET_MODE = #{netMode}
+      </if>
+      <if test="valueFlag != null and valueFlag != ''">
+        or VALUE_FLAG = #{valueFlag}
+      </if>
+      <if test="uploadFlag != null and uploadFlag != ''">
+        or UPLOAD_FLAG = #{uploadFlag}
+      </if>
+      <if test="checkManNo != null and checkManNo != ''">
+        or CHECK_MAN_NO = #{checkManNo}
+      </if>
+      <if test="checkManName != null and checkManName != ''">
+        or CHECK_MAN_NAME = #{checkManName}
+      </if>
+      <if test="checkTime != null">
+        or TO_CHAR(CHECK_TIME,'yyyy-MM-dd') = '#{checkTime}'
+      </if>
+      <if test="uploadManNo != null and uploadManNo != ''">
+        or UPLOAD_MAN_NO = #{uploadManNo}
+      </if>
+      <if test="uploadManName != null and uploadManName != ''">
+        or UPLOAD_MAN_NAME = #{uploadManName}
+      </if>
+      <if test="uploadTime != null">
+        or TO_CHAR(UPLOAD_TIME,'yyyy-MM-dd') = '#{uploadTime}'
+      </if>
+      <if test="sampleNo != null and sampleNo != ''">
+        or SAMPLE_NO = #{sampleNo}
+      </if>
+      <if test="railwayTypeNo != null and railwayTypeNo != ''">
+        or RAILWAY_TYPE_NO = #{railwayTypeNo}
+      </if>
+      <if test="railwayTypeName != null and railwayTypeName != ''">
+        or RAILWAY_TYPE_NAME = #{railwayTypeName}
+      </if>
+      <if test="memo != null and memo != ''">
+        or MEMO = #{memo}
+      </if>
+      <if test="waterNum != null">
+        or WATER_NUM = #{waterNum}
+      </if>
+      <if test="arrival != null and arrival != ''">
+        or ARRIVAL = #{arrival}
+      </if>
+      <if test="station != null and station != ''">
+        or STATION = #{station}
+      </if>
+      <if test="updateManNo != null and updateManNo != ''">
+        or UPDATE_MAN_NO = #{updateManNo}
+      </if>
+      <if test="updateManName != null and updateManName != ''">
+        or UPDATE_MAN_NAME = #{updateManName}
+      </if>
+      <if test="updateTime != null">
+        or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
+      </if>
+      <if test="sourceArea != null and sourceArea != ''">
+        or SOURCE_AREA = #{sourceArea}
+      </if>
+  </delete>
+  <insert id="insert" parameterType="com.steerinfo.meterwork.meterworkhookactual.model.MeterWorkHookActual">
+    insert into METER_WORK_HOOK_ACTUAL (ACTUAL_NO, PREDICTION_NO, NOTICE_NO, 
+      RAILWAY_NO, RAILWAY_CARRIAGE_NO, MATTER_NO, 
+      MATTER_NAME, CONTRACT_NO, BATCH_NO, 
+      CUSTOMER_SUPPLIER_NO, CUSTOMER_SUPPLIER_NAME, 
+      FORWARDING_UNIT_NO, FORWARDING_UNIT_NAME, RECEIVING_UINT_NO, 
+      RECEIVING_UINT_NAME, MATERIAL_NO, MATERIAL_NAME, 
+      SPEC_NO, SPEC_NAME, LOAD_POINT_NO, 
+      LOAD_POINT_NAME, SAMPLE_VOUCHER, CARRIER_UNIT_NO, 
+      CARRIER_UNIT_NAME, METER_TYPE_NO, METER_TYPE_NAME, 
+      METER_PROCESS_NO, METER_PROCESS_EDITION_NO, 
+      ACTUAL_FIRST1_NO, GROSS_WEIGHT, GROSS_MAN_NO, 
+      GROSS_MAN_NAME, GROSS_TIME, BASE_SPOT1_NO, 
+      BASE_SPOT1_NAME, GROSS_CLASS, GROSS_GROUP, 
+      GROSS_MODE, ACTUAL_FIRST2_NO, TARE_WEIGHT, 
+      TARE_MAN_NO, TARE_MAN_NAME, TARE_TIME, 
+      BASE_SPOT2_NO, BASE_SPOT2_NAME, TARE_CLASS, 
+      TARE_GROUP, TARE_MODE, NET_WEIGHT, 
+      NET_MAN_NO, NET_MAN_NAME, NET_TIME, 
+      NET_SPOT3_NO, NET_SPOT3_NAME, NET_CLASS, 
+      NET_GROUP, NET_MODE, VALUE_FLAG, 
+      UPLOAD_FLAG, CHECK_MAN_NO, CHECK_MAN_NAME, 
+      CHECK_TIME, UPLOAD_MAN_NO, UPLOAD_MAN_NAME, 
+      UPLOAD_TIME, SAMPLE_NO, RAILWAY_TYPE_NO, 
+      RAILWAY_TYPE_NAME, MEMO, WATER_NUM, 
+      ARRIVAL, STATION, UPDATE_MAN_NO, 
+      UPDATE_MAN_NAME, UPDATE_TIME, SOURCE_AREA
+      )
+    values (#{actualNo,jdbcType=VARCHAR}, #{predictionNo,jdbcType=VARCHAR}, #{noticeNo,jdbcType=VARCHAR}, 
+      #{railwayNo,jdbcType=VARCHAR}, #{railwayCarriageNo,jdbcType=VARCHAR}, #{matterNo,jdbcType=VARCHAR}, 
+      #{matterName,jdbcType=VARCHAR}, #{contractNo,jdbcType=VARCHAR}, #{batchNo,jdbcType=VARCHAR}, 
+      #{customerSupplierNo,jdbcType=VARCHAR}, #{customerSupplierName,jdbcType=VARCHAR}, 
+      #{forwardingUnitNo,jdbcType=VARCHAR}, #{forwardingUnitName,jdbcType=VARCHAR}, #{receivingUintNo,jdbcType=VARCHAR}, 
+      #{receivingUintName,jdbcType=VARCHAR}, #{materialNo,jdbcType=VARCHAR}, #{materialName,jdbcType=VARCHAR}, 
+      #{specNo,jdbcType=VARCHAR}, #{specName,jdbcType=VARCHAR}, #{loadPointNo,jdbcType=VARCHAR}, 
+      #{loadPointName,jdbcType=VARCHAR}, #{sampleVoucher,jdbcType=VARCHAR}, #{carrierUnitNo,jdbcType=VARCHAR}, 
+      #{carrierUnitName,jdbcType=VARCHAR}, #{meterTypeNo,jdbcType=VARCHAR}, #{meterTypeName,jdbcType=VARCHAR}, 
+      #{meterProcessNo,jdbcType=VARCHAR}, #{meterProcessEditionNo,jdbcType=VARCHAR}, 
+      #{actualFirst1No,jdbcType=VARCHAR}, #{grossWeight,jdbcType=DECIMAL}, #{grossManNo,jdbcType=VARCHAR}, 
+      #{grossManName,jdbcType=VARCHAR}, #{grossTime,jdbcType=TIMESTAMP}, #{baseSpot1No,jdbcType=VARCHAR}, 
+      #{baseSpot1Name,jdbcType=VARCHAR}, #{grossClass,jdbcType=VARCHAR}, #{grossGroup,jdbcType=VARCHAR}, 
+      #{grossMode,jdbcType=VARCHAR}, #{actualFirst2No,jdbcType=VARCHAR}, #{tareWeight,jdbcType=DECIMAL}, 
+      #{tareManNo,jdbcType=VARCHAR}, #{tareManName,jdbcType=VARCHAR}, #{tareTime,jdbcType=TIMESTAMP}, 
+      #{baseSpot2No,jdbcType=VARCHAR}, #{baseSpot2Name,jdbcType=VARCHAR}, #{tareClass,jdbcType=VARCHAR}, 
+      #{tareGroup,jdbcType=VARCHAR}, #{tareMode,jdbcType=VARCHAR}, #{netWeight,jdbcType=DECIMAL}, 
+      #{netManNo,jdbcType=VARCHAR}, #{netManName,jdbcType=VARCHAR}, #{netTime,jdbcType=TIMESTAMP}, 
+      #{netSpot3No,jdbcType=VARCHAR}, #{netSpot3Name,jdbcType=VARCHAR}, #{netClass,jdbcType=VARCHAR}, 
+      #{netGroup,jdbcType=VARCHAR}, #{netMode,jdbcType=VARCHAR}, #{valueFlag,jdbcType=VARCHAR}, 
+      #{uploadFlag,jdbcType=VARCHAR}, #{checkManNo,jdbcType=VARCHAR}, #{checkManName,jdbcType=VARCHAR}, 
+      #{checkTime,jdbcType=TIMESTAMP}, #{uploadManNo,jdbcType=VARCHAR}, #{uploadManName,jdbcType=VARCHAR}, 
+      #{uploadTime,jdbcType=TIMESTAMP}, #{sampleNo,jdbcType=VARCHAR}, #{railwayTypeNo,jdbcType=VARCHAR}, 
+      #{railwayTypeName,jdbcType=VARCHAR}, #{memo,jdbcType=VARCHAR}, #{waterNum,jdbcType=DECIMAL}, 
+      #{arrival,jdbcType=VARCHAR}, #{station,jdbcType=VARCHAR}, #{updateManNo,jdbcType=VARCHAR}, 
+      #{updateManName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{sourceArea,jdbcType=VARCHAR}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.steerinfo.meterwork.meterworkhookactual.model.MeterWorkHookActual">
+    insert into METER_WORK_HOOK_ACTUAL
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="actualNo != null">
+        ACTUAL_NO,
+      </if>
+      <if test="predictionNo != null">
+        PREDICTION_NO,
+      </if>
+      <if test="noticeNo != null">
+        NOTICE_NO,
+      </if>
+      <if test="railwayNo != null">
+        RAILWAY_NO,
+      </if>
+      <if test="railwayCarriageNo != null">
+        RAILWAY_CARRIAGE_NO,
+      </if>
+      <if test="matterNo != null">
+        MATTER_NO,
+      </if>
+      <if test="matterName != null">
+        MATTER_NAME,
+      </if>
+      <if test="contractNo != null">
+        CONTRACT_NO,
+      </if>
+      <if test="batchNo != null">
+        BATCH_NO,
+      </if>
+      <if test="customerSupplierNo != null">
+        CUSTOMER_SUPPLIER_NO,
+      </if>
+      <if test="customerSupplierName != null">
+        CUSTOMER_SUPPLIER_NAME,
+      </if>
+      <if test="forwardingUnitNo != null">
+        FORWARDING_UNIT_NO,
+      </if>
+      <if test="forwardingUnitName != null">
+        FORWARDING_UNIT_NAME,
+      </if>
+      <if test="receivingUintNo != null">
+        RECEIVING_UINT_NO,
+      </if>
+      <if test="receivingUintName != null">
+        RECEIVING_UINT_NAME,
+      </if>
+      <if test="materialNo != null">
+        MATERIAL_NO,
+      </if>
+      <if test="materialName != null">
+        MATERIAL_NAME,
+      </if>
+      <if test="specNo != null">
+        SPEC_NO,
+      </if>
+      <if test="specName != null">
+        SPEC_NAME,
+      </if>
+      <if test="loadPointNo != null">
+        LOAD_POINT_NO,
+      </if>
+      <if test="loadPointName != null">
+        LOAD_POINT_NAME,
+      </if>
+      <if test="sampleVoucher != null">
+        SAMPLE_VOUCHER,
+      </if>
+      <if test="carrierUnitNo != null">
+        CARRIER_UNIT_NO,
+      </if>
+      <if test="carrierUnitName != null">
+        CARRIER_UNIT_NAME,
+      </if>
+      <if test="meterTypeNo != null">
+        METER_TYPE_NO,
+      </if>
+      <if test="meterTypeName != null">
+        METER_TYPE_NAME,
+      </if>
+      <if test="meterProcessNo != null">
+        METER_PROCESS_NO,
+      </if>
+      <if test="meterProcessEditionNo != null">
+        METER_PROCESS_EDITION_NO,
+      </if>
+      <if test="actualFirst1No != null">
+        ACTUAL_FIRST1_NO,
+      </if>
+      <if test="grossWeight != null">
+        GROSS_WEIGHT,
+      </if>
+      <if test="grossManNo != null">
+        GROSS_MAN_NO,
+      </if>
+      <if test="grossManName != null">
+        GROSS_MAN_NAME,
+      </if>
+      <if test="grossTime != null">
+        GROSS_TIME,
+      </if>
+      <if test="baseSpot1No != null">
+        BASE_SPOT1_NO,
+      </if>
+      <if test="baseSpot1Name != null">
+        BASE_SPOT1_NAME,
+      </if>
+      <if test="grossClass != null">
+        GROSS_CLASS,
+      </if>
+      <if test="grossGroup != null">
+        GROSS_GROUP,
+      </if>
+      <if test="grossMode != null">
+        GROSS_MODE,
+      </if>
+      <if test="actualFirst2No != null">
+        ACTUAL_FIRST2_NO,
+      </if>
+      <if test="tareWeight != null">
+        TARE_WEIGHT,
+      </if>
+      <if test="tareManNo != null">
+        TARE_MAN_NO,
+      </if>
+      <if test="tareManName != null">
+        TARE_MAN_NAME,
+      </if>
+      <if test="tareTime != null">
+        TARE_TIME,
+      </if>
+      <if test="baseSpot2No != null">
+        BASE_SPOT2_NO,
+      </if>
+      <if test="baseSpot2Name != null">
+        BASE_SPOT2_NAME,
+      </if>
+      <if test="tareClass != null">
+        TARE_CLASS,
+      </if>
+      <if test="tareGroup != null">
+        TARE_GROUP,
+      </if>
+      <if test="tareMode != null">
+        TARE_MODE,
+      </if>
+      <if test="netWeight != null">
+        NET_WEIGHT,
+      </if>
+      <if test="netManNo != null">
+        NET_MAN_NO,
+      </if>
+      <if test="netManName != null">
+        NET_MAN_NAME,
+      </if>
+      <if test="netTime != null">
+        NET_TIME,
+      </if>
+      <if test="netSpot3No != null">
+        NET_SPOT3_NO,
+      </if>
+      <if test="netSpot3Name != null">
+        NET_SPOT3_NAME,
+      </if>
+      <if test="netClass != null">
+        NET_CLASS,
+      </if>
+      <if test="netGroup != null">
+        NET_GROUP,
+      </if>
+      <if test="netMode != null">
+        NET_MODE,
+      </if>
+      <if test="valueFlag != null">
+        VALUE_FLAG,
+      </if>
+      <if test="uploadFlag != null">
+        UPLOAD_FLAG,
+      </if>
+      <if test="checkManNo != null">
+        CHECK_MAN_NO,
+      </if>
+      <if test="checkManName != null">
+        CHECK_MAN_NAME,
+      </if>
+      <if test="checkTime != null">
+        CHECK_TIME,
+      </if>
+      <if test="uploadManNo != null">
+        UPLOAD_MAN_NO,
+      </if>
+      <if test="uploadManName != null">
+        UPLOAD_MAN_NAME,
+      </if>
+      <if test="uploadTime != null">
+        UPLOAD_TIME,
+      </if>
+      <if test="sampleNo != null">
+        SAMPLE_NO,
+      </if>
+      <if test="railwayTypeNo != null">
+        RAILWAY_TYPE_NO,
+      </if>
+      <if test="railwayTypeName != null">
+        RAILWAY_TYPE_NAME,
+      </if>
+      <if test="memo != null">
+        MEMO,
+      </if>
+      <if test="waterNum != null">
+        WATER_NUM,
+      </if>
+      <if test="arrival != null">
+        ARRIVAL,
+      </if>
+      <if test="station != null">
+        STATION,
+      </if>
+      <if test="updateManNo != null">
+        UPDATE_MAN_NO,
+      </if>
+      <if test="updateManName != null">
+        UPDATE_MAN_NAME,
+      </if>
+      <if test="updateTime != null">
+        UPDATE_TIME,
+      </if>
+      <if test="sourceArea != null">
+        SOURCE_AREA,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="actualNo != null">
+        #{actualNo,jdbcType=VARCHAR},
+      </if>
+      <if test="predictionNo != null">
+        #{predictionNo,jdbcType=VARCHAR},
+      </if>
+      <if test="noticeNo != null">
+        #{noticeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayNo != null">
+        #{railwayNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayCarriageNo != null">
+        #{railwayCarriageNo,jdbcType=VARCHAR},
+      </if>
+      <if test="matterNo != null">
+        #{matterNo,jdbcType=VARCHAR},
+      </if>
+      <if test="matterName != null">
+        #{matterName,jdbcType=VARCHAR},
+      </if>
+      <if test="contractNo != null">
+        #{contractNo,jdbcType=VARCHAR},
+      </if>
+      <if test="batchNo != null">
+        #{batchNo,jdbcType=VARCHAR},
+      </if>
+      <if test="customerSupplierNo != null">
+        #{customerSupplierNo,jdbcType=VARCHAR},
+      </if>
+      <if test="customerSupplierName != null">
+        #{customerSupplierName,jdbcType=VARCHAR},
+      </if>
+      <if test="forwardingUnitNo != null">
+        #{forwardingUnitNo,jdbcType=VARCHAR},
+      </if>
+      <if test="forwardingUnitName != null">
+        #{forwardingUnitName,jdbcType=VARCHAR},
+      </if>
+      <if test="receivingUintNo != null">
+        #{receivingUintNo,jdbcType=VARCHAR},
+      </if>
+      <if test="receivingUintName != null">
+        #{receivingUintName,jdbcType=VARCHAR},
+      </if>
+      <if test="materialNo != null">
+        #{materialNo,jdbcType=VARCHAR},
+      </if>
+      <if test="materialName != null">
+        #{materialName,jdbcType=VARCHAR},
+      </if>
+      <if test="specNo != null">
+        #{specNo,jdbcType=VARCHAR},
+      </if>
+      <if test="specName != null">
+        #{specName,jdbcType=VARCHAR},
+      </if>
+      <if test="loadPointNo != null">
+        #{loadPointNo,jdbcType=VARCHAR},
+      </if>
+      <if test="loadPointName != null">
+        #{loadPointName,jdbcType=VARCHAR},
+      </if>
+      <if test="sampleVoucher != null">
+        #{sampleVoucher,jdbcType=VARCHAR},
+      </if>
+      <if test="carrierUnitNo != null">
+        #{carrierUnitNo,jdbcType=VARCHAR},
+      </if>
+      <if test="carrierUnitName != null">
+        #{carrierUnitName,jdbcType=VARCHAR},
+      </if>
+      <if test="meterTypeNo != null">
+        #{meterTypeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="meterTypeName != null">
+        #{meterTypeName,jdbcType=VARCHAR},
+      </if>
+      <if test="meterProcessNo != null">
+        #{meterProcessNo,jdbcType=VARCHAR},
+      </if>
+      <if test="meterProcessEditionNo != null">
+        #{meterProcessEditionNo,jdbcType=VARCHAR},
+      </if>
+      <if test="actualFirst1No != null">
+        #{actualFirst1No,jdbcType=VARCHAR},
+      </if>
+      <if test="grossWeight != null">
+        #{grossWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="grossManNo != null">
+        #{grossManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="grossManName != null">
+        #{grossManName,jdbcType=VARCHAR},
+      </if>
+      <if test="grossTime != null">
+        #{grossTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="baseSpot1No != null">
+        #{baseSpot1No,jdbcType=VARCHAR},
+      </if>
+      <if test="baseSpot1Name != null">
+        #{baseSpot1Name,jdbcType=VARCHAR},
+      </if>
+      <if test="grossClass != null">
+        #{grossClass,jdbcType=VARCHAR},
+      </if>
+      <if test="grossGroup != null">
+        #{grossGroup,jdbcType=VARCHAR},
+      </if>
+      <if test="grossMode != null">
+        #{grossMode,jdbcType=VARCHAR},
+      </if>
+      <if test="actualFirst2No != null">
+        #{actualFirst2No,jdbcType=VARCHAR},
+      </if>
+      <if test="tareWeight != null">
+        #{tareWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="tareManNo != null">
+        #{tareManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="tareManName != null">
+        #{tareManName,jdbcType=VARCHAR},
+      </if>
+      <if test="tareTime != null">
+        #{tareTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="baseSpot2No != null">
+        #{baseSpot2No,jdbcType=VARCHAR},
+      </if>
+      <if test="baseSpot2Name != null">
+        #{baseSpot2Name,jdbcType=VARCHAR},
+      </if>
+      <if test="tareClass != null">
+        #{tareClass,jdbcType=VARCHAR},
+      </if>
+      <if test="tareGroup != null">
+        #{tareGroup,jdbcType=VARCHAR},
+      </if>
+      <if test="tareMode != null">
+        #{tareMode,jdbcType=VARCHAR},
+      </if>
+      <if test="netWeight != null">
+        #{netWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="netManNo != null">
+        #{netManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="netManName != null">
+        #{netManName,jdbcType=VARCHAR},
+      </if>
+      <if test="netTime != null">
+        #{netTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="netSpot3No != null">
+        #{netSpot3No,jdbcType=VARCHAR},
+      </if>
+      <if test="netSpot3Name != null">
+        #{netSpot3Name,jdbcType=VARCHAR},
+      </if>
+      <if test="netClass != null">
+        #{netClass,jdbcType=VARCHAR},
+      </if>
+      <if test="netGroup != null">
+        #{netGroup,jdbcType=VARCHAR},
+      </if>
+      <if test="netMode != null">
+        #{netMode,jdbcType=VARCHAR},
+      </if>
+      <if test="valueFlag != null">
+        #{valueFlag,jdbcType=VARCHAR},
+      </if>
+      <if test="uploadFlag != null">
+        #{uploadFlag,jdbcType=VARCHAR},
+      </if>
+      <if test="checkManNo != null">
+        #{checkManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="checkManName != null">
+        #{checkManName,jdbcType=VARCHAR},
+      </if>
+      <if test="checkTime != null">
+        #{checkTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="uploadManNo != null">
+        #{uploadManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="uploadManName != null">
+        #{uploadManName,jdbcType=VARCHAR},
+      </if>
+      <if test="uploadTime != null">
+        #{uploadTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="sampleNo != null">
+        #{sampleNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayTypeNo != null">
+        #{railwayTypeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayTypeName != null">
+        #{railwayTypeName,jdbcType=VARCHAR},
+      </if>
+      <if test="memo != null">
+        #{memo,jdbcType=VARCHAR},
+      </if>
+      <if test="waterNum != null">
+        #{waterNum,jdbcType=DECIMAL},
+      </if>
+      <if test="arrival != null">
+        #{arrival,jdbcType=VARCHAR},
+      </if>
+      <if test="station != null">
+        #{station,jdbcType=VARCHAR},
+      </if>
+      <if test="updateManNo != null">
+        #{updateManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="updateManName != null">
+        #{updateManName,jdbcType=VARCHAR},
+      </if>
+      <if test="updateTime != null">
+        #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="sourceArea != null">
+        #{sourceArea,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKey" parameterType="com.steerinfo.meterwork.meterworkhookactual.model.MeterWorkHookActual">
+    update METER_WORK_HOOK_ACTUAL
+    set PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR},
+      NOTICE_NO = #{noticeNo,jdbcType=VARCHAR},
+      RAILWAY_NO = #{railwayNo,jdbcType=VARCHAR},
+      RAILWAY_CARRIAGE_NO = #{railwayCarriageNo,jdbcType=VARCHAR},
+      MATTER_NO = #{matterNo,jdbcType=VARCHAR},
+      MATTER_NAME = #{matterName,jdbcType=VARCHAR},
+      CONTRACT_NO = #{contractNo,jdbcType=VARCHAR},
+      BATCH_NO = #{batchNo,jdbcType=VARCHAR},
+      CUSTOMER_SUPPLIER_NO = #{customerSupplierNo,jdbcType=VARCHAR},
+      CUSTOMER_SUPPLIER_NAME = #{customerSupplierName,jdbcType=VARCHAR},
+      FORWARDING_UNIT_NO = #{forwardingUnitNo,jdbcType=VARCHAR},
+      FORWARDING_UNIT_NAME = #{forwardingUnitName,jdbcType=VARCHAR},
+      RECEIVING_UINT_NO = #{receivingUintNo,jdbcType=VARCHAR},
+      RECEIVING_UINT_NAME = #{receivingUintName,jdbcType=VARCHAR},
+      MATERIAL_NO = #{materialNo,jdbcType=VARCHAR},
+      MATERIAL_NAME = #{materialName,jdbcType=VARCHAR},
+      SPEC_NO = #{specNo,jdbcType=VARCHAR},
+      SPEC_NAME = #{specName,jdbcType=VARCHAR},
+      LOAD_POINT_NO = #{loadPointNo,jdbcType=VARCHAR},
+      LOAD_POINT_NAME = #{loadPointName,jdbcType=VARCHAR},
+      SAMPLE_VOUCHER = #{sampleVoucher,jdbcType=VARCHAR},
+      CARRIER_UNIT_NO = #{carrierUnitNo,jdbcType=VARCHAR},
+      CARRIER_UNIT_NAME = #{carrierUnitName,jdbcType=VARCHAR},
+      METER_TYPE_NO = #{meterTypeNo,jdbcType=VARCHAR},
+      METER_TYPE_NAME = #{meterTypeName,jdbcType=VARCHAR},
+      METER_PROCESS_NO = #{meterProcessNo,jdbcType=VARCHAR},
+      METER_PROCESS_EDITION_NO = #{meterProcessEditionNo,jdbcType=VARCHAR},
+      ACTUAL_FIRST1_NO = #{actualFirst1No,jdbcType=VARCHAR},
+      GROSS_WEIGHT = #{grossWeight,jdbcType=DECIMAL},
+      GROSS_MAN_NO = #{grossManNo,jdbcType=VARCHAR},
+      GROSS_MAN_NAME = #{grossManName,jdbcType=VARCHAR},
+      GROSS_TIME = #{grossTime,jdbcType=TIMESTAMP},
+      BASE_SPOT1_NO = #{baseSpot1No,jdbcType=VARCHAR},
+      BASE_SPOT1_NAME = #{baseSpot1Name,jdbcType=VARCHAR},
+      GROSS_CLASS = #{grossClass,jdbcType=VARCHAR},
+      GROSS_GROUP = #{grossGroup,jdbcType=VARCHAR},
+      GROSS_MODE = #{grossMode,jdbcType=VARCHAR},
+      ACTUAL_FIRST2_NO = #{actualFirst2No,jdbcType=VARCHAR},
+      TARE_WEIGHT = #{tareWeight,jdbcType=DECIMAL},
+      TARE_MAN_NO = #{tareManNo,jdbcType=VARCHAR},
+      TARE_MAN_NAME = #{tareManName,jdbcType=VARCHAR},
+      TARE_TIME = #{tareTime,jdbcType=TIMESTAMP},
+      BASE_SPOT2_NO = #{baseSpot2No,jdbcType=VARCHAR},
+      BASE_SPOT2_NAME = #{baseSpot2Name,jdbcType=VARCHAR},
+      TARE_CLASS = #{tareClass,jdbcType=VARCHAR},
+      TARE_GROUP = #{tareGroup,jdbcType=VARCHAR},
+      TARE_MODE = #{tareMode,jdbcType=VARCHAR},
+      NET_WEIGHT = #{netWeight,jdbcType=DECIMAL},
+      NET_MAN_NO = #{netManNo,jdbcType=VARCHAR},
+      NET_MAN_NAME = #{netManName,jdbcType=VARCHAR},
+      NET_TIME = #{netTime,jdbcType=TIMESTAMP},
+      NET_SPOT3_NO = #{netSpot3No,jdbcType=VARCHAR},
+      NET_SPOT3_NAME = #{netSpot3Name,jdbcType=VARCHAR},
+      NET_CLASS = #{netClass,jdbcType=VARCHAR},
+      NET_GROUP = #{netGroup,jdbcType=VARCHAR},
+      NET_MODE = #{netMode,jdbcType=VARCHAR},
+      VALUE_FLAG = #{valueFlag,jdbcType=VARCHAR},
+      UPLOAD_FLAG = #{uploadFlag,jdbcType=VARCHAR},
+      CHECK_MAN_NO = #{checkManNo,jdbcType=VARCHAR},
+      CHECK_MAN_NAME = #{checkManName,jdbcType=VARCHAR},
+      CHECK_TIME = #{checkTime,jdbcType=TIMESTAMP},
+      UPLOAD_MAN_NO = #{uploadManNo,jdbcType=VARCHAR},
+      UPLOAD_MAN_NAME = #{uploadManName,jdbcType=VARCHAR},
+      UPLOAD_TIME = #{uploadTime,jdbcType=TIMESTAMP},
+      SAMPLE_NO = #{sampleNo,jdbcType=VARCHAR},
+      RAILWAY_TYPE_NO = #{railwayTypeNo,jdbcType=VARCHAR},
+      RAILWAY_TYPE_NAME = #{railwayTypeName,jdbcType=VARCHAR},
+      MEMO = #{memo,jdbcType=VARCHAR},
+      WATER_NUM = #{waterNum,jdbcType=DECIMAL},
+      ARRIVAL = #{arrival,jdbcType=VARCHAR},
+      STATION = #{station,jdbcType=VARCHAR},
+      UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
+      UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
+      UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
+      SOURCE_AREA = #{sourceArea,jdbcType=VARCHAR}
+    where ACTUAL_NO = #{actualNo,jdbcType=VARCHAR}
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.meterwork.meterworkhookactual.model.MeterWorkHookActual">
+    update METER_WORK_HOOK_ACTUAL
+    <set>
+      <if test="predictionNo != null">
+        PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR},
+      </if>
+      <if test="noticeNo != null">
+        NOTICE_NO = #{noticeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayNo != null">
+        RAILWAY_NO = #{railwayNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayCarriageNo != null">
+        RAILWAY_CARRIAGE_NO = #{railwayCarriageNo,jdbcType=VARCHAR},
+      </if>
+      <if test="matterNo != null">
+        MATTER_NO = #{matterNo,jdbcType=VARCHAR},
+      </if>
+      <if test="matterName != null">
+        MATTER_NAME = #{matterName,jdbcType=VARCHAR},
+      </if>
+      <if test="contractNo != null">
+        CONTRACT_NO = #{contractNo,jdbcType=VARCHAR},
+      </if>
+      <if test="batchNo != null">
+        BATCH_NO = #{batchNo,jdbcType=VARCHAR},
+      </if>
+      <if test="customerSupplierNo != null">
+        CUSTOMER_SUPPLIER_NO = #{customerSupplierNo,jdbcType=VARCHAR},
+      </if>
+      <if test="customerSupplierName != null">
+        CUSTOMER_SUPPLIER_NAME = #{customerSupplierName,jdbcType=VARCHAR},
+      </if>
+      <if test="forwardingUnitNo != null">
+        FORWARDING_UNIT_NO = #{forwardingUnitNo,jdbcType=VARCHAR},
+      </if>
+      <if test="forwardingUnitName != null">
+        FORWARDING_UNIT_NAME = #{forwardingUnitName,jdbcType=VARCHAR},
+      </if>
+      <if test="receivingUintNo != null">
+        RECEIVING_UINT_NO = #{receivingUintNo,jdbcType=VARCHAR},
+      </if>
+      <if test="receivingUintName != null">
+        RECEIVING_UINT_NAME = #{receivingUintName,jdbcType=VARCHAR},
+      </if>
+      <if test="materialNo != null">
+        MATERIAL_NO = #{materialNo,jdbcType=VARCHAR},
+      </if>
+      <if test="materialName != null">
+        MATERIAL_NAME = #{materialName,jdbcType=VARCHAR},
+      </if>
+      <if test="specNo != null">
+        SPEC_NO = #{specNo,jdbcType=VARCHAR},
+      </if>
+      <if test="specName != null">
+        SPEC_NAME = #{specName,jdbcType=VARCHAR},
+      </if>
+      <if test="loadPointNo != null">
+        LOAD_POINT_NO = #{loadPointNo,jdbcType=VARCHAR},
+      </if>
+      <if test="loadPointName != null">
+        LOAD_POINT_NAME = #{loadPointName,jdbcType=VARCHAR},
+      </if>
+      <if test="sampleVoucher != null">
+        SAMPLE_VOUCHER = #{sampleVoucher,jdbcType=VARCHAR},
+      </if>
+      <if test="carrierUnitNo != null">
+        CARRIER_UNIT_NO = #{carrierUnitNo,jdbcType=VARCHAR},
+      </if>
+      <if test="carrierUnitName != null">
+        CARRIER_UNIT_NAME = #{carrierUnitName,jdbcType=VARCHAR},
+      </if>
+      <if test="meterTypeNo != null">
+        METER_TYPE_NO = #{meterTypeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="meterTypeName != null">
+        METER_TYPE_NAME = #{meterTypeName,jdbcType=VARCHAR},
+      </if>
+      <if test="meterProcessNo != null">
+        METER_PROCESS_NO = #{meterProcessNo,jdbcType=VARCHAR},
+      </if>
+      <if test="meterProcessEditionNo != null">
+        METER_PROCESS_EDITION_NO = #{meterProcessEditionNo,jdbcType=VARCHAR},
+      </if>
+      <if test="actualFirst1No != null">
+        ACTUAL_FIRST1_NO = #{actualFirst1No,jdbcType=VARCHAR},
+      </if>
+      <if test="grossWeight != null">
+        GROSS_WEIGHT = #{grossWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="grossManNo != null">
+        GROSS_MAN_NO = #{grossManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="grossManName != null">
+        GROSS_MAN_NAME = #{grossManName,jdbcType=VARCHAR},
+      </if>
+      <if test="grossTime != null">
+        GROSS_TIME = #{grossTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="baseSpot1No != null">
+        BASE_SPOT1_NO = #{baseSpot1No,jdbcType=VARCHAR},
+      </if>
+      <if test="baseSpot1Name != null">
+        BASE_SPOT1_NAME = #{baseSpot1Name,jdbcType=VARCHAR},
+      </if>
+      <if test="grossClass != null">
+        GROSS_CLASS = #{grossClass,jdbcType=VARCHAR},
+      </if>
+      <if test="grossGroup != null">
+        GROSS_GROUP = #{grossGroup,jdbcType=VARCHAR},
+      </if>
+      <if test="grossMode != null">
+        GROSS_MODE = #{grossMode,jdbcType=VARCHAR},
+      </if>
+      <if test="actualFirst2No != null">
+        ACTUAL_FIRST2_NO = #{actualFirst2No,jdbcType=VARCHAR},
+      </if>
+      <if test="tareWeight != null">
+        TARE_WEIGHT = #{tareWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="tareManNo != null">
+        TARE_MAN_NO = #{tareManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="tareManName != null">
+        TARE_MAN_NAME = #{tareManName,jdbcType=VARCHAR},
+      </if>
+      <if test="tareTime != null">
+        TARE_TIME = #{tareTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="baseSpot2No != null">
+        BASE_SPOT2_NO = #{baseSpot2No,jdbcType=VARCHAR},
+      </if>
+      <if test="baseSpot2Name != null">
+        BASE_SPOT2_NAME = #{baseSpot2Name,jdbcType=VARCHAR},
+      </if>
+      <if test="tareClass != null">
+        TARE_CLASS = #{tareClass,jdbcType=VARCHAR},
+      </if>
+      <if test="tareGroup != null">
+        TARE_GROUP = #{tareGroup,jdbcType=VARCHAR},
+      </if>
+      <if test="tareMode != null">
+        TARE_MODE = #{tareMode,jdbcType=VARCHAR},
+      </if>
+      <if test="netWeight != null">
+        NET_WEIGHT = #{netWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="netManNo != null">
+        NET_MAN_NO = #{netManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="netManName != null">
+        NET_MAN_NAME = #{netManName,jdbcType=VARCHAR},
+      </if>
+      <if test="netTime != null">
+        NET_TIME = #{netTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="netSpot3No != null">
+        NET_SPOT3_NO = #{netSpot3No,jdbcType=VARCHAR},
+      </if>
+      <if test="netSpot3Name != null">
+        NET_SPOT3_NAME = #{netSpot3Name,jdbcType=VARCHAR},
+      </if>
+      <if test="netClass != null">
+        NET_CLASS = #{netClass,jdbcType=VARCHAR},
+      </if>
+      <if test="netGroup != null">
+        NET_GROUP = #{netGroup,jdbcType=VARCHAR},
+      </if>
+      <if test="netMode != null">
+        NET_MODE = #{netMode,jdbcType=VARCHAR},
+      </if>
+      <if test="valueFlag != null">
+        VALUE_FLAG = #{valueFlag,jdbcType=VARCHAR},
+      </if>
+      <if test="uploadFlag != null">
+        UPLOAD_FLAG = #{uploadFlag,jdbcType=VARCHAR},
+      </if>
+      <if test="checkManNo != null">
+        CHECK_MAN_NO = #{checkManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="checkManName != null">
+        CHECK_MAN_NAME = #{checkManName,jdbcType=VARCHAR},
+      </if>
+      <if test="checkTime != null">
+        CHECK_TIME = #{checkTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="uploadManNo != null">
+        UPLOAD_MAN_NO = #{uploadManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="uploadManName != null">
+        UPLOAD_MAN_NAME = #{uploadManName,jdbcType=VARCHAR},
+      </if>
+      <if test="uploadTime != null">
+        UPLOAD_TIME = #{uploadTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="sampleNo != null">
+        SAMPLE_NO = #{sampleNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayTypeNo != null">
+        RAILWAY_TYPE_NO = #{railwayTypeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayTypeName != null">
+        RAILWAY_TYPE_NAME = #{railwayTypeName,jdbcType=VARCHAR},
+      </if>
+      <if test="memo != null">
+        MEMO = #{memo,jdbcType=VARCHAR},
+      </if>
+      <if test="waterNum != null">
+        WATER_NUM = #{waterNum,jdbcType=DECIMAL},
+      </if>
+      <if test="arrival != null">
+        ARRIVAL = #{arrival,jdbcType=VARCHAR},
+      </if>
+      <if test="station != null">
+        STATION = #{station,jdbcType=VARCHAR},
+      </if>
+      <if test="updateManNo != null">
+        UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="updateManName != null">
+        UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
+      </if>
+      <if test="updateTime != null">
+        UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="sourceArea != null">
+        SOURCE_AREA = #{sourceArea,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where ACTUAL_NO = #{actualNo,jdbcType=VARCHAR}
+  </update>
+  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
+    <include refid="select"/>
+    where ACTUAL_NO = #{actualNo,jdbcType=VARCHAR}
+  </select>
+  <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
+    <include refid="select"/>
+    <include refid="where"/>
+  </select>
+  <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
+    <include refid="select"/>
+    <include refid="whereLike"/>
+  </select>
+  <insert id="batchInsert" parameterType="java.util.List">
+    insert into METER_WORK_HOOK_ACTUAL 
+      (ACTUAL_NO, 
+      PREDICTION_NO, NOTICE_NO, RAILWAY_NO, 
+      RAILWAY_CARRIAGE_NO, MATTER_NO, 
+      MATTER_NAME, CONTRACT_NO, BATCH_NO, 
+      CUSTOMER_SUPPLIER_NO, CUSTOMER_SUPPLIER_NAME, 
+      FORWARDING_UNIT_NO, FORWARDING_UNIT_NAME, 
+      RECEIVING_UINT_NO, RECEIVING_UINT_NAME, 
+      MATERIAL_NO, MATERIAL_NAME, SPEC_NO, 
+      SPEC_NAME, LOAD_POINT_NO, LOAD_POINT_NAME, 
+      SAMPLE_VOUCHER, CARRIER_UNIT_NO, 
+      CARRIER_UNIT_NAME, METER_TYPE_NO, 
+      METER_TYPE_NAME, METER_PROCESS_NO, 
+      METER_PROCESS_EDITION_NO, ACTUAL_FIRST1_NO, 
+      GROSS_WEIGHT, GROSS_MAN_NO, GROSS_MAN_NAME, 
+      GROSS_TIME, BASE_SPOT1_NO, BASE_SPOT1_NAME, 
+      GROSS_CLASS, GROSS_GROUP, GROSS_MODE, 
+      ACTUAL_FIRST2_NO, TARE_WEIGHT, TARE_MAN_NO, 
+      TARE_MAN_NAME, TARE_TIME, BASE_SPOT2_NO, 
+      BASE_SPOT2_NAME, TARE_CLASS, TARE_GROUP, 
+      TARE_MODE, NET_WEIGHT, NET_MAN_NO, 
+      NET_MAN_NAME, NET_TIME, NET_SPOT3_NO, 
+      NET_SPOT3_NAME, NET_CLASS, NET_GROUP, 
+      NET_MODE, VALUE_FLAG, UPLOAD_FLAG, 
+      CHECK_MAN_NO, CHECK_MAN_NAME, CHECK_TIME, 
+      UPLOAD_MAN_NO, UPLOAD_MAN_NAME, UPLOAD_TIME, 
+      SAMPLE_NO, RAILWAY_TYPE_NO, RAILWAY_TYPE_NAME, 
+      MEMO, WATER_NUM, ARRIVAL, 
+      STATION, UPDATE_MAN_NO, UPDATE_MAN_NAME, 
+      UPDATE_TIME, SOURCE_AREA)
+    ( <foreach collection="list" item="item" separator="union all"> 
+   select  
+      #{item.actualNo,jdbcType=VARCHAR}, 
+      #{item.predictionNo,jdbcType=VARCHAR}, #{item.noticeNo,jdbcType=VARCHAR}, #{item.railwayNo,jdbcType=VARCHAR}, 
+      #{item.railwayCarriageNo,jdbcType=VARCHAR}, #{item.matterNo,jdbcType=VARCHAR}, 
+      #{item.matterName,jdbcType=VARCHAR}, #{item.contractNo,jdbcType=VARCHAR}, #{item.batchNo,jdbcType=VARCHAR}, 
+      #{item.customerSupplierNo,jdbcType=VARCHAR}, #{item.customerSupplierName,jdbcType=VARCHAR}, 
+      #{item.forwardingUnitNo,jdbcType=VARCHAR}, #{item.forwardingUnitName,jdbcType=VARCHAR}, 
+      #{item.receivingUintNo,jdbcType=VARCHAR}, #{item.receivingUintName,jdbcType=VARCHAR}, 
+      #{item.materialNo,jdbcType=VARCHAR}, #{item.materialName,jdbcType=VARCHAR}, #{item.specNo,jdbcType=VARCHAR}, 
+      #{item.specName,jdbcType=VARCHAR}, #{item.loadPointNo,jdbcType=VARCHAR}, #{item.loadPointName,jdbcType=VARCHAR}, 
+      #{item.sampleVoucher,jdbcType=VARCHAR}, #{item.carrierUnitNo,jdbcType=VARCHAR}, 
+      #{item.carrierUnitName,jdbcType=VARCHAR}, #{item.meterTypeNo,jdbcType=VARCHAR}, 
+      #{item.meterTypeName,jdbcType=VARCHAR}, #{item.meterProcessNo,jdbcType=VARCHAR}, 
+      #{item.meterProcessEditionNo,jdbcType=VARCHAR}, #{item.actualFirst1No,jdbcType=VARCHAR}, 
+      #{item.grossWeight,jdbcType=DECIMAL}, #{item.grossManNo,jdbcType=VARCHAR}, #{item.grossManName,jdbcType=VARCHAR}, 
+      #{item.grossTime,jdbcType=TIMESTAMP}, #{item.baseSpot1No,jdbcType=VARCHAR}, #{item.baseSpot1Name,jdbcType=VARCHAR}, 
+      #{item.grossClass,jdbcType=VARCHAR}, #{item.grossGroup,jdbcType=VARCHAR}, #{item.grossMode,jdbcType=VARCHAR}, 
+      #{item.actualFirst2No,jdbcType=VARCHAR}, #{item.tareWeight,jdbcType=DECIMAL}, #{item.tareManNo,jdbcType=VARCHAR}, 
+      #{item.tareManName,jdbcType=VARCHAR}, #{item.tareTime,jdbcType=TIMESTAMP}, #{item.baseSpot2No,jdbcType=VARCHAR}, 
+      #{item.baseSpot2Name,jdbcType=VARCHAR}, #{item.tareClass,jdbcType=VARCHAR}, #{item.tareGroup,jdbcType=VARCHAR}, 
+      #{item.tareMode,jdbcType=VARCHAR}, #{item.netWeight,jdbcType=DECIMAL}, #{item.netManNo,jdbcType=VARCHAR}, 
+      #{item.netManName,jdbcType=VARCHAR}, #{item.netTime,jdbcType=TIMESTAMP}, #{item.netSpot3No,jdbcType=VARCHAR}, 
+      #{item.netSpot3Name,jdbcType=VARCHAR}, #{item.netClass,jdbcType=VARCHAR}, #{item.netGroup,jdbcType=VARCHAR}, 
+      #{item.netMode,jdbcType=VARCHAR}, #{item.valueFlag,jdbcType=VARCHAR}, #{item.uploadFlag,jdbcType=VARCHAR}, 
+      #{item.checkManNo,jdbcType=VARCHAR}, #{item.checkManName,jdbcType=VARCHAR}, #{item.checkTime,jdbcType=TIMESTAMP}, 
+      #{item.uploadManNo,jdbcType=VARCHAR}, #{item.uploadManName,jdbcType=VARCHAR}, #{item.uploadTime,jdbcType=TIMESTAMP}, 
+      #{item.sampleNo,jdbcType=VARCHAR}, #{item.railwayTypeNo,jdbcType=VARCHAR}, #{item.railwayTypeName,jdbcType=VARCHAR}, 
+      #{item.memo,jdbcType=VARCHAR}, #{item.waterNum,jdbcType=DECIMAL}, #{item.arrival,jdbcType=VARCHAR}, 
+      #{item.station,jdbcType=VARCHAR}, #{item.updateManNo,jdbcType=VARCHAR}, #{item.updateManName,jdbcType=VARCHAR}, 
+      #{item.updateTime,jdbcType=TIMESTAMP}, #{item.sourceArea,jdbcType=VARCHAR} from dual  
+   </foreach> )
+  </insert>
+  <update id="batchUpdate" parameterType="java.util.List">
+     update METER_WORK_HOOK_ACTUAL
+     set
+       ACTUAL_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.actualNo,jdbcType=VARCHAR}
+       </foreach>
+       ,PREDICTION_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.predictionNo,jdbcType=VARCHAR}
+       </foreach>
+       ,NOTICE_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.noticeNo,jdbcType=VARCHAR}
+       </foreach>
+       ,RAILWAY_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.railwayNo,jdbcType=VARCHAR}
+       </foreach>
+       ,RAILWAY_CARRIAGE_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.railwayCarriageNo,jdbcType=VARCHAR}
+       </foreach>
+       ,MATTER_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.matterNo,jdbcType=VARCHAR}
+       </foreach>
+       ,MATTER_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.matterName,jdbcType=VARCHAR}
+       </foreach>
+       ,CONTRACT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.contractNo,jdbcType=VARCHAR}
+       </foreach>
+       ,BATCH_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.batchNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CUSTOMER_SUPPLIER_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.customerSupplierNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CUSTOMER_SUPPLIER_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.customerSupplierName,jdbcType=VARCHAR}
+       </foreach>
+       ,FORWARDING_UNIT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.forwardingUnitNo,jdbcType=VARCHAR}
+       </foreach>
+       ,FORWARDING_UNIT_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.forwardingUnitName,jdbcType=VARCHAR}
+       </foreach>
+       ,RECEIVING_UINT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.receivingUintNo,jdbcType=VARCHAR}
+       </foreach>
+       ,RECEIVING_UINT_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.receivingUintName,jdbcType=VARCHAR}
+       </foreach>
+       ,MATERIAL_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.materialNo,jdbcType=VARCHAR}
+       </foreach>
+       ,MATERIAL_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.materialName,jdbcType=VARCHAR}
+       </foreach>
+       ,SPEC_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.specNo,jdbcType=VARCHAR}
+       </foreach>
+       ,SPEC_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.specName,jdbcType=VARCHAR}
+       </foreach>
+       ,LOAD_POINT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.loadPointNo,jdbcType=VARCHAR}
+       </foreach>
+       ,LOAD_POINT_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.loadPointName,jdbcType=VARCHAR}
+       </foreach>
+       ,SAMPLE_VOUCHER=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.sampleVoucher,jdbcType=VARCHAR}
+       </foreach>
+       ,CARRIER_UNIT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.carrierUnitNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CARRIER_UNIT_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.carrierUnitName,jdbcType=VARCHAR}
+       </foreach>
+       ,METER_TYPE_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.meterTypeNo,jdbcType=VARCHAR}
+       </foreach>
+       ,METER_TYPE_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.meterTypeName,jdbcType=VARCHAR}
+       </foreach>
+       ,METER_PROCESS_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.meterProcessNo,jdbcType=VARCHAR}
+       </foreach>
+       ,METER_PROCESS_EDITION_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.meterProcessEditionNo,jdbcType=VARCHAR}
+       </foreach>
+       ,ACTUAL_FIRST1_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.actualFirst1No,jdbcType=VARCHAR}
+       </foreach>
+       ,GROSS_WEIGHT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.grossWeight,jdbcType=DECIMAL}
+       </foreach>
+       ,GROSS_MAN_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.grossManNo,jdbcType=VARCHAR}
+       </foreach>
+       ,GROSS_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.grossManName,jdbcType=VARCHAR}
+       </foreach>
+       ,GROSS_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.grossTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,BASE_SPOT1_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.baseSpot1No,jdbcType=VARCHAR}
+       </foreach>
+       ,BASE_SPOT1_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.baseSpot1Name,jdbcType=VARCHAR}
+       </foreach>
+       ,GROSS_CLASS=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.grossClass,jdbcType=VARCHAR}
+       </foreach>
+       ,GROSS_GROUP=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.grossGroup,jdbcType=VARCHAR}
+       </foreach>
+       ,GROSS_MODE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.grossMode,jdbcType=VARCHAR}
+       </foreach>
+       ,ACTUAL_FIRST2_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.actualFirst2No,jdbcType=VARCHAR}
+       </foreach>
+       ,TARE_WEIGHT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.tareWeight,jdbcType=DECIMAL}
+       </foreach>
+       ,TARE_MAN_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.tareManNo,jdbcType=VARCHAR}
+       </foreach>
+       ,TARE_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.tareManName,jdbcType=VARCHAR}
+       </foreach>
+       ,TARE_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.tareTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,BASE_SPOT2_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.baseSpot2No,jdbcType=VARCHAR}
+       </foreach>
+       ,BASE_SPOT2_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.baseSpot2Name,jdbcType=VARCHAR}
+       </foreach>
+       ,TARE_CLASS=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.tareClass,jdbcType=VARCHAR}
+       </foreach>
+       ,TARE_GROUP=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.tareGroup,jdbcType=VARCHAR}
+       </foreach>
+       ,TARE_MODE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.tareMode,jdbcType=VARCHAR}
+       </foreach>
+       ,NET_WEIGHT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.netWeight,jdbcType=DECIMAL}
+       </foreach>
+       ,NET_MAN_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.netManNo,jdbcType=VARCHAR}
+       </foreach>
+       ,NET_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.netManName,jdbcType=VARCHAR}
+       </foreach>
+       ,NET_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.netTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,NET_SPOT3_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.netSpot3No,jdbcType=VARCHAR}
+       </foreach>
+       ,NET_SPOT3_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.netSpot3Name,jdbcType=VARCHAR}
+       </foreach>
+       ,NET_CLASS=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.netClass,jdbcType=VARCHAR}
+       </foreach>
+       ,NET_GROUP=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.netGroup,jdbcType=VARCHAR}
+       </foreach>
+       ,NET_MODE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.netMode,jdbcType=VARCHAR}
+       </foreach>
+       ,VALUE_FLAG=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.valueFlag,jdbcType=VARCHAR}
+       </foreach>
+       ,UPLOAD_FLAG=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.uploadFlag,jdbcType=VARCHAR}
+       </foreach>
+       ,CHECK_MAN_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.checkManNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CHECK_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.checkManName,jdbcType=VARCHAR}
+       </foreach>
+       ,CHECK_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.checkTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,UPLOAD_MAN_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.uploadManNo,jdbcType=VARCHAR}
+       </foreach>
+       ,UPLOAD_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.uploadManName,jdbcType=VARCHAR}
+       </foreach>
+       ,UPLOAD_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.uploadTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,SAMPLE_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.sampleNo,jdbcType=VARCHAR}
+       </foreach>
+       ,RAILWAY_TYPE_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.railwayTypeNo,jdbcType=VARCHAR}
+       </foreach>
+       ,RAILWAY_TYPE_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.railwayTypeName,jdbcType=VARCHAR}
+       </foreach>
+       ,MEMO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.memo,jdbcType=VARCHAR}
+       </foreach>
+       ,WATER_NUM=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.waterNum,jdbcType=DECIMAL}
+       </foreach>
+       ,ARRIVAL=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.arrival,jdbcType=VARCHAR}
+       </foreach>
+       ,STATION=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.station,jdbcType=VARCHAR}
+       </foreach>
+       ,UPDATE_MAN_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=VARCHAR}
+       </foreach>
+       ,UPDATE_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.updateManName,jdbcType=VARCHAR}
+       </foreach>
+       ,UPDATE_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,SOURCE_AREA=
+       <foreach collection="list" item="item" index="index" separator=" " open="case ACTUAL_NO" close="end">
+          when #{item.actualNo,jdbcType=VARCHAR} then #{item.sourceArea,jdbcType=VARCHAR}
+       </foreach>
+     where ACTUAL_NO in 
+     <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
+    #{item.actualNo,jdbcType=VARCHAR}
+     </foreach> 
+  </update>
+  <delete id="batchDelete" parameterType="java.util.List">
+    delete from METER_WORK_HOOK_ACTUAL
+    where ACTUAL_NO in 
+    <foreach collection="list" item="id" open="(" close=")" separator=",">
+      #{id}
+    </foreach>
+  </delete>
+  <!-- 友情提示!!!-->
+  <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
+  
+</mapper>

+ 1173 - 0
src/main/java/com/steerinfo/meterwork/meterworkhookactual/model/MeterWorkHookActual.java

@@ -0,0 +1,1173 @@
+package com.steerinfo.meterwork.meterworkhookactual.model;
+
+import com.steerinfo.framework.model.IBasePO;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.Date;
+
+@ApiModel(value="计量吊钩秤结净表")
+public class MeterWorkHookActual implements IBasePO<String> {
+    /**
+     * 结净编号(YYYYMMDD+4位流水)(ACTUAL_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="结净编号(YYYYMMDD+4位流水)",required=true)
+    private String actualNo;
+
+    /**
+     * 预报编号(PREDICTION_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="预报编号",required=false)
+    private String predictionNo;
+
+    /**
+     * 通知单号(NOTICE_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="通知单号",required=false)
+    private String noticeNo;
+
+    /**
+     * 火车车号(RAILWAY_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="火车车号",required=false)
+    private String railwayNo;
+
+    /**
+     * 车厢序号(RAILWAY_CARRIAGE_NO,VARCHAR,2)
+     */
+    @ApiModelProperty(value="车厢序号",required=false)
+    private String railwayCarriageNo;
+
+    /**
+     * 物料编号(MATTER_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="物料编号",required=false)
+    private String matterNo;
+
+    /**
+     * 物料名称(MATTER_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="物料名称",required=false)
+    private String matterName;
+
+    /**
+     * 合同号(CONTRACT_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="合同号",required=false)
+    private String contractNo;
+
+    /**
+     * 批次号(BATCH_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="批次号",required=false)
+    private String batchNo;
+
+    /**
+     * 供应商编号(CUSTOMER_SUPPLIER_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="供应商编号",required=false)
+    private String customerSupplierNo;
+
+    /**
+     * 供应商名称(CUSTOMER_SUPPLIER_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="供应商名称",required=false)
+    private String customerSupplierName;
+
+    /**
+     * 发货单位编号(FORWARDING_UNIT_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="发货单位编号",required=false)
+    private String forwardingUnitNo;
+
+    /**
+     * 发货单位名称(FORWARDING_UNIT_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="发货单位名称",required=false)
+    private String forwardingUnitName;
+
+    /**
+     * 收货单位编号(RECEIVING_UINT_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="收货单位编号",required=false)
+    private String receivingUintNo;
+
+    /**
+     * 收货单位名称(RECEIVING_UINT_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="收货单位名称",required=false)
+    private String receivingUintName;
+
+    /**
+     * 材质编号(MATERIAL_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="材质编号",required=false)
+    private String materialNo;
+
+    /**
+     * 材质名称(MATERIAL_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="材质名称",required=false)
+    private String materialName;
+
+    /**
+     * 规格编号(SPEC_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="规格编号",required=false)
+    private String specNo;
+
+    /**
+     * 规格名称(SPEC_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="规格名称",required=false)
+    private String specName;
+
+    /**
+     * 卸货地点编号(LOAD_POINT_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="卸货地点编号",required=false)
+    private String loadPointNo;
+
+    /**
+     * 卸货地点名称(LOAD_POINT_NAME,VARCHAR,60)
+     */
+    @ApiModelProperty(value="卸货地点名称",required=false)
+    private String loadPointName;
+
+    /**
+     * 取样凭证(SAMPLE_VOUCHER,VARCHAR,40)
+     */
+    @ApiModelProperty(value="取样凭证",required=false)
+    private String sampleVoucher;
+
+    /**
+     * 承运单位编号(CARRIER_UNIT_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="承运单位编号",required=false)
+    private String carrierUnitNo;
+
+    /**
+     * 承运单位名称(CARRIER_UNIT_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="承运单位名称",required=false)
+    private String carrierUnitName;
+
+    /**
+     * 计量类型编号(业务类型)(METER_TYPE_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="计量类型编号(业务类型)",required=false)
+    private String meterTypeNo;
+
+    /**
+     * 计量类型名称(业务类型)(METER_TYPE_NAME,VARCHAR,30)
+     */
+    @ApiModelProperty(value="计量类型名称(业务类型)",required=false)
+    private String meterTypeName;
+
+    /**
+     * 计量流程编号(METER_PROCESS_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="计量流程编号",required=false)
+    private String meterProcessNo;
+
+    /**
+     * 计量流程版本号(METER_PROCESS_EDITION_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="计量流程版本号",required=false)
+    private String meterProcessEditionNo;
+
+    /**
+     * 毛重计量作业编号(ACTUAL_FIRST1_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="毛重计量作业编号",required=false)
+    private String actualFirst1No;
+
+    /**
+     * 毛重(GROSS_WEIGHT,DECIMAL,10)
+     */
+    @ApiModelProperty(value="毛重",required=false)
+    private BigDecimal grossWeight;
+
+    /**
+     * 毛重计量员编号(GROSS_MAN_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="毛重计量员编号",required=false)
+    private String grossManNo;
+
+    /**
+     * 毛重计量员姓名(GROSS_MAN_NAME,VARCHAR,30)
+     */
+    @ApiModelProperty(value="毛重计量员姓名",required=false)
+    private String grossManName;
+
+    /**
+     * 毛重计量时间(YYYY-MM-DD HH:mm:SS)(GROSS_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="毛重计量时间(YYYY-MM-DD HH:mm:SS)",required=false)
+    private Date grossTime;
+
+    /**
+     * 毛重计量点编号(BASE_SPOT1_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="毛重计量点编号",required=false)
+    private String baseSpot1No;
+
+    /**
+     * 毛重计量点名称(BASE_SPOT1_NAME,VARCHAR,40)
+     */
+    @ApiModelProperty(value="毛重计量点名称",required=false)
+    private String baseSpot1Name;
+
+    /**
+     * 毛重班次(GROSS_CLASS,VARCHAR,20)
+     */
+    @ApiModelProperty(value="毛重班次",required=false)
+    private String grossClass;
+
+    /**
+     * 毛重班组(GROSS_GROUP,VARCHAR,20)
+     */
+    @ApiModelProperty(value="毛重班组",required=false)
+    private String grossGroup;
+
+    /**
+     * 毛重计量方式(1:远程计量;2:智能计量;3:手工录入;4:放行智能计量;5:滞后匹配)(GROSS_MODE,VARCHAR,1)
+     */
+    @ApiModelProperty(value="毛重计量方式(1:远程计量;2:智能计量;3:手工录入;4:放行智能计量;5:滞后匹配)",required=false)
+    private String grossMode;
+
+    /**
+     * 皮重计量作业编号(ACTUAL_FIRST2_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="皮重计量作业编号",required=false)
+    private String actualFirst2No;
+
+    /**
+     * 皮重(TARE_WEIGHT,DECIMAL,10)
+     */
+    @ApiModelProperty(value="皮重",required=false)
+    private BigDecimal tareWeight;
+
+    /**
+     * 皮重计量员编号(TARE_MAN_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="皮重计量员编号",required=false)
+    private String tareManNo;
+
+    /**
+     * 皮重计量员姓名(TARE_MAN_NAME,VARCHAR,30)
+     */
+    @ApiModelProperty(value="皮重计量员姓名",required=false)
+    private String tareManName;
+
+    /**
+     * 皮重计量时间(YYYY-MM-DD HH:mm:SS)(TARE_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="皮重计量时间(YYYY-MM-DD HH:mm:SS)",required=false)
+    private Date tareTime;
+
+    /**
+     * 皮重计量点编号(BASE_SPOT2_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="皮重计量点编号",required=false)
+    private String baseSpot2No;
+
+    /**
+     * 皮重计量点名称(BASE_SPOT2_NAME,VARCHAR,40)
+     */
+    @ApiModelProperty(value="皮重计量点名称",required=false)
+    private String baseSpot2Name;
+
+    /**
+     * 皮重班次(TARE_CLASS,VARCHAR,20)
+     */
+    @ApiModelProperty(value="皮重班次",required=false)
+    private String tareClass;
+
+    /**
+     * 皮重班组(TARE_GROUP,VARCHAR,20)
+     */
+    @ApiModelProperty(value="皮重班组",required=false)
+    private String tareGroup;
+
+    /**
+     * 皮重计量方式(1:远程计量;2:智能计量;3:手工录入;4:放行智能计量;5:滞后匹配)(TARE_MODE,VARCHAR,1)
+     */
+    @ApiModelProperty(value="皮重计量方式(1:远程计量;2:智能计量;3:手工录入;4:放行智能计量;5:滞后匹配)",required=false)
+    private String tareMode;
+
+    /**
+     * 净重(NET_WEIGHT,DECIMAL,10)
+     */
+    @ApiModelProperty(value="净重",required=false)
+    private BigDecimal netWeight;
+
+    /**
+     * 净重计量员编号(NET_MAN_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="净重计量员编号",required=false)
+    private String netManNo;
+
+    /**
+     * 净重计量员姓名(NET_MAN_NAME,VARCHAR,30)
+     */
+    @ApiModelProperty(value="净重计量员姓名",required=false)
+    private String netManName;
+
+    /**
+     * 净重计量时间(YYYY-MM-DD HH:mm:SS)(NET_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="净重计量时间(YYYY-MM-DD HH:mm:SS)",required=false)
+    private Date netTime;
+
+    /**
+     * 净重计量点编号(NET_SPOT3_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="净重计量点编号",required=false)
+    private String netSpot3No;
+
+    /**
+     * 净重计量点名称(NET_SPOT3_NAME,VARCHAR,40)
+     */
+    @ApiModelProperty(value="净重计量点名称",required=false)
+    private String netSpot3Name;
+
+    /**
+     * 净重班次(NET_CLASS,VARCHAR,20)
+     */
+    @ApiModelProperty(value="净重班次",required=false)
+    private String netClass;
+
+    /**
+     * 净重班组(NET_GROUP,VARCHAR,20)
+     */
+    @ApiModelProperty(value="净重班组",required=false)
+    private String netGroup;
+
+    /**
+     * 结净方式(1:正常结净;2:匹配结净)(NET_MODE,VARCHAR,1)
+     */
+    @ApiModelProperty(value="结净方式(1:正常结净;2:匹配结净)",required=false)
+    private String netMode;
+
+    /**
+     * 状态(0=有效,1=作废 )(VALUE_FLAG,VARCHAR,1)
+     */
+    @ApiModelProperty(value="状态(0=有效,1=作废 )",required=false)
+    private String valueFlag;
+
+    /**
+     * 上传状态(0=待审核;1:待上传;2=已上传 )(UPLOAD_FLAG,VARCHAR,1)
+     */
+    @ApiModelProperty(value="上传状态(0=待审核;1:待上传;2=已上传 )",required=false)
+    private String uploadFlag;
+
+    /**
+     * 审核人编号(CHECK_MAN_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="审核人编号",required=false)
+    private String checkManNo;
+
+    /**
+     * 审核人姓名(CHECK_MAN_NAME,VARCHAR,30)
+     */
+    @ApiModelProperty(value="审核人姓名",required=false)
+    private String checkManName;
+
+    /**
+     * 审核时间(YYYY-MM-DD HH:mm:SS)(CHECK_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="审核时间(YYYY-MM-DD HH:mm:SS)",required=false)
+    private Date checkTime;
+
+    /**
+     * 上传人编号(UPLOAD_MAN_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="上传人编号",required=false)
+    private String uploadManNo;
+
+    /**
+     * 上传人姓名(UPLOAD_MAN_NAME,VARCHAR,30)
+     */
+    @ApiModelProperty(value="上传人姓名",required=false)
+    private String uploadManName;
+
+    /**
+     * 上传时间(YYYY-MM-DD HH:mm:SS)(UPLOAD_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="上传时间(YYYY-MM-DD HH:mm:SS)",required=false)
+    private Date uploadTime;
+
+    /**
+     * 取样编号(SAMPLE_NO,VARCHAR,40)
+     */
+    @ApiModelProperty(value="取样编号",required=false)
+    private String sampleNo;
+
+    /**
+     * 轨道衡类型编号(RAILWAY_TYPE_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="轨道衡类型编号",required=false)
+    private String railwayTypeNo;
+
+    /**
+     * 轨道衡类型名称(RAILWAY_TYPE_NAME,VARCHAR,30)
+     */
+    @ApiModelProperty(value="轨道衡类型名称",required=false)
+    private String railwayTypeName;
+
+    /**
+     * 备注(MEMO,VARCHAR,2000)
+     */
+    @ApiModelProperty(value="备注",required=false)
+    private String memo;
+
+    /**
+     * 水分百分比(WATER_NUM,DECIMAL,10)
+     */
+    @ApiModelProperty(value="水分百分比",required=false)
+    private BigDecimal waterNum;
+
+    /**
+     * 到站(ARRIVAL,VARCHAR,40)
+     */
+    @ApiModelProperty(value="到站",required=false)
+    private String arrival;
+
+    /**
+     * 发站(STATION,VARCHAR,40)
+     */
+    @ApiModelProperty(value="发站",required=false)
+    private String station;
+
+    /**
+     * 修改人编号(UPDATE_MAN_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="修改人编号",required=false)
+    private String updateManNo;
+
+    /**
+     * 修改人姓名(UPDATE_MAN_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="修改人姓名",required=false)
+    private String updateManName;
+
+    /**
+     * 修改时间(YYYY-MM-DD HH:mm:SS)(UPDATE_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="修改时间(YYYY-MM-DD HH:mm:SS)",required=false)
+    private Date updateTime;
+
+    /**
+     * 原产地(SOURCE_AREA,VARCHAR,50)
+     */
+    @ApiModelProperty(value="原产地",required=false)
+    private String sourceArea;
+
+    private static final long serialVersionUID = 1L;
+
+    @Override
+    public String getId() {
+        return this.actualNo;
+    }
+
+    @Override
+    public void setId(String actualNo) {
+        this.actualNo = actualNo == null ? null : actualNo.trim();
+    }
+
+    public String getActualNo() {
+        return actualNo;
+    }
+
+    public void setActualNo(String actualNo) {
+        this.actualNo = actualNo == null ? null : actualNo.trim();
+    }
+
+    public String getPredictionNo() {
+        return predictionNo;
+    }
+
+    public void setPredictionNo(String predictionNo) {
+        this.predictionNo = predictionNo == null ? null : predictionNo.trim();
+    }
+
+    public String getNoticeNo() {
+        return noticeNo;
+    }
+
+    public void setNoticeNo(String noticeNo) {
+        this.noticeNo = noticeNo == null ? null : noticeNo.trim();
+    }
+
+    public String getRailwayNo() {
+        return railwayNo;
+    }
+
+    public void setRailwayNo(String railwayNo) {
+        this.railwayNo = railwayNo == null ? null : railwayNo.trim();
+    }
+
+    public String getRailwayCarriageNo() {
+        return railwayCarriageNo;
+    }
+
+    public void setRailwayCarriageNo(String railwayCarriageNo) {
+        this.railwayCarriageNo = railwayCarriageNo == null ? null : railwayCarriageNo.trim();
+    }
+
+    public String getMatterNo() {
+        return matterNo;
+    }
+
+    public void setMatterNo(String matterNo) {
+        this.matterNo = matterNo == null ? null : matterNo.trim();
+    }
+
+    public String getMatterName() {
+        return matterName;
+    }
+
+    public void setMatterName(String matterName) {
+        this.matterName = matterName == null ? null : matterName.trim();
+    }
+
+    public String getContractNo() {
+        return contractNo;
+    }
+
+    public void setContractNo(String contractNo) {
+        this.contractNo = contractNo == null ? null : contractNo.trim();
+    }
+
+    public String getBatchNo() {
+        return batchNo;
+    }
+
+    public void setBatchNo(String batchNo) {
+        this.batchNo = batchNo == null ? null : batchNo.trim();
+    }
+
+    public String getCustomerSupplierNo() {
+        return customerSupplierNo;
+    }
+
+    public void setCustomerSupplierNo(String customerSupplierNo) {
+        this.customerSupplierNo = customerSupplierNo == null ? null : customerSupplierNo.trim();
+    }
+
+    public String getCustomerSupplierName() {
+        return customerSupplierName;
+    }
+
+    public void setCustomerSupplierName(String customerSupplierName) {
+        this.customerSupplierName = customerSupplierName == null ? null : customerSupplierName.trim();
+    }
+
+    public String getForwardingUnitNo() {
+        return forwardingUnitNo;
+    }
+
+    public void setForwardingUnitNo(String forwardingUnitNo) {
+        this.forwardingUnitNo = forwardingUnitNo == null ? null : forwardingUnitNo.trim();
+    }
+
+    public String getForwardingUnitName() {
+        return forwardingUnitName;
+    }
+
+    public void setForwardingUnitName(String forwardingUnitName) {
+        this.forwardingUnitName = forwardingUnitName == null ? null : forwardingUnitName.trim();
+    }
+
+    public String getReceivingUintNo() {
+        return receivingUintNo;
+    }
+
+    public void setReceivingUintNo(String receivingUintNo) {
+        this.receivingUintNo = receivingUintNo == null ? null : receivingUintNo.trim();
+    }
+
+    public String getReceivingUintName() {
+        return receivingUintName;
+    }
+
+    public void setReceivingUintName(String receivingUintName) {
+        this.receivingUintName = receivingUintName == null ? null : receivingUintName.trim();
+    }
+
+    public String getMaterialNo() {
+        return materialNo;
+    }
+
+    public void setMaterialNo(String materialNo) {
+        this.materialNo = materialNo == null ? null : materialNo.trim();
+    }
+
+    public String getMaterialName() {
+        return materialName;
+    }
+
+    public void setMaterialName(String materialName) {
+        this.materialName = materialName == null ? null : materialName.trim();
+    }
+
+    public String getSpecNo() {
+        return specNo;
+    }
+
+    public void setSpecNo(String specNo) {
+        this.specNo = specNo == null ? null : specNo.trim();
+    }
+
+    public String getSpecName() {
+        return specName;
+    }
+
+    public void setSpecName(String specName) {
+        this.specName = specName == null ? null : specName.trim();
+    }
+
+    public String getLoadPointNo() {
+        return loadPointNo;
+    }
+
+    public void setLoadPointNo(String loadPointNo) {
+        this.loadPointNo = loadPointNo == null ? null : loadPointNo.trim();
+    }
+
+    public String getLoadPointName() {
+        return loadPointName;
+    }
+
+    public void setLoadPointName(String loadPointName) {
+        this.loadPointName = loadPointName == null ? null : loadPointName.trim();
+    }
+
+    public String getSampleVoucher() {
+        return sampleVoucher;
+    }
+
+    public void setSampleVoucher(String sampleVoucher) {
+        this.sampleVoucher = sampleVoucher == null ? null : sampleVoucher.trim();
+    }
+
+    public String getCarrierUnitNo() {
+        return carrierUnitNo;
+    }
+
+    public void setCarrierUnitNo(String carrierUnitNo) {
+        this.carrierUnitNo = carrierUnitNo == null ? null : carrierUnitNo.trim();
+    }
+
+    public String getCarrierUnitName() {
+        return carrierUnitName;
+    }
+
+    public void setCarrierUnitName(String carrierUnitName) {
+        this.carrierUnitName = carrierUnitName == null ? null : carrierUnitName.trim();
+    }
+
+    public String getMeterTypeNo() {
+        return meterTypeNo;
+    }
+
+    public void setMeterTypeNo(String meterTypeNo) {
+        this.meterTypeNo = meterTypeNo == null ? null : meterTypeNo.trim();
+    }
+
+    public String getMeterTypeName() {
+        return meterTypeName;
+    }
+
+    public void setMeterTypeName(String meterTypeName) {
+        this.meterTypeName = meterTypeName == null ? null : meterTypeName.trim();
+    }
+
+    public String getMeterProcessNo() {
+        return meterProcessNo;
+    }
+
+    public void setMeterProcessNo(String meterProcessNo) {
+        this.meterProcessNo = meterProcessNo == null ? null : meterProcessNo.trim();
+    }
+
+    public String getMeterProcessEditionNo() {
+        return meterProcessEditionNo;
+    }
+
+    public void setMeterProcessEditionNo(String meterProcessEditionNo) {
+        this.meterProcessEditionNo = meterProcessEditionNo == null ? null : meterProcessEditionNo.trim();
+    }
+
+    public String getActualFirst1No() {
+        return actualFirst1No;
+    }
+
+    public void setActualFirst1No(String actualFirst1No) {
+        this.actualFirst1No = actualFirst1No == null ? null : actualFirst1No.trim();
+    }
+
+    public BigDecimal getGrossWeight() {
+        return grossWeight;
+    }
+
+    public void setGrossWeight(BigDecimal grossWeight) {
+        this.grossWeight = grossWeight;
+    }
+
+    public String getGrossManNo() {
+        return grossManNo;
+    }
+
+    public void setGrossManNo(String grossManNo) {
+        this.grossManNo = grossManNo == null ? null : grossManNo.trim();
+    }
+
+    public String getGrossManName() {
+        return grossManName;
+    }
+
+    public void setGrossManName(String grossManName) {
+        this.grossManName = grossManName == null ? null : grossManName.trim();
+    }
+
+    public Date getGrossTime() {
+        return grossTime;
+    }
+
+    public void setGrossTime(Date grossTime) {
+        this.grossTime = grossTime;
+    }
+
+    public String getBaseSpot1No() {
+        return baseSpot1No;
+    }
+
+    public void setBaseSpot1No(String baseSpot1No) {
+        this.baseSpot1No = baseSpot1No == null ? null : baseSpot1No.trim();
+    }
+
+    public String getBaseSpot1Name() {
+        return baseSpot1Name;
+    }
+
+    public void setBaseSpot1Name(String baseSpot1Name) {
+        this.baseSpot1Name = baseSpot1Name == null ? null : baseSpot1Name.trim();
+    }
+
+    public String getGrossClass() {
+        return grossClass;
+    }
+
+    public void setGrossClass(String grossClass) {
+        this.grossClass = grossClass == null ? null : grossClass.trim();
+    }
+
+    public String getGrossGroup() {
+        return grossGroup;
+    }
+
+    public void setGrossGroup(String grossGroup) {
+        this.grossGroup = grossGroup == null ? null : grossGroup.trim();
+    }
+
+    public String getGrossMode() {
+        return grossMode;
+    }
+
+    public void setGrossMode(String grossMode) {
+        this.grossMode = grossMode == null ? null : grossMode.trim();
+    }
+
+    public String getActualFirst2No() {
+        return actualFirst2No;
+    }
+
+    public void setActualFirst2No(String actualFirst2No) {
+        this.actualFirst2No = actualFirst2No == null ? null : actualFirst2No.trim();
+    }
+
+    public BigDecimal getTareWeight() {
+        return tareWeight;
+    }
+
+    public void setTareWeight(BigDecimal tareWeight) {
+        this.tareWeight = tareWeight;
+    }
+
+    public String getTareManNo() {
+        return tareManNo;
+    }
+
+    public void setTareManNo(String tareManNo) {
+        this.tareManNo = tareManNo == null ? null : tareManNo.trim();
+    }
+
+    public String getTareManName() {
+        return tareManName;
+    }
+
+    public void setTareManName(String tareManName) {
+        this.tareManName = tareManName == null ? null : tareManName.trim();
+    }
+
+    public Date getTareTime() {
+        return tareTime;
+    }
+
+    public void setTareTime(Date tareTime) {
+        this.tareTime = tareTime;
+    }
+
+    public String getBaseSpot2No() {
+        return baseSpot2No;
+    }
+
+    public void setBaseSpot2No(String baseSpot2No) {
+        this.baseSpot2No = baseSpot2No == null ? null : baseSpot2No.trim();
+    }
+
+    public String getBaseSpot2Name() {
+        return baseSpot2Name;
+    }
+
+    public void setBaseSpot2Name(String baseSpot2Name) {
+        this.baseSpot2Name = baseSpot2Name == null ? null : baseSpot2Name.trim();
+    }
+
+    public String getTareClass() {
+        return tareClass;
+    }
+
+    public void setTareClass(String tareClass) {
+        this.tareClass = tareClass == null ? null : tareClass.trim();
+    }
+
+    public String getTareGroup() {
+        return tareGroup;
+    }
+
+    public void setTareGroup(String tareGroup) {
+        this.tareGroup = tareGroup == null ? null : tareGroup.trim();
+    }
+
+    public String getTareMode() {
+        return tareMode;
+    }
+
+    public void setTareMode(String tareMode) {
+        this.tareMode = tareMode == null ? null : tareMode.trim();
+    }
+
+    public BigDecimal getNetWeight() {
+        return netWeight;
+    }
+
+    public void setNetWeight(BigDecimal netWeight) {
+        this.netWeight = netWeight;
+    }
+
+    public String getNetManNo() {
+        return netManNo;
+    }
+
+    public void setNetManNo(String netManNo) {
+        this.netManNo = netManNo == null ? null : netManNo.trim();
+    }
+
+    public String getNetManName() {
+        return netManName;
+    }
+
+    public void setNetManName(String netManName) {
+        this.netManName = netManName == null ? null : netManName.trim();
+    }
+
+    public Date getNetTime() {
+        return netTime;
+    }
+
+    public void setNetTime(Date netTime) {
+        this.netTime = netTime;
+    }
+
+    public String getNetSpot3No() {
+        return netSpot3No;
+    }
+
+    public void setNetSpot3No(String netSpot3No) {
+        this.netSpot3No = netSpot3No == null ? null : netSpot3No.trim();
+    }
+
+    public String getNetSpot3Name() {
+        return netSpot3Name;
+    }
+
+    public void setNetSpot3Name(String netSpot3Name) {
+        this.netSpot3Name = netSpot3Name == null ? null : netSpot3Name.trim();
+    }
+
+    public String getNetClass() {
+        return netClass;
+    }
+
+    public void setNetClass(String netClass) {
+        this.netClass = netClass == null ? null : netClass.trim();
+    }
+
+    public String getNetGroup() {
+        return netGroup;
+    }
+
+    public void setNetGroup(String netGroup) {
+        this.netGroup = netGroup == null ? null : netGroup.trim();
+    }
+
+    public String getNetMode() {
+        return netMode;
+    }
+
+    public void setNetMode(String netMode) {
+        this.netMode = netMode == null ? null : netMode.trim();
+    }
+
+    public String getValueFlag() {
+        return valueFlag;
+    }
+
+    public void setValueFlag(String valueFlag) {
+        this.valueFlag = valueFlag == null ? null : valueFlag.trim();
+    }
+
+    public String getUploadFlag() {
+        return uploadFlag;
+    }
+
+    public void setUploadFlag(String uploadFlag) {
+        this.uploadFlag = uploadFlag == null ? null : uploadFlag.trim();
+    }
+
+    public String getCheckManNo() {
+        return checkManNo;
+    }
+
+    public void setCheckManNo(String checkManNo) {
+        this.checkManNo = checkManNo == null ? null : checkManNo.trim();
+    }
+
+    public String getCheckManName() {
+        return checkManName;
+    }
+
+    public void setCheckManName(String checkManName) {
+        this.checkManName = checkManName == null ? null : checkManName.trim();
+    }
+
+    public Date getCheckTime() {
+        return checkTime;
+    }
+
+    public void setCheckTime(Date checkTime) {
+        this.checkTime = checkTime;
+    }
+
+    public String getUploadManNo() {
+        return uploadManNo;
+    }
+
+    public void setUploadManNo(String uploadManNo) {
+        this.uploadManNo = uploadManNo == null ? null : uploadManNo.trim();
+    }
+
+    public String getUploadManName() {
+        return uploadManName;
+    }
+
+    public void setUploadManName(String uploadManName) {
+        this.uploadManName = uploadManName == null ? null : uploadManName.trim();
+    }
+
+    public Date getUploadTime() {
+        return uploadTime;
+    }
+
+    public void setUploadTime(Date uploadTime) {
+        this.uploadTime = uploadTime;
+    }
+
+    public String getSampleNo() {
+        return sampleNo;
+    }
+
+    public void setSampleNo(String sampleNo) {
+        this.sampleNo = sampleNo == null ? null : sampleNo.trim();
+    }
+
+    public String getRailwayTypeNo() {
+        return railwayTypeNo;
+    }
+
+    public void setRailwayTypeNo(String railwayTypeNo) {
+        this.railwayTypeNo = railwayTypeNo == null ? null : railwayTypeNo.trim();
+    }
+
+    public String getRailwayTypeName() {
+        return railwayTypeName;
+    }
+
+    public void setRailwayTypeName(String railwayTypeName) {
+        this.railwayTypeName = railwayTypeName == null ? null : railwayTypeName.trim();
+    }
+
+    public String getMemo() {
+        return memo;
+    }
+
+    public void setMemo(String memo) {
+        this.memo = memo == null ? null : memo.trim();
+    }
+
+    public BigDecimal getWaterNum() {
+        return waterNum;
+    }
+
+    public void setWaterNum(BigDecimal waterNum) {
+        this.waterNum = waterNum;
+    }
+
+    public String getArrival() {
+        return arrival;
+    }
+
+    public void setArrival(String arrival) {
+        this.arrival = arrival == null ? null : arrival.trim();
+    }
+
+    public String getStation() {
+        return station;
+    }
+
+    public void setStation(String station) {
+        this.station = station == null ? null : station.trim();
+    }
+
+    public String getUpdateManNo() {
+        return updateManNo;
+    }
+
+    public void setUpdateManNo(String updateManNo) {
+        this.updateManNo = updateManNo == null ? null : updateManNo.trim();
+    }
+
+    public String getUpdateManName() {
+        return updateManName;
+    }
+
+    public void setUpdateManName(String updateManName) {
+        this.updateManName = updateManName == null ? null : updateManName.trim();
+    }
+
+    public Date getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Date updateTime) {
+        this.updateTime = updateTime;
+    }
+
+    public String getSourceArea() {
+        return sourceArea;
+    }
+
+    public void setSourceArea(String sourceArea) {
+        this.sourceArea = sourceArea == null ? null : sourceArea.trim();
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", actualNo=").append(actualNo);
+        sb.append(", predictionNo=").append(predictionNo);
+        sb.append(", noticeNo=").append(noticeNo);
+        sb.append(", railwayNo=").append(railwayNo);
+        sb.append(", railwayCarriageNo=").append(railwayCarriageNo);
+        sb.append(", matterNo=").append(matterNo);
+        sb.append(", matterName=").append(matterName);
+        sb.append(", contractNo=").append(contractNo);
+        sb.append(", batchNo=").append(batchNo);
+        sb.append(", customerSupplierNo=").append(customerSupplierNo);
+        sb.append(", customerSupplierName=").append(customerSupplierName);
+        sb.append(", forwardingUnitNo=").append(forwardingUnitNo);
+        sb.append(", forwardingUnitName=").append(forwardingUnitName);
+        sb.append(", receivingUintNo=").append(receivingUintNo);
+        sb.append(", receivingUintName=").append(receivingUintName);
+        sb.append(", materialNo=").append(materialNo);
+        sb.append(", materialName=").append(materialName);
+        sb.append(", specNo=").append(specNo);
+        sb.append(", specName=").append(specName);
+        sb.append(", loadPointNo=").append(loadPointNo);
+        sb.append(", loadPointName=").append(loadPointName);
+        sb.append(", sampleVoucher=").append(sampleVoucher);
+        sb.append(", carrierUnitNo=").append(carrierUnitNo);
+        sb.append(", carrierUnitName=").append(carrierUnitName);
+        sb.append(", meterTypeNo=").append(meterTypeNo);
+        sb.append(", meterTypeName=").append(meterTypeName);
+        sb.append(", meterProcessNo=").append(meterProcessNo);
+        sb.append(", meterProcessEditionNo=").append(meterProcessEditionNo);
+        sb.append(", actualFirst1No=").append(actualFirst1No);
+        sb.append(", grossWeight=").append(grossWeight);
+        sb.append(", grossManNo=").append(grossManNo);
+        sb.append(", grossManName=").append(grossManName);
+        sb.append(", grossTime=").append(grossTime);
+        sb.append(", baseSpot1No=").append(baseSpot1No);
+        sb.append(", baseSpot1Name=").append(baseSpot1Name);
+        sb.append(", grossClass=").append(grossClass);
+        sb.append(", grossGroup=").append(grossGroup);
+        sb.append(", grossMode=").append(grossMode);
+        sb.append(", actualFirst2No=").append(actualFirst2No);
+        sb.append(", tareWeight=").append(tareWeight);
+        sb.append(", tareManNo=").append(tareManNo);
+        sb.append(", tareManName=").append(tareManName);
+        sb.append(", tareTime=").append(tareTime);
+        sb.append(", baseSpot2No=").append(baseSpot2No);
+        sb.append(", baseSpot2Name=").append(baseSpot2Name);
+        sb.append(", tareClass=").append(tareClass);
+        sb.append(", tareGroup=").append(tareGroup);
+        sb.append(", tareMode=").append(tareMode);
+        sb.append(", netWeight=").append(netWeight);
+        sb.append(", netManNo=").append(netManNo);
+        sb.append(", netManName=").append(netManName);
+        sb.append(", netTime=").append(netTime);
+        sb.append(", netSpot3No=").append(netSpot3No);
+        sb.append(", netSpot3Name=").append(netSpot3Name);
+        sb.append(", netClass=").append(netClass);
+        sb.append(", netGroup=").append(netGroup);
+        sb.append(", netMode=").append(netMode);
+        sb.append(", valueFlag=").append(valueFlag);
+        sb.append(", uploadFlag=").append(uploadFlag);
+        sb.append(", checkManNo=").append(checkManNo);
+        sb.append(", checkManName=").append(checkManName);
+        sb.append(", checkTime=").append(checkTime);
+        sb.append(", uploadManNo=").append(uploadManNo);
+        sb.append(", uploadManName=").append(uploadManName);
+        sb.append(", uploadTime=").append(uploadTime);
+        sb.append(", sampleNo=").append(sampleNo);
+        sb.append(", railwayTypeNo=").append(railwayTypeNo);
+        sb.append(", railwayTypeName=").append(railwayTypeName);
+        sb.append(", memo=").append(memo);
+        sb.append(", waterNum=").append(waterNum);
+        sb.append(", arrival=").append(arrival);
+        sb.append(", station=").append(station);
+        sb.append(", updateManNo=").append(updateManNo);
+        sb.append(", updateManName=").append(updateManName);
+        sb.append(", updateTime=").append(updateTime);
+        sb.append(", sourceArea=").append(sourceArea);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 23 - 0
src/main/java/com/steerinfo/meterwork/meterworkhookactual/service/IMeterWorkHookActualService.java

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

+ 36 - 0
src/main/java/com/steerinfo/meterwork/meterworkhookactual/service/impl/MeterWorkHookActualServiceImpl.java

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

+ 110 - 0
src/main/java/com/steerinfo/pretrack/prehookscale/controller/PreHookScaleController.java

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

+ 10 - 0
src/main/java/com/steerinfo/pretrack/prehookscale/mapper/PreHookScaleMapper.java

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

+ 1507 - 0
src/main/java/com/steerinfo/pretrack/prehookscale/mapper/PreHookScaleMapper.xml

@@ -0,0 +1,1507 @@
+<?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.prehookscale.mapper.PreHookScaleMapper">
+  <resultMap id="BaseResultMap" type="com.steerinfo.meterwork.prehookscale.model.PreHookScale">
+    <id column="PREDICTION_NO" jdbcType="VARCHAR" property="predictionNo" />
+    <result column="NOTICE_NO" jdbcType="VARCHAR" property="noticeNo" />
+    <result column="RAILWAY_NO" jdbcType="VARCHAR" property="railwayNo" />
+    <result column="RAILWAY_CARRIAGE_NO" jdbcType="VARCHAR" property="railwayCarriageNo" />
+    <result column="MATTER_NO" jdbcType="VARCHAR" property="matterNo" />
+    <result column="MATTER_NAME" jdbcType="VARCHAR" property="matterName" />
+    <result column="CONTRACT_NO" jdbcType="VARCHAR" property="contractNo" />
+    <result column="BATCH_NO" jdbcType="VARCHAR" property="batchNo" />
+    <result column="CUSTOMER_SUPPLIER_NO" jdbcType="VARCHAR" property="customerSupplierNo" />
+    <result column="CUSTOMER_SUPPLIER_NAME" jdbcType="VARCHAR" property="customerSupplierName" />
+    <result column="SOURCE_AREA" jdbcType="VARCHAR" property="sourceArea" />
+    <result column="FORWARDING_UNIT_NO" jdbcType="VARCHAR" property="forwardingUnitNo" />
+    <result column="FORWARDING_UNIT_NAME" jdbcType="VARCHAR" property="forwardingUnitName" />
+    <result column="RECEIVING_UINT_NO" jdbcType="VARCHAR" property="receivingUintNo" />
+    <result column="RECEIVING_UINT_NAME" jdbcType="VARCHAR" property="receivingUintName" />
+    <result column="MATERIAL_NO" jdbcType="VARCHAR" property="materialNo" />
+    <result column="MATERIAL_NAME" jdbcType="VARCHAR" property="materialName" />
+    <result column="SPEC_NO" jdbcType="VARCHAR" property="specNo" />
+    <result column="SPEC_NAME" jdbcType="VARCHAR" property="specName" />
+    <result column="SHIPMENT_GROSS_WEIGHT" jdbcType="DECIMAL" property="shipmentGrossWeight" />
+    <result column="SHIPMENT_NET_WEIGHT" jdbcType="DECIMAL" property="shipmentNetWeight" />
+    <result column="SHIPMENT_NUM" jdbcType="DECIMAL" property="shipmentNum" />
+    <result column="LOAD_POINT_NO" jdbcType="VARCHAR" property="loadPointNo" />
+    <result column="LOAD_POINT_NAME" jdbcType="VARCHAR" property="loadPointName" />
+    <result column="SAMPLE_NO" jdbcType="VARCHAR" property="sampleNo" />
+    <result column="SAMPLE_VOUCHER" jdbcType="VARCHAR" property="sampleVoucher" />
+    <result column="CARRIER_UNIT_NO" jdbcType="VARCHAR" property="carrierUnitNo" />
+    <result column="CARRIER_UNIT_NAME" jdbcType="VARCHAR" property="carrierUnitName" />
+    <result column="PREDICTION_TYPE" jdbcType="VARCHAR" property="predictionType" />
+    <result column="PREDICTION_COMBINATION" jdbcType="VARCHAR" property="predictionCombination" />
+    <result column="METER_TYPE_NO" jdbcType="VARCHAR" property="meterTypeNo" />
+    <result column="METER_TYPE_NAME" jdbcType="VARCHAR" property="meterTypeName" />
+    <result column="EFFECTIVE_START_TIME" jdbcType="TIMESTAMP" property="effectiveStartTime" />
+    <result column="EFFECTIVE_END_TIME" jdbcType="TIMESTAMP" property="effectiveEndTime" />
+    <result column="RAILWAY_TYPE_NO" jdbcType="VARCHAR" property="railwayTypeNo" />
+    <result column="RAILWAY_TYPE_NAME" jdbcType="VARCHAR" property="railwayTypeName" />
+    <result column="MEMO" jdbcType="VARCHAR" property="memo" />
+    <result column="VALUE_FLAG" jdbcType="VARCHAR" property="valueFlag" />
+    <result column="USED_TIME" jdbcType="TIMESTAMP" property="usedTime" />
+    <result column="CREATE_MAN_NO" jdbcType="VARCHAR" property="createManNo" />
+    <result column="CREATE_MAN_NAME" jdbcType="VARCHAR" property="createManName" />
+    <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
+    <result column="UPDATE_MAN_NO" jdbcType="VARCHAR" property="updateManNo" />
+    <result column="UPDATE_MAN_NAME" jdbcType="VARCHAR" property="updateManName" />
+    <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
+    <result column="DELETE_MAN_NO" jdbcType="VARCHAR" property="deleteManNo" />
+    <result column="DELETE_MAN_NAME" jdbcType="VARCHAR" property="deleteManName" />
+    <result column="DELETE_TIME" jdbcType="TIMESTAMP" property="deleteTime" />
+    <result column="P_VALUE_FLAG" jdbcType="VARCHAR" property="pValueFlag" />
+    <result column="IS_CHEMICAL" jdbcType="VARCHAR" property="isChemical" />
+    <result column="LIMIT_WEIGHT" jdbcType="DECIMAL" property="limitWeight" />
+    <result column="RAILWAY_MODEL_NO" jdbcType="VARCHAR" property="railwayModelNo" />
+    <result column="RAILWAY_MODEL_NAME" jdbcType="VARCHAR" property="railwayModelName" />
+    <result column="ARRIVAL" jdbcType="VARCHAR" property="arrival" />
+    <result column="STATION" jdbcType="VARCHAR" property="station" />
+  </resultMap>
+  <sql id="columns">
+    PREDICTION_NO, NOTICE_NO, RAILWAY_NO, RAILWAY_CARRIAGE_NO, MATTER_NO, MATTER_NAME, 
+    CONTRACT_NO, BATCH_NO, CUSTOMER_SUPPLIER_NO, CUSTOMER_SUPPLIER_NAME, SOURCE_AREA, 
+    FORWARDING_UNIT_NO, FORWARDING_UNIT_NAME, RECEIVING_UINT_NO, RECEIVING_UINT_NAME, 
+    MATERIAL_NO, MATERIAL_NAME, SPEC_NO, SPEC_NAME, SHIPMENT_GROSS_WEIGHT, SHIPMENT_NET_WEIGHT, 
+    SHIPMENT_NUM, LOAD_POINT_NO, LOAD_POINT_NAME, SAMPLE_NO, SAMPLE_VOUCHER, CARRIER_UNIT_NO, 
+    CARRIER_UNIT_NAME, PREDICTION_TYPE, PREDICTION_COMBINATION, METER_TYPE_NO, METER_TYPE_NAME, 
+    EFFECTIVE_START_TIME, EFFECTIVE_END_TIME, RAILWAY_TYPE_NO, RAILWAY_TYPE_NAME, MEMO, 
+    VALUE_FLAG, USED_TIME, CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, UPDATE_MAN_NO, 
+    UPDATE_MAN_NAME, UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME, P_VALUE_FLAG, 
+    IS_CHEMICAL, LIMIT_WEIGHT, RAILWAY_MODEL_NO, RAILWAY_MODEL_NAME, ARRIVAL, STATION
+  </sql>
+  <sql id="columns_alias">
+    t.PREDICTION_NO, t.NOTICE_NO, t.RAILWAY_NO, t.RAILWAY_CARRIAGE_NO, t.MATTER_NO, t.MATTER_NAME, 
+    t.CONTRACT_NO, t.BATCH_NO, t.CUSTOMER_SUPPLIER_NO, t.CUSTOMER_SUPPLIER_NAME, t.SOURCE_AREA, 
+    t.FORWARDING_UNIT_NO, t.FORWARDING_UNIT_NAME, t.RECEIVING_UINT_NO, t.RECEIVING_UINT_NAME, 
+    t.MATERIAL_NO, t.MATERIAL_NAME, t.SPEC_NO, t.SPEC_NAME, t.SHIPMENT_GROSS_WEIGHT, 
+    t.SHIPMENT_NET_WEIGHT, t.SHIPMENT_NUM, t.LOAD_POINT_NO, t.LOAD_POINT_NAME, t.SAMPLE_NO, 
+    t.SAMPLE_VOUCHER, t.CARRIER_UNIT_NO, t.CARRIER_UNIT_NAME, t.PREDICTION_TYPE, t.PREDICTION_COMBINATION, 
+    t.METER_TYPE_NO, t.METER_TYPE_NAME, t.EFFECTIVE_START_TIME, t.EFFECTIVE_END_TIME, 
+    t.RAILWAY_TYPE_NO, t.RAILWAY_TYPE_NAME, t.MEMO, t.VALUE_FLAG, t.USED_TIME, t.CREATE_MAN_NO, 
+    t.CREATE_MAN_NAME, t.CREATE_TIME, t.UPDATE_MAN_NO, t.UPDATE_MAN_NAME, t.UPDATE_TIME, 
+    t.DELETE_MAN_NO, t.DELETE_MAN_NAME, t.DELETE_TIME, t.P_VALUE_FLAG, t.IS_CHEMICAL, 
+    t.LIMIT_WEIGHT, t.RAILWAY_MODEL_NO, t.RAILWAY_MODEL_NAME, t.ARRIVAL, t.STATION
+  </sql>
+  <sql id="select">
+    SELECT <include refid="columns"/> FROM PRE_HOOK_SCALE
+  </sql>
+  <sql id="select_alias">
+    SELECT <include refid="columns_alias"/> FROM PRE_HOOK_SCALE t
+  </sql>
+  <sql id="where">
+    <where> 
+      <if test="predictionNo != null and predictionNo != ''">
+        and PREDICTION_NO = #{predictionNo}
+      </if>
+      <if test="noticeNo != null and noticeNo != ''">
+        and NOTICE_NO = #{noticeNo}
+      </if>
+      <if test="railwayNo != null and railwayNo != ''">
+        and RAILWAY_NO = #{railwayNo}
+      </if>
+      <if test="railwayCarriageNo != null and railwayCarriageNo != ''">
+        and RAILWAY_CARRIAGE_NO = #{railwayCarriageNo}
+      </if>
+      <if test="matterNo != null and matterNo != ''">
+        and MATTER_NO = #{matterNo}
+      </if>
+      <if test="matterName != null and matterName != ''">
+        and MATTER_NAME = #{matterName}
+      </if>
+      <if test="contractNo != null and contractNo != ''">
+        and CONTRACT_NO = #{contractNo}
+      </if>
+      <if test="batchNo != null and batchNo != ''">
+        and BATCH_NO = #{batchNo}
+      </if>
+      <if test="customerSupplierNo != null and customerSupplierNo != ''">
+        and CUSTOMER_SUPPLIER_NO = #{customerSupplierNo}
+      </if>
+      <if test="customerSupplierName != null and customerSupplierName != ''">
+        and CUSTOMER_SUPPLIER_NAME = #{customerSupplierName}
+      </if>
+      <if test="sourceArea != null and sourceArea != ''">
+        and SOURCE_AREA = #{sourceArea}
+      </if>
+      <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
+        and FORWARDING_UNIT_NO = #{forwardingUnitNo}
+      </if>
+      <if test="forwardingUnitName != null and forwardingUnitName != ''">
+        and FORWARDING_UNIT_NAME = #{forwardingUnitName}
+      </if>
+      <if test="receivingUintNo != null and receivingUintNo != ''">
+        and RECEIVING_UINT_NO = #{receivingUintNo}
+      </if>
+      <if test="receivingUintName != null and receivingUintName != ''">
+        and RECEIVING_UINT_NAME = #{receivingUintName}
+      </if>
+      <if test="materialNo != null and materialNo != ''">
+        and MATERIAL_NO = #{materialNo}
+      </if>
+      <if test="materialName != null and materialName != ''">
+        and MATERIAL_NAME = #{materialName}
+      </if>
+      <if test="specNo != null and specNo != ''">
+        and SPEC_NO = #{specNo}
+      </if>
+      <if test="specName != null and specName != ''">
+        and SPEC_NAME = #{specName}
+      </if>
+      <if test="shipmentGrossWeight != null">
+        and SHIPMENT_GROSS_WEIGHT = #{shipmentGrossWeight}
+      </if>
+      <if test="shipmentNetWeight != null">
+        and SHIPMENT_NET_WEIGHT = #{shipmentNetWeight}
+      </if>
+      <if test="shipmentNum != null">
+        and SHIPMENT_NUM = #{shipmentNum}
+      </if>
+      <if test="loadPointNo != null and loadPointNo != ''">
+        and LOAD_POINT_NO = #{loadPointNo}
+      </if>
+      <if test="loadPointName != null and loadPointName != ''">
+        and LOAD_POINT_NAME = #{loadPointName}
+      </if>
+      <if test="sampleNo != null and sampleNo != ''">
+        and SAMPLE_NO = #{sampleNo}
+      </if>
+      <if test="sampleVoucher != null and sampleVoucher != ''">
+        and SAMPLE_VOUCHER = #{sampleVoucher}
+      </if>
+      <if test="carrierUnitNo != null and carrierUnitNo != ''">
+        and CARRIER_UNIT_NO = #{carrierUnitNo}
+      </if>
+      <if test="carrierUnitName != null and carrierUnitName != ''">
+        and CARRIER_UNIT_NAME = #{carrierUnitName}
+      </if>
+      <if test="predictionType != null and predictionType != ''">
+        and PREDICTION_TYPE = #{predictionType}
+      </if>
+      <if test="predictionCombination != null and predictionCombination != ''">
+        and PREDICTION_COMBINATION = #{predictionCombination}
+      </if>
+      <if test="meterTypeNo != null and meterTypeNo != ''">
+        and METER_TYPE_NO = #{meterTypeNo}
+      </if>
+      <if test="meterTypeName != null and meterTypeName != ''">
+        and METER_TYPE_NAME = #{meterTypeName}
+      </if>
+      <if test="effectiveStartTime != null">
+        and TO_CHAR(EFFECTIVE_START_TIME,'yyyy-MM-dd') = #{effectiveStartTime}
+      </if>
+      <if test="effectiveEndTime != null">
+        and TO_CHAR(EFFECTIVE_END_TIME,'yyyy-MM-dd') = #{effectiveEndTime}
+      </if>
+      <if test="railwayTypeNo != null and railwayTypeNo != ''">
+        and RAILWAY_TYPE_NO = #{railwayTypeNo}
+      </if>
+      <if test="railwayTypeName != null and railwayTypeName != ''">
+        and RAILWAY_TYPE_NAME = #{railwayTypeName}
+      </if>
+      <if test="memo != null and memo != ''">
+        and MEMO = #{memo}
+      </if>
+      <if test="valueFlag != null and valueFlag != ''">
+        and VALUE_FLAG = #{valueFlag}
+      </if>
+      <if test="usedTime != null">
+        and TO_CHAR(USED_TIME,'yyyy-MM-dd') = #{usedTime}
+      </if>
+      <if test="createManNo != null and createManNo != ''">
+        and CREATE_MAN_NO = #{createManNo}
+      </if>
+      <if test="createManName != null and createManName != ''">
+        and CREATE_MAN_NAME = #{createManName}
+      </if>
+      <if test="createTime != null">
+        and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
+      </if>
+      <if test="updateManNo != null and updateManNo != ''">
+        and UPDATE_MAN_NO = #{updateManNo}
+      </if>
+      <if test="updateManName != null and updateManName != ''">
+        and UPDATE_MAN_NAME = #{updateManName}
+      </if>
+      <if test="updateTime != null">
+        and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
+      </if>
+      <if test="deleteManNo != null and deleteManNo != ''">
+        and DELETE_MAN_NO = #{deleteManNo}
+      </if>
+      <if test="deleteManName != null and deleteManName != ''">
+        and DELETE_MAN_NAME = #{deleteManName}
+      </if>
+      <if test="deleteTime != null">
+        and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
+      </if>
+      <if test="pValueFlag != null and pValueFlag != ''">
+        and P_VALUE_FLAG = #{pValueFlag}
+      </if>
+      <if test="isChemical != null and isChemical != ''">
+        and IS_CHEMICAL = #{isChemical}
+      </if>
+      <if test="limitWeight != null">
+        and LIMIT_WEIGHT = #{limitWeight}
+      </if>
+      <if test="railwayModelNo != null and railwayModelNo != ''">
+        and RAILWAY_MODEL_NO = #{railwayModelNo}
+      </if>
+      <if test="railwayModelName != null and railwayModelName != ''">
+        and RAILWAY_MODEL_NAME = #{railwayModelName}
+      </if>
+      <if test="arrival != null and arrival != ''">
+        and ARRIVAL = #{arrival}
+      </if>
+      <if test="station != null and station != ''">
+        and STATION = #{station}
+      </if>
+    </where>
+  </sql>
+  <sql id="whereLike">
+    <where> 
+      <if test="predictionNo != null and predictionNo != ''">
+        and PREDICTION_NO LIKE '%${predictionNo}%'
+      </if>
+      <if test="noticeNo != null and noticeNo != ''">
+        and NOTICE_NO LIKE '%${noticeNo}%'
+      </if>
+      <if test="railwayNo != null and railwayNo != ''">
+        and RAILWAY_NO LIKE '%${railwayNo}%'
+      </if>
+      <if test="railwayCarriageNo != null and railwayCarriageNo != ''">
+        and RAILWAY_CARRIAGE_NO LIKE '%${railwayCarriageNo}%'
+      </if>
+      <if test="matterNo != null and matterNo != ''">
+        and MATTER_NO LIKE '%${matterNo}%'
+      </if>
+      <if test="matterName != null and matterName != ''">
+        and MATTER_NAME LIKE '%${matterName}%'
+      </if>
+      <if test="contractNo != null and contractNo != ''">
+        and CONTRACT_NO LIKE '%${contractNo}%'
+      </if>
+      <if test="batchNo != null and batchNo != ''">
+        and BATCH_NO LIKE '%${batchNo}%'
+      </if>
+      <if test="customerSupplierNo != null and customerSupplierNo != ''">
+        and CUSTOMER_SUPPLIER_NO LIKE '%${customerSupplierNo}%'
+      </if>
+      <if test="customerSupplierName != null and customerSupplierName != ''">
+        and CUSTOMER_SUPPLIER_NAME LIKE '%${customerSupplierName}%'
+      </if>
+      <if test="sourceArea != null and sourceArea != ''">
+        and SOURCE_AREA LIKE '%${sourceArea}%'
+      </if>
+      <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
+        and FORWARDING_UNIT_NO LIKE '%${forwardingUnitNo}%'
+      </if>
+      <if test="forwardingUnitName != null and forwardingUnitName != ''">
+        and FORWARDING_UNIT_NAME LIKE '%${forwardingUnitName}%'
+      </if>
+      <if test="receivingUintNo != null and receivingUintNo != ''">
+        and RECEIVING_UINT_NO LIKE '%${receivingUintNo}%'
+      </if>
+      <if test="receivingUintName != null and receivingUintName != ''">
+        and RECEIVING_UINT_NAME LIKE '%${receivingUintName}%'
+      </if>
+      <if test="materialNo != null and materialNo != ''">
+        and MATERIAL_NO LIKE '%${materialNo}%'
+      </if>
+      <if test="materialName != null and materialName != ''">
+        and MATERIAL_NAME LIKE '%${materialName}%'
+      </if>
+      <if test="specNo != null and specNo != ''">
+        and SPEC_NO LIKE '%${specNo}%'
+      </if>
+      <if test="specName != null and specName != ''">
+        and SPEC_NAME LIKE '%${specName}%'
+      </if>
+      <if test="shipmentGrossWeight != null">
+        and SHIPMENT_GROSS_WEIGHT = #{shipmentGrossWeight}
+      </if>
+      <if test="shipmentNetWeight != null">
+        and SHIPMENT_NET_WEIGHT = #{shipmentNetWeight}
+      </if>
+      <if test="shipmentNum != null">
+        and SHIPMENT_NUM = #{shipmentNum}
+      </if>
+      <if test="loadPointNo != null and loadPointNo != ''">
+        and LOAD_POINT_NO LIKE '%${loadPointNo}%'
+      </if>
+      <if test="loadPointName != null and loadPointName != ''">
+        and LOAD_POINT_NAME LIKE '%${loadPointName}%'
+      </if>
+      <if test="sampleNo != null and sampleNo != ''">
+        and SAMPLE_NO LIKE '%${sampleNo}%'
+      </if>
+      <if test="sampleVoucher != null and sampleVoucher != ''">
+        and SAMPLE_VOUCHER LIKE '%${sampleVoucher}%'
+      </if>
+      <if test="carrierUnitNo != null and carrierUnitNo != ''">
+        and CARRIER_UNIT_NO LIKE '%${carrierUnitNo}%'
+      </if>
+      <if test="carrierUnitName != null and carrierUnitName != ''">
+        and CARRIER_UNIT_NAME LIKE '%${carrierUnitName}%'
+      </if>
+      <if test="predictionType != null and predictionType != ''">
+        and PREDICTION_TYPE LIKE '%${predictionType}%'
+      </if>
+      <if test="predictionCombination != null and predictionCombination != ''">
+        and PREDICTION_COMBINATION LIKE '%${predictionCombination}%'
+      </if>
+      <if test="meterTypeNo != null and meterTypeNo != ''">
+        and METER_TYPE_NO LIKE '%${meterTypeNo}%'
+      </if>
+      <if test="meterTypeName != null and meterTypeName != ''">
+        and METER_TYPE_NAME LIKE '%${meterTypeName}%'
+      </if>
+      <if test="effectiveStartTime != null">
+        and TO_CHAR(EFFECTIVE_START_TIME,'yyyy-MM-dd') = #{effectiveStartTime}
+      </if>
+      <if test="effectiveEndTime != null">
+        and TO_CHAR(EFFECTIVE_END_TIME,'yyyy-MM-dd') = #{effectiveEndTime}
+      </if>
+      <if test="railwayTypeNo != null and railwayTypeNo != ''">
+        and RAILWAY_TYPE_NO LIKE '%${railwayTypeNo}%'
+      </if>
+      <if test="railwayTypeName != null and railwayTypeName != ''">
+        and RAILWAY_TYPE_NAME LIKE '%${railwayTypeName}%'
+      </if>
+      <if test="memo != null and memo != ''">
+        and MEMO LIKE '%${memo}%'
+      </if>
+      <if test="valueFlag != null and valueFlag != ''">
+        and VALUE_FLAG LIKE '%${valueFlag}%'
+      </if>
+      <if test="usedTime != null">
+        and TO_CHAR(USED_TIME,'yyyy-MM-dd') = #{usedTime}
+      </if>
+      <if test="createManNo != null and createManNo != ''">
+        and CREATE_MAN_NO LIKE '%${createManNo}%'
+      </if>
+      <if test="createManName != null and createManName != ''">
+        and CREATE_MAN_NAME LIKE '%${createManName}%'
+      </if>
+      <if test="createTime != null">
+        and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
+      </if>
+      <if test="updateManNo != null and updateManNo != ''">
+        and UPDATE_MAN_NO LIKE '%${updateManNo}%'
+      </if>
+      <if test="updateManName != null and updateManName != ''">
+        and UPDATE_MAN_NAME LIKE '%${updateManName}%'
+      </if>
+      <if test="updateTime != null">
+        and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
+      </if>
+      <if test="deleteManNo != null and deleteManNo != ''">
+        and DELETE_MAN_NO LIKE '%${deleteManNo}%'
+      </if>
+      <if test="deleteManName != null and deleteManName != ''">
+        and DELETE_MAN_NAME LIKE '%${deleteManName}%'
+      </if>
+      <if test="deleteTime != null">
+        and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
+      </if>
+      <if test="pValueFlag != null and pValueFlag != ''">
+        and P_VALUE_FLAG LIKE '%${pValueFlag}%'
+      </if>
+      <if test="isChemical != null and isChemical != ''">
+        and IS_CHEMICAL LIKE '%${isChemical}%'
+      </if>
+      <if test="limitWeight != null">
+        and LIMIT_WEIGHT = #{limitWeight}
+      </if>
+      <if test="railwayModelNo != null and railwayModelNo != ''">
+        and RAILWAY_MODEL_NO LIKE '%${railwayModelNo}%'
+      </if>
+      <if test="railwayModelName != null and railwayModelName != ''">
+        and RAILWAY_MODEL_NAME LIKE '%${railwayModelName}%'
+      </if>
+      <if test="arrival != null and arrival != ''">
+        and ARRIVAL LIKE '%${arrival}%'
+      </if>
+      <if test="station != null and station != ''">
+        and STATION LIKE '%${station}%'
+      </if>
+    </where>
+  </sql>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
+    delete from PRE_HOOK_SCALE
+    where PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR}
+  </delete>
+  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
+    delete from PRE_HOOK_SCALE
+    where 1!=1 
+      <if test="noticeNo != null and noticeNo != ''">
+        or NOTICE_NO = #{noticeNo}
+      </if>
+      <if test="railwayNo != null and railwayNo != ''">
+        or RAILWAY_NO = #{railwayNo}
+      </if>
+      <if test="railwayCarriageNo != null and railwayCarriageNo != ''">
+        or RAILWAY_CARRIAGE_NO = #{railwayCarriageNo}
+      </if>
+      <if test="matterNo != null and matterNo != ''">
+        or MATTER_NO = #{matterNo}
+      </if>
+      <if test="matterName != null and matterName != ''">
+        or MATTER_NAME = #{matterName}
+      </if>
+      <if test="contractNo != null and contractNo != ''">
+        or CONTRACT_NO = #{contractNo}
+      </if>
+      <if test="batchNo != null and batchNo != ''">
+        or BATCH_NO = #{batchNo}
+      </if>
+      <if test="customerSupplierNo != null and customerSupplierNo != ''">
+        or CUSTOMER_SUPPLIER_NO = #{customerSupplierNo}
+      </if>
+      <if test="customerSupplierName != null and customerSupplierName != ''">
+        or CUSTOMER_SUPPLIER_NAME = #{customerSupplierName}
+      </if>
+      <if test="sourceArea != null and sourceArea != ''">
+        or SOURCE_AREA = #{sourceArea}
+      </if>
+      <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
+        or FORWARDING_UNIT_NO = #{forwardingUnitNo}
+      </if>
+      <if test="forwardingUnitName != null and forwardingUnitName != ''">
+        or FORWARDING_UNIT_NAME = #{forwardingUnitName}
+      </if>
+      <if test="receivingUintNo != null and receivingUintNo != ''">
+        or RECEIVING_UINT_NO = #{receivingUintNo}
+      </if>
+      <if test="receivingUintName != null and receivingUintName != ''">
+        or RECEIVING_UINT_NAME = #{receivingUintName}
+      </if>
+      <if test="materialNo != null and materialNo != ''">
+        or MATERIAL_NO = #{materialNo}
+      </if>
+      <if test="materialName != null and materialName != ''">
+        or MATERIAL_NAME = #{materialName}
+      </if>
+      <if test="specNo != null and specNo != ''">
+        or SPEC_NO = #{specNo}
+      </if>
+      <if test="specName != null and specName != ''">
+        or SPEC_NAME = #{specName}
+      </if>
+      <if test="shipmentGrossWeight != null">
+        or SHIPMENT_GROSS_WEIGHT = #{shipmentGrossWeight}
+      </if>
+      <if test="shipmentNetWeight != null">
+        or SHIPMENT_NET_WEIGHT = #{shipmentNetWeight}
+      </if>
+      <if test="shipmentNum != null">
+        or SHIPMENT_NUM = #{shipmentNum}
+      </if>
+      <if test="loadPointNo != null and loadPointNo != ''">
+        or LOAD_POINT_NO = #{loadPointNo}
+      </if>
+      <if test="loadPointName != null and loadPointName != ''">
+        or LOAD_POINT_NAME = #{loadPointName}
+      </if>
+      <if test="sampleNo != null and sampleNo != ''">
+        or SAMPLE_NO = #{sampleNo}
+      </if>
+      <if test="sampleVoucher != null and sampleVoucher != ''">
+        or SAMPLE_VOUCHER = #{sampleVoucher}
+      </if>
+      <if test="carrierUnitNo != null and carrierUnitNo != ''">
+        or CARRIER_UNIT_NO = #{carrierUnitNo}
+      </if>
+      <if test="carrierUnitName != null and carrierUnitName != ''">
+        or CARRIER_UNIT_NAME = #{carrierUnitName}
+      </if>
+      <if test="predictionType != null and predictionType != ''">
+        or PREDICTION_TYPE = #{predictionType}
+      </if>
+      <if test="predictionCombination != null and predictionCombination != ''">
+        or PREDICTION_COMBINATION = #{predictionCombination}
+      </if>
+      <if test="meterTypeNo != null and meterTypeNo != ''">
+        or METER_TYPE_NO = #{meterTypeNo}
+      </if>
+      <if test="meterTypeName != null and meterTypeName != ''">
+        or METER_TYPE_NAME = #{meterTypeName}
+      </if>
+      <if test="effectiveStartTime != null">
+        or TO_CHAR(EFFECTIVE_START_TIME,'yyyy-MM-dd') = '#{effectiveStartTime}'
+      </if>
+      <if test="effectiveEndTime != null">
+        or TO_CHAR(EFFECTIVE_END_TIME,'yyyy-MM-dd') = '#{effectiveEndTime}'
+      </if>
+      <if test="railwayTypeNo != null and railwayTypeNo != ''">
+        or RAILWAY_TYPE_NO = #{railwayTypeNo}
+      </if>
+      <if test="railwayTypeName != null and railwayTypeName != ''">
+        or RAILWAY_TYPE_NAME = #{railwayTypeName}
+      </if>
+      <if test="memo != null and memo != ''">
+        or MEMO = #{memo}
+      </if>
+      <if test="valueFlag != null and valueFlag != ''">
+        or VALUE_FLAG = #{valueFlag}
+      </if>
+      <if test="usedTime != null">
+        or TO_CHAR(USED_TIME,'yyyy-MM-dd') = '#{usedTime}'
+      </if>
+      <if test="createManNo != null and createManNo != ''">
+        or CREATE_MAN_NO = #{createManNo}
+      </if>
+      <if test="createManName != null and createManName != ''">
+        or CREATE_MAN_NAME = #{createManName}
+      </if>
+      <if test="createTime != null">
+        or TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = '#{createTime}'
+      </if>
+      <if test="updateManNo != null and updateManNo != ''">
+        or UPDATE_MAN_NO = #{updateManNo}
+      </if>
+      <if test="updateManName != null and updateManName != ''">
+        or UPDATE_MAN_NAME = #{updateManName}
+      </if>
+      <if test="updateTime != null">
+        or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
+      </if>
+      <if test="deleteManNo != null and deleteManNo != ''">
+        or DELETE_MAN_NO = #{deleteManNo}
+      </if>
+      <if test="deleteManName != null and deleteManName != ''">
+        or DELETE_MAN_NAME = #{deleteManName}
+      </if>
+      <if test="deleteTime != null">
+        or TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = '#{deleteTime}'
+      </if>
+      <if test="pValueFlag != null and pValueFlag != ''">
+        or P_VALUE_FLAG = #{pValueFlag}
+      </if>
+      <if test="isChemical != null and isChemical != ''">
+        or IS_CHEMICAL = #{isChemical}
+      </if>
+      <if test="limitWeight != null">
+        or LIMIT_WEIGHT = #{limitWeight}
+      </if>
+      <if test="railwayModelNo != null and railwayModelNo != ''">
+        or RAILWAY_MODEL_NO = #{railwayModelNo}
+      </if>
+      <if test="railwayModelName != null and railwayModelName != ''">
+        or RAILWAY_MODEL_NAME = #{railwayModelName}
+      </if>
+      <if test="arrival != null and arrival != ''">
+        or ARRIVAL = #{arrival}
+      </if>
+      <if test="station != null and station != ''">
+        or STATION = #{station}
+      </if>
+  </delete>
+  <insert id="insert" parameterType="com.steerinfo.meterwork.prehookscale.model.PreHookScale">
+    insert into PRE_HOOK_SCALE (PREDICTION_NO, NOTICE_NO, RAILWAY_NO, 
+      RAILWAY_CARRIAGE_NO, MATTER_NO, MATTER_NAME, 
+      CONTRACT_NO, BATCH_NO, CUSTOMER_SUPPLIER_NO, 
+      CUSTOMER_SUPPLIER_NAME, SOURCE_AREA, FORWARDING_UNIT_NO, 
+      FORWARDING_UNIT_NAME, RECEIVING_UINT_NO, RECEIVING_UINT_NAME, 
+      MATERIAL_NO, MATERIAL_NAME, SPEC_NO, 
+      SPEC_NAME, SHIPMENT_GROSS_WEIGHT, SHIPMENT_NET_WEIGHT, 
+      SHIPMENT_NUM, LOAD_POINT_NO, LOAD_POINT_NAME, 
+      SAMPLE_NO, SAMPLE_VOUCHER, CARRIER_UNIT_NO, 
+      CARRIER_UNIT_NAME, PREDICTION_TYPE, PREDICTION_COMBINATION, 
+      METER_TYPE_NO, METER_TYPE_NAME, EFFECTIVE_START_TIME, 
+      EFFECTIVE_END_TIME, RAILWAY_TYPE_NO, RAILWAY_TYPE_NAME, 
+      MEMO, VALUE_FLAG, USED_TIME, 
+      CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, 
+      UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME, 
+      DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME, 
+      P_VALUE_FLAG, IS_CHEMICAL, LIMIT_WEIGHT, 
+      RAILWAY_MODEL_NO, RAILWAY_MODEL_NAME, ARRIVAL, 
+      STATION)
+    values (#{predictionNo,jdbcType=VARCHAR}, #{noticeNo,jdbcType=VARCHAR}, #{railwayNo,jdbcType=VARCHAR}, 
+      #{railwayCarriageNo,jdbcType=VARCHAR}, #{matterNo,jdbcType=VARCHAR}, #{matterName,jdbcType=VARCHAR}, 
+      #{contractNo,jdbcType=VARCHAR}, #{batchNo,jdbcType=VARCHAR}, #{customerSupplierNo,jdbcType=VARCHAR}, 
+      #{customerSupplierName,jdbcType=VARCHAR}, #{sourceArea,jdbcType=VARCHAR}, #{forwardingUnitNo,jdbcType=VARCHAR}, 
+      #{forwardingUnitName,jdbcType=VARCHAR}, #{receivingUintNo,jdbcType=VARCHAR}, #{receivingUintName,jdbcType=VARCHAR}, 
+      #{materialNo,jdbcType=VARCHAR}, #{materialName,jdbcType=VARCHAR}, #{specNo,jdbcType=VARCHAR}, 
+      #{specName,jdbcType=VARCHAR}, #{shipmentGrossWeight,jdbcType=DECIMAL}, #{shipmentNetWeight,jdbcType=DECIMAL}, 
+      #{shipmentNum,jdbcType=DECIMAL}, #{loadPointNo,jdbcType=VARCHAR}, #{loadPointName,jdbcType=VARCHAR}, 
+      #{sampleNo,jdbcType=VARCHAR}, #{sampleVoucher,jdbcType=VARCHAR}, #{carrierUnitNo,jdbcType=VARCHAR}, 
+      #{carrierUnitName,jdbcType=VARCHAR}, #{predictionType,jdbcType=VARCHAR}, #{predictionCombination,jdbcType=VARCHAR}, 
+      #{meterTypeNo,jdbcType=VARCHAR}, #{meterTypeName,jdbcType=VARCHAR}, #{effectiveStartTime,jdbcType=TIMESTAMP}, 
+      #{effectiveEndTime,jdbcType=TIMESTAMP}, #{railwayTypeNo,jdbcType=VARCHAR}, #{railwayTypeName,jdbcType=VARCHAR}, 
+      #{memo,jdbcType=VARCHAR}, #{valueFlag,jdbcType=VARCHAR}, #{usedTime,jdbcType=TIMESTAMP}, 
+      #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, 
+      #{updateManNo,jdbcType=VARCHAR}, #{updateManName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, 
+      #{deleteManNo,jdbcType=VARCHAR}, #{deleteManName,jdbcType=VARCHAR}, #{deleteTime,jdbcType=TIMESTAMP}, 
+      #{pValueFlag,jdbcType=VARCHAR}, #{isChemical,jdbcType=VARCHAR}, #{limitWeight,jdbcType=DECIMAL}, 
+      #{railwayModelNo,jdbcType=VARCHAR}, #{railwayModelName,jdbcType=VARCHAR}, #{arrival,jdbcType=VARCHAR}, 
+      #{station,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.steerinfo.meterwork.prehookscale.model.PreHookScale">
+    insert into PRE_HOOK_SCALE
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="predictionNo != null">
+        PREDICTION_NO,
+      </if>
+      <if test="noticeNo != null">
+        NOTICE_NO,
+      </if>
+      <if test="railwayNo != null">
+        RAILWAY_NO,
+      </if>
+      <if test="railwayCarriageNo != null">
+        RAILWAY_CARRIAGE_NO,
+      </if>
+      <if test="matterNo != null">
+        MATTER_NO,
+      </if>
+      <if test="matterName != null">
+        MATTER_NAME,
+      </if>
+      <if test="contractNo != null">
+        CONTRACT_NO,
+      </if>
+      <if test="batchNo != null">
+        BATCH_NO,
+      </if>
+      <if test="customerSupplierNo != null">
+        CUSTOMER_SUPPLIER_NO,
+      </if>
+      <if test="customerSupplierName != null">
+        CUSTOMER_SUPPLIER_NAME,
+      </if>
+      <if test="sourceArea != null">
+        SOURCE_AREA,
+      </if>
+      <if test="forwardingUnitNo != null">
+        FORWARDING_UNIT_NO,
+      </if>
+      <if test="forwardingUnitName != null">
+        FORWARDING_UNIT_NAME,
+      </if>
+      <if test="receivingUintNo != null">
+        RECEIVING_UINT_NO,
+      </if>
+      <if test="receivingUintName != null">
+        RECEIVING_UINT_NAME,
+      </if>
+      <if test="materialNo != null">
+        MATERIAL_NO,
+      </if>
+      <if test="materialName != null">
+        MATERIAL_NAME,
+      </if>
+      <if test="specNo != null">
+        SPEC_NO,
+      </if>
+      <if test="specName != null">
+        SPEC_NAME,
+      </if>
+      <if test="shipmentGrossWeight != null">
+        SHIPMENT_GROSS_WEIGHT,
+      </if>
+      <if test="shipmentNetWeight != null">
+        SHIPMENT_NET_WEIGHT,
+      </if>
+      <if test="shipmentNum != null">
+        SHIPMENT_NUM,
+      </if>
+      <if test="loadPointNo != null">
+        LOAD_POINT_NO,
+      </if>
+      <if test="loadPointName != null">
+        LOAD_POINT_NAME,
+      </if>
+      <if test="sampleNo != null">
+        SAMPLE_NO,
+      </if>
+      <if test="sampleVoucher != null">
+        SAMPLE_VOUCHER,
+      </if>
+      <if test="carrierUnitNo != null">
+        CARRIER_UNIT_NO,
+      </if>
+      <if test="carrierUnitName != null">
+        CARRIER_UNIT_NAME,
+      </if>
+      <if test="predictionType != null">
+        PREDICTION_TYPE,
+      </if>
+      <if test="predictionCombination != null">
+        PREDICTION_COMBINATION,
+      </if>
+      <if test="meterTypeNo != null">
+        METER_TYPE_NO,
+      </if>
+      <if test="meterTypeName != null">
+        METER_TYPE_NAME,
+      </if>
+      <if test="effectiveStartTime != null">
+        EFFECTIVE_START_TIME,
+      </if>
+      <if test="effectiveEndTime != null">
+        EFFECTIVE_END_TIME,
+      </if>
+      <if test="railwayTypeNo != null">
+        RAILWAY_TYPE_NO,
+      </if>
+      <if test="railwayTypeName != null">
+        RAILWAY_TYPE_NAME,
+      </if>
+      <if test="memo != null">
+        MEMO,
+      </if>
+      <if test="valueFlag != null">
+        VALUE_FLAG,
+      </if>
+      <if test="usedTime != null">
+        USED_TIME,
+      </if>
+      <if test="createManNo != null">
+        CREATE_MAN_NO,
+      </if>
+      <if test="createManName != null">
+        CREATE_MAN_NAME,
+      </if>
+      <if test="createTime != null">
+        CREATE_TIME,
+      </if>
+      <if test="updateManNo != null">
+        UPDATE_MAN_NO,
+      </if>
+      <if test="updateManName != null">
+        UPDATE_MAN_NAME,
+      </if>
+      <if test="updateTime != null">
+        UPDATE_TIME,
+      </if>
+      <if test="deleteManNo != null">
+        DELETE_MAN_NO,
+      </if>
+      <if test="deleteManName != null">
+        DELETE_MAN_NAME,
+      </if>
+      <if test="deleteTime != null">
+        DELETE_TIME,
+      </if>
+      <if test="pValueFlag != null">
+        P_VALUE_FLAG,
+      </if>
+      <if test="isChemical != null">
+        IS_CHEMICAL,
+      </if>
+      <if test="limitWeight != null">
+        LIMIT_WEIGHT,
+      </if>
+      <if test="railwayModelNo != null">
+        RAILWAY_MODEL_NO,
+      </if>
+      <if test="railwayModelName != null">
+        RAILWAY_MODEL_NAME,
+      </if>
+      <if test="arrival != null">
+        ARRIVAL,
+      </if>
+      <if test="station != null">
+        STATION,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="predictionNo != null">
+        #{predictionNo,jdbcType=VARCHAR},
+      </if>
+      <if test="noticeNo != null">
+        #{noticeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayNo != null">
+        #{railwayNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayCarriageNo != null">
+        #{railwayCarriageNo,jdbcType=VARCHAR},
+      </if>
+      <if test="matterNo != null">
+        #{matterNo,jdbcType=VARCHAR},
+      </if>
+      <if test="matterName != null">
+        #{matterName,jdbcType=VARCHAR},
+      </if>
+      <if test="contractNo != null">
+        #{contractNo,jdbcType=VARCHAR},
+      </if>
+      <if test="batchNo != null">
+        #{batchNo,jdbcType=VARCHAR},
+      </if>
+      <if test="customerSupplierNo != null">
+        #{customerSupplierNo,jdbcType=VARCHAR},
+      </if>
+      <if test="customerSupplierName != null">
+        #{customerSupplierName,jdbcType=VARCHAR},
+      </if>
+      <if test="sourceArea != null">
+        #{sourceArea,jdbcType=VARCHAR},
+      </if>
+      <if test="forwardingUnitNo != null">
+        #{forwardingUnitNo,jdbcType=VARCHAR},
+      </if>
+      <if test="forwardingUnitName != null">
+        #{forwardingUnitName,jdbcType=VARCHAR},
+      </if>
+      <if test="receivingUintNo != null">
+        #{receivingUintNo,jdbcType=VARCHAR},
+      </if>
+      <if test="receivingUintName != null">
+        #{receivingUintName,jdbcType=VARCHAR},
+      </if>
+      <if test="materialNo != null">
+        #{materialNo,jdbcType=VARCHAR},
+      </if>
+      <if test="materialName != null">
+        #{materialName,jdbcType=VARCHAR},
+      </if>
+      <if test="specNo != null">
+        #{specNo,jdbcType=VARCHAR},
+      </if>
+      <if test="specName != null">
+        #{specName,jdbcType=VARCHAR},
+      </if>
+      <if test="shipmentGrossWeight != null">
+        #{shipmentGrossWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="shipmentNetWeight != null">
+        #{shipmentNetWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="shipmentNum != null">
+        #{shipmentNum,jdbcType=DECIMAL},
+      </if>
+      <if test="loadPointNo != null">
+        #{loadPointNo,jdbcType=VARCHAR},
+      </if>
+      <if test="loadPointName != null">
+        #{loadPointName,jdbcType=VARCHAR},
+      </if>
+      <if test="sampleNo != null">
+        #{sampleNo,jdbcType=VARCHAR},
+      </if>
+      <if test="sampleVoucher != null">
+        #{sampleVoucher,jdbcType=VARCHAR},
+      </if>
+      <if test="carrierUnitNo != null">
+        #{carrierUnitNo,jdbcType=VARCHAR},
+      </if>
+      <if test="carrierUnitName != null">
+        #{carrierUnitName,jdbcType=VARCHAR},
+      </if>
+      <if test="predictionType != null">
+        #{predictionType,jdbcType=VARCHAR},
+      </if>
+      <if test="predictionCombination != null">
+        #{predictionCombination,jdbcType=VARCHAR},
+      </if>
+      <if test="meterTypeNo != null">
+        #{meterTypeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="meterTypeName != null">
+        #{meterTypeName,jdbcType=VARCHAR},
+      </if>
+      <if test="effectiveStartTime != null">
+        #{effectiveStartTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="effectiveEndTime != null">
+        #{effectiveEndTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="railwayTypeNo != null">
+        #{railwayTypeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayTypeName != null">
+        #{railwayTypeName,jdbcType=VARCHAR},
+      </if>
+      <if test="memo != null">
+        #{memo,jdbcType=VARCHAR},
+      </if>
+      <if test="valueFlag != null">
+        #{valueFlag,jdbcType=VARCHAR},
+      </if>
+      <if test="usedTime != null">
+        #{usedTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="createManNo != null">
+        #{createManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="createManName != null">
+        #{createManName,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateManNo != null">
+        #{updateManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="updateManName != null">
+        #{updateManName,jdbcType=VARCHAR},
+      </if>
+      <if test="updateTime != null">
+        #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="deleteManNo != null">
+        #{deleteManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="deleteManName != null">
+        #{deleteManName,jdbcType=VARCHAR},
+      </if>
+      <if test="deleteTime != null">
+        #{deleteTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="pValueFlag != null">
+        #{pValueFlag,jdbcType=VARCHAR},
+      </if>
+      <if test="isChemical != null">
+        #{isChemical,jdbcType=VARCHAR},
+      </if>
+      <if test="limitWeight != null">
+        #{limitWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="railwayModelNo != null">
+        #{railwayModelNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayModelName != null">
+        #{railwayModelName,jdbcType=VARCHAR},
+      </if>
+      <if test="arrival != null">
+        #{arrival,jdbcType=VARCHAR},
+      </if>
+      <if test="station != null">
+        #{station,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKey" parameterType="com.steerinfo.meterwork.prehookscale.model.PreHookScale">
+    update PRE_HOOK_SCALE
+    set NOTICE_NO = #{noticeNo,jdbcType=VARCHAR},
+      RAILWAY_NO = #{railwayNo,jdbcType=VARCHAR},
+      RAILWAY_CARRIAGE_NO = #{railwayCarriageNo,jdbcType=VARCHAR},
+      MATTER_NO = #{matterNo,jdbcType=VARCHAR},
+      MATTER_NAME = #{matterName,jdbcType=VARCHAR},
+      CONTRACT_NO = #{contractNo,jdbcType=VARCHAR},
+      BATCH_NO = #{batchNo,jdbcType=VARCHAR},
+      CUSTOMER_SUPPLIER_NO = #{customerSupplierNo,jdbcType=VARCHAR},
+      CUSTOMER_SUPPLIER_NAME = #{customerSupplierName,jdbcType=VARCHAR},
+      SOURCE_AREA = #{sourceArea,jdbcType=VARCHAR},
+      FORWARDING_UNIT_NO = #{forwardingUnitNo,jdbcType=VARCHAR},
+      FORWARDING_UNIT_NAME = #{forwardingUnitName,jdbcType=VARCHAR},
+      RECEIVING_UINT_NO = #{receivingUintNo,jdbcType=VARCHAR},
+      RECEIVING_UINT_NAME = #{receivingUintName,jdbcType=VARCHAR},
+      MATERIAL_NO = #{materialNo,jdbcType=VARCHAR},
+      MATERIAL_NAME = #{materialName,jdbcType=VARCHAR},
+      SPEC_NO = #{specNo,jdbcType=VARCHAR},
+      SPEC_NAME = #{specName,jdbcType=VARCHAR},
+      SHIPMENT_GROSS_WEIGHT = #{shipmentGrossWeight,jdbcType=DECIMAL},
+      SHIPMENT_NET_WEIGHT = #{shipmentNetWeight,jdbcType=DECIMAL},
+      SHIPMENT_NUM = #{shipmentNum,jdbcType=DECIMAL},
+      LOAD_POINT_NO = #{loadPointNo,jdbcType=VARCHAR},
+      LOAD_POINT_NAME = #{loadPointName,jdbcType=VARCHAR},
+      SAMPLE_NO = #{sampleNo,jdbcType=VARCHAR},
+      SAMPLE_VOUCHER = #{sampleVoucher,jdbcType=VARCHAR},
+      CARRIER_UNIT_NO = #{carrierUnitNo,jdbcType=VARCHAR},
+      CARRIER_UNIT_NAME = #{carrierUnitName,jdbcType=VARCHAR},
+      PREDICTION_TYPE = #{predictionType,jdbcType=VARCHAR},
+      PREDICTION_COMBINATION = #{predictionCombination,jdbcType=VARCHAR},
+      METER_TYPE_NO = #{meterTypeNo,jdbcType=VARCHAR},
+      METER_TYPE_NAME = #{meterTypeName,jdbcType=VARCHAR},
+      EFFECTIVE_START_TIME = #{effectiveStartTime,jdbcType=TIMESTAMP},
+      EFFECTIVE_END_TIME = #{effectiveEndTime,jdbcType=TIMESTAMP},
+      RAILWAY_TYPE_NO = #{railwayTypeNo,jdbcType=VARCHAR},
+      RAILWAY_TYPE_NAME = #{railwayTypeName,jdbcType=VARCHAR},
+      MEMO = #{memo,jdbcType=VARCHAR},
+      VALUE_FLAG = #{valueFlag,jdbcType=VARCHAR},
+      USED_TIME = #{usedTime,jdbcType=TIMESTAMP},
+      CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
+      CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
+      CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
+      UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
+      UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
+      UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
+      DELETE_MAN_NO = #{deleteManNo,jdbcType=VARCHAR},
+      DELETE_MAN_NAME = #{deleteManName,jdbcType=VARCHAR},
+      DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
+      P_VALUE_FLAG = #{pValueFlag,jdbcType=VARCHAR},
+      IS_CHEMICAL = #{isChemical,jdbcType=VARCHAR},
+      LIMIT_WEIGHT = #{limitWeight,jdbcType=DECIMAL},
+      RAILWAY_MODEL_NO = #{railwayModelNo,jdbcType=VARCHAR},
+      RAILWAY_MODEL_NAME = #{railwayModelName,jdbcType=VARCHAR},
+      ARRIVAL = #{arrival,jdbcType=VARCHAR},
+      STATION = #{station,jdbcType=VARCHAR}
+    where PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR}
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.meterwork.prehookscale.model.PreHookScale">
+    update PRE_HOOK_SCALE
+    <set>
+      <if test="noticeNo != null">
+        NOTICE_NO = #{noticeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayNo != null">
+        RAILWAY_NO = #{railwayNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayCarriageNo != null">
+        RAILWAY_CARRIAGE_NO = #{railwayCarriageNo,jdbcType=VARCHAR},
+      </if>
+      <if test="matterNo != null">
+        MATTER_NO = #{matterNo,jdbcType=VARCHAR},
+      </if>
+      <if test="matterName != null">
+        MATTER_NAME = #{matterName,jdbcType=VARCHAR},
+      </if>
+      <if test="contractNo != null">
+        CONTRACT_NO = #{contractNo,jdbcType=VARCHAR},
+      </if>
+      <if test="batchNo != null">
+        BATCH_NO = #{batchNo,jdbcType=VARCHAR},
+      </if>
+      <if test="customerSupplierNo != null">
+        CUSTOMER_SUPPLIER_NO = #{customerSupplierNo,jdbcType=VARCHAR},
+      </if>
+      <if test="customerSupplierName != null">
+        CUSTOMER_SUPPLIER_NAME = #{customerSupplierName,jdbcType=VARCHAR},
+      </if>
+      <if test="sourceArea != null">
+        SOURCE_AREA = #{sourceArea,jdbcType=VARCHAR},
+      </if>
+      <if test="forwardingUnitNo != null">
+        FORWARDING_UNIT_NO = #{forwardingUnitNo,jdbcType=VARCHAR},
+      </if>
+      <if test="forwardingUnitName != null">
+        FORWARDING_UNIT_NAME = #{forwardingUnitName,jdbcType=VARCHAR},
+      </if>
+      <if test="receivingUintNo != null">
+        RECEIVING_UINT_NO = #{receivingUintNo,jdbcType=VARCHAR},
+      </if>
+      <if test="receivingUintName != null">
+        RECEIVING_UINT_NAME = #{receivingUintName,jdbcType=VARCHAR},
+      </if>
+      <if test="materialNo != null">
+        MATERIAL_NO = #{materialNo,jdbcType=VARCHAR},
+      </if>
+      <if test="materialName != null">
+        MATERIAL_NAME = #{materialName,jdbcType=VARCHAR},
+      </if>
+      <if test="specNo != null">
+        SPEC_NO = #{specNo,jdbcType=VARCHAR},
+      </if>
+      <if test="specName != null">
+        SPEC_NAME = #{specName,jdbcType=VARCHAR},
+      </if>
+      <if test="shipmentGrossWeight != null">
+        SHIPMENT_GROSS_WEIGHT = #{shipmentGrossWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="shipmentNetWeight != null">
+        SHIPMENT_NET_WEIGHT = #{shipmentNetWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="shipmentNum != null">
+        SHIPMENT_NUM = #{shipmentNum,jdbcType=DECIMAL},
+      </if>
+      <if test="loadPointNo != null">
+        LOAD_POINT_NO = #{loadPointNo,jdbcType=VARCHAR},
+      </if>
+      <if test="loadPointName != null">
+        LOAD_POINT_NAME = #{loadPointName,jdbcType=VARCHAR},
+      </if>
+      <if test="sampleNo != null">
+        SAMPLE_NO = #{sampleNo,jdbcType=VARCHAR},
+      </if>
+      <if test="sampleVoucher != null">
+        SAMPLE_VOUCHER = #{sampleVoucher,jdbcType=VARCHAR},
+      </if>
+      <if test="carrierUnitNo != null">
+        CARRIER_UNIT_NO = #{carrierUnitNo,jdbcType=VARCHAR},
+      </if>
+      <if test="carrierUnitName != null">
+        CARRIER_UNIT_NAME = #{carrierUnitName,jdbcType=VARCHAR},
+      </if>
+      <if test="predictionType != null">
+        PREDICTION_TYPE = #{predictionType,jdbcType=VARCHAR},
+      </if>
+      <if test="predictionCombination != null">
+        PREDICTION_COMBINATION = #{predictionCombination,jdbcType=VARCHAR},
+      </if>
+      <if test="meterTypeNo != null">
+        METER_TYPE_NO = #{meterTypeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="meterTypeName != null">
+        METER_TYPE_NAME = #{meterTypeName,jdbcType=VARCHAR},
+      </if>
+      <if test="effectiveStartTime != null">
+        EFFECTIVE_START_TIME = #{effectiveStartTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="effectiveEndTime != null">
+        EFFECTIVE_END_TIME = #{effectiveEndTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="railwayTypeNo != null">
+        RAILWAY_TYPE_NO = #{railwayTypeNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayTypeName != null">
+        RAILWAY_TYPE_NAME = #{railwayTypeName,jdbcType=VARCHAR},
+      </if>
+      <if test="memo != null">
+        MEMO = #{memo,jdbcType=VARCHAR},
+      </if>
+      <if test="valueFlag != null">
+        VALUE_FLAG = #{valueFlag,jdbcType=VARCHAR},
+      </if>
+      <if test="usedTime != null">
+        USED_TIME = #{usedTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="createManNo != null">
+        CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="createManName != null">
+        CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateManNo != null">
+        UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="updateManName != null">
+        UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
+      </if>
+      <if test="updateTime != null">
+        UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="deleteManNo != null">
+        DELETE_MAN_NO = #{deleteManNo,jdbcType=VARCHAR},
+      </if>
+      <if test="deleteManName != null">
+        DELETE_MAN_NAME = #{deleteManName,jdbcType=VARCHAR},
+      </if>
+      <if test="deleteTime != null">
+        DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="pValueFlag != null">
+        P_VALUE_FLAG = #{pValueFlag,jdbcType=VARCHAR},
+      </if>
+      <if test="isChemical != null">
+        IS_CHEMICAL = #{isChemical,jdbcType=VARCHAR},
+      </if>
+      <if test="limitWeight != null">
+        LIMIT_WEIGHT = #{limitWeight,jdbcType=DECIMAL},
+      </if>
+      <if test="railwayModelNo != null">
+        RAILWAY_MODEL_NO = #{railwayModelNo,jdbcType=VARCHAR},
+      </if>
+      <if test="railwayModelName != null">
+        RAILWAY_MODEL_NAME = #{railwayModelName,jdbcType=VARCHAR},
+      </if>
+      <if test="arrival != null">
+        ARRIVAL = #{arrival,jdbcType=VARCHAR},
+      </if>
+      <if test="station != null">
+        STATION = #{station,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR}
+  </update>
+  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
+    <include refid="select"/>
+    where PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR}
+  </select>
+  <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
+    <include refid="select"/>
+    <include refid="where"/>
+  </select>
+  <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
+    <include refid="select"/>
+    <include refid="whereLike"/>
+  </select>
+  <insert id="batchInsert" parameterType="java.util.List">
+    insert into PRE_HOOK_SCALE 
+      (PREDICTION_NO, 
+      NOTICE_NO, RAILWAY_NO, RAILWAY_CARRIAGE_NO, 
+      MATTER_NO, MATTER_NAME, CONTRACT_NO, 
+      BATCH_NO, CUSTOMER_SUPPLIER_NO, 
+      CUSTOMER_SUPPLIER_NAME, SOURCE_AREA, 
+      FORWARDING_UNIT_NO, FORWARDING_UNIT_NAME, 
+      RECEIVING_UINT_NO, RECEIVING_UINT_NAME, 
+      MATERIAL_NO, MATERIAL_NAME, SPEC_NO, 
+      SPEC_NAME, SHIPMENT_GROSS_WEIGHT, 
+      SHIPMENT_NET_WEIGHT, SHIPMENT_NUM, 
+      LOAD_POINT_NO, LOAD_POINT_NAME, SAMPLE_NO, 
+      SAMPLE_VOUCHER, CARRIER_UNIT_NO, 
+      CARRIER_UNIT_NAME, PREDICTION_TYPE, 
+      PREDICTION_COMBINATION, METER_TYPE_NO, 
+      METER_TYPE_NAME, EFFECTIVE_START_TIME, 
+      EFFECTIVE_END_TIME, RAILWAY_TYPE_NO, 
+      RAILWAY_TYPE_NAME, MEMO, VALUE_FLAG, 
+      USED_TIME, CREATE_MAN_NO, CREATE_MAN_NAME, 
+      CREATE_TIME, UPDATE_MAN_NO, UPDATE_MAN_NAME, 
+      UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME, 
+      DELETE_TIME, P_VALUE_FLAG, IS_CHEMICAL, 
+      LIMIT_WEIGHT, RAILWAY_MODEL_NO, 
+      RAILWAY_MODEL_NAME, ARRIVAL, STATION
+      )
+    ( <foreach collection="list" item="item" separator="union all"> 
+   select  
+      #{item.predictionNo,jdbcType=VARCHAR}, 
+      #{item.noticeNo,jdbcType=VARCHAR}, #{item.railwayNo,jdbcType=VARCHAR}, #{item.railwayCarriageNo,jdbcType=VARCHAR}, 
+      #{item.matterNo,jdbcType=VARCHAR}, #{item.matterName,jdbcType=VARCHAR}, #{item.contractNo,jdbcType=VARCHAR}, 
+      #{item.batchNo,jdbcType=VARCHAR}, #{item.customerSupplierNo,jdbcType=VARCHAR}, 
+      #{item.customerSupplierName,jdbcType=VARCHAR}, #{item.sourceArea,jdbcType=VARCHAR}, 
+      #{item.forwardingUnitNo,jdbcType=VARCHAR}, #{item.forwardingUnitName,jdbcType=VARCHAR}, 
+      #{item.receivingUintNo,jdbcType=VARCHAR}, #{item.receivingUintName,jdbcType=VARCHAR}, 
+      #{item.materialNo,jdbcType=VARCHAR}, #{item.materialName,jdbcType=VARCHAR}, #{item.specNo,jdbcType=VARCHAR}, 
+      #{item.specName,jdbcType=VARCHAR}, #{item.shipmentGrossWeight,jdbcType=DECIMAL}, 
+      #{item.shipmentNetWeight,jdbcType=DECIMAL}, #{item.shipmentNum,jdbcType=DECIMAL}, 
+      #{item.loadPointNo,jdbcType=VARCHAR}, #{item.loadPointName,jdbcType=VARCHAR}, #{item.sampleNo,jdbcType=VARCHAR}, 
+      #{item.sampleVoucher,jdbcType=VARCHAR}, #{item.carrierUnitNo,jdbcType=VARCHAR}, 
+      #{item.carrierUnitName,jdbcType=VARCHAR}, #{item.predictionType,jdbcType=VARCHAR}, 
+      #{item.predictionCombination,jdbcType=VARCHAR}, #{item.meterTypeNo,jdbcType=VARCHAR}, 
+      #{item.meterTypeName,jdbcType=VARCHAR}, #{item.effectiveStartTime,jdbcType=TIMESTAMP}, 
+      #{item.effectiveEndTime,jdbcType=TIMESTAMP}, #{item.railwayTypeNo,jdbcType=VARCHAR}, 
+      #{item.railwayTypeName,jdbcType=VARCHAR}, #{item.memo,jdbcType=VARCHAR}, #{item.valueFlag,jdbcType=VARCHAR}, 
+      #{item.usedTime,jdbcType=TIMESTAMP}, #{item.createManNo,jdbcType=VARCHAR}, #{item.createManName,jdbcType=VARCHAR}, 
+      #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateManNo,jdbcType=VARCHAR}, #{item.updateManName,jdbcType=VARCHAR}, 
+      #{item.updateTime,jdbcType=TIMESTAMP}, #{item.deleteManNo,jdbcType=VARCHAR}, #{item.deleteManName,jdbcType=VARCHAR}, 
+      #{item.deleteTime,jdbcType=TIMESTAMP}, #{item.pValueFlag,jdbcType=VARCHAR}, #{item.isChemical,jdbcType=VARCHAR}, 
+      #{item.limitWeight,jdbcType=DECIMAL}, #{item.railwayModelNo,jdbcType=VARCHAR}, 
+      #{item.railwayModelName,jdbcType=VARCHAR}, #{item.arrival,jdbcType=VARCHAR}, #{item.station,jdbcType=VARCHAR}
+       from dual  
+   </foreach> )
+  </insert>
+  <update id="batchUpdate" parameterType="java.util.List">
+     update PRE_HOOK_SCALE
+     set
+       PREDICTION_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.predictionNo,jdbcType=VARCHAR}
+       </foreach>
+       ,NOTICE_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.noticeNo,jdbcType=VARCHAR}
+       </foreach>
+       ,RAILWAY_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.railwayNo,jdbcType=VARCHAR}
+       </foreach>
+       ,RAILWAY_CARRIAGE_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.railwayCarriageNo,jdbcType=VARCHAR}
+       </foreach>
+       ,MATTER_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.matterNo,jdbcType=VARCHAR}
+       </foreach>
+       ,MATTER_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.matterName,jdbcType=VARCHAR}
+       </foreach>
+       ,CONTRACT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.contractNo,jdbcType=VARCHAR}
+       </foreach>
+       ,BATCH_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.batchNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CUSTOMER_SUPPLIER_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.customerSupplierNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CUSTOMER_SUPPLIER_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.customerSupplierName,jdbcType=VARCHAR}
+       </foreach>
+       ,SOURCE_AREA=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.sourceArea,jdbcType=VARCHAR}
+       </foreach>
+       ,FORWARDING_UNIT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.forwardingUnitNo,jdbcType=VARCHAR}
+       </foreach>
+       ,FORWARDING_UNIT_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.forwardingUnitName,jdbcType=VARCHAR}
+       </foreach>
+       ,RECEIVING_UINT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.receivingUintNo,jdbcType=VARCHAR}
+       </foreach>
+       ,RECEIVING_UINT_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.receivingUintName,jdbcType=VARCHAR}
+       </foreach>
+       ,MATERIAL_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.materialNo,jdbcType=VARCHAR}
+       </foreach>
+       ,MATERIAL_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.materialName,jdbcType=VARCHAR}
+       </foreach>
+       ,SPEC_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.specNo,jdbcType=VARCHAR}
+       </foreach>
+       ,SPEC_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.specName,jdbcType=VARCHAR}
+       </foreach>
+       ,SHIPMENT_GROSS_WEIGHT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.shipmentGrossWeight,jdbcType=DECIMAL}
+       </foreach>
+       ,SHIPMENT_NET_WEIGHT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.shipmentNetWeight,jdbcType=DECIMAL}
+       </foreach>
+       ,SHIPMENT_NUM=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.shipmentNum,jdbcType=DECIMAL}
+       </foreach>
+       ,LOAD_POINT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.loadPointNo,jdbcType=VARCHAR}
+       </foreach>
+       ,LOAD_POINT_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.loadPointName,jdbcType=VARCHAR}
+       </foreach>
+       ,SAMPLE_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.sampleNo,jdbcType=VARCHAR}
+       </foreach>
+       ,SAMPLE_VOUCHER=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.sampleVoucher,jdbcType=VARCHAR}
+       </foreach>
+       ,CARRIER_UNIT_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.carrierUnitNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CARRIER_UNIT_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.carrierUnitName,jdbcType=VARCHAR}
+       </foreach>
+       ,PREDICTION_TYPE=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.predictionType,jdbcType=VARCHAR}
+       </foreach>
+       ,PREDICTION_COMBINATION=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.predictionCombination,jdbcType=VARCHAR}
+       </foreach>
+       ,METER_TYPE_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.meterTypeNo,jdbcType=VARCHAR}
+       </foreach>
+       ,METER_TYPE_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.meterTypeName,jdbcType=VARCHAR}
+       </foreach>
+       ,EFFECTIVE_START_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.effectiveStartTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,EFFECTIVE_END_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.effectiveEndTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,RAILWAY_TYPE_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.railwayTypeNo,jdbcType=VARCHAR}
+       </foreach>
+       ,RAILWAY_TYPE_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.railwayTypeName,jdbcType=VARCHAR}
+       </foreach>
+       ,MEMO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.memo,jdbcType=VARCHAR}
+       </foreach>
+       ,VALUE_FLAG=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.valueFlag,jdbcType=VARCHAR}
+       </foreach>
+       ,USED_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.usedTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,CREATE_MAN_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
+       </foreach>
+       ,CREATE_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
+       </foreach>
+       ,CREATE_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,UPDATE_MAN_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=VARCHAR}
+       </foreach>
+       ,UPDATE_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.updateManName,jdbcType=VARCHAR}
+       </foreach>
+       ,UPDATE_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,DELETE_MAN_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.deleteManNo,jdbcType=VARCHAR}
+       </foreach>
+       ,DELETE_MAN_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.deleteManName,jdbcType=VARCHAR}
+       </foreach>
+       ,DELETE_TIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.deleteTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,P_VALUE_FLAG=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.pValueFlag,jdbcType=VARCHAR}
+       </foreach>
+       ,IS_CHEMICAL=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.isChemical,jdbcType=VARCHAR}
+       </foreach>
+       ,LIMIT_WEIGHT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.limitWeight,jdbcType=DECIMAL}
+       </foreach>
+       ,RAILWAY_MODEL_NO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.railwayModelNo,jdbcType=VARCHAR}
+       </foreach>
+       ,RAILWAY_MODEL_NAME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.railwayModelName,jdbcType=VARCHAR}
+       </foreach>
+       ,ARRIVAL=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.arrival,jdbcType=VARCHAR}
+       </foreach>
+       ,STATION=
+       <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
+          when #{item.predictionNo,jdbcType=VARCHAR} then #{item.station,jdbcType=VARCHAR}
+       </foreach>
+     where PREDICTION_NO in 
+     <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
+    #{item.predictionNo,jdbcType=VARCHAR}
+     </foreach> 
+  </update>
+  <delete id="batchDelete" parameterType="java.util.List">
+    delete from PRE_HOOK_SCALE
+    where PREDICTION_NO in 
+    <foreach collection="list" item="id" open="(" close=")" separator=",">
+      #{id}
+    </foreach>
+  </delete>
+  <!-- 友情提示!!!-->
+  <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
+  
+</mapper>

+ 858 - 0
src/main/java/com/steerinfo/pretrack/prehookscale/model/PreHookScale.java

@@ -0,0 +1,858 @@
+package com.steerinfo.meterwork.prehookscale.model;
+
+import com.steerinfo.framework.model.IBasePO;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.Date;
+
+@ApiModel(value="吊钩秤计量委托表")
+public class PreHookScale implements IBasePO<String> {
+    /**
+     * 委托编号(PREDICTION_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="委托编号",required=true)
+    private String predictionNo;
+
+    /**
+     * 通知单号(NOTICE_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="通知单号",required=false)
+    private String noticeNo;
+
+    /**
+     * 车号(RAILWAY_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="车号",required=false)
+    private String railwayNo;
+
+    /**
+     * 车厢序号(RAILWAY_CARRIAGE_NO,VARCHAR,5)
+     */
+    @ApiModelProperty(value="车厢序号",required=false)
+    private String railwayCarriageNo;
+
+    /**
+     * 物料编号(MATTER_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="物料编号",required=false)
+    private String matterNo;
+
+    /**
+     * 物料名称(MATTER_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="物料名称",required=false)
+    private String matterName;
+
+    /**
+     * 合同号(CONTRACT_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="合同号",required=false)
+    private String contractNo;
+
+    /**
+     * 批次号(BATCH_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="批次号",required=false)
+    private String batchNo;
+
+    /**
+     * 供应商编号(CUSTOMER_SUPPLIER_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="供应商编号",required=false)
+    private String customerSupplierNo;
+
+    /**
+     * 供应商名称(CUSTOMER_SUPPLIER_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="供应商名称",required=false)
+    private String customerSupplierName;
+
+    /**
+     * 原产地(SOURCE_AREA,VARCHAR,50)
+     */
+    @ApiModelProperty(value="原产地",required=false)
+    private String sourceArea;
+
+    /**
+     * 发货单位编号(FORWARDING_UNIT_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="发货单位编号",required=false)
+    private String forwardingUnitNo;
+
+    /**
+     * 发货单位名称(FORWARDING_UNIT_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="发货单位名称",required=false)
+    private String forwardingUnitName;
+
+    /**
+     * 收货单位编号(RECEIVING_UINT_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="收货单位编号",required=false)
+    private String receivingUintNo;
+
+    /**
+     * 收货单位名称(RECEIVING_UINT_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="收货单位名称",required=false)
+    private String receivingUintName;
+
+    /**
+     * 材质编号(MATERIAL_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="材质编号",required=false)
+    private String materialNo;
+
+    /**
+     * 材质名称(MATERIAL_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="材质名称",required=false)
+    private String materialName;
+
+    /**
+     * 规格编号(SPEC_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="规格编号",required=false)
+    private String specNo;
+
+    /**
+     * 规格名称(SPEC_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="规格名称",required=false)
+    private String specName;
+
+    /**
+     * 发运毛重(SHIPMENT_GROSS_WEIGHT,DECIMAL,10)
+     */
+    @ApiModelProperty(value="发运毛重",required=false)
+    private BigDecimal shipmentGrossWeight;
+
+    /**
+     * 发运净重(SHIPMENT_NET_WEIGHT,DECIMAL,10)
+     */
+    @ApiModelProperty(value="发运净重",required=false)
+    private BigDecimal shipmentNetWeight;
+
+    /**
+     * 发运数量(SHIPMENT_NUM,DECIMAL,5)
+     */
+    @ApiModelProperty(value="发运数量",required=false)
+    private Integer shipmentNum;
+
+    /**
+     * 卸货地点编号(LOAD_POINT_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="卸货地点编号",required=false)
+    private String loadPointNo;
+
+    /**
+     * 卸货地点名称(LOAD_POINT_NAME,VARCHAR,60)
+     */
+    @ApiModelProperty(value="卸货地点名称",required=false)
+    private String loadPointName;
+
+    /**
+     * 取样编号(SAMPLE_NO,VARCHAR,40)
+     */
+    @ApiModelProperty(value="取样编号",required=false)
+    private String sampleNo;
+
+    /**
+     * 取样凭证(SAMPLE_VOUCHER,VARCHAR,40)
+     */
+    @ApiModelProperty(value="取样凭证",required=false)
+    private String sampleVoucher;
+
+    /**
+     * 承运单位编号(CARRIER_UNIT_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="承运单位编号",required=false)
+    private String carrierUnitNo;
+
+    /**
+     * 承运单位名称(CARRIER_UNIT_NAME,VARCHAR,100)
+     */
+    @ApiModelProperty(value="承运单位名称",required=false)
+    private String carrierUnitName;
+
+    /**
+     * 预报类型(PREDICTION_TYPE,VARCHAR,1)
+     */
+    @ApiModelProperty(value="预报类型",required=false)
+    private String predictionType;
+
+    /**
+     * 预报组合(PREDICTION_COMBINATION,VARCHAR,100)
+     */
+    @ApiModelProperty(value="预报组合",required=false)
+    private String predictionCombination;
+
+    /**
+     * 计量类型编号(METER_TYPE_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="计量类型编号",required=true)
+    private String meterTypeNo;
+
+    /**
+     * 计量类型名称(METER_TYPE_NAME,VARCHAR,30)
+     */
+    @ApiModelProperty(value="计量类型名称",required=true)
+    private String meterTypeName;
+
+    /**
+     * 有效开始时间(EFFECTIVE_START_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="有效开始时间",required=false)
+    private Date effectiveStartTime;
+
+    /**
+     * 有效结束时间(EFFECTIVE_END_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="有效结束时间",required=false)
+    private Date effectiveEndTime;
+
+    /**
+     * 轨道衡类型编号(RAILWAY_TYPE_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="轨道衡类型编号",required=true)
+    private String railwayTypeNo;
+
+    /**
+     * 轨道衡类型名称(RAILWAY_TYPE_NAME,VARCHAR,30)
+     */
+    @ApiModelProperty(value="轨道衡类型名称",required=true)
+    private String railwayTypeName;
+
+    /**
+     * 备注,0为砂石,1为选矿(MEMO,VARCHAR,200)
+     */
+    @ApiModelProperty(value="备注,0为砂石,1为选矿",required=false)
+    private String memo;
+
+    /**
+     * 状态(0:未配车;1:未使用;2:已使用;3:已作废;4:正使用)(VALUE_FLAG,VARCHAR,1)
+     */
+    @ApiModelProperty(value="状态(0:未配车;1:未使用;2:已使用;3:已作废;4:正使用)",required=true)
+    private String valueFlag;
+
+    /**
+     * 使用时间(USED_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="使用时间",required=false)
+    private Date usedTime;
+
+    /**
+     * 创建人编号(CREATE_MAN_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="创建人编号",required=true)
+    private String createManNo;
+
+    /**
+     * 创建人姓名(CREATE_MAN_NAME,VARCHAR,50)
+     */
+    @ApiModelProperty(value="创建人姓名",required=true)
+    private String createManName;
+
+    /**
+     * 创建时间(CREATE_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="创建时间",required=true)
+    private Date createTime;
+
+    /**
+     * 修改人编号(UPDATE_MAN_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="修改人编号",required=false)
+    private String updateManNo;
+
+    /**
+     * 修改人姓名(UPDATE_MAN_NAME,VARCHAR,50)
+     */
+    @ApiModelProperty(value="修改人姓名",required=false)
+    private String updateManName;
+
+    /**
+     * 修改时间(UPDATE_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="修改时间",required=false)
+    private Date updateTime;
+
+    /**
+     * 删除人编号(DELETE_MAN_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="删除人编号",required=false)
+    private String deleteManNo;
+
+    /**
+     * 删除人姓名(DELETE_MAN_NAME,VARCHAR,50)
+     */
+    @ApiModelProperty(value="删除人姓名",required=false)
+    private String deleteManName;
+
+    /**
+     * 删除时间(DELETE_TIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="删除时间",required=false)
+    private Date deleteTime;
+
+    /**
+     * 前状态(P_VALUE_FLAG,VARCHAR,1)
+     */
+    @ApiModelProperty(value="前状态",required=false)
+    private String pValueFlag;
+
+    /**
+     * 是否危化品(IS_CHEMICAL,VARCHAR,1)
+     */
+    @ApiModelProperty(value="是否危化品",required=false)
+    private String isChemical;
+
+    /**
+     * 限载重量(LIMIT_WEIGHT,DECIMAL,10)
+     */
+    @ApiModelProperty(value="限载重量",required=false)
+    private BigDecimal limitWeight;
+
+    /**
+     * 车型编号(RAILWAY_MODEL_NO,VARCHAR,20)
+     */
+    @ApiModelProperty(value="车型编号",required=false)
+    private String railwayModelNo;
+
+    /**
+     * 车型名称(RAILWAY_MODEL_NAME,VARCHAR,40)
+     */
+    @ApiModelProperty(value="车型名称",required=false)
+    private String railwayModelName;
+
+    /**
+     * 到站(ARRIVAL,VARCHAR,40)
+     */
+    @ApiModelProperty(value="到站",required=false)
+    private String arrival;
+
+    /**
+     * 发站(STATION,VARCHAR,40)
+     */
+    @ApiModelProperty(value="发站",required=false)
+    private String station;
+
+    private static final long serialVersionUID = 1L;
+
+    @Override
+    public String getId() {
+        return this.predictionNo;
+    }
+
+    @Override
+    public void setId(String predictionNo) {
+        this.predictionNo = predictionNo == null ? null : predictionNo.trim();
+    }
+
+    public String getPredictionNo() {
+        return predictionNo;
+    }
+
+    public void setPredictionNo(String predictionNo) {
+        this.predictionNo = predictionNo == null ? null : predictionNo.trim();
+    }
+
+    public String getNoticeNo() {
+        return noticeNo;
+    }
+
+    public void setNoticeNo(String noticeNo) {
+        this.noticeNo = noticeNo == null ? null : noticeNo.trim();
+    }
+
+    public String getRailwayNo() {
+        return railwayNo;
+    }
+
+    public void setRailwayNo(String railwayNo) {
+        this.railwayNo = railwayNo == null ? null : railwayNo.trim();
+    }
+
+    public String getRailwayCarriageNo() {
+        return railwayCarriageNo;
+    }
+
+    public void setRailwayCarriageNo(String railwayCarriageNo) {
+        this.railwayCarriageNo = railwayCarriageNo == null ? null : railwayCarriageNo.trim();
+    }
+
+    public String getMatterNo() {
+        return matterNo;
+    }
+
+    public void setMatterNo(String matterNo) {
+        this.matterNo = matterNo == null ? null : matterNo.trim();
+    }
+
+    public String getMatterName() {
+        return matterName;
+    }
+
+    public void setMatterName(String matterName) {
+        this.matterName = matterName == null ? null : matterName.trim();
+    }
+
+    public String getContractNo() {
+        return contractNo;
+    }
+
+    public void setContractNo(String contractNo) {
+        this.contractNo = contractNo == null ? null : contractNo.trim();
+    }
+
+    public String getBatchNo() {
+        return batchNo;
+    }
+
+    public void setBatchNo(String batchNo) {
+        this.batchNo = batchNo == null ? null : batchNo.trim();
+    }
+
+    public String getCustomerSupplierNo() {
+        return customerSupplierNo;
+    }
+
+    public void setCustomerSupplierNo(String customerSupplierNo) {
+        this.customerSupplierNo = customerSupplierNo == null ? null : customerSupplierNo.trim();
+    }
+
+    public String getCustomerSupplierName() {
+        return customerSupplierName;
+    }
+
+    public void setCustomerSupplierName(String customerSupplierName) {
+        this.customerSupplierName = customerSupplierName == null ? null : customerSupplierName.trim();
+    }
+
+    public String getSourceArea() {
+        return sourceArea;
+    }
+
+    public void setSourceArea(String sourceArea) {
+        this.sourceArea = sourceArea == null ? null : sourceArea.trim();
+    }
+
+    public String getForwardingUnitNo() {
+        return forwardingUnitNo;
+    }
+
+    public void setForwardingUnitNo(String forwardingUnitNo) {
+        this.forwardingUnitNo = forwardingUnitNo == null ? null : forwardingUnitNo.trim();
+    }
+
+    public String getForwardingUnitName() {
+        return forwardingUnitName;
+    }
+
+    public void setForwardingUnitName(String forwardingUnitName) {
+        this.forwardingUnitName = forwardingUnitName == null ? null : forwardingUnitName.trim();
+    }
+
+    public String getReceivingUintNo() {
+        return receivingUintNo;
+    }
+
+    public void setReceivingUintNo(String receivingUintNo) {
+        this.receivingUintNo = receivingUintNo == null ? null : receivingUintNo.trim();
+    }
+
+    public String getReceivingUintName() {
+        return receivingUintName;
+    }
+
+    public void setReceivingUintName(String receivingUintName) {
+        this.receivingUintName = receivingUintName == null ? null : receivingUintName.trim();
+    }
+
+    public String getMaterialNo() {
+        return materialNo;
+    }
+
+    public void setMaterialNo(String materialNo) {
+        this.materialNo = materialNo == null ? null : materialNo.trim();
+    }
+
+    public String getMaterialName() {
+        return materialName;
+    }
+
+    public void setMaterialName(String materialName) {
+        this.materialName = materialName == null ? null : materialName.trim();
+    }
+
+    public String getSpecNo() {
+        return specNo;
+    }
+
+    public void setSpecNo(String specNo) {
+        this.specNo = specNo == null ? null : specNo.trim();
+    }
+
+    public String getSpecName() {
+        return specName;
+    }
+
+    public void setSpecName(String specName) {
+        this.specName = specName == null ? null : specName.trim();
+    }
+
+    public BigDecimal getShipmentGrossWeight() {
+        return shipmentGrossWeight;
+    }
+
+    public void setShipmentGrossWeight(BigDecimal shipmentGrossWeight) {
+        this.shipmentGrossWeight = shipmentGrossWeight;
+    }
+
+    public BigDecimal getShipmentNetWeight() {
+        return shipmentNetWeight;
+    }
+
+    public void setShipmentNetWeight(BigDecimal shipmentNetWeight) {
+        this.shipmentNetWeight = shipmentNetWeight;
+    }
+
+    public Integer getShipmentNum() {
+        return shipmentNum;
+    }
+
+    public void setShipmentNum(Integer shipmentNum) {
+        this.shipmentNum = shipmentNum;
+    }
+
+    public String getLoadPointNo() {
+        return loadPointNo;
+    }
+
+    public void setLoadPointNo(String loadPointNo) {
+        this.loadPointNo = loadPointNo == null ? null : loadPointNo.trim();
+    }
+
+    public String getLoadPointName() {
+        return loadPointName;
+    }
+
+    public void setLoadPointName(String loadPointName) {
+        this.loadPointName = loadPointName == null ? null : loadPointName.trim();
+    }
+
+    public String getSampleNo() {
+        return sampleNo;
+    }
+
+    public void setSampleNo(String sampleNo) {
+        this.sampleNo = sampleNo == null ? null : sampleNo.trim();
+    }
+
+    public String getSampleVoucher() {
+        return sampleVoucher;
+    }
+
+    public void setSampleVoucher(String sampleVoucher) {
+        this.sampleVoucher = sampleVoucher == null ? null : sampleVoucher.trim();
+    }
+
+    public String getCarrierUnitNo() {
+        return carrierUnitNo;
+    }
+
+    public void setCarrierUnitNo(String carrierUnitNo) {
+        this.carrierUnitNo = carrierUnitNo == null ? null : carrierUnitNo.trim();
+    }
+
+    public String getCarrierUnitName() {
+        return carrierUnitName;
+    }
+
+    public void setCarrierUnitName(String carrierUnitName) {
+        this.carrierUnitName = carrierUnitName == null ? null : carrierUnitName.trim();
+    }
+
+    public String getPredictionType() {
+        return predictionType;
+    }
+
+    public void setPredictionType(String predictionType) {
+        this.predictionType = predictionType == null ? null : predictionType.trim();
+    }
+
+    public String getPredictionCombination() {
+        return predictionCombination;
+    }
+
+    public void setPredictionCombination(String predictionCombination) {
+        this.predictionCombination = predictionCombination == null ? null : predictionCombination.trim();
+    }
+
+    public String getMeterTypeNo() {
+        return meterTypeNo;
+    }
+
+    public void setMeterTypeNo(String meterTypeNo) {
+        this.meterTypeNo = meterTypeNo == null ? null : meterTypeNo.trim();
+    }
+
+    public String getMeterTypeName() {
+        return meterTypeName;
+    }
+
+    public void setMeterTypeName(String meterTypeName) {
+        this.meterTypeName = meterTypeName == null ? null : meterTypeName.trim();
+    }
+
+    public Date getEffectiveStartTime() {
+        return effectiveStartTime;
+    }
+
+    public void setEffectiveStartTime(Date effectiveStartTime) {
+        this.effectiveStartTime = effectiveStartTime;
+    }
+
+    public Date getEffectiveEndTime() {
+        return effectiveEndTime;
+    }
+
+    public void setEffectiveEndTime(Date effectiveEndTime) {
+        this.effectiveEndTime = effectiveEndTime;
+    }
+
+    public String getRailwayTypeNo() {
+        return railwayTypeNo;
+    }
+
+    public void setRailwayTypeNo(String railwayTypeNo) {
+        this.railwayTypeNo = railwayTypeNo == null ? null : railwayTypeNo.trim();
+    }
+
+    public String getRailwayTypeName() {
+        return railwayTypeName;
+    }
+
+    public void setRailwayTypeName(String railwayTypeName) {
+        this.railwayTypeName = railwayTypeName == null ? null : railwayTypeName.trim();
+    }
+
+    public String getMemo() {
+        return memo;
+    }
+
+    public void setMemo(String memo) {
+        this.memo = memo == null ? null : memo.trim();
+    }
+
+    public String getValueFlag() {
+        return valueFlag;
+    }
+
+    public void setValueFlag(String valueFlag) {
+        this.valueFlag = valueFlag == null ? null : valueFlag.trim();
+    }
+
+    public Date getUsedTime() {
+        return usedTime;
+    }
+
+    public void setUsedTime(Date usedTime) {
+        this.usedTime = usedTime;
+    }
+
+    public String getCreateManNo() {
+        return createManNo;
+    }
+
+    public void setCreateManNo(String createManNo) {
+        this.createManNo = createManNo == null ? null : createManNo.trim();
+    }
+
+    public String getCreateManName() {
+        return createManName;
+    }
+
+    public void setCreateManName(String createManName) {
+        this.createManName = createManName == null ? null : createManName.trim();
+    }
+
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    public String getUpdateManNo() {
+        return updateManNo;
+    }
+
+    public void setUpdateManNo(String updateManNo) {
+        this.updateManNo = updateManNo == null ? null : updateManNo.trim();
+    }
+
+    public String getUpdateManName() {
+        return updateManName;
+    }
+
+    public void setUpdateManName(String updateManName) {
+        this.updateManName = updateManName == null ? null : updateManName.trim();
+    }
+
+    public Date getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Date updateTime) {
+        this.updateTime = updateTime;
+    }
+
+    public String getDeleteManNo() {
+        return deleteManNo;
+    }
+
+    public void setDeleteManNo(String deleteManNo) {
+        this.deleteManNo = deleteManNo == null ? null : deleteManNo.trim();
+    }
+
+    public String getDeleteManName() {
+        return deleteManName;
+    }
+
+    public void setDeleteManName(String deleteManName) {
+        this.deleteManName = deleteManName == null ? null : deleteManName.trim();
+    }
+
+    public Date getDeleteTime() {
+        return deleteTime;
+    }
+
+    public void setDeleteTime(Date deleteTime) {
+        this.deleteTime = deleteTime;
+    }
+
+    public String getpValueFlag() {
+        return pValueFlag;
+    }
+
+    public void setpValueFlag(String pValueFlag) {
+        this.pValueFlag = pValueFlag == null ? null : pValueFlag.trim();
+    }
+
+    public String getIsChemical() {
+        return isChemical;
+    }
+
+    public void setIsChemical(String isChemical) {
+        this.isChemical = isChemical == null ? null : isChemical.trim();
+    }
+
+    public BigDecimal getLimitWeight() {
+        return limitWeight;
+    }
+
+    public void setLimitWeight(BigDecimal limitWeight) {
+        this.limitWeight = limitWeight;
+    }
+
+    public String getRailwayModelNo() {
+        return railwayModelNo;
+    }
+
+    public void setRailwayModelNo(String railwayModelNo) {
+        this.railwayModelNo = railwayModelNo == null ? null : railwayModelNo.trim();
+    }
+
+    public String getRailwayModelName() {
+        return railwayModelName;
+    }
+
+    public void setRailwayModelName(String railwayModelName) {
+        this.railwayModelName = railwayModelName == null ? null : railwayModelName.trim();
+    }
+
+    public String getArrival() {
+        return arrival;
+    }
+
+    public void setArrival(String arrival) {
+        this.arrival = arrival == null ? null : arrival.trim();
+    }
+
+    public String getStation() {
+        return station;
+    }
+
+    public void setStation(String station) {
+        this.station = station == null ? null : station.trim();
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", predictionNo=").append(predictionNo);
+        sb.append(", noticeNo=").append(noticeNo);
+        sb.append(", railwayNo=").append(railwayNo);
+        sb.append(", railwayCarriageNo=").append(railwayCarriageNo);
+        sb.append(", matterNo=").append(matterNo);
+        sb.append(", matterName=").append(matterName);
+        sb.append(", contractNo=").append(contractNo);
+        sb.append(", batchNo=").append(batchNo);
+        sb.append(", customerSupplierNo=").append(customerSupplierNo);
+        sb.append(", customerSupplierName=").append(customerSupplierName);
+        sb.append(", sourceArea=").append(sourceArea);
+        sb.append(", forwardingUnitNo=").append(forwardingUnitNo);
+        sb.append(", forwardingUnitName=").append(forwardingUnitName);
+        sb.append(", receivingUintNo=").append(receivingUintNo);
+        sb.append(", receivingUintName=").append(receivingUintName);
+        sb.append(", materialNo=").append(materialNo);
+        sb.append(", materialName=").append(materialName);
+        sb.append(", specNo=").append(specNo);
+        sb.append(", specName=").append(specName);
+        sb.append(", shipmentGrossWeight=").append(shipmentGrossWeight);
+        sb.append(", shipmentNetWeight=").append(shipmentNetWeight);
+        sb.append(", shipmentNum=").append(shipmentNum);
+        sb.append(", loadPointNo=").append(loadPointNo);
+        sb.append(", loadPointName=").append(loadPointName);
+        sb.append(", sampleNo=").append(sampleNo);
+        sb.append(", sampleVoucher=").append(sampleVoucher);
+        sb.append(", carrierUnitNo=").append(carrierUnitNo);
+        sb.append(", carrierUnitName=").append(carrierUnitName);
+        sb.append(", predictionType=").append(predictionType);
+        sb.append(", predictionCombination=").append(predictionCombination);
+        sb.append(", meterTypeNo=").append(meterTypeNo);
+        sb.append(", meterTypeName=").append(meterTypeName);
+        sb.append(", effectiveStartTime=").append(effectiveStartTime);
+        sb.append(", effectiveEndTime=").append(effectiveEndTime);
+        sb.append(", railwayTypeNo=").append(railwayTypeNo);
+        sb.append(", railwayTypeName=").append(railwayTypeName);
+        sb.append(", memo=").append(memo);
+        sb.append(", valueFlag=").append(valueFlag);
+        sb.append(", usedTime=").append(usedTime);
+        sb.append(", createManNo=").append(createManNo);
+        sb.append(", createManName=").append(createManName);
+        sb.append(", createTime=").append(createTime);
+        sb.append(", updateManNo=").append(updateManNo);
+        sb.append(", updateManName=").append(updateManName);
+        sb.append(", updateTime=").append(updateTime);
+        sb.append(", deleteManNo=").append(deleteManNo);
+        sb.append(", deleteManName=").append(deleteManName);
+        sb.append(", deleteTime=").append(deleteTime);
+        sb.append(", pValueFlag=").append(pValueFlag);
+        sb.append(", isChemical=").append(isChemical);
+        sb.append(", limitWeight=").append(limitWeight);
+        sb.append(", railwayModelNo=").append(railwayModelNo);
+        sb.append(", railwayModelName=").append(railwayModelName);
+        sb.append(", arrival=").append(arrival);
+        sb.append(", station=").append(station);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 23 - 0
src/main/java/com/steerinfo/pretrack/prehookscale/service/IPreHookScaleService.java

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

+ 36 - 0
src/main/java/com/steerinfo/pretrack/prehookscale/service/impl/PreHookScaleServiceImpl.java

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