|
@@ -1,5 +1,6 @@
|
|
|
package com.fdkankan.manage.service.impl;
|
|
|
|
|
|
+import com.alibaba.nacos.shaded.org.checkerframework.checker.units.qual.A;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
import com.fdkankan.manage.entity.JySceneAuth;
|
|
@@ -28,6 +29,13 @@ public class JySceneAuthServiceImpl extends ServiceImpl<IJySceneAuthMapper, JySc
|
|
|
|
|
|
@Override
|
|
|
public void updateAuthTypeByNum(String num, Integer authType) {
|
|
|
+ JySceneAuth auth = this.getByNum(num);
|
|
|
+ if(auth == null){
|
|
|
+ auth = new JySceneAuth(authType);
|
|
|
+ auth.setNum(num);
|
|
|
+ this.save(auth);
|
|
|
+ return;
|
|
|
+ }
|
|
|
LambdaUpdateWrapper<JySceneAuth> wrapper = new LambdaUpdateWrapper<>();
|
|
|
wrapper.eq(JySceneAuth::getNum,num);
|
|
|
wrapper.set(JySceneAuth::getAuthType,authType);
|