|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.hnac.hzinfo.inspect.task.service.impl; |
|
|
|
package com.hnac.hzinfo.inspect.task.service.impl; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.google.common.collect.Lists; |
|
|
|
import com.google.common.collect.Lists; |
|
|
|
import com.hnac.hzims.operational.defect.constants.DefectConstant; |
|
|
|
import com.hnac.hzims.operational.defect.constants.DefectConstant; |
|
|
@ -180,6 +181,7 @@ public class EventServiceImpl extends BaseServiceImpl<TaskEventMapper, EventEnti |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public boolean addTaskEventAuto(EventAddVO eventVO){ |
|
|
|
public boolean addTaskEventAuto(EventAddVO eventVO){ |
|
|
|
|
|
|
|
//logger.info("addTaskEventAuto:eventVO:"+eventVO.getProjectId(),"传参为:"+ JSON.toJSONString(eventVO));
|
|
|
|
BladeUser user = AuthUtil.getUser(); |
|
|
|
BladeUser user = AuthUtil.getUser(); |
|
|
|
|
|
|
|
|
|
|
|
//第一次登记时,需领用任务
|
|
|
|
//第一次登记时,需领用任务
|
|
|
@ -251,6 +253,7 @@ public class EventServiceImpl extends BaseServiceImpl<TaskEventMapper, EventEnti |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
if(success && list.size()>0){ |
|
|
|
if(success && list.size()>0){ |
|
|
|
|
|
|
|
//logger.info("addTaskEventAuto:EventRecordEntityList:list","传参为:"+ JSON.toJSONString(list));
|
|
|
|
success = eventRecordService.saveBatch(list); |
|
|
|
success = eventRecordService.saveBatch(list); |
|
|
|
} |
|
|
|
} |
|
|
|
if(success && taskObjectProjectContentEntityList.size()>0){ |
|
|
|
if(success && taskObjectProjectContentEntityList.size()>0){ |
|
|
|