|
|
@@ -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
|
|
|
*/
|