工资,日报,补卡
This commit is contained in:
@ -0,0 +1,66 @@
|
||||
package com.ruoyi.web.controller.bgt;
|
||||
|
||||
import com.ruoyi.bgt.domain.dto.BgtDailyClockListDTO;
|
||||
import com.ruoyi.bgt.domain.dto.BgtDailyClockUpdateDTO;
|
||||
import com.ruoyi.bgt.domain.vo.BgtDailyClockDetailVO;
|
||||
import com.ruoyi.bgt.domain.vo.BgtDailyClockListVO;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.annotation.RepeatSubmit;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.wgz.service.IWgzDailyClockService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* 日报打卡Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-02-18
|
||||
*/
|
||||
@Api(value = "App包工头日报审核控制器", tags = {"App包工头日报审核"})
|
||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
||||
@RestController
|
||||
@RequestMapping("/app/bgt/clock")
|
||||
public class AppBgtDailyClockController extends BaseController {
|
||||
|
||||
private final IWgzDailyClockService iWgzDailyClockService;
|
||||
|
||||
/**
|
||||
* 查询日报打卡列表
|
||||
*/
|
||||
@ApiOperation("查询日报打卡列表")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<BgtDailyClockListVO> list(@Validated BgtDailyClockListDTO dto) {
|
||||
return iWgzDailyClockService.appQueryPageList(dto);
|
||||
}
|
||||
/**
|
||||
* 获取日报打卡详细信息
|
||||
*/
|
||||
@ApiOperation("获取日报打卡详细信息")
|
||||
@GetMapping("/{id}")
|
||||
public AjaxResult<BgtDailyClockDetailVO> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(iWgzDailyClockService.appQueryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改日报打卡
|
||||
*/
|
||||
@ApiOperation("已读和审批日报")
|
||||
@Log(title = "已读和审批日报", businessType = BusinessType.UPDATE)
|
||||
@RepeatSubmit
|
||||
@PutMapping()
|
||||
public AjaxResult<Void> edit(@Validated @RequestBody BgtDailyClockUpdateDTO dto) {
|
||||
return toAjax(iWgzDailyClockService.appUpdate(dto) ? 1 : 0);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
package com.ruoyi.web.controller.bgt;
|
||||
|
||||
import com.ruoyi.bgt.domain.dto.BgtPayCalculationListDTO;
|
||||
import com.ruoyi.bgt.domain.dto.BgtPayCalculationUpdateDTO;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.annotation.RepeatSubmit;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.wgz.bo.res.WgzAppApplyForPayrollSettlementListRes;
|
||||
import com.ruoyi.wgz.service.IWgzPayCalculationService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* 工资结算Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-02-21
|
||||
*/
|
||||
@Api(value = "App包工头工资结算审核控制器", tags = {"App包工头工资结算审核"})
|
||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
||||
@RestController
|
||||
@RequestMapping("/app/bgt/calculation")
|
||||
public class AppBgtPayCalculationController extends BaseController {
|
||||
|
||||
private final IWgzPayCalculationService iWgzPayCalculationService;
|
||||
|
||||
/**
|
||||
* 查询工资结算列表
|
||||
*/
|
||||
@ApiOperation("查询工资结算审核列表")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<WgzAppApplyForPayrollSettlementListRes> list(@Validated BgtPayCalculationListDTO dto) {
|
||||
return iWgzPayCalculationService.appQueryPageList(dto);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取工资结算详细信息
|
||||
*/
|
||||
@ApiOperation("获取工资结算详细信息")
|
||||
@GetMapping("/{id}")
|
||||
public AjaxResult<WgzAppApplyForPayrollSettlementListRes> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(iWgzPayCalculationService.appQueryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改工资结算
|
||||
*/
|
||||
@ApiOperation("审核工资结算")
|
||||
@Log(title = "审核工资结算", businessType = BusinessType.UPDATE)
|
||||
@RepeatSubmit
|
||||
@PutMapping()
|
||||
public AjaxResult<Void> edit(@Validated @RequestBody BgtPayCalculationUpdateDTO dto) {
|
||||
return toAjax(iWgzPayCalculationService.appUpdate(dto) ? 1 : 0);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.web.controller.bgt;
|
||||
|
||||
import com.ruoyi.bgt.domain.dto.BgtReissueacardListDTO;
|
||||
import com.ruoyi.bgt.domain.dto.BgtReissueacardUpdateDTO;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.annotation.RepeatSubmit;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.wgz.bo.res.WgzReplacementCardRecordRes;
|
||||
import com.ruoyi.wgz.domain.WgzReissueacard;
|
||||
import com.ruoyi.wgz.service.IWgzReissueacardService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* 补卡申请Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-02-20
|
||||
*/
|
||||
@Api(value = "App包工头补卡审批控制器", tags = {"App包工头补卡审批"})
|
||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
||||
@RestController
|
||||
@RequestMapping("/app/bgt/reissueacard")
|
||||
public class AppBgtReissueacardController extends BaseController {
|
||||
|
||||
private final IWgzReissueacardService iWgzReissueacardService;
|
||||
|
||||
/**
|
||||
* 查询补卡申请列表
|
||||
*/
|
||||
@ApiOperation("查询补卡申请列表")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<WgzReplacementCardRecordRes> list(@Validated BgtReissueacardListDTO dto) {
|
||||
return iWgzReissueacardService.appQueryPageList(dto);
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("获取补卡申请详细信息")
|
||||
@GetMapping("/{id}")
|
||||
public AjaxResult<WgzReissueacard> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(iWgzReissueacardService.queryById(id));
|
||||
}
|
||||
|
||||
@ApiOperation("补卡审核")
|
||||
@Log(title = "补卡审核", businessType = BusinessType.UPDATE)
|
||||
@RepeatSubmit
|
||||
@PutMapping()
|
||||
public AjaxResult<Void> edit(@Validated @RequestBody BgtReissueacardUpdateDTO dto) {
|
||||
return toAjax(iWgzReissueacardService.appUpdate(dto) ? 1 : 0);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user