|
|
@@ -14,7 +14,6 @@ import com.ytpm.dao.QuestionMapper;
|
|
|
import com.ytpm.handle.CustomerException;
|
|
|
import com.ytpm.service.AppUserService;
|
|
|
import com.ytpm.util.RedisService;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Propagation;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
@@ -27,11 +26,11 @@ import java.util.Objects;
|
|
|
@Service
|
|
|
public class AppUserServiceImpl implements AppUserService {
|
|
|
|
|
|
- @Autowired
|
|
|
+ @Resource
|
|
|
private AppUserMapper appUserMapper;
|
|
|
- @Autowired
|
|
|
+ @Resource
|
|
|
private LoginRecordMapper loginRecordMapper;
|
|
|
- @Autowired
|
|
|
+ @Resource
|
|
|
private QuestionMapper questionMapper;
|
|
|
@Resource
|
|
|
private RedisService redisService;
|
|
|
@@ -113,6 +112,7 @@ public class AppUserServiceImpl implements AppUserService {
|
|
|
*/
|
|
|
private void registryUser(WxLoginParam param,WxUserInfo wxUserInfo,WxLoginResult loginResult, YtDyzUser old) {
|
|
|
old.setUserId(redisService.getAppUserId());
|
|
|
+ old.setPhone(param.getPhone());
|
|
|
old.setNickName(wxUserInfo.getNickname());
|
|
|
old.setLastLoginTime(new Date());
|
|
|
old.setRegistryTime(new Date());
|