mirror of
https://gitee.com/elegant_wings/dbd-meeting.git
synced 2025-06-21 17:09:36 +08:00
修改了PC页面数据问题
This commit is contained in:
parent
c7265b67d7
commit
38a200d313
@ -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查询关联的派单员、维修人员
|
||||
*/
|
||||
|
@ -304,7 +304,6 @@ public class IcsCustomerStaffServiceImpl extends ServiceImpl<IcsCustomerStaffMap
|
||||
|
||||
QueryWrapper<IcsCustomerStaff> wrapper = new QueryWrapper<>();
|
||||
|
||||
wrapper.eq("data_type", 1);
|
||||
|
||||
return icsCustomerStaffMapper.selectList(wrapper);
|
||||
}
|
||||
|
@ -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
|
||||
</select>
|
||||
|
||||
<insert id="insertRepairAttach" parameterType="com.ics.admin.domain.RepairAttach">
|
||||
<insert id="insertRepairAttach" parameterType="com.ics.admin.domain.RepairAttach" useGeneratedKeys="true" keyProperty="id">
|
||||
INSERT INTO ics_repair_attach
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="repairId != null ">repair_id,</if>
|
||||
|
Loading…
x
Reference in New Issue
Block a user