|
|
@ -62,6 +62,9 @@ import org.springblade.flow.core.entity.BladeFlow; |
|
|
|
import org.springblade.flow.core.feign.IFlowClient; |
|
|
|
import org.springblade.flow.core.feign.IFlowClient; |
|
|
|
import org.springblade.flow.core.vo.ComleteTask; |
|
|
|
import org.springblade.flow.core.vo.ComleteTask; |
|
|
|
import org.springblade.system.cache.DictCache; |
|
|
|
import org.springblade.system.cache.DictCache; |
|
|
|
|
|
|
|
import org.springblade.system.entity.Dept; |
|
|
|
|
|
|
|
import org.springblade.system.feign.IDeptClient; |
|
|
|
|
|
|
|
import org.springblade.system.feign.ISysClient; |
|
|
|
import org.springblade.system.user.cache.UserCache; |
|
|
|
import org.springblade.system.user.cache.UserCache; |
|
|
|
import org.springblade.system.user.entity.User; |
|
|
|
import org.springblade.system.user.entity.User; |
|
|
|
import org.springblade.system.user.feign.IUserClient; |
|
|
|
import org.springblade.system.user.feign.IUserClient; |
|
|
@ -114,6 +117,7 @@ public class WorkTicketInfoServiceImpl extends ServiceImpl<WorkTicketInfoMapper, |
|
|
|
private final WorkTicketFinishServiceImpl workTicketFinishService; |
|
|
|
private final WorkTicketFinishServiceImpl workTicketFinishService; |
|
|
|
private final TicketInfoDangerService ticketInfoDangerService; |
|
|
|
private final TicketInfoDangerService ticketInfoDangerService; |
|
|
|
private final IEmInfoClient emInfoClient; |
|
|
|
private final IEmInfoClient emInfoClient; |
|
|
|
|
|
|
|
private final ISysClient sysClient; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 生成两票编号锁 |
|
|
|
* 生成两票编号锁 |
|
|
@ -264,6 +268,15 @@ public class WorkTicketInfoServiceImpl extends ServiceImpl<WorkTicketInfoMapper, |
|
|
|
if (StringUtils.isNotEmpty(req.getEndTime())) { |
|
|
|
if (StringUtils.isNotEmpty(req.getEndTime())) { |
|
|
|
lqw.le(WorkTicketInfoEntity::getCreateTime, req.getEndTime()); |
|
|
|
lqw.le(WorkTicketInfoEntity::getCreateTime, req.getEndTime()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (Func.isNotEmpty(req.getStationDeptId())) { |
|
|
|
|
|
|
|
R<Dept> deptR = sysClient.getDept(req.getStationDeptId()); |
|
|
|
|
|
|
|
if(deptR.isSuccess() && Func.isNotEmpty(deptR.getData()) && Func.isNotEmpty(deptR.getData().getStationId())) { |
|
|
|
|
|
|
|
lqw.eq(WorkTicketInfoEntity::getSignage,deptR.getData().getStationId()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
|
|
|
|
lqw.eq(WorkTicketInfoEntity::getCreateDept,req.getStationDeptId()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
lqw.orderByDesc(WorkTicketInfoEntity::getCreateTime).orderByDesc(WorkTicketInfoEntity::getUpdateTime); |
|
|
|
lqw.orderByDesc(WorkTicketInfoEntity::getCreateTime).orderByDesc(WorkTicketInfoEntity::getUpdateTime); |
|
|
|
IPage<WorkTicketInfoEntity> pages = this.page(Condition.getPage(query), lqw); |
|
|
|
IPage<WorkTicketInfoEntity> pages = this.page(Condition.getPage(query), lqw); |
|
|
|
//数据转换
|
|
|
|
//数据转换
|
|
|
|