1.提高设备产能

2.优化排产算法结果记录逻辑及日志输入出
3.增加自由边处理工序及设备定义
4.修复3垮平铁排产漏洞
master
董哲奇 2 years ago
parent b3047daef2
commit 9bb2ae7c76

@ -51,6 +51,7 @@ public interface Constant {
打磨01(工序.打磨, "打磨01", "", 2.0, 3.0, 100.0, 13.0, 13.0), 打磨01(工序.打磨, "打磨01", "", 2.0, 3.0, 100.0, 13.0, 13.0),
自由边处理01(工序.自由边处理, "自由边处理01", "", 2.0, 3.0, 100.0, 13.0, 13.0), 自由边处理01(工序.自由边处理, "自由边处理01", "", 2.0, 3.0, 100.0, 13.0, 13.0),
光电01(工序.光电结束, "光电01", "", 2.0, 3.0, 100.0, 13.0, 13.0),
未知01(工序.NULL, "未知01", "", 2.0, 3.0, 100.0, 13.0, 13.0), 未知01(工序.NULL, "未知01", "", 2.0, 3.0, 100.0, 13.0, 13.0),
; ;
public 工序 _工序; public 工序 _工序;
@ -82,7 +83,7 @@ public interface Constant {
倒棱("09"), 倒棱("09"),
切端头("11"), 切端头("11"),
预配盘(""), 预配盘(""),
光电结束(""), 光电结束("66"),
配送(""), 配送(""),
; ;

@ -290,7 +290,7 @@ public class DataFactory {
return new 七跨型板().小组(bom); return new 七跨型板().小组(bom);
case "161110": case "161110":
return new 七跨型板().大组(bom); return new 七跨型板().大组(bom);
case "171010": case "171120":
return new 光电().小组(bom); return new 光电().小组(bom);
default: default:
return null; return null;
@ -358,10 +358,13 @@ public class DataFactory {
.put(Constant.设备产能.自由边处理01.设备编号, new 设备21自由边处理(Constant.设备产能.自由边处理01)) .put(Constant.设备产能.自由边处理01.设备编号, new 设备21自由边处理(Constant.设备产能.自由边处理01))
.build(); .build();
return new 工序21自由边处理(_设备); return new 工序21自由边处理(_设备);
case 光电结束:
_设备=ImmutableMap.<String, 设备>builder()
.put(Constant.设备产能.光电01.设备编号, new 设备31光电(Constant.设备产能.光电01))
.build();
return new 工序31光电(_设备);
// case 预配盘: // case 预配盘:
// return new 工序01上料(_工序,_设备); // return new 工序01上料(_工序,_设备);
// case 光电结束:
// return new 工序01上料(_工序,_设备);
// case 配送: // case 配送:
// return new 工序01上料(_工序,_设备); // return new 工序01上料(_工序,_设备);
default: default:

@ -0,0 +1,33 @@
package com.dsic.gj_erp.pc.dto.gx;
import com.dsic.gj_erp.pc.Constant;
import com.dsic.gj_erp.pc.dto.工序产能;
import com.dsic.gj_erp.pc.dto.设备;
import lombok.Getter;
import lombok.Setter;
import java.util.Map;
@Getter
@Setter
public class 工序31光电 extends 工序产能 {
public 工序31光电(Map<String, 设备> _设备) {
super(Constant.工序.光电结束,_设备);
}
@Override
public void 计算工作量() {
this.产能=0;
if (this.白班时长>0){
this.产能+=this.白班时长*Constant.设备产能.型材01.get白班设备产能()/7.0;
}
if (this.二班时长>0){
this.产能+=this.二班时长*Constant.设备产能.型材01.get二班设备产能()/7.0;
}
}
@Override
public void 占用资源(double 所需产能) {
super.占用资源(所需产能);
}
}

@ -0,0 +1,11 @@
package com.dsic.gj_erp.pc.dto.sb;
import com.dsic.gj_erp.pc.Constant;
import com.dsic.gj_erp.pc.dto.设备;
public class 设备31光电 extends 设备 {
public 设备31光电(Constant.设备产能 _设备产能) {
super(_设备产能);
}
}

@ -44,6 +44,7 @@ public class 三跨平铁 extends 套料图工序 {
public 三跨平铁 焊接机器人肘板(Bom bom) { public 三跨平铁 焊接机器人肘板(Bom bom) {
this.kw = "6"; this.kw = "6";
this.zl = "4230"; this.zl = "4230";
this.bom = bom;
this.工序 = ImmutableList.<Constant.工序>builder() this.工序 = ImmutableList.<Constant.工序>builder()
.add(Constant.工序.上料) .add(Constant.工序.上料)
.add(Constant.工序.抛丸) .add(Constant.工序.抛丸)

Loading…
Cancel
Save