|
|
|
|
@ -25,6 +25,9 @@ import org.springblade.desk.basic.pojo.entity.WorkCenter; |
|
|
|
|
import org.springblade.desk.basic.service.ILocallyPlatedPartService; |
|
|
|
|
import org.springblade.desk.basic.service.IQualityGradeService; |
|
|
|
|
import org.springblade.desk.basic.service.IWorkCenterService; |
|
|
|
|
import org.springblade.desk.common.constant.BizTypeConstant; |
|
|
|
|
import org.springblade.desk.common.feign.IMesNotifyMessageClient; |
|
|
|
|
import org.springblade.desk.common.pojo.entity.MesNotifyMessageEntity; |
|
|
|
|
import org.springblade.desk.dashboard.constant.DsCraftConstant; |
|
|
|
|
import org.springblade.desk.dashboard.constant.DsPartConstant; |
|
|
|
|
import org.springblade.desk.dashboard.pojo.entity.*; |
|
|
|
|
@ -130,6 +133,10 @@ public class YieldOrderServiceImpl extends BaseServiceImpl<YieldOrderMapper, Yie |
|
|
|
|
@Autowired |
|
|
|
|
private ILocallyPlatedPartService locallyPlatedPartService; |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private IMesNotifyMessageClient mesNotifyMessageClient; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Value("${business.oldMes.url}") |
|
|
|
|
private String oldMesUrl; |
|
|
|
|
@Value("${business.oldMes.syncOrderList}") |
|
|
|
|
@ -1086,6 +1093,19 @@ public class YieldOrderServiceImpl extends BaseServiceImpl<YieldOrderMapper, Yie |
|
|
|
|
// 订单接收
|
|
|
|
|
this.confirm(yieldOrder.getCardNo(), "0"); |
|
|
|
|
} |
|
|
|
|
try { |
|
|
|
|
// 给烧结工艺员发消息提醒
|
|
|
|
|
if ("21E6-575-10418_001-B1".equals(yieldOrder.getPartCode()) || "21E6-575-10116_001-E30-N".equals(yieldOrder.getPartCode())) { |
|
|
|
|
MesNotifyMessageEntity mesNotifyMessageEntity = new MesNotifyMessageEntity(); |
|
|
|
|
mesNotifyMessageEntity.setBizType(BizTypeConstant.SET_SUITE_FLOW); |
|
|
|
|
mesNotifyMessageEntity.setTitle("烧结齐套流转通知"); |
|
|
|
|
mesNotifyMessageEntity.setContent("零件【" + yieldOrder.getPartCode() + "】已齐套流转,请及时处理"); |
|
|
|
|
mesNotifyMessageEntity.setReceiveRoleName("烧结-工艺员"); |
|
|
|
|
mesNotifyMessageClient.save(mesNotifyMessageEntity); |
|
|
|
|
} |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error("齐套流转消息发送失败:{}" + e.getMessage()); |
|
|
|
|
} |
|
|
|
|
return b; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|