youjianchi
7 months ago
5 changed files with 613 additions and 0 deletions
@ -0,0 +1,201 @@ |
|||
package com.ruoyi.system.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.ruoyi.common.annotation.Excel; |
|||
import com.ruoyi.common.core.domain.BaseEntity; |
|||
|
|||
/** |
|||
* 生产订单部门对象 sys_makeorder_dept |
|||
* |
|||
* @author ruoyi |
|||
* @date 2024-04-01 |
|||
*/ |
|||
public class SysMakeorderDept extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 主键ID */ |
|||
private Long id; |
|||
|
|||
/** 删除标志(0代表存在 1代表删除) */ |
|||
private String delFlag; |
|||
|
|||
/** 生产订单号 */ |
|||
@Excel(name = "生产订单号") |
|||
private String makeNo; |
|||
|
|||
/** 料号 */ |
|||
@Excel(name = "料号") |
|||
private String materialNo; |
|||
|
|||
/** 部门id */ |
|||
@Excel(name = "部门id") |
|||
private Long deptId; |
|||
|
|||
/** 部门名称 */ |
|||
@Excel(name = "部门名称") |
|||
private String deptName; |
|||
|
|||
/** 计划完成开始时间 */ |
|||
@JsonFormat(pattern = "yyyy-MM-dd") |
|||
@Excel(name = "计划完成开始时间", width = 30, dateFormat = "yyyy-MM-dd") |
|||
private Date planFinishStartDate; |
|||
|
|||
/** 计划完成结束时间 */ |
|||
@JsonFormat(pattern = "yyyy-MM-dd") |
|||
@Excel(name = "计划完成结束时间", width = 30, dateFormat = "yyyy-MM-dd") |
|||
private Date planFinishEndDate; |
|||
|
|||
/** 计划完成天数 */ |
|||
@Excel(name = "计划完成天数") |
|||
private Long planFinishDays; |
|||
|
|||
/** 部门主管确认状态 0-待确认 1-已确认 */ |
|||
@Excel(name = "部门主管确认状态 0-待确认 1-已确认") |
|||
private String deptLeaderConfirmStatus; |
|||
|
|||
/** 实际完成开始时间 */ |
|||
@JsonFormat(pattern = "yyyy-MM-dd") |
|||
@Excel(name = "实际完成开始时间", width = 30, dateFormat = "yyyy-MM-dd") |
|||
private Date actualFinishStartTime; |
|||
|
|||
/** 实际完成结束时间 */ |
|||
@JsonFormat(pattern = "yyyy-MM-dd") |
|||
@Excel(name = "实际完成结束时间", width = 30, dateFormat = "yyyy-MM-dd") |
|||
private Date actualFinishEndTime; |
|||
|
|||
public void setId(Long id) |
|||
{ |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getId() |
|||
{ |
|||
return id; |
|||
} |
|||
public void setDelFlag(String delFlag) |
|||
{ |
|||
this.delFlag = delFlag; |
|||
} |
|||
|
|||
public String getDelFlag() |
|||
{ |
|||
return delFlag; |
|||
} |
|||
public void setMakeNo(String makeNo) |
|||
{ |
|||
this.makeNo = makeNo; |
|||
} |
|||
|
|||
public String getMakeNo() |
|||
{ |
|||
return makeNo; |
|||
} |
|||
public void setMaterialNo(String materialNo) |
|||
{ |
|||
this.materialNo = materialNo; |
|||
} |
|||
|
|||
public String getMaterialNo() |
|||
{ |
|||
return materialNo; |
|||
} |
|||
public void setDeptId(Long deptId) |
|||
{ |
|||
this.deptId = deptId; |
|||
} |
|||
|
|||
public Long getDeptId() |
|||
{ |
|||
return deptId; |
|||
} |
|||
public void setDeptName(String deptName) |
|||
{ |
|||
this.deptName = deptName; |
|||
} |
|||
|
|||
public String getDeptName() |
|||
{ |
|||
return deptName; |
|||
} |
|||
public void setPlanFinishStartDate(Date planFinishStartDate) |
|||
{ |
|||
this.planFinishStartDate = planFinishStartDate; |
|||
} |
|||
|
|||
public Date getPlanFinishStartDate() |
|||
{ |
|||
return planFinishStartDate; |
|||
} |
|||
public void setPlanFinishEndDate(Date planFinishEndDate) |
|||
{ |
|||
this.planFinishEndDate = planFinishEndDate; |
|||
} |
|||
|
|||
public Date getPlanFinishEndDate() |
|||
{ |
|||
return planFinishEndDate; |
|||
} |
|||
public void setPlanFinishDays(Long planFinishDays) |
|||
{ |
|||
this.planFinishDays = planFinishDays; |
|||
} |
|||
|
|||
public Long getPlanFinishDays() |
|||
{ |
|||
return planFinishDays; |
|||
} |
|||
public void setDeptLeaderConfirmStatus(String deptLeaderConfirmStatus) |
|||
{ |
|||
this.deptLeaderConfirmStatus = deptLeaderConfirmStatus; |
|||
} |
|||
|
|||
public String getDeptLeaderConfirmStatus() |
|||
{ |
|||
return deptLeaderConfirmStatus; |
|||
} |
|||
public void setActualFinishStartTime(Date actualFinishStartTime) |
|||
{ |
|||
this.actualFinishStartTime = actualFinishStartTime; |
|||
} |
|||
|
|||
public Date getActualFinishStartTime() |
|||
{ |
|||
return actualFinishStartTime; |
|||
} |
|||
public void setActualFinishEndTime(Date actualFinishEndTime) |
|||
{ |
|||
this.actualFinishEndTime = actualFinishEndTime; |
|||
} |
|||
|
|||
public Date getActualFinishEndTime() |
|||
{ |
|||
return actualFinishEndTime; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
|||
.append("id", getId()) |
|||
.append("delFlag", getDelFlag()) |
|||
.append("createBy", getCreateBy()) |
|||
.append("createTime", getCreateTime()) |
|||
.append("updateBy", getUpdateBy()) |
|||
.append("updateTime", getUpdateTime()) |
|||
.append("remark", getRemark()) |
|||
.append("makeNo", getMakeNo()) |
|||
.append("materialNo", getMaterialNo()) |
|||
.append("deptId", getDeptId()) |
|||
.append("deptName", getDeptName()) |
|||
.append("planFinishStartDate", getPlanFinishStartDate()) |
|||
.append("planFinishEndDate", getPlanFinishEndDate()) |
|||
.append("planFinishDays", getPlanFinishDays()) |
|||
.append("deptLeaderConfirmStatus", getDeptLeaderConfirmStatus()) |
|||
.append("actualFinishStartTime", getActualFinishStartTime()) |
|||
.append("actualFinishEndTime", getActualFinishEndTime()) |
|||
.toString(); |
|||
} |
|||
} |
@ -0,0 +1,77 @@ |
|||
package com.ruoyi.system.mapper; |
|||
|
|||
import java.util.List; |
|||
import com.ruoyi.system.domain.SysMakeorderDept; |
|||
|
|||
/** |
|||
* 生产订单部门Mapper接口 |
|||
* |
|||
* @author ruoyi |
|||
* @date 2024-04-01 |
|||
*/ |
|||
public interface SysMakeorderDeptMapper |
|||
{ |
|||
/** |
|||
* 查询生产订单部门 |
|||
* |
|||
* @param id 生产订单部门ID |
|||
* @return 生产订单部门 |
|||
*/ |
|||
public SysMakeorderDept selectSysMakeorderDeptById(Long id); |
|||
|
|||
/** |
|||
* 查询生产订单部门列表 |
|||
* |
|||
* @param sysMakeorderDept 生产订单部门 |
|||
* @return 生产订单部门集合 |
|||
*/ |
|||
public List<SysMakeorderDept> selectSysMakeorderDeptList(SysMakeorderDept sysMakeorderDept); |
|||
|
|||
/** |
|||
* 新增生产订单部门 |
|||
* |
|||
* @param sysMakeorderDept 生产订单部门 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertSysMakeorderDept(SysMakeorderDept sysMakeorderDept); |
|||
|
|||
/** |
|||
* 修改生产订单部门 |
|||
* |
|||
* @param sysMakeorderDept 生产订单部门 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateSysMakeorderDept(SysMakeorderDept sysMakeorderDept); |
|||
|
|||
/** |
|||
* 删除生产订单部门 |
|||
* |
|||
* @param id 生产订单部门ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteSysMakeorderDeptById(Long id); |
|||
|
|||
/** |
|||
* 批量删除生产订单部门 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteSysMakeorderDeptByIds(String[] ids); |
|||
|
|||
/** |
|||
* 作废生产订单部门 |
|||
* |
|||
* @param id 生产订单部门ID |
|||
* @return 结果 |
|||
*/ |
|||
public int cancelSysMakeorderDeptById(Long id); |
|||
|
|||
/** |
|||
* 恢复生产订单部门 |
|||
* |
|||
* @param id 生产订单部门ID |
|||
* @return 结果 |
|||
*/ |
|||
public int restoreSysMakeorderDeptById(Long id); |
|||
} |
@ -0,0 +1,75 @@ |
|||
package com.ruoyi.system.service; |
|||
|
|||
import java.util.List; |
|||
import com.ruoyi.system.domain.SysMakeorderDept; |
|||
|
|||
/** |
|||
* 生产订单部门Service接口 |
|||
* |
|||
* @author ruoyi |
|||
* @date 2024-04-01 |
|||
*/ |
|||
public interface ISysMakeorderDeptService |
|||
{ |
|||
/** |
|||
* 查询生产订单部门 |
|||
* |
|||
* @param id 生产订单部门ID |
|||
* @return 生产订单部门 |
|||
*/ |
|||
public SysMakeorderDept selectSysMakeorderDeptById(Long id); |
|||
|
|||
/** |
|||
* 查询生产订单部门列表 |
|||
* |
|||
* @param sysMakeorderDept 生产订单部门 |
|||
* @return 生产订单部门集合 |
|||
*/ |
|||
public List<SysMakeorderDept> selectSysMakeorderDeptList(SysMakeorderDept sysMakeorderDept); |
|||
|
|||
/** |
|||
* 新增生产订单部门 |
|||
* |
|||
* @param sysMakeorderDept 生产订单部门 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertSysMakeorderDept(SysMakeorderDept sysMakeorderDept); |
|||
|
|||
/** |
|||
* 修改生产订单部门 |
|||
* |
|||
* @param sysMakeorderDept 生产订单部门 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateSysMakeorderDept(SysMakeorderDept sysMakeorderDept); |
|||
|
|||
/** |
|||
* 批量删除生产订单部门 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteSysMakeorderDeptByIds(String ids); |
|||
|
|||
/** |
|||
* 删除生产订单部门信息 |
|||
* |
|||
* @param id 生产订单部门ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteSysMakeorderDeptById(Long id); |
|||
|
|||
/** |
|||
* 作废生产订单部门 |
|||
* @param id 生产订单部门ID |
|||
* @return |
|||
*/ |
|||
int cancelSysMakeorderDeptById(Long id); |
|||
|
|||
/** |
|||
* 恢复生产订单部门 |
|||
* @param id 生产订单部门ID |
|||
* @return |
|||
*/ |
|||
int restoreSysMakeorderDeptById(Long id); |
|||
} |
@ -0,0 +1,126 @@ |
|||
package com.ruoyi.system.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.system.mapper.SysMakeorderDeptMapper; |
|||
import com.ruoyi.system.domain.SysMakeorderDept; |
|||
import com.ruoyi.system.service.ISysMakeorderDeptService; |
|||
import com.ruoyi.common.core.text.Convert; |
|||
|
|||
/** |
|||
* 生产订单部门Service业务层处理 |
|||
* |
|||
* @author ruoyi |
|||
* @date 2024-04-01 |
|||
*/ |
|||
@Service |
|||
public class SysMakeorderDeptServiceImpl implements ISysMakeorderDeptService |
|||
{ |
|||
@Autowired |
|||
private SysMakeorderDeptMapper sysMakeorderDeptMapper; |
|||
|
|||
/** |
|||
* 查询生产订单部门 |
|||
* |
|||
* @param id 生产订单部门ID |
|||
* @return 生产订单部门 |
|||
*/ |
|||
@Override |
|||
public SysMakeorderDept selectSysMakeorderDeptById(Long id) |
|||
{ |
|||
return sysMakeorderDeptMapper.selectSysMakeorderDeptById(id); |
|||
} |
|||
|
|||
/** |
|||
* 查询生产订单部门列表 |
|||
* |
|||
* @param sysMakeorderDept 生产订单部门 |
|||
* @return 生产订单部门 |
|||
*/ |
|||
@Override |
|||
public List<SysMakeorderDept> selectSysMakeorderDeptList(SysMakeorderDept sysMakeorderDept) |
|||
{ |
|||
return sysMakeorderDeptMapper.selectSysMakeorderDeptList(sysMakeorderDept); |
|||
} |
|||
|
|||
/** |
|||
* 新增生产订单部门 |
|||
* |
|||
* @param sysMakeorderDept 生产订单部门 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertSysMakeorderDept(SysMakeorderDept sysMakeorderDept) |
|||
{ |
|||
String loginName = ShiroUtils.getLoginName(); |
|||
sysMakeorderDept.setCreateBy(loginName); |
|||
sysMakeorderDept.setCreateTime(DateUtils.getNowDate()); |
|||
return sysMakeorderDeptMapper.insertSysMakeorderDept(sysMakeorderDept); |
|||
} |
|||
|
|||
/** |
|||
* 修改生产订单部门 |
|||
* |
|||
* @param sysMakeorderDept 生产订单部门 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateSysMakeorderDept(SysMakeorderDept sysMakeorderDept) |
|||
{ |
|||
String loginName = ShiroUtils.getLoginName(); |
|||
sysMakeorderDept.setUpdateBy(loginName); |
|||
sysMakeorderDept.setUpdateTime(DateUtils.getNowDate()); |
|||
return sysMakeorderDeptMapper.updateSysMakeorderDept(sysMakeorderDept); |
|||
} |
|||
|
|||
/** |
|||
* 删除生产订单部门对象 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteSysMakeorderDeptByIds(String ids) |
|||
{ |
|||
return sysMakeorderDeptMapper.deleteSysMakeorderDeptByIds(Convert.toStrArray(ids)); |
|||
} |
|||
|
|||
/** |
|||
* 删除生产订单部门信息 |
|||
* |
|||
* @param id 生产订单部门ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteSysMakeorderDeptById(Long id) |
|||
{ |
|||
return sysMakeorderDeptMapper.deleteSysMakeorderDeptById(id); |
|||
} |
|||
|
|||
/** |
|||
* 作废生产订单部门 |
|||
* |
|||
* @param id 生产订单部门ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int cancelSysMakeorderDeptById(Long id) |
|||
{ |
|||
return sysMakeorderDeptMapper.cancelSysMakeorderDeptById(id); |
|||
} |
|||
|
|||
/** |
|||
* 恢复生产订单部门信息 |
|||
* |
|||
* @param id 生产订单部门ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int restoreSysMakeorderDeptById(Long id) |
|||
{ |
|||
return sysMakeorderDeptMapper.restoreSysMakeorderDeptById(id); |
|||
} |
|||
} |
@ -0,0 +1,134 @@ |
|||
<?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.system.mapper.SysMakeorderDeptMapper"> |
|||
|
|||
<resultMap type="SysMakeorderDept" id="SysMakeorderDeptResult"> |
|||
<result property="id" column="id" /> |
|||
<result property="delFlag" column="del_flag" /> |
|||
<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="makeNo" column="makeNo" /> |
|||
<result property="materialNo" column="material_no" /> |
|||
<result property="deptId" column="dept_id" /> |
|||
<result property="deptName" column="dept_name" /> |
|||
<result property="planFinishStartDate" column="plan_finish_start_date" /> |
|||
<result property="planFinishEndDate" column="plan_finish_end_date" /> |
|||
<result property="planFinishDays" column="plan_finish_days" /> |
|||
<result property="deptLeaderConfirmStatus" column="dept_leader_confirm_status" /> |
|||
<result property="actualFinishStartTime" column="actual_finish_start_time" /> |
|||
<result property="actualFinishEndTime" column="actual_finish_end_time" /> |
|||
</resultMap> |
|||
|
|||
<sql id="selectSysMakeorderDeptVo"> |
|||
select id, del_flag, create_by, create_time, update_by, update_time, remark, makeNo, material_no, dept_id, dept_name, plan_finish_start_date, plan_finish_end_date, plan_finish_days, dept_leader_confirm_status, actual_finish_start_time, actual_finish_end_time from sys_makeorder_dept |
|||
</sql> |
|||
|
|||
<select id="selectSysMakeorderDeptList" parameterType="SysMakeorderDept" resultMap="SysMakeorderDeptResult"> |
|||
<include refid="selectSysMakeorderDeptVo"/> |
|||
<where> |
|||
<if test="makeNo != null and makeNo != ''"> and makeNo = #{makeNo}</if> |
|||
<if test="materialNo != null and materialNo != ''"> and material_no = #{materialNo}</if> |
|||
<if test="deptId != null "> and dept_id = #{deptId}</if> |
|||
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if> |
|||
<if test="planFinishStartDate != null "> and plan_finish_start_date = #{planFinishStartDate}</if> |
|||
<if test="planFinishEndDate != null "> and plan_finish_end_date = #{planFinishEndDate}</if> |
|||
<if test="planFinishDays != null "> and plan_finish_days = #{planFinishDays}</if> |
|||
<if test="deptLeaderConfirmStatus != null and deptLeaderConfirmStatus != ''"> and dept_leader_confirm_status = #{deptLeaderConfirmStatus}</if> |
|||
<if test="actualFinishStartTime != null "> and actual_finish_start_time = #{actualFinishStartTime}</if> |
|||
<if test="actualFinishEndTime != null "> and actual_finish_end_time = #{actualFinishEndTime}</if> |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectSysMakeorderDeptById" parameterType="Long" resultMap="SysMakeorderDeptResult"> |
|||
<include refid="selectSysMakeorderDeptVo"/> |
|||
where id = #{id} |
|||
</select> |
|||
|
|||
<insert id="insertSysMakeorderDept" parameterType="SysMakeorderDept" useGeneratedKeys="true" keyProperty="id"> |
|||
insert into sys_makeorder_dept |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="delFlag != null">del_flag,</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="makeNo != null">makeNo,</if> |
|||
<if test="materialNo != null">material_no,</if> |
|||
<if test="deptId != null">dept_id,</if> |
|||
<if test="deptName != null">dept_name,</if> |
|||
<if test="planFinishStartDate != null">plan_finish_start_date,</if> |
|||
<if test="planFinishEndDate != null">plan_finish_end_date,</if> |
|||
<if test="planFinishDays != null">plan_finish_days,</if> |
|||
<if test="deptLeaderConfirmStatus != null">dept_leader_confirm_status,</if> |
|||
<if test="actualFinishStartTime != null">actual_finish_start_time,</if> |
|||
<if test="actualFinishEndTime != null">actual_finish_end_time,</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="delFlag != null">#{delFlag},</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="makeNo != null">#{makeNo},</if> |
|||
<if test="materialNo != null">#{materialNo},</if> |
|||
<if test="deptId != null">#{deptId},</if> |
|||
<if test="deptName != null">#{deptName},</if> |
|||
<if test="planFinishStartDate != null">#{planFinishStartDate},</if> |
|||
<if test="planFinishEndDate != null">#{planFinishEndDate},</if> |
|||
<if test="planFinishDays != null">#{planFinishDays},</if> |
|||
<if test="deptLeaderConfirmStatus != null">#{deptLeaderConfirmStatus},</if> |
|||
<if test="actualFinishStartTime != null">#{actualFinishStartTime},</if> |
|||
<if test="actualFinishEndTime != null">#{actualFinishEndTime},</if> |
|||
</trim> |
|||
</insert> |
|||
|
|||
<update id="updateSysMakeorderDept" parameterType="SysMakeorderDept"> |
|||
update sys_makeorder_dept |
|||
<trim prefix="SET" suffixOverrides=","> |
|||
<if test="delFlag != null">del_flag = #{delFlag},</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="makeNo != null">makeNo = #{makeNo},</if> |
|||
<if test="materialNo != null">material_no = #{materialNo},</if> |
|||
<if test="deptId != null">dept_id = #{deptId},</if> |
|||
<if test="deptName != null">dept_name = #{deptName},</if> |
|||
<if test="planFinishStartDate != null">plan_finish_start_date = #{planFinishStartDate},</if> |
|||
<if test="planFinishEndDate != null">plan_finish_end_date = #{planFinishEndDate},</if> |
|||
<if test="planFinishDays != null">plan_finish_days = #{planFinishDays},</if> |
|||
<if test="deptLeaderConfirmStatus != null">dept_leader_confirm_status = #{deptLeaderConfirmStatus},</if> |
|||
<if test="actualFinishStartTime != null">actual_finish_start_time = #{actualFinishStartTime},</if> |
|||
<if test="actualFinishEndTime != null">actual_finish_end_time = #{actualFinishEndTime},</if> |
|||
</trim> |
|||
where id = #{id} |
|||
</update> |
|||
|
|||
<delete id="deleteSysMakeorderDeptById" parameterType="Long"> |
|||
delete from sys_makeorder_dept where id = #{id} |
|||
</delete> |
|||
|
|||
<delete id="deleteSysMakeorderDeptByIds" parameterType="String"> |
|||
delete from sys_makeorder_dept where id in |
|||
<foreach item="id" collection="array" open="(" separator="," close=")"> |
|||
#{id} |
|||
</foreach> |
|||
</delete> |
|||
|
|||
<update id="cancelSysMakeorderDeptById" parameterType="Long"> |
|||
update sys_makeorder_dept set del_flag = '1' where id = #{id} |
|||
</update> |
|||
|
|||
<update id="restoreSysMakeorderDeptById" parameterType="Long"> |
|||
update sys_makeorder_dept set del_flag = '0' where id = #{id} |
|||
</update> |
|||
|
|||
</mapper> |
Loading…
Reference in new issue