feat():产出完成更新计划状态和产出实绩到数据库
This commit is contained in:
@@ -22,7 +22,7 @@ import java.io.Serializable;
|
||||
public class WebOperateMatForm implements Serializable {
|
||||
|
||||
@NotNull(message = "操作不存在")
|
||||
@ApiModelProperty("ONLINE-钢卷上线,READY-回退,PRODUCT-生成完成")
|
||||
@ApiModelProperty("ONLINE-钢卷上线,NEW-回退,PRODUCT-生成完成")
|
||||
private WebMatOperateEnum operation;
|
||||
|
||||
@NotNull(message = "主键id不能为空")
|
||||
|
||||
@@ -7,7 +7,7 @@ import org.springframework.amqp.rabbit.annotation.RabbitListener;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Log4j2
|
||||
@Component
|
||||
//@Component
|
||||
public class RabbitQueueListener {
|
||||
@RabbitListener(queues = "plateform.hmi.queue")
|
||||
@RabbitHandler
|
||||
|
||||
@@ -45,6 +45,7 @@ public class TrackServiceImpl implements TrackService {
|
||||
if (StringUtils.compare(form.getOperation().getValue(),"PRODUCT") != 0) {
|
||||
return;
|
||||
}
|
||||
this.operateMatWeb(form);
|
||||
|
||||
CrmPdiPlan pdiPlan = crmPdiPlanMapper.selectById(form.getId());
|
||||
Plan2PdoVO bean = BeanUtil.toBean(pdiPlan, Plan2PdoVO.class);
|
||||
@@ -52,6 +53,8 @@ public class TrackServiceImpl implements TrackService {
|
||||
CrmPdoExcoil excoil = BeanUtil.toBean(bean, CrmPdoExcoil.class);
|
||||
|
||||
double calcCoilWeight = CalcUtil.calcCoilWeight(excoil.getExitLength(), excoil.getEntryThick(), excoil.getEntryWidth());
|
||||
excoil.setEncoilid(bean.getCoilid());
|
||||
excoil.setExitCoilid(bean.getCoilid());
|
||||
excoil.setCalcExitWeight(calcCoilWeight);
|
||||
excoil.setMeasExitWeight(calcCoilWeight);
|
||||
excoil.setHeadpos(0d);
|
||||
|
||||
Reference in New Issue
Block a user