Merge remote-tracking branch 'origin/master'
commit
a0afd6a4fa
@ -0,0 +1,44 @@
|
|||||||
|
package com.op.quality.controller;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.op.common.core.utils.poi.ExcelUtil;
|
||||||
|
import com.op.common.core.web.controller.BaseController;
|
||||||
|
import com.op.common.core.web.page.TableDataInfo;
|
||||||
|
import com.op.common.log.annotation.Log;
|
||||||
|
import com.op.common.log.enums.BusinessType;
|
||||||
|
import com.op.quality.domain.QcProCheck;
|
||||||
|
import com.op.quality.service.QcProCheckService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
import org.springframework.web.context.request.RequestContextHolder;
|
||||||
|
import org.springframework.web.context.request.ServletRequestAttributes;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/qcProCheck")
|
||||||
|
public class QcProCheckController extends BaseController {
|
||||||
|
@Autowired
|
||||||
|
private QcProCheckService qcProCheckService;
|
||||||
|
|
||||||
|
@GetMapping("/list")
|
||||||
|
public List<QcProCheck> list(QcProCheck qcProCheck) {
|
||||||
|
List<QcProCheck> qcProChecks = qcProCheckService.selectQcCheckList(qcProCheck);
|
||||||
|
return qcProCheckService.selectQcCheckList(qcProCheck);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Log(title = "白坯合格统计", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, QcProCheck qcProCheck) {
|
||||||
|
List<QcProCheck> list = qcProCheckService.selectQcCheckList(qcProCheck);
|
||||||
|
ExcelUtil<QcProCheck> util = new ExcelUtil<QcProCheck>(QcProCheck.class);
|
||||||
|
util.exportExcel(response, list, "白坯合格统计数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue