|
|
|
@ -8,10 +8,7 @@ import com.daqing.financial.guarantee.feign.HrmsFeignService; |
|
|
|
|
import com.daqing.financial.guarantee.mapper.DgComplianceInvestigationMapper; |
|
|
|
|
import com.daqing.financial.guarantee.mapper.DgLoanCommitteeConsiderMapper; |
|
|
|
|
import com.daqing.financial.guarantee.mapper.DgWorkConferenceConsiderMapper; |
|
|
|
|
import com.daqing.financial.guarantee.model.response.AuditOpinionResponse; |
|
|
|
|
import com.daqing.financial.guarantee.model.response.DgWorkConferenceConsiderQueryResponse; |
|
|
|
|
import com.daqing.financial.guarantee.model.response.DgWorkConferenceResponse; |
|
|
|
|
import com.daqing.financial.guarantee.model.response.GuaranteeDetailResponse; |
|
|
|
|
import com.daqing.financial.guarantee.model.response.*; |
|
|
|
|
import com.daqing.financial.guarantee.service.IDgCopyForService; |
|
|
|
|
import com.daqing.financial.guarantee.service.IDgGuaranteeAssignUserService; |
|
|
|
|
import com.daqing.financial.guarantee.service.IDgWorkConferenceConsiderService; |
|
|
|
@ -31,6 +28,7 @@ import com.daqing.framework.model.response.PromptSuccess; |
|
|
|
|
import com.daqing.framework.model.response.ResponseResult; |
|
|
|
|
import com.daqing.framework.util.RedisUtil; |
|
|
|
|
import com.daqing.framework.utils.PageUtils; |
|
|
|
|
import com.daqing.framework.utils.excel.EasyExcelUtil; |
|
|
|
|
import com.daqing.framework.utils.excel.ExcelUtil; |
|
|
|
|
import org.springframework.beans.BeanUtils; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
@ -373,9 +371,9 @@ public class DgWorkConferenceConsiderServiceImpl extends ServiceImpl<DgWorkConfe |
|
|
|
|
@Transactional |
|
|
|
|
@Override |
|
|
|
|
public Boolean excelExport(HttpServletResponse response, List<String> ids,Integer userId) { |
|
|
|
|
if (ids == null || ids.size() == 0) { |
|
|
|
|
/* if (ids == null || ids.size() == 0) { |
|
|
|
|
ExceptionCast.cast(GuaranteeCode.EXCEL_ID_NOT_NULL); |
|
|
|
|
} |
|
|
|
|
}*/ |
|
|
|
|
List<Integer> idList = new ArrayList<>(); |
|
|
|
|
for (String id : ids) { |
|
|
|
|
idList.add(Integer.parseInt(id)); |
|
|
|
@ -407,8 +405,10 @@ public class DgWorkConferenceConsiderServiceImpl extends ServiceImpl<DgWorkConfe |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
try { |
|
|
|
|
ExcelUtil.writeExcelWithSheets(response, excelList, "工作会数据一览表", "NO.1", new DgWorkConferenceResponse()) |
|
|
|
|
.finish(); |
|
|
|
|
EasyExcelUtil.download(response, DgWorkConferenceResponse.class,excelList,"财务确认列表","第一页"); |
|
|
|
|
|
|
|
|
|
/* ExcelUtil.writeExcelWithSheets(response, excelList, "工作会数据一览表", "NO.1", new DgWorkConferenceResponse()) |
|
|
|
|
.finish();*/ |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
ExceptionCast.cast(CrmsCode.CUSTOMER_EXPORT_EXSIT); |
|
|
|
|
} |
|
|
|
@ -438,10 +438,10 @@ public class DgWorkConferenceConsiderServiceImpl extends ServiceImpl<DgWorkConfe |
|
|
|
|
workConferenceResponse = new DgWorkConferenceResponse(); |
|
|
|
|
for (EmployeeVO employee : employees) { |
|
|
|
|
if (Objects.equals(workConference.getAUserId().longValue(), employee.getId())) { |
|
|
|
|
workConferenceResponse.setARoleName(employee.getName()); |
|
|
|
|
workConferenceResponse.setAroleName(employee.getName()); |
|
|
|
|
} |
|
|
|
|
if (Objects.equals(workConference.getBUserId().longValue(), employee.getId())) { |
|
|
|
|
workConferenceResponse.setBRoleName(employee.getName()); |
|
|
|
|
workConferenceResponse.setBroleName(employee.getName()); |
|
|
|
|
} |
|
|
|
|
if (Objects.equals(workConference.getIUserId().longValue(), employee.getId())) { |
|
|
|
|
workConferenceResponse.setRegulationName(employee.getName()); |
|
|
|
|