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