|
@@ -3113,7 +3113,7 @@ public class ApsProcessOperationProcessEquServiceImpl extends ServiceImpl<ApsPro
|
|
|
* 料卷交货期偏差=该料卷准备开工和正在加工的作业计划完工时间与原计划(预排程计划)完工时间偏差的最大偏差(大于零表示延期,小于零表示提前,零表示没有偏差)
|
|
|
* 如果卡片的生产状态=全部取消或部分取消或已完工,则=空(表示不需要显示)
|
|
|
*/
|
|
|
- if (Arrays.asList("待开工", "加工中").contains(productCardVo.getStatus())) {
|
|
|
+ if (Arrays.asList("未完工").contains(productCardVo.getStatus())) {
|
|
|
ProductCardAndLatestScheduleEndDateVo latestScheduleEndDateVo = cardIdAndScheduleEndDateList2.stream().filter(item -> item.getCardId().equals(productCardVo.getId())).findFirst().orElse(null);
|
|
|
if (latestScheduleEndDateVo != null) {
|
|
|
Date latestScheduleEndDate = latestScheduleEndDateVo.getLatestScheduleEndDate();
|
|
@@ -3156,9 +3156,9 @@ public class ApsProcessOperationProcessEquServiceImpl extends ServiceImpl<ApsPro
|
|
|
String[] split = productCardVo.getPromiseDate().split("~");
|
|
|
DateTime promiseStartDate = DateUtil.parse(split[0] + " 00:00:00");
|
|
|
DateTime promiseEndDate = DateUtil.parse(split[1] + " 23:59:59");
|
|
|
- if (Arrays.asList("待开工", "加工中", "部分取消", "已完工").contains(productCardVo.getStatus())) {
|
|
|
+ if (Arrays.asList("未完工", "部分取消", "已完工").contains(productCardVo.getStatus())) {
|
|
|
DateTime endDate = null;
|
|
|
- if (Arrays.asList("待开工", "加工中").contains(productCardVo.getStatus())) {
|
|
|
+ if (Arrays.asList("未完工").contains(productCardVo.getStatus())) {
|
|
|
endDate = DateTime.of(apsDeliveryOffsetDo.getGuessenddate());
|
|
|
} else {
|
|
|
endDate = DateTime.of(apsDeliveryOffsetDo.getActualenddate());
|
|
@@ -3216,7 +3216,7 @@ public class ApsProcessOperationProcessEquServiceImpl extends ServiceImpl<ApsPro
|
|
|
private void sendMessageAndEmail(List<ApsDeliveryOffsetDo> needUpdateOrInsertList, List<ProductCardVo> list) {
|
|
|
//过滤需要发送消息的数据
|
|
|
List<ApsDeliveryOffsetDo> needSendMessageList = needUpdateOrInsertList.stream().filter(item ->
|
|
|
- Arrays.asList("待开工", "加工中").contains(item.getStatus())
|
|
|
+ Arrays.asList("未完工").contains(item.getStatus())
|
|
|
&& item.getDeliveryoffset() != null
|
|
|
&& item.getDeliveryoffset() > 0).collect(Collectors.toList());
|
|
|
if (!needSendMessageList.isEmpty()) {
|