Commit ad8fbe93 by tyk

代码提交

parent cd51ac1c
......@@ -8,7 +8,9 @@ import javax.servlet.http.HttpServletResponse;
import com.qianhe.common.utils.DateUtils;
import com.qianhe.common.utils.SecurityUtils;
import com.qianhe.common.utils.bean.BeanUtils;
import com.qianhe.domain.BzscYsjglggzscfj;
import com.qianhe.domain.WdWdxxRd;
import com.qianhe.mapper.BzscYsjglggzscfjMapper;
import com.qianhe.mapper.WdWdxxRdMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
......@@ -39,6 +41,9 @@ public class CommonController
private ServerConfig serverConfig;
@Autowired
private WdWdxxRdMapper wdWdxxRdMapper;
@Autowired
private BzscYsjglggzscfjMapper bzscYsjglggzscfjMapper;
private static final String FILE_DELIMETER = ",";
......@@ -202,6 +207,53 @@ public class CommonController
}
}
/**
* 通用上传请求(多个)
*/
@PostMapping("/ysjuploadAll")
public AjaxResult ysjuploadAll(@RequestParam("file") List<MultipartFile> files,
@RequestParam("deptId")String deptId,
@RequestParam("nd") String nd,
@RequestParam("dl") String dl,
@RequestParam("zl") String zl,
@RequestParam("fjlx") String fjlx,
@RequestParam("rdpx") String rdpx) throws Exception {
try
{
// 上传文件路径
String filePath = RuoYiConfig.getUploadPath();
List<BzscYsjglggzscfj> bzscYsjglggzscfjs = new ArrayList<>();
String param="?deptId="+deptId+"&nd="+nd+"&dl="+dl+"&fjlx="+fjlx+"&rdpx="+rdpx;
for (MultipartFile file : files)
{
// 上传并返回新文件名称
String fileName = FileUploadUtils.upload(filePath, file);
BzscYsjglggzscfj xx = new BzscYsjglggzscfj();
xx.setDeptId(deptId);
xx.setNd(nd);
xx.setDl(dl);
xx.setZl(zl);
xx.setFjlx(fjlx);
xx.setRdpx(rdpx);
xx.setFjdz(fileName);
xx.setFjmc(file.getOriginalFilename());
xx.setLrr(SecurityUtils.getUsername());
xx.setLrsj(DateUtils.getNowDate());
bzscYsjglggzscfjs.add(xx);
}
if(bzscYsjglggzscfjs.size()>0){
bzscYsjglggzscfjMapper.insertBzscYsjglggzscfjlist(bzscYsjglggzscfjs);
}
return AjaxResult.success(param);
}
catch (Exception e)
{
return AjaxResult.error(e.getMessage());
}
}
/**
* 本地资源通用下载
*/
......
package com.qianhe.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.qianhe.domain.BzscYsjglggzscCb;
import com.qianhe.service.IBzscYsjglggzscCbService;
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.qianhe.common.annotation.Log;
import com.qianhe.common.core.controller.BaseController;
import com.qianhe.common.core.domain.AjaxResult;
import com.qianhe.common.enums.BusinessType;
import com.qianhe.common.utils.poi.ExcelUtil;
import com.qianhe.common.core.page.TableDataInfo;
/**
* 标准手册-油水井管理岗工作手册-从Controller
*
* @author qianhe
* @date 2024-10-09
*/
@RestController
@RequestMapping("/system/cb")
public class BzscYsjglggzscCbController extends BaseController
{
@Autowired
private IBzscYsjglggzscCbService bzscYsjglggzscCbService;
/**
* 查询标准手册-油水井管理岗工作手册-从列表
*/
@PreAuthorize("@ss.hasPermi('system:cb:list')")
@GetMapping("/list")
public TableDataInfo list(BzscYsjglggzscCb bzscYsjglggzscCb)
{
startPage();
List<BzscYsjglggzscCb> list = bzscYsjglggzscCbService.selectBzscYsjglggzscCbList(bzscYsjglggzscCb);
return getDataTable(list);
}
/**
* 导出标准手册-油水井管理岗工作手册-从列表
*/
@PreAuthorize("@ss.hasPermi('system:cb:export')")
@Log(title = "标准手册-油水井管理岗工作手册-从", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BzscYsjglggzscCb bzscYsjglggzscCb)
{
List<BzscYsjglggzscCb> list = bzscYsjglggzscCbService.selectBzscYsjglggzscCbList(bzscYsjglggzscCb);
ExcelUtil<BzscYsjglggzscCb> util = new ExcelUtil<BzscYsjglggzscCb>(BzscYsjglggzscCb.class);
util.exportExcel(response, list, "标准手册-油水井管理岗工作手册-从数据");
}
/**
* 获取标准手册-油水井管理岗工作手册-从详细信息
*/
@PreAuthorize("@ss.hasPermi('system:cb:query')")
@GetMapping(value = "/{ID}")
public AjaxResult getInfo(@PathVariable("ID") Long ID)
{
return success(bzscYsjglggzscCbService.selectBzscYsjglggzscCbByID(ID));
}
/**
* 新增标准手册-油水井管理岗工作手册-从
*/
@PreAuthorize("@ss.hasPermi('system:cb:add')")
@Log(title = "标准手册-油水井管理岗工作手册-从", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BzscYsjglggzscCb bzscYsjglggzscCb)
{
return toAjax(bzscYsjglggzscCbService.insertBzscYsjglggzscCb(bzscYsjglggzscCb));
}
/**
* 修改标准手册-油水井管理岗工作手册-从
*/
@PreAuthorize("@ss.hasPermi('system:cb:edit')")
@Log(title = "标准手册-油水井管理岗工作手册-从", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BzscYsjglggzscCb bzscYsjglggzscCb)
{
return toAjax(bzscYsjglggzscCbService.updateBzscYsjglggzscCb(bzscYsjglggzscCb));
}
/**
* 删除标准手册-油水井管理岗工作手册-从
*/
@PreAuthorize("@ss.hasPermi('system:cb:remove')")
@Log(title = "标准手册-油水井管理岗工作手册-从", businessType = BusinessType.DELETE)
@DeleteMapping("/{IDs}")
public AjaxResult remove(@PathVariable Long[] IDs)
{
return toAjax(bzscYsjglggzscCbService.deleteBzscYsjglggzscCbByIDs(IDs));
}
}
package com.qianhe.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.qianhe.domain.BzscYsjglggzsc;
import com.qianhe.service.IBzscYsjglggzscService;
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.qianhe.common.annotation.Log;
import com.qianhe.common.core.controller.BaseController;
import com.qianhe.common.core.domain.AjaxResult;
import com.qianhe.common.enums.BusinessType;
import com.qianhe.common.utils.poi.ExcelUtil;
import com.qianhe.common.core.page.TableDataInfo;
/**
* 标准手册-油水井管理岗工作手册-总Controller
*
* @author qianhe
* @date 2024-10-09
*/
@RestController
@RequestMapping("/system/ysjglggzsc")
public class BzscYsjglggzscController extends BaseController
{
@Autowired
private IBzscYsjglggzscService bzscYsjglggzscService;
/**
* 查询标准手册-油水井管理岗工作手册-总列表
*/
@PreAuthorize("@ss.hasPermi('system:ysjglggzsc:list')")
@GetMapping("/list")
public TableDataInfo list(BzscYsjglggzsc bzscYsjglggzsc)
{
startPage();
List<BzscYsjglggzsc> list = bzscYsjglggzscService.selectBzscYsjglggzscList(bzscYsjglggzsc);
return getDataTable(list);
}
/**
* 导出标准手册-油水井管理岗工作手册-总列表
*/
@PreAuthorize("@ss.hasPermi('system:ysjglggzsc:export')")
@Log(title = "标准手册-油水井管理岗工作手册-总", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BzscYsjglggzsc bzscYsjglggzsc)
{
List<BzscYsjglggzsc> list = bzscYsjglggzscService.selectBzscYsjglggzscList(bzscYsjglggzsc);
ExcelUtil<BzscYsjglggzsc> util = new ExcelUtil<BzscYsjglggzsc>(BzscYsjglggzsc.class);
util.exportExcel(response, list, "标准手册-油水井管理岗工作手册-总数据");
}
/**
* 获取标准手册-油水井管理岗工作手册-总详细信息
*/
@PreAuthorize("@ss.hasPermi('system:ysjglggzsc:query')")
@GetMapping(value = "/{ID}")
public AjaxResult getInfo(@PathVariable("ID") Long ID)
{
return success(bzscYsjglggzscService.selectBzscYsjglggzscByID(ID));
}
/**
* 新增标准手册-油水井管理岗工作手册-总
*/
@PreAuthorize("@ss.hasPermi('system:ysjglggzsc:add')")
@Log(title = "标准手册-油水井管理岗工作手册-总", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BzscYsjglggzsc bzscYsjglggzsc)
{
return toAjax(bzscYsjglggzscService.insertBzscYsjglggzsc(bzscYsjglggzsc));
}
/**
* 修改标准手册-油水井管理岗工作手册-总
*/
@PreAuthorize("@ss.hasPermi('system:ysjglggzsc:edit')")
@Log(title = "标准手册-油水井管理岗工作手册-总", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BzscYsjglggzsc bzscYsjglggzsc)
{
return toAjax(bzscYsjglggzscService.updateBzscYsjglggzsc(bzscYsjglggzsc));
}
/**
* 删除标准手册-油水井管理岗工作手册-总
*/
@PreAuthorize("@ss.hasPermi('system:ysjglggzsc:remove')")
@Log(title = "标准手册-油水井管理岗工作手册-总", businessType = BusinessType.DELETE)
@DeleteMapping("/{ID}")
public AjaxResult remove(@PathVariable Long ID)
{
return toAjax(bzscYsjglggzscService.deleteBzscYsjglggzscByID(ID));
}
}
package com.qianhe.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.qianhe.domain.BzscYsjglggzscZb;
import com.qianhe.service.IBzscYsjglggzscZbService;
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.qianhe.common.annotation.Log;
import com.qianhe.common.core.controller.BaseController;
import com.qianhe.common.core.domain.AjaxResult;
import com.qianhe.common.enums.BusinessType;
import com.qianhe.common.utils.poi.ExcelUtil;
import com.qianhe.common.core.page.TableDataInfo;
/**
* 标准手册-油水井管理岗工作手册-主Controller
*
* @author qianhe
* @date 2024-10-09
*/
@RestController
@RequestMapping("/system/zb")
public class BzscYsjglggzscZbController extends BaseController
{
@Autowired
private IBzscYsjglggzscZbService bzscYsjglggzscZbService;
/**
* 查询标准手册-油水井管理岗工作手册-主列表
*/
@PreAuthorize("@ss.hasPermi('system:zb:list')")
@GetMapping("/list")
public TableDataInfo list(BzscYsjglggzscZb bzscYsjglggzscZb)
{
startPage();
List<BzscYsjglggzscZb> list = bzscYsjglggzscZbService.selectBzscYsjglggzscZbList(bzscYsjglggzscZb);
return getDataTable(list);
}
/**
* 导出标准手册-油水井管理岗工作手册-主列表
*/
@PreAuthorize("@ss.hasPermi('system:zb:export')")
@Log(title = "标准手册-油水井管理岗工作手册-主", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BzscYsjglggzscZb bzscYsjglggzscZb)
{
List<BzscYsjglggzscZb> list = bzscYsjglggzscZbService.selectBzscYsjglggzscZbList(bzscYsjglggzscZb);
ExcelUtil<BzscYsjglggzscZb> util = new ExcelUtil<BzscYsjglggzscZb>(BzscYsjglggzscZb.class);
util.exportExcel(response, list, "标准手册-油水井管理岗工作手册-主数据");
}
/**
* 获取标准手册-油水井管理岗工作手册-主详细信息
*/
@PreAuthorize("@ss.hasPermi('system:zb:query')")
@GetMapping(value = "/{ID}")
public AjaxResult getInfo(@PathVariable("ID") Long ID)
{
return success(bzscYsjglggzscZbService.selectBzscYsjglggzscZbByID(ID));
}
/**
* 新增标准手册-油水井管理岗工作手册-主
*/
@PreAuthorize("@ss.hasPermi('system:zb:add')")
@Log(title = "标准手册-油水井管理岗工作手册-主", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BzscYsjglggzscZb bzscYsjglggzscZb)
{
return toAjax(bzscYsjglggzscZbService.insertBzscYsjglggzscZb(bzscYsjglggzscZb));
}
/**
* 修改标准手册-油水井管理岗工作手册-主
*/
@PreAuthorize("@ss.hasPermi('system:zb:edit')")
@Log(title = "标准手册-油水井管理岗工作手册-主", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BzscYsjglggzscZb bzscYsjglggzscZb)
{
return toAjax(bzscYsjglggzscZbService.updateBzscYsjglggzscZb(bzscYsjglggzscZb));
}
/**
* 删除标准手册-油水井管理岗工作手册-主
*/
@PreAuthorize("@ss.hasPermi('system:zb:remove')")
@Log(title = "标准手册-油水井管理岗工作手册-主", businessType = BusinessType.DELETE)
@DeleteMapping("/{IDs}")
public AjaxResult remove(@PathVariable Long[] IDs)
{
return toAjax(bzscYsjglggzscZbService.deleteBzscYsjglggzscZbByIDs(IDs));
}
}
package com.qianhe.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.qianhe.common.annotation.Log;
import com.qianhe.common.core.controller.BaseController;
import com.qianhe.common.core.domain.AjaxResult;
import com.qianhe.common.enums.BusinessType;
import com.qianhe.domain.BzscYsjglggzscfj;
import com.qianhe.service.IBzscYsjglggzscfjService;
import com.qianhe.common.utils.poi.ExcelUtil;
import com.qianhe.common.core.page.TableDataInfo;
/**
* 标准手册-油水井管理岗工作手册附件Controller
*
* @author qianhe
* @date 2024-10-09
*/
@RestController
@RequestMapping("/system/ysjglggzscfj")
public class BzscYsjglggzscfjController extends BaseController
{
@Autowired
private IBzscYsjglggzscfjService bzscYsjglggzscfjService;
/**
* 查询标准手册-油水井管理岗工作手册附件列表
*/
@PreAuthorize("@ss.hasPermi('system:ysjglggzscfj:list')")
@GetMapping("/list")
public TableDataInfo list(BzscYsjglggzscfj bzscYsjglggzscfj)
{
startPage();
List<BzscYsjglggzscfj> list = bzscYsjglggzscfjService.selectBzscYsjglggzscfjList(bzscYsjglggzscfj);
return getDataTable(list);
}
/**
* 导出标准手册-油水井管理岗工作手册附件列表
*/
@PreAuthorize("@ss.hasPermi('system:ysjglggzscfj:export')")
@Log(title = "标准手册-油水井管理岗工作手册附件", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BzscYsjglggzscfj bzscYsjglggzscfj)
{
List<BzscYsjglggzscfj> list = bzscYsjglggzscfjService.selectBzscYsjglggzscfjList(bzscYsjglggzscfj);
ExcelUtil<BzscYsjglggzscfj> util = new ExcelUtil<BzscYsjglggzscfj>(BzscYsjglggzscfj.class);
util.exportExcel(response, list, "标准手册-油水井管理岗工作手册附件数据");
}
/**
* 获取标准手册-油水井管理岗工作手册附件详细信息
*/
@PreAuthorize("@ss.hasPermi('system:ysjglggzscfj:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(bzscYsjglggzscfjService.selectBzscYsjglggzscfjById(id));
}
/**
* 新增标准手册-油水井管理岗工作手册附件
*/
@PreAuthorize("@ss.hasPermi('system:ysjglggzscfj:add')")
@Log(title = "标准手册-油水井管理岗工作手册附件", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BzscYsjglggzscfj bzscYsjglggzscfj)
{
return toAjax(bzscYsjglggzscfjService.insertBzscYsjglggzscfj(bzscYsjglggzscfj));
}
/**
* 修改标准手册-油水井管理岗工作手册附件
*/
@PreAuthorize("@ss.hasPermi('system:ysjglggzscfj:edit')")
@Log(title = "标准手册-油水井管理岗工作手册附件", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BzscYsjglggzscfj bzscYsjglggzscfj)
{
return toAjax(bzscYsjglggzscfjService.updateBzscYsjglggzscfj(bzscYsjglggzscfj));
}
/**
* 删除标准手册-油水井管理岗工作手册附件
*/
@PreAuthorize("@ss.hasPermi('system:ysjglggzscfj:remove')")
@Log(title = "标准手册-油水井管理岗工作手册附件", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(bzscYsjglggzscfjService.deleteBzscYsjglggzscfjByIds(ids));
}
}
package com.qianhe.domain;
import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qianhe.common.annotation.Excel;
import com.qianhe.common.core.domain.BaseEntity;
/**
* 标准手册-油水井管理岗工作手册-总对象 bzsc_ysjglggzsc
*
* @author qianhe
* @date 2024-10-09
*/
public class BzscYsjglggzsc extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long ID;
/** 单位id */
@Excel(name = "单位id")
private Long deptId;
/** 标题 */
@Excel(name = "标题")
private String bt;
/** 年度 */
@Excel(name = "年度")
private String nd;
/** 预留1 */
@Excel(name = "预留1")
private String yl1;
/** 预留2 */
@Excel(name = "预留2")
private String yl2;
/** 预留3 */
@Excel(name = "预留3")
private String yl3;
/** 预留4 */
@Excel(name = "预留4")
private String yl4;
/** 预留5 */
@Excel(name = "预留5")
private String yl5;
/** 标准手册-油水井管理岗工作手册-主信息 */
private List<BzscYsjglggzscZb> bzscYsjglggzscZbList;
public void setID(Long ID)
{
this.ID = ID;
}
public Long getID()
{
return ID;
}
public void setDeptId(Long deptId)
{
this.deptId = deptId;
}
public Long getDeptId()
{
return deptId;
}
public void setBt(String bt)
{
this.bt = bt;
}
public String getBt()
{
return bt;
}
public void setNd(String nd)
{
this.nd = nd;
}
public String getNd()
{
return nd;
}
public void setYl1(String yl1)
{
this.yl1 = yl1;
}
public String getYl1()
{
return yl1;
}
public void setYl2(String yl2)
{
this.yl2 = yl2;
}
public String getYl2()
{
return yl2;
}
public void setYl3(String yl3)
{
this.yl3 = yl3;
}
public String getYl3()
{
return yl3;
}
public void setYl4(String yl4)
{
this.yl4 = yl4;
}
public String getYl4()
{
return yl4;
}
public void setYl5(String yl5)
{
this.yl5 = yl5;
}
public String getYl5()
{
return yl5;
}
public List<BzscYsjglggzscZb> getBzscYsjglggzscZbList()
{
return bzscYsjglggzscZbList;
}
public void setBzscYsjglggzscZbList(List<BzscYsjglggzscZb> bzscYsjglggzscZbList)
{
this.bzscYsjglggzscZbList = bzscYsjglggzscZbList;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("ID", getID())
.append("deptId", getDeptId())
.append("bt", getBt())
.append("nd", getNd())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.append("yl1", getYl1())
.append("yl2", getYl2())
.append("yl3", getYl3())
.append("yl4", getYl4())
.append("yl5", getYl5())
.append("bzscYsjglggzscZbList", getBzscYsjglggzscZbList())
.toString();
}
}
package com.qianhe.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qianhe.common.annotation.Excel;
import com.qianhe.common.core.domain.BaseEntity;
/**
* 标准手册-油水井管理岗工作手册-从对象 bzsc_ysjglggzsc_cb
*
* @author qianhe
* @date 2024-10-09
*/
public class BzscYsjglggzscCb extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long ID;
/** 主表id */
@Excel(name = "主表id")
private Long zbId;
/** 单位id */
@Excel(name = "单位id")
private Long deptId;
/** 年度 */
@Excel(name = "年度")
private String nd;
/** 上级id */
@Excel(name = "上级id")
private Long parentId;
/** 名称 */
@Excel(name = "名称")
private String mc;
/** 描述 */
@Excel(name = "描述")
private String ms;
/** 内容 */
@Excel(name = "内容")
private String nr;
/** 排序 */
@Excel(name = "排序")
private Long px;
/** 预留1 */
@Excel(name = "预留1")
private String yl1;
/** 预留2 */
@Excel(name = "预留2")
private String yl2;
/** 预留3 */
@Excel(name = "预留3")
private String yl3;
/** 预留4 */
@Excel(name = "预留4")
private String yl4;
/** 预留5 */
@Excel(name = "预留5")
private String yl5;
public void setID(Long ID)
{
this.ID = ID;
}
public Long getID()
{
return ID;
}
public void setZbId(Long zbId)
{
this.zbId = zbId;
}
public Long getZbId()
{
return zbId;
}
public void setDeptId(Long deptId)
{
this.deptId = deptId;
}
public Long getDeptId()
{
return deptId;
}
public void setNd(String nd)
{
this.nd = nd;
}
public String getNd()
{
return nd;
}
public void setParentId(Long parentId)
{
this.parentId = parentId;
}
public Long getParentId()
{
return parentId;
}
public void setMc(String mc)
{
this.mc = mc;
}
public String getMc()
{
return mc;
}
public void setMs(String ms)
{
this.ms = ms;
}
public String getMs()
{
return ms;
}
public void setNr(String nr)
{
this.nr = nr;
}
public String getNr()
{
return nr;
}
public void setPx(Long px)
{
this.px = px;
}
public Long getPx()
{
return px;
}
public void setYl1(String yl1)
{
this.yl1 = yl1;
}
public String getYl1()
{
return yl1;
}
public void setYl2(String yl2)
{
this.yl2 = yl2;
}
public String getYl2()
{
return yl2;
}
public void setYl3(String yl3)
{
this.yl3 = yl3;
}
public String getYl3()
{
return yl3;
}
public void setYl4(String yl4)
{
this.yl4 = yl4;
}
public String getYl4()
{
return yl4;
}
public void setYl5(String yl5)
{
this.yl5 = yl5;
}
public String getYl5()
{
return yl5;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("ID", getID())
.append("zbId", getZbId())
.append("deptId", getDeptId())
.append("nd", getNd())
.append("parentId", getParentId())
.append("mc", getMc())
.append("ms", getMs())
.append("nr", getNr())
.append("px", getPx())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.append("yl1", getYl1())
.append("yl2", getYl2())
.append("yl3", getYl3())
.append("yl4", getYl4())
.append("yl5", getYl5())
.toString();
}
}
package com.qianhe.domain;
import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qianhe.common.annotation.Excel;
import com.qianhe.common.core.domain.BaseEntity;
/**
* 标准手册-油水井管理岗工作手册-主对象 bzsc_ysjglggzsc_zb
*
* @author qianhe
* @date 2024-10-09
*/
public class BzscYsjglggzscZb extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long ID;
/** 主表id */
@Excel(name = "主表id")
private Long zbId;
/** 单位id */
@Excel(name = "单位id")
private Long deptId;
/** 标题 */
@Excel(name = "标题")
private String bt;
/** 年度 */
@Excel(name = "年度")
private String nd;
/** 内容 */
@Excel(name = "内容")
private String px;
/** 预留1 */
@Excel(name = "预留1")
private String yl1;
/** 预留2 */
@Excel(name = "预留2")
private String yl2;
/** 预留3 */
@Excel(name = "预留3")
private String yl3;
/** 预留4 */
@Excel(name = "预留4")
private String yl4;
/** 预留5 */
@Excel(name = "预留5")
private String yl5;
/** 标准手册-油水井管理岗工作手册-从信息 */
private List<BzscYsjglggzscCb> bzscYsjglggzscCbList;
public String getPx() {
return px;
}
public void setPx(String px) {
this.px = px;
}
public void setID(Long ID)
{
this.ID = ID;
}
public Long getID()
{
return ID;
}
public void setZbId(Long zbId)
{
this.zbId = zbId;
}
public Long getZbId()
{
return zbId;
}
public void setDeptId(Long deptId)
{
this.deptId = deptId;
}
public Long getDeptId()
{
return deptId;
}
public void setBt(String bt)
{
this.bt = bt;
}
public String getBt()
{
return bt;
}
public void setNd(String nd)
{
this.nd = nd;
}
public String getNd()
{
return nd;
}
public void setYl1(String yl1)
{
this.yl1 = yl1;
}
public String getYl1()
{
return yl1;
}
public void setYl2(String yl2)
{
this.yl2 = yl2;
}
public String getYl2()
{
return yl2;
}
public void setYl3(String yl3)
{
this.yl3 = yl3;
}
public String getYl3()
{
return yl3;
}
public void setYl4(String yl4)
{
this.yl4 = yl4;
}
public String getYl4()
{
return yl4;
}
public void setYl5(String yl5)
{
this.yl5 = yl5;
}
public String getYl5()
{
return yl5;
}
public List<BzscYsjglggzscCb> getBzscYsjglggzscCbList()
{
return bzscYsjglggzscCbList;
}
public void setBzscYsjglggzscCbList(List<BzscYsjglggzscCb> bzscYsjglggzscCbList)
{
this.bzscYsjglggzscCbList = bzscYsjglggzscCbList;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("ID", getID())
.append("zbId", getZbId())
.append("deptId", getDeptId())
.append("bt", getBt())
.append("nd", getNd())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.append("yl1", getYl1())
.append("yl2", getYl2())
.append("yl3", getYl3())
.append("yl4", getYl4())
.append("yl5", getYl5())
.append("bzscYsjglggzscCbList", getBzscYsjglggzscCbList())
.toString();
}
}
package com.qianhe.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qianhe.common.annotation.Excel;
import com.qianhe.common.core.domain.BaseEntity;
/**
* 标准手册-油水井管理岗工作手册附件对象 bzsc_ysjglggzscfj
*
* @author qianhe
* @date 2024-10-09
*/
public class BzscYsjglggzscfj extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 单位id */
@Excel(name = "单位id")
private String deptId;
/** 年度 */
@Excel(name = "年度")
private String nd;
/** 附件名称 */
@Excel(name = "附件名称")
private String fjmc;
/** 附件地址 */
@Excel(name = "附件地址")
private String fjdz;
/** 大类 */
@Excel(name = "大类")
private String dl;
/** 中类 */
@Excel(name = "中类")
private String zl;
/** 附件类型 */
@Excel(name = "附件类型")
private String fjlx;
/** 热点排序 */
@Excel(name = "热点排序")
private String rdpx;
/** 录入人 */
@Excel(name = "录入人")
private String lrr;
/** 录入时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "录入时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date lrsj;
/** 修改人 */
@Excel(name = "修改人")
private String xgr;
/** 修改时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date xgsj;
/** 备注 */
@Excel(name = "备注")
private String bz;
/** 预留2 */
@Excel(name = "预留2")
private String yl2;
/** 预留3 */
@Excel(name = "预留3")
private String yl3;
/** 预留4 */
@Excel(name = "预留4")
private String yl4;
/** 预留5 */
@Excel(name = "预留5")
private String yl5;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setDeptId(String deptId)
{
this.deptId = deptId;
}
public String getDeptId()
{
return deptId;
}
public void setNd(String nd)
{
this.nd = nd;
}
public String getNd()
{
return nd;
}
public void setFjmc(String fjmc)
{
this.fjmc = fjmc;
}
public String getFjmc()
{
return fjmc;
}
public void setFjdz(String fjdz)
{
this.fjdz = fjdz;
}
public String getFjdz()
{
return fjdz;
}
public void setDl(String dl)
{
this.dl = dl;
}
public String getDl()
{
return dl;
}
public void setZl(String zl)
{
this.zl = zl;
}
public String getZl()
{
return zl;
}
public void setFjlx(String fjlx)
{
this.fjlx = fjlx;
}
public String getFjlx()
{
return fjlx;
}
public void setRdpx(String rdpx)
{
this.rdpx = rdpx;
}
public String getRdpx()
{
return rdpx;
}
public void setLrr(String lrr)
{
this.lrr = lrr;
}
public String getLrr()
{
return lrr;
}
public void setLrsj(Date lrsj)
{
this.lrsj = lrsj;
}
public Date getLrsj()
{
return lrsj;
}
public void setXgr(String xgr)
{
this.xgr = xgr;
}
public String getXgr()
{
return xgr;
}
public void setXgsj(Date xgsj)
{
this.xgsj = xgsj;
}
public Date getXgsj()
{
return xgsj;
}
public void setBz(String bz)
{
this.bz = bz;
}
public String getBz()
{
return bz;
}
public void setYl2(String yl2)
{
this.yl2 = yl2;
}
public String getYl2()
{
return yl2;
}
public void setYl3(String yl3)
{
this.yl3 = yl3;
}
public String getYl3()
{
return yl3;
}
public void setYl4(String yl4)
{
this.yl4 = yl4;
}
public String getYl4()
{
return yl4;
}
public void setYl5(String yl5)
{
this.yl5 = yl5;
}
public String getYl5()
{
return yl5;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("deptId", getDeptId())
.append("nd", getNd())
.append("fjmc", getFjmc())
.append("fjdz", getFjdz())
.append("dl", getDl())
.append("zl", getZl())
.append("fjlx", getFjlx())
.append("rdpx", getRdpx())
.append("lrr", getLrr())
.append("lrsj", getLrsj())
.append("xgr", getXgr())
.append("xgsj", getXgsj())
.append("bz", getBz())
.append("yl2", getYl2())
.append("yl3", getYl3())
.append("yl4", getYl4())
.append("yl5", getYl5())
.toString();
}
}
package com.qianhe.mapper;
import com.qianhe.domain.BzscYsjglggzscCb;
import java.util.List;
/**
* 标准手册-油水井管理岗工作手册-从Mapper接口
*
* @author qianhe
* @date 2024-10-09
*/
public interface BzscYsjglggzscCbMapper
{
/**
* 查询标准手册-油水井管理岗工作手册-从
*
* @param ID 标准手册-油水井管理岗工作手册-从主键
* @return 标准手册-油水井管理岗工作手册-从
*/
public BzscYsjglggzscCb selectBzscYsjglggzscCbByID(Long ID);
/**
* 查询标准手册-油水井管理岗工作手册-从列表
*
* @param bzscYsjglggzscCb 标准手册-油水井管理岗工作手册-从
* @return 标准手册-油水井管理岗工作手册-从集合
*/
public List<BzscYsjglggzscCb> selectBzscYsjglggzscCbList(BzscYsjglggzscCb bzscYsjglggzscCb);
/**
* 新增标准手册-油水井管理岗工作手册-从
*
* @param bzscYsjglggzscCb 标准手册-油水井管理岗工作手册-从
* @return 结果
*/
public int insertBzscYsjglggzscCb(BzscYsjglggzscCb bzscYsjglggzscCb);
/**
* 修改标准手册-油水井管理岗工作手册-从
*
* @param bzscYsjglggzscCb 标准手册-油水井管理岗工作手册-从
* @return 结果
*/
public int updateBzscYsjglggzscCb(BzscYsjglggzscCb bzscYsjglggzscCb);
/**
* 删除标准手册-油水井管理岗工作手册-从
*
* @param ID 标准手册-油水井管理岗工作手册-从主键
* @return 结果
*/
public int deleteBzscYsjglggzscCbByID(Long ID);
/**
* 批量删除标准手册-油水井管理岗工作手册-从
*
* @param IDs 需要删除的数据主键集合
* @return 结果
*/
public int deleteBzscYsjglggzscCbByIDs(Long[] IDs);
}
package com.qianhe.mapper;
import com.qianhe.domain.BzscYsjglggzsc;
import com.qianhe.domain.BzscYsjglggzscZb;
import java.util.List;
/**
* 标准手册-油水井管理岗工作手册-总Mapper接口
*
* @author qianhe
* @date 2024-10-09
*/
public interface BzscYsjglggzscMapper
{
/**
* 查询标准手册-油水井管理岗工作手册-总
*
* @param ID 标准手册-油水井管理岗工作手册-总主键
* @return 标准手册-油水井管理岗工作手册-总
*/
public BzscYsjglggzsc selectBzscYsjglggzscByID(Long ID);
/**
* 查询标准手册-油水井管理岗工作手册-总列表
*
* @param bzscYsjglggzsc 标准手册-油水井管理岗工作手册-总
* @return 标准手册-油水井管理岗工作手册-总集合
*/
public List<BzscYsjglggzsc> selectBzscYsjglggzscList(BzscYsjglggzsc bzscYsjglggzsc);
/**
* 新增标准手册-油水井管理岗工作手册-总
*
* @param bzscYsjglggzsc 标准手册-油水井管理岗工作手册-总
* @return 结果
*/
public int insertBzscYsjglggzsc(BzscYsjglggzsc bzscYsjglggzsc);
/**
* 修改标准手册-油水井管理岗工作手册-总
*
* @param bzscYsjglggzsc 标准手册-油水井管理岗工作手册-总
* @return 结果
*/
public int updateBzscYsjglggzsc(BzscYsjglggzsc bzscYsjglggzsc);
/**
* 删除标准手册-油水井管理岗工作手册-总
*
* @param ID 标准手册-油水井管理岗工作手册-总主键
* @return 结果
*/
public int deleteBzscYsjglggzscByID(Long ID);
/**
* 批量删除标准手册-油水井管理岗工作手册-总
*
* @param IDs 需要删除的数据主键集合
* @return 结果
*/
public int deleteBzscYsjglggzscByIDs(Long[] IDs);
/**
* 批量删除标准手册-油水井管理岗工作手册-主
*
* @param IDs 需要删除的数据主键集合
* @return 结果
*/
public int deleteBzscYsjglggzscZbByZbIds(Long[] IDs);
/**
* 批量新增标准手册-油水井管理岗工作手册-主
*
* @param bzscYsjglggzscZbList 标准手册-油水井管理岗工作手册-主列表
* @return 结果
*/
public int batchBzscYsjglggzscZb(List<BzscYsjglggzscZb> bzscYsjglggzscZbList);
/**
* 通过标准手册-油水井管理岗工作手册-总主键删除标准手册-油水井管理岗工作手册-主信息
*
* @param ID 标准手册-油水井管理岗工作手册-总ID
* @return 结果
*/
public int deleteBzscYsjglggzscZbByZbId(Long ID);
}
package com.qianhe.mapper;
import com.qianhe.domain.BzscYsjglggzscCb;
import com.qianhe.domain.BzscYsjglggzscZb;
import java.util.List;
/**
* 标准手册-油水井管理岗工作手册-主Mapper接口
*
* @author qianhe
* @date 2024-10-09
*/
public interface BzscYsjglggzscZbMapper
{
/**
* 查询标准手册-油水井管理岗工作手册-主
*
* @param ID 标准手册-油水井管理岗工作手册-主主键
* @return 标准手册-油水井管理岗工作手册-主
*/
public BzscYsjglggzscZb selectBzscYsjglggzscZbByID(Long ID);
/**
* 查询标准手册-油水井管理岗工作手册-主列表
*
* @param bzscYsjglggzscZb 标准手册-油水井管理岗工作手册-主
* @return 标准手册-油水井管理岗工作手册-主集合
*/
public List<BzscYsjglggzscZb> selectBzscYsjglggzscZbList(BzscYsjglggzscZb bzscYsjglggzscZb);
/**
* 新增标准手册-油水井管理岗工作手册-主
*
* @param bzscYsjglggzscZb 标准手册-油水井管理岗工作手册-主
* @return 结果
*/
public int insertBzscYsjglggzscZb(BzscYsjglggzscZb bzscYsjglggzscZb);
/**
* 修改标准手册-油水井管理岗工作手册-主
*
* @param bzscYsjglggzscZb 标准手册-油水井管理岗工作手册-主
* @return 结果
*/
public int updateBzscYsjglggzscZb(BzscYsjglggzscZb bzscYsjglggzscZb);
/**
* 删除标准手册-油水井管理岗工作手册-主
*
* @param ID 标准手册-油水井管理岗工作手册-主主键
* @return 结果
*/
public int deleteBzscYsjglggzscZbByID(Long ID);
/**
* 批量删除标准手册-油水井管理岗工作手册-主
*
* @param IDs 需要删除的数据主键集合
* @return 结果
*/
public int deleteBzscYsjglggzscZbByIDs(Long[] IDs);
/**
* 批量删除标准手册-油水井管理岗工作手册-从
*
* @param IDs 需要删除的数据主键集合
* @return 结果
*/
public int deleteBzscYsjglggzscCbByZbIds(Long[] IDs);
/**
* 批量新增标准手册-油水井管理岗工作手册-从
*
* @param bzscYsjglggzscCbList 标准手册-油水井管理岗工作手册-从列表
* @return 结果
*/
public int batchBzscYsjglggzscCb(List<BzscYsjglggzscCb> bzscYsjglggzscCbList);
/**
* 通过标准手册-油水井管理岗工作手册-主主键删除标准手册-油水井管理岗工作手册-从信息
*
* @param ID 标准手册-油水井管理岗工作手册-主ID
* @return 结果
*/
public int deleteBzscYsjglggzscCbByZbId(Long ID);
}
package com.qianhe.mapper;
import java.util.List;
import com.qianhe.domain.BzscYsjglggzscfj;
import com.qianhe.domain.WdWdxxRd;
/**
* 标准手册-油水井管理岗工作手册附件Mapper接口
*
* @author qianhe
* @date 2024-10-09
*/
public interface BzscYsjglggzscfjMapper
{
/**
* 查询标准手册-油水井管理岗工作手册附件
*
* @param id 标准手册-油水井管理岗工作手册附件主键
* @return 标准手册-油水井管理岗工作手册附件
*/
public BzscYsjglggzscfj selectBzscYsjglggzscfjById(Long id);
/**
* 查询标准手册-油水井管理岗工作手册附件列表
*
* @param bzscYsjglggzscfj 标准手册-油水井管理岗工作手册附件
* @return 标准手册-油水井管理岗工作手册附件集合
*/
public List<BzscYsjglggzscfj> selectBzscYsjglggzscfjList(BzscYsjglggzscfj bzscYsjglggzscfj);
/**
* 新增标准手册-油水井管理岗工作手册附件
*
* @param bzscYsjglggzscfj 标准手册-油水井管理岗工作手册附件
* @return 结果
*/
public int insertBzscYsjglggzscfj(BzscYsjglggzscfj bzscYsjglggzscfj);
int insertBzscYsjglggzscfjlist(List<BzscYsjglggzscfj> bzscYsjglggzscfjs);
/**
* 修改标准手册-油水井管理岗工作手册附件
*
* @param bzscYsjglggzscfj 标准手册-油水井管理岗工作手册附件
* @return 结果
*/
public int updateBzscYsjglggzscfj(BzscYsjglggzscfj bzscYsjglggzscfj);
/**
* 删除标准手册-油水井管理岗工作手册附件
*
* @param id 标准手册-油水井管理岗工作手册附件主键
* @return 结果
*/
public int deleteBzscYsjglggzscfjById(Long id);
/**
* 批量删除标准手册-油水井管理岗工作手册附件
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteBzscYsjglggzscfjByIds(Long[] ids);
}
package com.qianhe.service;
import com.qianhe.domain.BzscYsjglggzscCb;
import java.util.List;
/**
* 标准手册-油水井管理岗工作手册-从Service接口
*
* @author qianhe
* @date 2024-10-09
*/
public interface IBzscYsjglggzscCbService
{
/**
* 查询标准手册-油水井管理岗工作手册-从
*
* @param ID 标准手册-油水井管理岗工作手册-从主键
* @return 标准手册-油水井管理岗工作手册-从
*/
public BzscYsjglggzscCb selectBzscYsjglggzscCbByID(Long ID);
/**
* 查询标准手册-油水井管理岗工作手册-从列表
*
* @param bzscYsjglggzscCb 标准手册-油水井管理岗工作手册-从
* @return 标准手册-油水井管理岗工作手册-从集合
*/
public List<BzscYsjglggzscCb> selectBzscYsjglggzscCbList(BzscYsjglggzscCb bzscYsjglggzscCb);
/**
* 新增标准手册-油水井管理岗工作手册-从
*
* @param bzscYsjglggzscCb 标准手册-油水井管理岗工作手册-从
* @return 结果
*/
public int insertBzscYsjglggzscCb(BzscYsjglggzscCb bzscYsjglggzscCb);
/**
* 修改标准手册-油水井管理岗工作手册-从
*
* @param bzscYsjglggzscCb 标准手册-油水井管理岗工作手册-从
* @return 结果
*/
public int updateBzscYsjglggzscCb(BzscYsjglggzscCb bzscYsjglggzscCb);
/**
* 批量删除标准手册-油水井管理岗工作手册-从
*
* @param IDs 需要删除的标准手册-油水井管理岗工作手册-从主键集合
* @return 结果
*/
public int deleteBzscYsjglggzscCbByIDs(Long[] IDs);
/**
* 删除标准手册-油水井管理岗工作手册-从信息
*
* @param ID 标准手册-油水井管理岗工作手册-从主键
* @return 结果
*/
public int deleteBzscYsjglggzscCbByID(Long ID);
}
package com.qianhe.service;
import com.qianhe.domain.BzscYsjglggzsc;
import java.util.List;
/**
* 标准手册-油水井管理岗工作手册-总Service接口
*
* @author qianhe
* @date 2024-10-09
*/
public interface IBzscYsjglggzscService
{
/**
* 查询标准手册-油水井管理岗工作手册-总
*
* @param ID 标准手册-油水井管理岗工作手册-总主键
* @return 标准手册-油水井管理岗工作手册-总
*/
public BzscYsjglggzsc selectBzscYsjglggzscByID(Long ID);
/**
* 查询标准手册-油水井管理岗工作手册-总列表
*
* @param bzscYsjglggzsc 标准手册-油水井管理岗工作手册-总
* @return 标准手册-油水井管理岗工作手册-总集合
*/
public List<BzscYsjglggzsc> selectBzscYsjglggzscList(BzscYsjglggzsc bzscYsjglggzsc);
/**
* 新增标准手册-油水井管理岗工作手册-总
*
* @param bzscYsjglggzsc 标准手册-油水井管理岗工作手册-总
* @return 结果
*/
public int insertBzscYsjglggzsc(BzscYsjglggzsc bzscYsjglggzsc);
/**
* 修改标准手册-油水井管理岗工作手册-总
*
* @param bzscYsjglggzsc 标准手册-油水井管理岗工作手册-总
* @return 结果
*/
public int updateBzscYsjglggzsc(BzscYsjglggzsc bzscYsjglggzsc);
/**
* 批量删除标准手册-油水井管理岗工作手册-总
*
* @param IDs 需要删除的标准手册-油水井管理岗工作手册-总主键集合
* @return 结果
*/
public int deleteBzscYsjglggzscByIDs(Long[] IDs);
/**
* 删除标准手册-油水井管理岗工作手册-总信息
*
* @param ID 标准手册-油水井管理岗工作手册-总主键
* @return 结果
*/
public int deleteBzscYsjglggzscByID(Long ID);
}
package com.qianhe.service;
import com.qianhe.domain.BzscYsjglggzscZb;
import java.util.List;
/**
* 标准手册-油水井管理岗工作手册-主Service接口
*
* @author qianhe
* @date 2024-10-09
*/
public interface IBzscYsjglggzscZbService
{
/**
* 查询标准手册-油水井管理岗工作手册-主
*
* @param ID 标准手册-油水井管理岗工作手册-主主键
* @return 标准手册-油水井管理岗工作手册-主
*/
public BzscYsjglggzscZb selectBzscYsjglggzscZbByID(Long ID);
/**
* 查询标准手册-油水井管理岗工作手册-主列表
*
* @param bzscYsjglggzscZb 标准手册-油水井管理岗工作手册-主
* @return 标准手册-油水井管理岗工作手册-主集合
*/
public List<BzscYsjglggzscZb> selectBzscYsjglggzscZbList(BzscYsjglggzscZb bzscYsjglggzscZb);
/**
* 新增标准手册-油水井管理岗工作手册-主
*
* @param bzscYsjglggzscZb 标准手册-油水井管理岗工作手册-主
* @return 结果
*/
public int insertBzscYsjglggzscZb(BzscYsjglggzscZb bzscYsjglggzscZb);
/**
* 修改标准手册-油水井管理岗工作手册-主
*
* @param bzscYsjglggzscZb 标准手册-油水井管理岗工作手册-主
* @return 结果
*/
public int updateBzscYsjglggzscZb(BzscYsjglggzscZb bzscYsjglggzscZb);
/**
* 批量删除标准手册-油水井管理岗工作手册-主
*
* @param IDs 需要删除的标准手册-油水井管理岗工作手册-主主键集合
* @return 结果
*/
public int deleteBzscYsjglggzscZbByIDs(Long[] IDs);
/**
* 删除标准手册-油水井管理岗工作手册-主信息
*
* @param ID 标准手册-油水井管理岗工作手册-主主键
* @return 结果
*/
public int deleteBzscYsjglggzscZbByID(Long ID);
}
package com.qianhe.service;
import java.util.List;
import com.qianhe.domain.BzscYsjglggzscfj;
/**
* 标准手册-油水井管理岗工作手册附件Service接口
*
* @author qianhe
* @date 2024-10-09
*/
public interface IBzscYsjglggzscfjService
{
/**
* 查询标准手册-油水井管理岗工作手册附件
*
* @param id 标准手册-油水井管理岗工作手册附件主键
* @return 标准手册-油水井管理岗工作手册附件
*/
public BzscYsjglggzscfj selectBzscYsjglggzscfjById(Long id);
/**
* 查询标准手册-油水井管理岗工作手册附件列表
*
* @param bzscYsjglggzscfj 标准手册-油水井管理岗工作手册附件
* @return 标准手册-油水井管理岗工作手册附件集合
*/
public List<BzscYsjglggzscfj> selectBzscYsjglggzscfjList(BzscYsjglggzscfj bzscYsjglggzscfj);
/**
* 新增标准手册-油水井管理岗工作手册附件
*
* @param bzscYsjglggzscfj 标准手册-油水井管理岗工作手册附件
* @return 结果
*/
public int insertBzscYsjglggzscfj(BzscYsjglggzscfj bzscYsjglggzscfj);
/**
* 修改标准手册-油水井管理岗工作手册附件
*
* @param bzscYsjglggzscfj 标准手册-油水井管理岗工作手册附件
* @return 结果
*/
public int updateBzscYsjglggzscfj(BzscYsjglggzscfj bzscYsjglggzscfj);
/**
* 批量删除标准手册-油水井管理岗工作手册附件
*
* @param ids 需要删除的标准手册-油水井管理岗工作手册附件主键集合
* @return 结果
*/
public int deleteBzscYsjglggzscfjByIds(Long[] ids);
/**
* 删除标准手册-油水井管理岗工作手册附件信息
*
* @param id 标准手册-油水井管理岗工作手册附件主键
* @return 结果
*/
public int deleteBzscYsjglggzscfjById(Long id);
}
package com.qianhe.service.impl;
import java.util.List;
import com.qianhe.common.utils.DateUtils;
import com.qianhe.domain.BzscYsjglggzscCb;
import com.qianhe.mapper.BzscYsjglggzscCbMapper;
import com.qianhe.service.IBzscYsjglggzscCbService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* 标准手册-油水井管理岗工作手册-从Service业务层处理
*
* @author qianhe
* @date 2024-10-09
*/
@Service
public class BzscYsjglggzscCbServiceImpl implements IBzscYsjglggzscCbService
{
@Autowired
private BzscYsjglggzscCbMapper bzscYsjglggzscCbMapper;
/**
* 查询标准手册-油水井管理岗工作手册-从
*
* @param ID 标准手册-油水井管理岗工作手册-从主键
* @return 标准手册-油水井管理岗工作手册-从
*/
@Override
public BzscYsjglggzscCb selectBzscYsjglggzscCbByID(Long ID)
{
return bzscYsjglggzscCbMapper.selectBzscYsjglggzscCbByID(ID);
}
/**
* 查询标准手册-油水井管理岗工作手册-从列表
*
* @param bzscYsjglggzscCb 标准手册-油水井管理岗工作手册-从
* @return 标准手册-油水井管理岗工作手册-从
*/
@Override
public List<BzscYsjglggzscCb> selectBzscYsjglggzscCbList(BzscYsjglggzscCb bzscYsjglggzscCb)
{
return bzscYsjglggzscCbMapper.selectBzscYsjglggzscCbList(bzscYsjglggzscCb);
}
/**
* 新增标准手册-油水井管理岗工作手册-从
*
* @param bzscYsjglggzscCb 标准手册-油水井管理岗工作手册-从
* @return 结果
*/
@Override
public int insertBzscYsjglggzscCb(BzscYsjglggzscCb bzscYsjglggzscCb)
{
bzscYsjglggzscCb.setCreateTime(DateUtils.getNowDate());
return bzscYsjglggzscCbMapper.insertBzscYsjglggzscCb(bzscYsjglggzscCb);
}
/**
* 修改标准手册-油水井管理岗工作手册-从
*
* @param bzscYsjglggzscCb 标准手册-油水井管理岗工作手册-从
* @return 结果
*/
@Override
public int updateBzscYsjglggzscCb(BzscYsjglggzscCb bzscYsjglggzscCb)
{
bzscYsjglggzscCb.setUpdateTime(DateUtils.getNowDate());
return bzscYsjglggzscCbMapper.updateBzscYsjglggzscCb(bzscYsjglggzscCb);
}
/**
* 批量删除标准手册-油水井管理岗工作手册-从
*
* @param IDs 需要删除的标准手册-油水井管理岗工作手册-从主键
* @return 结果
*/
@Override
public int deleteBzscYsjglggzscCbByIDs(Long[] IDs)
{
return bzscYsjglggzscCbMapper.deleteBzscYsjglggzscCbByIDs(IDs);
}
/**
* 删除标准手册-油水井管理岗工作手册-从信息
*
* @param ID 标准手册-油水井管理岗工作手册-从主键
* @return 结果
*/
@Override
public int deleteBzscYsjglggzscCbByID(Long ID)
{
return bzscYsjglggzscCbMapper.deleteBzscYsjglggzscCbByID(ID);
}
}
package com.qianhe.service.impl;
import java.util.List;
import com.qianhe.common.utils.DateUtils;
import com.qianhe.domain.BzscYsjglggzsc;
import com.qianhe.domain.BzscYsjglggzscCb;
import com.qianhe.domain.BzscYsjglggzscZb;
import com.qianhe.mapper.BzscYsjglggzscCbMapper;
import com.qianhe.mapper.BzscYsjglggzscMapper;
import com.qianhe.mapper.BzscYsjglggzscZbMapper;
import com.qianhe.service.IBzscYsjglggzscService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import com.qianhe.common.utils.StringUtils;
import org.springframework.transaction.annotation.Transactional;
/**
* 标准手册-油水井管理岗工作手册-总Service业务层处理
*
* @author qianhe
* @date 2024-10-09
*/
@Service
public class BzscYsjglggzscServiceImpl implements IBzscYsjglggzscService
{
@Autowired
private BzscYsjglggzscMapper bzscYsjglggzscMapper;
@Autowired
private BzscYsjglggzscZbMapper bzscYsjglggzscZbMapper;
@Autowired
private BzscYsjglggzscCbMapper bzscYsjglggzscCbMapper;
/**
* 查询标准手册-油水井管理岗工作手册-总
*
* @param ID 标准手册-油水井管理岗工作手册-总主键
* @return 标准手册-油水井管理岗工作手册-总
*/
@Override
public BzscYsjglggzsc selectBzscYsjglggzscByID(Long ID)
{
BzscYsjglggzsc bzscYsjglggzsc = bzscYsjglggzscMapper.selectBzscYsjglggzscByID(ID);
BzscYsjglggzscZb bzscYsjglggzscZb = new BzscYsjglggzscZb();
bzscYsjglggzscZb.setZbId(ID);
List<BzscYsjglggzscZb> bzscYsjglggzscZbslist = new ArrayList<>();
List<BzscYsjglggzscZb> bzscYsjglggzscZbs = bzscYsjglggzscZbMapper.selectBzscYsjglggzscZbList(bzscYsjglggzscZb);
for(BzscYsjglggzscZb bzscYsjglggzscZb1 : bzscYsjglggzscZbs){
BzscYsjglggzscCb bzscYsjglggzsccb = new BzscYsjglggzscCb();
bzscYsjglggzsccb.setZbId(bzscYsjglggzscZb1.getID());
List<BzscYsjglggzscCb> bzscYsjglggzscCbs = bzscYsjglggzscCbMapper.selectBzscYsjglggzscCbList(bzscYsjglggzsccb);
bzscYsjglggzscZb1.setBzscYsjglggzscCbList(bzscYsjglggzscCbs);
bzscYsjglggzscZbslist.add(bzscYsjglggzscZb1);
}
bzscYsjglggzsc.setBzscYsjglggzscZbList(bzscYsjglggzscZbslist);
return bzscYsjglggzsc;
}
/**
* 查询标准手册-油水井管理岗工作手册-总列表
*
* @param bzscYsjglggzsc 标准手册-油水井管理岗工作手册-总
* @return 标准手册-油水井管理岗工作手册-总
*/
@Override
public List<BzscYsjglggzsc> selectBzscYsjglggzscList(BzscYsjglggzsc bzscYsjglggzsc)
{
return bzscYsjglggzscMapper.selectBzscYsjglggzscList(bzscYsjglggzsc);
}
/**
* 新增标准手册-油水井管理岗工作手册-总
*
* @param bzscYsjglggzsc 标准手册-油水井管理岗工作手册-总
* @return 结果
*/
@Transactional
@Override
public int insertBzscYsjglggzsc(BzscYsjglggzsc bzscYsjglggzsc)
{
bzscYsjglggzsc.setCreateTime(DateUtils.getNowDate());
int rows = bzscYsjglggzscMapper.insertBzscYsjglggzsc(bzscYsjglggzsc);
insertBzscYsjglggzscZb(bzscYsjglggzsc);
return rows;
}
/**
* 修改标准手册-油水井管理岗工作手册-总
*
* @param bzscYsjglggzsc 标准手册-油水井管理岗工作手册-总
* @return 结果
*/
@Transactional
@Override
public int updateBzscYsjglggzsc(BzscYsjglggzsc bzscYsjglggzsc)
{
bzscYsjglggzsc.setUpdateTime(DateUtils.getNowDate());
BzscYsjglggzscZb bzscYsjglggzscZb = new BzscYsjglggzscZb();
bzscYsjglggzscZb.setZbId(bzscYsjglggzsc.getID());
List<BzscYsjglggzscZb> bzscYsjglggzscZbs = bzscYsjglggzscZbMapper.selectBzscYsjglggzscZbList(bzscYsjglggzscZb);
for(BzscYsjglggzscZb bzscYsjglggzscZb1 : bzscYsjglggzscZbs){
bzscYsjglggzscZbMapper.deleteBzscYsjglggzscCbByZbId(bzscYsjglggzscZb1.getID());
}
bzscYsjglggzscMapper.deleteBzscYsjglggzscZbByZbId(bzscYsjglggzsc.getID());
insertBzscYsjglggzscZb(bzscYsjglggzsc);
return bzscYsjglggzscMapper.updateBzscYsjglggzsc(bzscYsjglggzsc);
}
/**
* 批量删除标准手册-油水井管理岗工作手册-总
*
* @param IDs 需要删除的标准手册-油水井管理岗工作手册-总主键
* @return 结果
*/
@Transactional
@Override
public int deleteBzscYsjglggzscByIDs(Long[] IDs)
{
bzscYsjglggzscMapper.deleteBzscYsjglggzscZbByZbIds(IDs);
return bzscYsjglggzscMapper.deleteBzscYsjglggzscByIDs(IDs);
}
/**
* 删除标准手册-油水井管理岗工作手册-总信息
*
* @param ID 标准手册-油水井管理岗工作手册-总主键
* @return 结果
*/
@Transactional
@Override
public int deleteBzscYsjglggzscByID(Long ID)
{
BzscYsjglggzscZb bzscYsjglggzscZb = new BzscYsjglggzscZb();
bzscYsjglggzscZb.setZbId(ID);
List<BzscYsjglggzscZb> bzscYsjglggzscZbs = bzscYsjglggzscZbMapper.selectBzscYsjglggzscZbList(bzscYsjglggzscZb);
for(BzscYsjglggzscZb bzscYsjglggzscZb1 : bzscYsjglggzscZbs){
bzscYsjglggzscZbMapper.deleteBzscYsjglggzscCbByZbId(bzscYsjglggzscZb1.getID());
}
bzscYsjglggzscMapper.deleteBzscYsjglggzscZbByZbId(ID);
return bzscYsjglggzscMapper.deleteBzscYsjglggzscByID(ID);
}
/**
* 新增标准手册-油水井管理岗工作手册-主信息
*
* @param bzscYsjglggzsc 标准手册-油水井管理岗工作手册-总对象
*/
public void insertBzscYsjglggzscZb(BzscYsjglggzsc bzscYsjglggzsc)
{
List<BzscYsjglggzscZb> bzscYsjglggzscZbList = bzscYsjglggzsc.getBzscYsjglggzscZbList();
Long ID = bzscYsjglggzsc.getID();
if (StringUtils.isNotNull(bzscYsjglggzscZbList))
{
List<BzscYsjglggzscZb> list = new ArrayList<BzscYsjglggzscZb>();
for (BzscYsjglggzscZb bzscYsjglggzscZb : bzscYsjglggzscZbList)
{
bzscYsjglggzscZb.setZbId(ID);
bzscYsjglggzscZb.setCreateTime(DateUtils.getNowDate());
int rows = bzscYsjglggzscZbMapper.insertBzscYsjglggzscZb(bzscYsjglggzscZb);
insertBzscYsjglggzscCb(bzscYsjglggzscZb);
}
// if (list.size() > 0)
// {
// bzscYsjglggzscMapper.batchBzscYsjglggzscZb(list);
// }
}
}
/**
* 新增标准手册-油水井管理岗工作手册-主
*
* @param bzscYsjglggzscZb 标准手册-油水井管理岗工作手册-主
* @return 结果
*/
public void insertBzscYsjglggzscZbcb(BzscYsjglggzscZb bzscYsjglggzscZb)
{
bzscYsjglggzscZb.setCreateTime(DateUtils.getNowDate());
bzscYsjglggzscZbMapper.insertBzscYsjglggzscZb(bzscYsjglggzscZb);
insertBzscYsjglggzscCb(bzscYsjglggzscZb);
}
/**
* 新增标准手册-油水井管理岗工作手册-从信息
*
* @param bzscYsjglggzscZb 标准手册-油水井管理岗工作手册-主对象
*/
public void insertBzscYsjglggzscCb(BzscYsjglggzscZb bzscYsjglggzscZb)
{
List<BzscYsjglggzscCb> bzscYsjglggzscCbList = bzscYsjglggzscZb.getBzscYsjglggzscCbList();
Long ID = bzscYsjglggzscZb.getID();
if (StringUtils.isNotNull(bzscYsjglggzscCbList))
{
List<BzscYsjglggzscCb> list = new ArrayList<BzscYsjglggzscCb>();
for (BzscYsjglggzscCb bzscYsjglggzscCb : bzscYsjglggzscCbList)
{
bzscYsjglggzscCb.setZbId(ID);
bzscYsjglggzscCb.setCreateTime(DateUtils.getNowDate());
list.add(bzscYsjglggzscCb);
}
if (list.size() > 0)
{
bzscYsjglggzscZbMapper.batchBzscYsjglggzscCb(list);
}
}
}
}
package com.qianhe.service.impl;
import java.util.List;
import com.qianhe.common.utils.DateUtils;
import com.qianhe.domain.BzscYsjglggzscCb;
import com.qianhe.domain.BzscYsjglggzscZb;
import com.qianhe.mapper.BzscYsjglggzscZbMapper;
import com.qianhe.service.IBzscYsjglggzscZbService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import com.qianhe.common.utils.StringUtils;
import org.springframework.transaction.annotation.Transactional;
/**
* 标准手册-油水井管理岗工作手册-主Service业务层处理
*
* @author qianhe
* @date 2024-10-09
*/
@Service
public class BzscYsjglggzscZbServiceImpl implements IBzscYsjglggzscZbService
{
@Autowired
private BzscYsjglggzscZbMapper bzscYsjglggzscZbMapper;
/**
* 查询标准手册-油水井管理岗工作手册-主
*
* @param ID 标准手册-油水井管理岗工作手册-主主键
* @return 标准手册-油水井管理岗工作手册-主
*/
@Override
public BzscYsjglggzscZb selectBzscYsjglggzscZbByID(Long ID)
{
return bzscYsjglggzscZbMapper.selectBzscYsjglggzscZbByID(ID);
}
/**
* 查询标准手册-油水井管理岗工作手册-主列表
*
* @param bzscYsjglggzscZb 标准手册-油水井管理岗工作手册-主
* @return 标准手册-油水井管理岗工作手册-主
*/
@Override
public List<BzscYsjglggzscZb> selectBzscYsjglggzscZbList(BzscYsjglggzscZb bzscYsjglggzscZb)
{
return bzscYsjglggzscZbMapper.selectBzscYsjglggzscZbList(bzscYsjglggzscZb);
}
/**
* 新增标准手册-油水井管理岗工作手册-主
*
* @param bzscYsjglggzscZb 标准手册-油水井管理岗工作手册-主
* @return 结果
*/
@Transactional
@Override
public int insertBzscYsjglggzscZb(BzscYsjglggzscZb bzscYsjglggzscZb)
{
bzscYsjglggzscZb.setCreateTime(DateUtils.getNowDate());
int rows = bzscYsjglggzscZbMapper.insertBzscYsjglggzscZb(bzscYsjglggzscZb);
insertBzscYsjglggzscCb(bzscYsjglggzscZb);
return rows;
}
/**
* 修改标准手册-油水井管理岗工作手册-主
*
* @param bzscYsjglggzscZb 标准手册-油水井管理岗工作手册-主
* @return 结果
*/
@Transactional
@Override
public int updateBzscYsjglggzscZb(BzscYsjglggzscZb bzscYsjglggzscZb)
{
bzscYsjglggzscZb.setUpdateTime(DateUtils.getNowDate());
bzscYsjglggzscZbMapper.deleteBzscYsjglggzscCbByZbId(bzscYsjglggzscZb.getID());
insertBzscYsjglggzscCb(bzscYsjglggzscZb);
return bzscYsjglggzscZbMapper.updateBzscYsjglggzscZb(bzscYsjglggzscZb);
}
/**
* 批量删除标准手册-油水井管理岗工作手册-主
*
* @param IDs 需要删除的标准手册-油水井管理岗工作手册-主主键
* @return 结果
*/
@Transactional
@Override
public int deleteBzscYsjglggzscZbByIDs(Long[] IDs)
{
bzscYsjglggzscZbMapper.deleteBzscYsjglggzscCbByZbIds(IDs);
return bzscYsjglggzscZbMapper.deleteBzscYsjglggzscZbByIDs(IDs);
}
/**
* 删除标准手册-油水井管理岗工作手册-主信息
*
* @param ID 标准手册-油水井管理岗工作手册-主主键
* @return 结果
*/
@Transactional
@Override
public int deleteBzscYsjglggzscZbByID(Long ID)
{
bzscYsjglggzscZbMapper.deleteBzscYsjglggzscCbByZbId(ID);
return bzscYsjglggzscZbMapper.deleteBzscYsjglggzscZbByID(ID);
}
/**
* 新增标准手册-油水井管理岗工作手册-从信息
*
* @param bzscYsjglggzscZb 标准手册-油水井管理岗工作手册-主对象
*/
public void insertBzscYsjglggzscCb(BzscYsjglggzscZb bzscYsjglggzscZb)
{
List<BzscYsjglggzscCb> bzscYsjglggzscCbList = bzscYsjglggzscZb.getBzscYsjglggzscCbList();
Long ID = bzscYsjglggzscZb.getID();
if (StringUtils.isNotNull(bzscYsjglggzscCbList))
{
List<BzscYsjglggzscCb> list = new ArrayList<BzscYsjglggzscCb>();
for (BzscYsjglggzscCb bzscYsjglggzscCb : bzscYsjglggzscCbList)
{
bzscYsjglggzscCb.setZbId(ID);
list.add(bzscYsjglggzscCb);
}
if (list.size() > 0)
{
bzscYsjglggzscZbMapper.batchBzscYsjglggzscCb(list);
}
}
}
}
package com.qianhe.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.qianhe.mapper.BzscYsjglggzscfjMapper;
import com.qianhe.domain.BzscYsjglggzscfj;
import com.qianhe.service.IBzscYsjglggzscfjService;
/**
* 标准手册-油水井管理岗工作手册附件Service业务层处理
*
* @author qianhe
* @date 2024-10-09
*/
@Service
public class BzscYsjglggzscfjServiceImpl implements IBzscYsjglggzscfjService
{
@Autowired
private BzscYsjglggzscfjMapper bzscYsjglggzscfjMapper;
/**
* 查询标准手册-油水井管理岗工作手册附件
*
* @param id 标准手册-油水井管理岗工作手册附件主键
* @return 标准手册-油水井管理岗工作手册附件
*/
@Override
public BzscYsjglggzscfj selectBzscYsjglggzscfjById(Long id)
{
return bzscYsjglggzscfjMapper.selectBzscYsjglggzscfjById(id);
}
/**
* 查询标准手册-油水井管理岗工作手册附件列表
*
* @param bzscYsjglggzscfj 标准手册-油水井管理岗工作手册附件
* @return 标准手册-油水井管理岗工作手册附件
*/
@Override
public List<BzscYsjglggzscfj> selectBzscYsjglggzscfjList(BzscYsjglggzscfj bzscYsjglggzscfj)
{
return bzscYsjglggzscfjMapper.selectBzscYsjglggzscfjList(bzscYsjglggzscfj);
}
/**
* 新增标准手册-油水井管理岗工作手册附件
*
* @param bzscYsjglggzscfj 标准手册-油水井管理岗工作手册附件
* @return 结果
*/
@Override
public int insertBzscYsjglggzscfj(BzscYsjglggzscfj bzscYsjglggzscfj)
{
return bzscYsjglggzscfjMapper.insertBzscYsjglggzscfj(bzscYsjglggzscfj);
}
/**
* 修改标准手册-油水井管理岗工作手册附件
*
* @param bzscYsjglggzscfj 标准手册-油水井管理岗工作手册附件
* @return 结果
*/
@Override
public int updateBzscYsjglggzscfj(BzscYsjglggzscfj bzscYsjglggzscfj)
{
return bzscYsjglggzscfjMapper.updateBzscYsjglggzscfj(bzscYsjglggzscfj);
}
/**
* 批量删除标准手册-油水井管理岗工作手册附件
*
* @param ids 需要删除的标准手册-油水井管理岗工作手册附件主键
* @return 结果
*/
@Override
public int deleteBzscYsjglggzscfjByIds(Long[] ids)
{
return bzscYsjglggzscfjMapper.deleteBzscYsjglggzscfjByIds(ids);
}
/**
* 删除标准手册-油水井管理岗工作手册附件信息
*
* @param id 标准手册-油水井管理岗工作手册附件主键
* @return 结果
*/
@Override
public int deleteBzscYsjglggzscfjById(Long id)
{
return bzscYsjglggzscfjMapper.deleteBzscYsjglggzscfjById(id);
}
}
<?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.qianhe.mapper.BzscYsjglggzscCbMapper">
<resultMap type="BzscYsjglggzscCb" id="BzscYsjglggzscCbResult">
<result property="ID" column="ID" />
<result property="zbId" column="zb_id" />
<result property="deptId" column="dept_id" />
<result property="nd" column="nd" />
<result property="parentId" column="parent_id" />
<result property="mc" column="mc" />
<result property="ms" column="ms" />
<result property="nr" column="nr" />
<result property="px" column="px" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="yl1" column="yl1" />
<result property="yl2" column="yl2" />
<result property="yl3" column="yl3" />
<result property="yl4" column="yl4" />
<result property="yl5" column="yl5" />
</resultMap>
<sql id="selectBzscYsjglggzscCbVo">
select ID, zb_id, dept_id, nd, parent_id, mc, ms, nr, px, create_by, create_time, update_by, update_time, remark, yl1, yl2, yl3, yl4, yl5 from bzsc_ysjglggzsc_cb
</sql>
<select id="selectBzscYsjglggzscCbList" parameterType="BzscYsjglggzscCb" resultMap="BzscYsjglggzscCbResult">
<include refid="selectBzscYsjglggzscCbVo"/>
<where>
<if test="zbId != null "> and zb_id = #{zbId}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if>
<if test="nd != null and nd != ''"> and nd = #{nd}</if>
<if test="parentId != null "> and parent_id = #{parentId}</if>
<if test="mc != null and mc != ''"> and mc = #{mc}</if>
<if test="ms != null and ms != ''"> and ms = #{ms}</if>
<if test="nr != null and nr != ''"> and nr = #{nr}</if>
<if test="px != null "> and px = #{px}</if>
<if test="yl1 != null and yl1 != ''"> and yl1 = #{yl1}</if>
<if test="yl2 != null and yl2 != ''"> and yl2 = #{yl2}</if>
<if test="yl3 != null and yl3 != ''"> and yl3 = #{yl3}</if>
<if test="yl4 != null and yl4 != ''"> and yl4 = #{yl4}</if>
<if test="yl5 != null and yl5 != ''"> and yl5 = #{yl5}</if>
</where>
</select>
<select id="selectBzscYsjglggzscCbByID" parameterType="Long" resultMap="BzscYsjglggzscCbResult">
<include refid="selectBzscYsjglggzscCbVo"/>
where ID = #{ID}
</select>
<insert id="insertBzscYsjglggzscCb" parameterType="BzscYsjglggzscCb" useGeneratedKeys="true" keyProperty="ID">
insert into bzsc_ysjglggzsc_cb
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="zbId != null">zb_id,</if>
<if test="deptId != null">dept_id,</if>
<if test="nd != null">nd,</if>
<if test="parentId != null">parent_id,</if>
<if test="mc != null">mc,</if>
<if test="ms != null">ms,</if>
<if test="nr != null">nr,</if>
<if test="px != null">px,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
<if test="yl1 != null">yl1,</if>
<if test="yl2 != null">yl2,</if>
<if test="yl3 != null">yl3,</if>
<if test="yl4 != null">yl4,</if>
<if test="yl5 != null">yl5,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="zbId != null">#{zbId},</if>
<if test="deptId != null">#{deptId},</if>
<if test="nd != null">#{nd},</if>
<if test="parentId != null">#{parentId},</if>
<if test="mc != null">#{mc},</if>
<if test="ms != null">#{ms},</if>
<if test="nr != null">#{nr},</if>
<if test="px != null">#{px},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
<if test="yl1 != null">#{yl1},</if>
<if test="yl2 != null">#{yl2},</if>
<if test="yl3 != null">#{yl3},</if>
<if test="yl4 != null">#{yl4},</if>
<if test="yl5 != null">#{yl5},</if>
</trim>
</insert>
<update id="updateBzscYsjglggzscCb" parameterType="BzscYsjglggzscCb">
update bzsc_ysjglggzsc_cb
<trim prefix="SET" suffixOverrides=",">
<if test="zbId != null">zb_id = #{zbId},</if>
<if test="deptId != null">dept_id = #{deptId},</if>
<if test="nd != null">nd = #{nd},</if>
<if test="parentId != null">parent_id = #{parentId},</if>
<if test="mc != null">mc = #{mc},</if>
<if test="ms != null">ms = #{ms},</if>
<if test="nr != null">nr = #{nr},</if>
<if test="px != null">px = #{px},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="yl1 != null">yl1 = #{yl1},</if>
<if test="yl2 != null">yl2 = #{yl2},</if>
<if test="yl3 != null">yl3 = #{yl3},</if>
<if test="yl4 != null">yl4 = #{yl4},</if>
<if test="yl5 != null">yl5 = #{yl5},</if>
</trim>
where ID = #{ID}
</update>
<delete id="deleteBzscYsjglggzscCbByID" parameterType="Long">
delete from bzsc_ysjglggzsc_cb where ID = #{ID}
</delete>
<delete id="deleteBzscYsjglggzscCbByIDs" parameterType="String">
delete from bzsc_ysjglggzsc_cb where ID in
<foreach item="ID" collection="array" open="(" separator="," close=")">
#{ID}
</foreach>
</delete>
</mapper>
<?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.qianhe.mapper.BzscYsjglggzscMapper">
<resultMap type="BzscYsjglggzsc" id="BzscYsjglggzscResult">
<result property="ID" column="ID" />
<result property="deptId" column="dept_id" />
<result property="bt" column="bt" />
<result property="nd" column="nd" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="yl1" column="yl1" />
<result property="yl2" column="yl2" />
<result property="yl3" column="yl3" />
<result property="yl4" column="yl4" />
<result property="yl5" column="yl5" />
</resultMap>
<resultMap id="BzscYsjglggzscBzscYsjglggzscZbResult" type="BzscYsjglggzsc" extends="BzscYsjglggzscResult">
<collection property="bzscYsjglggzscZbList" notNullColumn="sub_ID" javaType="java.util.List" resultMap="BzscYsjglggzscZbResult" />
</resultMap>
<resultMap type="BzscYsjglggzscZb" id="BzscYsjglggzscZbResult">
<result property="ID" column="sub_ID" />
<result property="zbId" column="sub_zb_id" />
<result property="deptId" column="sub_dept_id" />
<result property="bt" column="sub_bt" />
<result property="nd" column="sub_nd" />
<result property="px" column="sub_px" />
<result property="createBy" column="sub_create_by" />
<result property="createTime" column="sub_create_time" />
<result property="updateBy" column="sub_update_by" />
<result property="updateTime" column="sub_update_time" />
<result property="remark" column="sub_remark" />
<result property="yl1" column="sub_yl1" />
<result property="yl2" column="sub_yl2" />
<result property="yl3" column="sub_yl3" />
<result property="yl4" column="sub_yl4" />
<result property="yl5" column="sub_yl5" />
</resultMap>
<sql id="selectBzscYsjglggzscVo">
select ID, dept_id, bt, nd, create_by, create_time, update_by, update_time, remark, yl1, yl2, yl3, yl4, yl5 from bzsc_ysjglggzsc
</sql>
<select id="selectBzscYsjglggzscList" parameterType="BzscYsjglggzsc" resultMap="BzscYsjglggzscResult">
<include refid="selectBzscYsjglggzscVo"/>
<where>
<if test="deptId != null "> and dept_id = #{deptId}</if>
<if test="bt != null and bt != ''"> and bt = #{bt}</if>
<if test="nd != null and nd != ''"> and nd = #{nd}</if>
<if test="yl1 != null and yl1 != ''"> and yl1 = #{yl1}</if>
<if test="yl2 != null and yl2 != ''"> and yl2 = #{yl2}</if>
<if test="yl3 != null and yl3 != ''"> and yl3 = #{yl3}</if>
<if test="yl4 != null and yl4 != ''"> and yl4 = #{yl4}</if>
<if test="yl5 != null and yl5 != ''"> and yl5 = #{yl5}</if>
</where>
</select>
<select id="selectBzscYsjglggzscByID" parameterType="Long" resultMap="BzscYsjglggzscBzscYsjglggzscZbResult">
select a.ID, a.dept_id, a.bt, a.nd, a.create_by, a.create_time, a.update_by, a.update_time, a.remark, a.yl1, a.yl2, a.yl3, a.yl4, a.yl5,
b.ID as sub_ID, b.zb_id as sub_zb_id, b.dept_id as sub_dept_id, b.bt as sub_bt, b.nd as sub_nd,px as sub_px, b.create_by as sub_create_by, b.create_time as sub_create_time, b.update_by as sub_update_by, b.update_time as sub_update_time, b.remark as sub_remark, b.yl1 as sub_yl1, b.yl2 as sub_yl2, b.yl3 as sub_yl3, b.yl4 as sub_yl4, b.yl5 as sub_yl5
from bzsc_ysjglggzsc a
left join bzsc_ysjglggzsc_zb b on b.zb_id = a.ID
where a.ID = #{ID}
</select>
<insert id="insertBzscYsjglggzsc" parameterType="BzscYsjglggzsc" useGeneratedKeys="true" keyProperty="ID">
insert into bzsc_ysjglggzsc
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="deptId != null">dept_id,</if>
<if test="bt != null">bt,</if>
<if test="nd != null">nd,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
<if test="yl1 != null">yl1,</if>
<if test="yl2 != null">yl2,</if>
<if test="yl3 != null">yl3,</if>
<if test="yl4 != null">yl4,</if>
<if test="yl5 != null">yl5,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="deptId != null">#{deptId},</if>
<if test="bt != null">#{bt},</if>
<if test="nd != null">#{nd},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
<if test="yl1 != null">#{yl1},</if>
<if test="yl2 != null">#{yl2},</if>
<if test="yl3 != null">#{yl3},</if>
<if test="yl4 != null">#{yl4},</if>
<if test="yl5 != null">#{yl5},</if>
</trim>
</insert>
<update id="updateBzscYsjglggzsc" parameterType="BzscYsjglggzsc">
update bzsc_ysjglggzsc
<trim prefix="SET" suffixOverrides=",">
<if test="deptId != null">dept_id = #{deptId},</if>
<if test="bt != null">bt = #{bt},</if>
<if test="nd != null">nd = #{nd},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="yl1 != null">yl1 = #{yl1},</if>
<if test="yl2 != null">yl2 = #{yl2},</if>
<if test="yl3 != null">yl3 = #{yl3},</if>
<if test="yl4 != null">yl4 = #{yl4},</if>
<if test="yl5 != null">yl5 = #{yl5},</if>
</trim>
where ID = #{ID}
</update>
<delete id="deleteBzscYsjglggzscByID" parameterType="Long">
delete from bzsc_ysjglggzsc where ID = #{ID}
</delete>
<delete id="deleteBzscYsjglggzscByIDs" parameterType="String">
delete from bzsc_ysjglggzsc where ID in
<foreach item="ID" collection="array" open="(" separator="," close=")">
#{ID}
</foreach>
</delete>
<delete id="deleteBzscYsjglggzscZbByZbIds" parameterType="String">
delete from bzsc_ysjglggzsc_zb where zb_id in
<foreach item="zbId" collection="array" open="(" separator="," close=")">
#{zbId}
</foreach>
</delete>
<delete id="deleteBzscYsjglggzscZbByZbId" parameterType="Long">
delete from bzsc_ysjglggzsc_zb where zb_id = #{zbId}
</delete>
<insert id="batchBzscYsjglggzscZb">
insert into bzsc_ysjglggzsc_zb( ID, zb_id, dept_id, bt, nd, px, create_by, create_time, update_by, update_time, remark, yl1, yl2, yl3, yl4, yl5) values
<foreach item="item" index="index" collection="list" separator=",">
( #{item.ID}, #{item.zbId}, #{item.deptId}, #{item.bt}, #{item.nd},#{item.px}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime}, #{item.remark}, #{item.yl1}, #{item.yl2}, #{item.yl3}, #{item.yl4}, #{item.yl5})
</foreach>
</insert>
</mapper>
<?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.qianhe.mapper.BzscYsjglggzscZbMapper">
<resultMap type="BzscYsjglggzscZb" id="BzscYsjglggzscZbResult">
<result property="ID" column="ID" />
<result property="zbId" column="zb_id" />
<result property="deptId" column="dept_id" />
<result property="bt" column="bt" />
<result property="nd" column="nd" />
<result property="px" column="px" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="yl1" column="yl1" />
<result property="yl2" column="yl2" />
<result property="yl3" column="yl3" />
<result property="yl4" column="yl4" />
<result property="yl5" column="yl5" />
</resultMap>
<resultMap id="BzscYsjglggzscZbBzscYsjglggzscCbResult" type="BzscYsjglggzscZb" extends="BzscYsjglggzscZbResult">
<collection property="bzscYsjglggzscCbList" notNullColumn="sub_ID" javaType="java.util.List" resultMap="BzscYsjglggzscCbResult" />
</resultMap>
<resultMap type="BzscYsjglggzscCb" id="BzscYsjglggzscCbResult">
<result property="ID" column="sub_ID" />
<result property="zbId" column="sub_zb_id" />
<result property="deptId" column="sub_dept_id" />
<result property="nd" column="sub_nd" />
<result property="parentId" column="sub_parent_id" />
<result property="mc" column="sub_mc" />
<result property="ms" column="sub_ms" />
<result property="nr" column="sub_nr" />
<result property="px" column="sub_px" />
<result property="createBy" column="sub_create_by" />
<result property="createTime" column="sub_create_time" />
<result property="updateBy" column="sub_update_by" />
<result property="updateTime" column="sub_update_time" />
<result property="remark" column="sub_remark" />
<result property="yl1" column="sub_yl1" />
<result property="yl2" column="sub_yl2" />
<result property="yl3" column="sub_yl3" />
<result property="yl4" column="sub_yl4" />
<result property="yl5" column="sub_yl5" />
</resultMap>
<sql id="selectBzscYsjglggzscZbVo">
select ID, zb_id, dept_id, bt, nd,px, create_by, create_time, update_by, update_time, remark, yl1, yl2, yl3, yl4, yl5 from bzsc_ysjglggzsc_zb
</sql>
<select id="selectBzscYsjglggzscZbList" parameterType="BzscYsjglggzscZb" resultMap="BzscYsjglggzscZbResult">
<include refid="selectBzscYsjglggzscZbVo"/>
<where>
<if test="zbId != null "> and zb_id = #{zbId}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if>
<if test="bt != null and bt != ''"> and bt = #{bt}</if>
<if test="nd != null and nd != ''"> and nd = #{nd}</if>
<if test="yl1 != null and yl1 != ''"> and yl1 = #{yl1}</if>
<if test="yl2 != null and yl2 != ''"> and yl2 = #{yl2}</if>
<if test="yl3 != null and yl3 != ''"> and yl3 = #{yl3}</if>
<if test="yl4 != null and yl4 != ''"> and yl4 = #{yl4}</if>
<if test="yl5 != null and yl5 != ''"> and yl5 = #{yl5}</if>
</where>
</select>
<select id="selectBzscYsjglggzscZbByID" parameterType="Long" resultMap="BzscYsjglggzscZbBzscYsjglggzscCbResult">
select a.ID, a.zb_id, a.dept_id, a.bt, a.nd,a.px, a.create_by, a.create_time, a.update_by, a.update_time, a.remark, a.yl1, a.yl2, a.yl3, a.yl4, a.yl5,
b.ID as sub_ID, b.zb_id as sub_zb_id, b.dept_id as sub_dept_id, b.nd as sub_nd, b.parent_id as sub_parent_id, b.mc as sub_mc, b.ms as sub_ms, b.nr as sub_nr, b.px as sub_px, b.create_by as sub_create_by, b.create_time as sub_create_time, b.update_by as sub_update_by, b.update_time as sub_update_time, b.remark as sub_remark, b.yl1 as sub_yl1, b.yl2 as sub_yl2, b.yl3 as sub_yl3, b.yl4 as sub_yl4, b.yl5 as sub_yl5
from bzsc_ysjglggzsc_zb a
left join bzsc_ysjglggzsc_cb b on b.zb_id = a.ID
where a.ID = #{ID}
</select>
<insert id="insertBzscYsjglggzscZb" parameterType="BzscYsjglggzscZb" useGeneratedKeys="true" keyProperty="ID">
insert into bzsc_ysjglggzsc_zb
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="zbId != null">zb_id,</if>
<if test="deptId != null">dept_id,</if>
<if test="bt != null">bt,</if>
<if test="nd != null">nd,</if>
<if test="px != null">px,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
<if test="yl1 != null">yl1,</if>
<if test="yl2 != null">yl2,</if>
<if test="yl3 != null">yl3,</if>
<if test="yl4 != null">yl4,</if>
<if test="yl5 != null">yl5,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="zbId != null">#{zbId},</if>
<if test="deptId != null">#{deptId},</if>
<if test="bt != null">#{bt},</if>
<if test="nd != null">#{nd},</if>
<if test="px != null">#{px},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
<if test="yl1 != null">#{yl1},</if>
<if test="yl2 != null">#{yl2},</if>
<if test="yl3 != null">#{yl3},</if>
<if test="yl4 != null">#{yl4},</if>
<if test="yl5 != null">#{yl5},</if>
</trim>
</insert>
<update id="updateBzscYsjglggzscZb" parameterType="BzscYsjglggzscZb">
update bzsc_ysjglggzsc_zb
<trim prefix="SET" suffixOverrides=",">
<if test="zbId != null">zb_id = #{zbId},</if>
<if test="deptId != null">dept_id = #{deptId},</if>
<if test="bt != null">bt = #{bt},</if>
<if test="nd != null">nd = #{nd},</if>
<if test="px != null">px = #{px},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="yl1 != null">yl1 = #{yl1},</if>
<if test="yl2 != null">yl2 = #{yl2},</if>
<if test="yl3 != null">yl3 = #{yl3},</if>
<if test="yl4 != null">yl4 = #{yl4},</if>
<if test="yl5 != null">yl5 = #{yl5},</if>
</trim>
where ID = #{ID}
</update>
<delete id="deleteBzscYsjglggzscZbByID" parameterType="Long">
delete from bzsc_ysjglggzsc_zb where ID = #{ID}
</delete>
<delete id="deleteBzscYsjglggzscZbByIDs" parameterType="String">
delete from bzsc_ysjglggzsc_zb where ID in
<foreach item="ID" collection="array" open="(" separator="," close=")">
#{ID}
</foreach>
</delete>
<delete id="deleteBzscYsjglggzscCbByZbIds" parameterType="String">
delete from bzsc_ysjglggzsc_cb where zb_id in
<foreach item="zbId" collection="array" open="(" separator="," close=")">
#{zbId}
</foreach>
</delete>
<delete id="deleteBzscYsjglggzscCbByZbId" parameterType="Long">
delete from bzsc_ysjglggzsc_cb where zb_id = #{zbId}
</delete>
<insert id="batchBzscYsjglggzscCb">
insert into bzsc_ysjglggzsc_cb( ID, zb_id, dept_id, nd, parent_id, mc, ms, nr, px, create_by, create_time, update_by, update_time, remark, yl1, yl2, yl3, yl4, yl5) values
<foreach item="item" index="index" collection="list" separator=",">
( #{item.ID}, #{item.zbId}, #{item.deptId}, #{item.nd}, #{item.parentId}, #{item.mc}, #{item.ms}, #{item.nr}, #{item.px}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime}, #{item.remark}, #{item.yl1}, #{item.yl2}, #{item.yl3}, #{item.yl4}, #{item.yl5})
</foreach>
</insert>
</mapper>
<?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.qianhe.mapper.BzscYsjglggzscfjMapper">
<resultMap type="BzscYsjglggzscfj" id="BzscYsjglggzscfjResult">
<result property="id" column="id" />
<result property="deptId" column="dept_id" />
<result property="nd" column="nd" />
<result property="fjmc" column="fjmc" />
<result property="fjdz" column="fjdz" />
<result property="dl" column="dl" />
<result property="zl" column="zl" />
<result property="fjlx" column="fjlx" />
<result property="rdpx" column="rdpx" />
<result property="lrr" column="lrr" />
<result property="lrsj" column="lrsj" />
<result property="xgr" column="xgr" />
<result property="xgsj" column="xgsj" />
<result property="bz" column="bz" />
<result property="yl2" column="yl2" />
<result property="yl3" column="yl3" />
<result property="yl4" column="yl4" />
<result property="yl5" column="yl5" />
</resultMap>
<sql id="selectBzscYsjglggzscfjVo">
select id, dept_id, nd, fjmc, fjdz, dl, zl, fjlx, rdpx, lrr, lrsj, xgr, xgsj, bz, yl2, yl3, yl4, yl5 from bzsc_ysjglggzscfj
</sql>
<select id="selectBzscYsjglggzscfjList" parameterType="BzscYsjglggzscfj" resultMap="BzscYsjglggzscfjResult">
<include refid="selectBzscYsjglggzscfjVo"/>
<where>
<if test="deptId != null and deptId != ''"> and dept_id = #{deptId}</if>
<if test="nd != null and nd != ''"> and nd = #{nd}</if>
<if test="fjmc != null and fjmc != ''"> and fjmc = #{fjmc}</if>
<if test="fjdz != null and fjdz != ''"> and fjdz = #{fjdz}</if>
<if test="dl != null and dl != ''"> and dl = #{dl}</if>
<if test="zl != null and zl != ''"> and zl = #{zl}</if>
<if test="fjlx != null and fjlx != ''"> and fjlx = #{fjlx}</if>
<if test="rdpx != null and rdpx != ''"> and rdpx = #{rdpx}</if>
<if test="lrr != null and lrr != ''"> and lrr = #{lrr}</if>
<if test="lrsj != null "> and lrsj = #{lrsj}</if>
<if test="xgr != null and xgr != ''"> and xgr = #{xgr}</if>
<if test="xgsj != null "> and xgsj = #{xgsj}</if>
<if test="bz != null and bz != ''"> and bz = #{bz}</if>
<if test="yl2 != null and yl2 != ''"> and yl2 = #{yl2}</if>
<if test="yl3 != null and yl3 != ''"> and yl3 = #{yl3}</if>
<if test="yl4 != null and yl4 != ''"> and yl4 = #{yl4}</if>
<if test="yl5 != null and yl5 != ''"> and yl5 = #{yl5}</if>
</where>
</select>
<select id="selectBzscYsjglggzscfjById" parameterType="Long" resultMap="BzscYsjglggzscfjResult">
<include refid="selectBzscYsjglggzscfjVo"/>
where id = #{id}
</select>
<insert id="insertBzscYsjglggzscfjlist">
insert into bzsc_ysjglggzscfj(dept_id, nd, fjmc, fjdz, dl, zl, fjlx, rdpx, lrr, lrsj, xgr, xgsj, bz, yl2, yl3, yl4, yl5 ) values
<foreach item="item" index="index" collection="list" separator=",">
( #{item.deptId}, #{item.nd}, #{item.fjmc}, #{item.fjdz}, #{item.dl}, #{item.zl}, #{item.fjlx}, #{item.rdpx}, #{item.lrr}, #{item.lrsj}, #{item.xgr}, #{item.xgsj}, #{item.bz}, #{item.yl2}, #{item.yl3}, #{item.yl4}, #{item.yl5})
</foreach>
</insert>
<insert id="insertBzscYsjglggzscfj" parameterType="BzscYsjglggzscfj" useGeneratedKeys="true" keyProperty="id">
insert into bzsc_ysjglggzscfj
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="deptId != null">dept_id,</if>
<if test="nd != null">nd,</if>
<if test="fjmc != null">fjmc,</if>
<if test="fjdz != null">fjdz,</if>
<if test="dl != null">dl,</if>
<if test="zl != null">zl,</if>
<if test="fjlx != null">fjlx,</if>
<if test="rdpx != null">rdpx,</if>
<if test="lrr != null">lrr,</if>
<if test="lrsj != null">lrsj,</if>
<if test="xgr != null">xgr,</if>
<if test="xgsj != null">xgsj,</if>
<if test="bz != null">bz,</if>
<if test="yl2 != null">yl2,</if>
<if test="yl3 != null">yl3,</if>
<if test="yl4 != null">yl4,</if>
<if test="yl5 != null">yl5,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="deptId != null">#{deptId},</if>
<if test="nd != null">#{nd},</if>
<if test="fjmc != null">#{fjmc},</if>
<if test="fjdz != null">#{fjdz},</if>
<if test="dl != null">#{dl},</if>
<if test="zl != null">#{zl},</if>
<if test="fjlx != null">#{fjlx},</if>
<if test="rdpx != null">#{rdpx},</if>
<if test="lrr != null">#{lrr},</if>
<if test="lrsj != null">#{lrsj},</if>
<if test="xgr != null">#{xgr},</if>
<if test="xgsj != null">#{xgsj},</if>
<if test="bz != null">#{bz},</if>
<if test="yl2 != null">#{yl2},</if>
<if test="yl3 != null">#{yl3},</if>
<if test="yl4 != null">#{yl4},</if>
<if test="yl5 != null">#{yl5},</if>
</trim>
</insert>
<update id="updateBzscYsjglggzscfj" parameterType="BzscYsjglggzscfj">
update bzsc_ysjglggzscfj
<trim prefix="SET" suffixOverrides=",">
<if test="deptId != null">dept_id = #{deptId},</if>
<if test="nd != null">nd = #{nd},</if>
<if test="fjmc != null">fjmc = #{fjmc},</if>
<if test="fjdz != null">fjdz = #{fjdz},</if>
<if test="dl != null">dl = #{dl},</if>
<if test="zl != null">zl = #{zl},</if>
<if test="fjlx != null">fjlx = #{fjlx},</if>
<if test="rdpx != null">rdpx = #{rdpx},</if>
<if test="lrr != null">lrr = #{lrr},</if>
<if test="lrsj != null">lrsj = #{lrsj},</if>
<if test="xgr != null">xgr = #{xgr},</if>
<if test="xgsj != null">xgsj = #{xgsj},</if>
<if test="bz != null">bz = #{bz},</if>
<if test="yl2 != null">yl2 = #{yl2},</if>
<if test="yl3 != null">yl3 = #{yl3},</if>
<if test="yl4 != null">yl4 = #{yl4},</if>
<if test="yl5 != null">yl5 = #{yl5},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBzscYsjglggzscfjById" parameterType="Long">
delete from bzsc_ysjglggzscfj where id = #{id}
</delete>
<delete id="deleteBzscYsjglggzscfjByIds" parameterType="String">
delete from bzsc_ysjglggzscfj where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
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