小程序端数据权限
This commit is contained in:
parent
717ea7bbdc
commit
bc58fe7730
|
@ -11,6 +11,7 @@ import org.dromara.common.log.annotation.Log;
|
||||||
import org.dromara.common.log.enums.BusinessType;
|
import org.dromara.common.log.enums.BusinessType;
|
||||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||||
|
import org.dromara.common.satoken.utils.LoginHelper;
|
||||||
import org.dromara.common.web.core.BaseController;
|
import org.dromara.common.web.core.BaseController;
|
||||||
import org.dromara.scale.domain.bo.BaseQueryBo;
|
import org.dromara.scale.domain.bo.BaseQueryBo;
|
||||||
import org.dromara.scale.domain.bo.ReservationOrderBo;
|
import org.dromara.scale.domain.bo.ReservationOrderBo;
|
||||||
|
@ -101,7 +102,8 @@ public class WxMyController extends BaseController {
|
||||||
* 获取档案静态列表
|
* 获取档案静态列表
|
||||||
*/
|
*/
|
||||||
@GetMapping("/archive/pageList")
|
@GetMapping("/archive/pageList")
|
||||||
public TableDataInfo<ArchiveStatisticVo> statisticPageList(Long userId, PageQuery pageQuery) {
|
public TableDataInfo<ArchiveStatisticVo> statisticPageList(PageQuery pageQuery) {
|
||||||
|
Long userId = LoginHelper.getUserId();
|
||||||
return archiveService.queryStatisticPageList(userId, pageQuery);
|
return archiveService.queryStatisticPageList(userId, pageQuery);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -111,6 +113,8 @@ public class WxMyController extends BaseController {
|
||||||
@Log(title = "个人量测记录", businessType = BusinessType.EXPORT)
|
@Log(title = "个人量测记录", businessType = BusinessType.EXPORT)
|
||||||
@PostMapping("/evaluation/record/export")
|
@PostMapping("/evaluation/record/export")
|
||||||
public void export(BaseQueryBo bo, HttpServletResponse response) throws Exception {
|
public void export(BaseQueryBo bo, HttpServletResponse response) throws Exception {
|
||||||
|
Long userId = LoginHelper.getUserId();
|
||||||
|
bo.setUserId(userId);
|
||||||
String filePath = sysEvaluationRecordService.getWordTemplate(bo);
|
String filePath = sysEvaluationRecordService.getWordTemplate(bo);
|
||||||
File pdf = FileUtil.createTempFile(".pdf", true);
|
File pdf = FileUtil.createTempFile(".pdf", true);
|
||||||
String pdfPath = pdf.getPath();
|
String pdfPath = pdf.getPath();
|
||||||
|
|
Loading…
Reference in New Issue