OMS-GW推送-商业合作伙伴-user_center
This commit is contained in:
@@ -23,6 +23,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Api(tags = "用户中台管理-托运人管理")
|
||||
@@ -235,4 +236,20 @@ public class UserShipperAPI extends BaseController {
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation("商业合作伙伴-更新推送状态")
|
||||
@PostMapping("/updatePushStatus")
|
||||
public AjaxResult updatePushStatus(@RequestParam("shipperId") Long shipperId,
|
||||
@RequestParam("pushStatus") Integer pushStatus,
|
||||
@RequestParam("pushTime") Date pushTime,
|
||||
@RequestParam("pushBy") Long pushBy){
|
||||
|
||||
try{
|
||||
int result = userShipperApplicationService.updatePushStatus(shipperId,pushStatus,pushTime,pushBy);
|
||||
return result > 0 ? AjaxResult.success() : AjaxResult.error("更新失败");
|
||||
}catch (Exception e){
|
||||
log.error("更新推送状态异常: shipperId = {} , error = ", e.getMessage());
|
||||
return AjaxResult.error("更新推送状态异常:" + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user