AWBController.java
1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package com.tianbo.imfClient.controller;
import com.tianbo.imfClient.dao.ARRIVEDSECONDARYMapper;
import com.tianbo.imfClient.model.CUSTOMSMESSAGE;
import com.tianbo.imfClient.model.ResultJson;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.List;
/**
* 出港运抵服务接口
*/
@RestController
@RequestMapping("/awb")
public class AWBController {
@Autowired
private ARRIVEDSECONDARYMapper arrivedsecondaryMapper;
/**
* 更新分单运抵发送状态为01-(未发送可发送)
* @param masterno 主单号
* @param secendno 分单号
* @return 更新成功/失败
*/
@PostMapping("/resendArrivalSecond")
public ResultJson getCustomResponse(@RequestParam(value = "masterno",required = true) String masterno,
@RequestParam(value = "secendno",required = true) String secendno){
HashMap<String ,String> map = new HashMap();
map.put("masterno",masterno);
map.put("secendno",secendno);
int i = arrivedsecondaryMapper.updatestatus(map);
if (i>0)
{
return new ResultJson("200","重发分单运抵成功",i);
// return "航班日期更新成功"+i;
}
return new ResultJson("500","重发失败",i);
}
}