|
|
|
@ -3,8 +3,10 @@ package com.aucma.api.service.impl;
|
|
|
|
|
import com.aucma.api.domain.dto.RepairSubmitInfoDto;
|
|
|
|
|
import com.aucma.api.mapper.PdaBindingMapper;
|
|
|
|
|
import com.aucma.api.service.IPdaBindingService;
|
|
|
|
|
import com.aucma.common.utils.SecurityUtils;
|
|
|
|
|
import com.aucma.common.utils.StringUtils;
|
|
|
|
|
import com.aucma.report.domain.ReportQualityInspection;
|
|
|
|
|
import com.aucma.system.service.ISysPostService;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
@ -20,6 +22,9 @@ public class PdaServiceImpl implements IPdaBindingService {
|
|
|
|
|
@Autowired
|
|
|
|
|
private PdaBindingMapper mapper;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private ISysPostService postService;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String selectBoxNameByCode(String boxCode) {
|
|
|
|
|
|
|
|
|
@ -41,6 +46,11 @@ public class PdaServiceImpl implements IPdaBindingService {
|
|
|
|
|
return mapper.updateCodeBinding(boxCode,innerCode);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 质量返修 提交
|
|
|
|
|
* @param info
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public int submitRepair(RepairSubmitInfoDto info) {
|
|
|
|
|
return mapper.submitRepair(info);
|
|
|
|
@ -48,6 +58,18 @@ public class PdaServiceImpl implements IPdaBindingService {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<ReportQualityInspection> findCheckInfoByCode(String code) {
|
|
|
|
|
try {
|
|
|
|
|
Long userId = SecurityUtils.getUserId();
|
|
|
|
|
if (StringUtils.isNotNull(userId)){
|
|
|
|
|
List<Long> postList = postService.selectPostListByUserId(userId);
|
|
|
|
|
if (postList.contains(9L)){
|
|
|
|
|
//质量返修查询:巡检班长获取所有返修信息
|
|
|
|
|
return mapper.findCheckInfoByCodeUserId(code);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
System.out.println("findCheckInfoByCode异常:" + e);
|
|
|
|
|
}
|
|
|
|
|
return mapper.findCheckInfoByCode(code);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|