|
@@ -265,11 +265,6 @@ public class KwpBizWalletService {
|
|
|
* 新增钱包
|
|
* 新增钱包
|
|
|
*/
|
|
*/
|
|
|
public void addWallet(KwpBizWalletSaveRequest request) {
|
|
public void addWallet(KwpBizWalletSaveRequest request) {
|
|
|
- int systemType = LoginUserHolder.getSystemType();
|
|
|
|
|
- //非管理端,不可新建钱包
|
|
|
|
|
- if (systemType != SystemTypeEnum.COMPANY.getCode()) {
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
//校验
|
|
//校验
|
|
|
checkAddWallet(request);
|
|
checkAddWallet(request);
|
|
|
|
|
|
|
@@ -289,6 +284,11 @@ public class KwpBizWalletService {
|
|
|
* @param request
|
|
* @param request
|
|
|
*/
|
|
*/
|
|
|
private void checkAddWallet(KwpBizWalletSaveRequest request) {
|
|
private void checkAddWallet(KwpBizWalletSaveRequest request) {
|
|
|
|
|
+ int systemType = LoginUserHolder.getSystemType();
|
|
|
|
|
+ //非管理端,不可新建钱包
|
|
|
|
|
+ if (systemType != SystemTypeEnum.COMPANY.getCode()) {
|
|
|
|
|
+ throw new RuntimeException("entId:" + LoginUserHolder.getEntId() + ", 非管理端企业,不可新建钱包!");
|
|
|
|
|
+ }
|
|
|
//查询当前登录企业
|
|
//查询当前登录企业
|
|
|
EntTypeResDto entTypeResDto = remoteSystemService.queryEntTypeById(LoginUserHolder.getEntId());
|
|
EntTypeResDto entTypeResDto = remoteSystemService.queryEntTypeById(LoginUserHolder.getEntId());
|
|
|
if (entTypeResDto == null) {
|
|
if (entTypeResDto == null) {
|