|
|
|
@ -21,6 +21,7 @@ import java.util.List;
|
|
|
|
|
public class ApiController {
|
|
|
|
|
@Autowired
|
|
|
|
|
ApiService service;
|
|
|
|
|
|
|
|
|
|
@PostMapping("/bindingSubmit")
|
|
|
|
|
public AjaxResult bindingSubmit(@RequestBody BindingSubmitBeen submitBeen) {
|
|
|
|
|
List<String> watBills = submitBeen.getWatBills();
|
|
|
|
@ -58,6 +59,7 @@ public class ApiController {
|
|
|
|
|
if (i == 1) return AjaxResult.success("运单:" + code + "解绑成功");
|
|
|
|
|
return AjaxResult.error();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping("/deleteLocationCode")
|
|
|
|
|
public AjaxResult deleteLocationCode(String dbCode, String hkCode) {
|
|
|
|
|
int i = service.delectLocationInfoRemarkByDbCode(dbCode, hkCode);
|
|
|
|
@ -80,9 +82,10 @@ public class ApiController {
|
|
|
|
|
if (list == null || list.isEmpty()) return AjaxResult.error("账号无绑定记录");
|
|
|
|
|
return AjaxResult.success(list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//交货提交
|
|
|
|
|
@PostMapping("/join/jiaoSubmit")
|
|
|
|
|
public AjaxResult joinJiaoSubmit(@RequestBody JoinSubmitBeen been){
|
|
|
|
|
public AjaxResult joinJiaoSubmit(@RequestBody JoinSubmitBeen been) {
|
|
|
|
|
int i = service.joinSelectByUser(been);
|
|
|
|
|
if (i == 0) {
|
|
|
|
|
return AjaxResult.success();
|
|
|
|
@ -90,12 +93,13 @@ public class ApiController {
|
|
|
|
|
return AjaxResult.error();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//接货提交
|
|
|
|
|
@PostMapping("/join/shouSubmit")
|
|
|
|
|
public AjaxResult joinJieSubmit(@RequestBody JoinSubmitBeen been){
|
|
|
|
|
public AjaxResult joinJieSubmit(@RequestBody JoinSubmitBeen been) {
|
|
|
|
|
int i = service.joinShouSubmit(been);
|
|
|
|
|
|
|
|
|
|
if (i == been.getList().size()) {
|
|
|
|
|
if (i >= been.getList().size()) {
|
|
|
|
|
return AjaxResult.success();
|
|
|
|
|
}
|
|
|
|
|
return AjaxResult.error();
|
|
|
|
|