|
|
@@ -3,8 +3,12 @@ package com.ygtx.gxt.controller;
|
|
|
import java.util.List;
|
|
|
|
|
|
import com.ygtx.common.utils.SecurityUtils;
|
|
|
+import com.ygtx.common.utils.poi.ExcelUtil;
|
|
|
+import com.ygtx.common.annotation.Log;
|
|
|
+import com.ygtx.common.enums.BusinessType;
|
|
|
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;
|
|
|
|
|
|
@@ -13,6 +17,8 @@ import com.ygtx.common.core.controller.BaseController;
|
|
|
import com.ygtx.gxt.domain.GxtOrderPerson;
|
|
|
import com.ygtx.gxt.service.IGxtOrderPersonService;
|
|
|
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
+
|
|
|
/**
|
|
|
* 人员工单工分Controller
|
|
|
*
|
|
|
@@ -36,4 +42,16 @@ public class GxtOrderPersonController extends BaseController
|
|
|
List<GxtOrderPerson> list = gxtOrderPersonService.selectGxtOrderPersonList(gxtOrderPerson);
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 导出人员工单工分列表
|
|
|
+ */
|
|
|
+ @PostMapping("/exportOrderScorePerson")
|
|
|
+ public void export(HttpServletResponse response, GxtOrderPerson gxtOrderPerson)
|
|
|
+ {
|
|
|
+ gxtOrderPerson.setUserId(SecurityUtils.getUserId());
|
|
|
+ List<GxtOrderPerson> list = gxtOrderPersonService.selectGxtOrderPersonList(gxtOrderPerson);
|
|
|
+ ExcelUtil<GxtOrderPerson> util = new ExcelUtil<GxtOrderPerson>(GxtOrderPerson.class);
|
|
|
+ util.exportExcel(response, list, "工分明细列表");
|
|
|
+ }
|
|
|
}
|