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("/customres") 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); } }