Procházet zdrojové kódy

订单审核-订单详情加个私有/平台的信息,使用agreementTypeName字段

lipf před 3 měsíci
rodič
revize
166857e799

+ 21 - 0
commons/src/main/java/com/jzg/commons/entity/quote/vo/aggregated/QuoteEchoVo.java

@@ -1,6 +1,7 @@
 package com.jzg.commons.entity.quote.vo.aggregated;
 
 
+import cn.hutool.core.util.StrUtil;
 import com.baomidou.mybatisplus.annotation.IdType;
 import com.baomidou.mybatisplus.annotation.TableId;
 import com.fasterxml.jackson.annotation.JsonFormat;
@@ -65,6 +66,26 @@ public class QuoteEchoVo extends QuoteVo {
         private String agreementName;
         private String agreementType;
         private String createBy;
+
+        /**
+         * 这个方法不能删除, 在前端有用agreementName字段
+         */
+        public String getAgreementTypeName(){
+            if(StrUtil.isEmpty(this.agreementType)){
+                return StrUtil.EMPTY;
+            }
+            // 1、平台协议-平台结算 2、私有协议-自行结算 3、网销协议-自行结算
+            if("1".equals(this.agreementType)){
+                return "平台协议";
+            }else if("2".equals(this.agreementType)){
+                return "私有协议";
+            }else if("3".equals(this.agreementType)) {
+                return  "网销协议";
+            }else{
+                return this.agreementType;
+            }
+        }
+
         /**
          * 保司id
          */