Showing
1 changed file
with
63 additions
and
0 deletions
1 | +# 查询各种状态的限购码总数接口 | ||
2 | + | ||
3 | +> 接口名: `/limitCode/getLimitCodeCountByStatus` | ||
4 | + | ||
5 | +### 方法 | ||
6 | + | ||
7 | +> POST JSONRAW | ||
8 | + | ||
9 | +### 入参 | ||
10 | + | ||
11 | +无 | ||
12 | + | ||
13 | +### 对应SQL的操作库表 | ||
14 | + | ||
15 | +```xml | ||
16 | +<select id="getLimitCodeCountGroupByStatus" resultType="java.util.Map" parameterType="com.yohobuy.platform.dal.promotion.model.LimitCodeReq" > | ||
17 | + select status,count(1) count from limit_code | ||
18 | + where 1=1 | ||
19 | + | ||
20 | + <if test="batchNo != null and batchNo != ''" > | ||
21 | + and batchno like '%' #{batchNo,jdbcType=VARCHAR} '%' | ||
22 | + </if> | ||
23 | + | ||
24 | + <if test="name != null and name != ''" > | ||
25 | + and name like '%' #{name,jdbcType=VARCHAR} '%' | ||
26 | + </if> | ||
27 | + | ||
28 | + <if test="reqDepartment != null and reqDepartment != ''" > | ||
29 | + and req_department like '%' #{reqDepartment,jdbcType=VARCHAR} '%' | ||
30 | + </if> | ||
31 | + group by status | ||
32 | + </select> | ||
33 | +``` | ||
34 | + | ||
35 | + | ||
36 | +### 响应码 | ||
37 | + | ||
38 | +------------------------- | ||
39 | +|响应码code|消息|说明| | ||
40 | +|--------|----|----| | ||
41 | +|200| getLimitCodeCountByStatus success.| | | ||
42 | + | ||
43 | +### 返回 | ||
44 | + | ||
45 | +``` json | ||
46 | +{ | ||
47 | + "code": 200, | ||
48 | + "message": "", | ||
49 | + "data": { | ||
50 | + "code": 200, | ||
51 | + "data": { | ||
52 | + "0": "4", | ||
53 | + "1": "47", | ||
54 | + "3": "355", | ||
55 | + "4": "160", | ||
56 | + "all": "566" | ||
57 | + }, | ||
58 | + "md5": "8b638040da9314d16a20facaf1ec3713", | ||
59 | + "message": "getLimitCodeCountByStatus success." | ||
60 | + } | ||
61 | +} | ||
62 | + | ||
63 | +``` |
-
Please register or login to post a comment