diff --git a/shoot-hand/ics-admin/src/main/java/com/ics/admin/controller/RepairDeviceTypeController.java b/shoot-hand/ics-admin/src/main/java/com/ics/admin/controller/RepairDeviceTypeController.java index 33d84c9..b6ee4e4 100644 --- a/shoot-hand/ics-admin/src/main/java/com/ics/admin/controller/RepairDeviceTypeController.java +++ b/shoot-hand/ics-admin/src/main/java/com/ics/admin/controller/RepairDeviceTypeController.java @@ -74,13 +74,13 @@ public class RepairDeviceTypeController extends BaseController { IcsCustomerStaff staff = customerStaffService.selectIcsCustomerStaffById(relational.getUserId()); workersName.add(staff.getUsername()); staffLists.add(staff); - } } deviceType.setWorkerId(workerId); deviceType.setStaffLists(staffLists); if (workersName.size()>0){ deviceType.setWorker(workersName.get(0)+"等"+workersName.size()+"人"); + deviceType.setWorkerName(workersName); } //根据用户id查询对应数据 } @@ -176,9 +176,17 @@ public class RepairDeviceTypeController extends BaseController { return toAjax(repairDeviceTypeService.deleteRepairDeviceTypeByIds(ids)); } + + /** * 获取普通用户列表(新增为维修人或者派单员) */ + @RequiresPermissions("RepairDeviceType:type:view") + @GetMapping("selectUserListByType") + public R selectUserListByType() { + return R.data(customerStaffService.selectUserListByType()); + } + /** * 根据设备类型id查询关联的派单员、维修人员 */ diff --git a/shoot-hand/ics-admin/src/main/java/com/ics/admin/service/impl/IcsCustomerStaffServiceImpl.java b/shoot-hand/ics-admin/src/main/java/com/ics/admin/service/impl/IcsCustomerStaffServiceImpl.java index 87b2599..5f34b50 100644 --- a/shoot-hand/ics-admin/src/main/java/com/ics/admin/service/impl/IcsCustomerStaffServiceImpl.java +++ b/shoot-hand/ics-admin/src/main/java/com/ics/admin/service/impl/IcsCustomerStaffServiceImpl.java @@ -304,7 +304,6 @@ public class IcsCustomerStaffServiceImpl extends ServiceImpl wrapper = new QueryWrapper<>(); - wrapper.eq("data_type", 1); return icsCustomerStaffMapper.selectList(wrapper); } diff --git a/shoot-hand/ics-admin/src/main/resources/mapper/admin/RepairAttachMapper.xml b/shoot-hand/ics-admin/src/main/resources/mapper/admin/RepairAttachMapper.xml index c6d21b3..dc9d56b 100644 --- a/shoot-hand/ics-admin/src/main/resources/mapper/admin/RepairAttachMapper.xml +++ b/shoot-hand/ics-admin/src/main/resources/mapper/admin/RepairAttachMapper.xml @@ -59,7 +59,7 @@ select url from ics_repair_attach where repair_id=#{repairId} and node_id=1 and delete_flag=0 and ext1='img' order by id limit 1 - + INSERT INTO ics_repair_attach repair_id,