fix: PC维护重量

This commit is contained in:
2024-08-16 17:42:50 +08:00
parent f19fd77be6
commit 41d8512ec5
5 changed files with 130 additions and 148 deletions

View File

@@ -1,5 +1,7 @@
package org.nl.wms.pdm.service.dto;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
@@ -22,208 +24,150 @@ public class SlittingproductionplanDto implements Serializable {
@JsonSerialize(using = ToStringSerializer.class)
private Long workorder_id;
/**
* 分切订单类型
*/
/** 分切订单类型 */
private String order_type;
/**
* 子卷号
*/
/** 子卷号 */
private String container_name;
/**
* 产品编码
*/
/** 产品编码 */
private String product_name;
/**
* 产品描述
*/
/** 产品描述 */
private String description;
/**
* 来源母卷号
*/
/** 来源母卷号 */
private String parent_container_name;
/**
* 改制来源子卷号
*/
/** 改制来源子卷号 */
private String restruct_container_name;
/**
* 子卷立库木箱号
*/
/** 子卷立库木箱号 */
private String package_box_sn;
/**
* 来源卷位置
*/
/** 来源卷位置 */
private String ware_house;
/**
* 分切机台编码
*/
/** 分切机台编码 */
private String resource_name;
/**
* 分切组
*/
/** 分切组 */
private String split_group;
/**
* 生产顺序
*/
/** 生产顺序 */
private String manufacture_sort;
/**
* 生产订单
*/
/** 生产订单 */
private String mfg_order_name;
/**
* 生产日期
*/
/** 生产日期 */
private String manufacture_date;
/**
* 管件类型
*/
/** 管件类型 */
private String paper_tube_or_FRP;
/**
* 纸筒物料编码
*/
/** 纸筒物料编码 */
private String paper_tube_material;
/**
* 纸筒物料描述
*/
/** 纸筒物料描述 */
private String paper_tube_description;
/**
* 纸筒规格
*/
/** 纸筒规格 */
private String paper_tube_model;
/**
* FRP管物料编码
*/
/** FRP管物料编码 */
private String FRP_material;
/**
* FRP管物料描述
*/
/** FRP管物料描述 */
private String FRP_description;
/**
* FRP管规格
*/
/** FRP管规格 */
private String FRP_model;
/**
* 子卷幅宽
*/
/** 子卷幅宽 */
private BigDecimal split_breadth;
/**
* 子卷理论长度
*/
/** 子卷理论长度 */
private BigDecimal split_height;
/**
* 子卷理论重量
*/
/** 子卷理论重量 */
private BigDecimal split_weight;
/**
* 开始时间
*/
/** 开始时间 */
private String start_time;
/**
* 结束时间
*/
/** 结束时间 */
private String end_time;
/**
* 状态
*/
/** 状态 */
private String status;
/**
* 备注
*/
private String remark;
/**
* 创建人
*/
private String create_id;
/**
* 创建人姓名
*/
private String create_name;
/**
* 创建时间
*/
private String create_time;
/**
* 修改人
*/
/** 修改人 */
private String update_optid;
/**
* 修改人姓名
*/
/** 修改人姓名 */
private String update_optname;
/**
* 修改时间
*/
/** 修改时间 */
private String update_time;
/**
* 部门ID
*/
private Long sysdeptid;
/** 部门ID */
private String sysdeptid;
/**
* 公司ID
*/
private Long syscompanyid;
/** 公司ID */
private String syscompanyid;
/**
* 是否删除
*/
/** 是否删除 */
private String is_delete;
/**
* 上料完成
*/
/** 上料完成 */
private String is_parent_ok;
/**
* 子卷套轴完成
*/
/** 子卷套轴完成 */
private String is_child_tz_ok;
/**
* 子卷配送完成
*/
/** 子卷配送完成 */
private String is_child_ps_ok;
/**
* 气涨轴编码
*/
/** 气涨轴编码 */
private String qzzno;
/**
* 销售订单及行号
*/
/** 销售订单及行号 */
private String sale_order_name;
/** 是否呼叫 */
private String is_call;
/** 呼叫时间 */
private String call_time;
/** 是否呼叫纸管 */
private String is_paper_ok;
/** 上下轴12 */
private String up_or_down;
/** 左右12 */
private String left_or_right;
/** 气涨轴规格 */
private String qzz_size;
/** 气涨轴代数 */
private String qzz_generation;
/** 子卷等级*/
private String level;
/** 子卷重量 */
private String weight;
/** 接头数 */
private String joint_type;
/** 物料类型 */
private String material_type;
/** 分切重量 */
private String paper_weight;
}

View File

@@ -129,12 +129,9 @@ public class SlittingproductionplanServiceImpl implements Slittingproductionplan
String now = DateUtil.now();
dto.setWorkorder_id(IdUtil.getSnowflake(1, 1).nextId());
dto.setCreate_id(currentUserId);
dto.setCreate_name(nickName);
dto.setUpdate_optid(currentUserId);
dto.setUpdate_optname(nickName);
dto.setUpdate_time(now);
dto.setCreate_time(now);
JSONObject jo = (JSONObject) JSON.toJSON(dto);
jo.put("status", "01");

View File

@@ -57,7 +57,8 @@
SELECT
plan.*,
ivt.product_area,
ivt.point_code
ivt.point_code,
'0' as show_edit
FROM
PDM_BI_SlittingProductionPlan plan
LEFT JOIN ST_IVT_CutPointIvt ivt ON ivt.ext_code = plan.resource_name
@@ -119,4 +120,4 @@
ENDSELECT
ENDPAGEQUERY
ENDIF
ENDIF