|
|
@ -5,6 +5,8 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
import org.jeecg.common.api.vo.Result; |
|
|
|
import org.jeecg.modules.apiBean.*; |
|
|
|
import org.jeecg.modules.apiService.TemplateService; |
|
|
|
import org.jeecg.modules.workorderCollection.entity.WorkorderCollection; |
|
|
|
import org.jeecg.modules.workorderCollection.service.IWorkorderCollectionService; |
|
|
|
import org.jeecg.modules.workorderGeneralStepfour.entity.WorkorderGeneralStepfour; |
|
|
|
import org.jeecg.modules.workorderGeneralStepfour.service.IWorkorderGeneralStepfourService; |
|
|
|
import org.jeecg.modules.workorderGeneralStepone.entity.WorkorderGeneralStepone; |
|
|
@ -48,6 +50,10 @@ import java.util.List; |
|
|
|
@Service |
|
|
|
public class TemplateServiceImpl implements TemplateService { |
|
|
|
|
|
|
|
//收藏信息 |
|
|
|
@Resource |
|
|
|
private IWorkorderCollectionService workorderCollectionService; |
|
|
|
|
|
|
|
//工单状态 |
|
|
|
@Resource |
|
|
|
private IWorkorderStatusService workorderStatusService; |
|
|
@ -88,21 +94,6 @@ public class TemplateServiceImpl implements TemplateService { |
|
|
|
@Resource |
|
|
|
private IWorkorderParamStepfourService workorderParamStepfourService; |
|
|
|
|
|
|
|
//工序卡1 |
|
|
|
@Resource |
|
|
|
private IWorkorderSteponeService workorderSteponeService; |
|
|
|
|
|
|
|
//工序卡2 |
|
|
|
@Resource |
|
|
|
private IWorkorderSteptwoService workorderSteptwoService; |
|
|
|
|
|
|
|
//工序卡3 |
|
|
|
@Resource |
|
|
|
private IWorkorderStepthreeService workorderStepthreeService; |
|
|
|
|
|
|
|
//工序卡4 |
|
|
|
@Resource |
|
|
|
private IWorkorderStepfourService workorderStepfourService; |
|
|
|
/*************************************************************************************/ |
|
|
|
|
|
|
|
//工单信息-查询工单列表 |
|
|
@ -356,7 +347,7 @@ public class TemplateServiceImpl implements TemplateService { |
|
|
|
/*********************************************************************************************************/ |
|
|
|
//工单信息-查询工单详情 |
|
|
|
@Override |
|
|
|
public Result<?> queryTemplateById(String templateId){ |
|
|
|
public Result<?> queryTemplateById(String userId, String templateId){ |
|
|
|
|
|
|
|
//查询工单信息 |
|
|
|
WorkorderTemplate workorderTemplate = workorderTemplateService |
|
|
@ -364,6 +355,18 @@ public class TemplateServiceImpl implements TemplateService { |
|
|
|
.eq(WorkorderTemplate::getId, templateId) |
|
|
|
.one(); |
|
|
|
|
|
|
|
//查看工单是否被收藏 |
|
|
|
WorkorderCollection collection = workorderCollectionService |
|
|
|
.lambdaQuery() |
|
|
|
.eq(WorkorderCollection::getUserId, userId) |
|
|
|
.eq(WorkorderCollection::getTemplateId, templateId) |
|
|
|
.one(); |
|
|
|
if(null != collection){ |
|
|
|
workorderTemplate.setCollectonFlag(true); |
|
|
|
}else { |
|
|
|
workorderTemplate.setCollectonFlag(false); |
|
|
|
} |
|
|
|
|
|
|
|
//查询工序卡信息 |
|
|
|
List<WorkorderStep> stepList = workorderStepService |
|
|
|
.lambdaQuery() |
|
|
|