Commit 9c45f24e authored by Fuzy's avatar Fuzy

1

parent 1d5daa16
...@@ -80,8 +80,8 @@ public class WagesController { ...@@ -80,8 +80,8 @@ public class WagesController {
* @return * @return
*/ */
@RequestMapping("/lxWages") @RequestMapping("/lxWages")
public AjaxResult LinXiExcelAnalysisWages(@RequestParam("file") MultipartFile file, @RequestParam("date")String date){ public AjaxResult LinXiExcelAnalysisWages(@RequestParam("file") MultipartFile file, @RequestParam("date")String date, @RequestParam("mineId") String mineId){
String s = wagesService.linXiExcelAnalysisWages(file, date); String s = wagesService.linXiExcelAnalysisWages(file, date, mineId);
return new AjaxResult(200, s); return new AjaxResult(200, s);
} }
......
package com.ruoyi.system.mapper; package com.ruoyi.system.mapper;
import com.ruoyi.system.model.wages.dao.WagesDetailsExcelDAO; import com.ruoyi.system.model.wages.dao.WagesDetailsExcelDAO;
import org.apache.ibatis.annotations.Param;
import java.util.List; import java.util.List;
...@@ -10,7 +11,5 @@ import java.util.List; ...@@ -10,7 +11,5 @@ import java.util.List;
*/ */
public interface WagesDetailsMapper { public interface WagesDetailsMapper {
void deleteDetailsToDate(String date); void insertBatch(@Param("date") String date, @Param("accList") List<WagesDetailsExcelDAO> wagesList, @Param("mineId") String mineId);
void insertBatch(String date, List<WagesDetailsExcelDAO> list);
} }
...@@ -5,8 +5,6 @@ import lombok.AllArgsConstructor; ...@@ -5,8 +5,6 @@ import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import java.time.LocalDateTime;
/** /**
* @author haiwe * @author haiwe
* @date 2024/6/5 * @date 2024/6/5
...@@ -451,10 +449,12 @@ public class WagesDetailsExcelDAO { ...@@ -451,10 +449,12 @@ public class WagesDetailsExcelDAO {
private String a180; private String a180;
private LocalDateTime importTime; private String importTime;
/** /**
* 矿 * 矿
*/ */
private Integer mineId; private String mineId;
private String type;
} }
...@@ -19,5 +19,5 @@ public interface WagesService { ...@@ -19,5 +19,5 @@ public interface WagesService {
JSONObject selectWagesVoucherList(String s); JSONObject selectWagesVoucherList(String s);
String linXiExcelAnalysisWages(MultipartFile file, String date); String linXiExcelAnalysisWages(MultipartFile file, String date, String mineId);
} }
package com.ruoyi.system.service.impl; package com.ruoyi.system.service.impl;
import cn.hutool.poi.excel.ExcelReader;
import cn.hutool.poi.excel.ExcelUtil;
import com.ruoyi.common.utils.file.FileUtils;
import com.ruoyi.system.mapper.WagesCompilationMapper; import com.ruoyi.system.mapper.WagesCompilationMapper;
import com.ruoyi.system.model.wages.dao.WagesCompilationDAO; import com.ruoyi.system.model.wages.dao.WagesCompilationDAO;
import com.ruoyi.system.service.WagesCompilationService; import com.ruoyi.system.service.WagesCompilationService;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.apache.poi.ss.usermodel.*; import org.apache.poi.ss.usermodel.*;
import org.apache.poi.xssf.streaming.SXSSFWorkbook;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import java.io.*; import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.util.List;
......
...@@ -6,6 +6,7 @@ import com.alibaba.fastjson.JSONArray; ...@@ -6,6 +6,7 @@ import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.ruoyi.system.common.ReturnResult; import com.ruoyi.system.common.ReturnResult;
import com.ruoyi.system.listener.ExcelListener; import com.ruoyi.system.listener.ExcelListener;
import com.ruoyi.system.mapper.WagesDetailsMapper;
import com.ruoyi.system.mapper.WagesMapper; import com.ruoyi.system.mapper.WagesMapper;
import com.ruoyi.system.mapper.WagesSalaryProofMapper; import com.ruoyi.system.mapper.WagesSalaryProofMapper;
import com.ruoyi.system.model.doc.CustomDocRequestModel; import com.ruoyi.system.model.doc.CustomDocRequestModel;
...@@ -28,6 +29,7 @@ import java.util.ArrayList; ...@@ -28,6 +29,7 @@ import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
import java.util.stream.Collectors; import java.util.stream.Collectors;
/** /**
* 2024/4/27 * 2024/4/27
*/ */
...@@ -38,6 +40,9 @@ public class WagesServiceImpl implements WagesService { ...@@ -38,6 +40,9 @@ public class WagesServiceImpl implements WagesService {
WagesMapper wagesMapper; WagesMapper wagesMapper;
@Autowired @Autowired
WagesSalaryProofMapper wagesSalaryProofMapper; WagesSalaryProofMapper wagesSalaryProofMapper;
@Autowired
WagesDetailsMapper wagesDetailsMapper;
@Transactional @Transactional
@Override @Override
public String readOriginalData(MultipartFile file, String date) { public String readOriginalData(MultipartFile file, String date) {
...@@ -70,7 +75,7 @@ public class WagesServiceImpl implements WagesService { ...@@ -70,7 +75,7 @@ public class WagesServiceImpl implements WagesService {
wagesSheet2.getOneChildFee(), wagesSheet2.getMedicalSubsidy(), wagesSheet2.getHealthCareFee(), wagesSheet2.getClassMealFee(), wagesSheet2.getSoapFee(), wagesSheet2.getNursingFee(), wagesSheet2.getHeatstrokePreventionSubsidy(), wagesSheet2.getHeatingSubsidy(), wagesSheet2.getManuscriptFee(), wagesSheet2.getDriverAllowance(), wagesSheet2.getGraduateSettlementFee(), wagesSheet2.getOneTimeDisabilitySubsidy(), wagesSheet2.getLectureAndExamFee(), wagesSheet2.getOtherSubsidies(), wagesSheet2.getTotalPayment(), wagesSheet2.getTotalSalaryDisbursement()); wagesSheet2.getOneChildFee(), wagesSheet2.getMedicalSubsidy(), wagesSheet2.getHealthCareFee(), wagesSheet2.getClassMealFee(), wagesSheet2.getSoapFee(), wagesSheet2.getNursingFee(), wagesSheet2.getHeatstrokePreventionSubsidy(), wagesSheet2.getHeatingSubsidy(), wagesSheet2.getManuscriptFee(), wagesSheet2.getDriverAllowance(), wagesSheet2.getGraduateSettlementFee(), wagesSheet2.getOneTimeDisabilitySubsidy(), wagesSheet2.getLectureAndExamFee(), wagesSheet2.getOtherSubsidies(), wagesSheet2.getTotalPayment(), wagesSheet2.getTotalSalaryDisbursement());
wagesDetList.add(wages); wagesDetList.add(wages);
} }
if (wagesDetList.size() > 0){ if (wagesDetList.size() > 0) {
wagesMapper.deleteDetailsOriginal(wagesDetList.get(0).getMonth(), wagesDetList.get(0).getYear()); wagesMapper.deleteDetailsOriginal(wagesDetList.get(0).getMonth(), wagesDetList.get(0).getYear());
} }
if (wagesOveList.size() > 0) { if (wagesOveList.size() > 0) {
...@@ -103,7 +108,7 @@ public class WagesServiceImpl implements WagesService { ...@@ -103,7 +108,7 @@ public class WagesServiceImpl implements WagesService {
//List<WagesSalaryProof> borrowlists = new ArrayList<>(); //List<WagesSalaryProof> borrowlists = new ArrayList<>();
JSONArray borrowlists = new JSONArray(); JSONArray borrowlists = new JSONArray();
//List<WagesSalaryProof> loanlists = new ArrayList<>(); //List<WagesSalaryProof> loanlists = new ArrayList<>();
JSONArray loanlists = new JSONArray(); JSONArray loanlists = new JSONArray();
JSONObject jsonObject = JSON.parseObject(ss); JSONObject jsonObject = JSON.parseObject(ss);
JSONArray borrow = jsonObject.getJSONArray("borrow"); JSONArray borrow = jsonObject.getJSONArray("borrow");
JSONArray loan = jsonObject.getJSONArray("loan"); JSONArray loan = jsonObject.getJSONArray("loan");
...@@ -123,50 +128,50 @@ public class WagesServiceImpl implements WagesService { ...@@ -123,50 +128,50 @@ public class WagesServiceImpl implements WagesService {
// wagesSalaryProof.setAuxiliaryItemA(wagesSalaryProof1.getAuxiliaryItemA()); // wagesSalaryProof.setAuxiliaryItemA(wagesSalaryProof1.getAuxiliaryItemA());
// wagesSalaryProof.setAuxiliaryItemB(wagesSalaryProof1.getAuxiliaryItemB()); // wagesSalaryProof.setAuxiliaryItemB(wagesSalaryProof1.getAuxiliaryItemB());
//borrowlists.add(wagesSalaryProof); //borrowlists.add(wagesSalaryProof);
if(wagesSalaryProof1 != null){ if (wagesSalaryProof1 != null) {
System.err.println("wagesSalaryProof1====" + wagesSalaryProof1.toString() + i); System.err.println("wagesSalaryProof1====" + wagesSalaryProof1.toString() + i);
jsonObject1.put("account_code",wagesSalaryProof1.getAccountCode()); jsonObject1.put("account_code", wagesSalaryProof1.getAccountCode());
jsonObject1.put("auxiliary_item_a",wagesSalaryProof1.getAuxiliaryItemA()); jsonObject1.put("auxiliary_item_a", wagesSalaryProof1.getAuxiliaryItemA());
jsonObject1.put("auxiliary_item_b",wagesSalaryProof1.getAuxiliaryItemB()); jsonObject1.put("auxiliary_item_b", wagesSalaryProof1.getAuxiliaryItemB());
}else{ } else {
//如果项目带前带(,去获取相似项目的值 //如果项目带前带(,去获取相似项目的值
if(sourceOfExpenses.startsWith("(")||sourceOfExpenses.startsWith("(")){ if (sourceOfExpenses.startsWith("(") || sourceOfExpenses.startsWith("(")) {
WagesSalaryProof wagesSalaryProofLike = new WagesSalaryProof(); WagesSalaryProof wagesSalaryProofLike = new WagesSalaryProof();
wagesSalaryProofLike.setAbStract(abStract); wagesSalaryProofLike.setAbStract(abStract);
wagesSalaryProofLike.setSourceOfExpenses("(%"); wagesSalaryProofLike.setSourceOfExpenses("(%");
wagesSalaryProofLike.setIsDebit(isDebit); wagesSalaryProofLike.setIsDebit(isDebit);
List<WagesSalaryProof> wagesSalaryProofsList = wagesSalaryProofMapper.selectWagesVoucherLikeList(wagesSalaryProofLike); List<WagesSalaryProof> wagesSalaryProofsList = wagesSalaryProofMapper.selectWagesVoucherLikeList(wagesSalaryProofLike);
if(wagesSalaryProofsList.size()>0){ if (wagesSalaryProofsList.size() > 0) {
WagesSalaryProof WagesSalaryProof3=wagesSalaryProofsList.get(0); WagesSalaryProof WagesSalaryProof3 = wagesSalaryProofsList.get(0);
jsonObject1.put("account_code",WagesSalaryProof3.getAccountCode()); jsonObject1.put("account_code", WagesSalaryProof3.getAccountCode());
jsonObject1.put("auxiliary_item_a",WagesSalaryProof3.getAuxiliaryItemA()); jsonObject1.put("auxiliary_item_a", WagesSalaryProof3.getAuxiliaryItemA());
int index = sourceOfExpenses.indexOf(")"); int index = sourceOfExpenses.indexOf(")");
if(index==-1){ if (index == -1) {
index = sourceOfExpenses.indexOf(")"); index = sourceOfExpenses.indexOf(")");
} }
if(index>=0) { if (index >= 0) {
String lbname = sourceOfExpenses.substring(index + 1); String lbname = sourceOfExpenses.substring(index + 1);
String lbname2 = "项目"; String lbname2 = "项目";
//用友接口取数 //用友接口取数
CustomDocRequestModel docRequest = new CustomDocRequestModel(); CustomDocRequestModel docRequest = new CustomDocRequestModel();
docRequest.setPageIndex(Long.valueOf(1L)); docRequest.setPageIndex(Long.valueOf(1L));
docRequest.setPageSize(Long.valueOf(500L)); docRequest.setPageSize(Long.valueOf(500L));
docRequest.setName(lbname); docRequest.setName(lbname);
String codeFromCustomDoc = ""; String codeFromCustomDoc = "";
JSONArray customDoc = getCustomDoc(docRequest); JSONArray customDoc = getCustomDoc(docRequest);
//如果用友返回不为空 //如果用友返回不为空
if (customDoc!=null){ if (customDoc != null) {
codeFromCustomDoc = getCodeFromCustomDoc(customDoc, lbname2); codeFromCustomDoc = getCodeFromCustomDoc(customDoc, lbname2);
if(codeFromCustomDoc!=null){ if (codeFromCustomDoc != null) {
jsonObject1.put("auxiliary_item_b", lbname2 + ":" + codeFromCustomDoc + "/" + lbname); jsonObject1.put("auxiliary_item_b", lbname2 + ":" + codeFromCustomDoc + "/" + lbname);
} }
} }
} }
} }
} }
} }
borrowlists.add(jsonObject1); borrowlists.add(jsonObject1);
...@@ -186,11 +191,11 @@ public class WagesServiceImpl implements WagesService { ...@@ -186,11 +191,11 @@ public class WagesServiceImpl implements WagesService {
// wagesSalaryProof.setAuxiliaryItemA(wagesSalaryProof1.getAuxiliaryItemA()); // wagesSalaryProof.setAuxiliaryItemA(wagesSalaryProof1.getAuxiliaryItemA());
// wagesSalaryProof.setAuxiliaryItemB(wagesSalaryProof1.getAuxiliaryItemB()); // wagesSalaryProof.setAuxiliaryItemB(wagesSalaryProof1.getAuxiliaryItemB());
// loanlists.add(wagesSalaryProof); // loanlists.add(wagesSalaryProof);
if(wagesSalaryProof2 != null){ if (wagesSalaryProof2 != null) {
System.err.println("wagesSalaryProof2====" + wagesSalaryProof2.toString() + i); System.err.println("wagesSalaryProof2====" + wagesSalaryProof2.toString() + i);
jsonObject2.put("account_code",wagesSalaryProof2.getAccountCode()); jsonObject2.put("account_code", wagesSalaryProof2.getAccountCode());
jsonObject2.put("auxiliary_item_a",wagesSalaryProof2.getAuxiliaryItemA()); jsonObject2.put("auxiliary_item_a", wagesSalaryProof2.getAuxiliaryItemA());
jsonObject2.put("auxiliary_item_b",wagesSalaryProof2.getAuxiliaryItemB()); jsonObject2.put("auxiliary_item_b", wagesSalaryProof2.getAuxiliaryItemB());
} }
loanlists.add(jsonObject2); loanlists.add(jsonObject2);
...@@ -198,23 +203,29 @@ public class WagesServiceImpl implements WagesService { ...@@ -198,23 +203,29 @@ public class WagesServiceImpl implements WagesService {
// com.alibaba.fastjson2.JSONArray borrowjson = com.alibaba.fastjson2.JSONArray.of(borrowlists); // com.alibaba.fastjson2.JSONArray borrowjson = com.alibaba.fastjson2.JSONArray.of(borrowlists);
// com.alibaba.fastjson2.JSONArray loanjson = com.alibaba.fastjson2.JSONArray.of(loanlists); // com.alibaba.fastjson2.JSONArray loanjson = com.alibaba.fastjson2.JSONArray.of(loanlists);
object.put("borrow",borrowlists); object.put("borrow", borrowlists);
object.put("loan",loanlists); object.put("loan", loanlists);
return object; return object;
} }
@Override @Override
public String linXiExcelAnalysisWages(MultipartFile file, String date) { public String linXiExcelAnalysisWages(MultipartFile file, String date, String mineId) {
try { try {
List<String> filterList = Arrays.asList("小计", "合计", "总计"); List<String> filterList = Arrays.asList("小计", "合计", "总计");
InputStream inputStream = file.getInputStream(); InputStream inputStream = file.getInputStream();
List<LinXiWagesDetailsOriginalExcelDao> wagesList = EasyExcelFactory.read(inputStream, LinXiWagesDetailsOriginalExcelDao.class, new ExcelListener<LinXiWagesDetailsOriginalExcelDao>()).sheet(0).doReadSync(); List<WagesDetailsExcelDAO> wagesList = EasyExcelFactory.read(inputStream, WagesDetailsExcelDAO.class, new ExcelListener<WagesDetailsExcelDAO>()).sheet(0).headRowNumber(2).doReadSync();
inputStream.close(); inputStream.close();
InputStream inputStream1 = file.getInputStream(); InputStream inputStream1 = file.getInputStream();
List<LinXiFinanceWagesSurface> financeWagesList = EasyExcelFactory.read(inputStream1, LinXiFinanceWagesSurface.class, new ExcelListener<LinXiFinanceWagesSurface>()).sheet(1).doReadSync(); List<WagesDetailsExcelDAO> financeWagesList = EasyExcelFactory.read(inputStream1, WagesDetailsExcelDAO.class, new ExcelListener<WagesDetailsExcelDAO>()).sheet(1).headRowNumber(2).doReadSync();
inputStream1.close(); inputStream1.close();
wagesList = wagesList.parallelStream().filter(v -> !filterList.contains(v.getDept())).collect(Collectors.toList()); wagesList = wagesList.parallelStream()
financeWagesList = financeWagesList.parallelStream().filter(v -> !filterList.contains(v.getDept())).collect(Collectors.toList()); .filter(v -> !filterList.contains(v.getA1()))
.peek(v -> v.setType("0")).collect(Collectors.toList());
financeWagesList = financeWagesList.parallelStream()
.filter(v -> !filterList.contains(v.getA1()))
.peek(v -> v.setType("1")).collect(Collectors.toList());
wagesDetailsMapper.insertBatch(date, wagesList, mineId);
wagesDetailsMapper.insertBatch(date, financeWagesList, mineId);
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }
...@@ -223,12 +234,11 @@ public class WagesServiceImpl implements WagesService { ...@@ -223,12 +234,11 @@ public class WagesServiceImpl implements WagesService {
public JSONArray getCustomDoc(CustomDocRequestModel customDocRequestModel) { public JSONArray getCustomDoc(CustomDocRequestModel customDocRequestModel) {
ReturnResult customDocument = VoucherUtils.callVoucherQuery(customDocRequestModel, "/yonbip/digitalModel/customerdoc/list"); ReturnResult customDocument = VoucherUtils.callVoucherQuery(customDocRequestModel, "/yonbip/digitalModel/customerdoc/list");
if(customDocument!=null){ if (customDocument != null) {
JSONObject customDocumentJsonObj = (JSONObject)JSON.toJSON(customDocument.getData().get(0)); JSONObject customDocumentJsonObj = (JSONObject) JSON.toJSON(customDocument.getData().get(0));
return customDocumentJsonObj.getJSONArray("recordList"); return customDocumentJsonObj.getJSONArray("recordList");
} } else {
else{ return null;
return null;
} }
} }
...@@ -236,7 +246,7 @@ public class WagesServiceImpl implements WagesService { ...@@ -236,7 +246,7 @@ public class WagesServiceImpl implements WagesService {
private String getCodeFromCustomDoc(JSONArray customDoc, String nameZhCn) { private String getCodeFromCustomDoc(JSONArray customDoc, String nameZhCn) {
String code = null; String code = null;
for (Object o : customDoc) { for (Object o : customDoc) {
JSONObject object = (JSONObject)o; JSONObject object = (JSONObject) o;
String custdocdefid_name = object.getString("custdocdefid_name"); String custdocdefid_name = object.getString("custdocdefid_name");
if (custdocdefid_name.equals(nameZhCn)) { if (custdocdefid_name.equals(nameZhCn)) {
code = object.getString("code"); code = object.getString("code");
......
...@@ -3,563 +3,372 @@ ...@@ -3,563 +3,372 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper.WagesDetailsMapper"> <mapper namespace="com.ruoyi.system.mapper.WagesDetailsMapper">
<resultMap type="com.ruoyi.system.model.wages.dao.WagesDetailsExcelDAO" id="WagesDetailsResult">
<result property="a1" column="a1" />
<result property="a2" column="a2" />
<result property="a3" column="a3" />
<result property="a4" column="a4" />
<result property="a5" column="a5" />
<result property="a6" column="a6" />
<result property="a7" column="a7" />
<result property="a8" column="a8" />
<result property="a9" column="a9" />
<result property="a10" column="a10" />
<result property="a11" column="a11" />
<result property="a12" column="a12" />
<result property="a13" column="a13" />
<result property="a14" column="a14" />
<result property="a15" column="a15" />
<result property="a16" column="a16" />
<result property="a17" column="a17" />
<result property="a18" column="a18" />
<result property="a19" column="a19" />
<result property="a20" column="a20" />
<result property="a21" column="a21" />
<result property="a22" column="a22" />
<result property="a23" column="a23" />
<result property="a24" column="a24" />
<result property="a25" column="a25" />
<result property="a26" column="a26" />
<result property="a27" column="a27" />
<result property="a28" column="a28" />
<result property="a29" column="a29" />
<result property="a30" column="a30" />
<result property="a31" column="a31" />
<result property="a32" column="a32" />
<result property="a33" column="a33" />
<result property="a34" column="a34" />
<result property="a35" column="a35" />
<result property="a36" column="a36" />
<result property="a37" column="a37" />
<result property="a38" column="a38" />
<result property="a39" column="a39" />
<result property="a40" column="a40" />
<result property="a41" column="a41" />
<result property="a42" column="a42" />
<result property="a43" column="a43" />
<result property="a44" column="a44" />
<result property="a45" column="a45" />
<result property="a46" column="a46" />
<result property="a47" column="a47" />
<result property="a48" column="a48" />
<result property="a49" column="a49" />
<result property="a50" column="a50" />
<result property="a51" column="a51" />
<result property="a52" column="a52" />
<result property="a53" column="a53" />
<result property="a54" column="a54" />
<result property="a55" column="a55" />
<result property="a56" column="a56" />
<result property="a57" column="a57" />
<result property="a58" column="a58" />
<result property="a59" column="a59" />
<result property="a60" column="a60" />
<result property="a61" column="a61" />
<result property="a62" column="a62" />
<result property="a63" column="a63" />
<result property="a64" column="a64" />
<result property="a65" column="a65" />
<result property="a66" column="a66" />
<result property="a67" column="a67" />
<result property="a68" column="a68" />
<result property="a69" column="a69" />
<result property="a70" column="a70" />
<result property="a71" column="a71" />
<result property="a72" column="a72" />
<result property="a73" column="a73" />
<result property="a74" column="a74" />
<result property="a75" column="a75" />
<result property="a76" column="a76" />
<result property="a77" column="a77" />
<result property="a78" column="a78" />
<result property="a79" column="a79" />
<result property="a80" column="a80" />
<result property="a81" column="a81" />
<result property="a82" column="a82" />
<result property="a83" column="a83" />
<result property="a84" column="a84" />
<result property="a85" column="a85" />
<result property="a86" column="a86" />
<result property="a87" column="a87" />
<result property="a88" column="a88" />
<result property="a89" column="a89" />
<result property="a90" column="a90" />
<result property="a91" column="a91" />
<result property="a92" column="a92" />
<result property="a93" column="a93" />
<result property="a94" column="a94" />
<result property="a95" column="a95" />
<result property="a96" column="a96" />
<result property="a97" column="a97" />
<result property="a98" column="a98" />
<result property="a99" column="a99" />
<result property="a100" column="a100" />
<result property="a101" column="a101" />
<result property="a102" column="a102" />
<result property="a103" column="a103" />
<result property="a104" column="a104" />
<result property="a105" column="a105" />
<result property="a106" column="a106" />
<result property="a107" column="a107" />
<result property="a108" column="a108" />
<result property="a109" column="a109" />
<result property="a110" column="a110" />
<result property="a111" column="a111" />
<result property="a112" column="a112" />
<result property="a113" column="a113" />
<result property="a114" column="a114" />
<result property="a115" column="a115" />
<result property="a116" column="a116" />
<result property="a117" column="a117" />
<result property="a118" column="a118" />
<result property="a119" column="a119" />
<result property="a120" column="a120" />
<result property="a121" column="a121" />
<result property="a122" column="a122" />
<result property="a123" column="a123" />
<result property="a124" column="a124" />
<result property="a125" column="a125" />
<result property="a126" column="a126" />
<result property="a127" column="a127" />
<result property="a128" column="a128" />
<result property="a129" column="a129" />
<result property="a130" column="a130" />
<result property="a131" column="a131" />
<result property="a132" column="a132" />
<result property="a133" column="a133" />
<result property="a134" column="a134" />
<result property="a135" column="a135" />
<result property="a136" column="a136" />
<result property="a137" column="a137" />
<result property="a138" column="a138" />
<result property="a139" column="a139" />
<result property="a140" column="a140" />
<result property="a141" column="a141" />
<result property="a142" column="a142" />
<result property="a143" column="a143" />
<result property="a144" column="a144" />
<result property="a145" column="a145" />
<result property="a146" column="a146" />
<result property="a147" column="a147" />
<result property="a148" column="a148" />
<result property="a149" column="a149" />
<result property="a150" column="a150" />
<result property="a151" column="a151" />
<result property="a152" column="a152" />
<result property="a153" column="a153" />
<result property="a154" column="a154" />
<result property="a155" column="a155" />
<result property="a156" column="a156" />
<result property="a157" column="a157" />
<result property="a158" column="a158" />
<result property="a159" column="a159" />
<result property="a160" column="a160" />
<result property="a161" column="a161" />
<result property="a162" column="a162" />
<result property="a163" column="a163" />
<result property="a164" column="a164" />
<result property="a165" column="a165" />
<result property="a166" column="a166" />
<result property="a167" column="a167" />
<result property="a168" column="a168" />
<result property="a169" column="a169" />
<result property="a170" column="a170" />
<result property="a171" column="a171" />
<result property="a172" column="a172" />
<result property="a173" column="a173" />
<result property="a174" column="a174" />
<result property="a175" column="a175" />
<result property="a176" column="a176" />
<result property="a177" column="a177" />
<result property="a178" column="a178" />
<result property="a179" column="a179" />
<result property="a180" column="a180" />
<result property="mineId" column="mine_id" />
<result property="importTime" column="import_time" />
</resultMap>
<insert id="insertBatch" parameterType="com.ruoyi.system.model.wages.dao.WagesDetailsExcelDAO" useGeneratedKeys="true" keyProperty="id"> <insert id="insertBatch">
insert into wages_details insert into wages_details (a1,
<trim prefix="(" suffix=")" suffixOverrides=","> a2,
<if test="a1 != null">a1,</if> a3,
<if test="a2 != null">a2,</if> a4,
<if test="a3 != null">a3,</if> a5,
<if test="a4 != null">a4,</if> a6,
<if test="a5 != null">a5,</if> a7,
<if test="a6 != null">a6,</if> a8,
<if test="a7 != null">a7,</if> a9,
<if test="a8 != null">a8,</if> a10,
<if test="a9 != null">a9,</if> a11,
<if test="a10 != null">a10,</if> a12,
<if test="a11 != null">a11,</if> a13,
<if test="a12 != null">a12,</if> a14,
<if test="a13 != null">a13,</if> a15,
<if test="a14 != null">a14,</if> a16,
<if test="a15 != null">a15,</if> a17,
<if test="a16 != null">a16,</if> a18,
<if test="a17 != null">a17,</if> a19,
<if test="a18 != null">a18,</if> a20,
<if test="a19 != null">a19,</if> a21,
<if test="a20 != null">a20,</if> a22,
<if test="a21 != null">a21,</if> a23,
<if test="a22 != null">a22,</if> a24,
<if test="a23 != null">a23,</if> a25,
<if test="a24 != null">a24,</if> a26,
<if test="a25 != null">a25,</if> a27,
<if test="a26 != null">a26,</if> a28,
<if test="a27 != null">a27,</if> a29,
<if test="a28 != null">a28,</if> a30,
<if test="a29 != null">a29,</if> a31,
<if test="a30 != null">a30,</if> a32,
<if test="a31 != null">a31,</if> a33,
<if test="a32 != null">a32,</if> a34,
<if test="a33 != null">a33,</if> a35,
<if test="a34 != null">a34,</if> a36,
<if test="a35 != null">a35,</if> a37,
<if test="a36 != null">a36,</if> a38,
<if test="a37 != null">a37,</if> a39,
<if test="a38 != null">a38,</if> a40,
<if test="a39 != null">a39,</if> a41,
<if test="a40 != null">a40,</if> a42,
<if test="a41 != null">a41,</if> a43,
<if test="a42 != null">a42,</if> a44,
<if test="a43 != null">a43,</if> a45,
<if test="a44 != null">a44,</if> a46,
<if test="a45 != null">a45,</if> a47,
<if test="a46 != null">a46,</if> a48,
<if test="a47 != null">a47,</if> a49,
<if test="a48 != null">a48,</if> a50,
<if test="a49 != null">a49,</if> a51,
<if test="a50 != null">a50,</if> a52,
<if test="a51 != null">a51,</if> a53,
<if test="a52 != null">a52,</if> a54,
<if test="a53 != null">a53,</if> a55,
<if test="a54 != null">a54,</if> a56,
<if test="a55 != null">a55,</if> a57,
<if test="a56 != null">a56,</if> a58,
<if test="a57 != null">a57,</if> a59,
<if test="a58 != null">a58,</if> a60,
<if test="a59 != null">a59,</if> a61,
<if test="a60 != null">a60,</if> a62,
<if test="a61 != null">a61,</if> a63,
<if test="a62 != null">a62,</if> a64,
<if test="a63 != null">a63,</if> a65,
<if test="a64 != null">a64,</if> a66,
<if test="a65 != null">a65,</if> a67,
<if test="a66 != null">a66,</if> a68,
<if test="a67 != null">a67,</if> a69,
<if test="a68 != null">a68,</if> a70,
<if test="a69 != null">a69,</if> a71,
<if test="a70 != null">a70,</if> a72,
<if test="a71 != null">a71,</if> a73,
<if test="a72 != null">a72,</if> a74,
<if test="a73 != null">a73,</if> a75,
<if test="a74 != null">a74,</if> a76,
<if test="a75 != null">a75,</if> a77,
<if test="a76 != null">a76,</if> a78,
<if test="a77 != null">a77,</if> a79,
<if test="a78 != null">a78,</if> a80,
<if test="a79 != null">a79,</if> a81,
<if test="a80 != null">a80,</if> a82,
<if test="a81 != null">a81,</if> a83,
<if test="a82 != null">a82,</if> a84,
<if test="a83 != null">a83,</if> a85,
<if test="a84 != null">a84,</if> a86,
<if test="a85 != null">a85,</if> a87,
<if test="a86 != null">a86,</if> a88,
<if test="a87 != null">a87,</if> a89,
<if test="a88 != null">a88,</if> a90,
<if test="a89 != null">a89,</if> a91,
<if test="a90 != null">a90,</if> a92,
<if test="a91 != null">a91,</if> a93,
<if test="a92 != null">a92,</if> a94,
<if test="a93 != null">a93,</if> a95,
<if test="a94 != null">a94,</if> a96,
<if test="a95 != null">a95,</if> a97,
<if test="a96 != null">a96,</if> a98,
<if test="a97 != null">a97,</if> a99,
<if test="a98 != null">a98,</if> a100,
<if test="a99 != null">a99,</if> a101,
<if test="a100 != null">a100,</if> a102,
<if test="a101 != null">a101,</if> a103,
<if test="a102 != null">a102,</if> a104,
<if test="a103 != null">a103,</if> a105,
<if test="a104 != null">a104,</if> a106,
<if test="a105 != null">a105,</if> a107,
<if test="a106 != null">a106,</if> a108,
<if test="a107 != null">a107,</if> a109,
<if test="a108 != null">a108,</if> a110,
<if test="a109 != null">a109,</if> a111,
<if test="a110 != null">a110,</if> a112,
<if test="a111 != null">a111,</if> a113,
<if test="a112 != null">a112,</if> a114,
<if test="a113 != null">a113,</if> a115,
<if test="a114 != null">a114,</if> a116,
<if test="a115 != null">a115,</if> a117,
<if test="a116 != null">a116,</if> a118,
<if test="a117 != null">a117,</if> a119,
<if test="a118 != null">a118,</if> a120,
<if test="a119 != null">a119,</if> a121,
<if test="a120 != null">a120,</if> a122,
<if test="a121 != null">a121,</if> a123,
<if test="a122 != null">a122,</if> a124,
<if test="a123 != null">a123,</if> a125,
<if test="a124 != null">a124,</if> a126,
<if test="a125 != null">a125,</if> a127,
<if test="a126 != null">a126,</if> a128,
<if test="a127 != null">a127,</if> a129,
<if test="a128 != null">a128,</if> a130,
<if test="a129 != null">a129,</if> a131,
<if test="a130 != null">a130,</if> a132,
<if test="a131 != null">a131,</if> a133,
<if test="a132 != null">a132,</if> a134,
<if test="a133 != null">a133,</if> a135,
<if test="a134 != null">a134,</if> a136,
<if test="a135 != null">a135,</if> a137,
<if test="a136 != null">a136,</if> a138,
<if test="a137 != null">a137,</if> a139,
<if test="a138 != null">a138,</if> a140,
<if test="a139 != null">a139,</if> a141,
<if test="a140 != null">a140,</if> a142,
<if test="a141 != null">a141,</if> a143,
<if test="a142 != null">a142,</if> a144,
<if test="a143 != null">a143,</if> a145,
<if test="a144 != null">a144,</if> a146,
<if test="a145 != null">a145,</if> a147,
<if test="a146 != null">a146,</if> a148,
<if test="a147 != null">a147,</if> a149,
<if test="a148 != null">a148,</if> a150,
<if test="a149 != null">a149,</if> a151,
<if test="a150 != null">a150,</if> a152,
<if test="a151 != null">a151,</if> a153,
<if test="a152 != null">a152,</if> a154,
<if test="a153 != null">a153,</if> a155,
<if test="a154 != null">a154,</if> a156,
<if test="a155 != null">a155,</if> a157,
<if test="a156 != null">a156,</if> a158,
<if test="a157 != null">a157,</if> a159,
<if test="a158 != null">a158,</if> a160,
<if test="a159 != null">a159,</if> a161,
<if test="a160 != null">a160,</if> a162,
<if test="a161 != null">a161,</if> a163,
<if test="a162 != null">a162,</if> a164,
<if test="a163 != null">a163,</if> a165,
<if test="a164 != null">a164,</if> a166,
<if test="a165 != null">a165,</if> a167,
<if test="a166 != null">a166,</if> a168,
<if test="a167 != null">a167,</if> a169,
<if test="a168 != null">a168,</if> a170,
<if test="a169 != null">a169,</if> a171,
<if test="a170 != null">a170,</if> a172,
<if test="a171 != null">a171,</if> a173,
<if test="a172 != null">a172,</if> a174,
<if test="a173 != null">a173,</if> a175,
<if test="a174 != null">a174,</if> a176,
<if test="a175 != null">a175,</if> a177,
<if test="a176 != null">a176,</if> a178,
<if test="a177 != null">a177,</if> a179,
<if test="a178 != null">a178,</if> a180,
<if test="a179 != null">a179,</if> mine_id,import_time,type)
<if test="a180 != null">a180,</if> values
<if test="mineId != null">mine_id,</if> <foreach collection="accList" item="list" separator=",">
<if test="importTime != null">import_time,</if> (#{list.a1},
</trim> #{list.a2},
<trim prefix="values (" suffix=")" suffixOverrides=","> #{list.a3},
<if test="a1 != null">#{a1},</if> #{list.a4},
<if test="a2 != null">#{a2},</if> #{list.a5},
<if test="a3 != null">#{a3},</if> #{list.a6},
<if test="a4 != null">#{a4},</if> #{list.a7},
<if test="a5 != null">#{a5},</if> #{list.a8},
<if test="a6 != null">#{a6},</if> #{list.a9},
<if test="a7 != null">#{a7},</if> #{list.a10},
<if test="a8 != null">#{a8},</if> #{list.a11},
<if test="a9 != null">#{a9},</if> #{list.a12},
<if test="a10 != null">#{a10},</if> #{list.a13},
<if test="a11 != null">#{a11},</if> #{list.a14},
<if test="a12 != null">#{a12},</if> #{list.a15},
<if test="a13 != null">#{a13},</if> #{list.a16},
<if test="a14 != null">#{a14},</if> #{list.a17},
<if test="a15 != null">#{a15},</if> #{list.a18},
<if test="a16 != null">#{a16},</if> #{list.a19},
<if test="a17 != null">#{a17},</if> #{list.a20},
<if test="a18 != null">#{a18},</if> #{list.a21},
<if test="a19 != null">#{a19},</if> #{list.a22},
<if test="a20 != null">#{a20},</if> #{list.a23},
<if test="a21 != null">#{a21},</if> #{list.a24},
<if test="a22 != null">#{a22},</if> #{list.a25},
<if test="a23 != null">#{a23},</if> #{list.a26},
<if test="a24 != null">#{a24},</if> #{list.a27},
<if test="a25 != null">#{a25},</if> #{list.a28},
<if test="a26 != null">#{a26},</if> #{list.a29},
<if test="a27 != null">#{a27},</if> #{list.a30},
<if test="a28 != null">#{a28},</if> #{list.a31},
<if test="a29 != null">#{a29},</if> #{list.a32},
<if test="a30 != null">#{a30},</if> #{list.a33},
<if test="a31 != null">#{a31},</if> #{list.a34},
<if test="a32 != null">#{a32},</if> #{list.a35},
<if test="a33 != null">#{a33},</if> #{list.a36},
<if test="a34 != null">#{a34},</if> #{list.a37},
<if test="a35 != null">#{a35},</if> #{list.a38},
<if test="a36 != null">#{a36},</if> #{list.a39},
<if test="a37 != null">#{a37},</if> #{list.a40},
<if test="a38 != null">#{a38},</if> #{list.a41},
<if test="a39 != null">#{a39},</if> #{list.a42},
<if test="a40 != null">#{a40},</if> #{list.a43},
<if test="a41 != null">#{a41},</if> #{list.a44},
<if test="a42 != null">#{a42},</if> #{list.a45},
<if test="a43 != null">#{a43},</if> #{list.a46},
<if test="a44 != null">#{a44},</if> #{list.a47},
<if test="a45 != null">#{a45},</if> #{list.a48},
<if test="a46 != null">#{a46},</if> #{list.a49},
<if test="a47 != null">#{a47},</if> #{list.a50},
<if test="a48 != null">#{a48},</if> #{list.a51},
<if test="a49 != null">#{a49},</if> #{list.a52},
<if test="a50 != null">#{a50},</if> #{list.a53},
<if test="a51 != null">#{a51},</if> #{list.a54},
<if test="a52 != null">#{a52},</if> #{list.a55},
<if test="a53 != null">#{a53},</if> #{list.a56},
<if test="a54 != null">#{a54},</if> #{list.a57},
<if test="a55 != null">#{a55},</if> #{list.a58},
<if test="a56 != null">#{a56},</if> #{list.a59},
<if test="a57 != null">#{a57},</if> #{list.a60},
<if test="a58 != null">#{a58},</if> #{list.a61},
<if test="a59 != null">#{a59},</if> #{list.a62},
<if test="a60 != null">#{a60},</if> #{list.a63},
<if test="a61 != null">#{a61},</if> #{list.a64},
<if test="a62 != null">#{a62},</if> #{list.a65},
<if test="a63 != null">#{a63},</if> #{list.a66},
<if test="a64 != null">#{a64},</if> #{list.a67},
<if test="a65 != null">#{a65},</if> #{list.a68},
<if test="a66 != null">#{a66},</if> #{list.a69},
<if test="a67 != null">#{a67},</if> #{list.a70},
<if test="a68 != null">#{a68},</if> #{list.a71},
<if test="a69 != null">#{a69},</if> #{list.a72},
<if test="a70 != null">#{a70},</if> #{list.a73},
<if test="a71 != null">#{a71},</if> #{list.a74},
<if test="a72 != null">#{a72},</if> #{list.a75},
<if test="a73 != null">#{a73},</if> #{list.a76},
<if test="a74 != null">#{a74},</if> #{list.a77},
<if test="a75 != null">#{a75},</if> #{list.a78},
<if test="a76 != null">#{a76},</if> #{list.a79},
<if test="a77 != null">#{a77},</if> #{list.a80},
<if test="a78 != null">#{a78},</if> #{list.a81},
<if test="a79 != null">#{a79},</if> #{list.a82},
<if test="a80 != null">#{a80},</if> #{list.a83},
<if test="a81 != null">#{a81},</if> #{list.a84},
<if test="a82 != null">#{a82},</if> #{list.a85},
<if test="a83 != null">#{a83},</if> #{list.a86},
<if test="a84 != null">#{a84},</if> #{list.a87},
<if test="a85 != null">#{a85},</if> #{list.a88},
<if test="a86 != null">#{a86},</if> #{list.a89},
<if test="a87 != null">#{a87},</if> #{list.a90},
<if test="a88 != null">#{a88},</if> #{list.a91},
<if test="a89 != null">#{a89},</if> #{list.a92},
<if test="a90 != null">#{a90},</if> #{list.a93},
<if test="a91 != null">#{a91},</if> #{list.a94},
<if test="a92 != null">#{a92},</if> #{list.a95},
<if test="a93 != null">#{a93},</if> #{list.a96},
<if test="a94 != null">#{a94},</if> #{list.a97},
<if test="a95 != null">#{a95},</if> #{list.a98},
<if test="a96 != null">#{a96},</if> #{list.a99},
<if test="a97 != null">#{a97},</if> #{list.a100},
<if test="a98 != null">#{a98},</if> #{list.a101},
<if test="a99 != null">#{a99},</if> #{list.a102},
<if test="a100 != null">#{a100},</if> #{list.a103},
<if test="a101 != null">#{a101},</if> #{list.a104},
<if test="a102 != null">#{a102},</if> #{list.a105},
<if test="a103 != null">#{a103},</if> #{list.a106},
<if test="a104 != null">#{a104},</if> #{list.a107},
<if test="a105 != null">#{a105},</if> #{list.a108},
<if test="a106 != null">#{a106},</if> #{list.a109},
<if test="a107 != null">#{a107},</if> #{list.a110},
<if test="a108 != null">#{a108},</if> #{list.a111},
<if test="a109 != null">#{a109},</if> #{list.a112},
<if test="a110 != null">#{a110},</if> #{list.a113},
<if test="a111 != null">#{a111},</if> #{list.a114},
<if test="a112 != null">#{a112},</if> #{list.a115},
<if test="a113 != null">#{a113},</if> #{list.a116},
<if test="a114 != null">#{a114},</if> #{list.a117},
<if test="a115 != null">#{a115},</if> #{list.a118},
<if test="a116 != null">#{a116},</if> #{list.a119},
<if test="a117 != null">#{a117},</if> #{list.a120},
<if test="a118 != null">#{a118},</if> #{list.a121},
<if test="a119 != null">#{a119},</if> #{list.a122},
<if test="a120 != null">#{a120},</if> #{list.a123},
<if test="a121 != null">#{a121},</if> #{list.a124},
<if test="a122 != null">#{a122},</if> #{list.a125},
<if test="a123 != null">#{a123},</if> #{list.a126},
<if test="a124 != null">#{a124},</if> #{list.a127},
<if test="a125 != null">#{a125},</if> #{list.a128},
<if test="a126 != null">#{a126},</if> #{list.a129},
<if test="a127 != null">#{a127},</if> #{list.a130},
<if test="a128 != null">#{a128},</if> #{list.a131},
<if test="a129 != null">#{a129},</if> #{list.a132},
<if test="a130 != null">#{a130},</if> #{list.a133},
<if test="a131 != null">#{a131},</if> #{list.a134},
<if test="a132 != null">#{a132},</if> #{list.a135},
<if test="a133 != null">#{a133},</if> #{list.a136},
<if test="a134 != null">#{a134},</if> #{list.a137},
<if test="a135 != null">#{a135},</if> #{list.a138},
<if test="a136 != null">#{a136},</if> #{list.a139},
<if test="a137 != null">#{a137},</if> #{list.a140},
<if test="a138 != null">#{a138},</if> #{list.a141},
<if test="a139 != null">#{a139},</if> #{list.a142},
<if test="a140 != null">#{a140},</if> #{list.a143},
<if test="a141 != null">#{a141},</if> #{list.a144},
<if test="a142 != null">#{a142},</if> #{list.a145},
<if test="a143 != null">#{a143},</if> #{list.a146},
<if test="a144 != null">#{a144},</if> #{list.a147},
<if test="a145 != null">#{a145},</if> #{list.a148},
<if test="a146 != null">#{a146},</if> #{list.a149},
<if test="a147 != null">#{a147},</if> #{list.a150},
<if test="a148 != null">#{a148},</if> #{list.a151},
<if test="a149 != null">#{a149},</if> #{list.a152},
<if test="a150 != null">#{a150},</if> #{list.a153},
<if test="a151 != null">#{a151},</if> #{list.a154},
<if test="a152 != null">#{a152},</if> #{list.a155},
<if test="a153 != null">#{a153},</if> #{list.a156},
<if test="a154 != null">#{a154},</if> #{list.a157},
<if test="a155 != null">#{a155},</if> #{list.a158},
<if test="a156 != null">#{a156},</if> #{list.a159},
<if test="a157 != null">#{a157},</if> #{list.a160},
<if test="a158 != null">#{a158},</if> #{list.a161},
<if test="a159 != null">#{a159},</if> #{list.a162},
<if test="a160 != null">#{a160},</if> #{list.a163},
<if test="a161 != null">#{a161},</if> #{list.a164},
<if test="a162 != null">#{a162},</if> #{list.a165},
<if test="a163 != null">#{a163},</if> #{list.a166},
<if test="a164 != null">#{a164},</if> #{list.a167},
<if test="a165 != null">#{a165},</if> #{list.a168},
<if test="a166 != null">#{a166},</if> #{list.a169},
<if test="a167 != null">#{a167},</if> #{list.a170},
<if test="a168 != null">#{a168},</if> #{list.a171},
<if test="a169 != null">#{a169},</if> #{list.a172},
<if test="a170 != null">#{a170},</if> #{list.a173},
<if test="a171 != null">#{a171},</if> #{list.a174},
<if test="a172 != null">#{a172},</if> #{list.a175},
<if test="a173 != null">#{a173},</if> #{list.a176},
<if test="a174 != null">#{a174},</if> #{list.a177},
<if test="a175 != null">#{a175},</if> #{list.a178},
<if test="a176 != null">#{a176},</if> #{list.a179},
<if test="a177 != null">#{a177},</if> #{list.a180},
<if test="a178 != null">#{a178},</if> #{mineId},#{date},#{list.type})
<if test="a179 != null">#{a179},</if> </foreach>
<if test="a180 != null">#{a180},</if>
<if test="mineId != null">#{mineId},</if>
<if test="importTime != null">#{importTime},</if>
</trim>
</insert> </insert>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment