|
|
|
@ -19,6 +19,8 @@ import org.springblade.desk.basic.config.RoleConfig; |
|
|
|
import org.springblade.desk.basic.constant.BaseCol; |
|
|
|
import org.springblade.desk.basic.constant.BaseCol; |
|
|
|
import org.springblade.desk.basic.constant.BaseValue; |
|
|
|
import org.springblade.desk.basic.constant.BaseValue; |
|
|
|
import org.springblade.desk.basic.util.RoleUtil; |
|
|
|
import org.springblade.desk.basic.util.RoleUtil; |
|
|
|
|
|
|
|
import org.springblade.desk.common.feign.IMesNotifyMessageClient; |
|
|
|
|
|
|
|
import org.springblade.desk.common.pojo.entity.MesNotifyMessageEntity; |
|
|
|
import org.springblade.desk.quality.constant.CycleTestConst; |
|
|
|
import org.springblade.desk.quality.constant.CycleTestConst; |
|
|
|
import org.springblade.desk.quality.constant.CycleTestTaskConst; |
|
|
|
import org.springblade.desk.quality.constant.CycleTestTaskConst; |
|
|
|
import org.springblade.desk.quality.constant.InspectionTaskConst; |
|
|
|
import org.springblade.desk.quality.constant.InspectionTaskConst; |
|
|
|
@ -93,6 +95,8 @@ public class CycleTestTaskService2 { |
|
|
|
private IAttachClient attachClient; |
|
|
|
private IAttachClient attachClient; |
|
|
|
@Resource |
|
|
|
@Resource |
|
|
|
private RoleConfig roleConfig; |
|
|
|
private RoleConfig roleConfig; |
|
|
|
|
|
|
|
@Resource |
|
|
|
|
|
|
|
private IMesNotifyMessageClient mesNotifyMessageClient; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* list |
|
|
|
* list |
|
|
|
@ -211,6 +215,11 @@ public class CycleTestTaskService2 { |
|
|
|
// 判断结果对象
|
|
|
|
// 判断结果对象
|
|
|
|
Object objAdvance = JobExtUtil.isAdvanceTargetDay(je, ct.getGenBefore()); |
|
|
|
Object objAdvance = JobExtUtil.isAdvanceTargetDay(je, ct.getGenBefore()); |
|
|
|
if (objAdvance != null) { |
|
|
|
if (objAdvance != null) { |
|
|
|
|
|
|
|
MesNotifyMessageEntity mesNotifyMessageEntity = new MesNotifyMessageEntity(); |
|
|
|
|
|
|
|
mesNotifyMessageEntity.setContent("您有实验任务"); |
|
|
|
|
|
|
|
mesNotifyMessageEntity.setReceiveUserId(ct.getProcessUserId()); |
|
|
|
|
|
|
|
mesNotifyMessageClient.save(mesNotifyMessageEntity); |
|
|
|
|
|
|
|
|
|
|
|
log.info("match je config = {}", objAdvance); |
|
|
|
log.info("match je config = {}", objAdvance); |
|
|
|
// 试验时间
|
|
|
|
// 试验时间
|
|
|
|
LocalDate testDate = LocalDate.now().plusDays(ct.getGenBefore()); |
|
|
|
LocalDate testDate = LocalDate.now().plusDays(ct.getGenBefore()); |
|
|
|
|