Commit e1c8e752 by jiang'yun

修改

parent 3b58f125
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
/** 风险管控措施 */
@Excel(name = "风险管控措施")
private String fxgkcs;
//钻具组合
private String zjzh;
//钻具组合注意事项
private String zjzhzysx;
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_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;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
......@@ -13,6 +14,7 @@ import com.ruoyi.framework.web.domain.BaseEntity;
* @author ruoyi
* @date 2025-07-17
*/
@Data
public class SjZjyCljl extends BaseEntity
{
private static final long serialVersionUID = 1L;
......@@ -56,6 +58,8 @@ public class SjZjyCljl extends BaseEntity
@Excel(name = "创建人")
private String createdBy;
private Integer num;
/** 创建时间 */
@JsonFormat(pattern = "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
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
* @return 结果
*/
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;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.common.utils.bean.BeanUtils;
......@@ -44,6 +47,13 @@ public class SjDjjcServiceImpl implements ISjDjjcService
@Autowired
private SjSzfxjgMapper sjSzfxjgMapper;
@Autowired
private SjLjtjztMapper sjLjtjztMapper;
@Autowired
private SjZtxxMapper sjZtxxMapper;
/**
* 查询设计信息-井基础信息
*
......@@ -236,5 +246,52 @@ public class SjDjjcServiceImpl implements ISjDjjcService
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"
<result property="fxgkcs" column="fxgkcs" />
<result property="zjycs" column="zjycs" />
<result property="zjgccs" column="zjgccs" />
<result property="zjzh" column="zjzh" />
<result property="zjzhzysx" column="zjzhzysx" />
</resultMap>
<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>
<select id="selectSjFdsgcsList" parameterType="SjFdsgcs" resultMap="SjFdsgcsResult">
......@@ -43,7 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where id = #{id}
</select>
<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>
<insert id="insertSjFdsgcs" parameterType="SjFdsgcs" useGeneratedKeys="true" keyProperty="id">
......@@ -60,6 +62,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="fxgkcs != null">fxgkcs,</if>
<if test="zjycs != null">zjycs,</if>
<if test="zjgccs != null">zjgccs,</if>
<if test="zjzh != null">zjzh,</if>
<if test="zjzhzysx != null">zjzhzysx,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="jh != null">#{jh},</if>
......@@ -73,6 +77,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="fxgkcs != null">#{fxgkcs},</if>
<if test="zjycs != null">#{zjycs},</if>
<if test="zjgccs != null">#{zjgccs},</if>
<if test="zjzh != null">#{zjzh},</if>
<if test="zjzhzysx != null">#{zjzhzysx},</if>
</trim>
</insert>
......@@ -90,6 +96,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="fxgkcs != null">fxgkcs = #{fxgkcs},</if>
<if test="zjycs != null">zjycs = #{zjycs},</if>
<if test="zjgccs != null">zjgccs = #{zjgccs},</if>
<if test="zjzh != null">zjzh = #{zjzh},</if>
<if test="zjzhzysx != null">zjzhzysx = #{zjzhzysx},</if>
</trim>
where id = #{id}
</update>
......
......@@ -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="createdTime != null "> and created_time = #{createdTime}</if>
</where>
order by qsjs
</select>
<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.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