Commit 679fc940 authored by shiyu's avatar shiyu

缴纳保证金

parent c80087ef
package com.wwdz.ch.wx.impl;
import com.wwdz.ch.core.type.Result;
import com.wwdz.ch.db.dao.openShop.UserAccountDao;
import com.wwdz.ch.wx.service.UserAccountService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class UserAccountServiceImpl implements UserAccountService {
private static final Logger logger = LoggerFactory.getLogger(UserAccountServiceImpl.class);
@Autowired
UserAccountDao userAccountDao;
@Override
public Result initAccount(long userId) {
try {
} catch (Exception e) {
}
return null;
}
}
......@@ -58,6 +58,7 @@ public class AuctionEarnestServiceImpl implements AuctionEarnestService {
EarnestOrder earnestOrder = new EarnestOrder();
earnestOrder.setEarnestOrderId(earnestOrderId);
earnestOrder.setUserId(dto.getUserId());
earnestOrder.setUserOpenId(dto.getUserOpenId());
earnestOrder.setAmount(PriceUtil.convertPriceFromStr(dto.getAmount()));
earnestOrder.setCreateTime(new Date());
earnestOrder.setUpdateTime(new Date());
......
package com.wwdz.ch.wx.service;
import com.wwdz.ch.core.type.Result;
public interface UserAccountService {
/**
* 初始化用户账户
* @param userId
* @return
*/
Result initAccount(long userId);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment