|
@@ -10,6 +10,7 @@ import pay.platform.api.system.servcie.PayMerchantService;
|
|
import pay.platform.api.system.servcie.PayMerchantStoreService;
|
|
import pay.platform.api.system.servcie.PayMerchantStoreService;
|
|
import pay.platform.core.common.domain.BaseService;
|
|
import pay.platform.core.common.domain.BaseService;
|
|
import pay.platform.core.security.util.SecurityUtil;
|
|
import pay.platform.core.security.util.SecurityUtil;
|
|
|
|
+import pay.platform.core.util.PasswordUtil;
|
|
import pay.platform.domain.PayMerchant;
|
|
import pay.platform.domain.PayMerchant;
|
|
import pay.platform.domain.PayMerchantAppKey;
|
|
import pay.platform.domain.PayMerchantAppKey;
|
|
import pay.platform.domain.PayMerchantStore;
|
|
import pay.platform.domain.PayMerchantStore;
|
|
@@ -34,6 +35,7 @@ public class PayMerchantServiceImpl extends BaseService<PayMerchantMapper, PayMe
|
|
@Override
|
|
@Override
|
|
@Transactional
|
|
@Transactional
|
|
public boolean saveMerchant(PayMerchant payMerchant) {
|
|
public boolean saveMerchant(PayMerchant payMerchant) {
|
|
|
|
+ payMerchant.setPassword(PasswordUtil.encoder(payMerchant.getPassword()));
|
|
payMerchant.setAgentId(SecurityUtil.getCurrentUser().getUserid());
|
|
payMerchant.setAgentId(SecurityUtil.getCurrentUser().getUserid());
|
|
save(payMerchant);
|
|
save(payMerchant);
|
|
List<PayMerchantStore> storeList = new ArrayList<>();
|
|
List<PayMerchantStore> storeList = new ArrayList<>();
|