业务逻辑完善补充
This commit is contained in:
@@ -0,0 +1,85 @@
|
||||
package com.vetti.web.controller.hotake;
|
||||
|
||||
import com.vetti.common.annotation.Log;
|
||||
import com.vetti.common.core.controller.BaseController;
|
||||
import com.vetti.common.core.domain.R;
|
||||
import com.vetti.common.core.page.TableWebDataInfo;
|
||||
import com.vetti.common.enums.BusinessType;
|
||||
import com.vetti.hotake.domain.HotakeComplianceInfo;
|
||||
import com.vetti.hotake.service.IHotakeComplianceInfoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户合规性信息Controller
|
||||
*
|
||||
* @author wangxiangshun
|
||||
* @date 2026-01-18
|
||||
*/
|
||||
@Api(tags ="用户合规性信息")
|
||||
@RestController
|
||||
@RequestMapping("/hotake/complianceInfo")
|
||||
public class HotakeComplianceInfoController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IHotakeComplianceInfoService hotakeComplianceInfoService;
|
||||
|
||||
/**
|
||||
* 查询用户合规性信息列表
|
||||
*/
|
||||
@ApiOperation("查询用户合规性信息列表")
|
||||
@GetMapping("/list")
|
||||
public TableWebDataInfo<HotakeComplianceInfo> list(HotakeComplianceInfo hotakeComplianceInfo)
|
||||
{
|
||||
startPage();
|
||||
List<HotakeComplianceInfo> list = hotakeComplianceInfoService.selectHotakeComplianceInfoList(hotakeComplianceInfo);
|
||||
return getWebDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取用户合规性信息详细信息
|
||||
*/
|
||||
@ApiOperation("获取用户合规性信息详细信息")
|
||||
@GetMapping(value = "/{id}")
|
||||
public R<?> getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return R.ok(hotakeComplianceInfoService.selectHotakeComplianceInfoById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增用户合规性信息
|
||||
*/
|
||||
@ApiOperation("新增用户合规性信息")
|
||||
@Log(title = "用户合规性信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public R<?> add(@RequestBody HotakeComplianceInfo hotakeComplianceInfo)
|
||||
{
|
||||
return R.ok(hotakeComplianceInfoService.insertHotakeComplianceInfo(hotakeComplianceInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改用户合规性信息
|
||||
*/
|
||||
@ApiOperation("修改用户合规性信息")
|
||||
@Log(title = "用户合规性信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public R<?> edit(@RequestBody HotakeComplianceInfo hotakeComplianceInfo)
|
||||
{
|
||||
return R.ok(hotakeComplianceInfoService.updateHotakeComplianceInfo(hotakeComplianceInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除用户合规性信息
|
||||
*/
|
||||
@ApiOperation("删除用户合规性信息")
|
||||
@Log(title = "用户合规性信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<?> remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return R.ok(hotakeComplianceInfoService.deleteHotakeComplianceInfoByIds(ids));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
package com.vetti.web.controller.hotake;
|
||||
|
||||
import com.vetti.common.annotation.Log;
|
||||
import com.vetti.common.core.controller.BaseController;
|
||||
import com.vetti.common.core.domain.R;
|
||||
import com.vetti.common.core.page.TableWebDataInfo;
|
||||
import com.vetti.common.enums.BusinessType;
|
||||
import com.vetti.hotake.domain.HotakeRolesApplyOperRecord;
|
||||
import com.vetti.hotake.service.IHotakeRolesApplyOperRecordService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 岗位申请操作信息Controller
|
||||
*
|
||||
* @author wangxiangshun
|
||||
* @date 2026-01-18
|
||||
*/
|
||||
@Api(tags ="岗位申请操作信息")
|
||||
@RestController
|
||||
@RequestMapping("/vetti/rolesApplyOperRecord")
|
||||
public class HotakeRolesApplyOperRecordController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IHotakeRolesApplyOperRecordService hotakeRolesApplyOperRecordService;
|
||||
|
||||
/**
|
||||
* 查询岗位申请操作信息列表
|
||||
*/
|
||||
@ApiOperation("查询岗位申请操作信息列表")
|
||||
@GetMapping("/list")
|
||||
public TableWebDataInfo<HotakeRolesApplyOperRecord> list(HotakeRolesApplyOperRecord hotakeRolesApplyOperRecord)
|
||||
{
|
||||
startPage();
|
||||
List<HotakeRolesApplyOperRecord> list = hotakeRolesApplyOperRecordService.selectHotakeRolesApplyOperRecordList(hotakeRolesApplyOperRecord);
|
||||
return getWebDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取岗位申请操作信息详细信息
|
||||
*/
|
||||
@ApiOperation("获取岗位申请操作信息详细信息")
|
||||
@GetMapping(value = "/{id}")
|
||||
public R<?> getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return R.ok(hotakeRolesApplyOperRecordService.selectHotakeRolesApplyOperRecordById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增岗位申请操作信息
|
||||
*/
|
||||
@ApiOperation("新增岗位申请操作信息")
|
||||
@Log(title = "岗位申请操作信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public R<?> add(@RequestBody HotakeRolesApplyOperRecord hotakeRolesApplyOperRecord)
|
||||
{
|
||||
return R.ok(hotakeRolesApplyOperRecordService.insertHotakeRolesApplyOperRecord(hotakeRolesApplyOperRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改岗位申请操作信息
|
||||
*/
|
||||
@ApiOperation("修改岗位申请操作信息")
|
||||
@Log(title = "岗位申请操作信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public R<?> edit(@RequestBody HotakeRolesApplyOperRecord hotakeRolesApplyOperRecord)
|
||||
{
|
||||
return R.ok(hotakeRolesApplyOperRecordService.updateHotakeRolesApplyOperRecord(hotakeRolesApplyOperRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除岗位申请操作信息
|
||||
*/
|
||||
@ApiOperation("删除岗位申请操作信息")
|
||||
@Log(title = "岗位申请操作信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<?> remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return R.ok(hotakeRolesApplyOperRecordService.deleteHotakeRolesApplyOperRecordByIds(ids));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user