| | |
| | | import javax.annotation.Resource;
|
| | |
|
| | | import org.springframework.context.annotation.Lazy;
|
| | | import org.springframework.scheduling.annotation.Async;
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | | import com.yeshi.fanli.dao.mybatis.user.cloud.UserCloudManageMapper;
|
| | |
| | | @Resource
|
| | | private UserCloudGoodsService userCloudGoodsService;
|
| | |
|
| | | |
| | | @Async
|
| | | @Override
|
| | | public void save(Long uid, Boolean official, Boolean custom) {
|
| | | if (uid == null)
|
| | |
| | | manage.setCustom(custom);
|
| | | manage.setOfficial(official);
|
| | | manage.setCreateTime(new Date());
|
| | | manage.setOfflineNotice(false);
|
| | | userCloudManageMapper.insertSelective(manage);
|
| | |
|
| | | send = manage.getCustom();
|
| | |
| | | return userCloudManageMapper.selectByPrimaryKey(uid);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public void updateByPrimaryKeySelective(UserCloudManage record) {
|
| | | userCloudManageMapper.updateByPrimaryKeySelective(record);
|
| | | }
|
| | | |
| | | |
| | | @Override
|
| | | public UserCloudManage selectForUpdate(Long uid) {
|
| | | return userCloudManageMapper.selectForUpdate(uid);
|
| | | }
|
| | | |
| | | }
|