| | |
| | | */ |
| | | package org.springblade.modules.property.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import liquibase.pro.packaged.D; |
| | | import liquibase.pro.packaged.P; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.modules.pay.entity.AliPayInfo; |
| | | import org.springblade.modules.pay.entity.WxPayInfo; |
| | | import org.springblade.modules.pay.service.IAliPayService; |
| | | import org.springblade.modules.pay.service.IWxPayService; |
| | | import org.springblade.modules.property.entity.PropertyCompanyEntity; |
| | | import org.springblade.modules.property.vo.PropertyCompanyDetailVO; |
| | | import org.springblade.modules.property.vo.PropertyCompanyVO; |
| | |
| | | @Autowired |
| | | private IDeptService deptService; |
| | | |
| | | @Autowired |
| | | private IWxPayService wxPayService; |
| | | |
| | | @Autowired |
| | | private IAliPayService aliPayService; |
| | | /** |
| | | * 自定义分页 |
| | | * |
| | |
| | | public PropertyCompanyDetailVO getDetail(PropertyCompanyVO propertyCompany) { |
| | | return baseMapper.getDetail(propertyCompany); |
| | | } |
| | | |
| | | @Override |
| | | public Boolean payConfig(WxPayInfo wxPayInfo, AliPayInfo aliPayInfo) { |
| | | boolean wx = wxPayService.saveOrUpdate(wxPayInfo); |
| | | boolean ali = aliPayService.saveOrUpdate(aliPayInfo); |
| | | return wx&&ali; |
| | | } |
| | | |
| | | @Override |
| | | public PropertyCompanyDetailVO getPayConfig(PropertyCompanyVO propertyCompany) { |
| | | |
| | | |
| | | PropertyCompanyDetailVO detail = this.getDetail(propertyCompany); |
| | | |
| | | |
| | | |
| | | AliPayInfo pA = new AliPayInfo(); |
| | | pA.setPropertyCompanyId(detail.getId().toString()); |
| | | detail.setAliPayInfo(aliPayService.getOne(Condition.getQueryWrapper(pA))); |
| | | |
| | | WxPayInfo pW = new WxPayInfo(); |
| | | pW.setPropertyCompanyId(detail.getId().toString()); |
| | | detail.setWxPayInfo(wxPayService.getOne(Condition.getQueryWrapper(pW))); |
| | | |
| | | return detail; |
| | | } |
| | | } |