新增成品检验报工

yun-zuoyi
钮海涛 4 years ago
parent 984f772788
commit 4590133c27

@ -7,6 +7,7 @@ import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
import cn.estsh.i3plus.pojo.aps.common.BeanRelation; import cn.estsh.i3plus.pojo.aps.common.BeanRelation;
import cn.estsh.i3plus.pojo.aps.holders.EBaseOrder; import cn.estsh.i3plus.pojo.aps.holders.EBaseOrder;
import cn.estsh.i3plus.pojo.aps.holders.EMaterial; import cn.estsh.i3plus.pojo.aps.holders.EMaterial;
import cn.estsh.i3plus.pojo.aps.holders.EResource;
import cn.estsh.i3plus.pojo.aps.validator.InsertGroup; import cn.estsh.i3plus.pojo.aps.validator.InsertGroup;
import cn.estsh.i3plus.pojo.aps.validator.UpdateGroup; import cn.estsh.i3plus.pojo.aps.validator.UpdateGroup;
import cn.estsh.i3plus.pojo.base.enumutil.ApsEnumUtil; import cn.estsh.i3plus.pojo.base.enumutil.ApsEnumUtil;
@ -157,6 +158,11 @@ public class Material extends BaseAPS {
@ApiParam(value ="标签颜色") @ApiParam(value ="标签颜色")
private String labelColor; private String labelColor;
@Column(name="WORK_SHOP_ID")
@ApiParam(value ="车间代码")
@FieldAnnotation(relation = "WorkShop")
private Long workShopId;
public Material getGroup() { public Material getGroup() {
return BeanRelation.get(this, EMaterial.Group); return BeanRelation.get(this, EMaterial.Group);
} }
@ -223,4 +229,11 @@ public class Material extends BaseAPS {
public List<ProductOrder> getProductOrders() { public List<ProductOrder> getProductOrders() {
return BeanRelation.listByClass(this, ProductOrder.class, EMaterial.Orders); return BeanRelation.listByClass(this, ProductOrder.class, EMaterial.Orders);
} }
public WorkShop getWorkShop() { return BeanRelation.get(this, EMaterial.WorkShop); }
public void setWorkShop(WorkShop workShop) {
this.workShopId = workShop != null ? workShop.getId() : 0l;
BeanRelation.set(this, EMaterial.WorkShop, workShop);
}
} }

@ -30,13 +30,13 @@ public class OrderFeedback extends BaseAPS {
private static final long serialVersionUID = 7822380202121225936L; private static final long serialVersionUID = 7822380202121225936L;
@Column(name="ORDER_ID") @Column(name="ORDER_ID")
@ApiParam(value ="订单") @ApiParam(value ="顶层订单")
@FieldAnnotation(property = false) @FieldAnnotation(relation = "Order", modify = false)
private Long orderId; private Long orderId;
@Column(name="DELIVER_RATE") @Column(name="DELIVER_RATE")
@ApiParam(value ="发货百分比") @ApiParam(value ="发货百分比")
private transient Double deliverRate; private Double deliverRate;
@Column(name="QUALIFIED_RATE") @Column(name="QUALIFIED_RATE")
@ApiParam(value ="成品合格百分比") @ApiParam(value ="成品合格百分比")
@ -46,14 +46,28 @@ public class OrderFeedback extends BaseAPS {
@ApiParam(value ="库存扣减数量") @ApiParam(value ="库存扣减数量")
private Double inventoryCount; private Double inventoryCount;
@Column(name="LAST_OPERATION_COUNT")
@ApiParam(value ="硫化报工数量")
private Double lastOperationCount;
@Column(name="UNQUALIFIED_COUNT") @Column(name="UNQUALIFIED_COUNT")
@ApiParam(value ="不良数量") @ApiParam(value ="不良数量")
private Double unqualifiedCount; private Double unqualifiedCount;
@Column(name="QUALIFIED_COUNT") @Column(name="QUALIFIED_COUNT")
@ApiParam(value ="合格数量") @ApiParam(value ="成品合格数量")
private Double qualifiedCount; private Double qualifiedCount;
@Column(name="ADD_UNQUALIFIED_COUNT")
@ApiParam(value ="累加不良数量")
@FieldAnnotation(display = false)
private Double addUnqualifiedCount;
@Column(name="ADD_QUALIFIED_COUNT")
@ApiParam(value ="累加合格数量")
@FieldAnnotation(display = false)
private Double addQualifiedCount;
public BaseOrder getOrder() { public BaseOrder getOrder() {
return BeanRelation.get(this, EOrderFeedback.Order); return BeanRelation.get(this, EOrderFeedback.Order);
} }

@ -9,5 +9,6 @@ public enum EMaterial {
WorkInputs, WorkInputs,
WorkOutputs, WorkOutputs,
WorkRelations, WorkRelations,
Orders Orders,
WorkShop
} }

@ -1,7 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<Class name="Material"> <Class name="Material">
<Relation field="ProductRoutings" name="ProductRouting" reverse="Material" type="ONE_TO_MULTI" owner="true"> <Relation field="ProductRoutings" name="ProductRouting" reverse="Material" type="ONE_TO_MULTI" owner="true">
</Relation> </Relation>
<Relation field="Childs" name="Material" reverse="Group" type="ONE_TO_MULTI" owner="false"> <Relation field="Childs" name="Material" reverse="Group" type="ONE_TO_MULTI" owner="false">
</Relation> </Relation>
<Relation field="WorkShop" name="WorkShop" type="MULTI_TO_ONE" owner="false">
</Relation>
</Class> </Class>
Loading…
Cancel
Save