|
@@ -1,5 +1,8 @@
|
|
package com.jeeplus.assess.reimbursement.reimbursementInfo.controller;
|
|
package com.jeeplus.assess.reimbursement.reimbursementInfo.controller;
|
|
|
|
|
|
|
|
+import cn.hutool.extra.spring.SpringUtil;
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
|
+import com.alibaba.fastjson.TypeReference;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.google.common.collect.Lists;
|
|
import com.google.common.collect.Lists;
|
|
@@ -13,6 +16,7 @@ import com.jeeplus.assess.program.configuration.projectList.domain.ProgramProjec
|
|
import com.jeeplus.assess.reimbursement.reimbursementInfo.domain.ReimbursementInfo;
|
|
import com.jeeplus.assess.reimbursement.reimbursementInfo.domain.ReimbursementInfo;
|
|
import com.jeeplus.assess.reimbursement.reimbursementInfo.service.ReimbursementInfoService;
|
|
import com.jeeplus.assess.reimbursement.reimbursementInfo.service.ReimbursementInfoService;
|
|
import com.jeeplus.logging.annotation.ApiLog;
|
|
import com.jeeplus.logging.annotation.ApiLog;
|
|
|
|
+import com.jeeplus.sys.feign.IDictApi;
|
|
import com.jeeplus.utils.StringUtils;
|
|
import com.jeeplus.utils.StringUtils;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -140,6 +144,51 @@ public class ReimbursementInfoController {
|
|
page.setCurrent (0);
|
|
page.setCurrent (0);
|
|
result = service.list (page,cwDTO).getRecords();
|
|
result = service.list (page,cwDTO).getRecords();
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if(result.size()>0){
|
|
|
|
+ //获取字典数据
|
|
|
|
+ String statusDatas = SpringUtil.getBean ( IDictApi.class ).getDictListMapByDict ("status");
|
|
|
|
+ Map<String,Object> statusValueDTOs = JSON.parseObject(statusDatas, new TypeReference<Map<String,Object>>() {});
|
|
|
|
+
|
|
|
|
+ String cwReimbursementSourceTypeDatas = SpringUtil.getBean ( IDictApi.class ).getDictListMapByDict ("pg_reimbursement_source_type");
|
|
|
|
+ Map<String,Object> cwReimbursementSourceTypeValueDTOs = JSON.parseObject(cwReimbursementSourceTypeDatas, new TypeReference<Map<String,Object>>() {});
|
|
|
|
+
|
|
|
|
+ String paymentStatusDatas = SpringUtil.getBean ( IDictApi.class ).getDictListMapByDict ("payment_status");
|
|
|
|
+ Map<String,Object> paymentStatusValueDTOs = JSON.parseObject(paymentStatusDatas, new TypeReference<Map<String,Object>>() {});
|
|
|
|
+
|
|
|
|
+ for (RetureListDto info : result) {
|
|
|
|
+
|
|
|
|
+ if(org.apache.commons.lang3.StringUtils.isNotBlank(info.getType())){
|
|
|
|
+ for (String key : statusValueDTOs.keySet()) {
|
|
|
|
+ if(info.getType().equals(key)){
|
|
|
|
+ info.setType(String.valueOf(statusValueDTOs.get(key)));
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(org.apache.commons.lang3.StringUtils.isNotBlank(info.getSourceType())){
|
|
|
|
+ for (String key : cwReimbursementSourceTypeValueDTOs.keySet()) {
|
|
|
|
+ if(info.getSourceType().equals(key)){
|
|
|
|
+ info.setSourceType(String.valueOf(cwReimbursementSourceTypeValueDTOs.get(key)));
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(org.apache.commons.lang3.StringUtils.isNotBlank(info.getPaymentStatus())){
|
|
|
|
+ for (String key : paymentStatusValueDTOs.keySet()) {
|
|
|
|
+ if(info.getPaymentStatus().equals(key)){
|
|
|
|
+ info.setPaymentStatus(String.valueOf(paymentStatusValueDTOs.get(key)));
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }else {
|
|
|
|
+ info.setPaymentStatus("未付款");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
EasyPoiUtil.exportExcel ( result, sheetName, sheetName, RetureListDto.class, fileName, response );
|
|
EasyPoiUtil.exportExcel ( result, sheetName, sheetName, RetureListDto.class, fileName, response );
|
|
|
|
|
|
}
|
|
}
|