| | |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.domain.ZInfoUser; |
| | | import com.ruoyi.domain.ZfShareOther; |
| | | import com.ruoyi.domain.ZfShareData; |
| | |
| | | */ |
| | | @GetMapping("/all") |
| | | public List<ZfShareOther> listAll(ZfShareData zfShareData) { |
| | | List<ZfShareData> zfShareData2 = zfShareDataService.selectList(); |
| | | SysUser user = SecurityUtils.getLoginUser().getUser(); |
| | | Long userId = user.getUserId(); |
| | | |
| | | zfShareData.setUserId(userId.intValue()); |
| | | |
| | | List<ZfShareData> zfShareData2 = zfShareDataService.selectList(zfShareData); |
| | | List<ZfShareOther> zfShareOtherList = new ArrayList<>(); |
| | | for (ZfShareData zfShareData1 :zfShareData2){ |
| | | System.out.println("1111111111111111111111"); |
| | |
| | | @Log(title = "共享记录", businessType = BusinessType.UPDATE) |
| | | @PutMapping("/setAdminAccount") |
| | | public AjaxResult edit(@RequestBody ZfShareData zfShareData) { |
| | | return zfShareDataService.setAdmin(zfShareData.getMasterAccount().longValue()); |
| | | return zfShareDataService.setAdmin(zfShareData.getUserId().longValue(),zfShareData.getMasterAccount().longValue()); |
| | | } |
| | | // |
| | | |