湿料计划管理(湿料计划新增init)
parent
84787548e4
commit
d6e17541a9
@ -0,0 +1,230 @@
|
||||
package com.op.mes.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.op.common.core.annotation.Excel;
|
||||
import com.op.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 配料计划明细对象 pro_wet_material_plan_detail
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-07-27
|
||||
*/
|
||||
public class ProWetMaterialPlanDetail extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
private String id;
|
||||
|
||||
/** 计划工厂编码 */
|
||||
@Excel(name = "计划工厂编码")
|
||||
private String factoryCode;
|
||||
|
||||
/** 配料计划id */
|
||||
@Excel(name = "配料计划id")
|
||||
private String wetMaterialPlanId;
|
||||
|
||||
/** 工单id */
|
||||
@Excel(name = "工单id")
|
||||
private String workorderId;
|
||||
|
||||
/** */
|
||||
@Excel(name = "")
|
||||
private String atrr1;
|
||||
|
||||
/** */
|
||||
@Excel(name = "")
|
||||
private String atrr2;
|
||||
|
||||
/** */
|
||||
@Excel(name = "")
|
||||
private String atrr3;
|
||||
|
||||
/** 1接料完成0未接料 */
|
||||
@Excel(name = "1接料完成0未接料")
|
||||
private String status;
|
||||
|
||||
/** 料罐id */
|
||||
@Excel(name = "料罐id")
|
||||
private String bucketId;
|
||||
|
||||
/** 料罐编码 */
|
||||
@Excel(name = "料罐编码")
|
||||
private String bucketCode;
|
||||
|
||||
/** 物料编码 */
|
||||
@Excel(name = "物料编码")
|
||||
private String materialCode;
|
||||
|
||||
/** 物料id */
|
||||
@Excel(name = "物料id")
|
||||
private String materialId;
|
||||
|
||||
/** 物料名称 */
|
||||
@Excel(name = "物料名称")
|
||||
private String materialName;
|
||||
|
||||
/** 产品名称 */
|
||||
@Excel(name = "产品名称")
|
||||
private String productName;
|
||||
|
||||
/** 班次id */
|
||||
@Excel(name = "班次id")
|
||||
private Long shiftId;
|
||||
|
||||
/** 班次编码 */
|
||||
@Excel(name = "班次编码")
|
||||
private String shiftCode;
|
||||
|
||||
/** 班次简称 */
|
||||
@Excel(name = "班次简称")
|
||||
private String shiftDesc;
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
public void setFactoryCode(String factoryCode) {
|
||||
this.factoryCode = factoryCode;
|
||||
}
|
||||
|
||||
public String getFactoryCode() {
|
||||
return factoryCode;
|
||||
}
|
||||
public void setWetMaterialPlanId(String wetMaterialPlanId) {
|
||||
this.wetMaterialPlanId = wetMaterialPlanId;
|
||||
}
|
||||
|
||||
public String getWetMaterialPlanId() {
|
||||
return wetMaterialPlanId;
|
||||
}
|
||||
public void setWorkorderId(String workorderId) {
|
||||
this.workorderId = workorderId;
|
||||
}
|
||||
|
||||
public String getWorkorderId() {
|
||||
return workorderId;
|
||||
}
|
||||
public void setAtrr1(String atrr1) {
|
||||
this.atrr1 = atrr1;
|
||||
}
|
||||
|
||||
public String getAtrr1() {
|
||||
return atrr1;
|
||||
}
|
||||
public void setAtrr2(String atrr2) {
|
||||
this.atrr2 = atrr2;
|
||||
}
|
||||
|
||||
public String getAtrr2() {
|
||||
return atrr2;
|
||||
}
|
||||
public void setAtrr3(String atrr3) {
|
||||
this.atrr3 = atrr3;
|
||||
}
|
||||
|
||||
public String getAtrr3() {
|
||||
return atrr3;
|
||||
}
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
public void setBucketId(String bucketId) {
|
||||
this.bucketId = bucketId;
|
||||
}
|
||||
|
||||
public String getBucketId() {
|
||||
return bucketId;
|
||||
}
|
||||
public void setBucketCode(String bucketCode) {
|
||||
this.bucketCode = bucketCode;
|
||||
}
|
||||
|
||||
public String getBucketCode() {
|
||||
return bucketCode;
|
||||
}
|
||||
public void setMaterialCode(String materialCode) {
|
||||
this.materialCode = materialCode;
|
||||
}
|
||||
|
||||
public String getMaterialCode() {
|
||||
return materialCode;
|
||||
}
|
||||
public void setMaterialId(String materialId) {
|
||||
this.materialId = materialId;
|
||||
}
|
||||
|
||||
public String getMaterialId() {
|
||||
return materialId;
|
||||
}
|
||||
public void setMaterialName(String materialName) {
|
||||
this.materialName = materialName;
|
||||
}
|
||||
|
||||
public String getMaterialName() {
|
||||
return materialName;
|
||||
}
|
||||
public void setProductName(String productName) {
|
||||
this.productName = productName;
|
||||
}
|
||||
|
||||
public String getProductName() {
|
||||
return productName;
|
||||
}
|
||||
public void setShiftId(Long shiftId) {
|
||||
this.shiftId = shiftId;
|
||||
}
|
||||
|
||||
public Long getShiftId() {
|
||||
return shiftId;
|
||||
}
|
||||
public void setShiftCode(String shiftCode) {
|
||||
this.shiftCode = shiftCode;
|
||||
}
|
||||
|
||||
public String getShiftCode() {
|
||||
return shiftCode;
|
||||
}
|
||||
public void setShiftDesc(String shiftDesc) {
|
||||
this.shiftDesc = shiftDesc;
|
||||
}
|
||||
|
||||
public String getShiftDesc() {
|
||||
return shiftDesc;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("factoryCode", getFactoryCode())
|
||||
.append("wetMaterialPlanId", getWetMaterialPlanId())
|
||||
.append("workorderId", getWorkorderId())
|
||||
.append("atrr1", getAtrr1())
|
||||
.append("atrr2", getAtrr2())
|
||||
.append("atrr3", getAtrr3())
|
||||
.append("status", getStatus())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("bucketId", getBucketId())
|
||||
.append("bucketCode", getBucketCode())
|
||||
.append("materialCode", getMaterialCode())
|
||||
.append("materialId", getMaterialId())
|
||||
.append("materialName", getMaterialName())
|
||||
.append("productName", getProductName())
|
||||
.append("shiftId", getShiftId())
|
||||
.append("shiftCode", getShiftCode())
|
||||
.append("shiftDesc", getShiftDesc())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
package com.op.mes.mapper;
|
||||
|
||||
|
||||
import com.op.mes.domain.ProWetMaterialPlanDetail;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 配料计划明细Mapper接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-07-27
|
||||
*/
|
||||
public interface ProWetMaterialPlanDetailMapper {
|
||||
/**
|
||||
* 查询配料计划明细
|
||||
*
|
||||
* @param id 配料计划明细主键
|
||||
* @return 配料计划明细
|
||||
*/
|
||||
public ProWetMaterialPlanDetail selectProWetMaterialPlanDetailById(String id);
|
||||
|
||||
/**
|
||||
* 查询配料计划明细列表
|
||||
*
|
||||
* @param proWetMaterialPlanDetail 配料计划明细
|
||||
* @return 配料计划明细集合
|
||||
*/
|
||||
public List<ProWetMaterialPlanDetail> selectProWetMaterialPlanDetailList(ProWetMaterialPlanDetail proWetMaterialPlanDetail);
|
||||
|
||||
/**
|
||||
* 新增配料计划明细
|
||||
*
|
||||
* @param proWetMaterialPlanDetail 配料计划明细
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertProWetMaterialPlanDetail(ProWetMaterialPlanDetail proWetMaterialPlanDetail);
|
||||
|
||||
/**
|
||||
* 修改配料计划明细
|
||||
*
|
||||
* @param proWetMaterialPlanDetail 配料计划明细
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateProWetMaterialPlanDetail(ProWetMaterialPlanDetail proWetMaterialPlanDetail);
|
||||
|
||||
/**
|
||||
* 删除配料计划明细
|
||||
*
|
||||
* @param id 配料计划明细主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProWetMaterialPlanDetailById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除配料计划明细
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProWetMaterialPlanDetailByIds(String[] ids);
|
||||
}
|
@ -0,0 +1,149 @@
|
||||
<?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.op.mes.mapper.ProWetMaterialPlanDetailMapper">
|
||||
|
||||
<resultMap type="ProWetMaterialPlanDetail" id="ProWetMaterialPlanDetailResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="factoryCode" column="factory_code" />
|
||||
<result property="wetMaterialPlanId" column="wet_material_plan_id" />
|
||||
<result property="workorderId" column="workorder_id" />
|
||||
<result property="atrr1" column="atrr1" />
|
||||
<result property="atrr2" column="atrr2" />
|
||||
<result property="atrr3" column="atrr3" />
|
||||
<result property="status" column="status" />
|
||||
<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="bucketId" column="bucket_id" />
|
||||
<result property="bucketCode" column="bucket_code" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialId" column="material_id" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="shiftId" column="shift_id" />
|
||||
<result property="shiftCode" column="shift_code" />
|
||||
<result property="shiftDesc" column="shift_desc" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectProWetMaterialPlanDetailVo">
|
||||
select id, factory_code, wet_material_plan_id, workorder_id, atrr1, atrr2, atrr3, status, create_by, create_time, update_by, update_time, bucket_id, bucket_code, material_code, material_id, material_name, product_name, shift_id, shift_code, shift_desc from pro_wet_material_plan_detail
|
||||
</sql>
|
||||
|
||||
<select id="selectProWetMaterialPlanDetailList" parameterType="ProWetMaterialPlanDetail" resultMap="ProWetMaterialPlanDetailResult">
|
||||
<include refid="selectProWetMaterialPlanDetailVo"/>
|
||||
<where>
|
||||
<if test="factoryCode != null and factoryCode != ''"> and factory_code = #{factoryCode}</if>
|
||||
<if test="wetMaterialPlanId != null and wetMaterialPlanId != ''"> and wet_material_plan_id = #{wetMaterialPlanId}</if>
|
||||
<if test="workorderId != null and workorderId != ''"> and workorder_id = #{workorderId}</if>
|
||||
<if test="atrr1 != null and atrr1 != ''"> and atrr1 = #{atrr1}</if>
|
||||
<if test="atrr2 != null and atrr2 != ''"> and atrr2 = #{atrr2}</if>
|
||||
<if test="atrr3 != null and atrr3 != ''"> and atrr3 = #{atrr3}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="bucketId != null and bucketId != ''"> and bucket_id = #{bucketId}</if>
|
||||
<if test="bucketCode != null and bucketCode != ''"> and bucket_code = #{bucketCode}</if>
|
||||
<if test="materialCode != null and materialCode != ''"> and material_code = #{materialCode}</if>
|
||||
<if test="materialId != null and materialId != ''"> and material_id = #{materialId}</if>
|
||||
<if test="materialName != null and materialName != ''"> and material_name like concat('%', #{materialName}, '%')</if>
|
||||
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
|
||||
<if test="shiftId != null "> and shift_id = #{shiftId}</if>
|
||||
<if test="shiftCode != null and shiftCode != ''"> and shift_code = #{shiftCode}</if>
|
||||
<if test="shiftDesc != null and shiftDesc != ''"> and shift_desc = #{shiftDesc}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectProWetMaterialPlanDetailById" parameterType="String" resultMap="ProWetMaterialPlanDetailResult">
|
||||
<include refid="selectProWetMaterialPlanDetailVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertProWetMaterialPlanDetail" parameterType="ProWetMaterialPlanDetail">
|
||||
insert into pro_wet_material_plan_detail
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="factoryCode != null">factory_code,</if>
|
||||
<if test="wetMaterialPlanId != null">wet_material_plan_id,</if>
|
||||
<if test="workorderId != null">workorder_id,</if>
|
||||
<if test="atrr1 != null">atrr1,</if>
|
||||
<if test="atrr2 != null">atrr2,</if>
|
||||
<if test="atrr3 != null">atrr3,</if>
|
||||
<if test="status != null">status,</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="bucketId != null">bucket_id,</if>
|
||||
<if test="bucketCode != null">bucket_code,</if>
|
||||
<if test="materialCode != null">material_code,</if>
|
||||
<if test="materialId != null">material_id,</if>
|
||||
<if test="materialName != null">material_name,</if>
|
||||
<if test="productName != null">product_name,</if>
|
||||
<if test="shiftId != null">shift_id,</if>
|
||||
<if test="shiftCode != null">shift_code,</if>
|
||||
<if test="shiftDesc != null">shift_desc,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="factoryCode != null">#{factoryCode},</if>
|
||||
<if test="wetMaterialPlanId != null">#{wetMaterialPlanId},</if>
|
||||
<if test="workorderId != null">#{workorderId},</if>
|
||||
<if test="atrr1 != null">#{atrr1},</if>
|
||||
<if test="atrr2 != null">#{atrr2},</if>
|
||||
<if test="atrr3 != null">#{atrr3},</if>
|
||||
<if test="status != null">#{status},</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="bucketId != null">#{bucketId},</if>
|
||||
<if test="bucketCode != null">#{bucketCode},</if>
|
||||
<if test="materialCode != null">#{materialCode},</if>
|
||||
<if test="materialId != null">#{materialId},</if>
|
||||
<if test="materialName != null">#{materialName},</if>
|
||||
<if test="productName != null">#{productName},</if>
|
||||
<if test="shiftId != null">#{shiftId},</if>
|
||||
<if test="shiftCode != null">#{shiftCode},</if>
|
||||
<if test="shiftDesc != null">#{shiftDesc},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateProWetMaterialPlanDetail" parameterType="ProWetMaterialPlanDetail">
|
||||
update pro_wet_material_plan_detail
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="factoryCode != null">factory_code = #{factoryCode},</if>
|
||||
<if test="wetMaterialPlanId != null">wet_material_plan_id = #{wetMaterialPlanId},</if>
|
||||
<if test="workorderId != null">workorder_id = #{workorderId},</if>
|
||||
<if test="atrr1 != null">atrr1 = #{atrr1},</if>
|
||||
<if test="atrr2 != null">atrr2 = #{atrr2},</if>
|
||||
<if test="atrr3 != null">atrr3 = #{atrr3},</if>
|
||||
<if test="status != null">status = #{status},</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="bucketId != null">bucket_id = #{bucketId},</if>
|
||||
<if test="bucketCode != null">bucket_code = #{bucketCode},</if>
|
||||
<if test="materialCode != null">material_code = #{materialCode},</if>
|
||||
<if test="materialId != null">material_id = #{materialId},</if>
|
||||
<if test="materialName != null">material_name = #{materialName},</if>
|
||||
<if test="productName != null">product_name = #{productName},</if>
|
||||
<if test="shiftId != null">shift_id = #{shiftId},</if>
|
||||
<if test="shiftCode != null">shift_code = #{shiftCode},</if>
|
||||
<if test="shiftDesc != null">shift_desc = #{shiftDesc},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteProWetMaterialPlanDetailById" parameterType="String">
|
||||
delete from pro_wet_material_plan_detail where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteProWetMaterialPlanDetailByIds" parameterType="String">
|
||||
delete from pro_wet_material_plan_detail where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
Loading…
Reference in New Issue