OMS-GW推送-商业合作伙伴
This commit is contained in:
+4
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user