Explorar o código

项目申报trycatch修改为输出大前端 测试

huZhiHao %!s(int64=5) %!d(string=hai) anos
pai
achega
26838f4fa5

+ 3 - 3
src/main/java/platform/modules/company/service/ProjectApplicationService.java

@@ -230,9 +230,9 @@ public class ProjectApplicationService extends BaseService<ProjectApplication> {
         modelMap.put("currencyList", currencyList);
         List<DictionaryItem> typeList = dictionaryItemService.findListByTypeName(Constant.DictionaryType.PROJECT_TYPE);
         modelMap.put("typeList", typeList);
-		/*//项目类型
-        List<DictionaryItem> projectTypeList = dictionaryItemService.findListByTypeName(Constant.DictionaryType.PROJECT_APPLICATION_TYPE);
-        modelMap.put("projectTypeList", projectTypeList);*/
+//		//项目类型
+//        List<DictionaryItem> projectTypeList = dictionaryItemService.findListByTypeName(Constant.DictionaryType.PROJECT_APPLICATION_TYPE);
+//        modelMap.put("projectTypeList", projectTypeList);
         //项目申报时,项目类别
         if (null == modelMap.get("projectTypeList")) {
             if (null != modelMap.get("declaration_id")) {

+ 2 - 3
src/main/java/platform/modules/company/web/ProjectApplicationController.java

@@ -369,10 +369,9 @@ public class ProjectApplicationController extends BaseController {
         } catch (BaseException e) {
             return ResponseMessage.error(e.getMessage());
         } catch (Exception e) {
-            e.getStackTrace();
+            return ResponseMessage.error(e.getMessage());
         }
-        return ResponseMessage.error("保存失败!");
-
+//        return ResponseMessage.error("保存失败!");
     }
 
 }