|
|
|
@ -27,6 +27,7 @@ import com.daqing.framework.model.response.PromptSuccess; |
|
|
|
|
import com.daqing.framework.util.RedisUtil; |
|
|
|
|
import com.daqing.framework.utils.PageUtils; |
|
|
|
|
import com.daqing.framework.utils.excel.ExcelUtil; |
|
|
|
|
import io.swagger.models.auth.In; |
|
|
|
|
import org.springframework.beans.BeanUtils; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
@ -311,7 +312,7 @@ public class DgLoanCommitteeConsiderServiceImpl extends ServiceImpl<DgLoanCommit |
|
|
|
|
* 导出 |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
public Boolean excelExport(HttpServletResponse response, List<String> ids) { |
|
|
|
|
public Boolean excelExport(HttpServletResponse response, List<String> ids, Integer userId) { |
|
|
|
|
if (null == ids || ids.size() == 0) { |
|
|
|
|
ExceptionCast.cast(GuaranteeCode.EXCEL_ID_NOT_NULL); |
|
|
|
|
} |
|
|
|
@ -319,7 +320,7 @@ public class DgLoanCommitteeConsiderServiceImpl extends ServiceImpl<DgLoanCommit |
|
|
|
|
for (String id : ids) { |
|
|
|
|
idList.add(Integer.parseInt(id)); |
|
|
|
|
} |
|
|
|
|
List<DgLoanCommitteeConsiderResponse> list = this.getBaseMapper().excelList(idList); |
|
|
|
|
List<DgLoanCommitteeConsiderResponse> list = this.getBaseMapper().excelList(idList,userId); |
|
|
|
|
try { |
|
|
|
|
ExcelUtil.writeExcelWithSheets(response, list, "贷审会数据一览表", "NO.1", new DgLoanCommitteeConsiderResponse()) |
|
|
|
|
.finish(); |
|
|
|
|