|
@@ -8,6 +8,8 @@ import org.jeecg.common.util.StringUtils;
|
|
|
import org.jeecg.modules.company.entity.CompanyAuthentication;
|
|
import org.jeecg.modules.company.entity.CompanyAuthentication;
|
|
|
import org.jeecg.modules.company.mapper.CompanyAuthenticationMapper;
|
|
import org.jeecg.modules.company.mapper.CompanyAuthenticationMapper;
|
|
|
import org.jeecg.modules.company.service.ICompanyAuthenticationService;
|
|
import org.jeecg.modules.company.service.ICompanyAuthenticationService;
|
|
|
|
|
+import org.jeecg.modules.hpposition.entity.Position;
|
|
|
|
|
+import org.jeecg.modules.hpposition.mapper.PositionMapper;
|
|
|
import org.jeecg.modules.message.entity.Message;
|
|
import org.jeecg.modules.message.entity.Message;
|
|
|
import org.jeecg.modules.message.mapper.MessageMapper;
|
|
import org.jeecg.modules.message.mapper.MessageMapper;
|
|
|
import org.jeecg.modules.message.service.IMessageService;
|
|
import org.jeecg.modules.message.service.IMessageService;
|
|
@@ -42,6 +44,8 @@ public class CompanyAuthenticationServiceImpl extends ServiceImpl<CompanyAuthent
|
|
|
private IMessageService iMessageService;
|
|
private IMessageService iMessageService;
|
|
|
@Resource
|
|
@Resource
|
|
|
private MessageMapper messageMapper;
|
|
private MessageMapper messageMapper;
|
|
|
|
|
+ @Resource
|
|
|
|
|
+ private PositionMapper positionMapper;
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public Page<CompanyAuthentication> queryPageList1(Page<CompanyAuthentication> page, CompanyAuthentication companyAuthentication) {
|
|
public Page<CompanyAuthentication> queryPageList1(Page<CompanyAuthentication> page, CompanyAuthentication companyAuthentication) {
|
|
@@ -206,11 +210,20 @@ public class CompanyAuthenticationServiceImpl extends ServiceImpl<CompanyAuthent
|
|
|
boolean ok= false;
|
|
boolean ok= false;
|
|
|
try {
|
|
try {
|
|
|
ok = updateById(companyAuthentication);
|
|
ok = updateById(companyAuthentication);
|
|
|
|
|
+ companyAuthentication=getById(companyAuthentication.getId());
|
|
|
Message message=new Message();
|
|
Message message=new Message();
|
|
|
message.setUserId(companyAuthentication.getUserId());
|
|
message.setUserId(companyAuthentication.getUserId());
|
|
|
if(companyAuthentication.getAuthenticationStatus()==2){
|
|
if(companyAuthentication.getAuthenticationStatus()==2){
|
|
|
message.setTitle("企业认证通过审核");
|
|
message.setTitle("企业认证通过审核");
|
|
|
message.setContent("您的企业信息已通过审核");
|
|
message.setContent("您的企业信息已通过审核");
|
|
|
|
|
+ List<Position> list=positionMapper.findPosition(companyAuthentication.getUserId());
|
|
|
|
|
+ if(list.size()<0){
|
|
|
|
|
+ for (int i = 0; i <list.size() ; i++) {
|
|
|
|
|
+ Position position=list.get(i);
|
|
|
|
|
+ position.setEnterpriseName(companyAuthentication.getEnterpriseName());
|
|
|
|
|
+ positionMapper.changePositionName(position);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}else if(companyAuthentication.getAuthenticationStatus()==3){
|
|
}else if(companyAuthentication.getAuthenticationStatus()==3){
|
|
|
message.setTitle("企业认证未通过审核");
|
|
message.setTitle("企业认证未通过审核");
|
|
|
message.setContent("您的企业信息未通过审核");
|
|
message.setContent("您的企业信息未通过审核");
|
|
@@ -219,7 +232,7 @@ public class CompanyAuthenticationServiceImpl extends ServiceImpl<CompanyAuthent
|
|
|
message.setType(2);
|
|
message.setType(2);
|
|
|
message.setIsRead(0);
|
|
message.setIsRead(0);
|
|
|
message.setDelFlag("0");
|
|
message.setDelFlag("0");
|
|
|
- ok=iMessageService.updateById(message);
|
|
|
|
|
|
|
+ ok=iMessageService.save(message);
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
|
}
|
|
}
|