更新
This commit is contained in:
@@ -18,15 +18,14 @@ import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户首选工作设置Controller
|
||||
*
|
||||
*
|
||||
* @author wangxiangshun
|
||||
* @date 2025-11-02
|
||||
*/
|
||||
@Api(tags ="用户首选工作设置")
|
||||
@Api(tags = "用户首选工作设置")
|
||||
@RestController
|
||||
@RequestMapping("/hotake/settingsJob")
|
||||
public class HotakeSettingsJobController extends BaseController
|
||||
{
|
||||
public class HotakeSettingsJobController extends BaseController {
|
||||
@Autowired
|
||||
private IHotakeSettingsJobService hotakeSettingsJobService;
|
||||
|
||||
@@ -35,9 +34,9 @@ public class HotakeSettingsJobController extends BaseController
|
||||
*/
|
||||
@ApiOperation("查询用户首选工作设置列表(分页)")
|
||||
@GetMapping("/getPagelist")
|
||||
public TableWebDataInfo<HotakeSettingsJob> list(HotakeSettingsJob hotakeSettingsJob)
|
||||
{
|
||||
public TableWebDataInfo<HotakeSettingsJob> list(HotakeSettingsJob hotakeSettingsJob) {
|
||||
startPage();
|
||||
hotakeSettingsJob.setCreateBy(getUsername());
|
||||
List<HotakeSettingsJob> list = hotakeSettingsJobService.selectHotakeSettingsJobList(hotakeSettingsJob);
|
||||
return getWebDataTable(list);
|
||||
}
|
||||
@@ -47,10 +46,10 @@ public class HotakeSettingsJobController extends BaseController
|
||||
*/
|
||||
@ApiOperation("查询用户首选工作设置列表(无分页)")
|
||||
@GetMapping("/getList")
|
||||
public R<List<HotakeSettingsJob>> getList(HotakeSettingsJob hotakeSettingsJob)
|
||||
{
|
||||
public R<List<HotakeSettingsJob>> getList(HotakeSettingsJob hotakeSettingsJob) {
|
||||
hotakeSettingsJob.setCreateBy(getUsername());
|
||||
List<HotakeSettingsJob> list = hotakeSettingsJobService.selectHotakeSettingsJobList(hotakeSettingsJob);
|
||||
return R.ok(list,"");
|
||||
return R.ok(list, "");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -58,10 +57,9 @@ public class HotakeSettingsJobController extends BaseController
|
||||
*/
|
||||
@ApiOperation("获取用户首选工作设置字典对照内容")
|
||||
@GetMapping("/getDictData")
|
||||
public R<HotakeSettingsJobDictDto> getDictData()
|
||||
{
|
||||
public R<HotakeSettingsJobDictDto> getDictData() {
|
||||
HotakeSettingsJobDictDto dictData = hotakeSettingsJobService.getDictData();
|
||||
return R.ok(dictData,"");
|
||||
return R.ok(dictData, "");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -69,9 +67,8 @@ public class HotakeSettingsJobController extends BaseController
|
||||
*/
|
||||
@ApiOperation("获取用户首选工作设置详细信息")
|
||||
@GetMapping(value = "/{id}")
|
||||
public R<HotakeSettingsJob> getInfo(@ApiParam("设置ID") @PathVariable("id") Long id)
|
||||
{
|
||||
return R.ok(hotakeSettingsJobService.selectHotakeSettingsJobById(id),"");
|
||||
public R<HotakeSettingsJob> getInfo(@ApiParam("设置ID") @PathVariable("id") Long id) {
|
||||
return R.ok(hotakeSettingsJobService.selectHotakeSettingsJobById(id), "");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -80,8 +77,7 @@ public class HotakeSettingsJobController extends BaseController
|
||||
@ApiOperation("新增用户首选工作设置")
|
||||
@Log(title = "用户首选工作设置", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public R<HotakeSettingsJob> add(@RequestBody HotakeSettingsJob hotakeSettingsJob)
|
||||
{
|
||||
public R<HotakeSettingsJob> add(@RequestBody HotakeSettingsJob hotakeSettingsJob) {
|
||||
return R.ok(hotakeSettingsJobService.insertHotakeSettingsJob(hotakeSettingsJob));
|
||||
}
|
||||
|
||||
@@ -91,8 +87,7 @@ public class HotakeSettingsJobController extends BaseController
|
||||
@ApiOperation("修改用户首选工作设置")
|
||||
@Log(title = "用户首选工作设置", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public R<HotakeSettingsJob> edit(@RequestBody HotakeSettingsJob hotakeSettingsJob)
|
||||
{
|
||||
public R<HotakeSettingsJob> edit(@RequestBody HotakeSettingsJob hotakeSettingsJob) {
|
||||
return R.ok(hotakeSettingsJobService.updateHotakeSettingsJob(hotakeSettingsJob));
|
||||
}
|
||||
|
||||
@@ -101,9 +96,8 @@ public class HotakeSettingsJobController extends BaseController
|
||||
*/
|
||||
@ApiOperation("删除用户首选工作设置")
|
||||
@Log(title = "用户首选工作设置", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{id}")
|
||||
public R remove(@PathVariable Long id)
|
||||
{
|
||||
@DeleteMapping("/{id}")
|
||||
public R remove(@PathVariable Long id) {
|
||||
return R.ok(hotakeSettingsJobService.deleteHotakeSettingsJobById(id));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user