| | |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.system.api.domain.dto.MgtBaseBathDto; |
| | | import com.ruoyi.system.api.domain.dto.MgtClassNumDto; |
| | | import com.ruoyi.system.api.domain.dto.MgtUserIdByDept; |
| | | import com.ruoyi.system.api.domain.poji.config.Activeness; |
| | | import com.ruoyi.system.api.domain.poji.config.DelayTask; |
| | | import com.ruoyi.system.api.domain.poji.config.SysClassification; |
| | | import com.ruoyi.system.api.domain.poji.config.SysTag; |
| | | import com.ruoyi.system.api.domain.poji.config.*; |
| | | import com.ruoyi.system.api.domain.poji.sys.SysStaff; |
| | | import com.ruoyi.system.api.domain.vo.AppOtherConfigGetVo; |
| | | import com.ruoyi.system.api.domain.vo.MgtSysSimpleUserVo; |
| | | import com.ruoyi.system.domain.dto.MgtCustomConfigDto; |
| | | import com.ruoyi.system.service.config.*; |
| | | import com.ruoyi.system.service.staff.SysStaffService; |
| | | import com.ruoyi.system.service.sys.ISysUserService; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | |
| | | @Resource |
| | | private CustomConfigService customConfigService; |
| | | |
| | | @Resource |
| | | private SysStaffService sysStaffService; |
| | | |
| | | @Resource |
| | | private FileRecordService fileRecordService; |
| | | |
| | | |
| | | /** |
| | | * 获取系统标签 |
| | |
| | | return R.ok(appOtherConfigGetVo); |
| | | } |
| | | |
| | | /** |
| | | * @description 改变分类数量 |
| | | * @author jqs |
| | | * @date 2023/7/20 20:06 |
| | | * @param mgtClassNumDto |
| | | * @return R |
| | | */ |
| | | @PostMapping("/changeClassNum") |
| | | public R changeClassNum(@RequestBody MgtClassNumDto mgtClassNumDto) |
| | | { |
| | | sysClassificationService.changeClassNum(mgtClassNumDto); |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * @description 获取客户电话 |
| | | * @author jqs |
| | | * @date 2023/7/29 15:26 |
| | | * @return R<String> |
| | | */ |
| | | @PostMapping("/getServicePhone") |
| | | public R<String> getServicePhone() |
| | | { |
| | | MgtCustomConfigDto mgtCustomConfigDto = new MgtCustomConfigDto(); |
| | | mgtCustomConfigDto.setConfigType("PLATFORM_SERVICE_PHONE"); |
| | | List<String> mgtCustomConfigVo = customConfigService.getCustomConfig(mgtCustomConfigDto); |
| | | String servicePhone = "暂无客服电话"; |
| | | if(mgtCustomConfigVo!=null&&mgtCustomConfigVo.size()>0){ |
| | | servicePhone = mgtCustomConfigVo.get(0); |
| | | } |
| | | return R.ok(servicePhone); |
| | | } |
| | | |
| | | /** |
| | | * @description 通过id获取员工列表 |
| | | * @author jqs |
| | | * @date 2023/9/5 10:01 |
| | | * @param userIdList |
| | | * @return R<List<SysStaff>> |
| | | */ |
| | | @PostMapping("/listSysStaffByIds") |
| | | public R<List<SysStaff>> listSysStaffByIds(@RequestBody List<Long> userIdList) |
| | | { |
| | | List<SysStaff> sysStaffList = sysStaffService.listSysStaffByIds(userIdList); |
| | | return R.ok(sysStaffList); |
| | | } |
| | | |
| | | /** |
| | | * @description 创建文件上传记录 |
| | | * @author jqs |
| | | * @date 2023/9/11 11:56 |
| | | * @param fileRecord |
| | | * @return R |
| | | */ |
| | | @PostMapping("/createFileRecord") |
| | | public R createFileRecord(@RequestBody FileRecord fileRecord) |
| | | { |
| | | fileRecordService.createFileRecord(fileRecord); |
| | | return R.ok(); |
| | | } |
| | | } |