|
@@ -38,6 +38,8 @@ import jakarta.servlet.http.HttpServletResponse;
|
|
|
import jakarta.annotation.Resource;
|
|
|
import jakarta.validation.Valid;
|
|
|
import jakarta.validation.constraints.NotEmpty;
|
|
|
+
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
import java.util.List;
|
|
|
import java.io.IOException;
|
|
|
import com.alibaba.excel.EasyExcel;
|
|
@@ -122,6 +124,7 @@ public class QyRecordController {
|
|
|
Page<QyRecord> page = qyRecordService.page(qyRecordPageParam);
|
|
|
List<QyRecord> records = page.getRecords();
|
|
|
if (CollectionUtil.isNotEmpty(records)){
|
|
|
+ SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
records.stream().forEach(item ->{
|
|
|
DevDict devDict;
|
|
|
String parentId;
|
|
@@ -142,6 +145,8 @@ public class QyRecordController {
|
|
|
.eq(DevDict::getDictValue,applyType));
|
|
|
if (devDict != null){
|
|
|
item.setApplyType(devDict.getDictLabel());
|
|
|
+ }else {
|
|
|
+ item.setApplyType("备案申请");
|
|
|
}
|
|
|
//备案类型
|
|
|
String baType = item.getBaType();
|
|
@@ -186,8 +191,9 @@ public class QyRecordController {
|
|
|
.eq(DevDict::getParentId, parentId)
|
|
|
.eq(DevDict::getDictValue,companyMainHgType));
|
|
|
if (devDict != null){
|
|
|
- item.setCompanyType(devDict.getDictLabel());
|
|
|
+ item.setCompanyMainHgType(devDict.getDictLabel());
|
|
|
}
|
|
|
+
|
|
|
});
|
|
|
}
|
|
|
exportExcel(response,QyRecord.class,records,"企业资质备案");
|