提交 | 用户 | 时间
|
58d006
|
1 |
package com.mandi.webservice.service; |
A |
2 |
|
|
3 |
import javax.servlet.http.HttpServletRequest; |
|
4 |
import javax.ws.rs.Consumes; |
|
5 |
import javax.ws.rs.POST; |
|
6 |
import javax.ws.rs.Path; |
|
7 |
import javax.ws.rs.Produces; |
|
8 |
import javax.ws.rs.core.Context; |
|
9 |
import javax.ws.rs.core.MediaType; |
|
10 |
|
|
11 |
import org.springframework.web.bind.annotation.RequestBody; |
|
12 |
|
|
13 |
/** |
|
14 |
* NC出库单对接分单系统 |
|
15 |
* 生产系统装车操作对接分单系统 |
|
16 |
* |
|
17 |
*/ |
|
18 |
public interface IInvoiceService { |
|
19 |
|
|
20 |
/** |
|
21 |
* NC出库单 |
|
22 |
*/ |
|
23 |
@POST |
|
24 |
@Consumes(MediaType.APPLICATION_JSON) |
|
25 |
@Produces(MediaType.APPLICATION_JSON) |
|
26 |
@Path("/action") |
|
27 |
public String action(@Context HttpServletRequest r,@RequestBody String jsonParam); |
|
28 |
|
|
29 |
/** |
|
30 |
* 生产系统装车提交明细 |
|
31 |
*/ |
|
32 |
@POST |
|
33 |
@Produces(MediaType.APPLICATION_JSON) |
|
34 |
@Path("/zcadd") |
|
35 |
public String addLoading(@Context HttpServletRequest r,@RequestBody String jsonParam); |
|
36 |
|
|
37 |
/** |
|
38 |
* 生产系统装车完成 |
|
39 |
*/ |
|
40 |
@POST |
|
41 |
@Produces(MediaType.APPLICATION_JSON) |
|
42 |
@Path("/zcfinish") |
|
43 |
public String zcFinish(@Context HttpServletRequest r,@RequestBody String jsonParam); |
|
44 |
|
|
45 |
/** |
|
46 |
* 生产系统装车删除明细 |
|
47 |
*/ |
|
48 |
@POST |
|
49 |
@Produces(MediaType.APPLICATION_JSON) |
|
50 |
@Path("/zcdel") |
|
51 |
public String delLoading(@Context HttpServletRequest r,@RequestBody String jsonParam); |
|
52 |
|
|
53 |
|
|
54 |
/** |
|
55 |
* 扫卡获得车辆信息 |
|
56 |
* @param r |
|
57 |
* @return |
|
58 |
*/ |
|
59 |
@POST |
|
60 |
@Produces(MediaType.APPLICATION_JSON) |
|
61 |
@Path("/getClInfo") |
|
62 |
public String getVInfo(@Context HttpServletRequest r,@RequestBody String jsonParam); |
|
63 |
|
|
64 |
/** |
|
65 |
* 扫卡获得车辆信息 |
|
66 |
* @param r |
|
67 |
* @return |
|
68 |
*/ |
|
69 |
@POST |
|
70 |
@Produces(MediaType.APPLICATION_JSON) |
|
71 |
@Path("/getxstdInfo") |
|
72 |
public String getxstdInfo(@Context HttpServletRequest r,@RequestBody String jsonParam); |
|
73 |
/** |
|
74 |
* 装车完成二次上磅 |
|
75 |
* @param r |
|
76 |
* @return |
|
77 |
*/ |
|
78 |
@POST |
|
79 |
@Produces(MediaType.APPLICATION_JSON) |
|
80 |
@Path("/savewdcontrol") |
|
81 |
public String savewdControl(@Context HttpServletRequest r,@RequestBody String jsonParam); |
63fbfd
|
82 |
|
A |
83 |
// 接收一次称重、二次称重 data 一次称重 firstWeighing secondWeighing |
|
84 |
@POST |
|
85 |
@Produces(MediaType.APPLICATION_JSON) |
|
86 |
@Path("/currWeight") |
|
87 |
public String receiveCurrWeight(@Context HttpServletRequest r,@RequestBody String jsonParam); |
|
88 |
|
58d006
|
89 |
} |