¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.common.enums; |
| | | |
| | | |
| | | public enum ApplyTypeEnum { |
| | | CL("0", "å·®æ
è´¹æ¥é"), |
| | | BGFY("4", "åå
¬è´¹ç¨æ¥é"), |
| | | ZJLW("1", "ä¸å®¶å³å¡è´¹ç³è¯·"), |
| | | LLZJLW("2", "伦çä¸å®¶å³å¡è´¹ç³è¯·"), |
| | | YXCB("3", "å»å¦ææ¬æ¥é"), |
| | | JX("5", "绩æå®¡æ¹"); |
| | | |
| | | private String code; |
| | | private String desc; |
| | | |
| | | ApplyTypeEnum(String code, String desc) { |
| | | this.code = code; |
| | | this.desc = desc; |
| | | } |
| | | |
| | | public static String getDescByCode(String code) { |
| | | ApplyTypeEnum[] organEnums = values(); |
| | | for (int i = 0; i < organEnums.length; i++) { |
| | | ApplyTypeEnum organEnum = organEnums[i]; |
| | | if (organEnum.getCode().equals(code)) { |
| | | return organEnum.getDesc(); |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(String code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getDesc() { |
| | | return desc; |
| | | } |
| | | |
| | | public void setDesc(String desc) { |
| | | this.desc = desc; |
| | | } |
| | | } |
| | |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.core.domain.model.LoginUser; |
| | | import com.ruoyi.common.enums.ApplyTypeEnum; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.HttpClientKit; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | |
| | | formmain_0831.put("è¯å«äºº-ä½åº", null); |
| | | formmain_0831.put("è´¢å¡å®¡æ¹ç¾å", serviceFund.getFinancedirector()); |
| | | formmain_0831.put("è´¢å¡é¨è´è´£äººç¾å", serviceFund.getFinancedirector()); |
| | | formmain_0831.put("表达类å", null); |
| | | formmain_0831.put("表达类å", StringUtils.isEmpty(serviceFund.getApplytype()) ? null : ApplyTypeEnum.getDescByCode(serviceFund.getApplytype())); |
| | | formmain_0831.put("ç¨åéé¢å计", serviceFund.getPretaxcost()); |
| | | formmain_0831.put("ç¨é¢å计", serviceFund.getPretaxcost() - serviceFund.getTaxedcost()); |
| | | formmain_0831.put("表åç¼å·1", null); |