admin
2020-07-03 651a15c78f668bef3859d9ed1bb7ad0b669d3600
fanli/src/main/java/com/yeshi/fanli/service/impl/user/cloud/UserCloudManageServiceImpl.java
@@ -5,6 +5,7 @@
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;
@@ -23,6 +24,8 @@
   @Resource
   private UserCloudGoodsService userCloudGoodsService;
   
   @Async
   @Override
   public void save(Long uid, Boolean official, Boolean custom) {
      if (uid == null) 
@@ -51,6 +54,7 @@
         manage.setCustom(custom);   
         manage.setOfficial(official);
         manage.setCreateTime(new Date());
         manage.setOfflineNotice(false);
         userCloudManageMapper.insertSelective(manage);
         
         send = manage.getCustom();
@@ -67,4 +71,15 @@
      return userCloudManageMapper.selectByPrimaryKey(uid);
   }
   
   @Override
   public void updateByPrimaryKeySelective(UserCloudManage record) {
      userCloudManageMapper.updateByPrimaryKeySelective(record);
   }
   @Override
   public UserCloudManage selectForUpdate(Long uid) {
      return userCloudManageMapper.selectForUpdate(uid);
   }
}