From e3ac616c2a3ef63073a454b9c91e6bff1e4243d0 Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期三, 26 六月 2024 18:45:26 +0800 Subject: [PATCH] 提交一把 --- server/service/src/main/java/com/doumee/core/utils/Constants.java | 31 +++++++++++++++++++++++++++---- 1 files changed, 27 insertions(+), 4 deletions(-) diff --git a/server/service/src/main/java/com/doumee/core/utils/Constants.java b/server/service/src/main/java/com/doumee/core/utils/Constants.java index fa573fd..838ddac 100644 --- a/server/service/src/main/java/com/doumee/core/utils/Constants.java +++ b/server/service/src/main/java/com/doumee/core/utils/Constants.java @@ -4,10 +4,7 @@ import com.doumee.core.constants.ResponseStatus; import com.doumee.core.exception.BusinessException; import com.doumee.dao.business.dto.CountCyclePriceDTO; -import com.doumee.dao.business.model.ApplyChange; -import com.doumee.dao.business.model.ApplyDetail; -import com.doumee.dao.business.model.InsuranceApply; -import com.doumee.dao.business.model.Solutions; +import com.doumee.dao.business.model.*; import com.doumee.dao.business.vo.ChangeDealTypeVO; import com.doumee.dao.business.vo.CountCyclePriceVO; import io.swagger.models.auth.In; @@ -139,6 +136,32 @@ return Constants.equalsInteger(model.getStatus(), ApplyChangeStatus.APPROVE.getKey())?"鎵瑰噺鐢熸晥璧锋湡":"鏈熸湜鎵瑰噺鐢熸晥璧锋湡"; } } + + + public static String getApplyTimeTitle(int type, UnionApply model){ + if(type ==1){ + return Constants.equalsInteger(model.getStatus(), UnionApplyStatus.FINISH.getKey())?"淇濋櫓鐢熸晥璧锋湡":"鏈熸湜淇濋櫓鐢熸晥璧锋湡"; + }else{ + return Constants.equalsInteger(model.getStatus(), UnionApplyStatus.FINISH.getKey())?"淇濋櫓鐢熸晥姝㈡湡":"棰勮鐢熸晥姝㈡湡"; + } + + } + + /** + * 鑾峰彇鎵规敼鍗曟椂闂存爣棰樺垪 + * @param type 0鏇存崲娲鹃仯鍗曚綅 1鍔犱繚 0鍑忎繚 + * @param model + * @return + */ + public static String getChangeApplyTimeTitle(int type, UnionChange model){ + if(type ==2){ + return Constants.equalsInteger(model.getStatus(), UnionChangeStatus.FINISH.getKey())?"鎵瑰崟鐢熸晥鏈�":"鏈熸湜鎵瑰崟鐢熸晥鏈�"; + }else if(type ==1){ + return Constants.equalsInteger(model.getStatus(), UnionChangeStatus.FINISH.getKey())?"鎵瑰鐢熸晥璧锋湡":"鏈熸湜鎵瑰鐢熸晥璧锋湡"; + }else{ + return Constants.equalsInteger(model.getStatus(), UnionChangeStatus.FINISH.getKey())?"鎵瑰噺鐢熸晥璧锋湡":"鏈熸湜鎵瑰噺鐢熸晥璧锋湡"; + } + } /** * 浼佷笟鏁版嵁鏉ユ簮 0骞冲彴娉ㄥ唽 1鍚庡彴瀵煎叆 */ -- Gitblit v1.9.3