|
@@ -108,6 +108,9 @@ import com.factory.web.service.pm.PlanBindService;
|
|
|
import com.factory.web.service.pm.PreventMistakeService;
|
|
|
import com.factory.wx.entity.req.SendMsgReq;
|
|
|
import com.factory.wx.service.WxService;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import cn.hutool.core.convert.Convert;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -173,7 +176,7 @@ public class FirstArticleServiceImpl extends ServiceImpl<FirstArticleMapper, Ben
|
|
|
|
|
|
@Autowired
|
|
|
private WxService wxService;
|
|
|
-
|
|
|
+
|
|
|
@Autowired
|
|
|
private ApprovalRuleMapper approvalRuleMapper;
|
|
|
|
|
@@ -598,7 +601,7 @@ public class FirstArticleServiceImpl extends ServiceImpl<FirstArticleMapper, Ben
|
|
|
SearchFaTaskInfoReq searchFaTaskInfoReq = new SearchFaTaskInfoReq();
|
|
|
searchFaTaskInfoReq.setBentelerPlanId(req.getBentelerPlanId());
|
|
|
searchFaTaskInfoReq.setTypeFlag(req.getTypeFlag());
|
|
|
-
|
|
|
+ //获取对应task信息
|
|
|
FirstArticleTask faTaskInfo = null;
|
|
|
if (req.getTypeFlag() == 0 || req.getTypeFlag() == 1) { // 0表示首件 1表示200件
|
|
|
searchFaTaskInfoReq.setUserId(req.getUserId());
|
|
@@ -612,7 +615,7 @@ public class FirstArticleServiceImpl extends ServiceImpl<FirstArticleMapper, Ben
|
|
|
if (faTaskInfo != null) {
|
|
|
firstArticleTaskId = faTaskInfo.getId();
|
|
|
}
|
|
|
-
|
|
|
+ //工作站列表(包含此类别检查 W前缀的 只有周一才查出来)
|
|
|
List<FirstArticleWorkshop> listRes = firstArticleMapper.getFaWorkshopListForPad(req);
|
|
|
|
|
|
SearchFaItemListForPadReq searchFaItemListReq = null;
|
|
@@ -890,9 +893,9 @@ public class FirstArticleServiceImpl extends ServiceImpl<FirstArticleMapper, Ben
|
|
|
firstArticleApprovalTaskService.remove(Wrappers.<FirstArticleApprovalTask>lambdaQuery()
|
|
|
.eq(FirstArticleApprovalTask::getFirstArticleTaskId, firstArticleTask.getId()));
|
|
|
this.setApproval(firstArticleTask.getId(),null);
|
|
|
-
|
|
|
+
|
|
|
ApprovalUserRes approvalUserRes = preventMistakeService.getApprovalUserInfo(1, 2);
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/* 更新中断的操作人 */
|