完成请假模块
This commit is contained in:
@ -60,4 +60,16 @@ public interface IBgtProjectRecruitApplyService extends IServicePlus<BgtProjectR
|
||||
*/
|
||||
List<BgtProjectRecruitApplyVO> appQueryList(BgtProjectRecruitApplyQueryDTO dto);
|
||||
|
||||
/**
|
||||
* LC-APP相关
|
||||
* =================================================================================================================
|
||||
* =================================================================================================================
|
||||
* =================================================================================================================
|
||||
*/
|
||||
|
||||
/**
|
||||
* 根据用户唯一标识去查询当前进场的工地信息
|
||||
*/
|
||||
BgtProjectRecruitApply selectByUserIdProjectRecruitApplyId(Long id);
|
||||
|
||||
}
|
||||
|
@ -66,4 +66,17 @@ public interface IBgtProjectRecruitService extends IServicePlus<BgtProjectRecrui
|
||||
* @return
|
||||
*/
|
||||
BgtProjectRecruitDetailVO appQueryById(Long id);
|
||||
|
||||
/**
|
||||
* LC-APP相关
|
||||
* =================================================================================================================
|
||||
* =================================================================================================================
|
||||
* =================================================================================================================
|
||||
*/
|
||||
|
||||
/**
|
||||
* 根据招工id获取到具体招工信息
|
||||
*/
|
||||
BgtProjectRecruit getAppById(Long id);
|
||||
|
||||
}
|
||||
|
@ -87,4 +87,30 @@ public class BgtProjectRecruitApplyServiceImpl extends ServicePlusImpl<BgtProjec
|
||||
public List<BgtProjectRecruitApplyVO> appQueryList(BgtProjectRecruitApplyQueryDTO dto) {
|
||||
return baseMapper.appQueryList(dto);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* LC-APP相关
|
||||
* =================================================================================================================
|
||||
* =================================================================================================================
|
||||
* =================================================================================================================
|
||||
*/
|
||||
|
||||
/**
|
||||
* 根据用户唯一标识去查询当前进场的工地信息
|
||||
*/
|
||||
@Override
|
||||
public BgtProjectRecruitApply selectByUserIdProjectRecruitApplyId(Long id) {
|
||||
LambdaQueryWrapper<BgtProjectRecruitApply> lqw = Wrappers.lambdaQuery();
|
||||
lqw.eq(BgtProjectRecruitApply::getUserId, id).
|
||||
eq(BgtProjectRecruitApply::getStatus, "1").
|
||||
isNotNull(BgtProjectRecruitApply::getEntryTime).
|
||||
ne(BgtProjectRecruitApply::getEntryTime, "");
|
||||
List<BgtProjectRecruitApply> bgtProjectRecruitApplies = baseMapper.selectList(lqw);
|
||||
if (bgtProjectRecruitApplies.size()>1){
|
||||
throw new RuntimeException("异常,查询到用户同时在多个工地务工!");
|
||||
}
|
||||
return bgtProjectRecruitApplies.get(0);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -138,4 +138,17 @@ public class BgtProjectRecruitServiceImpl extends ServicePlusImpl<BgtProjectRecr
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* LC-APP相关
|
||||
* =================================================================================================================
|
||||
* =================================================================================================================
|
||||
* =================================================================================================================
|
||||
*/
|
||||
|
||||
@Override
|
||||
public BgtProjectRecruit getAppById(Long id) {
|
||||
return baseMapper.selectById(id);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user