Commit e1c8e752 by jiang'yun

修改

parent 3b58f125
...@@ -12,6 +12,7 @@ import com.deepoove.poi.XWPFTemplate; ...@@ -12,6 +12,7 @@ import com.deepoove.poi.XWPFTemplate;
import com.deepoove.poi.data.PictureRenderData; import com.deepoove.poi.data.PictureRenderData;
import com.deepoove.poi.data.PictureType; import com.deepoove.poi.data.PictureType;
import com.deepoove.poi.data.Pictures; import com.deepoove.poi.data.Pictures;
import com.deepoove.poi.plugin.table.LoopColumnTableRenderPolicy;
import com.deepoove.poi.plugin.table.LoopRowTableRenderPolicy; import com.deepoove.poi.plugin.table.LoopRowTableRenderPolicy;
import com.ruoyi.common.constant.Constants; import com.ruoyi.common.constant.Constants;
import com.ruoyi.common.utils.StringUtils; import com.ruoyi.common.utils.StringUtils;
...@@ -21,6 +22,7 @@ import com.ruoyi.project.zjsgfa.domain.*; ...@@ -21,6 +22,7 @@ import com.ruoyi.project.zjsgfa.domain.*;
import com.ruoyi.project.zjsgfa.domain.Vo.DrillingFluidConstant; import com.ruoyi.project.zjsgfa.domain.Vo.DrillingFluidConstant;
import com.ruoyi.project.zjsgfa.mapper.*; import com.ruoyi.project.zjsgfa.mapper.*;
import com.ruoyi.project.zjsgfa.service.ISjZjyFdxnbService;
import com.ruoyi.project.zjsgfa.util.CxszhUtil; import com.ruoyi.project.zjsgfa.util.CxszhUtil;
import com.ruoyi.project.zjsgfa.util.ImageProcessUtil; import com.ruoyi.project.zjsgfa.util.ImageProcessUtil;
import com.ruoyi.project.zt.domain.CommonParam; import com.ruoyi.project.zt.domain.CommonParam;
...@@ -131,6 +133,30 @@ public class SjDjjcController extends BaseController ...@@ -131,6 +133,30 @@ public class SjDjjcController extends BaseController
@Autowired @Autowired
private SjJygjgdsjMapper sjJygjgdsjMapper; private SjJygjgdsjMapper sjJygjgdsjMapper;
@Autowired
private ISjZjyFdxnbService sjZjyFdxnbService;
@Autowired
private SjLjjwMapper sjLjjwMapper;
@Autowired
private SjZqfxMapper sjZqfxMapper;
@Autowired
private SjZtgjsjMapper sjZtgjsjMapper;
@Autowired
private SjQkztfxMapper sjQkztfxMapper;
@Autowired
private SjSzfxjgMapper sjSzfxjgMapper;
@Autowired
private SjDcfxTsyxMapper sjDcfxTsyxMapper;
@Autowired
private SjJhzqMapper sjJhzqMapper;
...@@ -1769,18 +1795,26 @@ public class SjDjjcController extends BaseController ...@@ -1769,18 +1795,26 @@ public class SjDjjcController extends BaseController
return sjDjjcService.saveLjzl(param); return sjDjjcService.saveLjzl(param);
} }
/**
* 计算风险
*/
@PostMapping("/saveZtxh")
public AjaxResult saveZtxh(@RequestBody CommonParam param) throws Exception{
return sjDjjcService.saveZtxh(param);
}
@PostMapping("/exportWord") @PostMapping("/exportWord")
public void exportWord(long id,HttpServletResponse response) throws Exception{ public void exportWord(long id,HttpServletResponse response) throws Exception {
SjDjjc sjDjjc = sjDjjcService.selectSjDjjcById(id); SjDjjc sjDjjc = sjDjjcService.selectSjDjjcById(id);
InputStream in = null; InputStream in = null;
XWPFTemplate template=null; XWPFTemplate template = null;
OutputStream os=null; OutputStream os = null;
try { try {
in =this.getClass().getResourceAsStream("/static/excel/sgfamb.docx"); in = this.getClass().getResourceAsStream("/static/excel/sgfamb.docx");
os = response.getOutputStream(); os = response.getOutputStream();
String fileName=sjDjjc.getJh()+"井施工方案"; String fileName = sjDjjc.getJh() + "井施工方案";
// 设置响应头 // 设置响应头
...@@ -1790,39 +1824,55 @@ public class SjDjjcController extends BaseController ...@@ -1790,39 +1824,55 @@ public class SjDjjcController extends BaseController
//加载数据 //加载数据
Map<String, Object> data = buildDataModel(sjDjjc); Map<String, Object> data = buildDataModel(sjDjjc);
// 配置 // 配置
LoopRowTableRenderPolicy policy=new LoopRowTableRenderPolicy(); LoopRowTableRenderPolicy policy = new LoopRowTableRenderPolicy();
LoopColumnTableRenderPolicy policyCol = new LoopColumnTableRenderPolicy();
Configure config = Configure.builder().useSpringEL() Configure config = Configure.builder().useSpringEL()
.bind("sjDzfcList",policy)//行循环策略 .bind("sjDzfcList", policy)//行循环策略
.bind("sjJsjgList",policy)//行循环策略 .bind("sjJsjgList", policy)//行循环策略
.bind("sjJygjGdfdcsList",policy)//行循环策略 .bind("sjJygjGdfdcsList", policy)//行循环策略
.bind("sjJygjGdsjgdcsList",policy)//行循环策略 .bind("sjJygjGdsjgdcsList", policy)//行循环策略
.bind("sjJygjGdsjList",policy)//行循环策略 .bind("sjJygjGdsjList", policy)//行循环策略
.bind("zjyFdsjList", policy)//行循环策略
.bind("zjyCljlList", policy)//行循环策略
.bind("sjZjyFdxnbList", policyCol)//列循环策略
.bind("sjTgTgzList", policy)//行循环策略
.bind("sjTgTgxnsjList", policy)//行循环策略
.bind("sjTgTgqdjhList", policy)//行循环策略
.bind("sjZlyqList", policy)//行循环策略
.bind("sjZlyqZbyqList", policy)//行循环策略
.bind("sjLjjwList", policy)//行循环策略
.bind("sjZqfxList", policy)//行循环策略
.bind("sjZtgjsjList", policy)//行循环策略
.bind("sjQkztfxList", policy)//行循环策略
.bind("sjSzfxjgList", policy)//行循环策略
.bind("sjDcfxDzfcList", policy)//行循环策略
.bind("sjDcfxTsyxList", policy)//行循环策略
.bind("sjJhzqList", policy)//行循环策略
.bind("sjH2sList", policy)//行循环策略
.bind("sjLjsmList", policy)//行循环策略
.build(); .build();
XWPFTemplate compile = XWPFTemplate.compile(in, config); XWPFTemplate compile = XWPFTemplate.compile(in, config);
// 加载模板并填充数据 // 加载模板并填充数据
template = compile.render(data); template = compile.render(data);
template.write(os); template.write(os);
os.flush(); os.flush();
}catch (Exception e){ } catch (Exception e) {
throw e; throw e;
}finally { } finally {
if(in!=null){ if (in != null) {
in.close(); in.close();
} }
if(template!=null){ if (template != null) {
template.close(); template.close();
} }
if(os!=null){
os.close();
}
} if (os != null) {
os.close();
}
}
} }
public Map<String, Object> buildDataModel(SjDjjc sjDjjc) { public Map<String, Object> buildDataModel(SjDjjc sjDjjc) {
Map<String, Object> dataModel = new HashMap<>(); Map<String, Object> dataModel = new HashMap<>();
String jh = sjDjjc.getJh(); String jh = sjDjjc.getJh();
...@@ -1880,9 +1930,164 @@ public class SjDjjcController extends BaseController ...@@ -1880,9 +1930,164 @@ public class SjDjjcController extends BaseController
sjJygjGdsjgdcs.setJh(jh); sjJygjGdsjgdcs.setJh(jh);
List<SjJygjGdsjgdcs> sjJygjGdsjgdcsList = sjJygjGdsjgdcsMapper.selectSjJygjGdsjgdcsList(sjJygjGdsjgdcs); List<SjJygjGdsjgdcs> sjJygjGdsjgdcsList = sjJygjGdsjgdcsMapper.selectSjJygjGdsjgdcsList(sjJygjGdsjgdcs);
dataModel.put("sjJygjGdsjgdcsList", sjJygjGdsjgdcsList); dataModel.put("sjJygjGdsjgdcsList", sjJygjGdsjgdcsList);
//钻井液分段设计
SjZjyFdsj sjZjyFdsj =new SjZjyFdsj();
sjZjyFdsj.setJh(jh);
List<SjZjyFdsj> zjyFdsjList = sjZjyFdsjMapper.selectSjZjyFdsjList(sjZjyFdsj);
dataModel.put("zjyFdsjList", zjyFdsjList);
SjZjyCljl sjZjyCljl =new SjZjyCljl();
sjZjyCljl.setJh(jh);
List<SjZjyCljl> zjyCljlList = sjZjyCljlMapper.selectSjZjyCljlList(sjZjyCljl);
for(int i=0;i<zjyCljlList.size();i++){
zjyCljlList.get(i).setNum(i+1);
}
dataModel.put("zjyCljlList", zjyCljlList);
SjZjyFdxnb sjZjyFdxnb= new SjZjyFdxnb();
sjZjyFdxnb.setJh(jh);
List<SjZjyFdxnb> sjZjyFdxnbList = sjZjyFdxnbMapper.selectSjZjyFdxnbList(sjZjyFdxnb);
dataModel.put("sjZjyFdxnbList", sjZjyFdxnbList);
//套管柱
SjTgTgz sjTgTgz =new SjTgTgz();
sjTgTgz.setJh(jh);
List<SjTgTgz> sjTgTgzList = sjTgTgzMapper.selectSjTgTgzList(sjTgTgz);
dataModel.put("sjTgTgzList", sjTgTgzList);
SjTgTgxnsj sjTgTgxnsj =new SjTgTgxnsj();
sjTgTgxnsj.setJh(jh);
List<SjTgTgxnsj> tgxnsjList = sjTgTgxnsjMapper.selectSjTgTgxnsjList(sjTgTgxnsj);
dataModel.put("sjTgTgxnsjList", tgxnsjList);
SjTgTgqdjh sjTgTgqdjh =new SjTgTgqdjh();
sjTgTgqdjh.setJh(jh);
List<SjTgTgqdjh> sjTgTgqdjhList = sjTgTgqdjhMapper.selectSjTgTgqdjhList(sjTgTgqdjh);
dataModel.put("sjTgTgqdjhList", sjTgTgqdjhList);
SjZlyq sjZlyq =new SjZlyq();
sjZlyq.setJh(jh);
List<SjZlyq> sjZlyqList = sjZlyqMapper.selectSjZlyqList(sjZlyq);
dataModel.put("sjZlyqList", sjZlyqList);
SjZlyqZbyq sjZlyqZbyq =new SjZlyqZbyq();
sjZlyqZbyq.setJh(jh);
List<SjZlyqZbyq> sjZlyqZbyqList = sjZlyqZbyqMapper.selectSjZlyqZbyqList(sjZlyqZbyq);
dataModel.put("sjZlyqZbyqList", sjZlyqZbyqList);
SjZlyqXx sjZlyqXx =new SjZlyqXx();
sjZlyqXx.setJh(jh);
List<SjZlyqXx> sjZlyqXxList = sjZlyqXxMapper.selectSjZlyqXxList(sjZlyqXx);
if(sjZlyqXxList.size()>0){
SjZlyqXx item = sjZlyqXxList.get(0);
dataModel.put("gjzlyq",item.getGjzlyq());
dataModel.put("wcjjkzlyq",item.getWcjjkzlyq());
dataModel.put("yqcwrpdyq",item.getYqcwrpdyq());
}else {
dataModel.put("gjzlyq","");
dataModel.put("wcjjkzlyq","");
dataModel.put("yqcwrpdyq","");
}
//邻井
SjLjjw sjLjjw =new SjLjjw();
sjLjjw.setJh(jh);
List<SjLjjw> sjLjjwList = sjLjjwMapper.selectSjLjjwList(sjLjjw);
dataModel.put("sjLjjwList", sjLjjwList);
SjZqfx sjZqfx =new SjZqfx();
sjZqfx.setJh(jh);
List<SjZqfx> sjZqfxList = sjZqfxMapper.selectSjZqfxList(sjZqfx);
dataModel.put("sjZqfxList", sjZqfxList);
SjZtgjsj sjZtgjsj =new SjZtgjsj();
sjZtgjsj.setJh(jh);
List<SjZtgjsj> sjZtgjsjList = sjZtgjsjMapper.selectSjZtgjsjList(sjZtgjsj);
dataModel.put("sjZtgjsjList", sjZtgjsjList);
SjQkztfx sjQkztfx =new SjQkztfx();
sjQkztfx.setJh(jh);
List<SjQkztfx> sjQkztfxList = sjQkztfxMapper.selectSjQkztfxList(sjQkztfx);
dataModel.put("sjQkztfxList", sjQkztfxList);
SjSzfxjg sjSzfxjg =new SjSzfxjg();
sjSzfxjg.setJh(jh);
List<SjSzfxjg> sjSzfxjgList = sjSzfxjgMapper.selectSjSzfxjgList(sjSzfxjg);
dataModel.put("sjSzfxjgList", sjSzfxjgList);
SjDcfxDzfc sjDcfxDzfc =new SjDcfxDzfc();
sjDcfxDzfc.setJh(jh);
List<SjDcfxDzfc> sjDcfxDzfcList = sjDcfxDzfcMapper.selectSjDcfxDzfcList(sjDcfxDzfc);
dataModel.put("sjDcfxDzfcList", sjDcfxDzfcList);
SjDcfxTsyx sjDcfxTsyx =new SjDcfxTsyx();
sjDcfxTsyx.setJh(jh);
List<SjDcfxTsyx> sjDcfxTsyxList = sjDcfxTsyxMapper.selectSjDcfxTsyxList(sjDcfxTsyx);
dataModel.put("sjDcfxTsyxList", sjDcfxTsyxList);
//
SjGztz sjGztz =new SjGztz();
sjGztz.setJh(jh);
List<SjGztz> gztzList = sjGztzMapper.selectSjGztzList(sjGztz);
List<String> jwtList = gztzList.stream().filter(it -> it.getGzlx().equals("井位图")).map(SjGztz::getLj).collect(Collectors.toList());
if(jwtList.size()>0){
List<Map<String, PictureRenderData>> pictureList = createPictureList(jwtList, 500, 600);
dataModel.put("jwtList", pictureList);
}else {
dataModel.put("jwtList", new ArrayList<>());
}
List<String> dzpmtList = gztzList.stream().filter(it -> it.getGzlx().equals("地震刨面图")).map(SjGztz::getLj).collect(Collectors.toList());
if(dzpmtList.size()>0){
List<Map<String, PictureRenderData>> pictureList = createPictureList(dzpmtList, 500, 600);
dataModel.put("dzpmtList", pictureList);
}else {
dataModel.put("dzpmtList", new ArrayList<>());
}
List<String> sylpmtList = gztzList.stream().filter(it -> it.getGzlx().equals("三压力刨面图")).map(SjGztz::getLj).collect(Collectors.toList());
if(sylpmtList.size()>0){
List<Map<String, PictureRenderData>> pictureList = createPictureList(sylpmtList, 500, 600);
dataModel.put("sylpmtList", pictureList);
}else {
dataModel.put("sylpmtList", new ArrayList<>());
}
//计划周期
SjJhzq sjJhzq =new SjJhzq();
sjJhzq.setJh(jh);
List<SjJhzq> sjJhzqList = sjJhzqMapper.selectSjJhzqList(sjJhzq);
dataModel.put("sjJhzqList",sjJhzqList);
//H2s
SjH2s sjH2s =new SjH2s();
sjH2s.setJh(jh);
List<SjH2s> sjH2sList = sjH2sMapper.selectSjH2sList(sjH2s);
dataModel.put("sjH2sList",sjH2sList);
SjLjsm sjLjsm =new SjLjsm();
sjLjsm.setJh(jh);
List<SjLjsm> sjLjsmList = sjLjsmMapper.selectSjLjsmList(sjLjsm);
dataModel.put("sjLjsmList",sjLjsmList);
return dataModel; return dataModel;
} }
private Map<String, PictureRenderData> createPictureMap(String pictureName, int width, int height) {
Map<String, PictureRenderData> map = new HashMap<>();
String filePath = RuoYiConfig.getUploadPath();
String lj = pictureName.replaceAll("/profile/upload", "");
String path=filePath + lj;
File file =new File(path);
if(!file.exists()){
return map;
}
//创建PictureRenderData对象并设置其大小
//Pictures还有其他方法,如Pictures.ofStream()流处理,可根据自己的需求及文档替换
map.put("jwt", Pictures.ofLocal(path).size(width, height).create());
return map;
}
private List<Map<String, PictureRenderData>> createPictureList(List<String> imgList,int width, int height) {
List<Map<String, PictureRenderData>> list = new ArrayList<>();
for(String lj:imgList ){
list.add(createPictureMap(lj, width, height));
}
return list;
}
......
package com.ruoyi.project.zjsgfa.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.framework.aspectj.lang.annotation.Log;
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.project.zjsgfa.domain.SjLjtjzt;
import com.ruoyi.project.zjsgfa.service.ISjLjtjztService;
import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.framework.web.page.TableDataInfo;
/**
* 设计-邻井推荐钻头Controller
*
* @author ruoyi
* @date 2025-08-18
*/
@RestController
@RequestMapping("/system/sjLjtjzt")
public class SjLjtjztController extends BaseController
{
@Autowired
private ISjLjtjztService sjLjtjztService;
/**
* 查询设计-邻井推荐钻头列表
*/
//@PreAuthorize("@ss.hasPermi('system:sjLjtjzt:list')")
@GetMapping("/list")
public TableDataInfo list(SjLjtjzt sjLjtjzt)
{
startPage();
List<SjLjtjzt> list = sjLjtjztService.selectSjLjtjztList(sjLjtjzt);
return getDataTable(list);
}
/**
* 导出设计-邻井推荐钻头列表
*/
//@PreAuthorize("@ss.hasPermi('system:sjLjtjzt:export')")
@Log(title = "设计-邻井推荐钻头", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SjLjtjzt sjLjtjzt)
{
List<SjLjtjzt> list = sjLjtjztService.selectSjLjtjztList(sjLjtjzt);
ExcelUtil<SjLjtjzt> util = new ExcelUtil<SjLjtjzt>(SjLjtjzt.class);
util.exportExcel(response, list, "设计-邻井推荐钻头数据");
}
/**
* 获取设计-邻井推荐钻头详细信息
*/
//@PreAuthorize("@ss.hasPermi('system:sjLjtjzt:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(sjLjtjztService.selectSjLjtjztById(id));
}
/**
* 新增设计-邻井推荐钻头
*/
//@PreAuthorize("@ss.hasPermi('system:sjLjtjzt:add')")
@Log(title = "设计-邻井推荐钻头", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SjLjtjzt sjLjtjzt)
{
return toAjax(sjLjtjztService.insertSjLjtjzt(sjLjtjzt));
}
/**
* 修改设计-邻井推荐钻头
*/
//@PreAuthorize("@ss.hasPermi('system:sjLjtjzt:edit')")
@Log(title = "设计-邻井推荐钻头", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SjLjtjzt sjLjtjzt)
{
return toAjax(sjLjtjztService.updateSjLjtjzt(sjLjtjzt));
}
/**
* 删除设计-邻井推荐钻头
*/
//@PreAuthorize("@ss.hasPermi('system:sjLjtjzt:remove')")
@Log(title = "设计-邻井推荐钻头", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(sjLjtjztService.deleteSjLjtjztByIds(ids));
}
}
package com.ruoyi.project.zjsgfa.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.framework.aspectj.lang.annotation.Log;
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.project.zjsgfa.domain.SjSggyGjsbxnyq;
import com.ruoyi.project.zjsgfa.service.ISjSggyGjsbxnyqService;
import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.framework.web.page.TableDataInfo;
/**
* 设计-施工概要-关键设备性能要求Controller
*
* @author ruoyi
* @date 2025-08-18
*/
@RestController
@RequestMapping("/system/sjSggyGjsbxnyq")
public class SjSggyGjsbxnyqController extends BaseController
{
@Autowired
private ISjSggyGjsbxnyqService sjSggyGjsbxnyqService;
/**
* 查询设计-施工概要-关键设备性能要求列表
*/
//@PreAuthorize("@ss.hasPermi('system:sjSggyGjsbxnyq:list')")
@GetMapping("/list")
public TableDataInfo list(SjSggyGjsbxnyq sjSggyGjsbxnyq)
{
startPage();
List<SjSggyGjsbxnyq> list = sjSggyGjsbxnyqService.selectSjSggyGjsbxnyqList(sjSggyGjsbxnyq);
return getDataTable(list);
}
/**
* 导出设计-施工概要-关键设备性能要求列表
*/
//@PreAuthorize("@ss.hasPermi('system:sjSggyGjsbxnyq:export')")
@Log(title = "设计-施工概要-关键设备性能要求", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SjSggyGjsbxnyq sjSggyGjsbxnyq)
{
List<SjSggyGjsbxnyq> list = sjSggyGjsbxnyqService.selectSjSggyGjsbxnyqList(sjSggyGjsbxnyq);
ExcelUtil<SjSggyGjsbxnyq> util = new ExcelUtil<SjSggyGjsbxnyq>(SjSggyGjsbxnyq.class);
util.exportExcel(response, list, "设计-施工概要-关键设备性能要求数据");
}
/**
* 获取设计-施工概要-关键设备性能要求详细信息
*/
//@PreAuthorize("@ss.hasPermi('system:sjSggyGjsbxnyq:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(sjSggyGjsbxnyqService.selectSjSggyGjsbxnyqById(id));
}
/**
* 新增设计-施工概要-关键设备性能要求
*/
//@PreAuthorize("@ss.hasPermi('system:sjSggyGjsbxnyq:add')")
@Log(title = "设计-施工概要-关键设备性能要求", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SjSggyGjsbxnyq sjSggyGjsbxnyq)
{
return toAjax(sjSggyGjsbxnyqService.insertSjSggyGjsbxnyq(sjSggyGjsbxnyq));
}
/**
* 修改设计-施工概要-关键设备性能要求
*/
//@PreAuthorize("@ss.hasPermi('system:sjSggyGjsbxnyq:edit')")
@Log(title = "设计-施工概要-关键设备性能要求", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SjSggyGjsbxnyq sjSggyGjsbxnyq)
{
return toAjax(sjSggyGjsbxnyqService.updateSjSggyGjsbxnyq(sjSggyGjsbxnyq));
}
/**
* 删除设计-施工概要-关键设备性能要求
*/
//@PreAuthorize("@ss.hasPermi('system:sjSggyGjsbxnyq:remove')")
@Log(title = "设计-施工概要-关键设备性能要求", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(sjSggyGjsbxnyqService.deleteSjSggyGjsbxnyqByIds(ids));
}
}
package com.ruoyi.project.zjsgfa.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.framework.aspectj.lang.annotation.Log;
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.project.zjsgfa.domain.SjSggyZjzhcs;
import com.ruoyi.project.zjsgfa.service.ISjSggyZjzhcsService;
import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.framework.web.page.TableDataInfo;
/**
* 设计-钻具组合参数Controller
*
* @author ruoyi
* @date 2025-08-18
*/
@RestController
@RequestMapping("/system/sjSggyZjzhcs")
public class SjSggyZjzhcsController extends BaseController
{
@Autowired
private ISjSggyZjzhcsService sjSggyZjzhcsService;
/**
* 查询设计-钻具组合参数列表
*/
//@PreAuthorize("@ss.hasPermi('system:sjSggyZjzhcs:list')")
@GetMapping("/list")
public TableDataInfo list(SjSggyZjzhcs sjSggyZjzhcs)
{
startPage();
List<SjSggyZjzhcs> list = sjSggyZjzhcsService.selectSjSggyZjzhcsList(sjSggyZjzhcs);
return getDataTable(list);
}
/**
* 导出设计-钻具组合参数列表
*/
//@PreAuthorize("@ss.hasPermi('system:sjSggyZjzhcs:export')")
@Log(title = "设计-钻具组合参数", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SjSggyZjzhcs sjSggyZjzhcs)
{
List<SjSggyZjzhcs> list = sjSggyZjzhcsService.selectSjSggyZjzhcsList(sjSggyZjzhcs);
ExcelUtil<SjSggyZjzhcs> util = new ExcelUtil<SjSggyZjzhcs>(SjSggyZjzhcs.class);
util.exportExcel(response, list, "设计-钻具组合参数数据");
}
/**
* 获取设计-钻具组合参数详细信息
*/
//@PreAuthorize("@ss.hasPermi('system:sjSggyZjzhcs:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(sjSggyZjzhcsService.selectSjSggyZjzhcsById(id));
}
/**
* 新增设计-钻具组合参数
*/
//@PreAuthorize("@ss.hasPermi('system:sjSggyZjzhcs:add')")
@Log(title = "设计-钻具组合参数", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SjSggyZjzhcs sjSggyZjzhcs)
{
return toAjax(sjSggyZjzhcsService.insertSjSggyZjzhcs(sjSggyZjzhcs));
}
/**
* 修改设计-钻具组合参数
*/
//@PreAuthorize("@ss.hasPermi('system:sjSggyZjzhcs:edit')")
@Log(title = "设计-钻具组合参数", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SjSggyZjzhcs sjSggyZjzhcs)
{
return toAjax(sjSggyZjzhcsService.updateSjSggyZjzhcs(sjSggyZjzhcs));
}
/**
* 删除设计-钻具组合参数
*/
//@PreAuthorize("@ss.hasPermi('system:sjSggyZjzhcs:remove')")
@Log(title = "设计-钻具组合参数", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(sjSggyZjzhcsService.deleteSjSggyZjzhcsByIds(ids));
}
}
package com.ruoyi.project.zjsgfa.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.framework.aspectj.lang.annotation.Log;
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.project.zjsgfa.domain.SjZjcsxx;
import com.ruoyi.project.zjsgfa.service.ISjZjcsxxService;
import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.framework.web.page.TableDataInfo;
/**
* 设计-钻具参数信息Controller
*
* @author ruoyi
* @date 2025-08-18
*/
@RestController
@RequestMapping("/system/sjZjcsxx")
public class SjZjcsxxController extends BaseController
{
@Autowired
private ISjZjcsxxService sjZjcsxxService;
/**
* 查询设计-钻具参数信息列表
*/
//@PreAuthorize("@ss.hasPermi('system:sjZjcsxx:list')")
@GetMapping("/list")
public TableDataInfo list(SjZjcsxx sjZjcsxx)
{
startPage();
List<SjZjcsxx> list = sjZjcsxxService.selectSjZjcsxxList(sjZjcsxx);
return getDataTable(list);
}
/**
* 导出设计-钻具参数信息列表
*/
//@PreAuthorize("@ss.hasPermi('system:sjZjcsxx:export')")
@Log(title = "设计-钻具参数信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SjZjcsxx sjZjcsxx)
{
List<SjZjcsxx> list = sjZjcsxxService.selectSjZjcsxxList(sjZjcsxx);
ExcelUtil<SjZjcsxx> util = new ExcelUtil<SjZjcsxx>(SjZjcsxx.class);
util.exportExcel(response, list, "设计-钻具参数信息数据");
}
/**
* 获取设计-钻具参数信息详细信息
*/
//@PreAuthorize("@ss.hasPermi('system:sjZjcsxx:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(sjZjcsxxService.selectSjZjcsxxById(id));
}
/**
* 新增设计-钻具参数信息
*/
//@PreAuthorize("@ss.hasPermi('system:sjZjcsxx:add')")
@Log(title = "设计-钻具参数信息", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SjZjcsxx sjZjcsxx)
{
return toAjax(sjZjcsxxService.insertSjZjcsxx(sjZjcsxx));
}
/**
* 修改设计-钻具参数信息
*/
//@PreAuthorize("@ss.hasPermi('system:sjZjcsxx:edit')")
@Log(title = "设计-钻具参数信息", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SjZjcsxx sjZjcsxx)
{
return toAjax(sjZjcsxxService.updateSjZjcsxx(sjZjcsxx));
}
/**
* 删除设计-钻具参数信息
*/
//@PreAuthorize("@ss.hasPermi('system:sjZjcsxx:remove')")
@Log(title = "设计-钻具参数信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(sjZjcsxxService.deleteSjZjcsxxByIds(ids));
}
}
package com.ruoyi.project.zjsgfa.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.framework.aspectj.lang.annotation.Log;
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.project.zjsgfa.domain.SjZtcsxx;
import com.ruoyi.project.zjsgfa.service.ISjZtcsxxService;
import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.framework.web.page.TableDataInfo;
/**
* 设计-钻头参数信息Controller
*
* @author ruoyi
* @date 2025-08-18
*/
@RestController
@RequestMapping("/system/sjZtcsxx")
public class SjZtcsxxController extends BaseController
{
@Autowired
private ISjZtcsxxService sjZtcsxxService;
/**
* 查询设计-钻头参数信息列表
*/
//@PreAuthorize("@ss.hasPermi('system:sjZtcsxx:list')")
@GetMapping("/list")
public TableDataInfo list(SjZtcsxx sjZtcsxx)
{
startPage();
List<SjZtcsxx> list = sjZtcsxxService.selectSjZtcsxxList(sjZtcsxx);
return getDataTable(list);
}
/**
* 导出设计-钻头参数信息列表
*/
//@PreAuthorize("@ss.hasPermi('system:sjZtcsxx:export')")
@Log(title = "设计-钻头参数信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SjZtcsxx sjZtcsxx)
{
List<SjZtcsxx> list = sjZtcsxxService.selectSjZtcsxxList(sjZtcsxx);
ExcelUtil<SjZtcsxx> util = new ExcelUtil<SjZtcsxx>(SjZtcsxx.class);
util.exportExcel(response, list, "设计-钻头参数信息数据");
}
/**
* 获取设计-钻头参数信息详细信息
*/
//@PreAuthorize("@ss.hasPermi('system:sjZtcsxx:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(sjZtcsxxService.selectSjZtcsxxById(id));
}
/**
* 新增设计-钻头参数信息
*/
//@PreAuthorize("@ss.hasPermi('system:sjZtcsxx:add')")
@Log(title = "设计-钻头参数信息", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SjZtcsxx sjZtcsxx)
{
return toAjax(sjZtcsxxService.insertSjZtcsxx(sjZtcsxx));
}
/**
* 修改设计-钻头参数信息
*/
//@PreAuthorize("@ss.hasPermi('system:sjZtcsxx:edit')")
@Log(title = "设计-钻头参数信息", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SjZtcsxx sjZtcsxx)
{
return toAjax(sjZtcsxxService.updateSjZtcsxx(sjZtcsxx));
}
/**
* 删除设计-钻头参数信息
*/
//@PreAuthorize("@ss.hasPermi('system:sjZtcsxx:remove')")
@Log(title = "设计-钻头参数信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(sjZtcsxxService.deleteSjZtcsxxByIds(ids));
}
}
package com.ruoyi.project.zjsgfa.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.framework.aspectj.lang.annotation.Log;
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.project.zjsgfa.domain.SjZtxx;
import com.ruoyi.project.zjsgfa.service.ISjZtxxService;
import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.framework.web.page.TableDataInfo;
/**
* 设计-钻头选型Controller
*
* @author ruoyi
* @date 2025-08-18
*/
@RestController
@RequestMapping("/system/sjZtxx")
public class SjZtxxController extends BaseController
{
@Autowired
private ISjZtxxService sjZtxxService;
/**
* 查询设计-钻头选型列表
*/
//@PreAuthorize("@ss.hasPermi('system:sjZtxx:list')")
@GetMapping("/list")
public TableDataInfo list(SjZtxx sjZtxx)
{
startPage();
List<SjZtxx> list = sjZtxxService.selectSjZtxxList(sjZtxx);
return getDataTable(list);
}
/**
* 导出设计-钻头选型列表
*/
//@PreAuthorize("@ss.hasPermi('system:sjZtxx:export')")
@Log(title = "设计-钻头选型", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SjZtxx sjZtxx)
{
List<SjZtxx> list = sjZtxxService.selectSjZtxxList(sjZtxx);
ExcelUtil<SjZtxx> util = new ExcelUtil<SjZtxx>(SjZtxx.class);
util.exportExcel(response, list, "设计-钻头选型数据");
}
/**
* 获取设计-钻头选型详细信息
*/
//@PreAuthorize("@ss.hasPermi('system:sjZtxx:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(sjZtxxService.selectSjZtxxById(id));
}
/**
* 新增设计-钻头选型
*/
//@PreAuthorize("@ss.hasPermi('system:sjZtxx:add')")
@Log(title = "设计-钻头选型", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SjZtxx sjZtxx)
{
return toAjax(sjZtxxService.insertSjZtxx(sjZtxx));
}
/**
* 修改设计-钻头选型
*/
//@PreAuthorize("@ss.hasPermi('system:sjZtxx:edit')")
@Log(title = "设计-钻头选型", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SjZtxx sjZtxx)
{
return toAjax(sjZtxxService.updateSjZtxx(sjZtxx));
}
/**
* 删除设计-钻头选型
*/
//@PreAuthorize("@ss.hasPermi('system:sjZtxx:remove')")
@Log(title = "设计-钻头选型", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(sjZtxxService.deleteSjZtxxByIds(ids));
}
}
...@@ -55,6 +55,10 @@ public class SjFdsgcs extends BaseEntity ...@@ -55,6 +55,10 @@ public class SjFdsgcs extends BaseEntity
/** 风险管控措施 */ /** 风险管控措施 */
@Excel(name = "风险管控措施") @Excel(name = "风险管控措施")
private String fxgkcs; private String fxgkcs;
//钻具组合
private String zjzh;
//钻具组合注意事项
private String zjzhzysx;
private String zjycs; private String zjycs;
......
package com.ruoyi.project.zjsgfa.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
/**
* 设计-邻井推荐钻头对象 sj_ljtjzt
*
* @author ruoyi
* @date 2025-08-18
*/
public class SjLjtjzt extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 井号 */
@Excel(name = "井号")
private String jh;
/** 邻井井号 */
@Excel(name = "邻井井号")
private String ljjh;
/** 尺寸 */
@Excel(name = "尺寸")
private Double cc;
/** 钻头型号 */
@Excel(name = "钻头型号")
private String ztxh;
/** 厂家 */
@Excel(name = "厂家")
private String cj;
/** 水眼 */
@Excel(name = "水眼")
private String sy;
/** 造斜点 */
@Excel(name = "造斜点")
private Double zxd;
/** 钻进井段 */
@Excel(name = "钻进井段")
private String zjjd;
/** 层位 */
@Excel(name = "层位")
private String cw;
/** 机械钻速 */
@Excel(name = "机械钻速")
private Double jxzs;
/** 开次 */
@Excel(name = "开次")
private String kc;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setJh(String jh)
{
this.jh = jh;
}
public String getJh()
{
return jh;
}
public void setLjjh(String ljjh)
{
this.ljjh = ljjh;
}
public String getLjjh()
{
return ljjh;
}
public void setCc(Double cc)
{
this.cc = cc;
}
public Double getCc()
{
return cc;
}
public void setZtxh(String ztxh)
{
this.ztxh = ztxh;
}
public String getZtxh()
{
return ztxh;
}
public void setCj(String cj)
{
this.cj = cj;
}
public String getCj()
{
return cj;
}
public void setSy(String sy)
{
this.sy = sy;
}
public String getSy()
{
return sy;
}
public void setZxd(Double zxd)
{
this.zxd = zxd;
}
public Double getZxd()
{
return zxd;
}
public void setZjjd(String zjjd)
{
this.zjjd = zjjd;
}
public String getZjjd()
{
return zjjd;
}
public void setCw(String cw)
{
this.cw = cw;
}
public String getCw()
{
return cw;
}
public void setJxzs(Double jxzs)
{
this.jxzs = jxzs;
}
public Double getJxzs()
{
return jxzs;
}
public void setKc(String kc)
{
this.kc = kc;
}
public String getKc()
{
return kc;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("jh", getJh())
.append("ljjh", getLjjh())
.append("cc", getCc())
.append("ztxh", getZtxh())
.append("cj", getCj())
.append("sy", getSy())
.append("zxd", getZxd())
.append("zjjd", getZjjd())
.append("cw", getCw())
.append("jxzs", getJxzs())
.append("kc", getKc())
.toString();
}
}
package com.ruoyi.project.zjsgfa.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
/**
* 设计-施工概要-关键设备性能要求对象 sj_sggy_gjsbxnyq
*
* @author ruoyi
* @date 2025-08-18
*/
public class SjSggyGjsbxnyq extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 井号 */
@Excel(name = "井号")
private String jh;
/** 钻机型号 */
@Excel(name = "钻机型号")
private String zjxh;
/** 网电电压 */
@Excel(name = "网电电压")
private String wddy;
/** 电控稳定输出功率 */
@Excel(name = "电控稳定输出功率")
private String dkwdscgl;
/** 整机能力-钻机类型 */
@Excel(name = "整机能力-钻机类型")
private String zjnlZjlx;
/** 整机能力-最大承受拉力 */
@Excel(name = "整机能力-最大承受拉力")
private String zjnlZdcsll;
/** 整机能力-最高承受泵压 */
@Excel(name = "整机能力-最高承受泵压")
private String zjnlZgcsby;
/** 旋转系统-电动转盘最大扭矩 */
@Excel(name = "旋转系统-电动转盘最大扭矩")
private String xzxtDdzp;
/** 旋转系统-顶驱最大扭矩 */
@Excel(name = "旋转系统-顶驱最大扭矩")
private String xzxtDq;
/** 循环系统-1#泵类型 */
@Excel(name = "循环系统-1#泵类型")
private String xhxtB1lx;
/** 循环系统-1#泵型号 */
@Excel(name = "循环系统-1#泵型号")
private String xhxtB1xh;
/** 循环系统-1#泵最大功率 */
@Excel(name = "循环系统-1#泵最大功率")
private String xhxtB1zdgl;
/** 循环系统-2#泵类型 */
@Excel(name = "循环系统-2#泵类型")
private String xhxtB2lx;
/** 循环系统-2#泵型号 */
@Excel(name = "循环系统-2#泵型号")
private String xhxtB2xh;
/** 循环系统-2#泵最大功率 */
@Excel(name = "循环系统-2#泵最大功率")
private String xhxtB2zdgl;
/** 循环系统-3#泵类型 */
@Excel(name = "循环系统-3#泵类型")
private String xhxtB3lx;
/** 循环系统-3#泵型号 */
@Excel(name = "循环系统-3#泵型号")
private String xhxtB3xh;
/** 循环系统-3#泵最大功率 */
@Excel(name = "循环系统-3#泵最大功率")
private String xhxtB3zdgl;
/** 固控设备-振动筛类型 */
@Excel(name = "固控设备-振动筛类型")
private String gksbZdslx;
/** 固控设备-1#离心机类型 */
@Excel(name = "固控设备-1#离心机类型")
private String gksbLxj1lx;
/** 固控设备-1#离心机主电机功率 */
@Excel(name = "固控设备-1#离心机主电机功率")
private String gksbLxj1zdjgl;
/** 固控设备-2#离心机类型 */
@Excel(name = "固控设备-2#离心机类型")
private String gksbLxj2lx;
/** 固控设备-2#离心机主电机功率 */
@Excel(name = "固控设备-2#离心机主电机功率")
private String gksbLxj2zdjgl;
/** 固控设备-3#离心机类型 */
@Excel(name = "固控设备-3#离心机类型")
private String gksbLxj3lx;
/** 固控设备-3#离心机主电机功率 */
@Excel(name = "固控设备-3#离心机主电机功率")
private String gksbLxj3zdjgl;
/** 循环罐-数量 */
@Excel(name = "循环罐-数量")
private String xhgSl;
/** 循环罐-总容量 */
@Excel(name = "循环罐-总容量")
private String xhgZrl;
/** 储备罐-个量 */
@Excel(name = "储备罐-个量")
private String cbgSl;
/** 储备罐-总容量 */
@Excel(name = "储备罐-总容量")
private String cbgZrl;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setJh(String jh)
{
this.jh = jh;
}
public String getJh()
{
return jh;
}
public void setZjxh(String zjxh)
{
this.zjxh = zjxh;
}
public String getZjxh()
{
return zjxh;
}
public void setWddy(String wddy)
{
this.wddy = wddy;
}
public String getWddy()
{
return wddy;
}
public void setDkwdscgl(String dkwdscgl)
{
this.dkwdscgl = dkwdscgl;
}
public String getDkwdscgl()
{
return dkwdscgl;
}
public void setZjnlZjlx(String zjnlZjlx)
{
this.zjnlZjlx = zjnlZjlx;
}
public String getZjnlZjlx()
{
return zjnlZjlx;
}
public void setZjnlZdcsll(String zjnlZdcsll)
{
this.zjnlZdcsll = zjnlZdcsll;
}
public String getZjnlZdcsll()
{
return zjnlZdcsll;
}
public void setZjnlZgcsby(String zjnlZgcsby)
{
this.zjnlZgcsby = zjnlZgcsby;
}
public String getZjnlZgcsby()
{
return zjnlZgcsby;
}
public void setXzxtDdzp(String xzxtDdzp)
{
this.xzxtDdzp = xzxtDdzp;
}
public String getXzxtDdzp()
{
return xzxtDdzp;
}
public void setXzxtDq(String xzxtDq)
{
this.xzxtDq = xzxtDq;
}
public String getXzxtDq()
{
return xzxtDq;
}
public void setXhxtB1lx(String xhxtB1lx)
{
this.xhxtB1lx = xhxtB1lx;
}
public String getXhxtB1lx()
{
return xhxtB1lx;
}
public void setXhxtB1xh(String xhxtB1xh)
{
this.xhxtB1xh = xhxtB1xh;
}
public String getXhxtB1xh()
{
return xhxtB1xh;
}
public void setXhxtB1zdgl(String xhxtB1zdgl)
{
this.xhxtB1zdgl = xhxtB1zdgl;
}
public String getXhxtB1zdgl()
{
return xhxtB1zdgl;
}
public void setXhxtB2lx(String xhxtB2lx)
{
this.xhxtB2lx = xhxtB2lx;
}
public String getXhxtB2lx()
{
return xhxtB2lx;
}
public void setXhxtB2xh(String xhxtB2xh)
{
this.xhxtB2xh = xhxtB2xh;
}
public String getXhxtB2xh()
{
return xhxtB2xh;
}
public void setXhxtB2zdgl(String xhxtB2zdgl)
{
this.xhxtB2zdgl = xhxtB2zdgl;
}
public String getXhxtB2zdgl()
{
return xhxtB2zdgl;
}
public void setXhxtB3lx(String xhxtB3lx)
{
this.xhxtB3lx = xhxtB3lx;
}
public String getXhxtB3lx()
{
return xhxtB3lx;
}
public void setXhxtB3xh(String xhxtB3xh)
{
this.xhxtB3xh = xhxtB3xh;
}
public String getXhxtB3xh()
{
return xhxtB3xh;
}
public void setXhxtB3zdgl(String xhxtB3zdgl)
{
this.xhxtB3zdgl = xhxtB3zdgl;
}
public String getXhxtB3zdgl()
{
return xhxtB3zdgl;
}
public void setGksbZdslx(String gksbZdslx)
{
this.gksbZdslx = gksbZdslx;
}
public String getGksbZdslx()
{
return gksbZdslx;
}
public void setGksbLxj1lx(String gksbLxj1lx)
{
this.gksbLxj1lx = gksbLxj1lx;
}
public String getGksbLxj1lx()
{
return gksbLxj1lx;
}
public void setGksbLxj1zdjgl(String gksbLxj1zdjgl)
{
this.gksbLxj1zdjgl = gksbLxj1zdjgl;
}
public String getGksbLxj1zdjgl()
{
return gksbLxj1zdjgl;
}
public void setGksbLxj2lx(String gksbLxj2lx)
{
this.gksbLxj2lx = gksbLxj2lx;
}
public String getGksbLxj2lx()
{
return gksbLxj2lx;
}
public void setGksbLxj2zdjgl(String gksbLxj2zdjgl)
{
this.gksbLxj2zdjgl = gksbLxj2zdjgl;
}
public String getGksbLxj2zdjgl()
{
return gksbLxj2zdjgl;
}
public void setGksbLxj3lx(String gksbLxj3lx)
{
this.gksbLxj3lx = gksbLxj3lx;
}
public String getGksbLxj3lx()
{
return gksbLxj3lx;
}
public void setGksbLxj3zdjgl(String gksbLxj3zdjgl)
{
this.gksbLxj3zdjgl = gksbLxj3zdjgl;
}
public String getGksbLxj3zdjgl()
{
return gksbLxj3zdjgl;
}
public void setXhgSl(String xhgSl)
{
this.xhgSl = xhgSl;
}
public String getXhgSl()
{
return xhgSl;
}
public void setXhgZrl(String xhgZrl)
{
this.xhgZrl = xhgZrl;
}
public String getXhgZrl()
{
return xhgZrl;
}
public void setCbgSl(String cbgSl)
{
this.cbgSl = cbgSl;
}
public String getCbgSl()
{
return cbgSl;
}
public void setCbgZrl(String cbgZrl)
{
this.cbgZrl = cbgZrl;
}
public String getCbgZrl()
{
return cbgZrl;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("jh", getJh())
.append("zjxh", getZjxh())
.append("wddy", getWddy())
.append("dkwdscgl", getDkwdscgl())
.append("zjnlZjlx", getZjnlZjlx())
.append("zjnlZdcsll", getZjnlZdcsll())
.append("zjnlZgcsby", getZjnlZgcsby())
.append("xzxtDdzp", getXzxtDdzp())
.append("xzxtDq", getXzxtDq())
.append("xhxtB1lx", getXhxtB1lx())
.append("xhxtB1xh", getXhxtB1xh())
.append("xhxtB1zdgl", getXhxtB1zdgl())
.append("xhxtB2lx", getXhxtB2lx())
.append("xhxtB2xh", getXhxtB2xh())
.append("xhxtB2zdgl", getXhxtB2zdgl())
.append("xhxtB3lx", getXhxtB3lx())
.append("xhxtB3xh", getXhxtB3xh())
.append("xhxtB3zdgl", getXhxtB3zdgl())
.append("gksbZdslx", getGksbZdslx())
.append("gksbLxj1lx", getGksbLxj1lx())
.append("gksbLxj1zdjgl", getGksbLxj1zdjgl())
.append("gksbLxj2lx", getGksbLxj2lx())
.append("gksbLxj2zdjgl", getGksbLxj2zdjgl())
.append("gksbLxj3lx", getGksbLxj3lx())
.append("gksbLxj3zdjgl", getGksbLxj3zdjgl())
.append("xhgSl", getXhgSl())
.append("xhgZrl", getXhgZrl())
.append("cbgSl", getCbgSl())
.append("cbgZrl", getCbgZrl())
.toString();
}
}
package com.ruoyi.project.zjsgfa.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
/**
* 设计-钻具组合参数对象 sj_sggy_zjzhcs
*
* @author ruoyi
* @date 2025-08-18
*/
public class SjSggyZjzhcs extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 井号 */
@Excel(name = "井号")
private String jh;
/** 井段 */
@Excel(name = "井段")
private String jd;
/** 钻头型号 */
@Excel(name = "钻头型号")
private String ztxh;
/** 厂家 */
@Excel(name = "厂家")
private String cj;
/** 尺寸 */
@Excel(name = "尺寸")
private String cc;
/** 水眼 */
@Excel(name = "水眼")
private String sy;
/** 压降 */
@Excel(name = "压降")
private String yj;
/** 钻井液密度 */
@Excel(name = "钻井液密度")
private String zjymd;
/** 钻进钻压 */
@Excel(name = "钻进钻压")
private String zjzy;
/** 钻进转速 */
@Excel(name = "钻进转速")
private String zjzs;
/** 批量 */
@Excel(name = "批量")
private String zjpl;
/** 泵压 */
@Excel(name = "泵压")
private String zjby;
/** 缸套直径 */
@Excel(name = "缸套直径")
private String gtzj;
/** 钻具结构 */
@Excel(name = "钻具结构")
private String zjjg;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setJh(String jh)
{
this.jh = jh;
}
public String getJh()
{
return jh;
}
public void setJd(String jd)
{
this.jd = jd;
}
public String getJd()
{
return jd;
}
public void setZtxh(String ztxh)
{
this.ztxh = ztxh;
}
public String getZtxh()
{
return ztxh;
}
public void setCj(String cj)
{
this.cj = cj;
}
public String getCj()
{
return cj;
}
public void setCc(String cc)
{
this.cc = cc;
}
public String getCc()
{
return cc;
}
public void setSy(String sy)
{
this.sy = sy;
}
public String getSy()
{
return sy;
}
public void setYj(String yj)
{
this.yj = yj;
}
public String getYj()
{
return yj;
}
public void setZjymd(String zjymd)
{
this.zjymd = zjymd;
}
public String getZjymd()
{
return zjymd;
}
public void setZjzy(String zjzy)
{
this.zjzy = zjzy;
}
public String getZjzy()
{
return zjzy;
}
public void setZjzs(String zjzs)
{
this.zjzs = zjzs;
}
public String getZjzs()
{
return zjzs;
}
public void setZjpl(String zjpl)
{
this.zjpl = zjpl;
}
public String getZjpl()
{
return zjpl;
}
public void setZjby(String zjby)
{
this.zjby = zjby;
}
public String getZjby()
{
return zjby;
}
public void setGtzj(String gtzj)
{
this.gtzj = gtzj;
}
public String getGtzj()
{
return gtzj;
}
public void setZjjg(String zjjg)
{
this.zjjg = zjjg;
}
public String getZjjg()
{
return zjjg;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("jh", getJh())
.append("jd", getJd())
.append("ztxh", getZtxh())
.append("cj", getCj())
.append("cc", getCc())
.append("sy", getSy())
.append("yj", getYj())
.append("zjymd", getZjymd())
.append("zjzy", getZjzy())
.append("zjzs", getZjzs())
.append("zjpl", getZjpl())
.append("zjby", getZjby())
.append("gtzj", getGtzj())
.append("zjjg", getZjjg())
.toString();
}
}
package com.ruoyi.project.zjsgfa.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
/**
* 设计-钻具参数信息对象 sj_zjcsxx
*
* @author ruoyi
* @date 2025-08-18
*/
public class SjZjcsxx extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 井号 */
@Excel(name = "井号")
private String jh;
/** 钻进钻压 */
@Excel(name = "钻进钻压")
private String zjzy;
/** 钻进转速 */
@Excel(name = "钻进转速")
private String zjzs;
/** 批量 */
@Excel(name = "批量")
private String zjpl;
/** 泵压 */
@Excel(name = "泵压")
private String zjby;
/** 缸套直径 */
@Excel(name = "缸套直径")
private String gtzj;
/** 开次 */
@Excel(name = "开次")
private String kc;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setJh(String jh)
{
this.jh = jh;
}
public String getJh()
{
return jh;
}
public void setZjzy(String zjzy)
{
this.zjzy = zjzy;
}
public String getZjzy()
{
return zjzy;
}
public void setZjzs(String zjzs)
{
this.zjzs = zjzs;
}
public String getZjzs()
{
return zjzs;
}
public void setZjpl(String zjpl)
{
this.zjpl = zjpl;
}
public String getZjpl()
{
return zjpl;
}
public void setZjby(String zjby)
{
this.zjby = zjby;
}
public String getZjby()
{
return zjby;
}
public void setGtzj(String gtzj)
{
this.gtzj = gtzj;
}
public String getGtzj()
{
return gtzj;
}
public void setKc(String kc)
{
this.kc = kc;
}
public String getKc()
{
return kc;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("jh", getJh())
.append("zjzy", getZjzy())
.append("zjzs", getZjzs())
.append("zjpl", getZjpl())
.append("zjby", getZjby())
.append("gtzj", getGtzj())
.append("kc", getKc())
.toString();
}
}
...@@ -2,6 +2,7 @@ package com.ruoyi.project.zjsgfa.domain; ...@@ -2,6 +2,7 @@ package com.ruoyi.project.zjsgfa.domain;
import java.util.Date; import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel; import com.ruoyi.framework.aspectj.lang.annotation.Excel;
...@@ -13,6 +14,7 @@ import com.ruoyi.framework.web.domain.BaseEntity; ...@@ -13,6 +14,7 @@ import com.ruoyi.framework.web.domain.BaseEntity;
* @author ruoyi * @author ruoyi
* @date 2025-07-17 * @date 2025-07-17
*/ */
@Data
public class SjZjyCljl extends BaseEntity public class SjZjyCljl extends BaseEntity
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -56,6 +58,8 @@ public class SjZjyCljl extends BaseEntity ...@@ -56,6 +58,8 @@ public class SjZjyCljl extends BaseEntity
@Excel(name = "创建人") @Excel(name = "创建人")
private String createdBy; private String createdBy;
private Integer num;
/** 创建时间 */ /** 创建时间 */
@JsonFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd") @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
......
package com.ruoyi.project.zjsgfa.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
/**
* 设计-钻头参数信息对象 sj_ztcsxx
*
* @author ruoyi
* @date 2025-08-18
*/
public class SjZtcsxx extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 井号 */
@Excel(name = "井号")
private String jh;
/** 类别(邻井推荐/自定义) */
@Excel(name = "类别", readConverterExp = "邻=井推荐/自定义")
private String lb;
/** 钻头型号 */
@Excel(name = "钻头型号")
private String ztxh;
/** 刀翼 */
@Excel(name = "刀翼")
private String dy;
/** 复合片 */
@Excel(name = "复合片")
private String ffp;
/** 水眼 */
@Excel(name = "水眼")
private String sy;
/** 复合片齿形 */
@Excel(name = "复合片齿形")
private String ffpcx;
/** 开次 */
@Excel(name = "开次")
private String kc;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setJh(String jh)
{
this.jh = jh;
}
public String getJh()
{
return jh;
}
public void setLb(String lb)
{
this.lb = lb;
}
public String getLb()
{
return lb;
}
public void setZtxh(String ztxh)
{
this.ztxh = ztxh;
}
public String getZtxh()
{
return ztxh;
}
public void setDy(String dy)
{
this.dy = dy;
}
public String getDy()
{
return dy;
}
public void setFfp(String ffp)
{
this.ffp = ffp;
}
public String getFfp()
{
return ffp;
}
public void setSy(String sy)
{
this.sy = sy;
}
public String getSy()
{
return sy;
}
public void setFfpcx(String ffpcx)
{
this.ffpcx = ffpcx;
}
public String getFfpcx()
{
return ffpcx;
}
public void setKc(String kc)
{
this.kc = kc;
}
public String getKc()
{
return kc;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("jh", getJh())
.append("lb", getLb())
.append("ztxh", getZtxh())
.append("dy", getDy())
.append("ffp", getFfp())
.append("sy", getSy())
.append("ffpcx", getFfpcx())
.append("kc", getKc())
.toString();
}
}
package com.ruoyi.project.zjsgfa.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
/**
* 设计-钻头选型对象 sj_ztxx
*
* @author ruoyi
* @date 2025-08-18
*/
public class SjZtxx extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 井号 */
@Excel(name = "井号")
private String jh;
/** 类别(邻井推荐/自定义) */
@Excel(name = "类别", readConverterExp = "邻=井推荐/自定义")
private String lb;
/** 钻头型号 */
@Excel(name = "钻头型号")
private String ztxh;
/** 开次 */
@Excel(name = "开次")
private String kc;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setJh(String jh)
{
this.jh = jh;
}
public String getJh()
{
return jh;
}
public void setLb(String lb)
{
this.lb = lb;
}
public String getLb()
{
return lb;
}
public void setZtxh(String ztxh)
{
this.ztxh = ztxh;
}
public String getZtxh()
{
return ztxh;
}
public void setKc(String kc)
{
this.kc = kc;
}
public String getKc()
{
return kc;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("jh", getJh())
.append("lb", getLb())
.append("ztxh", getZtxh())
.append("kc", getKc())
.toString();
}
}
package com.ruoyi.project.zjsgfa.mapper;
import java.util.List;
import com.ruoyi.project.zjsgfa.domain.SjLjtjzt;
/**
* 设计-邻井推荐钻头Mapper接口
*
* @author ruoyi
* @date 2025-08-18
*/
public interface SjLjtjztMapper
{
/**
* 查询设计-邻井推荐钻头
*
* @param id 设计-邻井推荐钻头主键
* @return 设计-邻井推荐钻头
*/
public SjLjtjzt selectSjLjtjztById(Long id);
/**
* 查询设计-邻井推荐钻头列表
*
* @param sjLjtjzt 设计-邻井推荐钻头
* @return 设计-邻井推荐钻头集合
*/
public List<SjLjtjzt> selectSjLjtjztList(SjLjtjzt sjLjtjzt);
/**
* 新增设计-邻井推荐钻头
*
* @param sjLjtjzt 设计-邻井推荐钻头
* @return 结果
*/
public int insertSjLjtjzt(SjLjtjzt sjLjtjzt);
/**
* 修改设计-邻井推荐钻头
*
* @param sjLjtjzt 设计-邻井推荐钻头
* @return 结果
*/
public int updateSjLjtjzt(SjLjtjzt sjLjtjzt);
/**
* 删除设计-邻井推荐钻头
*
* @param id 设计-邻井推荐钻头主键
* @return 结果
*/
public int deleteSjLjtjztById(Long id);
/**
* 批量删除设计-邻井推荐钻头
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteSjLjtjztByIds(Long[] ids);
int insertSjLjtjztBatch(List<SjLjtjzt> sjLjtjztList);
}
package com.ruoyi.project.zjsgfa.mapper;
import java.util.List;
import com.ruoyi.project.zjsgfa.domain.SjSggyGjsbxnyq;
/**
* 设计-施工概要-关键设备性能要求Mapper接口
*
* @author ruoyi
* @date 2025-08-18
*/
public interface SjSggyGjsbxnyqMapper
{
/**
* 查询设计-施工概要-关键设备性能要求
*
* @param id 设计-施工概要-关键设备性能要求主键
* @return 设计-施工概要-关键设备性能要求
*/
public SjSggyGjsbxnyq selectSjSggyGjsbxnyqById(Long id);
/**
* 查询设计-施工概要-关键设备性能要求列表
*
* @param sjSggyGjsbxnyq 设计-施工概要-关键设备性能要求
* @return 设计-施工概要-关键设备性能要求集合
*/
public List<SjSggyGjsbxnyq> selectSjSggyGjsbxnyqList(SjSggyGjsbxnyq sjSggyGjsbxnyq);
/**
* 新增设计-施工概要-关键设备性能要求
*
* @param sjSggyGjsbxnyq 设计-施工概要-关键设备性能要求
* @return 结果
*/
public int insertSjSggyGjsbxnyq(SjSggyGjsbxnyq sjSggyGjsbxnyq);
/**
* 修改设计-施工概要-关键设备性能要求
*
* @param sjSggyGjsbxnyq 设计-施工概要-关键设备性能要求
* @return 结果
*/
public int updateSjSggyGjsbxnyq(SjSggyGjsbxnyq sjSggyGjsbxnyq);
/**
* 删除设计-施工概要-关键设备性能要求
*
* @param id 设计-施工概要-关键设备性能要求主键
* @return 结果
*/
public int deleteSjSggyGjsbxnyqById(Long id);
/**
* 批量删除设计-施工概要-关键设备性能要求
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteSjSggyGjsbxnyqByIds(Long[] ids);
}
package com.ruoyi.project.zjsgfa.mapper;
import java.util.List;
import com.ruoyi.project.zjsgfa.domain.SjSggyZjzhcs;
/**
* 设计-钻具组合参数Mapper接口
*
* @author ruoyi
* @date 2025-08-18
*/
public interface SjSggyZjzhcsMapper
{
/**
* 查询设计-钻具组合参数
*
* @param id 设计-钻具组合参数主键
* @return 设计-钻具组合参数
*/
public SjSggyZjzhcs selectSjSggyZjzhcsById(Long id);
/**
* 查询设计-钻具组合参数列表
*
* @param sjSggyZjzhcs 设计-钻具组合参数
* @return 设计-钻具组合参数集合
*/
public List<SjSggyZjzhcs> selectSjSggyZjzhcsList(SjSggyZjzhcs sjSggyZjzhcs);
/**
* 新增设计-钻具组合参数
*
* @param sjSggyZjzhcs 设计-钻具组合参数
* @return 结果
*/
public int insertSjSggyZjzhcs(SjSggyZjzhcs sjSggyZjzhcs);
/**
* 修改设计-钻具组合参数
*
* @param sjSggyZjzhcs 设计-钻具组合参数
* @return 结果
*/
public int updateSjSggyZjzhcs(SjSggyZjzhcs sjSggyZjzhcs);
/**
* 删除设计-钻具组合参数
*
* @param id 设计-钻具组合参数主键
* @return 结果
*/
public int deleteSjSggyZjzhcsById(Long id);
/**
* 批量删除设计-钻具组合参数
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteSjSggyZjzhcsByIds(Long[] ids);
}
package com.ruoyi.project.zjsgfa.mapper;
import java.util.List;
import com.ruoyi.project.zjsgfa.domain.SjZjcsxx;
/**
* 设计-钻具参数信息Mapper接口
*
* @author ruoyi
* @date 2025-08-18
*/
public interface SjZjcsxxMapper
{
/**
* 查询设计-钻具参数信息
*
* @param id 设计-钻具参数信息主键
* @return 设计-钻具参数信息
*/
public SjZjcsxx selectSjZjcsxxById(Long id);
/**
* 查询设计-钻具参数信息列表
*
* @param sjZjcsxx 设计-钻具参数信息
* @return 设计-钻具参数信息集合
*/
public List<SjZjcsxx> selectSjZjcsxxList(SjZjcsxx sjZjcsxx);
/**
* 新增设计-钻具参数信息
*
* @param sjZjcsxx 设计-钻具参数信息
* @return 结果
*/
public int insertSjZjcsxx(SjZjcsxx sjZjcsxx);
/**
* 修改设计-钻具参数信息
*
* @param sjZjcsxx 设计-钻具参数信息
* @return 结果
*/
public int updateSjZjcsxx(SjZjcsxx sjZjcsxx);
/**
* 删除设计-钻具参数信息
*
* @param id 设计-钻具参数信息主键
* @return 结果
*/
public int deleteSjZjcsxxById(Long id);
/**
* 批量删除设计-钻具参数信息
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteSjZjcsxxByIds(Long[] ids);
}
package com.ruoyi.project.zjsgfa.mapper;
import java.util.List;
import com.ruoyi.project.zjsgfa.domain.SjZtcsxx;
/**
* 设计-钻头参数信息Mapper接口
*
* @author ruoyi
* @date 2025-08-18
*/
public interface SjZtcsxxMapper
{
/**
* 查询设计-钻头参数信息
*
* @param id 设计-钻头参数信息主键
* @return 设计-钻头参数信息
*/
public SjZtcsxx selectSjZtcsxxById(Long id);
/**
* 查询设计-钻头参数信息列表
*
* @param sjZtcsxx 设计-钻头参数信息
* @return 设计-钻头参数信息集合
*/
public List<SjZtcsxx> selectSjZtcsxxList(SjZtcsxx sjZtcsxx);
/**
* 新增设计-钻头参数信息
*
* @param sjZtcsxx 设计-钻头参数信息
* @return 结果
*/
public int insertSjZtcsxx(SjZtcsxx sjZtcsxx);
/**
* 修改设计-钻头参数信息
*
* @param sjZtcsxx 设计-钻头参数信息
* @return 结果
*/
public int updateSjZtcsxx(SjZtcsxx sjZtcsxx);
/**
* 删除设计-钻头参数信息
*
* @param id 设计-钻头参数信息主键
* @return 结果
*/
public int deleteSjZtcsxxById(Long id);
/**
* 批量删除设计-钻头参数信息
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteSjZtcsxxByIds(Long[] ids);
}
package com.ruoyi.project.zjsgfa.mapper;
import java.util.List;
import com.ruoyi.project.zjsgfa.domain.SjZtxx;
/**
* 设计-钻头选型Mapper接口
*
* @author ruoyi
* @date 2025-08-18
*/
public interface SjZtxxMapper
{
/**
* 查询设计-钻头选型
*
* @param id 设计-钻头选型主键
* @return 设计-钻头选型
*/
public SjZtxx selectSjZtxxById(Long id);
/**
* 查询设计-钻头选型列表
*
* @param sjZtxx 设计-钻头选型
* @return 设计-钻头选型集合
*/
public List<SjZtxx> selectSjZtxxList(SjZtxx sjZtxx);
/**
* 新增设计-钻头选型
*
* @param sjZtxx 设计-钻头选型
* @return 结果
*/
public int insertSjZtxx(SjZtxx sjZtxx);
/**
* 修改设计-钻头选型
*
* @param sjZtxx 设计-钻头选型
* @return 结果
*/
public int updateSjZtxx(SjZtxx sjZtxx);
/**
* 删除设计-钻头选型
*
* @param id 设计-钻头选型主键
* @return 结果
*/
public int deleteSjZtxxById(Long id);
/**
* 批量删除设计-钻头选型
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteSjZtxxByIds(Long[] ids);
}
...@@ -64,4 +64,6 @@ public interface ISjDjjcService ...@@ -64,4 +64,6 @@ public interface ISjDjjcService
AjaxResult saveLjzl(CommonParam param) throws Exception; AjaxResult saveLjzl(CommonParam param) throws Exception;
AjaxResult saveZtxh(CommonParam param);
} }
package com.ruoyi.project.zjsgfa.service;
import java.util.List;
import com.ruoyi.project.zjsgfa.domain.SjLjtjzt;
/**
* 设计-邻井推荐钻头Service接口
*
* @author ruoyi
* @date 2025-08-18
*/
public interface ISjLjtjztService
{
/**
* 查询设计-邻井推荐钻头
*
* @param id 设计-邻井推荐钻头主键
* @return 设计-邻井推荐钻头
*/
public SjLjtjzt selectSjLjtjztById(Long id);
/**
* 查询设计-邻井推荐钻头列表
*
* @param sjLjtjzt 设计-邻井推荐钻头
* @return 设计-邻井推荐钻头集合
*/
public List<SjLjtjzt> selectSjLjtjztList(SjLjtjzt sjLjtjzt);
/**
* 新增设计-邻井推荐钻头
*
* @param sjLjtjzt 设计-邻井推荐钻头
* @return 结果
*/
public int insertSjLjtjzt(SjLjtjzt sjLjtjzt);
/**
* 修改设计-邻井推荐钻头
*
* @param sjLjtjzt 设计-邻井推荐钻头
* @return 结果
*/
public int updateSjLjtjzt(SjLjtjzt sjLjtjzt);
/**
* 批量删除设计-邻井推荐钻头
*
* @param ids 需要删除的设计-邻井推荐钻头主键集合
* @return 结果
*/
public int deleteSjLjtjztByIds(Long[] ids);
/**
* 删除设计-邻井推荐钻头信息
*
* @param id 设计-邻井推荐钻头主键
* @return 结果
*/
public int deleteSjLjtjztById(Long id);
}
package com.ruoyi.project.zjsgfa.service;
import java.util.List;
import com.ruoyi.project.zjsgfa.domain.SjSggyGjsbxnyq;
/**
* 设计-施工概要-关键设备性能要求Service接口
*
* @author ruoyi
* @date 2025-08-18
*/
public interface ISjSggyGjsbxnyqService
{
/**
* 查询设计-施工概要-关键设备性能要求
*
* @param id 设计-施工概要-关键设备性能要求主键
* @return 设计-施工概要-关键设备性能要求
*/
public SjSggyGjsbxnyq selectSjSggyGjsbxnyqById(Long id);
/**
* 查询设计-施工概要-关键设备性能要求列表
*
* @param sjSggyGjsbxnyq 设计-施工概要-关键设备性能要求
* @return 设计-施工概要-关键设备性能要求集合
*/
public List<SjSggyGjsbxnyq> selectSjSggyGjsbxnyqList(SjSggyGjsbxnyq sjSggyGjsbxnyq);
/**
* 新增设计-施工概要-关键设备性能要求
*
* @param sjSggyGjsbxnyq 设计-施工概要-关键设备性能要求
* @return 结果
*/
public int insertSjSggyGjsbxnyq(SjSggyGjsbxnyq sjSggyGjsbxnyq);
/**
* 修改设计-施工概要-关键设备性能要求
*
* @param sjSggyGjsbxnyq 设计-施工概要-关键设备性能要求
* @return 结果
*/
public int updateSjSggyGjsbxnyq(SjSggyGjsbxnyq sjSggyGjsbxnyq);
/**
* 批量删除设计-施工概要-关键设备性能要求
*
* @param ids 需要删除的设计-施工概要-关键设备性能要求主键集合
* @return 结果
*/
public int deleteSjSggyGjsbxnyqByIds(Long[] ids);
/**
* 删除设计-施工概要-关键设备性能要求信息
*
* @param id 设计-施工概要-关键设备性能要求主键
* @return 结果
*/
public int deleteSjSggyGjsbxnyqById(Long id);
}
package com.ruoyi.project.zjsgfa.service;
import java.util.List;
import com.ruoyi.project.zjsgfa.domain.SjSggyZjzhcs;
/**
* 设计-钻具组合参数Service接口
*
* @author ruoyi
* @date 2025-08-18
*/
public interface ISjSggyZjzhcsService
{
/**
* 查询设计-钻具组合参数
*
* @param id 设计-钻具组合参数主键
* @return 设计-钻具组合参数
*/
public SjSggyZjzhcs selectSjSggyZjzhcsById(Long id);
/**
* 查询设计-钻具组合参数列表
*
* @param sjSggyZjzhcs 设计-钻具组合参数
* @return 设计-钻具组合参数集合
*/
public List<SjSggyZjzhcs> selectSjSggyZjzhcsList(SjSggyZjzhcs sjSggyZjzhcs);
/**
* 新增设计-钻具组合参数
*
* @param sjSggyZjzhcs 设计-钻具组合参数
* @return 结果
*/
public int insertSjSggyZjzhcs(SjSggyZjzhcs sjSggyZjzhcs);
/**
* 修改设计-钻具组合参数
*
* @param sjSggyZjzhcs 设计-钻具组合参数
* @return 结果
*/
public int updateSjSggyZjzhcs(SjSggyZjzhcs sjSggyZjzhcs);
/**
* 批量删除设计-钻具组合参数
*
* @param ids 需要删除的设计-钻具组合参数主键集合
* @return 结果
*/
public int deleteSjSggyZjzhcsByIds(Long[] ids);
/**
* 删除设计-钻具组合参数信息
*
* @param id 设计-钻具组合参数主键
* @return 结果
*/
public int deleteSjSggyZjzhcsById(Long id);
}
package com.ruoyi.project.zjsgfa.service;
import java.util.List;
import com.ruoyi.project.zjsgfa.domain.SjZjcsxx;
/**
* 设计-钻具参数信息Service接口
*
* @author ruoyi
* @date 2025-08-18
*/
public interface ISjZjcsxxService
{
/**
* 查询设计-钻具参数信息
*
* @param id 设计-钻具参数信息主键
* @return 设计-钻具参数信息
*/
public SjZjcsxx selectSjZjcsxxById(Long id);
/**
* 查询设计-钻具参数信息列表
*
* @param sjZjcsxx 设计-钻具参数信息
* @return 设计-钻具参数信息集合
*/
public List<SjZjcsxx> selectSjZjcsxxList(SjZjcsxx sjZjcsxx);
/**
* 新增设计-钻具参数信息
*
* @param sjZjcsxx 设计-钻具参数信息
* @return 结果
*/
public int insertSjZjcsxx(SjZjcsxx sjZjcsxx);
/**
* 修改设计-钻具参数信息
*
* @param sjZjcsxx 设计-钻具参数信息
* @return 结果
*/
public int updateSjZjcsxx(SjZjcsxx sjZjcsxx);
/**
* 批量删除设计-钻具参数信息
*
* @param ids 需要删除的设计-钻具参数信息主键集合
* @return 结果
*/
public int deleteSjZjcsxxByIds(Long[] ids);
/**
* 删除设计-钻具参数信息信息
*
* @param id 设计-钻具参数信息主键
* @return 结果
*/
public int deleteSjZjcsxxById(Long id);
}
...@@ -60,4 +60,8 @@ public interface ISjZjyFdxnbService ...@@ -60,4 +60,8 @@ public interface ISjZjyFdxnbService
* @return 结果 * @return 结果
*/ */
public int deleteSjZjyFdxnbById(Long id); public int deleteSjZjyFdxnbById(Long id);
} }
package com.ruoyi.project.zjsgfa.service;
import java.util.List;
import com.ruoyi.project.zjsgfa.domain.SjZtcsxx;
/**
* 设计-钻头参数信息Service接口
*
* @author ruoyi
* @date 2025-08-18
*/
public interface ISjZtcsxxService
{
/**
* 查询设计-钻头参数信息
*
* @param id 设计-钻头参数信息主键
* @return 设计-钻头参数信息
*/
public SjZtcsxx selectSjZtcsxxById(Long id);
/**
* 查询设计-钻头参数信息列表
*
* @param sjZtcsxx 设计-钻头参数信息
* @return 设计-钻头参数信息集合
*/
public List<SjZtcsxx> selectSjZtcsxxList(SjZtcsxx sjZtcsxx);
/**
* 新增设计-钻头参数信息
*
* @param sjZtcsxx 设计-钻头参数信息
* @return 结果
*/
public int insertSjZtcsxx(SjZtcsxx sjZtcsxx);
/**
* 修改设计-钻头参数信息
*
* @param sjZtcsxx 设计-钻头参数信息
* @return 结果
*/
public int updateSjZtcsxx(SjZtcsxx sjZtcsxx);
/**
* 批量删除设计-钻头参数信息
*
* @param ids 需要删除的设计-钻头参数信息主键集合
* @return 结果
*/
public int deleteSjZtcsxxByIds(Long[] ids);
/**
* 删除设计-钻头参数信息信息
*
* @param id 设计-钻头参数信息主键
* @return 结果
*/
public int deleteSjZtcsxxById(Long id);
}
package com.ruoyi.project.zjsgfa.service;
import java.util.List;
import com.ruoyi.project.zjsgfa.domain.SjZtxx;
/**
* 设计-钻头选型Service接口
*
* @author ruoyi
* @date 2025-08-18
*/
public interface ISjZtxxService
{
/**
* 查询设计-钻头选型
*
* @param id 设计-钻头选型主键
* @return 设计-钻头选型
*/
public SjZtxx selectSjZtxxById(Long id);
/**
* 查询设计-钻头选型列表
*
* @param sjZtxx 设计-钻头选型
* @return 设计-钻头选型集合
*/
public List<SjZtxx> selectSjZtxxList(SjZtxx sjZtxx);
/**
* 新增设计-钻头选型
*
* @param sjZtxx 设计-钻头选型
* @return 结果
*/
public int insertSjZtxx(SjZtxx sjZtxx);
/**
* 修改设计-钻头选型
*
* @param sjZtxx 设计-钻头选型
* @return 结果
*/
public int updateSjZtxx(SjZtxx sjZtxx);
/**
* 批量删除设计-钻头选型
*
* @param ids 需要删除的设计-钻头选型主键集合
* @return 结果
*/
public int deleteSjZtxxByIds(Long[] ids);
/**
* 删除设计-钻头选型信息
*
* @param id 设计-钻头选型主键
* @return 结果
*/
public int deleteSjZtxxById(Long id);
}
package com.ruoyi.project.zjsgfa.service.impl; package com.ruoyi.project.zjsgfa.service.impl;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Comparator;
import java.util.List; import java.util.List;
import java.util.stream.Collectors;
import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.SecurityUtils; import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.common.utils.bean.BeanUtils; import com.ruoyi.common.utils.bean.BeanUtils;
...@@ -44,6 +47,13 @@ public class SjDjjcServiceImpl implements ISjDjjcService ...@@ -44,6 +47,13 @@ public class SjDjjcServiceImpl implements ISjDjjcService
@Autowired @Autowired
private SjSzfxjgMapper sjSzfxjgMapper; private SjSzfxjgMapper sjSzfxjgMapper;
@Autowired
private SjLjtjztMapper sjLjtjztMapper;
@Autowired
private SjZtxxMapper sjZtxxMapper;
/** /**
* 查询设计信息-井基础信息 * 查询设计信息-井基础信息
* *
...@@ -236,5 +246,52 @@ public class SjDjjcServiceImpl implements ISjDjjcService ...@@ -236,5 +246,52 @@ public class SjDjjcServiceImpl implements ISjDjjcService
return AjaxResult.success(); return AjaxResult.success();
} }
@Override
public AjaxResult saveZtxh(CommonParam param) {
String jh = param.getSjjh();
SjZtgjsj sjZtgjsj = new SjZtgjsj();
sjZtgjsj.setJh(jh);
List<SjZtgjsj> sjZtgjsjList = sjZtgjsjMapper.selectSjZtgjsjList(sjZtgjsj);
SjJsjg sjJsjg = new SjJsjg();
sjJsjg.setJh(jh);
List<SjJsjg> sjJsjgList = sjJsjgMapper.selectSjJsjgList(sjJsjg);
List<SjLjtjzt> sjLjtjztList=new ArrayList<>();
for(int i=0;i<sjJsjgList.size();i++){
SjJsjg sjJsjg1 = sjJsjgList.get(i);
final int kc=i+1;
//查询钻头关键数据
List<SjZtgjsj> collect = sjZtgjsjList.stream().filter(it -> it.getKc().equals(kc + "")).collect(Collectors.toList()).stream().sorted(Comparator.comparing(SjZtgjsj::getJxzs)).collect(Collectors.toList());
if(collect.size()>3){
collect=collect.subList(0,3);
}
SjZtxx sjZtxx =new SjZtxx();
collect.forEach(it->{
SjLjtjzt sjLjtjzt=new SjLjtjzt();
sjLjtjzt.setJh(jh);
sjLjtjzt.setLjjh(it.getLjjh());
sjLjtjzt.setKc(sjJsjg1.getKc());
sjLjtjzt.setCc(it.getZtcc());
sjLjtjzt.setZtxh(it.getZtxh());
sjLjtjzt.setSy(it.getPz());
sjLjtjzt.setZjjd(it.getJd());
sjLjtjzt.setCw(it.getCw());
sjLjtjzt.setJxzs(it.getJxzs());
sjLjtjztList.add(sjLjtjzt);
});
if(collect.size()>0){
sjZtxx.setJh(jh);
sjZtxx.setLb("邻井推荐");
sjZtxx.setKc(sjJsjg1.getKc());
sjZtxx.setZtxh(collect.get(0).getZtxh());
sjZtxxMapper.insertSjZtxx(sjZtxx);
}
}
if(sjLjtjztList.size()>0){
sjLjtjztMapper.insertSjLjtjztBatch(sjLjtjztList);
}
return AjaxResult.success("计算成功");
}
} }
package com.ruoyi.project.zjsgfa.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.zjsgfa.mapper.SjLjtjztMapper;
import com.ruoyi.project.zjsgfa.domain.SjLjtjzt;
import com.ruoyi.project.zjsgfa.service.ISjLjtjztService;
/**
* 设计-邻井推荐钻头Service业务层处理
*
* @author ruoyi
* @date 2025-08-18
*/
@Service
public class SjLjtjztServiceImpl implements ISjLjtjztService
{
@Autowired
private SjLjtjztMapper sjLjtjztMapper;
/**
* 查询设计-邻井推荐钻头
*
* @param id 设计-邻井推荐钻头主键
* @return 设计-邻井推荐钻头
*/
@Override
public SjLjtjzt selectSjLjtjztById(Long id)
{
return sjLjtjztMapper.selectSjLjtjztById(id);
}
/**
* 查询设计-邻井推荐钻头列表
*
* @param sjLjtjzt 设计-邻井推荐钻头
* @return 设计-邻井推荐钻头
*/
@Override
public List<SjLjtjzt> selectSjLjtjztList(SjLjtjzt sjLjtjzt)
{
return sjLjtjztMapper.selectSjLjtjztList(sjLjtjzt);
}
/**
* 新增设计-邻井推荐钻头
*
* @param sjLjtjzt 设计-邻井推荐钻头
* @return 结果
*/
@Override
public int insertSjLjtjzt(SjLjtjzt sjLjtjzt)
{
return sjLjtjztMapper.insertSjLjtjzt(sjLjtjzt);
}
/**
* 修改设计-邻井推荐钻头
*
* @param sjLjtjzt 设计-邻井推荐钻头
* @return 结果
*/
@Override
public int updateSjLjtjzt(SjLjtjzt sjLjtjzt)
{
return sjLjtjztMapper.updateSjLjtjzt(sjLjtjzt);
}
/**
* 批量删除设计-邻井推荐钻头
*
* @param ids 需要删除的设计-邻井推荐钻头主键
* @return 结果
*/
@Override
public int deleteSjLjtjztByIds(Long[] ids)
{
return sjLjtjztMapper.deleteSjLjtjztByIds(ids);
}
/**
* 删除设计-邻井推荐钻头信息
*
* @param id 设计-邻井推荐钻头主键
* @return 结果
*/
@Override
public int deleteSjLjtjztById(Long id)
{
return sjLjtjztMapper.deleteSjLjtjztById(id);
}
}
package com.ruoyi.project.zjsgfa.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.zjsgfa.mapper.SjSggyGjsbxnyqMapper;
import com.ruoyi.project.zjsgfa.domain.SjSggyGjsbxnyq;
import com.ruoyi.project.zjsgfa.service.ISjSggyGjsbxnyqService;
/**
* 设计-施工概要-关键设备性能要求Service业务层处理
*
* @author ruoyi
* @date 2025-08-18
*/
@Service
public class SjSggyGjsbxnyqServiceImpl implements ISjSggyGjsbxnyqService
{
@Autowired
private SjSggyGjsbxnyqMapper sjSggyGjsbxnyqMapper;
/**
* 查询设计-施工概要-关键设备性能要求
*
* @param id 设计-施工概要-关键设备性能要求主键
* @return 设计-施工概要-关键设备性能要求
*/
@Override
public SjSggyGjsbxnyq selectSjSggyGjsbxnyqById(Long id)
{
return sjSggyGjsbxnyqMapper.selectSjSggyGjsbxnyqById(id);
}
/**
* 查询设计-施工概要-关键设备性能要求列表
*
* @param sjSggyGjsbxnyq 设计-施工概要-关键设备性能要求
* @return 设计-施工概要-关键设备性能要求
*/
@Override
public List<SjSggyGjsbxnyq> selectSjSggyGjsbxnyqList(SjSggyGjsbxnyq sjSggyGjsbxnyq)
{
return sjSggyGjsbxnyqMapper.selectSjSggyGjsbxnyqList(sjSggyGjsbxnyq);
}
/**
* 新增设计-施工概要-关键设备性能要求
*
* @param sjSggyGjsbxnyq 设计-施工概要-关键设备性能要求
* @return 结果
*/
@Override
public int insertSjSggyGjsbxnyq(SjSggyGjsbxnyq sjSggyGjsbxnyq)
{
return sjSggyGjsbxnyqMapper.insertSjSggyGjsbxnyq(sjSggyGjsbxnyq);
}
/**
* 修改设计-施工概要-关键设备性能要求
*
* @param sjSggyGjsbxnyq 设计-施工概要-关键设备性能要求
* @return 结果
*/
@Override
public int updateSjSggyGjsbxnyq(SjSggyGjsbxnyq sjSggyGjsbxnyq)
{
return sjSggyGjsbxnyqMapper.updateSjSggyGjsbxnyq(sjSggyGjsbxnyq);
}
/**
* 批量删除设计-施工概要-关键设备性能要求
*
* @param ids 需要删除的设计-施工概要-关键设备性能要求主键
* @return 结果
*/
@Override
public int deleteSjSggyGjsbxnyqByIds(Long[] ids)
{
return sjSggyGjsbxnyqMapper.deleteSjSggyGjsbxnyqByIds(ids);
}
/**
* 删除设计-施工概要-关键设备性能要求信息
*
* @param id 设计-施工概要-关键设备性能要求主键
* @return 结果
*/
@Override
public int deleteSjSggyGjsbxnyqById(Long id)
{
return sjSggyGjsbxnyqMapper.deleteSjSggyGjsbxnyqById(id);
}
}
package com.ruoyi.project.zjsgfa.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.zjsgfa.mapper.SjSggyZjzhcsMapper;
import com.ruoyi.project.zjsgfa.domain.SjSggyZjzhcs;
import com.ruoyi.project.zjsgfa.service.ISjSggyZjzhcsService;
/**
* 设计-钻具组合参数Service业务层处理
*
* @author ruoyi
* @date 2025-08-18
*/
@Service
public class SjSggyZjzhcsServiceImpl implements ISjSggyZjzhcsService
{
@Autowired
private SjSggyZjzhcsMapper sjSggyZjzhcsMapper;
/**
* 查询设计-钻具组合参数
*
* @param id 设计-钻具组合参数主键
* @return 设计-钻具组合参数
*/
@Override
public SjSggyZjzhcs selectSjSggyZjzhcsById(Long id)
{
return sjSggyZjzhcsMapper.selectSjSggyZjzhcsById(id);
}
/**
* 查询设计-钻具组合参数列表
*
* @param sjSggyZjzhcs 设计-钻具组合参数
* @return 设计-钻具组合参数
*/
@Override
public List<SjSggyZjzhcs> selectSjSggyZjzhcsList(SjSggyZjzhcs sjSggyZjzhcs)
{
return sjSggyZjzhcsMapper.selectSjSggyZjzhcsList(sjSggyZjzhcs);
}
/**
* 新增设计-钻具组合参数
*
* @param sjSggyZjzhcs 设计-钻具组合参数
* @return 结果
*/
@Override
public int insertSjSggyZjzhcs(SjSggyZjzhcs sjSggyZjzhcs)
{
return sjSggyZjzhcsMapper.insertSjSggyZjzhcs(sjSggyZjzhcs);
}
/**
* 修改设计-钻具组合参数
*
* @param sjSggyZjzhcs 设计-钻具组合参数
* @return 结果
*/
@Override
public int updateSjSggyZjzhcs(SjSggyZjzhcs sjSggyZjzhcs)
{
return sjSggyZjzhcsMapper.updateSjSggyZjzhcs(sjSggyZjzhcs);
}
/**
* 批量删除设计-钻具组合参数
*
* @param ids 需要删除的设计-钻具组合参数主键
* @return 结果
*/
@Override
public int deleteSjSggyZjzhcsByIds(Long[] ids)
{
return sjSggyZjzhcsMapper.deleteSjSggyZjzhcsByIds(ids);
}
/**
* 删除设计-钻具组合参数信息
*
* @param id 设计-钻具组合参数主键
* @return 结果
*/
@Override
public int deleteSjSggyZjzhcsById(Long id)
{
return sjSggyZjzhcsMapper.deleteSjSggyZjzhcsById(id);
}
}
package com.ruoyi.project.zjsgfa.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.zjsgfa.mapper.SjZjcsxxMapper;
import com.ruoyi.project.zjsgfa.domain.SjZjcsxx;
import com.ruoyi.project.zjsgfa.service.ISjZjcsxxService;
/**
* 设计-钻具参数信息Service业务层处理
*
* @author ruoyi
* @date 2025-08-18
*/
@Service
public class SjZjcsxxServiceImpl implements ISjZjcsxxService
{
@Autowired
private SjZjcsxxMapper sjZjcsxxMapper;
/**
* 查询设计-钻具参数信息
*
* @param id 设计-钻具参数信息主键
* @return 设计-钻具参数信息
*/
@Override
public SjZjcsxx selectSjZjcsxxById(Long id)
{
return sjZjcsxxMapper.selectSjZjcsxxById(id);
}
/**
* 查询设计-钻具参数信息列表
*
* @param sjZjcsxx 设计-钻具参数信息
* @return 设计-钻具参数信息
*/
@Override
public List<SjZjcsxx> selectSjZjcsxxList(SjZjcsxx sjZjcsxx)
{
return sjZjcsxxMapper.selectSjZjcsxxList(sjZjcsxx);
}
/**
* 新增设计-钻具参数信息
*
* @param sjZjcsxx 设计-钻具参数信息
* @return 结果
*/
@Override
public int insertSjZjcsxx(SjZjcsxx sjZjcsxx)
{
return sjZjcsxxMapper.insertSjZjcsxx(sjZjcsxx);
}
/**
* 修改设计-钻具参数信息
*
* @param sjZjcsxx 设计-钻具参数信息
* @return 结果
*/
@Override
public int updateSjZjcsxx(SjZjcsxx sjZjcsxx)
{
return sjZjcsxxMapper.updateSjZjcsxx(sjZjcsxx);
}
/**
* 批量删除设计-钻具参数信息
*
* @param ids 需要删除的设计-钻具参数信息主键
* @return 结果
*/
@Override
public int deleteSjZjcsxxByIds(Long[] ids)
{
return sjZjcsxxMapper.deleteSjZjcsxxByIds(ids);
}
/**
* 删除设计-钻具参数信息信息
*
* @param id 设计-钻具参数信息主键
* @return 结果
*/
@Override
public int deleteSjZjcsxxById(Long id)
{
return sjZjcsxxMapper.deleteSjZjcsxxById(id);
}
}
package com.ruoyi.project.zjsgfa.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.zjsgfa.mapper.SjZtcsxxMapper;
import com.ruoyi.project.zjsgfa.domain.SjZtcsxx;
import com.ruoyi.project.zjsgfa.service.ISjZtcsxxService;
/**
* 设计-钻头参数信息Service业务层处理
*
* @author ruoyi
* @date 2025-08-18
*/
@Service
public class SjZtcsxxServiceImpl implements ISjZtcsxxService
{
@Autowired
private SjZtcsxxMapper sjZtcsxxMapper;
/**
* 查询设计-钻头参数信息
*
* @param id 设计-钻头参数信息主键
* @return 设计-钻头参数信息
*/
@Override
public SjZtcsxx selectSjZtcsxxById(Long id)
{
return sjZtcsxxMapper.selectSjZtcsxxById(id);
}
/**
* 查询设计-钻头参数信息列表
*
* @param sjZtcsxx 设计-钻头参数信息
* @return 设计-钻头参数信息
*/
@Override
public List<SjZtcsxx> selectSjZtcsxxList(SjZtcsxx sjZtcsxx)
{
return sjZtcsxxMapper.selectSjZtcsxxList(sjZtcsxx);
}
/**
* 新增设计-钻头参数信息
*
* @param sjZtcsxx 设计-钻头参数信息
* @return 结果
*/
@Override
public int insertSjZtcsxx(SjZtcsxx sjZtcsxx)
{
return sjZtcsxxMapper.insertSjZtcsxx(sjZtcsxx);
}
/**
* 修改设计-钻头参数信息
*
* @param sjZtcsxx 设计-钻头参数信息
* @return 结果
*/
@Override
public int updateSjZtcsxx(SjZtcsxx sjZtcsxx)
{
return sjZtcsxxMapper.updateSjZtcsxx(sjZtcsxx);
}
/**
* 批量删除设计-钻头参数信息
*
* @param ids 需要删除的设计-钻头参数信息主键
* @return 结果
*/
@Override
public int deleteSjZtcsxxByIds(Long[] ids)
{
return sjZtcsxxMapper.deleteSjZtcsxxByIds(ids);
}
/**
* 删除设计-钻头参数信息信息
*
* @param id 设计-钻头参数信息主键
* @return 结果
*/
@Override
public int deleteSjZtcsxxById(Long id)
{
return sjZtcsxxMapper.deleteSjZtcsxxById(id);
}
}
package com.ruoyi.project.zjsgfa.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.zjsgfa.mapper.SjZtxxMapper;
import com.ruoyi.project.zjsgfa.domain.SjZtxx;
import com.ruoyi.project.zjsgfa.service.ISjZtxxService;
/**
* 设计-钻头选型Service业务层处理
*
* @author ruoyi
* @date 2025-08-18
*/
@Service
public class SjZtxxServiceImpl implements ISjZtxxService
{
@Autowired
private SjZtxxMapper sjZtxxMapper;
/**
* 查询设计-钻头选型
*
* @param id 设计-钻头选型主键
* @return 设计-钻头选型
*/
@Override
public SjZtxx selectSjZtxxById(Long id)
{
return sjZtxxMapper.selectSjZtxxById(id);
}
/**
* 查询设计-钻头选型列表
*
* @param sjZtxx 设计-钻头选型
* @return 设计-钻头选型
*/
@Override
public List<SjZtxx> selectSjZtxxList(SjZtxx sjZtxx)
{
return sjZtxxMapper.selectSjZtxxList(sjZtxx);
}
/**
* 新增设计-钻头选型
*
* @param sjZtxx 设计-钻头选型
* @return 结果
*/
@Override
public int insertSjZtxx(SjZtxx sjZtxx)
{
return sjZtxxMapper.insertSjZtxx(sjZtxx);
}
/**
* 修改设计-钻头选型
*
* @param sjZtxx 设计-钻头选型
* @return 结果
*/
@Override
public int updateSjZtxx(SjZtxx sjZtxx)
{
return sjZtxxMapper.updateSjZtxx(sjZtxx);
}
/**
* 批量删除设计-钻头选型
*
* @param ids 需要删除的设计-钻头选型主键
* @return 结果
*/
@Override
public int deleteSjZtxxByIds(Long[] ids)
{
return sjZtxxMapper.deleteSjZtxxByIds(ids);
}
/**
* 删除设计-钻头选型信息
*
* @param id 设计-钻头选型主键
* @return 结果
*/
@Override
public int deleteSjZtxxById(Long id)
{
return sjZtxxMapper.deleteSjZtxxById(id);
}
}
...@@ -17,10 +17,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -17,10 +17,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="fxgkcs" column="fxgkcs" /> <result property="fxgkcs" column="fxgkcs" />
<result property="zjycs" column="zjycs" /> <result property="zjycs" column="zjycs" />
<result property="zjgccs" column="zjgccs" /> <result property="zjgccs" column="zjgccs" />
<result property="zjzh" column="zjzh" />
<result property="zjzhzysx" column="zjzhzysx" />
</resultMap> </resultMap>
<sql id="selectSjFdsgcsVo"> <sql id="selectSjFdsgcsVo">
select id, jh, kc, tzqk, jdqk, gjfx, gjyh, dcyl, zyfx, fxgkcs, zjycs, zjgccs from sj_fdsgcs select id, jh, kc, tzqk, jdqk, gjfx, gjyh, dcyl, zyfx, fxgkcs, zjycs, zjgccs,zjzh,zjzhzysx from sj_fdsgcs
</sql> </sql>
<select id="selectSjFdsgcsList" parameterType="SjFdsgcs" resultMap="SjFdsgcsResult"> <select id="selectSjFdsgcsList" parameterType="SjFdsgcs" resultMap="SjFdsgcsResult">
...@@ -43,7 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -43,7 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where id = #{id} where id = #{id}
</select> </select>
<select id="selectSjFdsgcsByJhAndKc" resultType="com.ruoyi.project.zjsgfa.domain.SjFdsgcs"> <select id="selectSjFdsgcsByJhAndKc" resultType="com.ruoyi.project.zjsgfa.domain.SjFdsgcs">
select id, jh, kc, tzqk, jdqk, gjfx, gjyh, dcyl, zyfx, fxgkcs, zjycs, zjgccs from sj_fdsgcs where jh = #{jh} and kc = #{kc} select id, jh, kc, tzqk, jdqk, gjfx, gjyh, dcyl, zyfx, fxgkcs, zjycs, zjgccs,zjzh,zjzhzysx from sj_fdsgcs where jh = #{jh} and kc = #{kc}
</select> </select>
<insert id="insertSjFdsgcs" parameterType="SjFdsgcs" useGeneratedKeys="true" keyProperty="id"> <insert id="insertSjFdsgcs" parameterType="SjFdsgcs" useGeneratedKeys="true" keyProperty="id">
...@@ -60,6 +62,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -60,6 +62,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="fxgkcs != null">fxgkcs,</if> <if test="fxgkcs != null">fxgkcs,</if>
<if test="zjycs != null">zjycs,</if> <if test="zjycs != null">zjycs,</if>
<if test="zjgccs != null">zjgccs,</if> <if test="zjgccs != null">zjgccs,</if>
<if test="zjzh != null">zjzh,</if>
<if test="zjzhzysx != null">zjzhzysx,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="jh != null">#{jh},</if> <if test="jh != null">#{jh},</if>
...@@ -73,6 +77,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -73,6 +77,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="fxgkcs != null">#{fxgkcs},</if> <if test="fxgkcs != null">#{fxgkcs},</if>
<if test="zjycs != null">#{zjycs},</if> <if test="zjycs != null">#{zjycs},</if>
<if test="zjgccs != null">#{zjgccs},</if> <if test="zjgccs != null">#{zjgccs},</if>
<if test="zjzh != null">#{zjzh},</if>
<if test="zjzhzysx != null">#{zjzhzysx},</if>
</trim> </trim>
</insert> </insert>
...@@ -90,6 +96,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -90,6 +96,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="fxgkcs != null">fxgkcs = #{fxgkcs},</if> <if test="fxgkcs != null">fxgkcs = #{fxgkcs},</if>
<if test="zjycs != null">zjycs = #{zjycs},</if> <if test="zjycs != null">zjycs = #{zjycs},</if>
<if test="zjgccs != null">zjgccs = #{zjgccs},</if> <if test="zjgccs != null">zjgccs = #{zjgccs},</if>
<if test="zjzh != null">zjzh = #{zjzh},</if>
<if test="zjzhzysx != null">zjzhzysx = #{zjzhzysx},</if>
</trim> </trim>
where id = #{id} where id = #{id}
</update> </update>
......
...@@ -32,6 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -32,6 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="createdBy != null and createdBy != ''"> and created_by = #{createdBy}</if> <if test="createdBy != null and createdBy != ''"> and created_by = #{createdBy}</if>
<if test="createdTime != null "> and created_time = #{createdTime}</if> <if test="createdTime != null "> and created_time = #{createdTime}</if>
</where> </where>
order by qsjs
</select> </select>
<select id="selectSjJhzqById" parameterType="Long" resultMap="SjJhzqResult"> <select id="selectSjJhzqById" parameterType="Long" resultMap="SjJhzqResult">
......
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.project.zjsgfa.mapper.SjLjtjztMapper">
<resultMap type="SjLjtjzt" id="SjLjtjztResult">
<result property="id" column="id" />
<result property="jh" column="jh" />
<result property="ljjh" column="ljjh" />
<result property="cc" column="cc" />
<result property="ztxh" column="ztxh" />
<result property="cj" column="cj" />
<result property="sy" column="sy" />
<result property="zxd" column="zxd" />
<result property="zjjd" column="zjjd" />
<result property="cw" column="cw" />
<result property="jxzs" column="jxzs" />
<result property="kc" column="kc" />
</resultMap>
<sql id="selectSjLjtjztVo">
select id, jh, ljjh, cc, ztxh, cj, sy, zxd, zjjd, cw, jxzs, kc from sj_ljtjzt
</sql>
<select id="selectSjLjtjztList" parameterType="SjLjtjzt" resultMap="SjLjtjztResult">
<include refid="selectSjLjtjztVo"/>
<where>
<if test="jh != null and jh != ''"> and jh = #{jh}</if>
<if test="ljjh != null and ljjh != ''"> and ljjh = #{ljjh}</if>
<if test="cc != null "> and cc = #{cc}</if>
<if test="ztxh != null and ztxh != ''"> and ztxh = #{ztxh}</if>
<if test="cj != null and cj != ''"> and cj = #{cj}</if>
<if test="sy != null and sy != ''"> and sy = #{sy}</if>
<if test="zxd != null "> and zxd = #{zxd}</if>
<if test="zjjd != null and zjjd != ''"> and zjjd = #{zjjd}</if>
<if test="cw != null and cw != ''"> and cw = #{cw}</if>
<if test="jxzs != null "> and jxzs = #{jxzs}</if>
<if test="kc != null and kc != ''"> and kc = #{kc}</if>
</where>
</select>
<select id="selectSjLjtjztById" parameterType="Long" resultMap="SjLjtjztResult">
<include refid="selectSjLjtjztVo"/>
where id = #{id}
</select>
<insert id="insertSjLjtjzt" parameterType="SjLjtjzt" useGeneratedKeys="true" keyProperty="id">
insert into sj_ljtjzt
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="jh != null">jh,</if>
<if test="ljjh != null">ljjh,</if>
<if test="cc != null">cc,</if>
<if test="ztxh != null">ztxh,</if>
<if test="cj != null">cj,</if>
<if test="sy != null">sy,</if>
<if test="zxd != null">zxd,</if>
<if test="zjjd != null">zjjd,</if>
<if test="cw != null">cw,</if>
<if test="jxzs != null">jxzs,</if>
<if test="kc != null">kc,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="jh != null">#{jh},</if>
<if test="ljjh != null">#{ljjh},</if>
<if test="cc != null">#{cc},</if>
<if test="ztxh != null">#{ztxh},</if>
<if test="cj != null">#{cj},</if>
<if test="sy != null">#{sy},</if>
<if test="zxd != null">#{zxd},</if>
<if test="zjjd != null">#{zjjd},</if>
<if test="cw != null">#{cw},</if>
<if test="jxzs != null">#{jxzs},</if>
<if test="kc != null">#{kc},</if>
</trim>
</insert>
<insert id="insertSjLjtjztBatch">
insert into sj_ljtjzt ( jh, ljjh, cc, ztxh, cj, sy, zxd, zjjd, cw, jxzs, kc) values
<foreach item="item" index="index" collection="list" separator=",">
( #{item.jh}, #{item.ljjh}, #{item.cc}, #{item.ztxh}, #{item.cj}, #{item.sy}, #{item.zxd}, #{item.zjjd}, #{item.cw}, #{item.jxzs} ,#{item.kc})
</foreach>
</insert>
<update id="updateSjLjtjzt" parameterType="SjLjtjzt">
update sj_ljtjzt
<trim prefix="SET" suffixOverrides=",">
<if test="jh != null">jh = #{jh},</if>
<if test="ljjh != null">ljjh = #{ljjh},</if>
<if test="cc != null">cc = #{cc},</if>
<if test="ztxh != null">ztxh = #{ztxh},</if>
<if test="cj != null">cj = #{cj},</if>
<if test="sy != null">sy = #{sy},</if>
<if test="zxd != null">zxd = #{zxd},</if>
<if test="zjjd != null">zjjd = #{zjjd},</if>
<if test="cw != null">cw = #{cw},</if>
<if test="jxzs != null">jxzs = #{jxzs},</if>
<if test="kc != null">kc = #{kc},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteSjLjtjztById" parameterType="Long">
delete from sj_ljtjzt where id = #{id}
</delete>
<delete id="deleteSjLjtjztByIds" parameterType="String">
delete from sj_ljtjzt where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.project.zjsgfa.mapper.SjSggyGjsbxnyqMapper">
<resultMap type="SjSggyGjsbxnyq" id="SjSggyGjsbxnyqResult">
<result property="id" column="id" />
<result property="jh" column="jh" />
<result property="zjxh" column="zjxh" />
<result property="wddy" column="wddy" />
<result property="dkwdscgl" column="dkwdscgl" />
<result property="zjnlZjlx" column="zjnl_zjlx" />
<result property="zjnlZdcsll" column="zjnl_zdcsll" />
<result property="zjnlZgcsby" column="zjnl_zgcsby" />
<result property="xzxtDdzp" column="xzxt_ddzp" />
<result property="xzxtDq" column="xzxt_dq" />
<result property="xhxtB1lx" column="xhxt_b1lx" />
<result property="xhxtB1xh" column="xhxt_b1xh" />
<result property="xhxtB1zdgl" column="xhxt_b1zdgl" />
<result property="xhxtB2lx" column="xhxt_b2lx" />
<result property="xhxtB2xh" column="xhxt_b2xh" />
<result property="xhxtB2zdgl" column="xhxt_b2zdgl" />
<result property="xhxtB3lx" column="xhxt_b3lx" />
<result property="xhxtB3xh" column="xhxt_b3xh" />
<result property="xhxtB3zdgl" column="xhxt_b3zdgl" />
<result property="gksbZdslx" column="gksb_zdslx" />
<result property="gksbLxj1lx" column="gksb_lxj1lx" />
<result property="gksbLxj1zdjgl" column="gksb_lxj1zdjgl" />
<result property="gksbLxj2lx" column="gksb_lxj2lx" />
<result property="gksbLxj2zdjgl" column="gksb_lxj2zdjgl" />
<result property="gksbLxj3lx" column="gksb_lxj3lx" />
<result property="gksbLxj3zdjgl" column="gksb_lxj3zdjgl" />
<result property="xhgSl" column="xhg_sl" />
<result property="xhgZrl" column="xhg_zrl" />
<result property="cbgSl" column="cbg_sl" />
<result property="cbgZrl" column="cbg_zrl" />
</resultMap>
<sql id="selectSjSggyGjsbxnyqVo">
select id, jh, zjxh, wddy, dkwdscgl, zjnl_zjlx, zjnl_zdcsll, zjnl_zgcsby, xzxt_ddzp, xzxt_dq, xhxt_b1lx, xhxt_b1xh, xhxt_b1zdgl, xhxt_b2lx, xhxt_b2xh, xhxt_b2zdgl, xhxt_b3lx, xhxt_b3xh, xhxt_b3zdgl, gksb_zdslx, gksb_lxj1lx, gksb_lxj1zdjgl, gksb_lxj2lx, gksb_lxj2zdjgl, gksb_lxj3lx, gksb_lxj3zdjgl, xhg_sl, xhg_zrl, cbg_sl, cbg_zrl from sj_sggy_gjsbxnyq
</sql>
<select id="selectSjSggyGjsbxnyqList" parameterType="SjSggyGjsbxnyq" resultMap="SjSggyGjsbxnyqResult">
<include refid="selectSjSggyGjsbxnyqVo"/>
<where>
<if test="jh != null and jh != ''"> and jh = #{jh}</if>
<if test="zjxh != null and zjxh != ''"> and zjxh = #{zjxh}</if>
<if test="wddy != null and wddy != ''"> and wddy = #{wddy}</if>
<if test="dkwdscgl != null and dkwdscgl != ''"> and dkwdscgl = #{dkwdscgl}</if>
<if test="zjnlZjlx != null and zjnlZjlx != ''"> and zjnl_zjlx = #{zjnlZjlx}</if>
<if test="zjnlZdcsll != null and zjnlZdcsll != ''"> and zjnl_zdcsll = #{zjnlZdcsll}</if>
<if test="zjnlZgcsby != null and zjnlZgcsby != ''"> and zjnl_zgcsby = #{zjnlZgcsby}</if>
<if test="xzxtDdzp != null and xzxtDdzp != ''"> and xzxt_ddzp = #{xzxtDdzp}</if>
<if test="xzxtDq != null and xzxtDq != ''"> and xzxt_dq = #{xzxtDq}</if>
<if test="xhxtB1lx != null and xhxtB1lx != ''"> and xhxt_b1lx = #{xhxtB1lx}</if>
<if test="xhxtB1xh != null and xhxtB1xh != ''"> and xhxt_b1xh = #{xhxtB1xh}</if>
<if test="xhxtB1zdgl != null and xhxtB1zdgl != ''"> and xhxt_b1zdgl = #{xhxtB1zdgl}</if>
<if test="xhxtB2lx != null and xhxtB2lx != ''"> and xhxt_b2lx = #{xhxtB2lx}</if>
<if test="xhxtB2xh != null and xhxtB2xh != ''"> and xhxt_b2xh = #{xhxtB2xh}</if>
<if test="xhxtB2zdgl != null and xhxtB2zdgl != ''"> and xhxt_b2zdgl = #{xhxtB2zdgl}</if>
<if test="xhxtB3lx != null and xhxtB3lx != ''"> and xhxt_b3lx = #{xhxtB3lx}</if>
<if test="xhxtB3xh != null and xhxtB3xh != ''"> and xhxt_b3xh = #{xhxtB3xh}</if>
<if test="xhxtB3zdgl != null and xhxtB3zdgl != ''"> and xhxt_b3zdgl = #{xhxtB3zdgl}</if>
<if test="gksbZdslx != null and gksbZdslx != ''"> and gksb_zdslx = #{gksbZdslx}</if>
<if test="gksbLxj1lx != null and gksbLxj1lx != ''"> and gksb_lxj1lx = #{gksbLxj1lx}</if>
<if test="gksbLxj1zdjgl != null and gksbLxj1zdjgl != ''"> and gksb_lxj1zdjgl = #{gksbLxj1zdjgl}</if>
<if test="gksbLxj2lx != null and gksbLxj2lx != ''"> and gksb_lxj2lx = #{gksbLxj2lx}</if>
<if test="gksbLxj2zdjgl != null and gksbLxj2zdjgl != ''"> and gksb_lxj2zdjgl = #{gksbLxj2zdjgl}</if>
<if test="gksbLxj3lx != null and gksbLxj3lx != ''"> and gksb_lxj3lx = #{gksbLxj3lx}</if>
<if test="gksbLxj3zdjgl != null and gksbLxj3zdjgl != ''"> and gksb_lxj3zdjgl = #{gksbLxj3zdjgl}</if>
<if test="xhgSl != null and xhgSl != ''"> and xhg_sl = #{xhgSl}</if>
<if test="xhgZrl != null and xhgZrl != ''"> and xhg_zrl = #{xhgZrl}</if>
<if test="cbgSl != null and cbgSl != ''"> and cbg_sl = #{cbgSl}</if>
<if test="cbgZrl != null and cbgZrl != ''"> and cbg_zrl = #{cbgZrl}</if>
</where>
</select>
<select id="selectSjSggyGjsbxnyqById" parameterType="Long" resultMap="SjSggyGjsbxnyqResult">
<include refid="selectSjSggyGjsbxnyqVo"/>
where id = #{id}
</select>
<insert id="insertSjSggyGjsbxnyq" parameterType="SjSggyGjsbxnyq" useGeneratedKeys="true" keyProperty="id">
insert into sj_sggy_gjsbxnyq
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="jh != null">jh,</if>
<if test="zjxh != null">zjxh,</if>
<if test="wddy != null">wddy,</if>
<if test="dkwdscgl != null">dkwdscgl,</if>
<if test="zjnlZjlx != null">zjnl_zjlx,</if>
<if test="zjnlZdcsll != null">zjnl_zdcsll,</if>
<if test="zjnlZgcsby != null">zjnl_zgcsby,</if>
<if test="xzxtDdzp != null">xzxt_ddzp,</if>
<if test="xzxtDq != null">xzxt_dq,</if>
<if test="xhxtB1lx != null">xhxt_b1lx,</if>
<if test="xhxtB1xh != null">xhxt_b1xh,</if>
<if test="xhxtB1zdgl != null">xhxt_b1zdgl,</if>
<if test="xhxtB2lx != null">xhxt_b2lx,</if>
<if test="xhxtB2xh != null">xhxt_b2xh,</if>
<if test="xhxtB2zdgl != null">xhxt_b2zdgl,</if>
<if test="xhxtB3lx != null">xhxt_b3lx,</if>
<if test="xhxtB3xh != null">xhxt_b3xh,</if>
<if test="xhxtB3zdgl != null">xhxt_b3zdgl,</if>
<if test="gksbZdslx != null">gksb_zdslx,</if>
<if test="gksbLxj1lx != null">gksb_lxj1lx,</if>
<if test="gksbLxj1zdjgl != null">gksb_lxj1zdjgl,</if>
<if test="gksbLxj2lx != null">gksb_lxj2lx,</if>
<if test="gksbLxj2zdjgl != null">gksb_lxj2zdjgl,</if>
<if test="gksbLxj3lx != null">gksb_lxj3lx,</if>
<if test="gksbLxj3zdjgl != null">gksb_lxj3zdjgl,</if>
<if test="xhgSl != null">xhg_sl,</if>
<if test="xhgZrl != null">xhg_zrl,</if>
<if test="cbgSl != null">cbg_sl,</if>
<if test="cbgZrl != null">cbg_zrl,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="jh != null">#{jh},</if>
<if test="zjxh != null">#{zjxh},</if>
<if test="wddy != null">#{wddy},</if>
<if test="dkwdscgl != null">#{dkwdscgl},</if>
<if test="zjnlZjlx != null">#{zjnlZjlx},</if>
<if test="zjnlZdcsll != null">#{zjnlZdcsll},</if>
<if test="zjnlZgcsby != null">#{zjnlZgcsby},</if>
<if test="xzxtDdzp != null">#{xzxtDdzp},</if>
<if test="xzxtDq != null">#{xzxtDq},</if>
<if test="xhxtB1lx != null">#{xhxtB1lx},</if>
<if test="xhxtB1xh != null">#{xhxtB1xh},</if>
<if test="xhxtB1zdgl != null">#{xhxtB1zdgl},</if>
<if test="xhxtB2lx != null">#{xhxtB2lx},</if>
<if test="xhxtB2xh != null">#{xhxtB2xh},</if>
<if test="xhxtB2zdgl != null">#{xhxtB2zdgl},</if>
<if test="xhxtB3lx != null">#{xhxtB3lx},</if>
<if test="xhxtB3xh != null">#{xhxtB3xh},</if>
<if test="xhxtB3zdgl != null">#{xhxtB3zdgl},</if>
<if test="gksbZdslx != null">#{gksbZdslx},</if>
<if test="gksbLxj1lx != null">#{gksbLxj1lx},</if>
<if test="gksbLxj1zdjgl != null">#{gksbLxj1zdjgl},</if>
<if test="gksbLxj2lx != null">#{gksbLxj2lx},</if>
<if test="gksbLxj2zdjgl != null">#{gksbLxj2zdjgl},</if>
<if test="gksbLxj3lx != null">#{gksbLxj3lx},</if>
<if test="gksbLxj3zdjgl != null">#{gksbLxj3zdjgl},</if>
<if test="xhgSl != null">#{xhgSl},</if>
<if test="xhgZrl != null">#{xhgZrl},</if>
<if test="cbgSl != null">#{cbgSl},</if>
<if test="cbgZrl != null">#{cbgZrl},</if>
</trim>
</insert>
<update id="updateSjSggyGjsbxnyq" parameterType="SjSggyGjsbxnyq">
update sj_sggy_gjsbxnyq
<trim prefix="SET" suffixOverrides=",">
<if test="jh != null">jh = #{jh},</if>
<if test="zjxh != null">zjxh = #{zjxh},</if>
<if test="wddy != null">wddy = #{wddy},</if>
<if test="dkwdscgl != null">dkwdscgl = #{dkwdscgl},</if>
<if test="zjnlZjlx != null">zjnl_zjlx = #{zjnlZjlx},</if>
<if test="zjnlZdcsll != null">zjnl_zdcsll = #{zjnlZdcsll},</if>
<if test="zjnlZgcsby != null">zjnl_zgcsby = #{zjnlZgcsby},</if>
<if test="xzxtDdzp != null">xzxt_ddzp = #{xzxtDdzp},</if>
<if test="xzxtDq != null">xzxt_dq = #{xzxtDq},</if>
<if test="xhxtB1lx != null">xhxt_b1lx = #{xhxtB1lx},</if>
<if test="xhxtB1xh != null">xhxt_b1xh = #{xhxtB1xh},</if>
<if test="xhxtB1zdgl != null">xhxt_b1zdgl = #{xhxtB1zdgl},</if>
<if test="xhxtB2lx != null">xhxt_b2lx = #{xhxtB2lx},</if>
<if test="xhxtB2xh != null">xhxt_b2xh = #{xhxtB2xh},</if>
<if test="xhxtB2zdgl != null">xhxt_b2zdgl = #{xhxtB2zdgl},</if>
<if test="xhxtB3lx != null">xhxt_b3lx = #{xhxtB3lx},</if>
<if test="xhxtB3xh != null">xhxt_b3xh = #{xhxtB3xh},</if>
<if test="xhxtB3zdgl != null">xhxt_b3zdgl = #{xhxtB3zdgl},</if>
<if test="gksbZdslx != null">gksb_zdslx = #{gksbZdslx},</if>
<if test="gksbLxj1lx != null">gksb_lxj1lx = #{gksbLxj1lx},</if>
<if test="gksbLxj1zdjgl != null">gksb_lxj1zdjgl = #{gksbLxj1zdjgl},</if>
<if test="gksbLxj2lx != null">gksb_lxj2lx = #{gksbLxj2lx},</if>
<if test="gksbLxj2zdjgl != null">gksb_lxj2zdjgl = #{gksbLxj2zdjgl},</if>
<if test="gksbLxj3lx != null">gksb_lxj3lx = #{gksbLxj3lx},</if>
<if test="gksbLxj3zdjgl != null">gksb_lxj3zdjgl = #{gksbLxj3zdjgl},</if>
<if test="xhgSl != null">xhg_sl = #{xhgSl},</if>
<if test="xhgZrl != null">xhg_zrl = #{xhgZrl},</if>
<if test="cbgSl != null">cbg_sl = #{cbgSl},</if>
<if test="cbgZrl != null">cbg_zrl = #{cbgZrl},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteSjSggyGjsbxnyqById" parameterType="Long">
delete from sj_sggy_gjsbxnyq where id = #{id}
</delete>
<delete id="deleteSjSggyGjsbxnyqByIds" parameterType="String">
delete from sj_sggy_gjsbxnyq where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.project.zjsgfa.mapper.SjSggyZjzhcsMapper">
<resultMap type="SjSggyZjzhcs" id="SjSggyZjzhcsResult">
<result property="id" column="id" />
<result property="jh" column="jh" />
<result property="jd" column="jd" />
<result property="ztxh" column="ztxh" />
<result property="cj" column="cj" />
<result property="cc" column="cc" />
<result property="sy" column="sy" />
<result property="yj" column="yj" />
<result property="zjymd" column="zjymd" />
<result property="zjzy" column="zjzy" />
<result property="zjzs" column="zjzs" />
<result property="zjpl" column="zjpl" />
<result property="zjby" column="zjby" />
<result property="gtzj" column="gtzj" />
<result property="zjjg" column="zjjg" />
</resultMap>
<sql id="selectSjSggyZjzhcsVo">
select id, jh, jd, ztxh, cj, cc, sy, yj, zjymd, zjzy, zjzs, zjpl, zjby, gtzj, zjjg from sj_sggy_zjzhcs
</sql>
<select id="selectSjSggyZjzhcsList" parameterType="SjSggyZjzhcs" resultMap="SjSggyZjzhcsResult">
<include refid="selectSjSggyZjzhcsVo"/>
<where>
<if test="jh != null and jh != ''"> and jh = #{jh}</if>
<if test="jd != null and jd != ''"> and jd = #{jd}</if>
<if test="ztxh != null and ztxh != ''"> and ztxh = #{ztxh}</if>
<if test="cj != null and cj != ''"> and cj = #{cj}</if>
<if test="cc != null and cc != ''"> and cc = #{cc}</if>
<if test="sy != null and sy != ''"> and sy = #{sy}</if>
<if test="yj != null and yj != ''"> and yj = #{yj}</if>
<if test="zjymd != null and zjymd != ''"> and zjymd = #{zjymd}</if>
<if test="zjzy != null and zjzy != ''"> and zjzy = #{zjzy}</if>
<if test="zjzs != null and zjzs != ''"> and zjzs = #{zjzs}</if>
<if test="zjpl != null and zjpl != ''"> and zjpl = #{zjpl}</if>
<if test="zjby != null and zjby != ''"> and zjby = #{zjby}</if>
<if test="gtzj != null and gtzj != ''"> and gtzj = #{gtzj}</if>
<if test="zjjg != null and zjjg != ''"> and zjjg = #{zjjg}</if>
</where>
</select>
<select id="selectSjSggyZjzhcsById" parameterType="Long" resultMap="SjSggyZjzhcsResult">
<include refid="selectSjSggyZjzhcsVo"/>
where id = #{id}
</select>
<insert id="insertSjSggyZjzhcs" parameterType="SjSggyZjzhcs" useGeneratedKeys="true" keyProperty="id">
insert into sj_sggy_zjzhcs
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="jh != null">jh,</if>
<if test="jd != null">jd,</if>
<if test="ztxh != null">ztxh,</if>
<if test="cj != null">cj,</if>
<if test="cc != null">cc,</if>
<if test="sy != null">sy,</if>
<if test="yj != null">yj,</if>
<if test="zjymd != null">zjymd,</if>
<if test="zjzy != null">zjzy,</if>
<if test="zjzs != null">zjzs,</if>
<if test="zjpl != null">zjpl,</if>
<if test="zjby != null">zjby,</if>
<if test="gtzj != null">gtzj,</if>
<if test="zjjg != null">zjjg,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="jh != null">#{jh},</if>
<if test="jd != null">#{jd},</if>
<if test="ztxh != null">#{ztxh},</if>
<if test="cj != null">#{cj},</if>
<if test="cc != null">#{cc},</if>
<if test="sy != null">#{sy},</if>
<if test="yj != null">#{yj},</if>
<if test="zjymd != null">#{zjymd},</if>
<if test="zjzy != null">#{zjzy},</if>
<if test="zjzs != null">#{zjzs},</if>
<if test="zjpl != null">#{zjpl},</if>
<if test="zjby != null">#{zjby},</if>
<if test="gtzj != null">#{gtzj},</if>
<if test="zjjg != null">#{zjjg},</if>
</trim>
</insert>
<update id="updateSjSggyZjzhcs" parameterType="SjSggyZjzhcs">
update sj_sggy_zjzhcs
<trim prefix="SET" suffixOverrides=",">
<if test="jh != null">jh = #{jh},</if>
<if test="jd != null">jd = #{jd},</if>
<if test="ztxh != null">ztxh = #{ztxh},</if>
<if test="cj != null">cj = #{cj},</if>
<if test="cc != null">cc = #{cc},</if>
<if test="sy != null">sy = #{sy},</if>
<if test="yj != null">yj = #{yj},</if>
<if test="zjymd != null">zjymd = #{zjymd},</if>
<if test="zjzy != null">zjzy = #{zjzy},</if>
<if test="zjzs != null">zjzs = #{zjzs},</if>
<if test="zjpl != null">zjpl = #{zjpl},</if>
<if test="zjby != null">zjby = #{zjby},</if>
<if test="gtzj != null">gtzj = #{gtzj},</if>
<if test="zjjg != null">zjjg = #{zjjg},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteSjSggyZjzhcsById" parameterType="Long">
delete from sj_sggy_zjzhcs where id = #{id}
</delete>
<delete id="deleteSjSggyZjzhcsByIds" parameterType="String">
delete from sj_sggy_zjzhcs where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.project.zjsgfa.mapper.SjZjcsxxMapper">
<resultMap type="SjZjcsxx" id="SjZjcsxxResult">
<result property="id" column="id" />
<result property="jh" column="jh" />
<result property="zjzy" column="zjzy" />
<result property="zjzs" column="zjzs" />
<result property="zjpl" column="zjpl" />
<result property="zjby" column="zjby" />
<result property="gtzj" column="gtzj" />
<result property="kc" column="kc" />
</resultMap>
<sql id="selectSjZjcsxxVo">
select id, jh, zjzy, zjzs, zjpl, zjby, gtzj, kc from sj_zjcsxx
</sql>
<select id="selectSjZjcsxxList" parameterType="SjZjcsxx" resultMap="SjZjcsxxResult">
<include refid="selectSjZjcsxxVo"/>
<where>
<if test="jh != null and jh != ''"> and jh = #{jh}</if>
<if test="zjzy != null and zjzy != ''"> and zjzy = #{zjzy}</if>
<if test="zjzs != null and zjzs != ''"> and zjzs = #{zjzs}</if>
<if test="zjpl != null and zjpl != ''"> and zjpl = #{zjpl}</if>
<if test="zjby != null and zjby != ''"> and zjby = #{zjby}</if>
<if test="gtzj != null and gtzj != ''"> and gtzj = #{gtzj}</if>
<if test="kc != null and kc != ''"> and kc = #{kc}</if>
</where>
</select>
<select id="selectSjZjcsxxById" parameterType="Long" resultMap="SjZjcsxxResult">
<include refid="selectSjZjcsxxVo"/>
where id = #{id}
</select>
<insert id="insertSjZjcsxx" parameterType="SjZjcsxx" useGeneratedKeys="true" keyProperty="id">
insert into sj_zjcsxx
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="jh != null">jh,</if>
<if test="zjzy != null">zjzy,</if>
<if test="zjzs != null">zjzs,</if>
<if test="zjpl != null">zjpl,</if>
<if test="zjby != null">zjby,</if>
<if test="gtzj != null">gtzj,</if>
<if test="kc != null">kc,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="jh != null">#{jh},</if>
<if test="zjzy != null">#{zjzy},</if>
<if test="zjzs != null">#{zjzs},</if>
<if test="zjpl != null">#{zjpl},</if>
<if test="zjby != null">#{zjby},</if>
<if test="gtzj != null">#{gtzj},</if>
<if test="kc != null">#{kc},</if>
</trim>
</insert>
<update id="updateSjZjcsxx" parameterType="SjZjcsxx">
update sj_zjcsxx
<trim prefix="SET" suffixOverrides=",">
<if test="jh != null">jh = #{jh},</if>
<if test="zjzy != null">zjzy = #{zjzy},</if>
<if test="zjzs != null">zjzs = #{zjzs},</if>
<if test="zjpl != null">zjpl = #{zjpl},</if>
<if test="zjby != null">zjby = #{zjby},</if>
<if test="gtzj != null">gtzj = #{gtzj},</if>
<if test="kc != null">kc = #{kc},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteSjZjcsxxById" parameterType="Long">
delete from sj_zjcsxx where id = #{id}
</delete>
<delete id="deleteSjZjcsxxByIds" parameterType="String">
delete from sj_zjcsxx where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.project.zjsgfa.mapper.SjZtcsxxMapper">
<resultMap type="SjZtcsxx" id="SjZtcsxxResult">
<result property="id" column="id" />
<result property="jh" column="jh" />
<result property="lb" column="lb" />
<result property="ztxh" column="ztxh" />
<result property="dy" column="dy" />
<result property="ffp" column="ffp" />
<result property="sy" column="sy" />
<result property="ffpcx" column="ffpcx" />
<result property="kc" column="kc" />
</resultMap>
<sql id="selectSjZtcsxxVo">
select id, jh, lb, ztxh, dy, ffp, sy, ffpcx, kc from sj_ztcsxx
</sql>
<select id="selectSjZtcsxxList" parameterType="SjZtcsxx" resultMap="SjZtcsxxResult">
<include refid="selectSjZtcsxxVo"/>
<where>
<if test="jh != null and jh != ''"> and jh = #{jh}</if>
<if test="lb != null and lb != ''"> and lb = #{lb}</if>
<if test="ztxh != null and ztxh != ''"> and ztxh = #{ztxh}</if>
<if test="dy != null and dy != ''"> and dy = #{dy}</if>
<if test="ffp != null and ffp != ''"> and ffp = #{ffp}</if>
<if test="sy != null and sy != ''"> and sy = #{sy}</if>
<if test="ffpcx != null and ffpcx != ''"> and ffpcx = #{ffpcx}</if>
<if test="kc != null and kc != ''"> and kc = #{kc}</if>
</where>
</select>
<select id="selectSjZtcsxxById" parameterType="Long" resultMap="SjZtcsxxResult">
<include refid="selectSjZtcsxxVo"/>
where id = #{id}
</select>
<insert id="insertSjZtcsxx" parameterType="SjZtcsxx" useGeneratedKeys="true" keyProperty="id">
insert into sj_ztcsxx
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="jh != null">jh,</if>
<if test="lb != null">lb,</if>
<if test="ztxh != null">ztxh,</if>
<if test="dy != null">dy,</if>
<if test="ffp != null">ffp,</if>
<if test="sy != null">sy,</if>
<if test="ffpcx != null">ffpcx,</if>
<if test="kc != null">kc,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="jh != null">#{jh},</if>
<if test="lb != null">#{lb},</if>
<if test="ztxh != null">#{ztxh},</if>
<if test="dy != null">#{dy},</if>
<if test="ffp != null">#{ffp},</if>
<if test="sy != null">#{sy},</if>
<if test="ffpcx != null">#{ffpcx},</if>
<if test="kc != null">#{kc},</if>
</trim>
</insert>
<update id="updateSjZtcsxx" parameterType="SjZtcsxx">
update sj_ztcsxx
<trim prefix="SET" suffixOverrides=",">
<if test="jh != null">jh = #{jh},</if>
<if test="lb != null">lb = #{lb},</if>
<if test="ztxh != null">ztxh = #{ztxh},</if>
<if test="dy != null">dy = #{dy},</if>
<if test="ffp != null">ffp = #{ffp},</if>
<if test="sy != null">sy = #{sy},</if>
<if test="ffpcx != null">ffpcx = #{ffpcx},</if>
<if test="kc != null">kc = #{kc},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteSjZtcsxxById" parameterType="Long">
delete from sj_ztcsxx where id = #{id}
</delete>
<delete id="deleteSjZtcsxxByIds" parameterType="String">
delete from sj_ztcsxx where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.project.zjsgfa.mapper.SjZtxxMapper">
<resultMap type="SjZtxx" id="SjZtxxResult">
<result property="id" column="id" />
<result property="jh" column="jh" />
<result property="lb" column="lb" />
<result property="ztxh" column="ztxh" />
<result property="kc" column="kc" />
</resultMap>
<sql id="selectSjZtxxVo">
select id, jh, lb, ztxh, kc from sj_ztxx
</sql>
<select id="selectSjZtxxList" parameterType="SjZtxx" resultMap="SjZtxxResult">
<include refid="selectSjZtxxVo"/>
<where>
<if test="jh != null and jh != ''"> and jh = #{jh}</if>
<if test="lb != null and lb != ''"> and lb = #{lb}</if>
<if test="ztxh != null and ztxh != ''"> and ztxh = #{ztxh}</if>
<if test="kc != null and kc != ''"> and kc = #{kc}</if>
</where>
</select>
<select id="selectSjZtxxById" parameterType="Long" resultMap="SjZtxxResult">
<include refid="selectSjZtxxVo"/>
where id = #{id}
</select>
<insert id="insertSjZtxx" parameterType="SjZtxx" useGeneratedKeys="true" keyProperty="id">
insert into sj_ztxx
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="jh != null">jh,</if>
<if test="lb != null">lb,</if>
<if test="ztxh != null">ztxh,</if>
<if test="kc != null">kc,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="jh != null">#{jh},</if>
<if test="lb != null">#{lb},</if>
<if test="ztxh != null">#{ztxh},</if>
<if test="kc != null">#{kc},</if>
</trim>
</insert>
<update id="updateSjZtxx" parameterType="SjZtxx">
update sj_ztxx
<trim prefix="SET" suffixOverrides=",">
<if test="jh != null">jh = #{jh},</if>
<if test="lb != null">lb = #{lb},</if>
<if test="ztxh != null">ztxh = #{ztxh},</if>
<if test="kc != null">kc = #{kc},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteSjZtxxById" parameterType="Long">
delete from sj_ztxx where id = #{id}
</delete>
<delete id="deleteSjZtxxByIds" parameterType="String">
delete from sj_ztxx where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</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