QuietShadow 3 gadi atpakaļ
vecāks
revīzija
cb292200f1

+ 339 - 0
src/main/java/com/steerinfo/ems/Utils/ExcelToolUtils.java

@@ -0,0 +1,339 @@
+package com.steerinfo.ems.Utils;
+
+import org.apache.commons.lang3.StringUtils;
+import org.apache.poi.hssf.usermodel.HSSFCell;
+import org.apache.poi.hssf.usermodel.HSSFDataFormat;
+import org.apache.poi.hssf.usermodel.HSSFDateUtil;
+import org.apache.poi.hssf.usermodel.HSSFWorkbook;
+import org.apache.poi.ss.usermodel.*;
+import org.apache.poi.xssf.usermodel.XSSFWorkbook;
+import org.apache.tomcat.util.http.fileupload.FileItem;
+import org.apache.tomcat.util.http.fileupload.FileItemFactory;
+import org.apache.tomcat.util.http.fileupload.disk.DiskFileItemFactory;
+import org.springframework.web.multipart.MultipartFile;
+
+import java.io.*;
+import java.text.DecimalFormat;
+import java.text.NumberFormat;
+import java.text.SimpleDateFormat;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+import java.util.Random;
+
+
+/**
+ * @Author fubo
+ * @Description  excel导入
+ * @Date 2020/6/10 8:46
+ **/
+public class ExcelToolUtils {
+
+
+    /**
+     * MultipartFile转 FileItem 并删除本地临时文件
+     **/
+    public static FileItem MultipartFileItem(MultipartFile file) throws Exception {
+        File files = multipartFileToFile(file);
+        FileItem fielitem = createFileItem(files, files.getName());
+        delteTempFile(files);
+
+        return fielitem;
+    }
+
+    /*
+      创建FileItem
+       */
+    public static FileItem createFileItem(File file, String fieldName) {
+        FileItemFactory factory = new DiskFileItemFactory(16, null);
+        FileItem item = factory.createItem(fieldName, "text/plain", true, file.getName());
+        int bytesRead = 0;
+        byte[] buffer = new byte[8192];
+        try {
+            FileInputStream fis = new FileInputStream(file);
+            OutputStream os = item.getOutputStream();
+            while ((bytesRead = fis.read(buffer, 0, 8192)) != -1) {
+                os.write(buffer, 0, bytesRead);
+            }
+            os.close();
+            fis.close();
+        } catch (IOException e) {
+            e.printStackTrace();
+        }
+        return item;
+    }
+
+
+    /**
+     * MultipartFile 转 File
+     *
+     * @param file
+     * @throws Exception
+     */
+    public static File multipartFileToFile(MultipartFile file) throws Exception {
+        File toFile = null;
+        if (file.equals("") || file.getSize() <= 0) {
+            file = null;
+        } else {
+            InputStream ins = null;
+            ins = file.getInputStream();
+            toFile = new File(file.getOriginalFilename());
+            inputStreamToFile(ins, toFile);
+            ins.close();
+        }
+        return toFile;
+    }
+
+    //获取流文件
+    private static void inputStreamToFile(InputStream ins, File file) {
+        try {
+            OutputStream os = new FileOutputStream(file);
+            int bytesRead = 0;
+            byte[] buffer = new byte[8192];
+            while ((bytesRead = ins.read(buffer, 0, 8192)) != -1) {
+                os.write(buffer, 0, bytesRead);
+            }
+            os.close();
+            ins.close();
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+
+    /**
+     * 删除本地临时文件
+     *
+     * @param file
+     */
+    public static void delteTempFile(File file) {
+        if (file != null) {
+            File del = new File(file.toURI());
+            del.delete();
+        }
+    }
+
+    private static NumberFormat numberFormat = NumberFormat.getInstance();
+
+    static {
+        numberFormat.setGroupingUsed(false);
+    }
+
+    /**
+     * 解析文件的方法.
+     *
+     * @param inputStream 文件输入流, 要解析的Excel文件输入流
+     * @param fileName    文件名.
+     * @param startRow    从第几行开始读取数据.
+     * @return List<String [ ]> 集合中的一个元素对应一行解析的数据.
+     * 元素为字符串数组类型. 数组中的每个元素对应一列数据.
+     * @throws IOException
+     */
+    public static List<String[]> parseExcel(InputStream inputStream, String fileName, int startRow)
+            throws IOException {
+
+        // 1. 定义excel对象变量
+        Workbook workbook = null;
+
+        //获取后缀
+        String suffix = fileName.substring(fileName.lastIndexOf("."));
+
+        // 2. 判断后缀.决定使用的解析方式. 决定如何创建具体的对象
+        if (".xls".equals(suffix)) {
+            // 2003
+            workbook = new HSSFWorkbook(inputStream);
+        } else if (".xlsx".equals(suffix)) {
+            // 2007
+            workbook = new XSSFWorkbook(inputStream);
+        } else {
+            // 未知内容
+            //throw new MarketSlmException(500, "请选择xls或者xlsx文件!");
+        }
+
+        // 获取工作表  excel分为若干个表. sheet
+        Sheet sheet = workbook.getSheetAt(0);
+
+        if (sheet == null) {
+            return null;
+        }
+
+        // 获取表格中最后一行的行号
+        int lastRowNum = sheet.getLastRowNum();
+
+        // 最后一行的行号小于startRow
+        if (lastRowNum < startRow) {
+            //throw new MarketSlmException(500, "请输入数据");
+        }
+
+
+        List<String[]> result = new ArrayList<>();
+
+        // 定义行变量和单元格变量
+        Row row = null;
+        Cell cell = null;
+        // 循环读取
+        for (int rowNum = startRow; rowNum <= lastRowNum; rowNum++) {
+            row = sheet.getRow(rowNum);
+            // 获取当前行的第一列和最后一列的标记(列数)
+            short firstCellNum = row.getFirstCellNum();//第一列从0开始
+            short lastCellNum = row.getLastCellNum();//最后一列
+            if (lastCellNum != 0) {
+                String[] rowArray = new String[lastCellNum];
+                for (int cellNum = firstCellNum; cellNum < lastCellNum; cellNum++) {
+                    cell = row.getCell(cellNum);
+                    // 判断单元格是否有数据
+                    if (cell == null) {
+                        rowArray[cellNum] = null;
+                    } else {
+                        rowArray[cellNum] = parseCell(cell);
+                    }
+                }
+                if(rowArray[0] != null){
+                    result.add(rowArray);
+                }
+            }
+        }
+
+        return result;
+    }
+
+    /**
+     * 解析单元格
+     *
+     * @return String 单元格数据
+     */
+    private static String parseCell(Cell cell) {
+        String result = null;
+
+        switch (cell.getCellType()) {
+
+            case HSSFCell.CELL_TYPE_NUMERIC:// 判断单元格的值是否为数字类型
+
+                if (HSSFDateUtil.isCellDateFormatted(cell)) {// 处理日期格式、时间格式
+                    SimpleDateFormat sdf = null;
+                    if (cell.getCellStyle().getDataFormat() == HSSFDataFormat
+                            .getBuiltinFormat("h:mm")) {
+                        sdf = new SimpleDateFormat("HH:mm");
+                    } else {// 日期
+                        sdf = new SimpleDateFormat("yyyy-MM-dd");
+                    }
+                    Date date = cell.getDateCellValue();
+                    result = sdf.format(date);
+                } else if (cell.getCellStyle().getDataFormat() == 58) {
+                    // 处理自定义日期格式:m月d日(通过判断单元格的格式id解决,id的值是58)
+					/*yyyy年m月d日----->31
+					yyyy-MM-dd-----	14
+					yyyy年m月-------	57
+					m月d日  ----------58
+					HH:mm-----------20
+					h时mm分  -------	32*/
+
+                    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
+                    double value = cell.getNumericCellValue();
+                    Date date = DateUtil
+                            .getJavaDate(value);
+                    result = sdf.format(date);
+                } else {
+                    // 返回数值类型的值
+                    Object inputValue = null;// 单元格值
+                    Long longVal = Math.round(cell.getNumericCellValue());
+                    Double doubleVal = cell.getNumericCellValue();
+                    if (Double.parseDouble(longVal + ".0") == doubleVal) {   //判断是否含有小数位.0
+                        inputValue = longVal;
+                    } else {
+                        inputValue = doubleVal;
+                    }
+                    DecimalFormat df = new DecimalFormat("#.##");    //格式化为四位小数,按自己需求选择;
+                    result = String.valueOf(df.format(inputValue));      //返回String类型
+
+//                    double value = cell.getNumericCellValue();
+//                    CellStyle style = cell.getCellStyle();
+//                    DecimalFormat format = new DecimalFormat("0.00");
+//                    String temp = style.getDataFormatString();
+//                    // 单元格设置成常规
+//                    if (temp.equals("General")) {
+//                        format.applyPattern("#");
+//                    }
+//                    result = format.format(value);
+                }
+                break;
+            case HSSFCell.CELL_TYPE_STRING:// 判断单元格的值是否为String类型
+                result = cell.getRichStringCellValue().toString();
+                break;
+            case HSSFCell.CELL_TYPE_BLANK://判断单元格的值是否为布尔类型
+                result = "";
+            default:
+                result = "";
+                break;
+        }
+
+        return result;
+    }
+
+
+   
+
+  
+   
+
+
+    /**
+     * 生成随机数:当前年月日时分秒+四位随机数
+     *
+     * @return
+     */
+    public static String getRandom() {
+
+        SimpleDateFormat simpleDateFormat;
+
+        simpleDateFormat = new SimpleDateFormat("yyyyMMdd");
+
+        Date date = new Date();
+
+        String str = simpleDateFormat.format(date);//当前年月日
+
+        Random random = new Random();
+
+        int rannum = (int) (random.nextDouble() * (9999 - 1000 + 1)) + 1000;// 获取5位随机数
+
+        return str + rannum;
+    }
+
+
+    /**
+     * 发货单页面生成的随机发货单编号-按前端设定
+     *
+     * @return
+     */
+    public static String Random() {
+
+        SimpleDateFormat simpleDateFormat;
+
+        simpleDateFormat = new SimpleDateFormat("yyyyMMdd");
+
+        Date date = new Date();
+
+        String str = simpleDateFormat.format(date);//当前年月日
+
+        Random random = new Random();
+
+        int rannum = (int) (random.nextDouble() * (99999 - 10000 + 1)) + 10000;// 获取5位随机数
+
+        return "CX-" + str + rannum;
+    }
+
+    //截取字符串中数字-按MEs规则来(前八位位年月日,后面拼编号和英文做辨识)
+    public static String getNumberText(String str){
+        if(StringUtils.isBlank(str)){
+            throw new RuntimeException("参数str不能为空");
+        }
+        StringBuffer number = new StringBuffer("");
+
+        String[] strArray = str.split("");
+        for (String string : strArray) {
+            //if(!StringUtils.isBlank(string) && RegUtils.isNumberText(string)){
+            //    number.append(string);
+            //}
+        }
+        return number.toString()+"XG";
+    }
+}

+ 59 - 8
src/main/java/com/steerinfo/ems/emsgmpcjh/controller/EmsGmPcJhController.java

@@ -1,24 +1,30 @@
 package com.steerinfo.ems.emsgmpcjh.controller;
 
+import com.alibaba.fastjson.JSON;
 import com.steerinfo.auth.utils.JwtUtil;
 import com.steerinfo.ems.Utils.DateUtils;
+import com.steerinfo.ems.Utils.ExcelToolUtils;
+import com.steerinfo.ems.Utils.WebSocket;
 import com.steerinfo.ems.emsgmpcjh.mapper.EmsGmPcJhMapper;
 import com.steerinfo.ems.emsgmpcjh.model.EmsGmPcJh;
+import com.steerinfo.ems.emsgmpcjh.service.IEmsGmPcJhService;
 import com.steerinfo.ems.emsprodplanweightadjustment.mapper.EmsProdplanWeightAdjustmentMapper;
 import com.steerinfo.ems.emsprodplanweightadjustment.model.EmsProdplanWeightAdjustment;
 import com.steerinfo.framework.controller.BaseRESTfulController;
 import com.steerinfo.framework.controller.RESTfulResult;
 import com.steerinfo.framework.service.pagehelper.PageList;
-import com.steerinfo.ems.emsgmpcjh.service.IEmsGmPcJhService;
 import io.swagger.annotations.ApiImplicitParam;
 import io.swagger.annotations.ApiImplicitParams;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
 
+import java.io.File;
 import java.math.BigDecimal;
-import java.rmi.MarshalledObject;
-import java.util.*;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.Map;
 
 /**
  * EmsGmPcJh RESTful接口:
@@ -46,8 +52,11 @@ public class EmsGmPcJhController extends BaseRESTfulController {
     @Autowired
     EmsGmPcJhMapper emsGmPcJhMapper;
     @Autowired
+    private WebSocket webSocket;
+    @Autowired
     EmsProdplanWeightAdjustmentMapper emsProdplanWeightAdjustmentMapper;
 
+
     @ApiOperation(value="获取列表", notes="分页查询")
     @ApiImplicitParams({
             @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
@@ -211,6 +220,8 @@ public class EmsGmPcJhController extends BaseRESTfulController {
     @PutMapping(value = "/updatestate", produces  = "application/json;charset=UTF-8")
     public RESTfulResult updatestate(@RequestBody EmsGmPcJh[] models){
         String userId = JwtUtil.getUseridByToken();
+        String soketMessage="国贸订单编号";
+        boolean result = false;
         for (EmsGmPcJh model : models) {
             EmsGmPcJh emsGmPcJh = this.emsGmPcJhMapper.selectByPrimaryKey(model.getId());
             if(emsGmPcJh.getState().equals("2")) {
@@ -222,15 +233,30 @@ public class EmsGmPcJhController extends BaseRESTfulController {
             if (emsGmPcJh.getState().equals("1")) {
                 return failed(null,"操作失败,编号为"+emsGmPcJh.getId()+"正在审核");
             }
+            if(emsGmPcJh.getState().equals("0")) {
+                result = true;
+                soketMessage+=emsGmPcJh.getId()+",";
+            }
             model.setYxfWeight(new BigDecimal("0"));
             model.setKxfWeight(model.getPlanWeight());
             model.setUpdateTime(new Date());
             model.setUpdateMan(userId);
             emsGmPcJhService.updateState(model);
         }
+        if(result){
+        soketMessage += "已下发,请注意接收";
+        String[] roles = {"生产部-生产处"};
+        Map <String, Object> map = new HashMap<String,Object>();
+        map.put("role",roles);
+        map.put("title","国贸订单下发");
+        map.put("message",soketMessage);
+        map.put("tips","您好,有新的国贸计划已下发,请注意接收。");
+        soketMessage= JSON.toJSONString(map);
+            webSocket.sendAllMessage(soketMessage);
+        }
         return success();
     }
-    @ApiOperation(value="更新详细信息", notes="根据url的id来指定更新对象,并根据传过来的emsGmPcJh信息来更新详细信息")
+@ApiOperation(value="更新详细信息", notes="根据url的id来指定更新对象,并根据传过来的emsGmPcJh信息来更新详细信息")
     @ApiImplicitParams({
             @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "String"),
             @ApiImplicitParam(name = "emsGmPcJh", value = "详细实体emsGmPcJh", required = true, dataType = "EmsGmPcJh")
@@ -259,7 +285,7 @@ public class EmsGmPcJhController extends BaseRESTfulController {
         }
         return success();
     }
-    //@RequiresPermissions("emsgmpcjh:update")
+//@RequiresPermissions("emsgmpcjh:update")
     @PutMapping(value = "/passaudits", produces  = "application/json;charset=UTF-8")
     public RESTfulResult passaudits(@RequestBody EmsGmPcJh[] models){
         String userId = JwtUtil.getUseridByToken();
@@ -290,7 +316,6 @@ public class EmsGmPcJhController extends BaseRESTfulController {
         }
         return success();
     }
-
     @ApiOperation(value="获取列表", notes="分页模糊查询")
     @ApiImplicitParams({
             @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
@@ -309,7 +334,7 @@ public class EmsGmPcJhController extends BaseRESTfulController {
         return success(gmPcJhDataForPage);
     }
 
-    @ApiOperation(value="获取列表", notes="分页模糊查询")
+ @ApiOperation(value="获取列表", notes="分页模糊查询")
     @ApiImplicitParams({
             @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
             @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer")
@@ -365,6 +390,33 @@ public class EmsGmPcJhController extends BaseRESTfulController {
         return success();
     }
 
+    /**
+     * @MethodName excelimport
+     * @Author TZH
+     * @Description 导入文件
+     * @Date 2021/01/12 15:20
+     **/
+
+    @PostMapping(value = "excelimport")
+    public RESTfulResult excelimport(@RequestParam("file") MultipartFile file) throws Exception {
+        RESTfulResult rs= null;
+        try {
+            if(file.isEmpty()){
+                return failed(null,"上传失败,请选择文件");
+            }
+            String fileNmae = file.getOriginalFilename();
+            File files =  ExcelToolUtils.multipartFileToFile(file);
+            rs = emsGmPcJhService.insertexcel(files);
+            ExcelToolUtils.delteTempFile(files);
+        } catch (Exception e){
+            e.printStackTrace();
+            rs.setCode("500");
+            rs.setMessage("服务端异常!");
+        }finally {
+        }
+        return rs;
+    }
+
     public String getType (EmsGmPcJh emsGmPcJh){
         if (emsGmPcJh.getWorkprocType().equals("AT2004")){
             return AT2004;
@@ -395,5 +447,4 @@ public class EmsGmPcJhController extends BaseRESTfulController {
         }
         return null;
     }
-
 }

+ 4 - 0
src/main/java/com/steerinfo/ems/emsgmpcjh/service/IEmsGmPcJhService.java

@@ -1,9 +1,11 @@
 package com.steerinfo.ems.emsgmpcjh.service;
 
 import com.steerinfo.ems.emsgmpcjh.model.EmsGmPcJh;
+import com.steerinfo.framework.controller.RESTfulResult;
 import com.steerinfo.framework.service.IBaseService;
 import com.steerinfo.framework.service.pagehelper.PageList;
 
+import java.io.File;
 import java.util.HashMap;
 import java.util.Map;
 
@@ -32,6 +34,8 @@ public interface IEmsGmPcJhService extends IBaseService<EmsGmPcJh, String>{
     PageList<Map<String, Object>>  getXsDdDate(HashMap<String, Object> parmas, Integer pageNum,
                                                         Integer pageSize);
 
+    RESTfulResult insertexcel(File file) throws Exception;
+
     //审核页面查询
     PageList<Map<String, Object>>  getXsShData(HashMap<String, Object> parmas, Integer pageNum,
                                                Integer pageSize);

+ 293 - 6
src/main/java/com/steerinfo/ems/emsgmpcjh/service/impl/EmsGmPcJhServiceImpl.java

@@ -1,18 +1,24 @@
 package com.steerinfo.ems.emsgmpcjh.service.impl;
 
+import com.steerinfo.ems.Utils.ExcelToolUtils;
+import com.steerinfo.ems.emsgmpcjh.mapper.EmsGmPcJhMapper;
 import com.steerinfo.ems.emsgmpcjh.model.EmsGmPcJh;
+import com.steerinfo.ems.emsgmpcjh.service.IEmsGmPcJhService;
+import com.steerinfo.framework.controller.RESTfulResult;
 import com.steerinfo.framework.mapper.IBaseMapper;
 import com.steerinfo.framework.service.impl.BaseServiceImpl;
-import com.steerinfo.ems.emsgmpcjh.mapper.EmsGmPcJhMapper;
-import com.steerinfo.ems.emsgmpcjh.service.IEmsGmPcJhService;
 import com.steerinfo.framework.service.pagehelper.PageHelper;
 import com.steerinfo.framework.service.pagehelper.PageList;
+import com.steerinfo.framework.user.UserPayload;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.math.BigDecimal;
+import java.text.SimpleDateFormat;
+import java.util.*;
 
 /**
  * EmsGmPcJh服务实现:
@@ -63,7 +69,6 @@ public class EmsGmPcJhServiceImpl extends BaseServiceImpl<EmsGmPcJh, String> imp
         PageList<Map<String,Object>> plist = new PageList<Map<String,Object>>(xsDdDate);
         return plist;
     }
-
     @Override
     public PageList<Map<String, Object>> getXsShData(HashMap<String, Object> parmas, Integer pageNum, Integer pageSize) {
         PageHelper.startPage(pageNum, pageSize);
@@ -72,4 +77,286 @@ public class EmsGmPcJhServiceImpl extends BaseServiceImpl<EmsGmPcJh, String> imp
         return plist;
     }
 
+    @Override
+    public RESTfulResult insertexcel(File file) throws Exception {
+        RESTfulResult rs = new RESTfulResult("200", "成功");
+        rs.setCode("0");
+        List<EmsGmPcJh> lsp = null;
+        try {
+            lsp = createCheckCar(file);
+            if (lsp.size()>0)
+            {
+                int spm = emsGmPcJhMapper.batchInsert(lsp);
+                if (spm > 0) {
+                    rs.setData(spm);
+                } else {
+                    rs.setMessage("导入失败");
+                    rs.setCode("500");
+                }
+
+            }
+            else
+            {
+                rs.setMessage("导入失败,导入数据已经存在!");
+                rs.setCode("500");
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+            rs.setCode("500");
+            rs.setMessage(e.getMessage());
+        } finally {
+
+        }
+        return rs;
+    }
+
+    public  List<EmsGmPcJh> createCheckCar(File file ) throws Exception, IOException {
+        UserPayload payload = UserPayload.getCurrUser();
+        FileInputStream is = null;
+        String fileName = file.getName();
+        // 解决fileName兼容性问题
+        int lastindex = fileName.lastIndexOf("\\");
+        fileName = fileName.substring(lastindex + 1);
+        List<EmsGmPcJh> lists = new ArrayList<>();
+        if (fileName != null && fileName.length() > 0) {
+            is = new FileInputStream(file);
+        }
+        List<String[]> list = ExcelToolUtils.parseExcel(is, fileName, 0);
+
+        // SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+        String name = fileName.substring(2, 4);
+
+        for (int i = 1; i < list.size(); i++) {
+            String[] arr = list.get(i);
+            String[] arr1 = list.get(0);
+
+            //String steel = emsGmPcJhMapper.selectsteelcode(arr[1], arr[0]);
+            //
+            //String heat = emsGmPcJhMapper.selectheatno(arr[0]);
+
+            EmsGmPcJh spp = new EmsGmPcJh();
+            ////查询是已经有数据了,有数据不执行导入功能
+            //String v1 = emsGmPcJhMapper.select4(arr[0]);
+            //if (Integer.valueOf(v1)>0) {
+            //    continue;
+            //}
+            //AT2005 = "G-G1-";
+            //AT2006 = "G-G2-";
+            //AT2004 = "G-L1-";
+            //AT2007 = "G-X1-";
+            if(arr[0].length()>8){
+                throw new Exception("排产日期(编号)有误");
+            }
+            StringBuffer s=new StringBuffer(arr[0]).insert(4,"-").insert(7,"-");
+            SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
+            simpleDateFormat.setLenient(false);
+            spp.setJhTime(simpleDateFormat.parse(s.toString()));
+            spp.setStartTime(arr[0]);
+            switch (name) {
+                case "型钢" :
+                    if(arr[1].contains("一")){
+                        spp.setType("G-X1-");
+                        spp.setWorkprocType("AT2007");
+                    } else {
+                        spp.setType("G-X2-");
+                    }
+                    break;
+                case "钢坯" :
+                    spp.setType("G-L1-");
+                    spp.setWorkprocType("AT2004");
+                break;
+                case "高线" :
+                    if(arr[1].contains("一")){
+                        spp.setType("G-G1-");
+                        spp.setWorkprocType("AT2005");
+                    } else {
+                        spp.setType("G-G2-");
+                        spp.setWorkprocType("AT2006");
+                    }
+                    break;
+                default: throw new Exception("请选择模板文件");
+            }
+            String maxid = emsGmPcJhMapper.getMaxid(spp);
+            String strh =maxid.substring(maxid.length() -2,maxid.length());
+            Integer seq = Integer.parseInt(strh)+(i-1);
+            spp.setId(maxid.replace(strh,seq<10?"0"+seq.toString():seq.toString()));
+            spp.setState("0");
+            spp.setCreateMan(payload.getUserName());
+            spp.setCreateTime(new Date());
+            spp.setUnitid("008");
+            for(int j =1;j<arr1.length;j++) {
+                switch (arr1[j].trim()) {
+                    case "规格":
+                        spp.setSpecifications(arr[j].replace("*", "x"));
+                        break;
+                    case "钢种":
+                        spp.setGrades(arr[j]);
+                        break;
+                    case "长度":
+                        spp.setLengths(new BigDecimal(arr[j]));
+                        break;
+                    case "运输方式":
+                        spp.setTransportType(arr[j]);
+                        break;
+                    case "用途":
+                        spp.setPurpose(arr[j]);
+                    case "订单量":
+                        spp.setKxfWeight(new BigDecimal(arr[j]));
+                        spp.setPlanWeight(new BigDecimal(arr[j]));
+                        break;
+                    case "交货日期":
+                        break;
+                    case "备注":
+                        spp.setMemo(arr[j]);
+                        break;
+                    default:
+                        throw new Exception("请选择模板文件");
+                }
+            }
+            //spp.setSteelCode(steel);
+            //spp.setHeatno(heat);
+            //for (int j=2;j<10;j++)
+            //{
+            //    if (arr1[j].equals("屈服强度ReH"))
+            //    {
+            //        spp.setQltyVal1(arr[j]);
+            //        spp.setQltyCfnm("屈服强度R(eH)");
+            //        spp.setQltyCd("qy0001");
+            //        List<Map<String,Object>> rows = qcmQltyJudgeMapper.selectstd(spp.getSteelCode(), spp.getQltyCd());
+            //        if(rows.size()>0)
+            //        {
+            //            if(rows.get(0).get("QLTY_MIN")!=null)
+            //            {
+            //                spp.setQltyMin(rows.get(0).get("QLTY_MIN").toString());
+            //            }
+            //            if(rows.get(0).get("QLTY_MAX")!=null)
+            //            {
+            //                spp.setQltyMax(rows.get(0).get("QLTY_MAX").toString());
+            //            }
+            //        }
+            //        EmsGmPcJh spp1 = new EmsGmPcJh();
+            //        BeanUtils.copyProperties(spp,spp1);
+            //        lists.add(spp1);
+            //    }
+            //    if (arr1[j].equals("屈服强度ReL"))
+            //    {
+            //        spp.setQltyVal1(arr[j]);
+            //        spp.setQltyCfnm("屈服强度R(eL)");
+            //        spp.setQltyCd("qy0002");
+            //        List<Map<String,Object>> rows = qcmQltyJudgeMapper.selectstd(spp.getSteelCode(), spp.getQltyCd());
+            //        if(rows!=null&&!"".equals(rows.toString()))
+            //        {
+            //            if(rows.get(0).get("QLTY_MIN")!=null)
+            //            {
+            //                spp.setQltyMin(rows.get(0).get("QLTY_MIN").toString());
+            //            }
+            //            if(rows.get(0).get("QLTY_MIN")!=null)
+            //            {
+            //                spp.setQltyMax(rows.get(0).get("QLTY_MAX").toString());
+            //            }
+            //        }
+            //        EmsGmPcJh spp1 = new EmsGmPcJh();
+            //        BeanUtils.copyProperties(spp,spp1);
+            //        lists.add(spp1);
+            //    }
+            //    if (arr1[j].equals("抗拉强度Rm"))
+            //    {
+            //        spp.setQltyVal1(arr[j]);
+            //        spp.setQltyCfnm("抗拉强度Rm");
+            //        spp.setQltyCd("qy0003");
+            //        List<Map<String,Object>> rows = qcmQltyJudgeMapper.selectstd(spp.getSteelCode(), spp.getQltyCd());
+            //        if(rows.get(0).get("QLTY_MIN")!=null)
+            //        {
+            //            spp.setQltyMin(rows.get(0).get("QLTY_MIN").toString());
+            //        }
+            //        if(rows.get(0).get("QLTY_MAX")!=null)
+            //        {
+            //            spp.setQltyMax(rows.get(0).get("QLTY_MAX").toString());
+            //        }
+            //        EmsGmPcJh spp1 = new EmsGmPcJh();
+            //        BeanUtils.copyProperties(spp,spp1);
+            //        lists.add(spp1);
+            //    }
+            //
+            //    if (arr1[j].equals("断后伸长率%"))
+            //    {
+            //        spp.setQltyVal1(arr[j]);
+            //        spp.setQltyCfnm("断后伸长率%");
+            //        spp.setQltyCd("qy0004");
+            //        List<Map<String,Object>> rows = qcmQltyJudgeMapper.selectstd(spp.getSteelCode(), spp.getQltyCd());
+            //        if(rows.get(0).get("QLTY_MIN")!=null)
+            //        {
+            //            spp.setQltyMin(rows.get(0).get("QLTY_MIN").toString());
+            //        }
+            //        if(rows.get(0).get("QLTY_MAX")!=null)
+            //        {
+            //            spp.setQltyMax(rows.get(0).get("QLTY_MAX").toString());
+            //        }
+            //        EmsGmPcJh spp1 = new EmsGmPcJh();
+            //        BeanUtils.copyProperties(spp,spp1);
+            //        lists.add(spp1);
+            //    }
+            //
+            //    if (arr1[j].equals("冲击试验温度"))
+            //    {
+            //        spp.setQltyVal1(arr[j]);
+            //        spp.setQltyCfnm("冲击试验温度");
+            //        spp.setQltyCd("qy0005");
+            //        List<Map<String,Object>> rows = qcmQltyJudgeMapper.selectstd(spp.getSteelCode(), spp.getQltyCd());
+            //        if(rows.get(0).get("QLTY_MIN")!=null)
+            //        {
+            //            spp.setQltyMin(rows.get(0).get("QLTY_MIN").toString());
+            //        }
+            //        if(rows.get(0).get("QLTY_MAX")!=null)
+            //        {
+            //            spp.setQltyMax(rows.get(0).get("QLTY_MAX").toString());
+            //        }
+            //        EmsGmPcJh spp1 = new EmsGmPcJh();
+            //        BeanUtils.copyProperties(spp,spp1);
+            //        lists.add(spp1);
+            //    }
+            //    if (arr1[j].equals("冷弯"))
+            //    {
+            //        spp.setQltyVal1(arr[j]);
+            //        spp.setQltyCfnm("冷弯");
+            //        spp.setQltyCd("qy0009");
+            //        List<Map<String,Object>> rows = qcmQltyJudgeMapper.selectstd(spp.getSteelCode(), spp.getQltyCd());
+            //        if(rows.get(0).get("QLTY_MIN")!=null)
+            //        {
+            //            spp.setQltyMin(rows.get(0).get("QLTY_MIN").toString());
+            //        }
+            //        if(rows.get(0).get("QLTY_MAX")!=null)
+            //        {
+            //            spp.setQltyMax(rows.get(0).get("QLTY_MAX").toString());
+            //        }
+            //        EmsGmPcJh spp1 = new EmsGmPcJh();
+            //        BeanUtils.copyProperties(spp,spp1);
+            //        lists.add(spp1);
+            //    }
+            //    if (arr1[j].equals("冲击吸收功J1"))
+            //    {
+            //        spp.setQltyVal1(arr[j]);
+            //        spp.setQltyVal2(arr[j+1]);
+            //        spp.setQltyVal3(arr[j+2]);
+            //        spp.setQltyCfnm("冲击");
+            //        spp.setQltyCd("qy0006");
+            //        List<Map<String,Object>> rows = qcmQltyJudgeMapper.selectstd(spp.getSteelCode(), spp.getQltyCd());
+            //        if(rows.get(0).get("QLTY_MIN")!=null)
+            //        {
+            //            spp.setQltyMin(rows.get(0).get("QLTY_MIN").toString());
+            //        }
+            //        if(rows.get(0).get("QLTY_MAX")!=null)
+            //        {
+            //            spp.setQltyMax(rows.get(0).get("QLTY_MAX").toString());
+            //        }
+            //        EmsGmPcJh spp1 = new EmsGmPcJh();
+            //        BeanUtils.copyProperties(spp,spp1);
+            //        lists.add(spp1);
+            //    }
+
+            //}
+            lists.add(spp);
+        }
+        return lists;
+    }
 }

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 943 - 19
src/main/java/com/steerinfo/ems/emswaihoursumtab1/mapper/EmsWAiHourSumTab1Mapper.xml


+ 771 - 2
src/main/java/com/steerinfo/ems/emswaihoursumtab1/model/EmsWAiHourSumTab1.java

@@ -502,6 +502,171 @@ public class EmsWAiHourSumTab1 implements IBasePO<String> {
     @ApiModelProperty(value="四五高线新水使用量",required=false)
     private Double tag45;
 
+    @ApiModelProperty(value="",required=false)
+    private Double tag106;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag107;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag108;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag109;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag110;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag111;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag112;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag113;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag114;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag115;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag116;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag117;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag118;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag119;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag120;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag121;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag122;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag123;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag124;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag125;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag126;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag127;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag128;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag129;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag130;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag131;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag132;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag133;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag134;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag135;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag136;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag137;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag138;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag139;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag140;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag141;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag142;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag143;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag144;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag145;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag146;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag147;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag148;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag149;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag150;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag151;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag152;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag153;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag154;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag155;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag156;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag157;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag158;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag159;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag160;
+
     private static final long serialVersionUID = 1L;
 
     @Override
@@ -1370,6 +1535,446 @@ public class EmsWAiHourSumTab1 implements IBasePO<String> {
         this.tag45 = tag45;
     }
 
+    public Double getTag106() {
+        return tag106;
+    }
+
+    public void setTag106(Double tag106) {
+        this.tag106 = tag106;
+    }
+
+    public Double getTag107() {
+        return tag107;
+    }
+
+    public void setTag107(Double tag107) {
+        this.tag107 = tag107;
+    }
+
+    public Double getTag108() {
+        return tag108;
+    }
+
+    public void setTag108(Double tag108) {
+        this.tag108 = tag108;
+    }
+
+    public Double getTag109() {
+        return tag109;
+    }
+
+    public void setTag109(Double tag109) {
+        this.tag109 = tag109;
+    }
+
+    public Double getTag110() {
+        return tag110;
+    }
+
+    public void setTag110(Double tag110) {
+        this.tag110 = tag110;
+    }
+
+    public Double getTag111() {
+        return tag111;
+    }
+
+    public void setTag111(Double tag111) {
+        this.tag111 = tag111;
+    }
+
+    public Double getTag112() {
+        return tag112;
+    }
+
+    public void setTag112(Double tag112) {
+        this.tag112 = tag112;
+    }
+
+    public Double getTag113() {
+        return tag113;
+    }
+
+    public void setTag113(Double tag113) {
+        this.tag113 = tag113;
+    }
+
+    public Double getTag114() {
+        return tag114;
+    }
+
+    public void setTag114(Double tag114) {
+        this.tag114 = tag114;
+    }
+
+    public Double getTag115() {
+        return tag115;
+    }
+
+    public void setTag115(Double tag115) {
+        this.tag115 = tag115;
+    }
+
+    public Double getTag116() {
+        return tag116;
+    }
+
+    public void setTag116(Double tag116) {
+        this.tag116 = tag116;
+    }
+
+    public Double getTag117() {
+        return tag117;
+    }
+
+    public void setTag117(Double tag117) {
+        this.tag117 = tag117;
+    }
+
+    public Double getTag118() {
+        return tag118;
+    }
+
+    public void setTag118(Double tag118) {
+        this.tag118 = tag118;
+    }
+
+    public Double getTag119() {
+        return tag119;
+    }
+
+    public void setTag119(Double tag119) {
+        this.tag119 = tag119;
+    }
+
+    public Double getTag120() {
+        return tag120;
+    }
+
+    public void setTag120(Double tag120) {
+        this.tag120 = tag120;
+    }
+
+    public Double getTag121() {
+        return tag121;
+    }
+
+    public void setTag121(Double tag121) {
+        this.tag121 = tag121;
+    }
+
+    public Double getTag122() {
+        return tag122;
+    }
+
+    public void setTag122(Double tag122) {
+        this.tag122 = tag122;
+    }
+
+    public Double getTag123() {
+        return tag123;
+    }
+
+    public void setTag123(Double tag123) {
+        this.tag123 = tag123;
+    }
+
+    public Double getTag124() {
+        return tag124;
+    }
+
+    public void setTag124(Double tag124) {
+        this.tag124 = tag124;
+    }
+
+    public Double getTag125() {
+        return tag125;
+    }
+
+    public void setTag125(Double tag125) {
+        this.tag125 = tag125;
+    }
+
+    public Double getTag126() {
+        return tag126;
+    }
+
+    public void setTag126(Double tag126) {
+        this.tag126 = tag126;
+    }
+
+    public Double getTag127() {
+        return tag127;
+    }
+
+    public void setTag127(Double tag127) {
+        this.tag127 = tag127;
+    }
+
+    public Double getTag128() {
+        return tag128;
+    }
+
+    public void setTag128(Double tag128) {
+        this.tag128 = tag128;
+    }
+
+    public Double getTag129() {
+        return tag129;
+    }
+
+    public void setTag129(Double tag129) {
+        this.tag129 = tag129;
+    }
+
+    public Double getTag130() {
+        return tag130;
+    }
+
+    public void setTag130(Double tag130) {
+        this.tag130 = tag130;
+    }
+
+    public Double getTag131() {
+        return tag131;
+    }
+
+    public void setTag131(Double tag131) {
+        this.tag131 = tag131;
+    }
+
+    public Double getTag132() {
+        return tag132;
+    }
+
+    public void setTag132(Double tag132) {
+        this.tag132 = tag132;
+    }
+
+    public Double getTag133() {
+        return tag133;
+    }
+
+    public void setTag133(Double tag133) {
+        this.tag133 = tag133;
+    }
+
+    public Double getTag134() {
+        return tag134;
+    }
+
+    public void setTag134(Double tag134) {
+        this.tag134 = tag134;
+    }
+
+    public Double getTag135() {
+        return tag135;
+    }
+
+    public void setTag135(Double tag135) {
+        this.tag135 = tag135;
+    }
+
+    public Double getTag136() {
+        return tag136;
+    }
+
+    public void setTag136(Double tag136) {
+        this.tag136 = tag136;
+    }
+
+    public Double getTag137() {
+        return tag137;
+    }
+
+    public void setTag137(Double tag137) {
+        this.tag137 = tag137;
+    }
+
+    public Double getTag138() {
+        return tag138;
+    }
+
+    public void setTag138(Double tag138) {
+        this.tag138 = tag138;
+    }
+
+    public Double getTag139() {
+        return tag139;
+    }
+
+    public void setTag139(Double tag139) {
+        this.tag139 = tag139;
+    }
+
+    public Double getTag140() {
+        return tag140;
+    }
+
+    public void setTag140(Double tag140) {
+        this.tag140 = tag140;
+    }
+
+    public Double getTag141() {
+        return tag141;
+    }
+
+    public void setTag141(Double tag141) {
+        this.tag141 = tag141;
+    }
+
+    public Double getTag142() {
+        return tag142;
+    }
+
+    public void setTag142(Double tag142) {
+        this.tag142 = tag142;
+    }
+
+    public Double getTag143() {
+        return tag143;
+    }
+
+    public void setTag143(Double tag143) {
+        this.tag143 = tag143;
+    }
+
+    public Double getTag144() {
+        return tag144;
+    }
+
+    public void setTag144(Double tag144) {
+        this.tag144 = tag144;
+    }
+
+    public Double getTag145() {
+        return tag145;
+    }
+
+    public void setTag145(Double tag145) {
+        this.tag145 = tag145;
+    }
+
+    public Double getTag146() {
+        return tag146;
+    }
+
+    public void setTag146(Double tag146) {
+        this.tag146 = tag146;
+    }
+
+    public Double getTag147() {
+        return tag147;
+    }
+
+    public void setTag147(Double tag147) {
+        this.tag147 = tag147;
+    }
+
+    public Double getTag148() {
+        return tag148;
+    }
+
+    public void setTag148(Double tag148) {
+        this.tag148 = tag148;
+    }
+
+    public Double getTag149() {
+        return tag149;
+    }
+
+    public void setTag149(Double tag149) {
+        this.tag149 = tag149;
+    }
+
+    public Double getTag150() {
+        return tag150;
+    }
+
+    public void setTag150(Double tag150) {
+        this.tag150 = tag150;
+    }
+
+    public Double getTag151() {
+        return tag151;
+    }
+
+    public void setTag151(Double tag151) {
+        this.tag151 = tag151;
+    }
+
+    public Double getTag152() {
+        return tag152;
+    }
+
+    public void setTag152(Double tag152) {
+        this.tag152 = tag152;
+    }
+
+    public Double getTag153() {
+        return tag153;
+    }
+
+    public void setTag153(Double tag153) {
+        this.tag153 = tag153;
+    }
+
+    public Double getTag154() {
+        return tag154;
+    }
+
+    public void setTag154(Double tag154) {
+        this.tag154 = tag154;
+    }
+
+    public Double getTag155() {
+        return tag155;
+    }
+
+    public void setTag155(Double tag155) {
+        this.tag155 = tag155;
+    }
+
+    public Double getTag156() {
+        return tag156;
+    }
+
+    public void setTag156(Double tag156) {
+        this.tag156 = tag156;
+    }
+
+    public Double getTag157() {
+        return tag157;
+    }
+
+    public void setTag157(Double tag157) {
+        this.tag157 = tag157;
+    }
+
+    public Double getTag158() {
+        return tag158;
+    }
+
+    public void setTag158(Double tag158) {
+        this.tag158 = tag158;
+    }
+
+    public Double getTag159() {
+        return tag159;
+    }
+
+    public void setTag159(Double tag159) {
+        this.tag159 = tag159;
+    }
+
+    public Double getTag160() {
+        return tag160;
+    }
+
+    public void setTag160(Double tag160) {
+        this.tag160 = tag160;
+    }
+
     @Override
     public String toString() {
         StringBuilder sb = new StringBuilder();
@@ -1483,6 +2088,61 @@ public class EmsWAiHourSumTab1 implements IBasePO<String> {
         sb.append(", tag103=").append(tag103);
         sb.append(", tag104=").append(tag104);
         sb.append(", tag105=").append(tag105);
+        sb.append(", tag106=").append(tag106);
+        sb.append(", tag107=").append(tag107);
+        sb.append(", tag108=").append(tag108);
+        sb.append(", tag109=").append(tag109);
+        sb.append(", tag110=").append(tag110);
+        sb.append(", tag111=").append(tag111);
+        sb.append(", tag112=").append(tag112);
+        sb.append(", tag113=").append(tag113);
+        sb.append(", tag114=").append(tag114);
+        sb.append(", tag115=").append(tag115);
+        sb.append(", tag116=").append(tag116);
+        sb.append(", tag117=").append(tag117);
+        sb.append(", tag118=").append(tag118);
+        sb.append(", tag119=").append(tag119);
+        sb.append(", tag120=").append(tag120);
+        sb.append(", tag121=").append(tag121);
+        sb.append(", tag122=").append(tag122);
+        sb.append(", tag123=").append(tag123);
+        sb.append(", tag124=").append(tag124);
+        sb.append(", tag125=").append(tag125);
+        sb.append(", tag126=").append(tag126);
+        sb.append(", tag127=").append(tag127);
+        sb.append(", tag128=").append(tag128);
+        sb.append(", tag129=").append(tag129);
+        sb.append(", tag130=").append(tag130);
+        sb.append(", tag131=").append(tag131);
+        sb.append(", tag132=").append(tag132);
+        sb.append(", tag133=").append(tag133);
+        sb.append(", tag134=").append(tag134);
+        sb.append(", tag135=").append(tag135);
+        sb.append(", tag136=").append(tag136);
+        sb.append(", tag137=").append(tag137);
+        sb.append(", tag138=").append(tag138);
+        sb.append(", tag139=").append(tag139);
+        sb.append(", tag140=").append(tag140);
+        sb.append(", tag141=").append(tag141);
+        sb.append(", tag142=").append(tag142);
+        sb.append(", tag143=").append(tag143);
+        sb.append(", tag144=").append(tag144);
+        sb.append(", tag145=").append(tag145);
+        sb.append(", tag146=").append(tag146);
+        sb.append(", tag147=").append(tag147);
+        sb.append(", tag148=").append(tag148);
+        sb.append(", tag149=").append(tag149);
+        sb.append(", tag150=").append(tag150);
+        sb.append(", tag151=").append(tag151);
+        sb.append(", tag152=").append(tag152);
+        sb.append(", tag153=").append(tag153);
+        sb.append(", tag154=").append(tag154);
+        sb.append(", tag155=").append(tag155);
+        sb.append(", tag156=").append(tag156);
+        sb.append(", tag157=").append(tag157);
+        sb.append(", tag158=").append(tag158);
+        sb.append(", tag159=").append(tag159);
+        sb.append(", tag160=").append(tag160);
         sb.append(", serialVersionUID=").append(serialVersionUID);
         sb.append("]");
         return sb.toString();
@@ -1705,7 +2365,61 @@ public class EmsWAiHourSumTab1 implements IBasePO<String> {
             this.setTag104(val);
         } else if (tag.equalsIgnoreCase("tag105")) {
             this.setTag105(val);
-        }
+        } else if (tag.equalsIgnoreCase("tag106")) { this.setTag106(val);        }
+        else if (tag.equalsIgnoreCase("tag107")) { this.setTag107(val);        }
+        else if (tag.equalsIgnoreCase("tag108")) { this.setTag108(val);        }
+        else if (tag.equalsIgnoreCase("tag109")) { this.setTag109(val);        }
+        else if (tag.equalsIgnoreCase("tag110")) { this.setTag110(val);        }
+        else if (tag.equalsIgnoreCase("tag111")) { this.setTag111(val);        }
+        else if (tag.equalsIgnoreCase("tag112")) { this.setTag112(val);        }
+        else if (tag.equalsIgnoreCase("tag113")) { this.setTag113(val);        }
+        else if (tag.equalsIgnoreCase("tag114")) { this.setTag114(val);        }
+        else if (tag.equalsIgnoreCase("tag115")) { this.setTag115(val);        }
+        else if (tag.equalsIgnoreCase("tag116")) { this.setTag116(val);        }
+        else if (tag.equalsIgnoreCase("tag117")) { this.setTag117(val);        }
+        else if (tag.equalsIgnoreCase("tag118")) { this.setTag118(val);        }
+        else if (tag.equalsIgnoreCase("tag119")) { this.setTag119(val);        }
+        else if (tag.equalsIgnoreCase("tag120")) { this.setTag120(val);        }
+        else if (tag.equalsIgnoreCase("tag121")) { this.setTag121(val);        }
+        else if (tag.equalsIgnoreCase("tag122")) { this.setTag122(val);        }
+        else if (tag.equalsIgnoreCase("tag123")) { this.setTag123(val);        }
+        else if (tag.equalsIgnoreCase("tag124")) { this.setTag124(val);        }
+        else if (tag.equalsIgnoreCase("tag125")) { this.setTag125(val);        }
+        else if (tag.equalsIgnoreCase("tag126")) { this.setTag126(val);        }
+        else if (tag.equalsIgnoreCase("tag127")) { this.setTag127(val);        }
+        else if (tag.equalsIgnoreCase("tag128")) { this.setTag128(val);        }
+        else if (tag.equalsIgnoreCase("tag129")) { this.setTag129(val);        }
+        else if (tag.equalsIgnoreCase("tag130")) { this.setTag130(val);        }
+        else if (tag.equalsIgnoreCase("tag131")) { this.setTag131(val);        }
+        else if (tag.equalsIgnoreCase("tag132")) { this.setTag132(val);        }
+        else if (tag.equalsIgnoreCase("tag133")) { this.setTag133(val);        }
+        else if (tag.equalsIgnoreCase("tag134")) { this.setTag134(val);        }
+        else if (tag.equalsIgnoreCase("tag135")) { this.setTag135(val);        }
+        else if (tag.equalsIgnoreCase("tag136")) { this.setTag136(val);        }
+        else if (tag.equalsIgnoreCase("tag137")) { this.setTag137(val);        }
+        else if (tag.equalsIgnoreCase("tag138")) { this.setTag138(val);        }
+        else if (tag.equalsIgnoreCase("tag139")) { this.setTag139(val);        }
+        else if (tag.equalsIgnoreCase("tag140")) { this.setTag140(val);        }
+        else if (tag.equalsIgnoreCase("tag141")) { this.setTag141(val);        }
+        else if (tag.equalsIgnoreCase("tag142")) { this.setTag142(val);        }
+        else if (tag.equalsIgnoreCase("tag143")) { this.setTag143(val);        }
+        else if (tag.equalsIgnoreCase("tag144")) { this.setTag144(val);        }
+        else if (tag.equalsIgnoreCase("tag145")) { this.setTag145(val);        }
+        else if (tag.equalsIgnoreCase("tag146")) { this.setTag146(val);        }
+        else if (tag.equalsIgnoreCase("tag147")) { this.setTag147(val);        }
+        else if (tag.equalsIgnoreCase("tag148")) { this.setTag148(val);        }
+        else if (tag.equalsIgnoreCase("tag149")) { this.setTag149(val);        }
+        else if (tag.equalsIgnoreCase("tag150")) { this.setTag150(val);        }
+        else if (tag.equalsIgnoreCase("tag151")) { this.setTag151(val);        }
+        else if (tag.equalsIgnoreCase("tag152")) { this.setTag152(val);        }
+        else if (tag.equalsIgnoreCase("tag153")) { this.setTag153(val);        }
+        else if (tag.equalsIgnoreCase("tag154")) { this.setTag154(val);        }
+        else if (tag.equalsIgnoreCase("tag155")) { this.setTag155(val);        }
+        else if (tag.equalsIgnoreCase("tag156")) { this.setTag156(val);        }
+        else if (tag.equalsIgnoreCase("tag157")) { this.setTag157(val);        }
+        else if (tag.equalsIgnoreCase("tag158")) { this.setTag158(val);        }
+        else if (tag.equalsIgnoreCase("tag159")) { this.setTag159(val);        }
+        else if (tag.equalsIgnoreCase("tag160")) { this.setTag160(val);        }
     }
     
     /**
@@ -1924,7 +2638,62 @@ public class EmsWAiHourSumTab1 implements IBasePO<String> {
             return this.getTag104();
         } else if (tag.equalsIgnoreCase("tag105")) {
             return this.getTag105();
-        } else {
+        } else if (tag.equalsIgnoreCase("tag106")) {  return this.getTag106();        }
+        else if (tag.equalsIgnoreCase("tag107")) {  return this.getTag107();        }
+        else if (tag.equalsIgnoreCase("tag108")) {  return this.getTag108();        }
+        else if (tag.equalsIgnoreCase("tag109")) {  return this.getTag109();        }
+        else if (tag.equalsIgnoreCase("tag110")) {  return this.getTag110();        }
+        else if (tag.equalsIgnoreCase("tag111")) {  return this.getTag111();        }
+        else if (tag.equalsIgnoreCase("tag112")) {  return this.getTag112();        }
+        else if (tag.equalsIgnoreCase("tag113")) {  return this.getTag113();        }
+        else if (tag.equalsIgnoreCase("tag114")) {  return this.getTag114();        }
+        else if (tag.equalsIgnoreCase("tag115")) {  return this.getTag115();        }
+        else if (tag.equalsIgnoreCase("tag116")) {  return this.getTag116();        }
+        else if (tag.equalsIgnoreCase("tag117")) {  return this.getTag117();        }
+        else if (tag.equalsIgnoreCase("tag118")) {  return this.getTag118();        }
+        else if (tag.equalsIgnoreCase("tag119")) {  return this.getTag119();        }
+        else if (tag.equalsIgnoreCase("tag120")) {  return this.getTag120();        }
+        else if (tag.equalsIgnoreCase("tag121")) {  return this.getTag121();        }
+        else if (tag.equalsIgnoreCase("tag122")) {  return this.getTag122();        }
+        else if (tag.equalsIgnoreCase("tag123")) {  return this.getTag123();        }
+        else if (tag.equalsIgnoreCase("tag124")) {  return this.getTag124();        }
+        else if (tag.equalsIgnoreCase("tag125")) {  return this.getTag125();        }
+        else if (tag.equalsIgnoreCase("tag126")) {  return this.getTag126();        }
+        else if (tag.equalsIgnoreCase("tag127")) {  return this.getTag127();        }
+        else if (tag.equalsIgnoreCase("tag128")) {  return this.getTag128();        }
+        else if (tag.equalsIgnoreCase("tag129")) {  return this.getTag129();        }
+        else if (tag.equalsIgnoreCase("tag130")) {  return this.getTag130();        }
+        else if (tag.equalsIgnoreCase("tag131")) {  return this.getTag131();        }
+        else if (tag.equalsIgnoreCase("tag132")) {  return this.getTag132();        }
+        else if (tag.equalsIgnoreCase("tag133")) {  return this.getTag133();        }
+        else if (tag.equalsIgnoreCase("tag134")) {  return this.getTag134();        }
+        else if (tag.equalsIgnoreCase("tag135")) {  return this.getTag135();        }
+        else if (tag.equalsIgnoreCase("tag136")) {  return this.getTag136();        }
+        else if (tag.equalsIgnoreCase("tag137")) {  return this.getTag137();        }
+        else if (tag.equalsIgnoreCase("tag138")) {  return this.getTag138();        }
+        else if (tag.equalsIgnoreCase("tag139")) {  return this.getTag139();        }
+        else if (tag.equalsIgnoreCase("tag140")) {  return this.getTag140();        }
+        else if (tag.equalsIgnoreCase("tag141")) {  return this.getTag141();        }
+        else if (tag.equalsIgnoreCase("tag142")) {  return this.getTag142();        }
+        else if (tag.equalsIgnoreCase("tag143")) {  return this.getTag143();        }
+        else if (tag.equalsIgnoreCase("tag144")) {  return this.getTag144();        }
+        else if (tag.equalsIgnoreCase("tag145")) {  return this.getTag145();        }
+        else if (tag.equalsIgnoreCase("tag146")) {  return this.getTag146();        }
+        else if (tag.equalsIgnoreCase("tag147")) {  return this.getTag147();        }
+        else if (tag.equalsIgnoreCase("tag148")) {  return this.getTag148();        }
+        else if (tag.equalsIgnoreCase("tag149")) {  return this.getTag149();        }
+        else if (tag.equalsIgnoreCase("tag150")) {  return this.getTag150();        }
+        else if (tag.equalsIgnoreCase("tag151")) {  return this.getTag151();        }
+        else if (tag.equalsIgnoreCase("tag152")) {  return this.getTag152();        }
+        else if (tag.equalsIgnoreCase("tag153")) {  return this.getTag153();        }
+        else if (tag.equalsIgnoreCase("tag154")) {  return this.getTag154();        }
+        else if (tag.equalsIgnoreCase("tag155")) {  return this.getTag155();        }
+        else if (tag.equalsIgnoreCase("tag156")) {  return this.getTag156();        }
+        else if (tag.equalsIgnoreCase("tag157")) {  return this.getTag157();        }
+        else if (tag.equalsIgnoreCase("tag158")) {  return this.getTag158();        }
+        else if (tag.equalsIgnoreCase("tag159")) {  return this.getTag159();        }
+        else if (tag.equalsIgnoreCase("tag160")) {  return this.getTag160();        }
+        else {
 			return null;
 		}
     }

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1291 - 532
src/main/java/com/steerinfo/ems/emswaihoursumtab1org/mapper/EmsWAiHourSumTab1OrgMapper.xml


+ 717 - 2
src/main/java/com/steerinfo/ems/emswaihoursumtab1org/model/EmsWAiHourSumTab1Org.java

@@ -487,6 +487,171 @@ public class EmsWAiHourSumTab1Org implements IBasePO<String> {
     @ApiModelProperty(value="",required=false)
     private Double tag105;
 
+    @ApiModelProperty(value="",required=false)
+    private Double tag106;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag107;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag108;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag109;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag110;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag111;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag112;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag113;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag114;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag115;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag116;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag117;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag118;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag119;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag120;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag121;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag122;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag123;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag124;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag125;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag126;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag127;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag128;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag129;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag130;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag131;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag132;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag133;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag134;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag135;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag136;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag137;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag138;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag139;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag140;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag141;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag142;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag143;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag144;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag145;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag146;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag147;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag148;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag149;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag150;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag151;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag152;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag153;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag154;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag155;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag156;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag157;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag158;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag159;
+
+    @ApiModelProperty(value="",required=false)
+    private Double tag160;
+
     private static final long serialVersionUID = 1L;
 
     @Override
@@ -1323,6 +1488,446 @@ public class EmsWAiHourSumTab1Org implements IBasePO<String> {
         this.tag101 = tag101;
     }
 
+    public Double getTag106() {
+        return tag106;
+    }
+
+    public void setTag106(Double tag106) {
+        this.tag106 = tag106;
+    }
+
+    public Double getTag107() {
+        return tag107;
+    }
+
+    public void setTag107(Double tag107) {
+        this.tag107 = tag107;
+    }
+
+    public Double getTag108() {
+        return tag108;
+    }
+
+    public void setTag108(Double tag108) {
+        this.tag108 = tag108;
+    }
+
+    public Double getTag109() {
+        return tag109;
+    }
+
+    public void setTag109(Double tag109) {
+        this.tag109 = tag109;
+    }
+
+    public Double getTag110() {
+        return tag110;
+    }
+
+    public void setTag110(Double tag110) {
+        this.tag110 = tag110;
+    }
+
+    public Double getTag111() {
+        return tag111;
+    }
+
+    public void setTag111(Double tag111) {
+        this.tag111 = tag111;
+    }
+
+    public Double getTag112() {
+        return tag112;
+    }
+
+    public void setTag112(Double tag112) {
+        this.tag112 = tag112;
+    }
+
+    public Double getTag113() {
+        return tag113;
+    }
+
+    public void setTag113(Double tag113) {
+        this.tag113 = tag113;
+    }
+
+    public Double getTag114() {
+        return tag114;
+    }
+
+    public void setTag114(Double tag114) {
+        this.tag114 = tag114;
+    }
+
+    public Double getTag115() {
+        return tag115;
+    }
+
+    public void setTag115(Double tag115) {
+        this.tag115 = tag115;
+    }
+
+    public Double getTag116() {
+        return tag116;
+    }
+
+    public void setTag116(Double tag116) {
+        this.tag116 = tag116;
+    }
+
+    public Double getTag117() {
+        return tag117;
+    }
+
+    public void setTag117(Double tag117) {
+        this.tag117 = tag117;
+    }
+
+    public Double getTag118() {
+        return tag118;
+    }
+
+    public void setTag118(Double tag118) {
+        this.tag118 = tag118;
+    }
+
+    public Double getTag119() {
+        return tag119;
+    }
+
+    public void setTag119(Double tag119) {
+        this.tag119 = tag119;
+    }
+
+    public Double getTag120() {
+        return tag120;
+    }
+
+    public void setTag120(Double tag120) {
+        this.tag120 = tag120;
+    }
+
+    public Double getTag121() {
+        return tag121;
+    }
+
+    public void setTag121(Double tag121) {
+        this.tag121 = tag121;
+    }
+
+    public Double getTag122() {
+        return tag122;
+    }
+
+    public void setTag122(Double tag122) {
+        this.tag122 = tag122;
+    }
+
+    public Double getTag123() {
+        return tag123;
+    }
+
+    public void setTag123(Double tag123) {
+        this.tag123 = tag123;
+    }
+
+    public Double getTag124() {
+        return tag124;
+    }
+
+    public void setTag124(Double tag124) {
+        this.tag124 = tag124;
+    }
+
+    public Double getTag125() {
+        return tag125;
+    }
+
+    public void setTag125(Double tag125) {
+        this.tag125 = tag125;
+    }
+
+    public Double getTag126() {
+        return tag126;
+    }
+
+    public void setTag126(Double tag126) {
+        this.tag126 = tag126;
+    }
+
+    public Double getTag127() {
+        return tag127;
+    }
+
+    public void setTag127(Double tag127) {
+        this.tag127 = tag127;
+    }
+
+    public Double getTag128() {
+        return tag128;
+    }
+
+    public void setTag128(Double tag128) {
+        this.tag128 = tag128;
+    }
+
+    public Double getTag129() {
+        return tag129;
+    }
+
+    public void setTag129(Double tag129) {
+        this.tag129 = tag129;
+    }
+
+    public Double getTag130() {
+        return tag130;
+    }
+
+    public void setTag130(Double tag130) {
+        this.tag130 = tag130;
+    }
+
+    public Double getTag131() {
+        return tag131;
+    }
+
+    public void setTag131(Double tag131) {
+        this.tag131 = tag131;
+    }
+
+    public Double getTag132() {
+        return tag132;
+    }
+
+    public void setTag132(Double tag132) {
+        this.tag132 = tag132;
+    }
+
+    public Double getTag133() {
+        return tag133;
+    }
+
+    public void setTag133(Double tag133) {
+        this.tag133 = tag133;
+    }
+
+    public Double getTag134() {
+        return tag134;
+    }
+
+    public void setTag134(Double tag134) {
+        this.tag134 = tag134;
+    }
+
+    public Double getTag135() {
+        return tag135;
+    }
+
+    public void setTag135(Double tag135) {
+        this.tag135 = tag135;
+    }
+
+    public Double getTag136() {
+        return tag136;
+    }
+
+    public void setTag136(Double tag136) {
+        this.tag136 = tag136;
+    }
+
+    public Double getTag137() {
+        return tag137;
+    }
+
+    public void setTag137(Double tag137) {
+        this.tag137 = tag137;
+    }
+
+    public Double getTag138() {
+        return tag138;
+    }
+
+    public void setTag138(Double tag138) {
+        this.tag138 = tag138;
+    }
+
+    public Double getTag139() {
+        return tag139;
+    }
+
+    public void setTag139(Double tag139) {
+        this.tag139 = tag139;
+    }
+
+    public Double getTag140() {
+        return tag140;
+    }
+
+    public void setTag140(Double tag140) {
+        this.tag140 = tag140;
+    }
+
+    public Double getTag141() {
+        return tag141;
+    }
+
+    public void setTag141(Double tag141) {
+        this.tag141 = tag141;
+    }
+
+    public Double getTag142() {
+        return tag142;
+    }
+
+    public void setTag142(Double tag142) {
+        this.tag142 = tag142;
+    }
+
+    public Double getTag143() {
+        return tag143;
+    }
+
+    public void setTag143(Double tag143) {
+        this.tag143 = tag143;
+    }
+
+    public Double getTag144() {
+        return tag144;
+    }
+
+    public void setTag144(Double tag144) {
+        this.tag144 = tag144;
+    }
+
+    public Double getTag145() {
+        return tag145;
+    }
+
+    public void setTag145(Double tag145) {
+        this.tag145 = tag145;
+    }
+
+    public Double getTag146() {
+        return tag146;
+    }
+
+    public void setTag146(Double tag146) {
+        this.tag146 = tag146;
+    }
+
+    public Double getTag147() {
+        return tag147;
+    }
+
+    public void setTag147(Double tag147) {
+        this.tag147 = tag147;
+    }
+
+    public Double getTag148() {
+        return tag148;
+    }
+
+    public void setTag148(Double tag148) {
+        this.tag148 = tag148;
+    }
+
+    public Double getTag149() {
+        return tag149;
+    }
+
+    public void setTag149(Double tag149) {
+        this.tag149 = tag149;
+    }
+
+    public Double getTag150() {
+        return tag150;
+    }
+
+    public void setTag150(Double tag150) {
+        this.tag150 = tag150;
+    }
+
+    public Double getTag151() {
+        return tag151;
+    }
+
+    public void setTag151(Double tag151) {
+        this.tag151 = tag151;
+    }
+
+    public Double getTag152() {
+        return tag152;
+    }
+
+    public void setTag152(Double tag152) {
+        this.tag152 = tag152;
+    }
+
+    public Double getTag153() {
+        return tag153;
+    }
+
+    public void setTag153(Double tag153) {
+        this.tag153 = tag153;
+    }
+
+    public Double getTag154() {
+        return tag154;
+    }
+
+    public void setTag154(Double tag154) {
+        this.tag154 = tag154;
+    }
+
+    public Double getTag155() {
+        return tag155;
+    }
+
+    public void setTag155(Double tag155) {
+        this.tag155 = tag155;
+    }
+
+    public Double getTag156() {
+        return tag156;
+    }
+
+    public void setTag156(Double tag156) {
+        this.tag156 = tag156;
+    }
+
+    public Double getTag157() {
+        return tag157;
+    }
+
+    public void setTag157(Double tag157) {
+        this.tag157 = tag157;
+    }
+
+    public Double getTag158() {
+        return tag158;
+    }
+
+    public void setTag158(Double tag158) {
+        this.tag158 = tag158;
+    }
+
+    public Double getTag159() {
+        return tag159;
+    }
+
+    public void setTag159(Double tag159) {
+        this.tag159 = tag159;
+    }
+
+    public Double getTag160() {
+        return tag160;
+    }
+
+    public void setTag160(Double tag160) {
+        this.tag160 = tag160;
+    }
+
     @Override
     public String toString() {
         StringBuilder sb = new StringBuilder();
@@ -1658,7 +2263,62 @@ public class EmsWAiHourSumTab1Org implements IBasePO<String> {
             this.setTag104(val);
         } else if (tag.equalsIgnoreCase("tag105")) {
             this.setTag105(val);
-        }
+        } else if (tag.equalsIgnoreCase("tag106")) { this.setTag106(val);        }
+        else if (tag.equalsIgnoreCase("tag107")) { this.setTag107(val);        }
+        else if (tag.equalsIgnoreCase("tag108")) { this.setTag108(val);        }
+        else if (tag.equalsIgnoreCase("tag109")) { this.setTag109(val);        }
+        else if (tag.equalsIgnoreCase("tag110")) { this.setTag110(val);        }
+        else if (tag.equalsIgnoreCase("tag111")) { this.setTag111(val);        }
+        else if (tag.equalsIgnoreCase("tag112")) { this.setTag112(val);        }
+        else if (tag.equalsIgnoreCase("tag113")) { this.setTag113(val);        }
+        else if (tag.equalsIgnoreCase("tag114")) { this.setTag114(val);        }
+        else if (tag.equalsIgnoreCase("tag115")) { this.setTag115(val);        }
+        else if (tag.equalsIgnoreCase("tag116")) { this.setTag116(val);        }
+        else if (tag.equalsIgnoreCase("tag117")) { this.setTag117(val);        }
+        else if (tag.equalsIgnoreCase("tag118")) { this.setTag118(val);        }
+        else if (tag.equalsIgnoreCase("tag119")) { this.setTag119(val);        }
+        else if (tag.equalsIgnoreCase("tag120")) { this.setTag120(val);        }
+        else if (tag.equalsIgnoreCase("tag121")) { this.setTag121(val);        }
+        else if (tag.equalsIgnoreCase("tag122")) { this.setTag122(val);        }
+        else if (tag.equalsIgnoreCase("tag123")) { this.setTag123(val);        }
+        else if (tag.equalsIgnoreCase("tag124")) { this.setTag124(val);        }
+        else if (tag.equalsIgnoreCase("tag125")) { this.setTag125(val);        }
+        else if (tag.equalsIgnoreCase("tag126")) { this.setTag126(val);        }
+        else if (tag.equalsIgnoreCase("tag127")) { this.setTag127(val);        }
+        else if (tag.equalsIgnoreCase("tag128")) { this.setTag128(val);        }
+        else if (tag.equalsIgnoreCase("tag129")) { this.setTag129(val);        }
+        else if (tag.equalsIgnoreCase("tag130")) { this.setTag130(val);        }
+        else if (tag.equalsIgnoreCase("tag131")) { this.setTag131(val);        }
+        else if (tag.equalsIgnoreCase("tag132")) { this.setTag132(val);        }
+        else if (tag.equalsIgnoreCase("tag133")) { this.setTag133(val);        }
+        else if (tag.equalsIgnoreCase("tag134")) { this.setTag134(val);        }
+        else if (tag.equalsIgnoreCase("tag135")) { this.setTag135(val);        }
+        else if (tag.equalsIgnoreCase("tag136")) { this.setTag136(val);        }
+        else if (tag.equalsIgnoreCase("tag137")) { this.setTag137(val);        }
+        else if (tag.equalsIgnoreCase("tag138")) { this.setTag138(val);        }
+        else if (tag.equalsIgnoreCase("tag139")) { this.setTag139(val);        }
+        else if (tag.equalsIgnoreCase("tag140")) { this.setTag140(val);        }
+        else if (tag.equalsIgnoreCase("tag141")) { this.setTag141(val);        }
+        else if (tag.equalsIgnoreCase("tag142")) { this.setTag142(val);        }
+        else if (tag.equalsIgnoreCase("tag143")) { this.setTag143(val);        }
+        else if (tag.equalsIgnoreCase("tag144")) { this.setTag144(val);        }
+        else if (tag.equalsIgnoreCase("tag145")) { this.setTag145(val);        }
+        else if (tag.equalsIgnoreCase("tag146")) { this.setTag146(val);        }
+        else if (tag.equalsIgnoreCase("tag147")) { this.setTag147(val);        }
+        else if (tag.equalsIgnoreCase("tag148")) { this.setTag148(val);        }
+        else if (tag.equalsIgnoreCase("tag149")) { this.setTag149(val);        }
+        else if (tag.equalsIgnoreCase("tag150")) { this.setTag150(val);        }
+        else if (tag.equalsIgnoreCase("tag151")) { this.setTag151(val);        }
+        else if (tag.equalsIgnoreCase("tag152")) { this.setTag152(val);        }
+        else if (tag.equalsIgnoreCase("tag153")) { this.setTag153(val);        }
+        else if (tag.equalsIgnoreCase("tag154")) { this.setTag154(val);        }
+        else if (tag.equalsIgnoreCase("tag155")) { this.setTag155(val);        }
+        else if (tag.equalsIgnoreCase("tag156")) { this.setTag156(val);        }
+        else if (tag.equalsIgnoreCase("tag157")) { this.setTag157(val);        }
+        else if (tag.equalsIgnoreCase("tag158")) { this.setTag158(val);        }
+        else if (tag.equalsIgnoreCase("tag159")) { this.setTag159(val);        }
+        else if (tag.equalsIgnoreCase("tag160")) { this.setTag160(val);        }
+
     }
     
     /**
@@ -1877,7 +2537,62 @@ public class EmsWAiHourSumTab1Org implements IBasePO<String> {
             return this.getTag104();
         } else if (tag.equalsIgnoreCase("tag105")) {
             return this.getTag105();
-        } else {
+        } else if (tag.equalsIgnoreCase("tag106")) {  return this.getTag106();        }
+        else if (tag.equalsIgnoreCase("tag107")) {  return this.getTag107();        }
+        else if (tag.equalsIgnoreCase("tag108")) {  return this.getTag108();        }
+        else if (tag.equalsIgnoreCase("tag109")) {  return this.getTag109();        }
+        else if (tag.equalsIgnoreCase("tag110")) {  return this.getTag110();        }
+        else if (tag.equalsIgnoreCase("tag111")) {  return this.getTag111();        }
+        else if (tag.equalsIgnoreCase("tag112")) {  return this.getTag112();        }
+        else if (tag.equalsIgnoreCase("tag113")) {  return this.getTag113();        }
+        else if (tag.equalsIgnoreCase("tag114")) {  return this.getTag114();        }
+        else if (tag.equalsIgnoreCase("tag115")) {  return this.getTag115();        }
+        else if (tag.equalsIgnoreCase("tag116")) {  return this.getTag116();        }
+        else if (tag.equalsIgnoreCase("tag117")) {  return this.getTag117();        }
+        else if (tag.equalsIgnoreCase("tag118")) {  return this.getTag118();        }
+        else if (tag.equalsIgnoreCase("tag119")) {  return this.getTag119();        }
+        else if (tag.equalsIgnoreCase("tag120")) {  return this.getTag120();        }
+        else if (tag.equalsIgnoreCase("tag121")) {  return this.getTag121();        }
+        else if (tag.equalsIgnoreCase("tag122")) {  return this.getTag122();        }
+        else if (tag.equalsIgnoreCase("tag123")) {  return this.getTag123();        }
+        else if (tag.equalsIgnoreCase("tag124")) {  return this.getTag124();        }
+        else if (tag.equalsIgnoreCase("tag125")) {  return this.getTag125();        }
+        else if (tag.equalsIgnoreCase("tag126")) {  return this.getTag126();        }
+        else if (tag.equalsIgnoreCase("tag127")) {  return this.getTag127();        }
+        else if (tag.equalsIgnoreCase("tag128")) {  return this.getTag128();        }
+        else if (tag.equalsIgnoreCase("tag129")) {  return this.getTag129();        }
+        else if (tag.equalsIgnoreCase("tag130")) {  return this.getTag130();        }
+        else if (tag.equalsIgnoreCase("tag131")) {  return this.getTag131();        }
+        else if (tag.equalsIgnoreCase("tag132")) {  return this.getTag132();        }
+        else if (tag.equalsIgnoreCase("tag133")) {  return this.getTag133();        }
+        else if (tag.equalsIgnoreCase("tag134")) {  return this.getTag134();        }
+        else if (tag.equalsIgnoreCase("tag135")) {  return this.getTag135();        }
+        else if (tag.equalsIgnoreCase("tag136")) {  return this.getTag136();        }
+        else if (tag.equalsIgnoreCase("tag137")) {  return this.getTag137();        }
+        else if (tag.equalsIgnoreCase("tag138")) {  return this.getTag138();        }
+        else if (tag.equalsIgnoreCase("tag139")) {  return this.getTag139();        }
+        else if (tag.equalsIgnoreCase("tag140")) {  return this.getTag140();        }
+        else if (tag.equalsIgnoreCase("tag141")) {  return this.getTag141();        }
+        else if (tag.equalsIgnoreCase("tag142")) {  return this.getTag142();        }
+        else if (tag.equalsIgnoreCase("tag143")) {  return this.getTag143();        }
+        else if (tag.equalsIgnoreCase("tag144")) {  return this.getTag144();        }
+        else if (tag.equalsIgnoreCase("tag145")) {  return this.getTag145();        }
+        else if (tag.equalsIgnoreCase("tag146")) {  return this.getTag146();        }
+        else if (tag.equalsIgnoreCase("tag147")) {  return this.getTag147();        }
+        else if (tag.equalsIgnoreCase("tag148")) {  return this.getTag148();        }
+        else if (tag.equalsIgnoreCase("tag149")) {  return this.getTag149();        }
+        else if (tag.equalsIgnoreCase("tag150")) {  return this.getTag150();        }
+        else if (tag.equalsIgnoreCase("tag151")) {  return this.getTag151();        }
+        else if (tag.equalsIgnoreCase("tag152")) {  return this.getTag152();        }
+        else if (tag.equalsIgnoreCase("tag153")) {  return this.getTag153();        }
+        else if (tag.equalsIgnoreCase("tag154")) {  return this.getTag154();        }
+        else if (tag.equalsIgnoreCase("tag155")) {  return this.getTag155();        }
+        else if (tag.equalsIgnoreCase("tag156")) {  return this.getTag156();        }
+        else if (tag.equalsIgnoreCase("tag157")) {  return this.getTag157();        }
+        else if (tag.equalsIgnoreCase("tag158")) {  return this.getTag158();        }
+        else if (tag.equalsIgnoreCase("tag159")) {  return this.getTag159();        }
+        else if (tag.equalsIgnoreCase("tag160")) {  return this.getTag160();        }
+        else {
 			return null;
 		}
     }

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels