| | |
| | | import com.mzl.flower.dto.request.partner.*; |
| | | import com.mzl.flower.dto.response.partner.PartnerDTO; |
| | | import com.mzl.flower.entity.partner.Partner; |
| | | import com.mzl.flower.entity.supplier.Supplier; |
| | | import com.mzl.flower.mapper.partner.PartnerMapper; |
| | | import com.mzl.flower.service.BaseService; |
| | | import com.mzl.flower.service.UploadService; |
| | |
| | | partner.update(SecurityUtils.getUserId()); |
| | | partnerMapper.updateById(partner); |
| | | } |
| | | |
| | | public void baseUpdate(UpdatePartnerBaseDTO dto) { |
| | | Partner partner = partnerMapper.selectById(dto.getId()); |
| | | if(partner==null){ |
| | | throw new ValidationException("合伙人信息未登记"); |
| | | } |
| | | BeanUtils.copyProperties(dto, partner,"id"); |
| | | partner.update(SecurityUtils.getUserId()); |
| | | partnerMapper.updateById(partner); |
| | | } |
| | | |
| | | } |