From bed9ddcf9d5b0b692a5df792af7c545d31adffd6 Mon Sep 17 00:00:00 2001 From: gongzuming <gongzuming> Date: 星期五, 20 九月 2024 15:48:29 +0800 Subject: [PATCH] 修改合伙人名称、手机 --- src/main/java/com/mzl/flower/dto/request/partner/ChangePartnerAreaDTO.java | 4 ++++ src/main/java/com/mzl/flower/service/partner/PartnerService.java | 6 ++++++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/mzl/flower/dto/request/partner/ChangePartnerAreaDTO.java b/src/main/java/com/mzl/flower/dto/request/partner/ChangePartnerAreaDTO.java index f0d0f09..74ddf4e 100644 --- a/src/main/java/com/mzl/flower/dto/request/partner/ChangePartnerAreaDTO.java +++ b/src/main/java/com/mzl/flower/dto/request/partner/ChangePartnerAreaDTO.java @@ -20,4 +20,8 @@ @ApiModelProperty("服务区域-区") private String region; + + private String name; + + private String contactTel; } diff --git a/src/main/java/com/mzl/flower/service/partner/PartnerService.java b/src/main/java/com/mzl/flower/service/partner/PartnerService.java index f0f110e..efe2f5d 100644 --- a/src/main/java/com/mzl/flower/service/partner/PartnerService.java +++ b/src/main/java/com/mzl/flower/service/partner/PartnerService.java @@ -135,6 +135,12 @@ partner.setProvince(dto.getProvince()); partner.setCity(dto.getCity()); partner.setRegion(dto.getRegion()); + if(StringUtils.isNotBlank(dto.getName())){ + partner.setName(dto.getName()); + } + if(StringUtils.isNotBlank(dto.getContactTel())){ + partner.setContactTel(dto.getContactTel()); + } partner.update(SecurityUtils.getUserId()); partnerMapper.updateById(partner); } -- Gitblit v1.9.3