Commit aa9896d4 by rongkailun

【新增】提供商管理审核功能

parent 65c7eb79
......@@ -62,7 +62,16 @@ public class PartnersServiceImpl extends ServiceImpl<PartnersDao, PartnersEntity
@Override
public R verifyPartners(PartnersEntity partnersEntity, SysUserEntity user) {
return null;
QueryWrapper<PartnersEntity> partnersEntityQueryWrapper = new QueryWrapper<>();
partnersEntityQueryWrapper.in("id",partnersEntity.getId());
partnersEntity.setAuditor(user.getUsername());
partnersEntity.setCheckdate(new Date());
int update = this.baseMapper.update(partnersEntity, partnersEntityQueryWrapper);
if(update>0){
return R.ok("审核成功!");
}else{
return R.error("审核失败!");
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment