From eb5d7885fa9e4bd20c0827eec9b4cdd48c47b509 Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期二, 07 一月 2025 09:11:20 +0800 Subject: [PATCH] 修改bug --- ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TechnicianController.java | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TechnicianController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TechnicianController.java index cda2f44..c62ef1b 100644 --- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TechnicianController.java +++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TechnicianController.java @@ -19,6 +19,7 @@ import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; +import java.util.List; /** * <p> @@ -103,7 +104,9 @@ @ApiOperation(value = "技师列表", tags = {"技师列表-小程序"}) public R<TableDataInfo<TechnicianVO>> technicianListByShopId(@ApiParam("门店id") @RequestParam Long shopId,@ApiParam("技师姓名") String name) { startPage(); - return R.ok(getDataTable(technicianService.getTechnicianListByShopId(shopId,name))); + List<TechnicianVO> technicianListByShopId = technicianService.getTechnicianListByShopId(shopId, name); + TableDataInfo<TechnicianVO> dataTable = getDataTable(technicianListByShopId); + return R.ok(dataTable); } @GetMapping("/manage/list") @@ -120,6 +123,9 @@ @ApiOperation(value = "添加编辑", tags = {"门店-技师列表"}) public R<Page<Technician>> add(@RequestBody Technician technician) { Integer objectId = tokenService.getLoginUser().getSysUser().getObjectId(); + if (technician.getId()==null){ + technician.setSubscribeStatus(2); + } technician.setShopId(objectId); technicianService.saveOrUpdate(technician); return R.ok(); -- Gitblit v1.7.1