|
|
@ -26,7 +26,6 @@ import com.hnac.hzims.operational.duty.vo.ImsDutyRecVO; |
|
|
|
import com.hnac.hzims.operational.duty.vo.ImsRecVo; |
|
|
|
import com.hnac.hzims.operational.duty.vo.ImsRecVo; |
|
|
|
import com.hnac.hzims.operational.duty.vo.ImsSchedulingVo; |
|
|
|
import com.hnac.hzims.operational.duty.vo.ImsSchedulingVo; |
|
|
|
import com.hnac.hzims.operational.duty.wrapper.ImsDutyRecWrapper; |
|
|
|
import com.hnac.hzims.operational.duty.wrapper.ImsDutyRecWrapper; |
|
|
|
import com.hnac.hzims.operational.station.entity.StationEntity; |
|
|
|
|
|
|
|
import com.hnac.hzims.operational.station.service.IStationService; |
|
|
|
import com.hnac.hzims.operational.station.service.IStationService; |
|
|
|
import com.hnac.hzinfo.inspect.plan.feign.IInspectPlanClient; |
|
|
|
import com.hnac.hzinfo.inspect.plan.feign.IInspectPlanClient; |
|
|
|
import com.hnac.hzinfo.inspect.plan.vo.PlanVO; |
|
|
|
import com.hnac.hzinfo.inspect.plan.vo.PlanVO; |
|
|
@ -41,7 +40,6 @@ import org.springblade.flow.core.constant.ProcessConstant; |
|
|
|
import org.springblade.flow.core.entity.BladeFlow; |
|
|
|
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.utils.TaskUtil; |
|
|
|
import org.springblade.flow.core.utils.TaskUtil; |
|
|
|
import org.springblade.system.entity.Dept; |
|
|
|
|
|
|
|
import org.springblade.system.feign.ISysClient; |
|
|
|
import org.springblade.system.feign.ISysClient; |
|
|
|
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; |
|
|
@ -90,6 +88,8 @@ public class ImsDutyRecServiceImpl extends BaseServiceImpl<ImsDutyRecMapper, Ims |
|
|
|
private IInspectPlanClient inspectPlanClient; |
|
|
|
private IInspectPlanClient inspectPlanClient; |
|
|
|
@Autowired |
|
|
|
@Autowired |
|
|
|
private IImsDutyGroupPService imsDutyGroupPService; |
|
|
|
private IImsDutyGroupPService imsDutyGroupPService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private IImsDutyMainPersonService imsDutyMainPersonService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -335,7 +335,11 @@ public class ImsDutyRecServiceImpl extends BaseServiceImpl<ImsDutyRecMapper, Ims |
|
|
|
eq(ImsDutyGroupEntity::getId, entity.getDutyGroupId()); |
|
|
|
eq(ImsDutyGroupEntity::getId, entity.getDutyGroupId()); |
|
|
|
eq(ImsDutyGroupEntity::getManagerId, AuthUtil.getUserId()); |
|
|
|
eq(ImsDutyGroupEntity::getManagerId, AuthUtil.getUserId()); |
|
|
|
}}); |
|
|
|
}}); |
|
|
|
if (ObjectUtil.isEmpty(groupEntity)) { |
|
|
|
ImsDutyMainPersonEntity personEntity = imsDutyMainPersonService.getOne(new LambdaQueryWrapper<ImsDutyMainPersonEntity>() {{ |
|
|
|
|
|
|
|
eq(ImsDutyMainPersonEntity::getDutyMainId, entity.getId()); |
|
|
|
|
|
|
|
eq(ImsDutyMainPersonEntity::getDutyChargePerson, AuthUtil.getUserId()); |
|
|
|
|
|
|
|
}}); |
|
|
|
|
|
|
|
if (ObjectUtil.isEmpty(groupEntity)&&ObjectUtil.isEmpty(personEntity)) { |
|
|
|
return R.success("您不是该班组负责人,不可交班!"); |
|
|
|
return R.success("您不是该班组负责人,不可交班!"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|