phis-feign/src/main/java/com/hz/his/feign/service/SWxTokenService.java
@@ -14,7 +14,7 @@ /** *获取小程序企业微信应用token * 转化使用 WxTokenVo * 转化使用 WxTokenDt * @param getTokenDto 对象 * @return */ @@ -23,7 +23,7 @@ /** *获取小程序平台token * 转化使用 WxTokenVo * 转化使用 WxTokenDt * @param getTokenDto 对象 * @return */ phis-feign/src/main/java/com/hz/phis/dt/AccessTokenDt.java
New file @@ -0,0 +1,28 @@ package com.hz.phis.dt; import com.alibaba.fastjson.annotation.JSONField; import lombok.Data; @Data public class AccessTokenDt { /**错误码*/ private String code; /**错误信息*/ private String msg; /**凭证*/ @JSONField(name = "access_token") private String accessToken; /**凭证的有效时间*/ @JSONField(name = "expires_surplus") private long expiresIn; /**剩余有效时间(秒)*/ @JSONField(name = "expires_surplus") private long expiresSurplus; /**有效时间开始时间*/ @JSONField(name = "create_time") private String createTime; } phis-feign/src/main/java/com/hz/phis/dt/BaseDt.java
New file @@ -0,0 +1,59 @@ package com.hz.phis.dt; import java.io.Serializable; import java.util.Date; /** * 基础实体类 */ public class BaseDt implements Serializable { private String id; private Integer isDel; private Date createTime; private Date editTime; public static final int NO = 0; public static final int YES = 1; public BaseDt() { } public String getId() { return id; } public void setId(String id) { this.id = id; } public Integer getIsDel() { return isDel; } public void setIsDel(Integer isDel) { this.isDel = isDel; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public Date getEditTime() { return editTime; } public void setEditTime(Date editTime) { this.editTime = editTime; } } phis-feign/src/main/java/com/hz/phis/dt/BaseRequestDt.java
New file @@ -0,0 +1,37 @@ package com.hz.phis.dt; /**基础接收 * */ public class BaseRequestDt { /**错误码*/ private String code; /**错误信息*/ private String msg; /**数据源*/ private String data; public String getCode() { return code; } public void setCode(String code) { this.code = code; } public String getMsg() { return msg; } public void setMsg(String msg) { this.msg = msg; } public String getData() { return data; } public void setData(String data) { this.data = data; } } phis-feign/src/main/java/com/hz/phis/dt/ListDt.java
New file @@ -0,0 +1,29 @@ package com.hz.phis.dt; import lombok.Data; import java.util.List; import java.util.Map; /** * 列表接收实体 * @author fwq * * */ @Data public class ListDt { /**总数量*/ private Integer total; /**每页数量*/ private Integer pages; /**页*/ private Integer pageNum; /**每页数量*/ private Integer pageSize; /**是否最后一页*/ private Boolean isLastPage; /**集合*/ private List<Map<String,Object>> list; } phis-feign/src/main/java/com/hz/phis/dt/card/CardDetailListDt.java
New file @@ -0,0 +1,21 @@ package com.hz.phis.dt.card; import com.hz.phis.dt.limit.LimitDt; import lombok.Data; import java.util.List; /** * 促销权益详情实体 * * @author fwq */ @Data public class CardDetailListDt extends CardListDt { /**卡项详情信息*/ private List<CardEquityDt> cardInfoList; /**限制信息*/ private LimitDt limitBo; } phis-feign/src/main/java/com/hz/phis/dt/card/CardDt.java
New file @@ -0,0 +1,14 @@ package com.hz.phis.dt.card; import lombok.Data; /** * 卡项列表实体 * * @author fwq */ @Data public class CardDt { private CardDetailListDt cardItem; } phis-feign/src/main/java/com/hz/phis/dt/card/CardEquityDt.java
New file @@ -0,0 +1,31 @@ package com.hz.phis.dt.card; import lombok.Data; import java.math.BigDecimal; import java.util.List; /** * 卡项权益实体 * * @author fwq */ @Data public class CardEquityDt { /**卡项权益信息标识*/ private String id; /**权益类型*/ private Integer equityType; /**组名称*/ private String groupName; /**条件值(用于N选几,几次卡等)*/ private Integer value; /**分摊金额(默认为0)*/ private BigDecimal shareMoney; /**指数 (同一个组名称可能有多个指数)*/ private Integer indexValue; /**卡项标识*/ private String cardItemId; /**详情*/ private List<CardInfoDt> infoList; } phis-feign/src/main/java/com/hz/phis/dt/card/CardInfoDt.java
New file @@ -0,0 +1,46 @@ package com.hz.phis.dt.card; import lombok.Data; import java.math.BigDecimal; /** * 卡项详情实体 * * @author fwq */ @Data public class CardInfoDt { /**卡项详情信息标识*/ private String id; /**编号(项目/商品/增值金/储值金/积分/项目分类/商品分类)*/ private String commonCode; /**公共标识(项目/商品/增值金(PaymentMethod)/储值金(PaymentMethod)/积分(PaymentMethod)*/ private String commonId; /**公共名称(项目/商品名称/增值金(PaymentMethod)/储值金(PaymentMethod)/积分(PaymentMethod)*/ private String commonName; /**公共类型(project项目,retail商品,increment增值金,stored储值金,integral积分,项目分类project_type,retail_type商品分类)*/ private String commonType; /**规格*/ private String specJson; /**单价原价*/ private BigDecimal price; /**最大次数*/ private Integer maxNum; /**员工业绩次数*/ private Integer emResultsNum; /**分摊金额*/ private BigDecimal shareMoney; /**每次划扣的扣减次数*/ private Integer everyDrawNum; /**每次划扣的分摊金额*/ private BigDecimal everyShareMoney; /**卡项标识*/ private String cardItemId; /**卡项权益标识*/ private String cardEquityId; /**使用数量*/ private Integer usedNum; } phis-feign/src/main/java/com/hz/phis/dt/card/CardItemDt.java
New file @@ -0,0 +1,14 @@ package com.hz.phis.dt.card; import lombok.Data; /** * 卡项列表实体 * * @author fwq */ @Data public class CardItemDt { private String id; } phis-feign/src/main/java/com/hz/phis/dt/card/CardListDt.java
New file @@ -0,0 +1,42 @@ package com.hz.phis.dt.card; import com.fasterxml.jackson.annotation.JsonFormat; import com.hz.phis.dt.BaseDt; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import java.math.BigDecimal; import java.util.List; /** * 卡项列表实体 * * @author fwq */ @Data public class CardListDt extends BaseDt { /**上下架*/ private Integer isUp; /**编号*/ private String code; /**卡项名*/ private String name; /**状态 inactivated未开始,sales销售中,off_shelves暂停销售,overdue过期,disabled作废*/ private String status; /**卡项总金额,以元为存储(全部金额,包括优惠价格,售价)*/ private BigDecimal total; /**门店标识*/ private String shopId; /**门店名称*/ private String shopName; /**有效开始时间*/ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") private String startTime; /**有效结束时间*/ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") private String endTime; /**列表*/ private List<CardItemDt> list; } phis-feign/src/main/java/com/hz/phis/dt/channel/ChannelDt.java
New file @@ -0,0 +1,24 @@ package com.hz.phis.dt.channel; public class ChannelDt { private String id; private String name; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } } phis-feign/src/main/java/com/hz/phis/dt/channel/ChannelListDt.java
New file @@ -0,0 +1,17 @@ package com.hz.phis.dt.channel; import java.util.List; public class ChannelListDt { private List<ChannelDt> list; public List<ChannelDt> getList() { return list; } public void setList(List<ChannelDt> list) { this.list = list; } } phis-feign/src/main/java/com/hz/phis/dt/consumables/GoodsDeLimitDt.java
New file @@ -0,0 +1,17 @@ package com.hz.phis.dt.consumables; import com.hz.phis.dt.limit.LimitDt; import lombok.Data; /** * 商品详情限制实体 * @author fwq * * */ @Data public class GoodsDeLimitDt { /**商品信息*/ private GoodsDetailDt consumables; /**限制信息*/ private LimitDt limitBo; } phis-feign/src/main/java/com/hz/phis/dt/consumables/GoodsDetailDt.java
New file @@ -0,0 +1,175 @@ package com.hz.phis.dt.consumables; import com.hz.phis.dt.BaseDt; import lombok.Data; import java.math.BigDecimal; /** * 商品详情实体 * @author fwq * * */ @Data public class GoodsDetailDt extends BaseDt { /**类型(1商品2药品)*/ private Integer type; /**编号*/ private String serialNumber; /**默认进价*/ private BigDecimal buyPrice; /**售价*/ private BigDecimal price; /**最高零售价格(元)*/ private BigDecimal priceMax; /**最低零售价格(元)*/ private BigDecimal priceMin; /**耗材名称(中文名称)*/ private String name; /**规格*/ private String spec; /**单位*/ private String unitIdCode; /**单位名称*/ private String unitName; /**是否上下架*/ private Integer isUp; /**分类标识*/ private String consumablesTypeId; /**分类名称*/ private String consumablesTypeName; /**中文简称*/ private String abbreviation; /**英文名称*/ private String englishName; /**英文简称*/ private String englishAbbreviation; /**类型编码*/ private String typeCode; /**类型名称*/ private String typeName; /**品牌*/ private String brand; /**产地*/ private String origin; /**最小起订量*/ private String minimumOrderQuantity; /**生产厂家*/ private String manufacturer; /**厂家条形码*/ private String manufacturerBarcode; /**内部条形码*/ private String internalBarcode; /**批准文号*/ private String approvalNum; /**注册证号*/ private String registerNum; /**备案号*/ private String recordNum; /**标准编码*/ private String standardCode; /**标准名称*/ private String standardName; /**标签*/ private String tag; /**搜索拼音*/ private String searchPinyin; /**采购类型*/ private String purchaseTypeCode; /**采购类型名称*/ private String purchaseTypeName; /**收入计入*/ private String incomeIncludedCode; /**收入计入名称*/ private String incomeIncludedName; /**收入主体*/ private String incomeSubjectCode; /**收入主体名称*/ private String incomeSubjectName; /**使用说明*/ private String usageCode; /**使用说明名称*/ private String usageName; /**价格标签*/ private String priceTagCode; /**价格标签名称*/ private String priceTagName; /**科室标识*/ private String familiesRoomCode; /**科室名称*/ private String departmentName; /**是否基药*/ private Integer isBaseMedicine; /**是否批号管理*/ private Integer isBatchNumber; /**是否赠送积分*/ private Integer isGiftPoints; /**是否可售*/ private Integer isAvailableForSale; /**是否成交*/ private Integer isMakeADeal; /**是否院内自制*/ private Integer HomeMade ; /**备注*/ private String remark; /**hisId*/ private String hisId; /**********商品字段***************/ /**耗材标识*/ private String consumableId; /**是否植入材料*/ private Integer isImplantMaterial; /**是否高值耗材*/ private Integer isHighValue; /**业态*/ private String formatCode; /**业态名*/ private String format; /*********药品字段*********************/ /**药品通用名*/ private String commonName; /**是否是处方药*/ private Integer isPrescription; /**处方资质*/ private String prescription; /**处方资质名称*/ private String prescriptionName; /**是否注射剂*/ private Integer injection; /**剂型*/ private String dosageForm; /**剂型名称*/ private String dosFormName; /**剂量*/ private Integer dose; /**剂量单位*/ private String doseUnit; /**剂量单位名*/ private String doseUnitName; /**包装数量*/ private Integer packageNum; /**小包装单位*/ private String smallUnit; /**小包装单位名*/ private String smaUnitName; /**频次*/ private String frequency; /**频次名*/ private String frequencyName; /**抗菌药物标识*/ private String antibioticsCode; /**抗菌药物名*/ private String antibioticsName; /**抗菌药物分级管理*/ private String antibioticsGrade; /**抗菌药物分级管理名*/ private String antGradeName; /**统计分类*/ private String statisticSort; /**统计分类名*/ private String staSortName; /**药品大类*/ private String bigTypeCode; /**药品大类名*/ private String bigTypeName; } phis-feign/src/main/java/com/hz/phis/dt/consumables/GoodsDt.java
New file @@ -0,0 +1,14 @@ package com.hz.phis.dt.consumables; import lombok.Data; /** * 商品列表实体 * @author fwq * * */ @Data public class GoodsDt { /**p-his的商品标识*/ private String id; } phis-feign/src/main/java/com/hz/phis/dt/consumables/GoodsListDt.java
New file @@ -0,0 +1,50 @@ package com.hz.phis.dt.consumables; import lombok.Data; import java.util.List; /** * 商品列表实体 * @author fwq * * */ @Data public class GoodsListDt { /**p-his的商品标识*/ private String id; /**商品名称*/ private String name; /**商品编号*/ private String serialNumber; /**商品标准编码*/ private String standardCode; /**商品标准名称*/ private String standardName; /**商品规格*/ private String spec; /**商品单位*/ private String unitIdCode; /**商品单位名称*/ private String unitName; /**售价*/ private String price; /**进价*/ private String buyPrice; /**最高零售价格*/ private String priceMax; /**最低零售价格*/ private String priceMin; /**价格标签*/ private String priceTagCode; /**价格标签名称*/ private String priceTagName; /**科室标识*/ private String familiesRoomCode; /**科室名称*/ private String departmentName; /**删除*/ private Integer isDel; private List<GoodsDt> list; } phis-feign/src/main/java/com/hz/phis/dt/consumables/GoodsTypeListDt.java
New file @@ -0,0 +1,28 @@ package com.hz.phis.dt.consumables; import lombok.Data; import java.util.List; /** * 商品分类列表实体 * @author fwq * * */ @Data public class GoodsTypeListDt { /**商品分类标识*/ private String id; /**商品分类名称*/ private String name; /**商品分类等级*/ private String level; /**商品分类父级*/ private String parentId; /**商品hisId*/ private String appId; /**商品类型service服务项目drug药品goods商品*/ private String type; /**子级*/ private List children; } phis-feign/src/main/java/com/hz/phis/dt/coupon/CouponAppointDt.java
New file @@ -0,0 +1,18 @@ package com.hz.phis.dt.coupon; import lombok.Data; /** * 同步优惠券指定列表实体 * * @author fwq */ @Data public class CouponAppointDt { /**类型*/ private String type; /**共用标识*/ private String commonId; /**优惠券标识*/ private String couponId; } phis-feign/src/main/java/com/hz/phis/dt/coupon/CouponListDt.java
New file @@ -0,0 +1,82 @@ package com.hz.phis.dt.coupon; import com.hz.phis.dt.limit.LimitDt; import lombok.Data; import java.math.BigDecimal; import java.util.List; /** * 同步优惠券列表实体 * * @author fwq */ @Data public class CouponListDt { /**标识*/ private String id; /**优惠券标题*/ private String title; /**描述*/ private String describeInfo; /**是否上架*/ private Integer isUp; /**使用须知*/ private String useKnowInfo; /**注意事项*/ private String carefulInfo; /**使用类型*/ private Integer useType; /**项目使用类型(0指定项目,1项目通用)*/ private Integer useProjectType; /**商品使用类型(2指定商品,3商品通用)*/ private Integer useGoodsType; /**是否展示*/ private Integer isShow; /**展示开始时间*/ private String startShowTime; /**展示结束时间*/ private String endShowTime; /**条件类型*/ private Integer conditionType; /**满足金额(元)(满足该金额便可用)*/ private BigDecimal amountSatisfied; /**满足件数(满足该商品件数便可用,暂时预留)*/ private Integer itemNum; /**优惠类型*/ private Integer type; /**优惠金额(元)*/ private BigDecimal discountAmount; /**优惠折扣*/ private Double discountNum; /**计时类型*/ private Integer timeType ; /**叠加时长(年)*/ public Integer yearNum ; /**叠加时长(月)*/ public Integer monthNum ; /**叠加时长(日)*/ public Integer dayNum ; /**叠加时长(小时)*/ public Integer hoursNum ; /**有效开始时间*/ private String startTime; /**有效结束时间*/ private String endTime; /**是否能使用增值金*/ private Integer isIncrement; /**排序*/ private Integer sortNum; /**phis标识*/ private String hisId; /**删除*/ private Integer isDel; /**原价*/ private BigDecimal originalPrice; /**现价*/ private BigDecimal price; /**指定*/ private List<CouponAppointDt> appointList; /**限制信息*/ private LimitDt limitDt; } phis-feign/src/main/java/com/hz/phis/dt/employee/EmployeeDt.java
New file @@ -0,0 +1,260 @@ package com.hz.phis.dt.employee; import com.hz.phis.dt.BaseDt; /** * * 员工 * Date:2021/8/4 17:35 */ public class EmployeeDt extends BaseDt { /**错误码*/ private String code; /**错误信息*/ private String msg; /**微信unionId*/ private String unionId; /**企业微信内用户id*/ private String userId; /**中文名称*/ private String cnName; /**英文名称*/ private String enName; /**联系电话*/ private String tel; /**邮箱*/ private String email; /**头像*/ private String imgUrl; /**his接口id*/ private String apiId; /**是否在职*/ private Integer isJob = NO; /**性别0男1女*/ private Integer gender = NO; /**员工编号*/ private String employeeNo; /**最后一次选择角色id*/ private String roleId; /**是否同步角色*/ private Integer isSyncRole = YES; /**sql语句返回使用字段*/ private String shopId; private String shopName; private String shopHisId; private String roleName; private String roleStr; private String roleTypeId; private String adminRoleId; public EmployeeDt() { } public String getUnionId() { return unionId; } public void setUnionId(String unionId) { this.unionId = unionId; } public String getUserId() { return userId; } public void setUserId(String userId) { this.userId = userId; } public String getCnName() { return cnName; } public void setCnName(String cnName) { this.cnName = cnName; } public String getEnName() { return enName; } public void setEnName(String enName) { this.enName = enName; } public String getTel() { return tel; } public void setTel(String tel) { this.tel = tel; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getImgUrl() { return imgUrl; } public void setImgUrl(String imgUrl) { this.imgUrl = imgUrl; } public String getApiId() { return apiId; } public void setApiId(String apiId) { this.apiId = apiId; } public Integer getIsJob() { return isJob; } public void setIsJob(Integer isJob) { this.isJob = isJob; } public Integer getGender() { return gender; } public void setGender(Integer gender) { this.gender = gender; } public String getShopId() { return shopId; } public void setShopId(String shopId) { this.shopId = shopId; } public String getRoleStr() { return roleStr; } public void setRoleStr(String roleStr) { this.roleStr = roleStr; } public String getEmployeeNo() { return employeeNo; } public void setEmployeeNo(String employeeNo) { this.employeeNo = employeeNo; } public String getShopName() { return shopName; } public void setShopName(String shopName) { this.shopName = shopName; } public String getRoleId() { return roleId; } public void setRoleId(String roleId) { this.roleId = roleId; } public String getRoleName() { return roleName; } public void setRoleName(String roleName) { this.roleName = roleName; } public Integer getIsSyncRole() { return isSyncRole; } public void setIsSyncRole(Integer isSyncRole) { this.isSyncRole = isSyncRole; } public String getShopHisId() { return shopHisId; } public void setShopHisId(String shopHisId) { this.shopHisId = shopHisId; } public String getRoleTypeId() { return roleTypeId; } public void setRoleTypeId(String roleTypeId) { this.roleTypeId = roleTypeId; } public String getAdminRoleId() { return adminRoleId; } public void setAdminRoleId(String adminRoleId) { this.adminRoleId = adminRoleId; } public String getCode() { return code; } public void setCode(String code) { this.code = code; } public String getMsg() { return msg; } public void setMsg(String msg) { this.msg = msg; } @Override public String toString() { return "Employee{" + "code='" + code + '\'' + ", msg='" + msg + '\'' + ", unionId='" + unionId + '\'' + ", userId='" + userId + '\'' + ", cnName='" + cnName + '\'' + ", enName='" + enName + '\'' + ", tel='" + tel + '\'' + ", email='" + email + '\'' + ", imgUrl='" + imgUrl + '\'' + ", apiId='" + apiId + '\'' + ", isJob=" + isJob + ", gender=" + gender + ", employeeNo='" + employeeNo + '\'' + ", roleId='" + roleId + '\'' + ", isSyncRole=" + isSyncRole + ", shopId='" + shopId + '\'' + ", shopName='" + shopName + '\'' + ", shopHisId='" + shopHisId + '\'' + ", roleName='" + roleName + '\'' + ", roleStr='" + roleStr + '\'' + ", roleTypeId='" + roleTypeId + '\'' + ", adminRoleId='" + adminRoleId + '\'' + '}'; } } phis-feign/src/main/java/com/hz/phis/dt/employee/EmployeeListDt.java
New file @@ -0,0 +1,112 @@ package com.hz.phis.dt.employee; import com.hz.phis.dt.BaseDt; import java.util.List; /** * * 员工 * Date:2021/8/4 17:35 */ public class EmployeeListDt extends BaseDt { /**错误码*/ private String code; /**错误信息*/ private String msg; private Integer total; private Integer pages; private Integer pageNum; private Integer pageSize; private Integer isLastPage; private List<EmployeeDt> employeeList; public EmployeeListDt() { } ////////////////////////////////////////////////////////////////////////////// public String getCode() { return code; } public void setCode(String code) { this.code = code; } public String getMsg() { return msg; } public void setMsg(String msg) { this.msg = msg; } public Integer getTotal() { return total; } public void setTotal(Integer total) { this.total = total; } public Integer getPages() { return pages; } public void setPages(Integer pages) { this.pages = pages; } public Integer getPageNum() { return pageNum; } public void setPageNum(Integer pageNum) { this.pageNum = pageNum; } public Integer getPageSize() { return pageSize; } public void setPageSize(Integer pageSize) { this.pageSize = pageSize; } public Integer getIsLastPage() { return isLastPage; } public void setIsLastPage(Integer isLastPage) { this.isLastPage = isLastPage; } public List<EmployeeDt> getEmployeeList() { return employeeList; } public void setEmployeeList(List<EmployeeDt> employeeList) { this.employeeList = employeeList; } @Override public String toString() { return "EmployeeList{" + "code='" + code + '\'' + ", msg='" + msg + '\'' + ", total=" + total + ", pages=" + pages + ", pageNum=" + pageNum + ", pageSize=" + pageSize + ", isLastPage=" + isLastPage + ", employeeList=" + employeeList + '}'; } } phis-feign/src/main/java/com/hz/phis/dt/employee/EmployeeUpdateDt.java
New file @@ -0,0 +1,40 @@ package com.hz.phis.dt.employee; import com.hz.phis.dt.BaseDt; import lombok.Data; /** * 同步员工实体 * */ @Data public class EmployeeUpdateDt extends BaseDt { /**微信unionId*/ private String unionId; /**企业微信内用户id*/ private String userId; /**中文名称*/ private String cnName; /**英文名称*/ private String enName; /**联系电话*/ private String tel; /**邮箱*/ private String email; /**头像*/ private String imgUrl; /**his接口id*/ private String apiId; /**是否在职*/ private Integer isJob; /**性别0男1女*/ private Integer gender; /**员工编号*/ private String employeeNo; /**最后一次选择角色id*/ private String roleId; /**是否同步角色*/ private Integer isSyncRole; /**roleUniqueStr是tmk_adviser的角色表标识*/ private String tmkId; } phis-feign/src/main/java/com/hz/phis/dt/employee/EmployeeUpdateListDt.java
New file @@ -0,0 +1,14 @@ package com.hz.phis.dt.employee; import com.hz.phis.dt.employee.EmployeeUpdateDt; import lombok.Data; import java.util.List; /** * 同步员工列表实体 * */ @Data public class EmployeeUpdateListDt { private List<EmployeeUpdateDt> list; } phis-feign/src/main/java/com/hz/phis/dt/limit/LimitBirthdayDt.java
New file @@ -0,0 +1,38 @@ package com.hz.phis.dt.limit; import lombok.Data; /** * 生日日期限制 * @author fwq */ @Data public class LimitBirthdayDt { /**限制标识*/ private String id; /**限制类型*/ private Integer limitType; /**年限制*/ private String year; /**月限制*/ private String month; /**日限制*/ private String day; /**限购数量*/ private Integer limitNum; /**限制备注*/ private String remarks; /**限制总标识*/ private String limitTotalId; /**生日-年限制*/ public static final int LIMIT_YEAR = 0; /**生日-月限制*/ public static final int LIMIT_MONTH = 1; /**生日-日限制*/ public static final int LIMIT_DAY = 2; /**组合限制*/ public static final int LIMIT_MIXED = 3; } phis-feign/src/main/java/com/hz/phis/dt/limit/LimitDt.java
New file @@ -0,0 +1,23 @@ package com.hz.phis.dt.limit; import lombok.Data; import java.util.List; /** * 限制 * @author fwq */ @Data public class LimitDt { /**总限制*/ private LimitTotalDt limitTotal; /**平台限制*/ private List<LimitPlatformDt> platformLimitList; /**会员限制*/ private List<LimitMemberDt> memberLimitList; /**生日日期限制*/ private List<LimitBirthdayDt> birthdayLimitList; /**其他限制*/ private List<LimitOtherDt> otherLimitList; } phis-feign/src/main/java/com/hz/phis/dt/limit/LimitListDt.java
New file @@ -0,0 +1,14 @@ package com.hz.phis.dt.limit; import lombok.Data; import java.util.List; /** * 限制 * @author fwq */ @Data public class LimitListDt { private List<LimitUpdateDt> list; } phis-feign/src/main/java/com/hz/phis/dt/limit/LimitMemberDt.java
New file @@ -0,0 +1,32 @@ package com.hz.phis.dt.limit; import lombok.Data; /** * 会员限制 * @author fwq * */ @Data public class LimitMemberDt { /**限制标识*/ private String id; /**限制编码*/ private String code; /**类型*/ private Integer type; /**外键id*/ private String foreignKey; /**会员标识*/ private String memberId; /**限制总标识*/ private String limitTotalId; /**类型-卡项*/ public static final Integer LIMIT_CARD_ITEM = 0; /**类型-促销*/ public static final Integer LIMIT_PROMOTION = 1; /**类型-项目*/ public static final Integer LIMIT_PROJECT = 2; /**类型-商品(耗材)*/ public static final Integer LIMIT_CONSUMABLE = 3; } phis-feign/src/main/java/com/hz/phis/dt/limit/LimitOtherDt.java
New file @@ -0,0 +1,33 @@ package com.hz.phis.dt.limit; import lombok.Data; /** * 其他限制 * @author fwq */ @Data public class LimitOtherDt { /**限制标识*/ private String id; /**公共标识(星座/门店/其他)*/ private String commonId; /**公共名称*/ private String commonName; /**类型*/ private Integer type; /**限制总标识*/ private String limitTotalId; /**星座*/ public static final Integer TYPE_STAR = 0; /**门店*/ public static final Integer TYPE_SHOP = 1; /**渠道*/ public static final Integer TYPE_CHANNEL = 2; /**标签*/ public static final Integer TYPE_LABEL = 3; /**支付方式*/ public static final Integer TYPE_PAY_METHOD = 4; } phis-feign/src/main/java/com/hz/phis/dt/limit/LimitPlatformDt.java
New file @@ -0,0 +1,29 @@ package com.hz.phis.dt.limit; import lombok.Data; /** * 平台限制 * @author fwq */ @Data public class LimitPlatformDt { /**限制标识*/ private String id; /**编码*/ private String code; /**平台名称*/ private String name; /**平台应用appId*/ private String appId; /**类型*/ private Integer type; /**限制总标识*/ private String limitTotalId; /**类型-总平台*/ public static final Integer TYPE_PLATFORM_ALL = 0; /**类型-其他平台*/ public static final Integer TYPE_PLATFORM_OTHER = 1; } phis-feign/src/main/java/com/hz/phis/dt/limit/LimitTotalDt.java
New file @@ -0,0 +1,58 @@ package com.hz.phis.dt.limit; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import java.util.Date; /** * 总限制 * @author fwq */ @Data public class LimitTotalDt { /**限制标识*/ private String id; /**限制编码*/ private String code; /**类型*/ private int type; /**外键id(卡项/促销/项目标识)*/ private String foreignKey; /**限制数量*/ private Integer limitNum; /**限制总数量*/ private Integer limitSumNum; /**客户类别标识*/ private String userTypeId; /**客户类别名称*/ private String userTypeName; /**发布范围(PlatformLimit:code)*/ private String isUpPlatform; /**有效开始时间*/ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") private Date startTime; /**有效结束时间*/ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") private Date endTime; /**最后一次下单开始时间*/ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") private Date lastStartTime; /**最后一次下单结束时间*/ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") private Date lastEndTime; /**类型-卡项*/ public static final Integer LIMIT_CARD_ITEM = 0; /**类型-促销*/ public static final Integer LIMIT_PROMOTION = 1; /**类型-项目*/ public static final Integer LIMIT_PROJECT = 2; /**类型-商品(耗材)*/ public static final Integer LIMIT_CONSUMABLE = 3; } phis-feign/src/main/java/com/hz/phis/dt/limit/LimitUpdateDt.java
New file @@ -0,0 +1,27 @@ package com.hz.phis.dt.limit; import lombok.Data; /** * 限制 * @author fwq */ @Data public class LimitUpdateDt { private String id; private String foreignKey; private Integer type; /**类型-卡项*/ public static final Integer LIMIT_CARD_ITEM = 0; /**类型-促销*/ public static final Integer LIMIT_PROMOTION = 1; /**类型-项目*/ public static final Integer LIMIT_PROJECT = 2; /**类型-商品(耗材)*/ public static final Integer LIMIT_CONSUMABLE = 3; /**类型-SPU*/ public static final Integer LIMIT_SPU = 4; /**类型-活动规则类*/ public static final Integer LIMIT_ACTIVITY = 5; } phis-feign/src/main/java/com/hz/phis/dt/member/MemberLevelDt.java
New file @@ -0,0 +1,24 @@ package com.hz.phis.dt.member; public class MemberLevelDt { private String id; private String name; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } } phis-feign/src/main/java/com/hz/phis/dt/member/MemberListDt.java
New file @@ -0,0 +1,17 @@ package com.hz.phis.dt.member; import java.util.List; public class MemberListDt{ private List<MemberLevelDt> list; public List<MemberLevelDt> getList() { return list; } public void setList(List<MemberLevelDt> list) { this.list = list; } } phis-feign/src/main/java/com/hz/phis/dt/project/ProjectDeLimitBo.java
New file @@ -0,0 +1,17 @@ package com.hz.phis.dt.project; import com.hz.phis.dt.limit.LimitDt; import lombok.Data; /** * 项目详情限制实体 * * @author fwq */ @Data public class ProjectDeLimitBo{ /**项目信息*/ private ProjectDetailBo projectDetail; /**限制信息*/ private LimitDt limitBo; } phis-feign/src/main/java/com/hz/phis/dt/project/ProjectDetailBo.java
New file @@ -0,0 +1,144 @@ package com.hz.phis.dt.project; import com.hz.phis.dt.BaseDt; import lombok.Data; import java.math.BigDecimal; import java.util.List; /** * 项目详情实体 * * @author fwq */ @Data public class ProjectDetailBo extends BaseDt { /**类型0sku 1spu*/ private Integer type; /**项目-上下架*/ private Integer isUp; /**原价*/ private BigDecimal originalPrice; /**销售单价*/ private BigDecimal price; /**治疗时长,以秒为存储单位*/ private Integer useDuration ; /**间隔时间,以秒为存储单位*/ private Integer intervalDuration; /**规格*/ private List<ProjectSpecsBo> projectSpecsBoList; /**sku信息*/ private List<String> skuIdList; /**规格*/ private String specification; /**其他规格*/ private String specOther; /**项目类型标识*/ private String projectTypeId; /**项目类型名称*/ private String projectTypeName; /**项目名称*/ private String name; /**顺序号*/ private Integer orderNum; /**备注*/ private String remark; /**接口id*/ private String apiId; /**接口code*/ private String apiCode; /**his项目名称*/ private String hisName; /**his规格*/ private String hisSpec; /**术前时间,以秒为存储单位*/ private Integer readyDuration; /**项目单位*/ private String unit; /**项目类别(0:医美,1:是否生美)*/ private Integer isLifeBeauty; /**敷麻时间,以秒为存储单位*/ private Integer palsyDuration; /**是否大项目*/ private Integer isBigProject; /**休息间隔,格式:10-20|40-50*/ private String restInterval; /**是否关联设备*/ private Integer isDevice; /**英文名称*/ private String englishName; /**类别*/ private String category; /**疗程次数*/ private String courseCount; /**是否可执行*/ private boolean executable; /**编号*/ private String coding; /**搜索拼音*/ private String searchPinyin; /**标准编码*/ private String standardCode; /**标准名称*/ private String standardName; /**独享时长*/ private Integer exclusive; /**共享时长*/ private Integer sharingTime; /**是否成交*/ private Integer isMakeADeal; /**是否医疗项目*/ private Integer isMedicalIitems; /**是否组合项目*/ private Integer isCombinedProject; /**是否赠送积分*/ private Integer isGiftPoints; /**是否可执行*/ private Integer isExecutable; /**是否疗程项目*/ private Integer isTreatmentItems; /**疗程项目次数*/ private Integer treatmentItemsNum; /**默认渠道提成比例是否启用*/ private Integer isDefaultCommission; /**默认渠道提成比例百分数*/ private Integer defaultCommission; /**标签*/ private String tag; /**项目总标识*/ private String projectGeneralId; /**项目标识*/ private String projectId; /**身体部位,末级标识*/ private String bodyPartId; /**身体部位名称*/ private String bodyPartName; /**业态*/ private String format; /**医生资质*/ private String doctorQualification; /**执行资质*/ private String executiveQualificationCode; /**执行资质名称*/ private String executiveQualificationName; /**收入计入*/ private String incomeIncludedCode; /**收入计入名称*/ private String incomeIncludedName; /**收入主体*/ private String incomeSubjectCode; /**收入主体名称*/ private String incomeSubjectName; /**科室名称*/ private String departmentName; /**科室编码*/ private String departmentCode; /**可售范围*/ private String availableForSaleCode; /**可售范围名称*/ private String availableForSaleName; /**价格标签*/ private String priceTagCode; /**价格标签名称*/ private String priceTagName; } phis-feign/src/main/java/com/hz/phis/dt/project/ProjectListBo.java
New file @@ -0,0 +1,46 @@ package com.hz.phis.dt.project; import lombok.Data; import java.math.BigDecimal; /** * 项目列表实体 * * @author fwq */ @Data public class ProjectListBo { /**p-his的项目标识*/ private String id; /**编号*/ private String coding; /**项目名称*/ private String name; /**销售单价*/ private BigDecimal price; /**原价*/ private BigDecimal originalPrice; /**项目分类标识*/ private String projectTypeId; /**项目分类名称*/ private String projectTypeName; /**项目规格*/ private String specification; /**项目其他规格*/ private String specOther; /**项目单位*/ private String unit; /**类别*/ private String category; /**疗程次数*/ private String courseCount; /**英文名称*/ private String englishName; /**his项目名称*/ private String hisName; /**his规格*/ private String hisSpec; /**删除*/ private Integer isDel; } phis-feign/src/main/java/com/hz/phis/dt/project/ProjectListDt.java
New file @@ -0,0 +1,16 @@ package com.hz.phis.dt.project; import lombok.Data; import java.util.List; /** * 项目列表实体 * * @author fwq */ @Data public class ProjectListDt { /**p-his的项目*/ private List<ProjectUpdateDt> list; } phis-feign/src/main/java/com/hz/phis/dt/project/ProjectSpecsBo.java
New file @@ -0,0 +1,25 @@ package com.hz.phis.dt.project; import lombok.Data; import java.util.List; /** * 项目实体 * * @author fwq */ @Data public class ProjectSpecsBo { /**规格标识*/ private String id; /**规格编号*/ private String coding; /**规格名*/ private String specName; /**规格上下架*/ private Integer isUp; /**规格值集合*/ private List<ProjectSpecsValueBo> projectSpecsValueList; } phis-feign/src/main/java/com/hz/phis/dt/project/ProjectSpecsValueBo.java
New file @@ -0,0 +1,23 @@ package com.hz.phis.dt.project; import lombok.Data; /** * 项目实体 * * @author fwq */ @Data public class ProjectSpecsValueBo { /**规格值标识*/ private String id; /**规格编号*/ private String coding; /**规格值名*/ private String specValueName; /**规格值上下架*/ private Integer isUp; /**规格标识*/ private String specificationId; } phis-feign/src/main/java/com/hz/phis/dt/project/ProjectTypeListBo.java
New file @@ -0,0 +1,30 @@ package com.hz.phis.dt.project; import lombok.Data; import java.util.List; /** * 项目分类列表实体 * * @author fwq */ @Data public class ProjectTypeListBo { /**项目分类标识*/ private String id; /**项目分类名称*/ private String name; /**等级*/ private Integer level; /**不能预约的星期如1|2,1星期天,2星期一*/ private String noApptDay; /**父级*/ private String parentId; /**接口id*/ private String apiId; /**接口code*/ private String apiCode; /**子级*/ private List children; } phis-feign/src/main/java/com/hz/phis/dt/project/ProjectUpdateDt.java
New file @@ -0,0 +1,14 @@ package com.hz.phis.dt.project; import lombok.Data; /** * 项目列表实体 * * @author fwq */ @Data public class ProjectUpdateDt { /**p-his的项目标识*/ private String id; } phis-feign/src/main/java/com/hz/phis/dt/promotion/PromotionDeLimitDt.java
New file @@ -0,0 +1,20 @@ package com.hz.phis.dt.promotion; import com.hz.phis.dt.limit.LimitDt; import lombok.Data; import java.util.List; /** * 促销详情实体 * * @author fwq */ @Data public class PromotionDeLimitDt extends PromotionListDt { /**促销信息*/ private List<PromotionDetailDt> infoList; /**限制信息*/ private LimitDt limitBo; } phis-feign/src/main/java/com/hz/phis/dt/promotion/PromotionDetailDt.java
New file @@ -0,0 +1,44 @@ package com.hz.phis.dt.promotion; import lombok.Data; import java.math.BigDecimal; /** * 促销详情实体 * * @author fwq */ @Data public class PromotionDetailDt { /**编号(项目/商品/增值金/储值金/积分)*/ private String commonCode; /**(project项目,retail商品,increment增值金,stored储值金,integral积分,项目分类project_type,retail_type商品分类)*/ private String type; /**公共标识(项目/商品/增值金(PaymentMethod)/储值金(PaymentMethod)/积分(PaymentMethod))*/ private String commonId; /**公共名称*/ private String commonName; /**规格*/ private String specJson; /**疗程项目次数(ProjectGeneral)*/ private Integer treatmentItemsNum; /**单价*/ private BigDecimal price; /**数量*/ private Integer num; /**总价(单价*数量)*/ private BigDecimal total; /**折扣单价*/ private BigDecimal discountPrice; /**折扣(单位:百分比)*/ private BigDecimal discount; /**折后价*/ private BigDecimal discountAfterPrice; /**是否赠送*/ private Integer isGiving; /**促销标识*/ private String promotionId; } phis-feign/src/main/java/com/hz/phis/dt/promotion/PromotionDt.java
New file @@ -0,0 +1,15 @@ package com.hz.phis.dt.promotion; import lombok.Data; /** * 促销详情实体 * * @author fwq */ @Data public class PromotionDt { private PromotionDeLimitDt promotion; private String id; } phis-feign/src/main/java/com/hz/phis/dt/promotion/PromotionListDt.java
New file @@ -0,0 +1,49 @@ package com.hz.phis.dt.promotion; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import java.math.BigDecimal; import java.util.List; /** * 促销列表实体 * * @author fwq */ @Data public class PromotionListDt { /**p-his的促销标识*/ private String id; /**上下架*/ private Integer isUp; /**编号*/ private String code; /**促销名*/ private String name; /**类型new_user新客old_user老客*/ private String type; /**状态:not_start未开始,in_progress正在进行中,stop_start已结束,stop_pause暂停*/ private String status; /**接口id*/ private String apiId; /**促销总金额*/ private BigDecimal total; /**门店标识*/ private String shopId; /**门店名称*/ private String shopName; /**有效开始时间*/ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") private String startTime; /**有效结束时间*/ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") private String endTime; /**删除*/ private Integer isDel; private List<PromotionDt> list; } phis-feign/src/main/java/com/hz/phis/dt/shop/ShopDt.java
New file @@ -0,0 +1,201 @@ package com.hz.phis.dt.shop; import com.hz.phis.dt.BaseDt; /** * 同步门店列表实体 * * @author fwq */ public class ShopDt extends BaseDt { /**编号*/ private String code; /**名称*/ private String name; /**所属父级部门标识(Department)*/ private String departmentId; /**企业微信部门id*/ private Integer corpMpDepId; /**最大预约数量*/ private Integer maxAppNum; /**最大转疗数量*/ private Integer maxSwitchNum; /**是否启用*/ private Integer isUp; /**工作时间如09:00-12:00|14:00-16:00*/ private String workTime; /**地址-省*/ private String province; /**地址-市*/ private String city; /**地址-区*/ private String area; /**地址详细*/ private String addr; /**颜色字符串*/ private String colorStr; /**医生休息时间*/ private String doctorRelaxTime; /**驾车路线*/ private String carWay; /**地铁路径*/ private String subWay; /**api系统的id*/ private String apiId; /**生美预约限制数量*/ private Integer shengMeiNum; /**同一时间段客户数*/ private Integer sameTimeCustomerNum; public String getCode() { return code; } public void setCode(String code) { this.code = code; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getDepartmentId() { return departmentId; } public void setDepartmentId(String departmentId) { this.departmentId = departmentId; } public Integer getCorpMpDepId() { return corpMpDepId; } public void setCorpMpDepId(Integer corpMpDepId) { this.corpMpDepId = corpMpDepId; } public Integer getMaxAppNum() { return maxAppNum; } public void setMaxAppNum(Integer maxAppNum) { this.maxAppNum = maxAppNum; } public Integer getMaxSwitchNum() { return maxSwitchNum; } public void setMaxSwitchNum(Integer maxSwitchNum) { this.maxSwitchNum = maxSwitchNum; } public Integer getIsUp() { return isUp; } public void setIsUp(Integer isUp) { this.isUp = isUp; } public String getWorkTime() { return workTime; } public void setWorkTime(String workTime) { this.workTime = workTime; } public String getProvince() { return province; } public void setProvince(String province) { this.province = province; } public String getCity() { return city; } public void setCity(String city) { this.city = city; } public String getArea() { return area; } public void setArea(String area) { this.area = area; } public String getAddr() { return addr; } public void setAddr(String addr) { this.addr = addr; } public String getColorStr() { return colorStr; } public void setColorStr(String colorStr) { this.colorStr = colorStr; } public String getDoctorRelaxTime() { return doctorRelaxTime; } public void setDoctorRelaxTime(String doctorRelaxTime) { this.doctorRelaxTime = doctorRelaxTime; } public String getCarWay() { return carWay; } public void setCarWay(String carWay) { this.carWay = carWay; } public String getSubWay() { return subWay; } public void setSubWay(String subWay) { this.subWay = subWay; } public String getApiId() { return apiId; } public void setApiId(String apiId) { this.apiId = apiId; } public Integer getShengMeiNum() { return shengMeiNum; } public void setShengMeiNum(Integer shengMeiNum) { this.shengMeiNum = shengMeiNum; } public Integer getSameTimeCustomerNum() { return sameTimeCustomerNum; } public void setSameTimeCustomerNum(Integer sameTimeCustomerNum) { this.sameTimeCustomerNum = sameTimeCustomerNum; } } phis-feign/src/main/java/com/hz/phis/dt/shop/ShopListDt.java
New file @@ -0,0 +1,21 @@ package com.hz.phis.dt.shop; import java.util.List; /** * 同步门店列表 * * @author fwq */ public class ShopListDt { private List<ShopDt> list; public List<ShopDt> getList() { return list; } public void setList(List<ShopDt> list) { this.list = list; } } phis-feign/src/main/java/com/hz/phis/dt/shop/ShopPriceDt.java
New file @@ -0,0 +1,58 @@ package com.hz.phis.dt.shop; import java.math.BigDecimal; /** * 门店价格 * @author fwq */ public class ShopPriceDt { private int type; private String shopId; private String commonId; private BigDecimal price; public int getType() { return type; } public void setType(int type) { this.type = type; } public String getShopId() { return shopId; } public void setShopId(String shopId) { this.shopId = shopId; } public String getCommonId() { return commonId; } public void setCommonId(String commonId) { this.commonId = commonId; } public BigDecimal getPrice() { return price; } public void setPrice(BigDecimal price) { this.price = price; } /**类型-卡项*/ public static final Integer LIMIT_CARD_ITEM = 0; /**类型-促销*/ public static final Integer LIMIT_PROMOTION = 1; /**类型-项目*/ public static final Integer LIMIT_PROJECT = 2; /**类型-商品(耗材)*/ public static final Integer LIMIT_CONSUMABLE = 3; /**类型-SPU*/ public static final Integer LIMIT_SPU = 4; } phis-feign/src/main/java/com/hz/phis/dt/shop/ShopPriceListDt.java
New file @@ -0,0 +1,15 @@ package com.hz.phis.dt.shop; import lombok.Data; import java.util.List; /** * 门店价格 * @author fwq */ @Data public class ShopPriceListDt { /**门店价格*/ private List<ShopPriceDt> list; } phis-feign/src/main/java/com/hz/phis/dt/user/UserProItemDt.java
New file @@ -0,0 +1,75 @@ package com.hz.phis.dt.user; import com.hz.phis.dt.BaseDt; import lombok.Data; import java.math.BigDecimal; import java.util.Date; /** * 用户拥有子项目 * @author fwq */ @Data public class UserProItemDt extends BaseDt { /**订单总金额*/ private BigDecimal total; /**总支付金额*/ private BigDecimal actualTotal; /**原价*/ private BigDecimal oriPrice; /**现价*/ private BigDecimal curPrice; /**购买数量*/ private Integer buyNum; /**总次数(项目次数/卡项次数)*/ private Integer usedTotal; /**未使用次数(项目次数/卡项次数)*/ private Integer notUsedNum; /**已使用次数(项目次数/卡项次数)*/ private Integer usedNum; /**已过期次数(项目次数/卡项次数)*/ private Integer overdueNum; /**转赠次数(项目次数/卡项次数)*/ private Integer transferNum; /**已取消次数(项目次数/卡项次数)*/ private Integer cancelNum; /**已换购(项目次数/卡项次数)*/ private Integer inBygNum; /**所属门店id*/ private String shopId; /**所属门店名称*/ private String shopName; /**科室编码(字典中获取)*/ private String departmentCode; /**科室名称*/ private String departmentName; /**有效状态(UserProjectConstants)*/ private Integer effectiveStatus; /**是否有效时间限制:0否1是*/ private Integer timeLimit; /**有效时间(开始)*/ private Date limitStartTime; /**有效时间(结束)*/ private Date limitEndTime; /**来源类型(OrderSourceConstans)*/ private String commonType; /**来源标识*/ private String commonId; /**单次数(疗程次数,默认为0)*/ private Integer usedOne; /**身体部位标识*/ private String bodyPartsId; /**身体部位名称*/ private String bodyPartsName; /**用户项目id(UserProject)*/ private String userProjectId; /**用户Id*/ private String userId; /**订单ItemId*/ private String orderItemId; /**执行条目id*/ private String itemId; }