Commit b781e62f by jiang'yun

修改问题

parent 06afda35
......@@ -4,14 +4,17 @@ import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
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.WdWdxxRd;
import com.qianhe.mapper.WdWdxxRdMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.qianhe.common.config.RuoYiConfig;
import com.qianhe.common.constant.Constants;
......@@ -34,6 +37,8 @@ public class CommonController
@Autowired
private ServerConfig serverConfig;
@Autowired
private WdWdxxRdMapper wdWdxxRdMapper;
private static final String FILE_DELIMETER = ",";
......@@ -132,6 +137,65 @@ public class CommonController
}
}
/**
* 通用上传请求(多个)
*/
@PostMapping("/uploadAll")
public AjaxResult uploadAll(@RequestParam("file") List<MultipartFile> files,
@RequestParam("deptId")String deptId,
@RequestParam("nd") String nd,
@RequestParam("mkmc") String mkmc,
@RequestParam("fjlx") String fjlx,
@RequestParam("rdpx") String rdpx) throws Exception
{
try
{
// 上传文件路径
String filePath = RuoYiConfig.getUploadPath();
List<WdWdxxRd> wdWdxxRdList =new ArrayList<>();
// if(StringUtils.isEmpty(wdWdxxRd.getDeptId())){
// return AjaxResult.success("");
// }
// String param="?deptId="+wdWdxxRd.getDeptId()+"&nd="+wdWdxxRd.getNd()+"&mkmc="+wdWdxxRd.getMkmc()+"&fjlx="+wdWdxxRd.getFjlx()+"&rdpx="+wdWdxxRd.getRdpx();
String param="?deptId="+deptId+"&nd="+nd+"&mkmc="+mkmc+"&fjlx="+fjlx+"&rdpx="+rdpx;
for (MultipartFile file : files)
{
// fileName:"/profile/upload/2024/09/14/1_20240914100039A002.jpg"
// newFileName:"1_20240914100039A002.jpg"
// originalFilename:"1.jpg"
// url:"http://192.168.31.108:8899/profile/upload/2024/09/14/1_20240914100039A002.jpg"
// 上传并返回新文件名称
String fileName = FileUploadUtils.upload(filePath, file);
// String url = serverConfig.getUrl() + fileName;
// urls.add(url);
// fileNames.add(fileName);
// newFileNames.add(FileUtils.getName(fileName));
// originalFilenames.add(file.getOriginalFilename());
WdWdxxRd xx=new WdWdxxRd();
xx.setDeptId(deptId);
xx.setNd(nd);
xx.setMkmc(mkmc);
xx.setFjlx(fjlx);
xx.setRdpx(rdpx);
xx.setFjdz(fileName);
xx.setFjmc(file.getOriginalFilename());
xx.setLrr(SecurityUtils.getUsername());
xx.setLrsj(DateUtils.getNowDate());
wdWdxxRdList.add(xx);
}
if(wdWdxxRdList.size()>0){
wdWdxxRdMapper.insertWdWdxxRdBatch(wdWdxxRdList);
}
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 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.WdWdxxRd;
import com.qianhe.service.IWdWdxxRdService;
import com.qianhe.common.utils.poi.ExcelUtil;
import com.qianhe.common.core.page.TableDataInfo;
/**
* 文档-热点信息Controller
*
* @author qianhe
* @date 2024-09-14
*/
@RestController
@RequestMapping("/system/wdWdxxRd")
public class WdWdxxRdController extends BaseController
{
@Autowired
private IWdWdxxRdService wdWdxxRdService;
/**
* 查询文档-热点信息列表
*/
@PreAuthorize("@ss.hasPermi('system:wdWdxxRd:list')")
@GetMapping("/list")
public TableDataInfo list(WdWdxxRd wdWdxxRd)
{
startPage();
List<WdWdxxRd> list = wdWdxxRdService.selectWdWdxxRdList(wdWdxxRd);
return getDataTable(list);
}
/**
* 导出文档-热点信息列表
*/
@PreAuthorize("@ss.hasPermi('system:wdWdxxRd:export')")
@Log(title = "文档-热点信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, WdWdxxRd wdWdxxRd)
{
List<WdWdxxRd> list = wdWdxxRdService.selectWdWdxxRdList(wdWdxxRd);
ExcelUtil<WdWdxxRd> util = new ExcelUtil<WdWdxxRd>(WdWdxxRd.class);
util.exportExcel(response, list, "文档-热点信息数据");
}
/**
* 获取文档-热点信息详细信息
*/
@PreAuthorize("@ss.hasPermi('system:wdWdxxRd:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(wdWdxxRdService.selectWdWdxxRdById(id));
}
/**
* 新增文档-热点信息
*/
@PreAuthorize("@ss.hasPermi('system:wdWdxxRd:add')")
@Log(title = "文档-热点信息", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody WdWdxxRd wdWdxxRd)
{
return toAjax(wdWdxxRdService.insertWdWdxxRd(wdWdxxRd));
}
/**
* 修改文档-热点信息
*/
@PreAuthorize("@ss.hasPermi('system:wdWdxxRd:edit')")
@Log(title = "文档-热点信息", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody WdWdxxRd wdWdxxRd)
{
return toAjax(wdWdxxRdService.updateWdWdxxRd(wdWdxxRd));
}
/**
* 删除文档-热点信息
*/
@PreAuthorize("@ss.hasPermi('system:wdWdxxRd:remove')")
@Log(title = "文档-热点信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(wdWdxxRdService.deleteWdWdxxRdByIds(ids));
}
}
package com.qianhe.domain;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qianhe.common.annotation.Excel;
import com.qianhe.common.core.domain.BaseEntity;
import org.springframework.web.multipart.MultipartFile;
/**
* 文档-热点信息对象 wd_wdxx_rd
*
* @author qianhe
* @date 2024-09-14
*/
@Data
public class WdWdxxRd 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 mkmc;
/** 附件类型 */
@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;
/** 预留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<MultipartFile> files;
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 setMkmc(String mkmc)
{
this.mkmc = mkmc;
}
public String getMkmc()
{
return mkmc;
}
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 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("deptId", getDeptId())
.append("nd", getNd())
.append("fjmc", getFjmc())
.append("fjdz", getFjdz())
.append("mkmc", getMkmc())
.append("fjlx", getFjlx())
.append("rdpx", getRdpx())
.append("lrr", getLrr())
.append("lrsj", getLrsj())
.append("xgr", getXgr())
.append("xgsj", getXgsj())
.append("bz", getBz())
.append("yl1", getYl1())
.append("yl2", getYl2())
.append("yl3", getYl3())
.append("yl4", getYl4())
.append("yl5", getYl5())
.toString();
}
}
package com.qianhe.mapper;
import java.util.List;
import com.qianhe.domain.WdWdxxRd;
/**
* 文档-热点信息Mapper接口
*
* @author qianhe
* @date 2024-09-14
*/
public interface WdWdxxRdMapper
{
/**
* 查询文档-热点信息
*
* @param id 文档-热点信息主键
* @return 文档-热点信息
*/
public WdWdxxRd selectWdWdxxRdById(Long id);
/**
* 查询文档-热点信息列表
*
* @param wdWdxxRd 文档-热点信息
* @return 文档-热点信息集合
*/
public List<WdWdxxRd> selectWdWdxxRdList(WdWdxxRd wdWdxxRd);
/**
* 新增文档-热点信息
*
* @param wdWdxxRd 文档-热点信息
* @return 结果
*/
public int insertWdWdxxRd(WdWdxxRd wdWdxxRd);
/**
* 修改文档-热点信息
*
* @param wdWdxxRd 文档-热点信息
* @return 结果
*/
public int updateWdWdxxRd(WdWdxxRd wdWdxxRd);
/**
* 删除文档-热点信息
*
* @param id 文档-热点信息主键
* @return 结果
*/
public int deleteWdWdxxRdById(Long id);
/**
* 批量删除文档-热点信息
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteWdWdxxRdByIds(Long[] ids);
int insertWdWdxxRdBatch(List<WdWdxxRd> wdWdxxRdList);
}
package com.qianhe.service;
import java.util.List;
import com.qianhe.domain.WdWdxxRd;
/**
* 文档-热点信息Service接口
*
* @author qianhe
* @date 2024-09-14
*/
public interface IWdWdxxRdService
{
/**
* 查询文档-热点信息
*
* @param id 文档-热点信息主键
* @return 文档-热点信息
*/
public WdWdxxRd selectWdWdxxRdById(Long id);
/**
* 查询文档-热点信息列表
*
* @param wdWdxxRd 文档-热点信息
* @return 文档-热点信息集合
*/
public List<WdWdxxRd> selectWdWdxxRdList(WdWdxxRd wdWdxxRd);
/**
* 新增文档-热点信息
*
* @param wdWdxxRd 文档-热点信息
* @return 结果
*/
public int insertWdWdxxRd(WdWdxxRd wdWdxxRd);
/**
* 修改文档-热点信息
*
* @param wdWdxxRd 文档-热点信息
* @return 结果
*/
public int updateWdWdxxRd(WdWdxxRd wdWdxxRd);
/**
* 批量删除文档-热点信息
*
* @param ids 需要删除的文档-热点信息主键集合
* @return 结果
*/
public int deleteWdWdxxRdByIds(Long[] ids);
/**
* 删除文档-热点信息信息
*
* @param id 文档-热点信息主键
* @return 结果
*/
public int deleteWdWdxxRdById(Long id);
}
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.WdWdxxRdMapper;
import com.qianhe.domain.WdWdxxRd;
import com.qianhe.service.IWdWdxxRdService;
/**
* 文档-热点信息Service业务层处理
*
* @author qianhe
* @date 2024-09-14
*/
@Service
public class WdWdxxRdServiceImpl implements IWdWdxxRdService
{
@Autowired
private WdWdxxRdMapper wdWdxxRdMapper;
/**
* 查询文档-热点信息
*
* @param id 文档-热点信息主键
* @return 文档-热点信息
*/
@Override
public WdWdxxRd selectWdWdxxRdById(Long id)
{
return wdWdxxRdMapper.selectWdWdxxRdById(id);
}
/**
* 查询文档-热点信息列表
*
* @param wdWdxxRd 文档-热点信息
* @return 文档-热点信息
*/
@Override
public List<WdWdxxRd> selectWdWdxxRdList(WdWdxxRd wdWdxxRd)
{
return wdWdxxRdMapper.selectWdWdxxRdList(wdWdxxRd);
}
/**
* 新增文档-热点信息
*
* @param wdWdxxRd 文档-热点信息
* @return 结果
*/
@Override
public int insertWdWdxxRd(WdWdxxRd wdWdxxRd)
{
return wdWdxxRdMapper.insertWdWdxxRd(wdWdxxRd);
}
/**
* 修改文档-热点信息
*
* @param wdWdxxRd 文档-热点信息
* @return 结果
*/
@Override
public int updateWdWdxxRd(WdWdxxRd wdWdxxRd)
{
return wdWdxxRdMapper.updateWdWdxxRd(wdWdxxRd);
}
/**
* 批量删除文档-热点信息
*
* @param ids 需要删除的文档-热点信息主键
* @return 结果
*/
@Override
public int deleteWdWdxxRdByIds(Long[] ids)
{
return wdWdxxRdMapper.deleteWdWdxxRdByIds(ids);
}
/**
* 删除文档-热点信息信息
*
* @param id 文档-热点信息主键
* @return 结果
*/
@Override
public int deleteWdWdxxRdById(Long id)
{
return wdWdxxRdMapper.deleteWdWdxxRdById(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.WdWdxxRdMapper">
<resultMap type="WdWdxxRd" id="WdWdxxRdResult">
<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="mkmc" column="mkmc" />
<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="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="selectWdWdxxRdVo">
select id, dept_id, nd, fjmc, fjdz, mkmc, fjlx, rdpx, lrr, lrsj, xgr, xgsj, bz, yl1, yl2, yl3, yl4, yl5 from wd_wdxx_rd
</sql>
<select id="selectWdWdxxRdList" parameterType="WdWdxxRd" resultMap="WdWdxxRdResult">
<include refid="selectWdWdxxRdVo"/>
<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="mkmc != null and mkmc != ''"> and mkmc = #{mkmc}</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="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="selectWdWdxxRdById" parameterType="Long" resultMap="WdWdxxRdResult">
<include refid="selectWdWdxxRdVo"/>
where id = #{id}
</select>
<insert id="insertWdWdxxRd" parameterType="WdWdxxRd" useGeneratedKeys="true" keyProperty="id">
insert into wd_wdxx_rd
<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="mkmc != null">mkmc,</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="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="nd != null">#{nd},</if>
<if test="fjmc != null">#{fjmc},</if>
<if test="fjdz != null">#{fjdz},</if>
<if test="mkmc != null">#{mkmc},</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="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>
<insert id="insertWdWdxxRdBatch">
insert into wd_wdxx_rd(dept_id, nd, fjmc, fjdz, mkmc, fjlx, rdpx, lrr, lrsj, xgr, xgsj, bz, yl1, yl2, yl3, yl4, yl5) values
<foreach item="item" index="index" collection="list" separator=",">
( #{item.deptId}, #{item.nd}, #{item.fjmc}, #{item.fjdz}, #{item.mkmc}, #{item.fjlx}, #{item.rdpx}, #{item.lrr}, #{item.lrsj}, #{item.xgr}, #{item.xgsj}, #{item.bz}, #{item.yl1}, #{item.yl2}, #{item.yl3}, #{item.yl4}, #{item.yl5})
</foreach>
</insert>
<update id="updateWdWdxxRd" parameterType="WdWdxxRd">
update wd_wdxx_rd
<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="mkmc != null">mkmc = #{mkmc},</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="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="deleteWdWdxxRdById" parameterType="Long">
delete from wd_wdxx_rd where id = #{id}
</delete>
<delete id="deleteWdWdxxRdByIds" parameterType="String">
delete from wd_wdxx_rd where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment