master
parent
d8db57ef15
commit
1afde55269
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
Binary file not shown.
Before Width: | Height: | Size: 17 KiB |
Binary file not shown.
Before Width: | Height: | Size: 137 KiB |
Binary file not shown.
Before Width: | Height: | Size: 8.4 KiB |
@ -0,0 +1,127 @@
|
|||||||
|
package com.ruoyi.manage.controller;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.ModelMap;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.manage.domain.RecordWasteOut;
|
||||||
|
import com.ruoyi.manage.service.IRecordWasteOutService;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 废品处理出库Controller
|
||||||
|
*
|
||||||
|
* @author wangh
|
||||||
|
* @date 2024-02-21
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/manage/record_waste_out")
|
||||||
|
public class RecordWasteOutController extends BaseController
|
||||||
|
{
|
||||||
|
private String prefix = "manage/record_waste_out";
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IRecordWasteOutService recordWasteOutService;
|
||||||
|
|
||||||
|
@RequiresPermissions("manage:record_waste_out:view")
|
||||||
|
@GetMapping()
|
||||||
|
public String record_waste_out()
|
||||||
|
{
|
||||||
|
return prefix + "/record_waste_out";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询废品处理出库列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("manage:record_waste_out:list")
|
||||||
|
@PostMapping("/list")
|
||||||
|
@ResponseBody
|
||||||
|
public TableDataInfo list(RecordWasteOut recordWasteOut)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<RecordWasteOut> list = recordWasteOutService.selectRecordWasteOutList(recordWasteOut);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出废品处理出库列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("manage:record_waste_out:export")
|
||||||
|
@Log(title = "废品处理出库", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult export(RecordWasteOut recordWasteOut)
|
||||||
|
{
|
||||||
|
List<RecordWasteOut> list = recordWasteOutService.selectRecordWasteOutList(recordWasteOut);
|
||||||
|
ExcelUtil<RecordWasteOut> util = new ExcelUtil<RecordWasteOut>(RecordWasteOut.class);
|
||||||
|
return util.exportExcel(list, "废品处理出库数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增废品处理出库
|
||||||
|
*/
|
||||||
|
@GetMapping("/add")
|
||||||
|
public String add()
|
||||||
|
{
|
||||||
|
return prefix + "/add";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增保存废品处理出库
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("manage:record_waste_out:add")
|
||||||
|
@Log(title = "废品处理出库", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping("/add")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult addSave(RecordWasteOut recordWasteOut)
|
||||||
|
{
|
||||||
|
return toAjax(recordWasteOutService.insertRecordWasteOut(recordWasteOut));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改废品处理出库
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("manage:record_waste_out:edit")
|
||||||
|
@GetMapping("/edit/{objid}")
|
||||||
|
public String edit(@PathVariable("objid") Long objid, ModelMap mmap)
|
||||||
|
{
|
||||||
|
RecordWasteOut recordWasteOut = recordWasteOutService.selectRecordWasteOutByObjid(objid);
|
||||||
|
mmap.put("recordWasteOut", recordWasteOut);
|
||||||
|
return prefix + "/edit";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改保存废品处理出库
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("manage:record_waste_out:edit")
|
||||||
|
@Log(title = "废品处理出库", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping("/edit")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult editSave(RecordWasteOut recordWasteOut)
|
||||||
|
{
|
||||||
|
return toAjax(recordWasteOutService.updateRecordWasteOut(recordWasteOut));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除废品处理出库
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("manage:record_waste_out:remove")
|
||||||
|
@Log(title = "废品处理出库", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping( "/remove")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult remove(String ids)
|
||||||
|
{
|
||||||
|
return toAjax(recordWasteOutService.deleteRecordWasteOutByObjids(ids));
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,67 @@
|
|||||||
|
package com.ruoyi.manage.domain;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 废品处理出库对象 record_waste_out
|
||||||
|
*
|
||||||
|
* @author wangh
|
||||||
|
* @date 2024-02-21
|
||||||
|
*/
|
||||||
|
public class RecordWasteOut extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
private Long objid;
|
||||||
|
|
||||||
|
/** RFID */
|
||||||
|
@Excel(name = "RFID")
|
||||||
|
private String epcCode;
|
||||||
|
|
||||||
|
/** 原存储库位 */
|
||||||
|
@Excel(name = "原存储库位")
|
||||||
|
private String locationCode;
|
||||||
|
|
||||||
|
public void setObjid(Long objid)
|
||||||
|
{
|
||||||
|
this.objid = objid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getObjid()
|
||||||
|
{
|
||||||
|
return objid;
|
||||||
|
}
|
||||||
|
public void setEpcCode(String epcCode)
|
||||||
|
{
|
||||||
|
this.epcCode = epcCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEpcCode()
|
||||||
|
{
|
||||||
|
return epcCode;
|
||||||
|
}
|
||||||
|
public void setLocationCode(String locationCode)
|
||||||
|
{
|
||||||
|
this.locationCode = locationCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLocationCode()
|
||||||
|
{
|
||||||
|
return locationCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("objid", getObjid())
|
||||||
|
.append("epcCode", getEpcCode())
|
||||||
|
.append("locationCode", getLocationCode())
|
||||||
|
.append("createBy", getCreateBy())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,62 @@
|
|||||||
|
package com.ruoyi.manage.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.manage.domain.RecordWasteOut;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
/**
|
||||||
|
* 废品处理出库Mapper接口
|
||||||
|
*
|
||||||
|
* @author wangh
|
||||||
|
* @date 2024-02-21
|
||||||
|
*/
|
||||||
|
@Repository
|
||||||
|
public interface RecordWasteOutMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询废品处理出库
|
||||||
|
*
|
||||||
|
* @param objid 废品处理出库主键
|
||||||
|
* @return 废品处理出库
|
||||||
|
*/
|
||||||
|
public RecordWasteOut selectRecordWasteOutByObjid(Long objid);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询废品处理出库列表
|
||||||
|
*
|
||||||
|
* @param recordWasteOut 废品处理出库
|
||||||
|
* @return 废品处理出库集合
|
||||||
|
*/
|
||||||
|
public List<RecordWasteOut> selectRecordWasteOutList(RecordWasteOut recordWasteOut);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增废品处理出库
|
||||||
|
*
|
||||||
|
* @param recordWasteOut 废品处理出库
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertRecordWasteOut(RecordWasteOut recordWasteOut);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改废品处理出库
|
||||||
|
*
|
||||||
|
* @param recordWasteOut 废品处理出库
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateRecordWasteOut(RecordWasteOut recordWasteOut);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除废品处理出库
|
||||||
|
*
|
||||||
|
* @param objid 废品处理出库主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteRecordWasteOutByObjid(Long objid);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除废品处理出库
|
||||||
|
*
|
||||||
|
* @param objids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteRecordWasteOutByObjids(String[] objids);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.manage.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.manage.domain.RecordWasteOut;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 废品处理出库Service接口
|
||||||
|
*
|
||||||
|
* @author wangh
|
||||||
|
* @date 2024-02-21
|
||||||
|
*/
|
||||||
|
public interface IRecordWasteOutService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询废品处理出库
|
||||||
|
*
|
||||||
|
* @param objid 废品处理出库主键
|
||||||
|
* @return 废品处理出库
|
||||||
|
*/
|
||||||
|
public RecordWasteOut selectRecordWasteOutByObjid(Long objid);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询废品处理出库列表
|
||||||
|
*
|
||||||
|
* @param recordWasteOut 废品处理出库
|
||||||
|
* @return 废品处理出库集合
|
||||||
|
*/
|
||||||
|
public List<RecordWasteOut> selectRecordWasteOutList(RecordWasteOut recordWasteOut);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增废品处理出库
|
||||||
|
*
|
||||||
|
* @param recordWasteOut 废品处理出库
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertRecordWasteOut(RecordWasteOut recordWasteOut);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改废品处理出库
|
||||||
|
*
|
||||||
|
* @param recordWasteOut 废品处理出库
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateRecordWasteOut(RecordWasteOut recordWasteOut);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除废品处理出库
|
||||||
|
*
|
||||||
|
* @param objids 需要删除的废品处理出库主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteRecordWasteOutByObjids(String objids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除废品处理出库信息
|
||||||
|
*
|
||||||
|
* @param objid 废品处理出库主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteRecordWasteOutByObjid(Long objid);
|
||||||
|
}
|
@ -0,0 +1,93 @@
|
|||||||
|
package com.ruoyi.manage.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
import com.ruoyi.common.utils.DateUtils;
|
||||||
|
import com.ruoyi.common.utils.ShiroUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.manage.mapper.RecordWasteOutMapper;
|
||||||
|
import com.ruoyi.manage.domain.RecordWasteOut;
|
||||||
|
import com.ruoyi.manage.service.IRecordWasteOutService;
|
||||||
|
import com.ruoyi.common.core.text.Convert;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 废品处理出库Service业务层处理
|
||||||
|
*
|
||||||
|
* @author wangh
|
||||||
|
* @date 2024-02-21
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class RecordWasteOutServiceImpl implements IRecordWasteOutService {
|
||||||
|
@Autowired
|
||||||
|
private RecordWasteOutMapper recordWasteOutMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询废品处理出库
|
||||||
|
*
|
||||||
|
* @param objid 废品处理出库主键
|
||||||
|
* @return 废品处理出库
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public RecordWasteOut selectRecordWasteOutByObjid(Long objid) {
|
||||||
|
return recordWasteOutMapper.selectRecordWasteOutByObjid(objid);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询废品处理出库列表
|
||||||
|
*
|
||||||
|
* @param recordWasteOut 废品处理出库
|
||||||
|
* @return 废品处理出库
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<RecordWasteOut> selectRecordWasteOutList(RecordWasteOut recordWasteOut) {
|
||||||
|
return recordWasteOutMapper.selectRecordWasteOutList(recordWasteOut);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增废品处理出库
|
||||||
|
*
|
||||||
|
* @param recordWasteOut 废品处理出库
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertRecordWasteOut(RecordWasteOut recordWasteOut) {
|
||||||
|
recordWasteOut.setCreateBy(ShiroUtils.getLoginName());
|
||||||
|
recordWasteOut.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return recordWasteOutMapper.insertRecordWasteOut(recordWasteOut);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改废品处理出库
|
||||||
|
*
|
||||||
|
* @param recordWasteOut 废品处理出库
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateRecordWasteOut(RecordWasteOut recordWasteOut) {
|
||||||
|
return recordWasteOutMapper.updateRecordWasteOut(recordWasteOut);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除废品处理出库
|
||||||
|
*
|
||||||
|
* @param objids 需要删除的废品处理出库主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteRecordWasteOutByObjids(String objids) {
|
||||||
|
return recordWasteOutMapper.deleteRecordWasteOutByObjids(Convert.toStrArray(objids));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除废品处理出库信息
|
||||||
|
*
|
||||||
|
* @param objid 废品处理出库主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteRecordWasteOutByObjid(Long objid) {
|
||||||
|
return recordWasteOutMapper.deleteRecordWasteOutByObjid(objid);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
-- 菜单 SQL
|
||||||
|
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values('废品处理出库', '2026', '8', '/manage/record_waste_out', 'C', '0', 'manage:record_waste_out:view', '#', 'admin', sysdate(), '', null, '废品处理出库菜单');
|
||||||
|
|
||||||
|
-- 按钮父菜单ID
|
||||||
|
SELECT @parentId := LAST_INSERT_ID();
|
||||||
|
|
||||||
|
-- 按钮 SQL
|
||||||
|
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values('废品处理出库查询', @parentId, '1', '#', 'F', '0', 'manage:record_waste_out:list', '#', 'admin', sysdate(), '', null, '');
|
||||||
|
|
||||||
|
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values('废品处理出库新增', @parentId, '2', '#', 'F', '0', 'manage:record_waste_out:add', '#', 'admin', sysdate(), '', null, '');
|
||||||
|
|
||||||
|
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values('废品处理出库修改', @parentId, '3', '#', 'F', '0', 'manage:record_waste_out:edit', '#', 'admin', sysdate(), '', null, '');
|
||||||
|
|
||||||
|
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values('废品处理出库删除', @parentId, '4', '#', 'F', '0', 'manage:record_waste_out:remove', '#', 'admin', sysdate(), '', null, '');
|
||||||
|
|
||||||
|
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values('废品处理出库导出', @parentId, '5', '#', 'F', '0', 'manage:record_waste_out:export', '#', 'admin', sysdate(), '', null, '');
|
@ -0,0 +1,71 @@
|
|||||||
|
<?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.manage.mapper.RecordWasteOutMapper">
|
||||||
|
|
||||||
|
<resultMap type="RecordWasteOut" id="RecordWasteOutResult">
|
||||||
|
<result property="objid" column="objid" />
|
||||||
|
<result property="epcCode" column="epc_code" />
|
||||||
|
<result property="locationCode" column="location_code" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectRecordWasteOutVo">
|
||||||
|
select objid, epc_code, location_code, create_by, create_time from record_waste_out
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectRecordWasteOutList" parameterType="RecordWasteOut" resultMap="RecordWasteOutResult">
|
||||||
|
<include refid="selectRecordWasteOutVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="epcCode != null and epcCode != ''"> and epc_code = #{epcCode}</if>
|
||||||
|
<if test="createBy != null and createBy != ''"> and create_by = #{createBy}</if>
|
||||||
|
<if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and create_time between #{params.beginCreateTime} and #{params.endCreateTime}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectRecordWasteOutByObjid" parameterType="Long" resultMap="RecordWasteOutResult">
|
||||||
|
<include refid="selectRecordWasteOutVo"/>
|
||||||
|
where objid = #{objid}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertRecordWasteOut" parameterType="RecordWasteOut" useGeneratedKeys="true" keyProperty="objid">
|
||||||
|
insert into record_waste_out
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="epcCode != null">epc_code,</if>
|
||||||
|
<if test="locationCode != null">location_code,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="epcCode != null">#{epcCode},</if>
|
||||||
|
<if test="locationCode != null">#{locationCode},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateRecordWasteOut" parameterType="RecordWasteOut">
|
||||||
|
update record_waste_out
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="epcCode != null">epc_code = #{epcCode},</if>
|
||||||
|
<if test="locationCode != null">location_code = #{locationCode},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
</trim>
|
||||||
|
where objid = #{objid}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteRecordWasteOutByObjid" parameterType="Long">
|
||||||
|
delete from record_waste_out where objid = #{objid}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteRecordWasteOutByObjids" parameterType="String">
|
||||||
|
delete from record_waste_out where objid in
|
||||||
|
<foreach item="objid" collection="array" open="(" separator="," close=")">
|
||||||
|
#{objid}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue