소스 검색

企业导出修改

wenjinbiao 9 달 전
부모
커밋
77e5d00bc8

+ 10 - 8
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/qyrecord/controller/QyRecordController.java

@@ -138,14 +138,16 @@ public class QyRecordController {
                     item.setStatus(devDict.getDictLabel());
                 }
                 //申报类型
-//                String applyType = item.getApplyType();
-//                parentId = "1808704091340812290";
-//                devDict = devDictService.getOne(new QueryWrapper<DevDict>().checkSqlInjection().lambda()
-//                        .eq(DevDict::getParentId, parentId)
-//                        .eq(DevDict::getDictValue,applyType));
-//                if (devDict != null){
-//                    item.setApplyType(devDict.getDictLabel());
-//                }
+                String applyType = item.getApplyType();
+                parentId = "1808704091340812290";
+                devDict = devDictService.getOne(new QueryWrapper<DevDict>().checkSqlInjection().lambda()
+                        .eq(DevDict::getParentId, parentId)
+                        .eq(DevDict::getDictValue,applyType));
+                if (devDict != null){
+                    item.setApplyType(devDict.getDictLabel());
+                }else {
+                    item.setApplyType("备案申请");
+                }
                 //备案类型
                 String baType = item.getBaType();
                 parentId = "1808704091340812290";

+ 2 - 3
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/qyrecord/entity/QyRecord.java

@@ -151,9 +151,8 @@ public class QyRecord {
 
     /** 申报类型 */
     @Schema(description = "申报类型")
-//    @ColumnWidth(12)
-//    @ExcelProperty(index = 19,value = "申报类型")
-    @ExcelIgnore
+    @ColumnWidth(12)
+    @ExcelProperty(index = 19,value = "申报类型")
     private String applyType;
 
     /** 申报时间 */