商业合作伙伴推送人姓名字段添加

This commit is contained in:
zhaoqing
2026-05-14 11:31:26 +08:00
parent 43c64779ce
commit e8dfcd723f
8 changed files with 21 additions and 13 deletions
@@ -1221,7 +1221,7 @@ public class UserShipperApplicationService {
* @param pushBy
* @return
*/
public int updatePushStatus(Long shipperId, Integer pushStatus, String pushTime, Long pushBy) {
public int updatePushStatus(Long shipperId, Integer pushStatus, String pushTime, Long pushBy,String pushByName) {
UserShipperEntity userShipper = new UserShipperEntity();
userShipper.setShipperId(shipperId);
userShipper.setPushStatus(pushStatus);
@@ -1229,6 +1229,7 @@ public class UserShipperApplicationService {
userShipper.setPushTime(DateUtil.parse(pushTime));
}
userShipper.setPushBy(pushBy);
userShipper.setPushByName(pushByName);
return userShipperMapper.updatePushStatus(userShipper);
}
}
@@ -272,6 +272,7 @@ public class UserShipperEntity extends BaseVOEntity {
private Date pushTime;
@ApiModelProperty(name = "推送人")
private Long pushBy;
@ApiModelProperty(name = "推送人姓名")
private String pushByName;
}
@@ -332,4 +332,7 @@ public class UserShipperPo implements Serializable {
@ApiModelProperty(value = "推送人ID")
private Long pushBy;
@ApiModelProperty(value = "推送人姓名")
private String pushByName;
}
@@ -242,10 +242,11 @@ public class UserShipperAPI extends BaseController {
public AjaxResult updatePushStatus(@RequestParam("shipperId") Long shipperId,
@RequestParam("pushStatus") Integer pushStatus,
@RequestParam(value = "pushTime", required = false) String pushTime,
@RequestParam(value = "pushBy", required = false) Long pushBy){
@RequestParam(value = "pushBy", required = false) Long pushBy,
@RequestParam(value = "pushByName", required = false) String pushByName){
try{
int result = userShipperApplicationService.updatePushStatus(shipperId,pushStatus,pushTime,pushBy);
int result = userShipperApplicationService.updatePushStatus(shipperId,pushStatus,pushTime,pushBy,pushByName);
return result > 0 ? AjaxResult.success() : AjaxResult.error("更新失败");
}catch (Exception e){
log.error("更新推送状态异常: shipperId = {} , error = ", e.getMessage());