|
|
|
@ -2,6 +2,8 @@ package com.hnac.hzims.ticket.repair.service.impl;
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
|
import com.alibaba.fastjson.TypeReference; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
import com.hnac.hzims.middle.process.to.ProcessWorkFlowResponse; |
|
|
|
|
import com.hnac.hzims.ticket.repair.entity.WorkTaskEntity; |
|
|
|
|
import com.hnac.hzims.ticket.repair.mapper.WorkTaskMapper; |
|
|
|
@ -11,9 +13,12 @@ import lombok.RequiredArgsConstructor;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.springblade.core.log.exception.ServiceException; |
|
|
|
|
import org.springblade.core.mp.base.BaseServiceImpl; |
|
|
|
|
import org.springblade.core.mp.support.Condition; |
|
|
|
|
import org.springblade.core.secure.utils.AuthUtil; |
|
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
import org.springblade.core.tool.utils.DateUtil; |
|
|
|
|
import org.springblade.core.tool.utils.ObjectUtil; |
|
|
|
|
import org.springblade.core.tool.utils.StringUtil; |
|
|
|
|
import org.springblade.flow.core.entity.BladeFlow; |
|
|
|
|
import org.springblade.flow.core.feign.IFlowClient; |
|
|
|
|
import org.springblade.flow.core.utils.FlowUtil; |
|
|
|
@ -33,6 +38,31 @@ public class WorkTaskServiceImpl extends BaseServiceImpl<WorkTaskMapper, WorkTas
|
|
|
|
|
|
|
|
|
|
private final IFlowClient flowClient; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 工作任务单-分页查询 |
|
|
|
|
* @param page |
|
|
|
|
* @param workTask |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
public IPage<WorkTaskEntity> workTaskService(IPage<WorkTaskEntity> page, WorkTaskVO workTask) { |
|
|
|
|
QueryWrapper wrapper = Condition.getQueryWrapper(workTask); |
|
|
|
|
if(StringUtil.isNotBlank(workTask.getStartTime())){ |
|
|
|
|
wrapper.ge("CREATE_TIME",workTask.getStartTime()); |
|
|
|
|
} |
|
|
|
|
if(StringUtil.isNotBlank(workTask.getEndTime())){ |
|
|
|
|
wrapper.le("CREATE_TIME",workTask.getEndTime()); |
|
|
|
|
} |
|
|
|
|
if(ObjectUtil.isNotEmpty(workTask.getGroupId())){ |
|
|
|
|
wrapper.eq("GROUP_ID",workTask.getGroupId()); |
|
|
|
|
} |
|
|
|
|
if(ObjectUtil.isNotEmpty(workTask.getGroupId())){ |
|
|
|
|
wrapper.eq("CREATE_DEPT",workTask.getDeptId()); |
|
|
|
|
} |
|
|
|
|
return super.page(page, wrapper); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 工作任务单-开启流程 |
|
|
|
|
* @param workTask |
|
|
|
|