linxk 1 nedēļu atpakaļ
vecāks
revīzija
45873eb300

+ 59 - 0
cif-api/src/main/java/com/txz/cif/dto/EarningsDTO.java

@@ -0,0 +1,59 @@
+/*
+*
+* @date 2025-07-15
+*/
+package com.txz.cif.dto;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.Date;
+
+public class EarningsDTO implements Serializable {
+
+    /**
+     * 订单号
+     */
+    private String orderNo;
+
+
+    /**
+     * 用户id
+     */
+    private Long userId;
+
+    /**
+     * 收益金额
+     */
+    private BigDecimal earnings;
+
+
+
+    /**
+     * c_red_envelope
+     */
+    private static final long serialVersionUID = 1L;
+
+    public String getOrderNo() {
+        return orderNo;
+    }
+
+    public void setOrderNo(String orderNo) {
+        this.orderNo = orderNo;
+    }
+
+    public Long getUserId() {
+        return userId;
+    }
+
+    public void setUserId(Long userId) {
+        this.userId = userId;
+    }
+
+    public BigDecimal getEarnings() {
+        return earnings;
+    }
+
+    public void setEarnings(BigDecimal earnings) {
+        this.earnings = earnings;
+    }
+}

+ 0 - 384
cif-api/src/main/java/com/txz/cif/dto/HospitalDTO.java

@@ -1,384 +0,0 @@
-/*
-*
-* HospitalDTO.java
-* Copyright(C) 2017-2020 fendo公司
-* @date 2022-11-11
-*/
-package com.txz.cif.dto;
-
-import java.io.Serializable;
-import java.util.Date;
-
-public class HospitalDTO implements Serializable {
-    /**
-     * 
-     */
-    private Long id;
-
-    /**
-     * 管理账号用户id(关联登录账号,结算账户)
-     */
-    private Long userId;
-
-    private String deviceId;
-
-    /**
-     * 结算方案id
-     */
-    private Long settlePlanId;
-
-    /**
-     * 医院名称
-     */
-    private String name;
-
-    /**
-     * 地址
-     */
-    private String address;
-
-    /**
-     * 图标
-     */
-    private String icon;
-
-    /**
-     * 状态 1正常 2禁用
-     */
-    private Integer status;
-
-    /**
-     * 类型 1区域中心 2省级中心 3会诊医院
-     */
-    private Integer type;
-
-    /**
-     * 分类 多个分类 使用 , 分割
-     */
-    private String sysTypes;
-
-    /**
-     * 区域码
-     */
-    private String areaCode;
-
-    /**
-     * 省地区码
-     */
-    private String provinceCode;
-
-    /**
-     * 城市地区码
-     */
-    private String cityCode;
-
-    /**
-     * 公告
-     */
-    private String notice;
-
-    /**
-     * 创建时间
-     */
-    private Date createTime;
-
-    /**
-     * 更新时间
-     */
-    private Date updateTime;
-
-    /**
-     * 简介
-     */
-    private String introductory;
-
-    /**
-     * 科室简介
-     */
-    private String officeIntro;
-
-    /**
-     * c_hospital
-     */
-    private static final long serialVersionUID = 1L;
-
-    /**
-     * 
-     * @return id 
-     */
-    public Long getId() {
-        return id;
-    }
-
-    /**
-     * 
-     * @param id 
-     */
-    public void setId(Long id) {
-        this.id = id;
-    }
-
-    /**
-     * 管理账号用户id(关联登录账号,结算账户)
-     * @return user_id 管理账号用户id(关联登录账号,结算账户)
-     */
-    public Long getUserId() {
-        return userId;
-    }
-
-    /**
-     * 管理账号用户id(关联登录账号,结算账户)
-     * @param userId 管理账号用户id(关联登录账号,结算账户)
-     */
-    public void setUserId(Long userId) {
-        this.userId = userId;
-    }
-
-    /**
-     * 结算方案id
-     * @return settle_plan_id 结算方案id
-     */
-    public Long getSettlePlanId() {
-        return settlePlanId;
-    }
-
-    /**
-     * 结算方案id
-     * @param settlePlanId 结算方案id
-     */
-    public void setSettlePlanId(Long settlePlanId) {
-        this.settlePlanId = settlePlanId;
-    }
-
-    /**
-     * 医院名称
-     * @return name 医院名称
-     */
-    public String getName() {
-        return name;
-    }
-
-    /**
-     * 医院名称
-     * @param name 医院名称
-     */
-    public void setName(String name) {
-        this.name = name;
-    }
-
-    /**
-     * 地址
-     * @return address 地址
-     */
-    public String getAddress() {
-        return address;
-    }
-
-    /**
-     * 地址
-     * @param address 地址
-     */
-    public void setAddress(String address) {
-        this.address = address;
-    }
-
-    /**
-     * 图标
-     * @return icon 图标
-     */
-    public String getIcon() {
-        return icon;
-    }
-
-    /**
-     * 图标
-     * @param icon 图标
-     */
-    public void setIcon(String icon) {
-        this.icon = icon;
-    }
-
-    /**
-     * 状态 1正常 2禁用
-     * @return status 状态 1正常 2禁用
-     */
-    public Integer getStatus() {
-        return status;
-    }
-
-    /**
-     * 状态 1正常 2禁用
-     * @param status 状态 1正常 2禁用
-     */
-    public void setStatus(Integer status) {
-        this.status = status;
-    }
-
-    /**
-     * 类型 1区域中心 2省级中心 3会诊医院
-     * @return type 类型 1区域中心 2省级中心 3会诊医院
-     */
-    public Integer getType() {
-        return type;
-    }
-
-    /**
-     * 类型 1区域中心 2省级中心 3会诊医院
-     * @param type 类型 1区域中心 2省级中心 3会诊医院
-     */
-    public void setType(Integer type) {
-        this.type = type;
-    }
-
-    /**
-     * 分类 多个分类 使用 , 分割
-     * @return sys_types 分类 多个分类 使用 , 分割
-     */
-    public String getSysTypes() {
-        return sysTypes;
-    }
-
-    /**
-     * 分类 多个分类 使用 , 分割
-     * @param sysTypes 分类 多个分类 使用 , 分割
-     */
-    public void setSysTypes(String sysTypes) {
-        this.sysTypes = sysTypes;
-    }
-
-    /**
-     * 区域码
-     * @return area_code 区域码
-     */
-    public String getAreaCode() {
-        return areaCode;
-    }
-
-    /**
-     * 区域码
-     * @param areaCode 区域码
-     */
-    public void setAreaCode(String areaCode) {
-        this.areaCode = areaCode;
-    }
-
-    /**
-     * 省地区码
-     * @return province_code 省地区码
-     */
-    public String getProvinceCode() {
-        return provinceCode;
-    }
-
-    /**
-     * 省地区码
-     * @param provinceCode 省地区码
-     */
-    public void setProvinceCode(String provinceCode) {
-        this.provinceCode = provinceCode;
-    }
-
-    /**
-     * 城市地区码
-     * @return city_code 城市地区码
-     */
-    public String getCityCode() {
-        return cityCode;
-    }
-
-    /**
-     * 城市地区码
-     * @param cityCode 城市地区码
-     */
-    public void setCityCode(String cityCode) {
-        this.cityCode = cityCode;
-    }
-
-    /**
-     * 公告
-     * @return notice 公告
-     */
-    public String getNotice() {
-        return notice;
-    }
-
-    /**
-     * 公告
-     * @param notice 公告
-     */
-    public void setNotice(String notice) {
-        this.notice = notice;
-    }
-
-    /**
-     * 创建时间
-     * @return create_time 创建时间
-     */
-    public Date getCreateTime() {
-        return createTime;
-    }
-
-    /**
-     * 创建时间
-     * @param createTime 创建时间
-     */
-    public void setCreateTime(Date createTime) {
-        this.createTime = createTime;
-    }
-
-    /**
-     * 更新时间
-     * @return update_time 更新时间
-     */
-    public Date getUpdateTime() {
-        return updateTime;
-    }
-
-    /**
-     * 更新时间
-     * @param updateTime 更新时间
-     */
-    public void setUpdateTime(Date updateTime) {
-        this.updateTime = updateTime;
-    }
-
-    /**
-     * 简介
-     * @return introductory 简介
-     */
-    public String getIntroductory() {
-        return introductory;
-    }
-
-    /**
-     * 简介
-     * @param introductory 简介
-     */
-    public void setIntroductory(String introductory) {
-        this.introductory = introductory;
-    }
-
-    /**
-     * 科室简介
-     * @return office_intro 科室简介
-     */
-    public String getOfficeIntro() {
-        return officeIntro;
-    }
-
-    /**
-     * 科室简介
-     * @param officeIntro 科室简介
-     */
-    public void setOfficeIntro(String officeIntro) {
-        this.officeIntro = officeIntro;
-    }
-
-    public String getDeviceId() {
-        return deviceId;
-    }
-
-    public void setDeviceId(String deviceId) {
-        this.deviceId = deviceId;
-    }
-}

+ 0 - 290
cif-api/src/main/java/com/txz/cif/dto/OperatorDTO.java

@@ -1,290 +0,0 @@
-/*
-*
-* OperatorDTO.java
-* Copyright(C) 2017-2020 fendo公司
-* @date 2022-11-02
-*/
-package com.txz.cif.dto;
-
-import java.io.Serializable;
-import java.util.Date;
-
-public class OperatorDTO implements Serializable {
-    /**
-     * 
-     */
-    private Long id;
-
-    /**
-     * 支持登录类型 1,账号登录 2,手机登录 3,邮箱登录 4,微信公众号登录 
-     */
-    private Integer loginType;
-
-    /**
-     * 状态 1正常 2禁用
-     */
-    private Integer status;
-
-    /**
-     * 微信的unionId
-     */
-    private String unionId;
-
-    /**
-     * 登录账号
-     */
-    private String loginAccount;
-
-    /**
-     * 登录密码
-     */
-    private String loginPassword;
-
-    /**
-     * 盐
-     */
-    private String salt;
-
-    /**
-     * 最后登录时间
-     */
-    private Date lastLoginTime;
-
-    /**
-     * 最后登陆token
-     */
-    private String lastToken;
-
-    /**
-     * 创建人
-     */
-    private String createUser;
-
-    /**
-     * 更新人
-     */
-    private String updateUser;
-
-    /**
-     * 创建时间
-     */
-    private Date createTime;
-
-    /**
-     * 更新时间
-     */
-    private Date updateTime;
-
-    /**
-     * c_operator
-     */
-    private static final long serialVersionUID = 1L;
-
-    /**
-     * 
-     * @return id 
-     */
-    public Long getId() {
-        return id;
-    }
-
-    /**
-     * 
-     * @param id 
-     */
-    public void setId(Long id) {
-        this.id = id;
-    }
-
-    /**
-     * 支持登录类型 1,账号登录 2,手机登录 3,邮箱登录 4,微信公众号登录 
-     * @return login_type 支持登录类型 1,账号登录 2,手机登录 3,邮箱登录 4,微信公众号登录 
-     */
-    public Integer getLoginType() {
-        return loginType;
-    }
-
-    /**
-     * 支持登录类型 1,账号登录 2,手机登录 3,邮箱登录 4,微信公众号登录 
-     * @param loginType 支持登录类型 1,账号登录 2,手机登录 3,邮箱登录 4,微信公众号登录 
-     */
-    public void setLoginType(Integer loginType) {
-        this.loginType = loginType;
-    }
-
-    /**
-     * 状态 1正常 2禁用
-     * @return status 状态 1正常 2禁用
-     */
-    public Integer getStatus() {
-        return status;
-    }
-
-    /**
-     * 状态 1正常 2禁用
-     * @param status 状态 1正常 2禁用
-     */
-    public void setStatus(Integer status) {
-        this.status = status;
-    }
-
-    /**
-     * 微信的unionId
-     * @return union_id 微信的unionId
-     */
-    public String getUnionId() {
-        return unionId;
-    }
-
-    /**
-     * 微信的unionId
-     * @param unionId 微信的unionId
-     */
-    public void setUnionId(String unionId) {
-        this.unionId = unionId;
-    }
-
-    /**
-     * 登录账号
-     * @return login_account 登录账号
-     */
-    public String getLoginAccount() {
-        return loginAccount;
-    }
-
-    /**
-     * 登录账号
-     * @param loginAccount 登录账号
-     */
-    public void setLoginAccount(String loginAccount) {
-        this.loginAccount = loginAccount;
-    }
-
-    /**
-     * 登录密码
-     * @return login_password 登录密码
-     */
-    public String getLoginPassword() {
-        return loginPassword;
-    }
-
-    /**
-     * 登录密码
-     * @param loginPassword 登录密码
-     */
-    public void setLoginPassword(String loginPassword) {
-        this.loginPassword = loginPassword;
-    }
-
-    /**
-     * 盐
-     * @return salt 盐
-     */
-    public String getSalt() {
-        return salt;
-    }
-
-    /**
-     * 盐
-     * @param salt 盐
-     */
-    public void setSalt(String salt) {
-        this.salt = salt;
-    }
-
-    /**
-     * 最后登录时间
-     * @return last_login_time 最后登录时间
-     */
-    public Date getLastLoginTime() {
-        return lastLoginTime;
-    }
-
-    /**
-     * 最后登录时间
-     * @param lastLoginTime 最后登录时间
-     */
-    public void setLastLoginTime(Date lastLoginTime) {
-        this.lastLoginTime = lastLoginTime;
-    }
-
-    /**
-     * 最后登陆token
-     * @return last_token 最后登陆token
-     */
-    public String getLastToken() {
-        return lastToken;
-    }
-
-    /**
-     * 最后登陆token
-     * @param lastToken 最后登陆token
-     */
-    public void setLastToken(String lastToken) {
-        this.lastToken = lastToken;
-    }
-
-    /**
-     * 创建人
-     * @return create_user 创建人
-     */
-    public String getCreateUser() {
-        return createUser;
-    }
-
-    /**
-     * 创建人
-     * @param createUser 创建人
-     */
-    public void setCreateUser(String createUser) {
-        this.createUser = createUser;
-    }
-
-    /**
-     * 更新人
-     * @return update_user 更新人
-     */
-    public String getUpdateUser() {
-        return updateUser;
-    }
-
-    /**
-     * 更新人
-     * @param updateUser 更新人
-     */
-    public void setUpdateUser(String updateUser) {
-        this.updateUser = updateUser;
-    }
-
-    /**
-     * 创建时间
-     * @return create_time 创建时间
-     */
-    public Date getCreateTime() {
-        return createTime;
-    }
-
-    /**
-     * 创建时间
-     * @param createTime 创建时间
-     */
-    public void setCreateTime(Date createTime) {
-        this.createTime = createTime;
-    }
-
-    /**
-     * 更新时间
-     * @return update_time 更新时间
-     */
-    public Date getUpdateTime() {
-        return updateTime;
-    }
-
-    /**
-     * 更新时间
-     * @param updateTime 更新时间
-     */
-    public void setUpdateTime(Date updateTime) {
-        this.updateTime = updateTime;
-    }
-}

+ 0 - 207
cif-api/src/main/java/com/txz/cif/dto/OrgContractDTO.java

@@ -1,207 +0,0 @@
-/*
-*
-* OrgContractDTO.java
-* Copyright(C) 2017-2020 fendo公司
-* @date 2022-11-04
-*/
-package com.txz.cif.dto;
-
-import java.io.Serializable;
-import java.math.BigDecimal;
-import java.util.Date;
-
-public class OrgContractDTO implements Serializable {
-    /**
-     * 
-     */
-    private Long id;
-
-    /**
-     * 发起端组织id
-     */
-    private Long sponsorOrgId;
-
-    /**
-     * 接收端组织id
-     */
-    private Long receivingOrgId;
-
-    /**
-     * 状态 1正常 2解约
-     */
-    private Integer status;
-
-    /**
-     * 合同到期时间
-     */
-    private Date endTime;
-
-    /**
-     * 结算类型 1平台结算  2组织结算
-     */
-    private Integer settleType;
-
-    /**
-     * 结算固定值/笔
-     */
-    private BigDecimal settleFixed;
-
-    /**
-     * 创建时间
-     */
-    private Date createTime;
-
-    /**
-     * 更新时间
-     */
-    private Date updateTime;
-
-    /**
-     * c_org_contract
-     */
-    private static final long serialVersionUID = 1L;
-
-    /**
-     * 
-     * @return id 
-     */
-    public Long getId() {
-        return id;
-    }
-
-    /**
-     * 
-     * @param id 
-     */
-    public void setId(Long id) {
-        this.id = id;
-    }
-
-    /**
-     * 发起端组织id
-     * @return sponsor_org_id 发起端组织id
-     */
-    public Long getSponsorOrgId() {
-        return sponsorOrgId;
-    }
-
-    /**
-     * 发起端组织id
-     * @param sponsorOrgId 发起端组织id
-     */
-    public void setSponsorOrgId(Long sponsorOrgId) {
-        this.sponsorOrgId = sponsorOrgId;
-    }
-
-    /**
-     * 接收端组织id
-     * @return receiving_org_id 接收端组织id
-     */
-    public Long getReceivingOrgId() {
-        return receivingOrgId;
-    }
-
-    /**
-     * 接收端组织id
-     * @param receivingOrgId 接收端组织id
-     */
-    public void setReceivingOrgId(Long receivingOrgId) {
-        this.receivingOrgId = receivingOrgId;
-    }
-
-    /**
-     * 状态 1正常 2解约
-     * @return status 状态 1正常 2解约
-     */
-    public Integer getStatus() {
-        return status;
-    }
-
-    /**
-     * 状态 1正常 2解约
-     * @param status 状态 1正常 2解约
-     */
-    public void setStatus(Integer status) {
-        this.status = status;
-    }
-
-    /**
-     * 合同到期时间
-     * @return end_time 合同到期时间
-     */
-    public Date getEndTime() {
-        return endTime;
-    }
-
-    /**
-     * 合同到期时间
-     * @param endTime 合同到期时间
-     */
-    public void setEndTime(Date endTime) {
-        this.endTime = endTime;
-    }
-
-    /**
-     * 结算类型 1平台结算  2组织结算
-     * @return settle_type 结算类型 1平台结算  2组织结算
-     */
-    public Integer getSettleType() {
-        return settleType;
-    }
-
-    /**
-     * 结算类型 1平台结算  2组织结算
-     * @param settleType 结算类型 1平台结算  2组织结算
-     */
-    public void setSettleType(Integer settleType) {
-        this.settleType = settleType;
-    }
-
-    /**
-     * 结算固定值/笔
-     * @return settle_fixed 结算固定值/笔
-     */
-    public BigDecimal getSettleFixed() {
-        return settleFixed;
-    }
-
-    /**
-     * 结算固定值/笔
-     * @param settleFixed 结算固定值/笔
-     */
-    public void setSettleFixed(BigDecimal settleFixed) {
-        this.settleFixed = settleFixed;
-    }
-
-    /**
-     * 创建时间
-     * @return create_time 创建时间
-     */
-    public Date getCreateTime() {
-        return createTime;
-    }
-
-    /**
-     * 创建时间
-     * @param createTime 创建时间
-     */
-    public void setCreateTime(Date createTime) {
-        this.createTime = createTime;
-    }
-
-    /**
-     * 更新时间
-     * @return update_time 更新时间
-     */
-    public Date getUpdateTime() {
-        return updateTime;
-    }
-
-    /**
-     * 更新时间
-     * @param updateTime 更新时间
-     */
-    public void setUpdateTime(Date updateTime) {
-        this.updateTime = updateTime;
-    }
-}

+ 0 - 100
cif-api/src/main/java/com/txz/cif/dto/OrgDTO.java

@@ -1,100 +0,0 @@
-/*
-*
-* OrgDTO.java
-* Copyright(C) 2017-2020 fendo公司
-* @date 2022-11-02
-*/
-package com.txz.cif.dto;
-
-import lombok.Data;
-
-import java.io.Serializable;
-import java.math.BigDecimal;
-import java.util.Date;
-
-@Data
-public class OrgDTO implements Serializable {
-    /**
-     * 
-     */
-    private Long id;
-
-    private Long settlePlanId;
-
-    /**
-     * 资金账户(目前只有一个)
-     */
-    private Long accountId;
-
-    public Long getUserId() {
-        return userId;
-    }
-
-    public void setUserId(Long userId) {
-        this.userId = userId;
-    }
-
-    private Long userId;
-
-    /**
-     * 组织名称
-     */
-    private String name;
-
-    /**
-     * 地址
-     */
-    private String address;
-
-    /**
-     * 图标
-     */
-    private String icon;
-
-    /**
-     * 状态 1正常 2禁用
-     */
-    private Integer status;
-
-    /**
-     * 类型 1专家组织 2医院
-     */
-    private Integer type;
-
-    /**
-     * 公告
-     */
-    private String notice;
-
-    /**
-     * 固定金额/病例
-     */
-    private BigDecimal settleFixed;
-
-    /**
-     * 销售员id
-     */
-    private Long salesmanId;
-
-    /**
-     * 销售提成固定金额/病例
-     */
-    private BigDecimal salesSettleFixed;
-
-    /**
-     * 创建时间
-     */
-    private Date createTime;
-
-    /**
-     * 更新时间
-     */
-    private Date updateTime;
-
-    /**
-     * c_org
-     */
-    private static final long serialVersionUID = 1L;
-
-
-}

+ 0 - 79
cif-api/src/main/java/com/txz/cif/dto/OrgHospitalDTO.java

@@ -1,79 +0,0 @@
-/*
-*
-* OrgHospitalDTO.java
-* Copyright(C) 2017-2020 fendo公司
-* @date 2022-11-11
-*/
-package com.txz.cif.dto;
-
-import java.io.Serializable;
-
-public class OrgHospitalDTO implements Serializable {
-    /**
-     * 
-     */
-    private Long id;
-
-    /**
-     * 
-     */
-    private Long orgId;
-
-    /**
-     * 
-     */
-    private Long hospitalId;
-
-    /**
-     * c_org_hospital
-     */
-    private static final long serialVersionUID = 1L;
-
-    /**
-     * 
-     * @return id 
-     */
-    public Long getId() {
-        return id;
-    }
-
-    /**
-     * 
-     * @param id 
-     */
-    public void setId(Long id) {
-        this.id = id;
-    }
-
-    /**
-     * 
-     * @return org_id 
-     */
-    public Long getOrgId() {
-        return orgId;
-    }
-
-    /**
-     * 
-     * @param orgId 
-     */
-    public void setOrgId(Long orgId) {
-        this.orgId = orgId;
-    }
-
-    /**
-     * 
-     * @return hospital_id 
-     */
-    public Long getHospitalId() {
-        return hospitalId;
-    }
-
-    /**
-     * 
-     * @param hospitalId 
-     */
-    public void setHospitalId(Long hospitalId) {
-        this.hospitalId = hospitalId;
-    }
-}

+ 0 - 207
cif-api/src/main/java/com/txz/cif/dto/OrgUserDTO.java

@@ -1,207 +0,0 @@
-/*
-*
-* OrgUserDTO.java
-* Copyright(C) 2017-2020 fendo公司
-* @date 2022-11-02
-*/
-package com.txz.cif.dto;
-
-import java.io.Serializable;
-import java.math.BigDecimal;
-import java.util.Date;
-
-public class OrgUserDTO implements Serializable {
-    /**
-     * 
-     */
-    private Long id;
-
-    /**
-     * 组织id
-     */
-    private Long orgId;
-
-    /**
-     * 用户id
-     */
-    private Long userId;
-
-    /**
-     * 状态 1正常 2已解约
-     */
-    private Integer status;
-
-    /**
-     * 合同到期时间
-     */
-    private Date endTime;
-
-    /**
-     * 类型 1平台单笔结算 2组织结算
-     */
-    private Integer settleType;
-
-    /**
-     * 结算固定值/笔
-     */
-    private BigDecimal settleFixed;
-
-    /**
-     * 创建时间
-     */
-    private Date createTime;
-
-    /**
-     * 更新时间
-     */
-    private Date updateTime;
-
-    /**
-     * c_org_user
-     */
-    private static final long serialVersionUID = 1L;
-
-    /**
-     * 
-     * @return id 
-     */
-    public Long getId() {
-        return id;
-    }
-
-    /**
-     * 
-     * @param id 
-     */
-    public void setId(Long id) {
-        this.id = id;
-    }
-
-    /**
-     * 组织id
-     * @return org_id 组织id
-     */
-    public Long getOrgId() {
-        return orgId;
-    }
-
-    /**
-     * 组织id
-     * @param orgId 组织id
-     */
-    public void setOrgId(Long orgId) {
-        this.orgId = orgId;
-    }
-
-    /**
-     * 用户id
-     * @return user_id 用户id
-     */
-    public Long getUserId() {
-        return userId;
-    }
-
-    /**
-     * 用户id
-     * @param userId 用户id
-     */
-    public void setUserId(Long userId) {
-        this.userId = userId;
-    }
-
-    /**
-     * 状态 1正常 2已解约
-     * @return status 状态 1正常 2已解约
-     */
-    public Integer getStatus() {
-        return status;
-    }
-
-    /**
-     * 状态 1正常 2已解约
-     * @param status 状态 1正常 2已解约
-     */
-    public void setStatus(Integer status) {
-        this.status = status;
-    }
-
-    /**
-     * 合同到期时间
-     * @return end_time 合同到期时间
-     */
-    public Date getEndTime() {
-        return endTime;
-    }
-
-    /**
-     * 合同到期时间
-     * @param endTime 合同到期时间
-     */
-    public void setEndTime(Date endTime) {
-        this.endTime = endTime;
-    }
-
-    /**
-     * 类型 1平台单笔结算 2组织结算
-     * @return settle_type 类型 1平台单笔结算 2组织结算
-     */
-    public Integer getSettleType() {
-        return settleType;
-    }
-
-    /**
-     * 类型 1平台单笔结算 2组织结算
-     * @param settleType 类型 1平台单笔结算 2组织结算
-     */
-    public void setSettleType(Integer settleType) {
-        this.settleType = settleType;
-    }
-
-    /**
-     * 结算固定值/笔
-     * @return settle_fixed 结算固定值/笔
-     */
-    public BigDecimal getSettleFixed() {
-        return settleFixed;
-    }
-
-    /**
-     * 结算固定值/笔
-     * @param settleFixed 结算固定值/笔
-     */
-    public void setSettleFixed(BigDecimal settleFixed) {
-        this.settleFixed = settleFixed;
-    }
-
-    /**
-     * 创建时间
-     * @return create_time 创建时间
-     */
-    public Date getCreateTime() {
-        return createTime;
-    }
-
-    /**
-     * 创建时间
-     * @param createTime 创建时间
-     */
-    public void setCreateTime(Date createTime) {
-        this.createTime = createTime;
-    }
-
-    /**
-     * 更新时间
-     * @return update_time 更新时间
-     */
-    public Date getUpdateTime() {
-        return updateTime;
-    }
-
-    /**
-     * 更新时间
-     * @param updateTime 更新时间
-     */
-    public void setUpdateTime(Date updateTime) {
-        this.updateTime = updateTime;
-    }
-}

+ 15 - 0
cif-api/src/main/java/com/txz/cif/service/RedEnvelopeDubboService.java

@@ -0,0 +1,15 @@
+package com.txz.cif.service;
+
+
+import com.txz.cif.dto.EarningsDTO;
+import com.txz.cif.dto.Result;
+import com.txz.cif.dto.UserDTO;
+
+import java.util.List;
+
+public interface RedEnvelopeDubboService {
+
+
+    List<EarningsDTO> getEarningsByOrders(List<String> orders);
+
+}

+ 3 - 0
cif-service/src/main/java/com/txz/cif/dao/RedEnvelopeMapper.java

@@ -1,6 +1,7 @@
 package com.txz.cif.dao;
 
 import com.txz.cif.core.Mapper;
+import com.txz.cif.dto.EarningsDTO;
 import com.txz.cif.model.RedEnvelope;
 import com.txz.cif.web.bo.UserTopBo;
 
@@ -14,4 +15,6 @@ public interface RedEnvelopeMapper extends Mapper<RedEnvelope> {
 
 
     List<UserTopBo> top(HashMap<String, Object> map);
+
+    EarningsDTO sumWithOrderNo(String orderNo);
 }

+ 47 - 0
cif-service/src/main/java/com/txz/cif/dubbo/impl/RedEnvelopeDubboServiceImpl.java

@@ -0,0 +1,47 @@
+package com.txz.cif.dubbo.impl;
+
+import cn.hutool.core.bean.BeanUtil;
+import cn.hutool.core.collection.CollectionUtil;
+import cn.hutool.core.date.DateUtil;
+import com.txz.cif.core.RedisUtil;
+import com.txz.cif.core.cache.CacheKey;
+import com.txz.cif.core.cache.CacheType;
+import com.txz.cif.dto.EarningsDTO;
+import com.txz.cif.dto.Result;
+import com.txz.cif.dto.UserDTO;
+import com.txz.cif.model.User;
+import com.txz.cif.service.RedEnvelopeDubboService;
+import com.txz.cif.service.RedEnvelopeService;
+import com.txz.cif.service.UserDubboService;
+import com.txz.cif.service.UserService;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.dubbo.config.annotation.DubboService;
+import org.apache.dubbo.config.annotation.Service;
+
+import javax.annotation.Resource;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+@Slf4j
+@DubboService(timeout = 1200000)
+public class RedEnvelopeDubboServiceImpl implements RedEnvelopeDubboService {
+    
+    @Resource
+    private RedisUtil redisUtil;
+    
+    @Resource
+    private RedEnvelopeService redEnvelopeService;
+
+
+    @Override
+    public List<EarningsDTO> getEarningsByOrders(List<String> orders) {
+        List<EarningsDTO> ret = new ArrayList<>();
+        for (String orderNo : orders){
+            EarningsDTO dto  =  redEnvelopeService.sumWithOrderNo(orderNo);
+            ret.add(dto);
+        }
+        return ret;
+    }
+}

+ 3 - 0
cif-service/src/main/java/com/txz/cif/service/RedEnvelopeService.java

@@ -1,4 +1,5 @@
 package com.txz.cif.service;
+import com.txz.cif.dto.EarningsDTO;
 import com.txz.cif.dto.Result;
 import com.txz.cif.model.RedEnvelope;
 import com.txz.cif.core.Service;
@@ -27,4 +28,6 @@ public interface RedEnvelopeService extends Service<RedEnvelope> {
     BigDecimal sumWithDay(Integer day, Long userId,Integer type);
 
     List<UserTopBo> top(Integer type, Integer page, Integer size);
+
+    EarningsDTO sumWithOrderNo(String orderNo);
 }

+ 6 - 0
cif-service/src/main/java/com/txz/cif/service/impl/RedEnvelopeServiceImpl.java

@@ -6,6 +6,7 @@ import cn.hutool.core.util.IdUtil;
 import com.github.pagehelper.PageHelper;
 import com.txz.cif.constants.MyConstants;
 import com.txz.cif.dao.RedEnvelopeMapper;
+import com.txz.cif.dto.EarningsDTO;
 import com.txz.cif.dto.Result;
 import com.txz.cif.dubbo.client.OperatingConfigDubboServiceClient;
 import com.txz.cif.enums.BizTypeEnum;
@@ -108,6 +109,11 @@ public class RedEnvelopeServiceImpl extends AbstractService<RedEnvelope> impleme
         return cRedEnvelopeMapper.top( map);
     }
 
+    @Override
+    public EarningsDTO sumWithOrderNo(String orderNo) {
+        return cRedEnvelopeMapper.sumWithOrderNo(orderNo);
+    }
+
     /**
      * 构建红包对象
      * @param userId

+ 6 - 0
cif-service/src/main/resources/mapper/RedEnvelopeMapper.xml

@@ -58,4 +58,10 @@
     ORDER BY
     L7DEarnings DESC
   </select>
+
+  <select id="sumWithOrderNo" resultType="com.txz.cif.dto.EarningsDTO">
+    SELECT SUM(amount) AS earnings, user_id as userId,order_no as orderNo
+    FROM c_red_envelope
+    WHERE order_no=#{orderNo}
+  </select>
 </mapper>