Commit cd8875a0 by jiang'yun

修改

parent 71a0a271
package com.ruoyi.project.zt.controller;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.framework.aspectj.lang.annotation.Log;
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.framework.web.page.TableDataInfo;
import com.ruoyi.project.zt.domain.Jsaa;
import com.ruoyi.project.zt.service.IJsaaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;
import java.util.List;
/**
* 基础数据Controller
*
* @author ruoyi
* @date 2025-07-10
*/
@RestController
@RequestMapping("/system/jsaa")
public class JsaaController extends BaseController
{
@Autowired
private IJsaaService jsaaService;
/**
* 查询基础数据列表
*/
@PreAuthorize("@ss.hasPermi('system:jsaa:list')")
@GetMapping("/list")
public TableDataInfo list(Jsaa jsaa)
{
startPage();
List<Jsaa> list = jsaaService.selectJsaaList(jsaa);
return getDataTable(list);
}
/**
* 导出基础数据列表
*/
@PreAuthorize("@ss.hasPermi('system:jsaa:export')")
@Log(title = "基础数据", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, Jsaa jsaa)
{
List<Jsaa> list = jsaaService.selectJsaaList(jsaa);
ExcelUtil<Jsaa> util = new ExcelUtil<Jsaa>(Jsaa.class);
util.exportExcel(response, list, "基础数据");
}
/**
* 获取基础数据详细信息
*/
@PreAuthorize("@ss.hasPermi('system:jsaa:query')")
@GetMapping(value = "/{jh}")
public AjaxResult getInfo(@PathVariable("jh") String jh)
{
return success(jsaaService.selectJsaaByJh(jh));
}
/**
* 新增基础数据
*/
@PreAuthorize("@ss.hasPermi('system:jsaa:add')")
@Log(title = "基础数据", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody Jsaa jsaa)
{
return toAjax(jsaaService.insertJsaa(jsaa));
}
/**
* 修改基础数据
*/
@PreAuthorize("@ss.hasPermi('system:jsaa:edit')")
@Log(title = "基础数据", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody Jsaa jsaa)
{
return toAjax(jsaaService.updateJsaa(jsaa));
}
/**
* 删除基础数据
*/
@PreAuthorize("@ss.hasPermi('system:jsaa:remove')")
@Log(title = "基础数据", businessType = BusinessType.DELETE)
@DeleteMapping("/{jhs}")
public AjaxResult remove(@PathVariable String[] jhs)
{
return toAjax(jsaaService.deleteJsaaByJhs(jhs));
}
}
package com.ruoyi.project.zt.controller;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.framework.aspectj.lang.annotation.Log;
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.framework.web.page.TableDataInfo;
import com.ruoyi.project.zt.domain.Jsba;
import com.ruoyi.project.zt.service.IJsbaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 地质简介基本数据Controller
*
* @author ruoyi
* @date 2025-07-10
*/
@RestController
@RequestMapping("/system/jsba")
public class JsbaController extends BaseController
{
@Autowired
private IJsbaService jsbaService;
/**
* 查询地质简介基本数据列表
*/
@PreAuthorize("@ss.hasPermi('system:jsba:list')")
@GetMapping("/list")
public TableDataInfo list(Jsba jsba)
{
startPage();
List<Jsba> list = jsbaService.selectJsbaList(jsba);
return getDataTable(list);
}
/**
* 导出地质简介基本数据列表
*/
@PreAuthorize("@ss.hasPermi('system:jsba:export')")
@Log(title = "地质简介基本数据", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, Jsba jsba)
{
List<Jsba> list = jsbaService.selectJsbaList(jsba);
ExcelUtil<Jsba> util = new ExcelUtil<Jsba>(Jsba.class);
util.exportExcel(response, list, "地质简介基本数据数据");
}
/**
* 获取地质简介基本数据详细信息
*/
@PreAuthorize("@ss.hasPermi('system:jsba:query')")
@GetMapping(value = "/{jh}")
public AjaxResult getInfo(@PathVariable("jh") String jh)
{
return success(jsbaService.selectJsbaByJh(jh));
}
/**
* 新增地质简介基本数据
*/
@PreAuthorize("@ss.hasPermi('system:jsba:add')")
@Log(title = "地质简介基本数据", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody Jsba jsba)
{
return toAjax(jsbaService.insertJsba(jsba));
}
/**
* 修改地质简介基本数据
*/
@PreAuthorize("@ss.hasPermi('system:jsba:edit')")
@Log(title = "地质简介基本数据", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody Jsba jsba)
{
return toAjax(jsbaService.updateJsba(jsba));
}
/**
* 删除地质简介基本数据
*/
@PreAuthorize("@ss.hasPermi('system:jsba:remove')")
@Log(title = "地质简介基本数据", businessType = BusinessType.DELETE)
@DeleteMapping("/{jhs}")
public AjaxResult remove(@PathVariable String[] jhs)
{
return toAjax(jsbaService.deleteJsbaByJhs(jhs));
}
}
package com.ruoyi.project.zt.domain;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 地质简介基本数据对象 jsba
*
* @author ruoyi
* @date 2025-07-10
*/
public class Jsba extends BaseEntity
{
private static final Long serialVersionUID = 1L;
/** $column.columnComment */
private String jh;
/** $column.columnComment */
@Excel(name = "${comment}")
private String gzmc;
/** $column.columnComment */
@Excel(name = "${comment}")
private String jx;
/** $column.columnComment */
@Excel(name = "${comment}")
private String jb;
/** $column.columnComment */
@Excel(name = "${comment}")
private Double jkhzb;
/** $column.columnComment */
@Excel(name = "${comment}")
private Double jkzzb;
/** $column.columnComment */
@Excel(name = "${comment}")
private Double jdhzb;
/** $column.columnComment */
@Excel(name = "${comment}")
private Double jdzzb;
/** $column.columnComment */
@Excel(name = "${comment}")
private String dlwz;
/** $column.columnComment */
@Excel(name = "${comment}")
private String gzwz;
/** $column.columnComment */
@Excel(name = "${comment}")
private String cxwz;
/** $column.columnComment */
@Excel(name = "${comment}")
private Double dmhb;
/** $column.columnComment */
@Excel(name = "${comment}")
private Double bxhb;
/** $column.columnComment */
@Excel(name = "${comment}")
private Double hssd;
/** $column.columnComment */
@Excel(name = "${comment}")
private Double lrsd;
/** $column.columnComment */
@Excel(name = "${comment}")
private String zjmd;
/** $column.columnComment */
@Excel(name = "${comment}")
private Double cpj;
/** $column.columnComment */
@Excel(name = "${comment}")
private String ptbh;
/** $column.columnComment */
@Excel(name = "${comment}")
private Double jd;
/** $column.columnComment */
@Excel(name = "${comment}")
private Double wd;
/** $column.columnComment */
@Excel(name = "${comment}")
private Double jdhzb1;
/** $column.columnComment */
@Excel(name = "${comment}")
private Double jdzzb1;
/** $column.columnComment */
@Excel(name = "${comment}")
private Double jdhzb2;
/** $column.columnComment */
@Excel(name = "${comment}")
private Double jdzzb2;
/** $column.columnComment */
@Excel(name = "${comment}")
private Double jdhzb3;
/** $column.columnComment */
@Excel(name = "${comment}")
private Double jdzzb3;
/** $column.columnComment */
@Excel(name = "${comment}")
private Double jdhzb4;
/** $column.columnComment */
@Excel(name = "${comment}")
private Double jdzzb4;
public void setJh(String jh)
{
this.jh = jh;
}
public String getJh()
{
return jh;
}
public void setGzmc(String gzmc)
{
this.gzmc = gzmc;
}
public String getGzmc()
{
return gzmc;
}
public void setJx(String jx)
{
this.jx = jx;
}
public String getJx()
{
return jx;
}
public void setJb(String jb)
{
this.jb = jb;
}
public String getJb()
{
return jb;
}
public void setJkhzb(Double jkhzb)
{
this.jkhzb = jkhzb;
}
public Double getJkhzb()
{
return jkhzb;
}
public void setJkzzb(Double jkzzb)
{
this.jkzzb = jkzzb;
}
public Double getJkzzb()
{
return jkzzb;
}
public void setJdhzb(Double jdhzb)
{
this.jdhzb = jdhzb;
}
public Double getJdhzb()
{
return jdhzb;
}
public void setJdzzb(Double jdzzb)
{
this.jdzzb = jdzzb;
}
public Double getJdzzb()
{
return jdzzb;
}
public void setDlwz(String dlwz)
{
this.dlwz = dlwz;
}
public String getDlwz()
{
return dlwz;
}
public void setGzwz(String gzwz)
{
this.gzwz = gzwz;
}
public String getGzwz()
{
return gzwz;
}
public void setCxwz(String cxwz)
{
this.cxwz = cxwz;
}
public String getCxwz()
{
return cxwz;
}
public void setDmhb(Double dmhb)
{
this.dmhb = dmhb;
}
public Double getDmhb()
{
return dmhb;
}
public void setBxhb(Double bxhb)
{
this.bxhb = bxhb;
}
public Double getBxhb()
{
return bxhb;
}
public void setHssd(Double hssd)
{
this.hssd = hssd;
}
public Double getHssd()
{
return hssd;
}
public void setLrsd(Double lrsd)
{
this.lrsd = lrsd;
}
public Double getLrsd()
{
return lrsd;
}
public void setZjmd(String zjmd)
{
this.zjmd = zjmd;
}
public String getZjmd()
{
return zjmd;
}
public void setCpj(Double cpj)
{
this.cpj = cpj;
}
public Double getCpj()
{
return cpj;
}
public void setPtbh(String ptbh)
{
this.ptbh = ptbh;
}
public String getPtbh()
{
return ptbh;
}
public void setJd(Double jd)
{
this.jd = jd;
}
public Double getJd()
{
return jd;
}
public void setWd(Double wd)
{
this.wd = wd;
}
public Double getWd()
{
return wd;
}
public void setJdhzb1(Double jdhzb1)
{
this.jdhzb1 = jdhzb1;
}
public Double getJdhzb1()
{
return jdhzb1;
}
public void setJdzzb1(Double jdzzb1)
{
this.jdzzb1 = jdzzb1;
}
public Double getJdzzb1()
{
return jdzzb1;
}
public void setJdhzb2(Double jdhzb2)
{
this.jdhzb2 = jdhzb2;
}
public Double getJdhzb2()
{
return jdhzb2;
}
public void setJdzzb2(Double jdzzb2)
{
this.jdzzb2 = jdzzb2;
}
public Double getJdzzb2()
{
return jdzzb2;
}
public void setJdhzb3(Double jdhzb3)
{
this.jdhzb3 = jdhzb3;
}
public Double getJdhzb3()
{
return jdhzb3;
}
public void setJdzzb3(Double jdzzb3)
{
this.jdzzb3 = jdzzb3;
}
public Double getJdzzb3()
{
return jdzzb3;
}
public void setJdhzb4(Double jdhzb4)
{
this.jdhzb4 = jdhzb4;
}
public Double getJdhzb4()
{
return jdhzb4;
}
public void setJdzzb4(Double jdzzb4)
{
this.jdzzb4 = jdzzb4;
}
public Double getJdzzb4()
{
return jdzzb4;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("jh", getJh())
.append("gzmc", getGzmc())
.append("jx", getJx())
.append("jb", getJb())
.append("jkhzb", getJkhzb())
.append("jkzzb", getJkzzb())
.append("jdhzb", getJdhzb())
.append("jdzzb", getJdzzb())
.append("dlwz", getDlwz())
.append("gzwz", getGzwz())
.append("cxwz", getCxwz())
.append("dmhb", getDmhb())
.append("bxhb", getBxhb())
.append("hssd", getHssd())
.append("lrsd", getLrsd())
.append("zjmd", getZjmd())
.append("cpj", getCpj())
.append("ptbh", getPtbh())
.append("jd", getJd())
.append("wd", getWd())
.append("jdhzb1", getJdhzb1())
.append("jdzzb1", getJdzzb1())
.append("jdhzb2", getJdhzb2())
.append("jdzzb2", getJdzzb2())
.append("jdhzb3", getJdhzb3())
.append("jdzzb3", getJdzzb3())
.append("jdhzb4", getJdhzb4())
.append("jdzzb4", getJdzzb4())
.toString();
}
}
package com.ruoyi.project.zt.mapper;
import com.ruoyi.project.zt.domain.Jsaa;
import java.util.List;
/**
* 基础数据Mapper接口
*
* @author ruoyi
* @date 2025-07-10
*/
public interface JsaaMapper
{
/**
* 查询基础数据
*
* @param jh 基础数据主键
* @return 基础数据
*/
public Jsaa selectJsaaByJh(String jh);
/**
* 查询基础数据列表
*
* @param jsaa 基础数据
* @return 基础数据集合
*/
public List<Jsaa> selectJsaaList(Jsaa jsaa);
/**
* 新增基础数据
*
* @param jsaa 基础数据
* @return 结果
*/
public int insertJsaa(Jsaa jsaa);
/**
* 修改基础数据
*
* @param jsaa 基础数据
* @return 结果
*/
public int updateJsaa(Jsaa jsaa);
/**
* 删除基础数据
*
* @param jh 基础数据主键
* @return 结果
*/
public int deleteJsaaByJh(String jh);
/**
* 批量删除基础数据
*
* @param jhs 需要删除的数据主键集合
* @return 结果
*/
public int deleteJsaaByJhs(String[] jhs);
List<Jsaa> selectQklist(Jsaa jsaa);
}
package com.ruoyi.project.zt.mapper;
import com.ruoyi.project.zt.domain.Jsba;
import java.util.List;
/**
* 地质简介基本数据Mapper接口
*
* @author ruoyi
* @date 2025-07-10
*/
public interface JsbaMapper
{
/**
* 查询地质简介基本数据
*
* @param jh 地质简介基本数据主键
* @return 地质简介基本数据
*/
public Jsba selectJsbaByJh(String jh);
/**
* 查询地质简介基本数据列表
*
* @param jsba 地质简介基本数据
* @return 地质简介基本数据集合
*/
public List<Jsba> selectJsbaList(Jsba jsba);
/**
* 新增地质简介基本数据
*
* @param jsba 地质简介基本数据
* @return 结果
*/
public int insertJsba(Jsba jsba);
/**
* 修改地质简介基本数据
*
* @param jsba 地质简介基本数据
* @return 结果
*/
public int updateJsba(Jsba jsba);
/**
* 删除地质简介基本数据
*
* @param jh 地质简介基本数据主键
* @return 结果
*/
public int deleteJsbaByJh(String jh);
/**
* 批量删除地质简介基本数据
*
* @param jhs 需要删除的数据主键集合
* @return 结果
*/
public int deleteJsbaByJhs(String[] jhs);
}
package com.ruoyi.project.zt.service;
import com.ruoyi.project.zt.domain.Jsaa;
import java.util.List;
/**
* 基础数据Service接口
*
* @author ruoyi
* @date 2025-07-10
*/
public interface IJsaaService
{
/**
* 查询基础数据
*
* @param jh 基础数据主键
* @return 基础数据
*/
public Jsaa selectJsaaByJh(String jh);
/**
* 查询基础数据列表
*
* @param jsaa 基础数据
* @return 基础数据集合
*/
public List<Jsaa> selectJsaaList(Jsaa jsaa);
/**
* 新增基础数据
*
* @param jsaa 基础数据
* @return 结果
*/
public int insertJsaa(Jsaa jsaa);
/**
* 修改基础数据
*
* @param jsaa 基础数据
* @return 结果
*/
public int updateJsaa(Jsaa jsaa);
/**
* 批量删除基础数据
*
* @param jhs 需要删除的基础数据主键集合
* @return 结果
*/
public int deleteJsaaByJhs(String[] jhs);
/**
* 删除基础数据信息
*
* @param jh 基础数据主键
* @return 结果
*/
public int deleteJsaaByJh(String jh);
List<Jsaa> selectQklist(Jsaa jsaa);
}
package com.ruoyi.project.zt.service;
import com.ruoyi.project.zt.domain.Jsba;
import java.util.List;
/**
* 地质简介基本数据Service接口
*
* @author ruoyi
* @date 2025-07-10
*/
public interface IJsbaService
{
/**
* 查询地质简介基本数据
*
* @param jh 地质简介基本数据主键
* @return 地质简介基本数据
*/
public Jsba selectJsbaByJh(String jh);
/**
* 查询地质简介基本数据列表
*
* @param jsba 地质简介基本数据
* @return 地质简介基本数据集合
*/
public List<Jsba> selectJsbaList(Jsba jsba);
/**
* 新增地质简介基本数据
*
* @param jsba 地质简介基本数据
* @return 结果
*/
public int insertJsba(Jsba jsba);
/**
* 修改地质简介基本数据
*
* @param jsba 地质简介基本数据
* @return 结果
*/
public int updateJsba(Jsba jsba);
/**
* 批量删除地质简介基本数据
*
* @param jhs 需要删除的地质简介基本数据主键集合
* @return 结果
*/
public int deleteJsbaByJhs(String[] jhs);
/**
* 删除地质简介基本数据信息
*
* @param jh 地质简介基本数据主键
* @return 结果
*/
public int deleteJsbaByJh(String jh);
}
package com.ruoyi.project.zt.service.impl;
import com.ruoyi.project.zt.domain.Jsaa;
import com.ruoyi.project.zt.mapper.JsaaMapper;
import com.ruoyi.project.zt.service.IJsaaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 基础数据Service业务层处理
*
* @author ruoyi
* @date 2025-07-10
*/
@Service
public class JsaaServiceImpl implements IJsaaService
{
@Autowired
private JsaaMapper jsaaMapper;
/**
* 查询基础数据
*
* @param jh 基础数据主键
* @return 基础数据
*/
@Override
public Jsaa selectJsaaByJh(String jh)
{
return jsaaMapper.selectJsaaByJh(jh);
}
/**
* 查询基础数据列表
*
* @param jsaa 基础数据
* @return 基础数据
*/
@Override
public List<Jsaa> selectJsaaList(Jsaa jsaa)
{
return jsaaMapper.selectJsaaList(jsaa);
}
/**
* 新增基础数据
*
* @param jsaa 基础数据
* @return 结果
*/
@Override
public int insertJsaa(Jsaa jsaa)
{
return jsaaMapper.insertJsaa(jsaa);
}
/**
* 修改基础数据
*
* @param jsaa 基础数据
* @return 结果
*/
@Override
public int updateJsaa(Jsaa jsaa)
{
return jsaaMapper.updateJsaa(jsaa);
}
/**
* 批量删除基础数据
*
* @param jhs 需要删除的基础数据主键
* @return 结果
*/
@Override
public int deleteJsaaByJhs(String[] jhs)
{
return jsaaMapper.deleteJsaaByJhs(jhs);
}
/**
* 删除基础数据信息
*
* @param jh 基础数据主键
* @return 结果
*/
@Override
public int deleteJsaaByJh(String jh)
{
return jsaaMapper.deleteJsaaByJh(jh);
}
@Override
public List<Jsaa> selectQklist(Jsaa jsaa) {
return jsaaMapper.selectQklist(jsaa);
}
}
package com.ruoyi.project.zt.service.impl;
import com.ruoyi.project.zt.domain.Jsba;
import com.ruoyi.project.zt.mapper.JsbaMapper;
import com.ruoyi.project.zt.service.IJsbaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 地质简介基本数据Service业务层处理
*
* @author ruoyi
* @date 2025-07-10
*/
@Service
public class JsbaServiceImpl implements IJsbaService
{
@Autowired
private JsbaMapper jsbaMapper;
/**
* 查询地质简介基本数据
*
* @param jh 地质简介基本数据主键
* @return 地质简介基本数据
*/
@Override
public Jsba selectJsbaByJh(String jh)
{
return jsbaMapper.selectJsbaByJh(jh);
}
/**
* 查询地质简介基本数据列表
*
* @param jsba 地质简介基本数据
* @return 地质简介基本数据
*/
@Override
public List<Jsba> selectJsbaList(Jsba jsba)
{
return jsbaMapper.selectJsbaList(jsba);
}
/**
* 新增地质简介基本数据
*
* @param jsba 地质简介基本数据
* @return 结果
*/
@Override
public int insertJsba(Jsba jsba)
{
return jsbaMapper.insertJsba(jsba);
}
/**
* 修改地质简介基本数据
*
* @param jsba 地质简介基本数据
* @return 结果
*/
@Override
public int updateJsba(Jsba jsba)
{
return jsbaMapper.updateJsba(jsba);
}
/**
* 批量删除地质简介基本数据
*
* @param jhs 需要删除的地质简介基本数据主键
* @return 结果
*/
@Override
public int deleteJsbaByJhs(String[] jhs)
{
return jsbaMapper.deleteJsbaByJhs(jhs);
}
/**
* 删除地质简介基本数据信息
*
* @param jh 地质简介基本数据主键
* @return 结果
*/
@Override
public int deleteJsbaByJh(String jh)
{
return jsbaMapper.deleteJsbaByJh(jh);
}
}
<?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.zt.mapper.JsbaMapper">
<resultMap type="Jsba" id="JsbaResult">
<result property="jh" column="jh" />
<result property="gzmc" column="gzmc" />
<result property="jx" column="jx" />
<result property="jb" column="jb" />
<result property="jkhzb" column="jkhzb" />
<result property="jkzzb" column="jkzzb" />
<result property="jdhzb" column="jdhzb" />
<result property="jdzzb" column="jdzzb" />
<result property="dlwz" column="dlwz" />
<result property="gzwz" column="gzwz" />
<result property="cxwz" column="cxwz" />
<result property="dmhb" column="dmhb" />
<result property="bxhb" column="bxhb" />
<result property="hssd" column="hssd" />
<result property="lrsd" column="lrsd" />
<result property="zjmd" column="zjmd" />
<result property="cpj" column="cpj" />
<result property="ptbh" column="ptbh" />
<result property="jd" column="jd" />
<result property="wd" column="wd" />
<result property="jdhzb1" column="jdhzb1" />
<result property="jdzzb1" column="jdzzb1" />
<result property="jdhzb2" column="jdhzb2" />
<result property="jdzzb2" column="jdzzb2" />
<result property="jdhzb3" column="jdhzb3" />
<result property="jdzzb3" column="jdzzb3" />
<result property="jdhzb4" column="jdhzb4" />
<result property="jdzzb4" column="jdzzb4" />
</resultMap>
<sql id="selectJsbaVo">
select jh, gzmc, jx, jb, jkhzb, jkzzb, jdhzb, jdzzb, dlwz, gzwz, cxwz, dmhb, bxhb, hssd, lrsd, zjmd, cpj, ptbh, jd, wd, jdhzb1, jdzzb1, jdhzb2, jdzzb2, jdhzb3, jdzzb3, jdhzb4, jdzzb4 from jsba
</sql>
<select id="selectJsbaList" parameterType="Jsba" resultMap="JsbaResult">
<include refid="selectJsbaVo"/>
<where>
<if test="gzmc != null and gzmc != ''"> and gzmc = #{gzmc}</if>
<if test="jx != null and jx != ''"> and jx = #{jx}</if>
<if test="jb != null and jb != ''"> and jb = #{jb}</if>
<if test="jkhzb != null "> and jkhzb = #{jkhzb}</if>
<if test="jkzzb != null "> and jkzzb = #{jkzzb}</if>
<if test="jdhzb != null "> and jdhzb = #{jdhzb}</if>
<if test="jdzzb != null "> and jdzzb = #{jdzzb}</if>
<if test="dlwz != null and dlwz != ''"> and dlwz = #{dlwz}</if>
<if test="gzwz != null and gzwz != ''"> and gzwz = #{gzwz}</if>
<if test="cxwz != null and cxwz != ''"> and cxwz = #{cxwz}</if>
<if test="dmhb != null "> and dmhb = #{dmhb}</if>
<if test="bxhb != null "> and bxhb = #{bxhb}</if>
<if test="hssd != null "> and hssd = #{hssd}</if>
<if test="lrsd != null "> and lrsd = #{lrsd}</if>
<if test="zjmd != null and zjmd != ''"> and zjmd = #{zjmd}</if>
<if test="cpj != null "> and cpj = #{cpj}</if>
<if test="ptbh != null and ptbh != ''"> and ptbh = #{ptbh}</if>
<if test="jd != null "> and jd = #{jd}</if>
<if test="wd != null "> and wd = #{wd}</if>
<if test="jdhzb1 != null "> and jdhzb1 = #{jdhzb1}</if>
<if test="jdzzb1 != null "> and jdzzb1 = #{jdzzb1}</if>
<if test="jdhzb2 != null "> and jdhzb2 = #{jdhzb2}</if>
<if test="jdzzb2 != null "> and jdzzb2 = #{jdzzb2}</if>
<if test="jdhzb3 != null "> and jdhzb3 = #{jdhzb3}</if>
<if test="jdzzb3 != null "> and jdzzb3 = #{jdzzb3}</if>
<if test="jdhzb4 != null "> and jdhzb4 = #{jdhzb4}</if>
<if test="jdzzb4 != null "> and jdzzb4 = #{jdzzb4}</if>
</where>
</select>
<select id="selectJsbaByJh" parameterType="String" resultMap="JsbaResult">
<include refid="selectJsbaVo"/>
where jh = #{jh}
</select>
<insert id="insertJsba" parameterType="Jsba">
<selectKey keyProperty="jh" resultType="long" order="BEFORE">
SELECT seq_jsba.NEXTVAL as jh FROM DUAL
</selectKey>
insert into jsba
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="jh != null">jh,</if>
<if test="gzmc != null">gzmc,</if>
<if test="jx != null">jx,</if>
<if test="jb != null">jb,</if>
<if test="jkhzb != null">jkhzb,</if>
<if test="jkzzb != null">jkzzb,</if>
<if test="jdhzb != null">jdhzb,</if>
<if test="jdzzb != null">jdzzb,</if>
<if test="dlwz != null">dlwz,</if>
<if test="gzwz != null">gzwz,</if>
<if test="cxwz != null">cxwz,</if>
<if test="dmhb != null">dmhb,</if>
<if test="bxhb != null">bxhb,</if>
<if test="hssd != null">hssd,</if>
<if test="lrsd != null">lrsd,</if>
<if test="zjmd != null">zjmd,</if>
<if test="cpj != null">cpj,</if>
<if test="ptbh != null">ptbh,</if>
<if test="jd != null">jd,</if>
<if test="wd != null">wd,</if>
<if test="jdhzb1 != null">jdhzb1,</if>
<if test="jdzzb1 != null">jdzzb1,</if>
<if test="jdhzb2 != null">jdhzb2,</if>
<if test="jdzzb2 != null">jdzzb2,</if>
<if test="jdhzb3 != null">jdhzb3,</if>
<if test="jdzzb3 != null">jdzzb3,</if>
<if test="jdhzb4 != null">jdhzb4,</if>
<if test="jdzzb4 != null">jdzzb4,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="jh != null">#{jh},</if>
<if test="gzmc != null">#{gzmc},</if>
<if test="jx != null">#{jx},</if>
<if test="jb != null">#{jb},</if>
<if test="jkhzb != null">#{jkhzb},</if>
<if test="jkzzb != null">#{jkzzb},</if>
<if test="jdhzb != null">#{jdhzb},</if>
<if test="jdzzb != null">#{jdzzb},</if>
<if test="dlwz != null">#{dlwz},</if>
<if test="gzwz != null">#{gzwz},</if>
<if test="cxwz != null">#{cxwz},</if>
<if test="dmhb != null">#{dmhb},</if>
<if test="bxhb != null">#{bxhb},</if>
<if test="hssd != null">#{hssd},</if>
<if test="lrsd != null">#{lrsd},</if>
<if test="zjmd != null">#{zjmd},</if>
<if test="cpj != null">#{cpj},</if>
<if test="ptbh != null">#{ptbh},</if>
<if test="jd != null">#{jd},</if>
<if test="wd != null">#{wd},</if>
<if test="jdhzb1 != null">#{jdhzb1},</if>
<if test="jdzzb1 != null">#{jdzzb1},</if>
<if test="jdhzb2 != null">#{jdhzb2},</if>
<if test="jdzzb2 != null">#{jdzzb2},</if>
<if test="jdhzb3 != null">#{jdhzb3},</if>
<if test="jdzzb3 != null">#{jdzzb3},</if>
<if test="jdhzb4 != null">#{jdhzb4},</if>
<if test="jdzzb4 != null">#{jdzzb4},</if>
</trim>
</insert>
<update id="updateJsba" parameterType="Jsba">
update jsba
<trim prefix="SET" suffixOverrides=",">
<if test="gzmc != null">gzmc = #{gzmc},</if>
<if test="jx != null">jx = #{jx},</if>
<if test="jb != null">jb = #{jb},</if>
<if test="jkhzb != null">jkhzb = #{jkhzb},</if>
<if test="jkzzb != null">jkzzb = #{jkzzb},</if>
<if test="jdhzb != null">jdhzb = #{jdhzb},</if>
<if test="jdzzb != null">jdzzb = #{jdzzb},</if>
<if test="dlwz != null">dlwz = #{dlwz},</if>
<if test="gzwz != null">gzwz = #{gzwz},</if>
<if test="cxwz != null">cxwz = #{cxwz},</if>
<if test="dmhb != null">dmhb = #{dmhb},</if>
<if test="bxhb != null">bxhb = #{bxhb},</if>
<if test="hssd != null">hssd = #{hssd},</if>
<if test="lrsd != null">lrsd = #{lrsd},</if>
<if test="zjmd != null">zjmd = #{zjmd},</if>
<if test="cpj != null">cpj = #{cpj},</if>
<if test="ptbh != null">ptbh = #{ptbh},</if>
<if test="jd != null">jd = #{jd},</if>
<if test="wd != null">wd = #{wd},</if>
<if test="jdhzb1 != null">jdhzb1 = #{jdhzb1},</if>
<if test="jdzzb1 != null">jdzzb1 = #{jdzzb1},</if>
<if test="jdhzb2 != null">jdhzb2 = #{jdhzb2},</if>
<if test="jdzzb2 != null">jdzzb2 = #{jdzzb2},</if>
<if test="jdhzb3 != null">jdhzb3 = #{jdhzb3},</if>
<if test="jdzzb3 != null">jdzzb3 = #{jdzzb3},</if>
<if test="jdhzb4 != null">jdhzb4 = #{jdhzb4},</if>
<if test="jdzzb4 != null">jdzzb4 = #{jdzzb4},</if>
</trim>
where jh = #{jh}
</update>
<delete id="deleteJsbaByJh" parameterType="String">
delete from jsba where jh = #{jh}
</delete>
<delete id="deleteJsbaByJhs" parameterType="String">
delete from jsba where jh in
<foreach item="jh" collection="array" open="(" separator="," close=")">
#{jh}
</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