feat: 入库任务
This commit is contained in:
parent
786d59e7ea
commit
ad02e62fd0
@ -0,0 +1,104 @@
|
||||
package com.ktg.mes.wm.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.ktg.common.annotation.Log;
|
||||
import com.ktg.common.core.controller.BaseController;
|
||||
import com.ktg.common.core.domain.AjaxResult;
|
||||
import com.ktg.common.enums.BusinessType;
|
||||
import com.ktg.mes.wm.domain.WmsInTask;
|
||||
import com.ktg.mes.wm.service.IWmsInTaskService;
|
||||
import com.ktg.common.utils.poi.ExcelUtil;
|
||||
import com.ktg.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 入库任务Controller
|
||||
*
|
||||
* @author yinjinlu
|
||||
* @date 2024-11-01
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/wm/wmsInTask")
|
||||
public class WmsInTaskController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IWmsInTaskService wmsInTaskService;
|
||||
|
||||
/**
|
||||
* 查询入库任务列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('wm:wmsInTask:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(WmsInTask wmsInTask)
|
||||
{
|
||||
startPage();
|
||||
List<WmsInTask> list = wmsInTaskService.selectWmsInTaskList(wmsInTask);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出入库任务列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('wm:wmsInTask:export')")
|
||||
@Log(title = "入库任务", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, WmsInTask wmsInTask)
|
||||
{
|
||||
List<WmsInTask> list = wmsInTaskService.selectWmsInTaskList(wmsInTask);
|
||||
ExcelUtil<WmsInTask> util = new ExcelUtil<WmsInTask>(WmsInTask.class);
|
||||
util.exportExcel(response, list, "入库任务数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取入库任务详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('wm:wmsInTask:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id)
|
||||
{
|
||||
return AjaxResult.success(wmsInTaskService.selectWmsInTaskById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增入库任务
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('wm:wmsInTask:add')")
|
||||
@Log(title = "入库任务", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody WmsInTask wmsInTask)
|
||||
{
|
||||
return toAjax(wmsInTaskService.insertWmsInTask(wmsInTask));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改入库任务
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('wm:wmsInTask:edit')")
|
||||
@Log(title = "入库任务", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody WmsInTask wmsInTask)
|
||||
{
|
||||
return toAjax(wmsInTaskService.updateWmsInTask(wmsInTask));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除入库任务
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('wm:wmsInTask:remove')")
|
||||
@Log(title = "入库任务", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] ids)
|
||||
{
|
||||
return toAjax(wmsInTaskService.deleteWmsInTaskByIds(ids));
|
||||
}
|
||||
}
|
210
ktg-mes/src/main/java/com/ktg/mes/wm/domain/WmsInTask.java
Normal file
210
ktg-mes/src/main/java/com/ktg/mes/wm/domain/WmsInTask.java
Normal file
@ -0,0 +1,210 @@
|
||||
package com.ktg.mes.wm.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ktg.common.annotation.Excel;
|
||||
import com.ktg.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 入库任务对象 WMS_IN_TASK
|
||||
*
|
||||
* @author yinjinlu
|
||||
* @date 2024-11-01
|
||||
*/
|
||||
public class WmsInTask extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private String id;
|
||||
|
||||
/** 任务编码 */
|
||||
@Excel(name = "任务编码")
|
||||
private String taskInCode;
|
||||
|
||||
/** 入库计划id */
|
||||
@Excel(name = "入库计划id")
|
||||
private String planInId;
|
||||
|
||||
/** 任务数量 */
|
||||
@Excel(name = "任务数量")
|
||||
private String taskInQuantity;
|
||||
|
||||
/** 实际数量 */
|
||||
@Excel(name = "实际数量")
|
||||
private String actualInQuantity;
|
||||
|
||||
/** 目标库位 */
|
||||
@Excel(name = "目标库位")
|
||||
private String cellTgt;
|
||||
|
||||
/** 起始库位 */
|
||||
@Excel(name = "起始库位")
|
||||
private String cellOrig;
|
||||
|
||||
/** 是否激活 */
|
||||
@Excel(name = "是否激活")
|
||||
private String isActivy;
|
||||
|
||||
/** 是否删除 */
|
||||
@Excel(name = "是否删除")
|
||||
private String isDelete;
|
||||
|
||||
/** 批次 */
|
||||
@Excel(name = "批次")
|
||||
private String batch;
|
||||
|
||||
/** 物料 */
|
||||
@Excel(name = "物料")
|
||||
private String materialId;
|
||||
|
||||
/** 出入库类型 */
|
||||
@Excel(name = "出入库类型")
|
||||
private String planTypeId;
|
||||
|
||||
/** 状态 */
|
||||
@Excel(name = "状态")
|
||||
private String planInStatus;
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setTaskInCode(String taskInCode)
|
||||
{
|
||||
this.taskInCode = taskInCode;
|
||||
}
|
||||
|
||||
public String getTaskInCode()
|
||||
{
|
||||
return taskInCode;
|
||||
}
|
||||
public void setPlanInId(String planInId)
|
||||
{
|
||||
this.planInId = planInId;
|
||||
}
|
||||
|
||||
public String getPlanInId()
|
||||
{
|
||||
return planInId;
|
||||
}
|
||||
public void setTaskInQuantity(String taskInQuantity)
|
||||
{
|
||||
this.taskInQuantity = taskInQuantity;
|
||||
}
|
||||
|
||||
public String getTaskInQuantity()
|
||||
{
|
||||
return taskInQuantity;
|
||||
}
|
||||
public void setActualInQuantity(String actualInQuantity)
|
||||
{
|
||||
this.actualInQuantity = actualInQuantity;
|
||||
}
|
||||
|
||||
public String getActualInQuantity()
|
||||
{
|
||||
return actualInQuantity;
|
||||
}
|
||||
public void setCellTgt(String cellTgt)
|
||||
{
|
||||
this.cellTgt = cellTgt;
|
||||
}
|
||||
|
||||
public String getCellTgt()
|
||||
{
|
||||
return cellTgt;
|
||||
}
|
||||
public void setCellOrig(String cellOrig)
|
||||
{
|
||||
this.cellOrig = cellOrig;
|
||||
}
|
||||
|
||||
public String getCellOrig()
|
||||
{
|
||||
return cellOrig;
|
||||
}
|
||||
public void setIsActivy(String isActivy)
|
||||
{
|
||||
this.isActivy = isActivy;
|
||||
}
|
||||
|
||||
public String getIsActivy()
|
||||
{
|
||||
return isActivy;
|
||||
}
|
||||
public void setIsDelete(String isDelete)
|
||||
{
|
||||
this.isDelete = isDelete;
|
||||
}
|
||||
|
||||
public String getIsDelete()
|
||||
{
|
||||
return isDelete;
|
||||
}
|
||||
public void setBatch(String batch)
|
||||
{
|
||||
this.batch = batch;
|
||||
}
|
||||
|
||||
public String getBatch()
|
||||
{
|
||||
return batch;
|
||||
}
|
||||
public void setMaterialId(String materialId)
|
||||
{
|
||||
this.materialId = materialId;
|
||||
}
|
||||
|
||||
public String getMaterialId()
|
||||
{
|
||||
return materialId;
|
||||
}
|
||||
public void setPlanTypeId(String planTypeId)
|
||||
{
|
||||
this.planTypeId = planTypeId;
|
||||
}
|
||||
|
||||
public String getPlanTypeId()
|
||||
{
|
||||
return planTypeId;
|
||||
}
|
||||
public void setPlanInStatus(String planInStatus)
|
||||
{
|
||||
this.planInStatus = planInStatus;
|
||||
}
|
||||
|
||||
public String getPlanInStatus()
|
||||
{
|
||||
return planInStatus;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("taskInCode", getTaskInCode())
|
||||
.append("planInId", getPlanInId())
|
||||
.append("taskInQuantity", getTaskInQuantity())
|
||||
.append("actualInQuantity", getActualInQuantity())
|
||||
.append("cellTgt", getCellTgt())
|
||||
.append("cellOrig", getCellOrig())
|
||||
.append("remark", getRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("isActivy", getIsActivy())
|
||||
.append("isDelete", getIsDelete())
|
||||
.append("batch", getBatch())
|
||||
.append("materialId", getMaterialId())
|
||||
.append("planTypeId", getPlanTypeId())
|
||||
.append("planInStatus", getPlanInStatus())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ktg.mes.wm.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ktg.mes.wm.domain.WmsInTask;
|
||||
|
||||
/**
|
||||
* 入库任务Mapper接口
|
||||
*
|
||||
* @author yinjinlu
|
||||
* @date 2024-11-01
|
||||
*/
|
||||
public interface WmsInTaskMapper
|
||||
{
|
||||
/**
|
||||
* 查询入库任务
|
||||
*
|
||||
* @param id 入库任务主键
|
||||
* @return 入库任务
|
||||
*/
|
||||
public WmsInTask selectWmsInTaskById(String id);
|
||||
|
||||
/**
|
||||
* 查询入库任务列表
|
||||
*
|
||||
* @param wmsInTask 入库任务
|
||||
* @return 入库任务集合
|
||||
*/
|
||||
public List<WmsInTask> selectWmsInTaskList(WmsInTask wmsInTask);
|
||||
|
||||
/**
|
||||
* 新增入库任务
|
||||
*
|
||||
* @param wmsInTask 入库任务
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertWmsInTask(WmsInTask wmsInTask);
|
||||
|
||||
/**
|
||||
* 修改入库任务
|
||||
*
|
||||
* @param wmsInTask 入库任务
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateWmsInTask(WmsInTask wmsInTask);
|
||||
|
||||
/**
|
||||
* 删除入库任务
|
||||
*
|
||||
* @param id 入库任务主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWmsInTaskById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除入库任务
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWmsInTaskByIds(String[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ktg.mes.wm.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ktg.mes.wm.domain.WmsInTask;
|
||||
|
||||
/**
|
||||
* 入库任务Service接口
|
||||
*
|
||||
* @author yinjinlu
|
||||
* @date 2024-11-01
|
||||
*/
|
||||
public interface IWmsInTaskService
|
||||
{
|
||||
/**
|
||||
* 查询入库任务
|
||||
*
|
||||
* @param id 入库任务主键
|
||||
* @return 入库任务
|
||||
*/
|
||||
public WmsInTask selectWmsInTaskById(String id);
|
||||
|
||||
/**
|
||||
* 查询入库任务列表
|
||||
*
|
||||
* @param wmsInTask 入库任务
|
||||
* @return 入库任务集合
|
||||
*/
|
||||
public List<WmsInTask> selectWmsInTaskList(WmsInTask wmsInTask);
|
||||
|
||||
/**
|
||||
* 新增入库任务
|
||||
*
|
||||
* @param wmsInTask 入库任务
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertWmsInTask(WmsInTask wmsInTask);
|
||||
|
||||
/**
|
||||
* 修改入库任务
|
||||
*
|
||||
* @param wmsInTask 入库任务
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateWmsInTask(WmsInTask wmsInTask);
|
||||
|
||||
/**
|
||||
* 批量删除入库任务
|
||||
*
|
||||
* @param ids 需要删除的入库任务主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWmsInTaskByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 删除入库任务信息
|
||||
*
|
||||
* @param id 入库任务主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWmsInTaskById(String id);
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
package com.ktg.mes.wm.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ktg.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ktg.mes.wm.mapper.WmsInTaskMapper;
|
||||
import com.ktg.mes.wm.domain.WmsInTask;
|
||||
import com.ktg.mes.wm.service.IWmsInTaskService;
|
||||
|
||||
/**
|
||||
* 入库任务Service业务层处理
|
||||
*
|
||||
* @author yinjinlu
|
||||
* @date 2024-11-01
|
||||
*/
|
||||
@Service
|
||||
public class WmsInTaskServiceImpl implements IWmsInTaskService
|
||||
{
|
||||
@Autowired
|
||||
private WmsInTaskMapper wmsInTaskMapper;
|
||||
|
||||
/**
|
||||
* 查询入库任务
|
||||
*
|
||||
* @param id 入库任务主键
|
||||
* @return 入库任务
|
||||
*/
|
||||
@Override
|
||||
public WmsInTask selectWmsInTaskById(String id)
|
||||
{
|
||||
return wmsInTaskMapper.selectWmsInTaskById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询入库任务列表
|
||||
*
|
||||
* @param wmsInTask 入库任务
|
||||
* @return 入库任务
|
||||
*/
|
||||
@Override
|
||||
public List<WmsInTask> selectWmsInTaskList(WmsInTask wmsInTask)
|
||||
{
|
||||
return wmsInTaskMapper.selectWmsInTaskList(wmsInTask);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增入库任务
|
||||
*
|
||||
* @param wmsInTask 入库任务
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertWmsInTask(WmsInTask wmsInTask)
|
||||
{
|
||||
wmsInTask.setCreateTime(DateUtils.getNowDate());
|
||||
return wmsInTaskMapper.insertWmsInTask(wmsInTask);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改入库任务
|
||||
*
|
||||
* @param wmsInTask 入库任务
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateWmsInTask(WmsInTask wmsInTask)
|
||||
{
|
||||
wmsInTask.setUpdateTime(DateUtils.getNowDate());
|
||||
return wmsInTaskMapper.updateWmsInTask(wmsInTask);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除入库任务
|
||||
*
|
||||
* @param ids 需要删除的入库任务主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteWmsInTaskByIds(String[] ids)
|
||||
{
|
||||
return wmsInTaskMapper.deleteWmsInTaskByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除入库任务信息
|
||||
*
|
||||
* @param id 入库任务主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteWmsInTaskById(String id)
|
||||
{
|
||||
return wmsInTaskMapper.deleteWmsInTaskById(id);
|
||||
}
|
||||
}
|
136
ktg-mes/src/main/resources/mapper/wm/WmsInTaskMapper.xml
Normal file
136
ktg-mes/src/main/resources/mapper/wm/WmsInTaskMapper.xml
Normal file
@ -0,0 +1,136 @@
|
||||
<?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.ktg.mes.wm.mapper.WmsInTaskMapper">
|
||||
|
||||
<resultMap type="WmsInTask" id="WmsInTaskResult">
|
||||
<result property="id" column="ID" />
|
||||
<result property="taskInCode" column="TASK_IN_CODE" />
|
||||
<result property="planInId" column="PLAN_IN_ID" />
|
||||
<result property="taskInQuantity" column="TASK_IN_QUANTITY" />
|
||||
<result property="actualInQuantity" column="ACTUAL_IN_QUANTITY" />
|
||||
<result property="cellTgt" column="CELL_TGT" />
|
||||
<result property="cellOrig" column="CELL_ORIG" />
|
||||
<result property="remark" column="REMARK" />
|
||||
<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="isActivy" column="IS_ACTIVY" />
|
||||
<result property="isDelete" column="IS_DELETE" />
|
||||
<result property="batch" column="BATCH" />
|
||||
<result property="materialId" column="MATERIAL_ID" />
|
||||
<result property="planTypeId" column="PLAN_TYPE_ID" />
|
||||
<result property="planInStatus" column="PLAN_IN_STATUS" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectWmsInTaskVo">
|
||||
select ID, TASK_IN_CODE, PLAN_IN_ID, TASK_IN_QUANTITY, ACTUAL_IN_QUANTITY, CELL_TGT, CELL_ORIG, REMARK, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, IS_ACTIVY, IS_DELETE, BATCH, MATERIAL_ID, PLAN_TYPE_ID, PLAN_IN_STATUS from WMS_IN_TASK
|
||||
</sql>
|
||||
|
||||
<select id="selectWmsInTaskList" parameterType="WmsInTask" resultMap="WmsInTaskResult">
|
||||
<include refid="selectWmsInTaskVo"/>
|
||||
<where>
|
||||
<if test="taskInCode != null and taskInCode != ''"> and TASK_IN_CODE = #{taskInCode}</if>
|
||||
<if test="planInId != null and planInId != ''"> and PLAN_IN_ID = #{planInId}</if>
|
||||
<if test="taskInQuantity != null and taskInQuantity != ''"> and TASK_IN_QUANTITY = #{taskInQuantity}</if>
|
||||
<if test="actualInQuantity != null and actualInQuantity != ''"> and ACTUAL_IN_QUANTITY = #{actualInQuantity}</if>
|
||||
<if test="cellTgt != null and cellTgt != ''"> and CELL_TGT = #{cellTgt}</if>
|
||||
<if test="cellOrig != null and cellOrig != ''"> and CELL_ORIG = #{cellOrig}</if>
|
||||
<if test="remark != null and remark != ''"> and REMARK = #{remark}</if>
|
||||
<if test="createBy != null and createBy != ''"> and CREATE_BY = #{createBy}</if>
|
||||
<if test="createTime != null and createTime != ''"> and CREATE_TIME = #{createTime}</if>
|
||||
<if test="updateBy != null and updateBy != ''"> and UPDATE_BY = #{updateBy}</if>
|
||||
<if test="updateTime != null and updateTime != ''"> and UPDATE_TIME = #{updateTime}</if>
|
||||
<if test="isActivy != null and isActivy != ''"> and IS_ACTIVY = #{isActivy}</if>
|
||||
<if test="isDelete != null and isDelete != ''"> and IS_DELETE = #{isDelete}</if>
|
||||
<if test="batch != null and batch != ''"> and BATCH = #{batch}</if>
|
||||
<if test="materialId != null and materialId != ''"> and MATERIAL_ID = #{materialId}</if>
|
||||
<if test="planTypeId != null and planTypeId != ''"> and PLAN_TYPE_ID = #{planTypeId}</if>
|
||||
<if test="planInStatus != null and planInStatus != ''"> and PLAN_IN_STATUS = #{planInStatus}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectWmsInTaskById" parameterType="String" resultMap="WmsInTaskResult">
|
||||
<include refid="selectWmsInTaskVo"/>
|
||||
where ID = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertWmsInTask" parameterType="WmsInTask" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into WMS_IN_TASK
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="taskInCode != null">TASK_IN_CODE,</if>
|
||||
<if test="planInId != null">PLAN_IN_ID,</if>
|
||||
<if test="taskInQuantity != null">TASK_IN_QUANTITY,</if>
|
||||
<if test="actualInQuantity != null">ACTUAL_IN_QUANTITY,</if>
|
||||
<if test="cellTgt != null">CELL_TGT,</if>
|
||||
<if test="cellOrig != null">CELL_ORIG,</if>
|
||||
<if test="remark != null">REMARK,</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="isActivy != null">IS_ACTIVY,</if>
|
||||
<if test="isDelete != null">IS_DELETE,</if>
|
||||
<if test="batch != null">BATCH,</if>
|
||||
<if test="materialId != null">MATERIAL_ID,</if>
|
||||
<if test="planTypeId != null">PLAN_TYPE_ID,</if>
|
||||
<if test="planInStatus != null">PLAN_IN_STATUS,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="taskInCode != null">#{taskInCode},</if>
|
||||
<if test="planInId != null">#{planInId},</if>
|
||||
<if test="taskInQuantity != null">#{taskInQuantity},</if>
|
||||
<if test="actualInQuantity != null">#{actualInQuantity},</if>
|
||||
<if test="cellTgt != null">#{cellTgt},</if>
|
||||
<if test="cellOrig != null">#{cellOrig},</if>
|
||||
<if test="remark != null">#{remark},</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="isActivy != null">#{isActivy},</if>
|
||||
<if test="isDelete != null">#{isDelete},</if>
|
||||
<if test="batch != null">#{batch},</if>
|
||||
<if test="materialId != null">#{materialId},</if>
|
||||
<if test="planTypeId != null">#{planTypeId},</if>
|
||||
<if test="planInStatus != null">#{planInStatus},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateWmsInTask" parameterType="WmsInTask">
|
||||
update WMS_IN_TASK
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="taskInCode != null">TASK_IN_CODE = #{taskInCode},</if>
|
||||
<if test="planInId != null">PLAN_IN_ID = #{planInId},</if>
|
||||
<if test="taskInQuantity != null">TASK_IN_QUANTITY = #{taskInQuantity},</if>
|
||||
<if test="actualInQuantity != null">ACTUAL_IN_QUANTITY = #{actualInQuantity},</if>
|
||||
<if test="cellTgt != null">CELL_TGT = #{cellTgt},</if>
|
||||
<if test="cellOrig != null">CELL_ORIG = #{cellOrig},</if>
|
||||
<if test="remark != null">REMARK = #{remark},</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="isActivy != null">IS_ACTIVY = #{isActivy},</if>
|
||||
<if test="isDelete != null">IS_DELETE = #{isDelete},</if>
|
||||
<if test="batch != null">BATCH = #{batch},</if>
|
||||
<if test="materialId != null">MATERIAL_ID = #{materialId},</if>
|
||||
<if test="planTypeId != null">PLAN_TYPE_ID = #{planTypeId},</if>
|
||||
<if test="planInStatus != null">PLAN_IN_STATUS = #{planInStatus},</if>
|
||||
</trim>
|
||||
where ID = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteWmsInTaskById" parameterType="String">
|
||||
delete from WMS_IN_TASK where ID = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteWmsInTaskByIds" parameterType="String">
|
||||
delete from WMS_IN_TASK where ID in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
Loading…
Reference in New Issue
Block a user