OMS-GW推送-商业合作伙伴

This commit is contained in:
zhaoqing
2026-05-06 14:16:14 +08:00
parent 4d732b1bf8
commit d32e7e97f6
5 changed files with 10 additions and 8 deletions
@@ -1221,11 +1221,13 @@ public class UserShipperApplicationService {
* @param pushBy
* @return
*/
public int updatePushStatus(Long shipperId, Integer pushStatus, Date pushTime, Long pushBy) {
public int updatePushStatus(Long shipperId, Integer pushStatus, String pushTime, Long pushBy) {
UserShipperEntity userShipper = new UserShipperEntity();
userShipper.setShipperId(shipperId);
userShipper.setPushStatus(pushStatus);
userShipper.setPushTime(pushTime);
if (pushTime != null && !"".equals(pushTime)) {
userShipper.setPushTime(DateUtil.parse(pushTime));
}
userShipper.setPushBy(pushBy);
return userShipperMapper.updatePushStatus(userShipper);
}
@@ -241,9 +241,8 @@ public class UserShipperAPI extends BaseController {
@PostMapping("/updatePushStatus")
public AjaxResult updatePushStatus(@RequestParam("shipperId") Long shipperId,
@RequestParam("pushStatus") Integer pushStatus,
@RequestParam("pushTime")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") Date pushTime,
@RequestParam("pushBy") Long pushBy){
@RequestParam(value = "pushTime", required = false) String pushTime,
@RequestParam(value = "pushBy", required = false) Long pushBy){
try{
int result = userShipperApplicationService.updatePushStatus(shipperId,pushStatus,pushTime,pushBy);