|
|
|
@ -3,6 +3,7 @@ package com.foreverwin.mesnac.quality.controller;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
|
import com.foreverwin.mesnac.common.constant.Constants;
|
|
|
|
|
import com.foreverwin.mesnac.quality.mapper.SelfReportMapper;
|
|
|
|
|
import com.foreverwin.mesnac.quality.model.SelfReport;
|
|
|
|
|
import com.foreverwin.mesnac.quality.service.SelfReportService;
|
|
|
|
|
import com.foreverwin.modular.core.util.CommonMethods;
|
|
|
|
@ -26,6 +27,9 @@ public class SelfReportController {
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
public SelfReportService selfReportService;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
public SelfReportMapper selfReportMapper;
|
|
|
|
|
/**
|
|
|
|
|
* 查询所有数据
|
|
|
|
|
*
|
|
|
|
@ -148,4 +152,25 @@ public class SelfReportController {
|
|
|
|
|
public R removeByIds(List<String> ids){
|
|
|
|
|
return R.ok(selfReportService.removeByIds(ids));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询设备和设备上的检验人员
|
|
|
|
|
* @param
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/selectResourceAndCheckUsr")
|
|
|
|
|
public R selectResourceAndCheckUsr() {
|
|
|
|
|
List<SelfReport> result;
|
|
|
|
|
try {
|
|
|
|
|
String site = CommonMethods.getSite();
|
|
|
|
|
result = selfReportMapper.selectResourceAndCheckUsr(site);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
return R.failed(e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return R.ok(result);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|