修改工资结算
This commit is contained in:
@ -0,0 +1,21 @@
|
||||
package com.ruoyi.wgz.bo.req;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@Accessors(chain = true)
|
||||
@ApiModel("确认|拒绝报名请求对象")
|
||||
public class WgzAppConfirmRegistrationReq implements Serializable {
|
||||
@ApiModelProperty("招工ID")
|
||||
private Long recruitId;
|
||||
|
||||
@ApiModelProperty("0拒绝 1确认")
|
||||
private String status;
|
||||
}
|
@ -81,7 +81,7 @@ public interface IWgzPayCalculationService extends IServicePlus<WgzPayCalculatio
|
||||
/**
|
||||
* 根据务工者id和招工id,得到最新的数据
|
||||
*/
|
||||
WgzPayCalculation findByUserIdRecruitIdNewestData(Long userId, Long recruitId);
|
||||
List<WgzPayCalculation> findByUserIdRecruitIdNewestData(Long userId, Long recruitId);
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
|
@ -92,4 +92,9 @@ public interface IWgzUserService extends IServicePlus<WgzUser> {
|
||||
* 务工者APP实名认证
|
||||
*/
|
||||
Boolean userRealNameAuthentication(@Validated @RequestBody WgzAppRealNameAuthenticationReq req);
|
||||
|
||||
/**
|
||||
* 根据务工者唯一标识获取数据
|
||||
*/
|
||||
WgzUser findByUserId(Long userId);
|
||||
}
|
||||
|
@ -161,13 +161,12 @@ public class WgzPayCalculationServiceImpl extends ServicePlusImpl<WgzPayCalculat
|
||||
}
|
||||
|
||||
@Override
|
||||
public WgzPayCalculation findByUserIdRecruitIdNewestData(Long userId, Long recruitId) {
|
||||
public List<WgzPayCalculation> findByUserIdRecruitIdNewestData(Long userId, Long recruitId) {
|
||||
LambdaQueryWrapper<WgzPayCalculation> eq = new LambdaQueryWrapper<WgzPayCalculation>().
|
||||
eq(WgzPayCalculation::getUserId, userId).
|
||||
eq(WgzPayCalculation::getRecruitId, recruitId).
|
||||
orderByDesc(WgzPayCalculation::getCreateTime).
|
||||
last("limit 1");
|
||||
return baseMapper.selectOne(eq);
|
||||
eq(WgzPayCalculation::getAuditorType, "2");
|
||||
return baseMapper.selectList(eq);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -190,4 +190,9 @@ public class WgzUserServiceImpl extends ServicePlusImpl<WgzUserMapper, WgzUser>
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public WgzUser findByUserId(Long userId) {
|
||||
return baseMapper.selectOne(new LambdaQueryWrapper<WgzUser>().eq(WgzUser::getUserId, userId));
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user