|
|
@@ -3,20 +3,22 @@ package me.zhengjie.application.admin.service.impl;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import me.zhengjie.application.admin.controller.vo.BankQueryRsp;
|
|
|
+import me.zhengjie.application.admin.controller.vo.OfficeXbankReq;
|
|
|
+import me.zhengjie.application.admin.controller.vo.SysInfoVO;
|
|
|
+import me.zhengjie.application.admin.service.DictDetailService;
|
|
|
+import me.zhengjie.application.admin.service.OfficeXbankService;
|
|
|
import me.zhengjie.base.AppBaseResponse;
|
|
|
import me.zhengjie.base.AppResultData;
|
|
|
+import me.zhengjie.base.ResultCode;
|
|
|
import me.zhengjie.base.util.ApplicationContextUtil;
|
|
|
import me.zhengjie.base.util.BeanCopyUtils;
|
|
|
-import me.zhengjie.base.ResultCode;
|
|
|
import me.zhengjie.dao.mybatis.entity.BankEntity;
|
|
|
import me.zhengjie.dao.mybatis.entity.ContractOrderEntity;
|
|
|
import me.zhengjie.dao.mybatis.entity.OfficeXbankEntity;
|
|
|
-import me.zhengjie.application.admin.controller.vo.OfficeXbankReq;
|
|
|
-import me.zhengjie.application.admin.controller.vo.BankQueryRsp;
|
|
|
import me.zhengjie.dao.mybatis.mapper.BankMapper;
|
|
|
import me.zhengjie.dao.mybatis.mapper.ContractOrderMapper;
|
|
|
import me.zhengjie.dao.mybatis.mapper.OfficeXbankMapper;
|
|
|
-import me.zhengjie.application.admin.service.OfficeXbankService;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
@@ -37,9 +39,12 @@ public class OfficeXbankServiceImpl implements OfficeXbankService {
|
|
|
private ContractOrderMapper contractOrderMapper;
|
|
|
@Autowired
|
|
|
private ApplicationContextUtil contextUtil;
|
|
|
+ @Autowired
|
|
|
+ private DictDetailService dictDetailService;
|
|
|
|
|
|
/**
|
|
|
* 查找尚未关联的银行列表
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
@@ -53,6 +58,7 @@ public class OfficeXbankServiceImpl implements OfficeXbankService {
|
|
|
|
|
|
/**
|
|
|
* 查找已经关联的银行列表
|
|
|
+ *
|
|
|
* @param req
|
|
|
* @return
|
|
|
*/
|
|
|
@@ -67,6 +73,7 @@ public class OfficeXbankServiceImpl implements OfficeXbankService {
|
|
|
|
|
|
/**
|
|
|
* 更新关联银行列表
|
|
|
+ *
|
|
|
* @param req
|
|
|
* @return
|
|
|
*/
|
|
|
@@ -132,9 +139,20 @@ public class OfficeXbankServiceImpl implements OfficeXbankService {
|
|
|
entity.setUpdatorId(String.valueOf(contextUtil.getCurrentUserId()));
|
|
|
officeXbankMapper.update(entity, uw);
|
|
|
}
|
|
|
- }catch (Exception e){
|
|
|
+ } catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
return response;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public AppBaseResponse<SysInfoVO> sysInfo() {
|
|
|
+ AppBaseResponse response = new AppBaseResponse();
|
|
|
+ SysInfoVO nameVO = new SysInfoVO();
|
|
|
+ Map<String, String> nameMap = dictDetailService.getValueByName("sys_name");
|
|
|
+ nameVO.setLoginName(nameMap.get("login_name"));
|
|
|
+ nameVO.setMenuName(nameMap.get("menu_name"));
|
|
|
+ response.setData(new AppResultData<SysInfoVO>(nameVO));
|
|
|
+ return response;
|
|
|
+ }
|
|
|
}
|