Commit 2b2031e6 by jiang'yun

修改

parent f6c423f4
...@@ -10,10 +10,8 @@ import java.util.List; ...@@ -10,10 +10,8 @@ import java.util.List;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import com.ruoyi.common.utils.StringUtils; import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.project.zjsgfa.domain.SjJsjg; import com.ruoyi.project.zjsgfa.domain.*;
import com.ruoyi.project.zjsgfa.domain.SjJygjInfo; import com.ruoyi.project.zjsgfa.mapper.*;
import com.ruoyi.project.zjsgfa.mapper.SjJsjgMapper;
import com.ruoyi.project.zjsgfa.mapper.SjJygjInfoMapper;
import org.apache.poi.ss.usermodel.*; import org.apache.poi.ss.usermodel.*;
import org.apache.poi.xssf.usermodel.XSSFRow; import org.apache.poi.xssf.usermodel.XSSFRow;
import org.apache.poi.xssf.usermodel.XSSFSheet; import org.apache.poi.xssf.usermodel.XSSFSheet;
...@@ -24,7 +22,6 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -24,7 +22,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import com.ruoyi.framework.aspectj.lang.annotation.Log; import com.ruoyi.framework.aspectj.lang.annotation.Log;
import com.ruoyi.framework.aspectj.lang.enums.BusinessType; import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.project.zjsgfa.domain.SjDjjc;
import com.ruoyi.project.zjsgfa.service.ISjDjjcService; import com.ruoyi.project.zjsgfa.service.ISjDjjcService;
import com.ruoyi.framework.web.controller.BaseController; import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult; import com.ruoyi.framework.web.domain.AjaxResult;
...@@ -47,11 +44,50 @@ public class SjDjjcController extends BaseController ...@@ -47,11 +44,50 @@ public class SjDjjcController extends BaseController
@Autowired @Autowired
private SjDzfcMapper sjDzfcMapper;
@Autowired
private SjJsjgMapper sjJsjgMapper; private SjJsjgMapper sjJsjgMapper;
@Autowired @Autowired
private SjJygjInfoMapper sjJygjInfoMapper; private SjJygjInfoMapper sjJygjInfoMapper;
@Autowired
private SjJygjGdfdcsMapper sjJygjGdfdcsMapper;
@Autowired
private SjJygjGdsjgdcsMapper sjJygjGdsjgdcsMapper;
@Autowired
private SjZjyFdsjMapper sjZjyFdsjMapper;
@Autowired
private SjZjyCljlMapper sjZjyCljlMapper;
@Autowired
private SjZjyFdxnbMapper sjZjyFdxnbMapper;
@Autowired
private SjTgTgzMapper sjTgTgzMapper;
@Autowired
private SjTgTgxnsjMapper sjTgTgxnsjMapper;
@Autowired
private SjTgTgqdjhMapper sjTgTgqdjhMapper;
@Autowired
private SjZlyqMapper sjZlyqMapper;
@Autowired
private SjZlyqZbyqMapper sjZlyqZbyqMapper;
@Autowired
private SjZlyqXxMapper sjZlyqXxMapper;
/** /**
* 查询设计信息-井基础信息列表 * 查询设计信息-井基础信息列表
*/ */
...@@ -270,10 +306,82 @@ public class SjDjjcController extends BaseController ...@@ -270,10 +306,82 @@ public class SjDjjcController extends BaseController
info.setZjd(zjd); info.setZjd(zjd);
sjDjjcService.updateSjDjjc(info); sjDjjcService.updateSjDjjc(info);
} }
//地质分层---------------------------------------------------
sheet = workbook.getSheetAt(1);
lastRowNum = sheet.getLastRowNum();
List<SjDzfc> sjDzfcList =new ArrayList<>();
XSSFRow row2 =sheet.getRow(1);
// String sjjh=new DataFormatter().formatCellValue( row2.getCell(5));
String yjjh1=new DataFormatter().formatCellValue( row2.getCell(9));
String yjjh2=new DataFormatter().formatCellValue( row2.getCell(13));
for(int i=4 ; i<=lastRowNum;i++){
XSSFRow row = sheet.getRow(i);
SjDzfc sjDzfc =new SjDzfc();
sjDzfc.setSjjh(jh);
sjDzfc.setYjjh1(yjjh1);
sjDzfc.setYjjh2(yjjh2);
String dcJ=new DataFormatter().formatCellValue( row.getCell(0));
sjDzfc.setDcJ(dcJ);
String dcX=new DataFormatter().formatCellValue( row.getCell(1));
sjDzfc.setDcX(dcX);
String dcT=new DataFormatter().formatCellValue( row.getCell(2));
sjDzfc.setDcT(dcT);
String dcZ=new DataFormatter().formatCellValue( row.getCell(3));
sjDzfc.setDcZ(dcZ);
String dcD=new DataFormatter().formatCellValue( row.getCell(4));
sjDzfc.setDcD(dcD);
String sjdcs=new DataFormatter().formatCellValue( row.getCell(5));
sjDzfc.setSjdcs(Double.parseDouble(sjdcs));
String sjjcgx=new DataFormatter().formatCellValue( row.getCell(6));
sjDzfc.setSjjcgx(sjjcgx);
String sjhd=new DataFormatter().formatCellValue( row.getCell(7));
sjDzfc.setSjhd(Double.parseDouble(sjhd));
String sjddsd=new DataFormatter().formatCellValue( row.getCell(8));
sjDzfc.setSjddsd(Double.parseDouble(sjddsd));
String yjdcs1=new DataFormatter().formatCellValue( row.getCell(9));
sjDzfc.setYjdcs1(Double.parseDouble(yjdcs1));
String yjjcgx1=new DataFormatter().formatCellValue( row.getCell(10));
sjDzfc.setYjjcgx1(yjjcgx1);
String yjhyjd1=new DataFormatter().formatCellValue( row.getCell(11));
sjDzfc.setYjhyjd1(yjhyjd1);
String yjddsd1=new DataFormatter().formatCellValue( row.getCell(12));
sjDzfc.setYjddsd1(Double.parseDouble(yjddsd1));
String yjdcs2=new DataFormatter().formatCellValue( row.getCell(13));
sjDzfc.setYjdcs2(Double.parseDouble(yjdcs2));
String yjjcgx2=new DataFormatter().formatCellValue( row.getCell(14));
sjDzfc.setYjjcgx2(yjjcgx2);
String yjhyjd2=new DataFormatter().formatCellValue( row.getCell(15));
sjDzfc.setYjhyjd2(yjhyjd2);
String yjddsd2=new DataFormatter().formatCellValue( row.getCell(16));
sjDzfc.setYjddsd2(Double.parseDouble(yjddsd2));
sjDzfcList.add(sjDzfc);
}
if(sjDzfcList.size()>0){
sjDzfcMapper.deleteSjDzfcByJh(jh);
sjDzfcMapper.insertSjDzfcBatch(sjDzfcList);
}
//地质分层 end--------------------------------------------------
...@@ -349,15 +457,508 @@ public class SjDjjcController extends BaseController ...@@ -349,15 +457,508 @@ public class SjDjjcController extends BaseController
//井眼轨迹 --------------------------------------------------- //井眼轨迹 ---------------------------------------------------
sheet = workbook.getSheetAt(3); sheet = workbook.getSheetAt(3);
lastRowNum = sheet.getLastRowNum(); lastRowNum = sheet.getLastRowNum();
for(int i=0;i<=1;i++){ XSSFRow row = sheet.getRow(0);
XSSFRow row = sheet.getRow(i);
String kc=new DataFormatter().formatCellValue(row.getCell(1)); SjJygjInfo info =new SjJygjInfo();
info.setJh(jh);
String gdlx=new DataFormatter().formatCellValue(row.getCell(1));
if(StringUtils.isEmpty(gdlx)){
return AjaxResult.error("井眼轨迹表第"+(1)+"行轨道类型不能为空");
}
info.setGdlx(gdlx);
String jkhzb=new DataFormatter().formatCellValue(row.getCell(3));
if(StringUtils.isEmpty(jkhzb)){
return AjaxResult.error("井眼轨迹表第"+(1)+"行井口横坐标不能为空");
}
info.setJkhzb(Double.parseDouble(jkhzb));
String jkzzb=new DataFormatter().formatCellValue(row.getCell(5));
if(StringUtils.isEmpty(jkzzb)){
return AjaxResult.error("井眼轨迹表第"+(1)+"行井口纵坐标不能为空");
}
info.setJkzzb(Double.parseDouble(jkzzb));
String bdhzb=new DataFormatter().formatCellValue(row.getCell(7));
if(StringUtils.isEmpty(bdhzb)){
return AjaxResult.error("井眼轨迹表第"+(1)+"行靶点横坐标不能为空");
}
info.setBdhzb(Double.parseDouble(bdhzb));
String bdzzb=new DataFormatter().formatCellValue(row.getCell(9));
if(StringUtils.isEmpty(bdzzb)){
return AjaxResult.error("井眼轨迹表第"+(1)+"行靶点纵坐标不能为空");
}
info.setBdzzb(Double.parseDouble(bdzzb));
row = sheet.getRow(1);
String cs=new DataFormatter().formatCellValue(row.getCell(1));
if(StringUtils.isEmpty(cs)){
return AjaxResult.error("井眼轨迹表第"+(2)+"行垂深不能为空");
}
info.setCs(Double.parseDouble(cs));
String bhj=new DataFormatter().formatCellValue(row.getCell(3));
if(StringUtils.isEmpty(bhj)){
return AjaxResult.error("井眼轨迹表第"+(2)+"行闭合距不能为空");
}
info.setBhj(Double.parseDouble(bhj));
String bhfx=new DataFormatter().formatCellValue(row.getCell(5));
if(StringUtils.isEmpty(bhfx)){
return AjaxResult.error("井眼轨迹表第"+(2)+"行闭合方向不能为空");
}
info.setBhfx(Double.parseDouble(bhfx));
String bbj=new DataFormatter().formatCellValue(row.getCell(7));
if(StringUtils.isEmpty(bbj)){
return AjaxResult.error("井眼轨迹表第"+(2)+"行靶半径不能为空");
}
info.setBbj(Double.parseDouble(bbj));
sjJygjInfoMapper.insertSjJygjInfo(info);
//井眼轨迹 基础数据 end---------------------------------------------------
//井眼轨迹 轨道分段参数---------------------------------------------------
// sheet = workbook.getSheetAt(3);
// lastRowNum = sheet.getLastRowNum();
List<SjJygjGdfdcs> sjJygjGdfdcsList=new ArrayList<>();
for(int i=5; i<=lastRowNum;i++){
row = sheet.getRow(i);
SjJygjGdfdcs gdfdcs =new SjJygjGdfdcs();
gdfdcs.setJh(jh);
String js=new DataFormatter().formatCellValue(row.getCell(0));
if(StringUtils.isEmpty(js)){
continue;
}
gdfdcs.setJs(Double.parseDouble(js));
String jx=new DataFormatter().formatCellValue(row.getCell(1));
gdfdcs.setJx(Double.parseDouble(jx));
String fw=new DataFormatter().formatCellValue(row.getCell(2));
gdfdcs.setFw(Double.parseDouble(fw));
cs=new DataFormatter().formatCellValue(row.getCell(3));
gdfdcs.setCs(Double.parseDouble(cs));
String spwy=new DataFormatter().formatCellValue(row.getCell(4));
gdfdcs.setSpwy(Double.parseDouble(spwy));
String nbwy=new DataFormatter().formatCellValue(row.getCell(5));
gdfdcs.setNbwy(Double.parseDouble(nbwy));
String dxwy=new DataFormatter().formatCellValue(row.getCell(6));
gdfdcs.setDxwy(Double.parseDouble(dxwy));
String qjbhl=new DataFormatter().formatCellValue(row.getCell(7));
gdfdcs.setQjbhl(Double.parseDouble(qjbhl));
String gjm=new DataFormatter().formatCellValue(row.getCell(8));
gdfdcs.setGjm(Double.parseDouble(gjm));
String bd=new DataFormatter().formatCellValue(row.getCell(9));
gdfdcs.setBd(bd);
sjJygjGdfdcsList.add(gdfdcs);
} }
if(sjJygjGdfdcsList.size()>0){
//先删除数据
sjJygjGdfdcsMapper.deleteSjJygjGdfdcsByJh(jh);
//执行插入
sjJygjGdfdcsMapper.insertSjJygjGdfdcsBatch(sjJygjGdfdcsList);
}
//井眼轨迹 轨道分段参数 end---------------------------------------------------
//井眼轨迹 轨道设计各点参数---------------------------------------------------
List<SjJygjGdsjgdcs> sjJygjGdsjgdcsList=new ArrayList<>();
for(int i=3; i<=lastRowNum;i++){
row = sheet.getRow(i);
SjJygjGdsjgdcs gdfdcs =new SjJygjGdsjgdcs();
gdfdcs.setJh(jh);
int ks=11;
String js=new DataFormatter().formatCellValue(row.getCell(ks));
if(StringUtils.isEmpty(js)){
continue;
}
gdfdcs.setJs(Double.parseDouble(js));
String jx=new DataFormatter().formatCellValue(row.getCell(ks+1));
gdfdcs.setJx(Double.parseDouble(jx));
String fw=new DataFormatter().formatCellValue(row.getCell(ks+2));
gdfdcs.setFw(Double.parseDouble(fw));
String bhfw=new DataFormatter().formatCellValue(row.getCell(ks+3));
gdfdcs.setBhfw(Double.parseDouble(bhfw));
cs=new DataFormatter().formatCellValue(row.getCell(ks+4));
gdfdcs.setCs(Double.parseDouble(cs));
bhj=new DataFormatter().formatCellValue(row.getCell(ks+5));
gdfdcs.setBhj(Double.parseDouble(bhj));
String nbwy=new DataFormatter().formatCellValue(row.getCell(ks+6));
gdfdcs.setNbwy(Double.parseDouble(nbwy));
String dxwy=new DataFormatter().formatCellValue(row.getCell(ks+7));
gdfdcs.setDxwy(Double.parseDouble(dxwy));
String zxl=new DataFormatter().formatCellValue(row.getCell(ks+8));
gdfdcs.setZxl(Double.parseDouble(zxl));
String fwbhl=new DataFormatter().formatCellValue(row.getCell(ks+9));
gdfdcs.setFwbhl(Double.parseDouble(fwbhl));
String qjbhl=new DataFormatter().formatCellValue(row.getCell(ks+10));
gdfdcs.setQjbhl(Double.parseDouble(qjbhl));
String gjm=new DataFormatter().formatCellValue(row.getCell(ks+11));
gdfdcs.setGjm(Double.parseDouble(gjm));
sjJygjGdsjgdcsList.add(gdfdcs);
}
if(sjJygjGdsjgdcsList.size()>0){
sjJygjGdsjgdcsMapper.deleteSjJygjGdsjgdcsByJh(jh);
sjJygjGdsjgdcsMapper.insertSjJygjGdsjgdcsBatch(sjJygjGdsjgdcsList);
}
//井眼轨迹 轨道设计各点参数 end---------------------------------------------------
//钻井液 分段钻井液设计---------------------------------------------------
sheet = workbook.getSheetAt(4);
lastRowNum = sheet.getLastRowNum();
List<SjZjyFdsj> sjZjyFdsjList =new ArrayList<>();
for(int i=2; i<=lastRowNum;i++){
row = sheet.getRow(i);
SjZjyFdsj fdsj =new SjZjyFdsj();
fdsj.setJh(jh);
String kc=new DataFormatter().formatCellValue(row.getCell(0));
if(StringUtils.isEmpty(kc)){
continue;
}
fdsj.setKc(kc);
String jd=new DataFormatter().formatCellValue(row.getCell(1));
fdsj.setJd(jd);
String zjytx=new DataFormatter().formatCellValue(row.getCell(2));
fdsj.setZjytx(zjytx);
sjZjyFdsjList.add(fdsj);
}
if(sjZjyFdsjList.size()>0){
sjZjyFdsjMapper.deleteSjZjyFdsjByJh(jh);
sjZjyFdsjMapper.insertSjZjyFdsjBatch(sjZjyFdsjList);
}
//钻井液 分段钻井液设计 end ---------------------------------------------------
//钻井液 加量 ---------------------------------------------------
List<SjZjyCljl> sjZjyCljlList =new ArrayList<>();
for(int i=2; i<=lastRowNum;i++){
row = sheet.getRow(i);
SjZjyCljl cljl =new SjZjyCljl();
cljl.setJh(jh);
int ks =5;
String clmc=new DataFormatter().formatCellValue(row.getCell(ks));
if(StringUtils.isEmpty(clmc)){
continue;
}
cljl.setClmc(clmc);
String ykjl=new DataFormatter().formatCellValue(row.getCell(ks+1));
cljl.setYkjl(ykjl);
String ekjl=new DataFormatter().formatCellValue(row.getCell(ks+2));
cljl.setEkjl(ekjl);
String skjl=new DataFormatter().formatCellValue(row.getCell(ks+3));
cljl.setSkjl(skjl);
String sikjl=new DataFormatter().formatCellValue(row.getCell(ks+4));
cljl.setSikjl(sikjl);
String wkjl=new DataFormatter().formatCellValue(row.getCell(ks+5));
cljl.setWkjl(wkjl);
sjZjyCljlList.add(cljl);
}
if(sjZjyCljlList.size()>0){
sjZjyCljlMapper.deleteSjZjyCljlByJh(jh);
sjZjyCljlMapper.insertSjZjyCljlBatch(sjZjyCljlList);
}
//钻井液 加量 end ---------------------------------------------------
//钻井液 分段钻井液性能设计表 ---------------------------------------------------
List<SjZjyFdxnb> sjZjyFdxnbList =new ArrayList<>();
for(int i=2; i<=lastRowNum;i++){
row = sheet.getRow(i);
SjZjyFdxnb fdxnb =new SjZjyFdxnb();
fdxnb.setJh(jh);
int ks =12;
String jd=new DataFormatter().formatCellValue(row.getCell(ks));
if(StringUtils.isEmpty(jd)){
continue;
}
fdxnb.setJd(jd);
String md=new DataFormatter().formatCellValue(row.getCell(ks+1));
fdxnb.setMd(md);
String msldnd=new DataFormatter().formatCellValue(row.getCell(ks+2));
fdxnb.setMsldnd(msldnd);
String apilsl=new DataFormatter().formatCellValue(row.getCell(ks+3));
fdxnb.setApilsl(apilsl);
String apinb=new DataFormatter().formatCellValue(row.getCell(ks+4));
fdxnb.setApinb(apinb);
String jql=new DataFormatter().formatCellValue(row.getCell(ks+5));
fdxnb.setJql(jql);
String ph=new DataFormatter().formatCellValue(row.getCell(ks+6));
fdxnb.setPh(ph);
String hsl=new DataFormatter().formatCellValue(row.getCell(ks+7));
fdxnb.setHsl(hsl);
String zgh=new DataFormatter().formatCellValue(row.getCell(ks+8));
fdxnb.setZgh(zgh);
String mzxs=new DataFormatter().formatCellValue(row.getCell(ks+9));
fdxnb.setMzxs(mzxs);
String dql=new DataFormatter().formatCellValue(row.getCell(ks+10));
fdxnb.setDql(dql);
String sxnd=new DataFormatter().formatCellValue(row.getCell(ks+11));
fdxnb.setSxnd(sxnd);
sjZjyFdxnbList.add(fdxnb);
}
if(sjZjyFdxnbList.size()>0){
sjZjyFdxnbMapper.deleteSjZjyFdxnbByJh(jh);
sjZjyFdxnbMapper.insertSjZjyFdxnbBatch(sjZjyFdxnbList);
}
//钻井液 分段钻井液性能设计表 end---------------------------------------------------
sheet = workbook.getSheetAt(5);
lastRowNum = sheet.getLastRowNum();
//套管 套管柱数据表---------------------------------------------------
List<SjTgTgz> sjTgTgzList =new ArrayList<>();
for(int i=4; i<=lastRowNum;i++){
row = sheet.getRow(i);
SjTgTgz tgTgz =new SjTgTgz();
tgTgz.setJh(jh);
String kc=new DataFormatter().formatCellValue(row.getCell(0));
if(StringUtils.isEmpty(kc)){
continue;
}
tgTgz.setKc(kc);
String jd=new DataFormatter().formatCellValue(row.getCell(1));
tgTgz.setJd(jd);
String wj=new DataFormatter().formatCellValue(row.getCell(2));
tgTgz.setWj(Double.parseDouble(wj));
String gj=new DataFormatter().formatCellValue(row.getCell(3));
tgTgz.setGj(gj);
String bh=new DataFormatter().formatCellValue(row.getCell(4));
tgTgz.setBh(Double.parseDouble(bh));
String kx=new DataFormatter().formatCellValue(row.getCell(5));
tgTgz.setKx(kx);
String zjsknj=new DataFormatter().formatCellValue(row.getCell(6));
tgTgz.setZjsknj(Double.parseDouble(zjsknj));
String cd=new DataFormatter().formatCellValue(row.getCell(7));
tgTgz.setCd(Double.parseDouble(cd));
String zjymd=new DataFormatter().formatCellValue(row.getCell(8));
tgTgz.setZjymd(Double.parseDouble(zjymd));
sjTgTgzList.add(tgTgz);
}
if(sjTgTgzList.size()>0){
sjTgTgzMapper.deleteSjTgTgzByJh(jh);
sjTgTgzMapper.insertSjTgTgzBatch(sjTgTgzList);
}
//套管 套管柱数据表end---------------------------------------------------
//套管 套管性能数据---------------------------------------------------
List<SjTgTgxnsj> sjTgTgxnsjList =new ArrayList<>();
for(int i=4; i<=lastRowNum;i++){
row = sheet.getRow(i);
SjTgTgxnsj tgTgz =new SjTgTgxnsj();
tgTgz.setJh(jh);
int ks =11;
String wj=new DataFormatter().formatCellValue(row.getCell(ks));
if(StringUtils.isEmpty(wj)){
continue;
}
tgTgz.setWj(Double.parseDouble(wj));
String gj=new DataFormatter().formatCellValue(row.getCell(ks+1));
tgTgz.setGj(gj);
String bh=new DataFormatter().formatCellValue(row.getCell(ks+2));
tgTgz.setBh(Double.parseDouble(bh));
String kx=new DataFormatter().formatCellValue(row.getCell(ks+3));
tgTgz.setKx(kx);
String mmzl=new DataFormatter().formatCellValue(row.getCell(ks+4));
tgTgz.setMmzl(Double.parseDouble(mmzl));
String jgwj=new DataFormatter().formatCellValue(row.getCell(ks+5));
tgTgz.setJgwj(Double.parseDouble(jgwj));
String klqd=new DataFormatter().formatCellValue(row.getCell(ks+6));
tgTgz.setKlqd(Double.parseDouble(klqd));
String kjqd=new DataFormatter().formatCellValue(row.getCell(ks+7));
tgTgz.setKjqd(Double.parseDouble(kjqd));
String knyqd=new DataFormatter().formatCellValue(row.getCell(ks+8));
tgTgz.setKnyqd(Double.parseDouble(knyqd));
sjTgTgxnsjList.add(tgTgz);
}
if(sjTgTgxnsjList.size()>0){
sjTgTgxnsjMapper.deleteSjTgTgxnsjByJh(jh);
sjTgTgxnsjMapper.insertSjTgTgxnsjBatch(sjTgTgxnsjList);
}
//套管 套管性能数据end---------------------------------------------------
//套管 套管柱强度校核---------------------------------------------------
List<SjTgTgqdjh> sjTgTgqdjhList =new ArrayList<>();
for(int i=4; i<=lastRowNum;i++){
row = sheet.getRow(i);
SjTgTgqdjh tgTgz =new SjTgTgqdjh();
tgTgz.setJh(jh);
int ks =22;
String kc=new DataFormatter().formatCellValue(row.getCell(ks));
if(StringUtils.isEmpty(kc)){
continue;
}
tgTgz.setKc(kc);
String jd=new DataFormatter().formatCellValue(row.getCell(ks+1));
tgTgz.setJd(jd);
String mmzl=new DataFormatter().formatCellValue(row.getCell(ks+2));
tgTgz.setMmzl(Double.parseDouble(mmzl));
String djz=new DataFormatter().formatCellValue(row.getCell(ks+3));
tgTgz.setDjz(Double.parseDouble(djz));
String ljz=new DataFormatter().formatCellValue(row.getCell(ks+4));
tgTgz.setLjz(Double.parseDouble(ljz));
String zdzhkwj=new DataFormatter().formatCellValue(row.getCell(ks+5));
tgTgz.setZdzhkwj(Double.parseDouble(zdzhkwj));
String aqxskwj=new DataFormatter().formatCellValue(row.getCell(ks+6));
tgTgz.setAqxskwj(Double.parseDouble(aqxskwj));
String zdzhkny=new DataFormatter().formatCellValue(row.getCell(ks+7));
tgTgz.setZdzhkny(Double.parseDouble(zdzhkny));
String aqxskny=new DataFormatter().formatCellValue(row.getCell(ks+8));
tgTgz.setAqxskny(Double.parseDouble(aqxskny));
String zdzhkl=new DataFormatter().formatCellValue(row.getCell(ks+9));
tgTgz.setZdzhkl(Double.parseDouble(zdzhkl));
String aqxskl=new DataFormatter().formatCellValue(row.getCell(ks+10));
tgTgz.setAqxskl(Double.parseDouble(aqxskl));
sjTgTgqdjhList.add(tgTgz);
}
if(sjTgTgqdjhList.size()>0){
sjTgTgqdjhMapper.deleteSjTgTgqdjhByJh(jh);
sjTgTgqdjhMapper.insertSjTgTgqdjhBatch(sjTgTgqdjhList);
}
//套管 套管柱强度校核end---------------------------------------------------
//质量要求 井身质量要求---------------------------------------------------
sheet = workbook.getSheetAt(6);
lastRowNum = sheet.getLastRowNum();
List<SjZlyq> sjZlyqList =new ArrayList<>();
for(int i=2;i<=lastRowNum;i++){
row = sheet.getRow(i);
SjZlyq sjZlyq =new SjZlyq();
sjZlyq.setJh(jh);
String jd=new DataFormatter().formatCellValue(row.getCell(0));
if(StringUtils.isEmpty(jd)){
continue;
}
sjZlyq.setJd(jd);
String jxj=new DataFormatter().formatCellValue(row.getCell(1));
sjZlyq.setJxj(Double.parseDouble(jxj));
String qjbhl=new DataFormatter().formatCellValue(row.getCell(2));
sjZlyq.setQjbhl(Double.parseDouble(qjbhl));
sjZlyqList.add(sjZlyq);
}
if(sjZlyqList.size()>0){
sjZlyqMapper.deleteSjZlyqByJh(jh);
sjZlyqMapper.insertSjZlyqBatch(sjZlyqList);
}
//质量要求 中靶要求-定向井---------------------------------------------------
List<SjZlyqZbyq> sjZlyqZbyqList =new ArrayList<>();
for(int i=3;i<=lastRowNum;i++){
row = sheet.getRow(i);
SjZlyqZbyq sjZlyq =new SjZlyqZbyq();
sjZlyq.setJh(jh);
String bd=new DataFormatter().formatCellValue(row.getCell(4));
if(StringUtils.isEmpty(bd)){
continue;
}
sjZlyq.setBd(bd);
bbj=new DataFormatter().formatCellValue(row.getCell(5));
sjZlyq.setBbj(Double.parseDouble(bbj));
String bz=new DataFormatter().formatCellValue(row.getCell(6));
sjZlyq.setBz(bz);
sjZlyqZbyqList.add(sjZlyq);
}
if(sjZlyqZbyqList.size()>0){
sjZlyqZbyqMapper.deleteSjZlyqZbyqByJh(jh);
sjZlyqZbyqMapper.insertSjZlyqZbyqBatch(sjZlyqList);
}
//质量要求 中靶要求-定向井end---------------------------------------------------
//质量要求 质量要求---------------------------------------------------
List<SjZlyqXx> sjZlyqXxList =new ArrayList<>();
for(int i=3;i<=lastRowNum;i++){
row = sheet.getRow(i);
SjZlyqXx sjZlyq =new SjZlyqXx();
sjZlyq.setJh(jh);
String dxj=new DataFormatter().formatCellValue(row.getCell(8));
if(StringUtils.isEmpty(dxj)){
continue;
}
sjZlyq.setDxjzlyq(dxj);
String gjzlyq=new DataFormatter().formatCellValue(row.getCell(9));
sjZlyq.setGjzlyq(gjzlyq);
String wcjjkzlyq=new DataFormatter().formatCellValue(row.getCell(10));
sjZlyq.setWcjjkzlyq(wcjjkzlyq);
String yqcwrpdyq=new DataFormatter().formatCellValue(row.getCell(11));
sjZlyq.setYqcwrpdyq(yqcwrpdyq);
sjZlyqXxList.add(sjZlyq);
}
if(sjZlyqXxList.size()>0){
sjZlyqXxMapper.deleteSjZlyqXxByJh(jh);
sjZlyqXxMapper.insertSjZlyqXxBatch(sjZlyqXxList);
}
//质量要求 质量要求end---------------------------------------------------
} catch (IOException e) { } catch (IOException e) {
e.getMessage(); e.getMessage();
......
...@@ -62,4 +62,9 @@ public interface SjDzfcMapper ...@@ -62,4 +62,9 @@ public interface SjDzfcMapper
* @return 结果 * @return 结果
*/ */
public int deleteSjDzfcByIds(Long[] ids); public int deleteSjDzfcByIds(Long[] ids);
int deleteSjDzfcByJh(String jh);
int insertSjDzfcBatch(List<SjDzfc> sjDzfcList);
} }
...@@ -58,4 +58,10 @@ public interface SjJygjGdfdcsMapper ...@@ -58,4 +58,10 @@ public interface SjJygjGdfdcsMapper
* @return 结果 * @return 结果
*/ */
public int deleteSjJygjGdfdcsByIds(Long[] ids); public int deleteSjJygjGdfdcsByIds(Long[] ids);
int deleteSjJygjGdfdcsByJh(String jh);
int insertSjJygjGdfdcsBatch(List<SjJygjGdfdcs> sjJygjGdfdcsList);
} }
...@@ -58,4 +58,9 @@ public interface SjJygjGdsjgdcsMapper ...@@ -58,4 +58,9 @@ public interface SjJygjGdsjgdcsMapper
* @return 结果 * @return 结果
*/ */
public int deleteSjJygjGdsjgdcsByIds(Long[] ids); public int deleteSjJygjGdsjgdcsByIds(Long[] ids);
int deleteSjJygjGdsjgdcsByJh(String jh);
int insertSjJygjGdsjgdcsBatch(List<SjJygjGdsjgdcs> sjJygjGdsjgdcsList);
} }
...@@ -58,4 +58,9 @@ public interface SjTgTgqdjhMapper ...@@ -58,4 +58,9 @@ public interface SjTgTgqdjhMapper
* @return 结果 * @return 结果
*/ */
public int deleteSjTgTgqdjhByIds(Long[] ids); public int deleteSjTgTgqdjhByIds(Long[] ids);
int deleteSjTgTgqdjhByJh(String jh);
int insertSjTgTgqdjhBatch(List<SjTgTgqdjh> sjTgTgqdjhList);
} }
...@@ -58,4 +58,10 @@ public interface SjTgTgxnsjMapper ...@@ -58,4 +58,10 @@ public interface SjTgTgxnsjMapper
* @return 结果 * @return 结果
*/ */
public int deleteSjTgTgxnsjByIds(Long[] ids); public int deleteSjTgTgxnsjByIds(Long[] ids);
int deleteSjTgTgxnsjByJh(String jh);
int insertSjTgTgxnsjBatch(List<SjTgTgxnsj> sjTgTgxnsjList);
} }
...@@ -58,4 +58,9 @@ public interface SjTgTgzMapper ...@@ -58,4 +58,9 @@ public interface SjTgTgzMapper
* @return 结果 * @return 结果
*/ */
public int deleteSjTgTgzByIds(Long[] ids); public int deleteSjTgTgzByIds(Long[] ids);
int deleteSjTgTgzByJh(String jh);
int insertSjTgTgzBatch(List<SjTgTgz> sjTgTgzList);
} }
...@@ -58,4 +58,9 @@ public interface SjZjyCljlMapper ...@@ -58,4 +58,9 @@ public interface SjZjyCljlMapper
* @return 结果 * @return 结果
*/ */
public int deleteSjZjyCljlByIds(Long[] ids); public int deleteSjZjyCljlByIds(Long[] ids);
int deleteSjZjyCljlByJh(String jh);
int insertSjZjyCljlBatch(List<SjZjyCljl> sjZjyCljlList);
} }
...@@ -58,4 +58,11 @@ public interface SjZjyFdsjMapper ...@@ -58,4 +58,11 @@ public interface SjZjyFdsjMapper
* @return 结果 * @return 结果
*/ */
public int deleteSjZjyFdsjByIds(Long[] ids); public int deleteSjZjyFdsjByIds(Long[] ids);
int deleteSjZjyFdsjByJh(String jh);
int insertSjZjyFdsjBatch(List<SjZjyFdsj> sjZjyFdsjList);
} }
...@@ -58,4 +58,9 @@ public interface SjZjyFdxnbMapper ...@@ -58,4 +58,9 @@ public interface SjZjyFdxnbMapper
* @return 结果 * @return 结果
*/ */
public int deleteSjZjyFdxnbByIds(Long[] ids); public int deleteSjZjyFdxnbByIds(Long[] ids);
int deleteSjZjyFdxnbByJh(String jh);
int insertSjZjyFdxnbBatch(List<SjZjyFdxnb> sjZjyFdxnbList);
} }
...@@ -58,4 +58,10 @@ public interface SjZlyqMapper ...@@ -58,4 +58,10 @@ public interface SjZlyqMapper
* @return 结果 * @return 结果
*/ */
public int deleteSjZlyqByIds(Long[] ids); public int deleteSjZlyqByIds(Long[] ids);
int deleteSjZlyqByJh(String jh);
int insertSjZlyqBatch(List<SjZlyq> sjZlyqList);
} }
...@@ -58,4 +58,10 @@ public interface SjZlyqXxMapper ...@@ -58,4 +58,10 @@ public interface SjZlyqXxMapper
* @return 结果 * @return 结果
*/ */
public int deleteSjZlyqXxByIds(Long[] ids); public int deleteSjZlyqXxByIds(Long[] ids);
int deleteSjZlyqXxByJh(String jh);
int insertSjZlyqXxBatch(List<SjZlyqXx> sjZlyqXxList);
} }
package com.ruoyi.project.zjsgfa.mapper; package com.ruoyi.project.zjsgfa.mapper;
import java.util.List; import java.util.List;
import com.ruoyi.project.zjsgfa.domain.SjZlyq;
import com.ruoyi.project.zjsgfa.domain.SjZlyqZbyq; import com.ruoyi.project.zjsgfa.domain.SjZlyqZbyq;
/** /**
...@@ -58,4 +60,9 @@ public interface SjZlyqZbyqMapper ...@@ -58,4 +60,9 @@ public interface SjZlyqZbyqMapper
* @return 结果 * @return 结果
*/ */
public int deleteSjZlyqZbyqByIds(Long[] ids); public int deleteSjZlyqZbyqByIds(Long[] ids);
int deleteSjZlyqZbyqByJh(String jh);
int insertSjZlyqZbyqBatch(List<SjZlyq> sjZlyqList);
} }
...@@ -142,6 +142,46 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -142,6 +142,46 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="sjyxts != null">#{sjyxts},</if> <if test="sjyxts != null">#{sjyxts},</if>
</trim> </trim>
</insert> </insert>
<insert id="insertSjDzfcBatch">
INSERT INTO sj_dzfc
(
dc_j, dc_x, dc_t, dc_z, dc_d,
sjjh, sjdcs, sjjcgx, sjhd, sjddsd,
yjjh1, yjdcs1, yjjcgx1, yjhyjd1, yjddsd1,
yjjh2, yjdcs2, yjjcgx2, yjhyjd2, yjddsd2,
yjyxts1, yjyxts2, sjyxts
)
VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.dcJ},
#{item.dcX},
#{item.dcT},
#{item.dcZ},
#{item.dcD},
#{item.sjjh},
#{item.sjdcs},
#{item.sjjcgx},
#{item.sjhd},
#{item.sjddsd},
#{item.yjjh1},
#{item.yjdcs1},
#{item.yjjcgx1},
#{item.yjhyjd1},
#{item.yjddsd1},
#{item.yjjh2},
#{item.yjdcs2},
#{item.yjjcgx2},
#{item.yjhyjd2},
#{item.yjddsd2},
#{item.yjyxts1},
#{item.yjyxts2},
#{item.sjyxts}
)
</foreach>
</insert>
<update id="updateSjDzfc" parameterType="SjDzfc"> <update id="updateSjDzfc" parameterType="SjDzfc">
update sj_dzfc update sj_dzfc
...@@ -187,4 +227,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -187,4 +227,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id} #{id}
</foreach> </foreach>
</delete> </delete>
<delete id="deleteSjDzfcByJh">
delete from sj_dzfc where jh = #{jh}
</delete>
</mapper> </mapper>
\ No newline at end of file
...@@ -92,6 +92,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -92,6 +92,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateTime != null">#{updateTime},</if> <if test="updateTime != null">#{updateTime},</if>
</trim> </trim>
</insert> </insert>
<insert id="insertSjJygjGdfdcsBatch">
INSERT INTO sj_jygj_gdfdcs
(jh, js, jx, fw, cs, spwy, nbwy, dxwy, qjbhl, gjm, bd, bz)
VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.jh},
#{item.js},
#{item.jx},
#{item.fw},
#{item.cs},
#{item.spwy},
#{item.nbwy},
#{item.dxwy},
#{item.qjbhl},
#{item.gjm},
#{item.bd},
#{item.bz}
)
</foreach>
</insert>
<update id="updateSjJygjGdfdcs" parameterType="SjJygjGdfdcs"> <update id="updateSjJygjGdfdcs" parameterType="SjJygjGdfdcs">
update sj_jygj_gdfdcs update sj_jygj_gdfdcs
...@@ -126,4 +147,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -126,4 +147,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id} #{id}
</foreach> </foreach>
</delete> </delete>
<delete id="deleteSjJygjGdfdcsByJh">
delete from sj_jygj_gdfdcs where jh = #{jh}
</delete>
</mapper> </mapper>
\ No newline at end of file
...@@ -100,6 +100,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -100,6 +100,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateTime != null">#{updateTime},</if> <if test="updateTime != null">#{updateTime},</if>
</trim> </trim>
</insert> </insert>
<insert id="insertSjJygjGdsjgdcsBatch">
INSERT INTO sj_jygj_gdsjgdcs
(jh, js, jx, fw, bhfw, cs, bhj, nbwy, dxwy, zxl, fwbhl, qjbhl, gjm, bz)
VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.jh},
#{item.js},
#{item.jx},
#{item.fw},
#{item.bhfw},
#{item.cs},
#{item.bhj},
#{item.nbwy},
#{item.dxwy},
#{item.zxl},
#{item.fwbhl},
#{item.qjbhl},
#{item.gjm},
#{item.bz}
)
</foreach>
</insert>
<update id="updateSjJygjGdsjgdcs" parameterType="SjJygjGdsjgdcs"> <update id="updateSjJygjGdsjgdcs" parameterType="SjJygjGdsjgdcs">
update sj_jygj_gdsjgdcs update sj_jygj_gdsjgdcs
...@@ -136,4 +159,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -136,4 +159,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id} #{id}
</foreach> </foreach>
</delete> </delete>
<delete id="deleteSjJygjGdsjgdcsByJh">
delete from sj_jygj_gdsjgdcs where jh = #{jh}
</delete>
</mapper> </mapper>
\ No newline at end of file
...@@ -96,6 +96,30 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -96,6 +96,30 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateTime != null">#{updateTime},</if> <if test="updateTime != null">#{updateTime},</if>
</trim> </trim>
</insert> </insert>
<insert id="insertSjTgTgqdjhBatch">
INSERT INTO sj_tg_tgqdjh
(jh, kc, jd, mmzl, djz, ljz, zdzhkwj, aqxskwj, zdzhkny, aqxskny, zdzhkl, aqxskl, bz)
VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.jh},
#{item.kc},
#{item.jd},
#{item.mmzl},
#{item.djz},
#{item.ljz},
#{item.zdzhkwj},
#{item.aqxskwj},
#{item.zdzhkny},
#{item.aqxskny},
#{item.zdzhkl},
#{item.aqxskl},
#{item.bz}
)
</foreach>
</insert>
<update id="updateSjTgTgqdjh" parameterType="SjTgTgqdjh"> <update id="updateSjTgTgqdjh" parameterType="SjTgTgqdjh">
update sj_tg_tgqdjh update sj_tg_tgqdjh
...@@ -131,4 +155,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -131,4 +155,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id} #{id}
</foreach> </foreach>
</delete> </delete>
<delete id="deleteSjTgTgqdjhByJh">
delete from sj_tg_tgqdjh where jh = #{jh}
</delete>
</mapper> </mapper>
\ No newline at end of file
...@@ -88,6 +88,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -88,6 +88,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateTime != null">#{updateTime},</if> <if test="updateTime != null">#{updateTime},</if>
</trim> </trim>
</insert> </insert>
<insert id="insertSjTgTgxnsjBatch">
INSERT INTO sj_tg_tgxnsj
(jh, wj, gj, bh, kx, mmzl, jgwj, klqd, kjqd, knyqd, bz)
VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.jh},
#{item.wj},
#{item.gj},
#{item.bh},
#{item.kx},
#{item.mmzl},
#{item.jgwj},
#{item.klqd},
#{item.kjqd},
#{item.knyqd},
#{item.bz}
)
</foreach>
</insert>
<update id="updateSjTgTgxnsj" parameterType="SjTgTgxnsj"> <update id="updateSjTgTgxnsj" parameterType="SjTgTgxnsj">
update sj_tg_tgxnsj update sj_tg_tgxnsj
...@@ -121,4 +141,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -121,4 +141,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id} #{id}
</foreach> </foreach>
</delete> </delete>
<delete id="deleteSjTgTgxnsjByJh">
delete from sj_tg_tgxnsj where jh = #{jh}
</delete>
</mapper> </mapper>
\ No newline at end of file
...@@ -88,6 +88,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -88,6 +88,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateTime != null">#{updateTime},</if> <if test="updateTime != null">#{updateTime},</if>
</trim> </trim>
</insert> </insert>
<insert id="insertSjTgTgzBatch">
INSERT INTO sj_tg_tgz
(jh, kc, jd, wj, gj, bh, kx, zjsknj, cd, zjymd, bz)
VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.jh},
#{item.kc},
#{item.jd},
#{item.wj},
#{item.gj},
#{item.bh},
#{item.kx},
#{item.zjsknj},
#{item.cd},
#{item.zjymd},
#{item.bz}
)
</foreach>
</insert>
<update id="updateSjTgTgz" parameterType="SjTgTgz"> <update id="updateSjTgTgz" parameterType="SjTgTgz">
update sj_tg_tgz update sj_tg_tgz
...@@ -121,4 +141,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -121,4 +141,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id} #{id}
</foreach> </foreach>
</delete> </delete>
<delete id="deleteSjTgTgzByJh">
delete from sj_tg_tgz where jh = #{jh}
</delete>
</mapper> </mapper>
\ No newline at end of file
...@@ -76,6 +76,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -76,6 +76,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateTime != null">#{updateTime},</if> <if test="updateTime != null">#{updateTime},</if>
</trim> </trim>
</insert> </insert>
<insert id="insertSjZjyCljlBatch">
INSERT INTO sj_zjy_cljl
(jh, clmc, ykjl, ekjl, skjl, sikjl, wkjl, bz)
VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.jh},
#{item.clmc},
#{item.ykjl},
#{item.ekjl},
#{item.skjl},
#{item.sikjl},
#{item.wkjl},
#{item.bz}
)
</foreach>
</insert>
<update id="updateSjZjyCljl" parameterType="SjZjyCljl"> <update id="updateSjZjyCljl" parameterType="SjZjyCljl">
update sj_zjy_cljl update sj_zjy_cljl
...@@ -106,4 +123,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -106,4 +123,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id} #{id}
</foreach> </foreach>
</delete> </delete>
<delete id="deleteSjZjyCljlByJh">
delete from sj_zjy_cljl where jh = #{jh}
</delete>
</mapper> </mapper>
\ No newline at end of file
...@@ -64,6 +64,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -64,6 +64,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateTime != null">#{updateTime},</if> <if test="updateTime != null">#{updateTime},</if>
</trim> </trim>
</insert> </insert>
<insert id="insertSjZjyFdsjBatch">
INSERT INTO sj_zjy_fdsj
(jh, kc, jd, zjytx, bz)
VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.jh},
#{item.kc},
#{item.jd},
#{item.zjytx},
#{item.bz}
)
</foreach>
</insert>
<update id="updateSjZjyFdsj" parameterType="SjZjyFdsj"> <update id="updateSjZjyFdsj" parameterType="SjZjyFdsj">
update sj_zjy_fdsj update sj_zjy_fdsj
...@@ -91,4 +105,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -91,4 +105,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id} #{id}
</foreach> </foreach>
</delete> </delete>
<delete id="deleteSjZjyFdsjByJh">
delete from sj_zjy_fdsj where jh = #{jh}
</delete>
</mapper> </mapper>
\ No newline at end of file
...@@ -100,6 +100,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -100,6 +100,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateTime != null">#{updateTime},</if> <if test="updateTime != null">#{updateTime},</if>
</trim> </trim>
</insert> </insert>
<insert id="insertSjZjyFdxnbBatch">
INSERT INTO sj_zjy_fdxnb
(jh, jd, md, msldnd, apilsl, apinb, jql, ph, hsl, zgh, mzxs, dql, sxnd, bz)
VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.jh},
#{item.jd},
#{item.md},
#{item.msldnd},
#{item.apilsl},
#{item.apinb},
#{item.jql},
#{item.ph},
#{item.hsl},
#{item.zgh},
#{item.mzxs},
#{item.dql},
#{item.sxnd},
#{item.bz}
)
</foreach>
</insert>
<update id="updateSjZjyFdxnb" parameterType="SjZjyFdxnb"> <update id="updateSjZjyFdxnb" parameterType="SjZjyFdxnb">
update sj_zjy_fdxnb update sj_zjy_fdxnb
...@@ -136,4 +161,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -136,4 +161,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id} #{id}
</foreach> </foreach>
</delete> </delete>
<delete id="deleteSjZjyFdxnbByJh">
delete from sj_zjy_fdxnb where jh = #{jh}
</delete>
</mapper> </mapper>
\ No newline at end of file
...@@ -64,6 +64,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -64,6 +64,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateTime != null">#{updateTime},</if> <if test="updateTime != null">#{updateTime},</if>
</trim> </trim>
</insert> </insert>
<insert id="insertSjZlyqBatch">
INSERT INTO sj_zlyq
(jh, jd, jxj, qjbhl, bz)
VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.jh},
#{item.jd},
#{item.jxj},
#{item.qjbhl},
#{item.bz}
)
</foreach>
</insert>
<update id="updateSjZlyq" parameterType="SjZlyq"> <update id="updateSjZlyq" parameterType="SjZlyq">
update sj_zlyq update sj_zlyq
...@@ -91,4 +105,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -91,4 +105,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id} #{id}
</foreach> </foreach>
</delete> </delete>
<delete id="deleteSjZlyqByJh">
delete from sj_zlyq where jh = #{jh}
</delete>
</mapper> </mapper>
\ No newline at end of file
...@@ -68,6 +68,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -68,6 +68,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateTime != null">#{updateTime},</if> <if test="updateTime != null">#{updateTime},</if>
</trim> </trim>
</insert> </insert>
<insert id="insertSjZlyqXxBatch">
INSERT INTO sj_zlyq_xx
(jh, dxjzlyq, gjzlyq, wcjjkzlyq, yqcwrpdyq, bz)
VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.jh},
#{item.dxjzlyq},
#{item.gjzlyq},
#{item.wcjjkzlyq},
#{item.yqcwrpdyq},
#{item.bz}
)
</foreach>
</insert>
<update id="updateSjZlyqXx" parameterType="SjZlyqXx"> <update id="updateSjZlyqXx" parameterType="SjZlyqXx">
update sj_zlyq_xx update sj_zlyq_xx
...@@ -96,4 +111,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -96,4 +111,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id} #{id}
</foreach> </foreach>
</delete> </delete>
<delete id="deleteSjZlyqXxByJh">
delete from sj_zlyq_xx where jh = #{jh}
</delete>
</mapper> </mapper>
\ No newline at end of file
...@@ -60,6 +60,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -60,6 +60,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateTime != null">#{updateTime},</if> <if test="updateTime != null">#{updateTime},</if>
</trim> </trim>
</insert> </insert>
<insert id="insertSjZlyqZbyqBatch">
INSERT INTO sj_zlyq_zbyq
(jh, bd, bbj, bz)
VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.jh},
#{item.bd},
#{item.bbj},
#{item.bz}
)
</foreach>
</insert>
<update id="updateSjZlyqZbyq" parameterType="SjZlyqZbyq"> <update id="updateSjZlyqZbyq" parameterType="SjZlyqZbyq">
update sj_zlyq_zbyq update sj_zlyq_zbyq
...@@ -86,4 +99,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -86,4 +99,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id} #{id}
</foreach> </foreach>
</delete> </delete>
<delete id="deleteSjZlyqZbyqByJh">
delete from sj_zlyq_zbyq where jh = #{jh}
</delete>
</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