|
|
|
|
@ -17,10 +17,7 @@ import org.springblade.core.secure.utils.AuthUtil; |
|
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
|
import org.springblade.core.tool.utils.StringUtil; |
|
|
|
|
import org.springblade.lims.entry.MaintainProject; |
|
|
|
|
import org.springblade.lims.entry.MaintainRecord; |
|
|
|
|
import org.springblade.lims.entry.MaintainTask; |
|
|
|
|
import org.springblade.lims.entry.MaintainTaskProject; |
|
|
|
|
import org.springblade.lims.entry.*; |
|
|
|
|
import org.springblade.lims.mapper.MaintainTaskMapper; |
|
|
|
|
import org.springblade.lims.service.IMaintainProjectService; |
|
|
|
|
import org.springblade.lims.service.IMaintainRecordService; |
|
|
|
|
@ -92,6 +89,9 @@ public class MaintainTaskServiceImpl extends BaseServiceImpl<MaintainTaskMapper, |
|
|
|
|
if(CollectionUtils.isNotEmpty(entry.getGroupIdList())){ |
|
|
|
|
wrapper.in(MaintainTask::getGroupId,entry.getGroupIdList()); |
|
|
|
|
} |
|
|
|
|
if(entry.getCreateDept() != null){ |
|
|
|
|
wrapper.eq(MaintainTask::getCreateDept,entry.getCreateDept()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
wrapper.eq(BaseEntity::getIsDeleted,0); |
|
|
|
|
wrapper.orderByDesc(MaintainTask::getCreateTime); |
|
|
|
|
@ -127,6 +127,9 @@ public class MaintainTaskServiceImpl extends BaseServiceImpl<MaintainTaskMapper, |
|
|
|
|
entry.setCreateTime(date); |
|
|
|
|
entry.setBusinessCode("BYRW"+ DateFormatUtils.format(date,"yyyyMMddhhmmss")+ StringUtil.randomUUID().substring(0,5)); |
|
|
|
|
entry.setOriginatorId(AuthUtil.getUserId().toString()); |
|
|
|
|
if(entry.getCreateDept() == null){ |
|
|
|
|
entry.setCreateDept(Long.parseLong(AuthUtil.getDeptId())); |
|
|
|
|
} |
|
|
|
|
baseMapper.insert(entry); |
|
|
|
|
}else{ |
|
|
|
|
entry.setUpdateUser(AuthUtil.getUserId()); |
|
|
|
|
|