优化
This commit is contained in:
@ -34,6 +34,7 @@ import com.ruoyi.wgz.service.IWgzReissueacardService;
|
||||
import com.ruoyi.wgz.service.IWgzUserService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.time.LocalTime;
|
||||
import java.util.ArrayList;
|
||||
@ -146,6 +147,7 @@ public class BgtMessageServiceImpl extends ServicePlusImpl<BgtMessageMapper, Bgt
|
||||
*/
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public Boolean sendAMessage(BgtMessage bo) {
|
||||
return save(bo);
|
||||
}
|
||||
|
@ -443,6 +443,7 @@ public class BgtProjectRecruitApplyServiceImpl extends ServicePlusImpl<BgtProjec
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public Boolean userConfirmRegistration(WgzAppConfirmRegistrationReq req) {
|
||||
//1、获取当前用户
|
||||
WgzUser byUserId = wgzUserService.findByUserId(SecurityUtils.getAppUserId());
|
||||
@ -511,7 +512,7 @@ public class BgtProjectRecruitApplyServiceImpl extends ServicePlusImpl<BgtProjec
|
||||
setSenderType(USERTYPE_WGZ).
|
||||
setSenderId(byUserId.getUserId()).
|
||||
setRecipientType(USERTYPE_BGT).
|
||||
setRecipientId(apply.getUserId()).
|
||||
setRecipientId(recruit.getUserId()).
|
||||
setHeadline(wgzMessage(mp, "205")).
|
||||
setSubheading(wgzMessage(mp, "206")).
|
||||
setTableId(apply.getId()).
|
||||
|
@ -202,8 +202,6 @@ public class WgzUserServiceImpl extends ServicePlusImpl<WgzUserMapper, WgzUser>
|
||||
//1、对指定用户进行实名认证
|
||||
WgzUser user = new WgzUser();
|
||||
BeanUtils.copyProperties(req, user);
|
||||
System.out.println("1?????????? "+req.getTypeOfWork());
|
||||
System.out.println("2?????????? "+user.getTypeOfWork());
|
||||
int update = baseMapper.update(user, new LambdaQueryWrapper<WgzUser>().eq(WgzUser::getUserId, req.getUserId()));
|
||||
if (update == 0){
|
||||
throw new RuntimeException("当前用户不存在!");
|
||||
|
@ -100,6 +100,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
WHERE
|
||||
b.id not in (SELECT recruit_id FROM bgt_project_recruit_apply WHERE user_id = #{req.userId})and
|
||||
b.del_flag = 0
|
||||
order by b.create_time desc
|
||||
</select>
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user