|
@@ -5,6 +5,8 @@ import java.math.BigInteger;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
|
|
+import com.ruoyi.common.core.domain.entity.SysDictData;
|
|
|
|
+import com.ruoyi.system.service.ISysDictTypeService;
|
|
import com.ruoyi.web.controller.branch.vo.CalcVO;
|
|
import com.ruoyi.web.controller.branch.vo.CalcVO;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -38,6 +40,9 @@ public class TBranchDuesController extends BaseController
|
|
@Autowired
|
|
@Autowired
|
|
private ITBranchDuesService tBranchDuesService;
|
|
private ITBranchDuesService tBranchDuesService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private ISysDictTypeService sysDictTypeService;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 查询支部党费计算
|
|
* 查询支部党费计算
|
|
*/
|
|
*/
|
|
@@ -95,7 +100,21 @@ public class TBranchDuesController extends BaseController
|
|
@PostMapping("/export")
|
|
@PostMapping("/export")
|
|
public void export(HttpServletResponse response, TBranchDues tBranchDues)
|
|
public void export(HttpServletResponse response, TBranchDues tBranchDues)
|
|
{
|
|
{
|
|
|
|
+ List<SysDictData> duesInOut = sysDictTypeService.selectDictDataByType("dues_in_out");
|
|
|
|
+ List<SysDictData> duesType = sysDictTypeService.selectDictDataByType("dues_type");
|
|
List<TBranchDues> list = tBranchDuesService.selectTBranchDuesList(tBranchDues);
|
|
List<TBranchDues> list = tBranchDuesService.selectTBranchDuesList(tBranchDues);
|
|
|
|
+ for (TBranchDues branchDues : list) {
|
|
|
|
+ for (SysDictData data : duesInOut) {
|
|
|
|
+ if (data.getDictValue().equals(branchDues.getDuesInOut())) {
|
|
|
|
+ branchDues.setDuesInOut(data.getDictLabel());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ for (SysDictData data : duesType) {
|
|
|
|
+ if (data.getDictValue().equals(branchDues.getDuesType())) {
|
|
|
|
+ branchDues.setDuesType(data.getDictLabel());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
ExcelUtil<TBranchDues> util = new ExcelUtil<TBranchDues>(TBranchDues.class);
|
|
ExcelUtil<TBranchDues> util = new ExcelUtil<TBranchDues>(TBranchDues.class);
|
|
util.exportExcel(response, list, "支部党费收支管理数据");
|
|
util.exportExcel(response, list, "支部党费收支管理数据");
|
|
}
|
|
}
|