|
@@ -58,6 +58,16 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
|
+ * @desc : 通过ID查询
|
|
|
|
|
+ * @author : admin
|
|
|
|
|
+ * @date : 2023/2/3 13:32
|
|
|
|
|
+ */
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public ResponseResultVO selectByOpenId(String openid) {
|
|
|
|
|
+ return ResponseResultUtil.success(companyMapper.selectByOpenId(openid));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
* @desc : 更新微信用的公司
|
|
* @desc : 更新微信用的公司
|
|
|
* @author : admin
|
|
* @author : admin
|
|
|
* @date : 2023/2/3 13:32
|
|
* @date : 2023/2/3 13:32
|
|
@@ -74,6 +84,20 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
|
+ * @desc : 选择公司更新微信用户的所在当前的公司
|
|
|
|
|
+ * @author : admin
|
|
|
|
|
+ * @date : 2023/2/3 13:32
|
|
|
|
|
+ */
|
|
|
|
|
+ @Override
|
|
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
|
|
+ public ResponseResultVO updateCurrentCpByWxid(Map<String, Object> map) {
|
|
|
|
|
+ String userWxid = map.get("openid") + "";
|
|
|
|
|
+ Integer cpId = Integer.valueOf(map.get("cpId") + "");
|
|
|
|
|
+ int i = userMapper.updateCurrentCpByWxid(userWxid, cpId);
|
|
|
|
|
+ return ResponseResultUtil.success(true);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
* @desc : 注册-商户
|
|
* @desc : 注册-商户
|
|
|
* @author : 姜永辉
|
|
* @author : 姜永辉
|
|
|
* @date : 2024-02-20 13:55
|
|
* @date : 2024-02-20 13:55
|