|
|
|
@ -11,6 +11,7 @@ import java.util.stream.Collectors;
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
|
|
|
|
import com.op.common.core.utils.DateUtils;
|
|
|
|
|
import com.op.quality.domain.QcCheckProject;
|
|
|
|
|
import com.op.quality.domain.QcCheckType;
|
|
|
|
|
import com.op.system.api.domain.quality.ChartDTO;
|
|
|
|
|
import com.op.system.api.domain.quality.ChartSeriesDTO;
|
|
|
|
@ -233,6 +234,12 @@ public class QcStaticTableController extends BaseController {
|
|
|
|
|
public List<QcCheckType> getCheckTypeList(@PathVariable("typeCode") String typeCode) {
|
|
|
|
|
return qcStaticTableService.getCheckTypeList(typeCode);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("/getSupplierList/{typeCode}")
|
|
|
|
|
public List<QcStaticTable> getSupplierList(@PathVariable("typeCode") String typeCode) {
|
|
|
|
|
return qcStaticTableService.getSupplierList(typeCode);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 巡检记录报表
|
|
|
|
|
*/
|
|
|
|
@ -290,4 +297,20 @@ public class QcStaticTableController extends BaseController {
|
|
|
|
|
return getDataTable(list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping("/exportProduceAnalysis")
|
|
|
|
|
public void exportProduceAnalysis(HttpServletResponse response, QcStaticTable qcStaticTable) {
|
|
|
|
|
//默认时间范围T 00:00:00~T+1 00:00:00
|
|
|
|
|
if(StringUtils.isEmpty(qcStaticTable.getYmArrayStart())){
|
|
|
|
|
LocalDate date = LocalDate.now();
|
|
|
|
|
DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
|
|
|
|
String ymStr = dtf.format(date);
|
|
|
|
|
qcStaticTable.setYmArrayStart(ymStr);
|
|
|
|
|
qcStaticTable.setYmArrayEnd(ymStr);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
List<QcStaticTable> list = qcStaticTableService.getQmsRateTable(qcStaticTable);
|
|
|
|
|
ExcelUtil<QcStaticTable> util = new ExcelUtil<QcStaticTable>(QcStaticTable.class);
|
|
|
|
|
util.exportExcel(response, list, "质检不良统计");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|