From 7737d7a3fdb6797e276b460aa6b5d59bf016bd15 Mon Sep 17 00:00:00 2001 From: fwq <582742538@qq.com> Date: 星期五, 02 九月 2022 18:47:09 +0800 Subject: [PATCH] 用户拥有统计 --- phis-feign/src/main/java/com/hz/his/feign/service/phis/SUserService.java | 9 ++++----- phis-feign/src/main/java/com/hz/his/dto/user/UserHaveDto.java | 28 ++++++++++++++++++++++++++++ phis-feign/src/main/java/com/hz/phis/dt/user/UserHaveDt.java | 14 ++++++++++++++ 3 files changed, 46 insertions(+), 5 deletions(-) diff --git a/phis-feign/src/main/java/com/hz/his/dto/user/UserHaveDto.java b/phis-feign/src/main/java/com/hz/his/dto/user/UserHaveDto.java new file mode 100644 index 0000000..d4e3418 --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/dto/user/UserHaveDto.java @@ -0,0 +1,28 @@ +package com.hz.his.dto.user; + +import lombok.Data; + +/**鐢ㄦ埛鎷ユ湁鏌ヨ瀹炰綋*/ +@Data +public class UserHaveDto { + /**phis鐢ㄦ埛鏍囪瘑*/ + private String userId; + + /*************浼樻儬鍒告煡璇㈠弬鏁�******************/ + /**鏄惁鏈夋晥*/ + private Integer validState; + /**鏄惁杩囨湡*/ + private Integer isExpired; + /**鏄惁浣跨敤*/ + private Integer isUse; + /**骞冲彴*/ + private String platform; + + /************棰勭害鏌ヨ鍙傛暟***************************/ + /**鏄惁鍒板簵*/ + private Integer isArrive; + + /************椤圭洰鏌ヨ鍙傛暟**************************/ + /**鏄惁鏈嶅姟*/ + private Integer isService; +} diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/phis/SUserService.java b/phis-feign/src/main/java/com/hz/his/feign/service/phis/SUserService.java index f500d29..bdbba21 100644 --- a/phis-feign/src/main/java/com/hz/his/feign/service/phis/SUserService.java +++ b/phis-feign/src/main/java/com/hz/his/feign/service/phis/SUserService.java @@ -1,10 +1,8 @@ package com.hz.his.feign.service.phis; import com.hx.resultTool.Result; -import com.hz.his.dto.user.UserAppointmentDto; -import com.hz.his.dto.user.UserDto; -import com.hz.his.dto.user.UserIdsDto; -import com.hz.his.dto.user.UserLevelDto; +import com.hz.his.dto.coupon.CouponDto; +import com.hz.his.dto.user.*; import com.hz.his.dto.user.card.UserCardDto; import com.hz.his.dto.user.card.UserCardUsedDto; import com.hz.his.dto.user.coupon.*; @@ -172,9 +170,10 @@ /** * 鑾峰彇鐢ㄦ埛鎷ユ湁缁熻 + * 杩斿洖浣跨敤Dt * */ @PostMapping(value = "/user/have/count") - Result userHaveCount(@RequestParam("userId") String userId); + Result userHaveCount(@RequestBody UserHaveDto userHaveDto); /** diff --git a/phis-feign/src/main/java/com/hz/phis/dt/user/UserHaveDt.java b/phis-feign/src/main/java/com/hz/phis/dt/user/UserHaveDt.java new file mode 100644 index 0000000..60482e3 --- /dev/null +++ b/phis-feign/src/main/java/com/hz/phis/dt/user/UserHaveDt.java @@ -0,0 +1,14 @@ +package com.hz.phis.dt.user; + +import lombok.Data; + +import java.math.BigDecimal; + +/**鐢ㄦ埛鎷ユ湁杩斿洖瀹炰綋*/ +@Data +public class UserHaveDt { + private Integer couponNum; + private Integer projectNum; + private Integer cardNum; + private Integer appointNum; +} -- Gitblit v1.8.0