|
|
@@ -5,6 +5,7 @@ import java.time.format.DateTimeFormatter;
|
|
|
import java.util.*;
|
|
|
|
|
|
import cn.hutool.core.lang.Validator;
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
|
|
import com.zhongzheng.common.core.domain.model.LoginUser;
|
|
|
@@ -20,6 +21,10 @@ import com.zhongzheng.modules.order.service.IOrderService;
|
|
|
import com.zhongzheng.modules.order.vo.OrderGoodsVo;
|
|
|
import com.zhongzheng.modules.order.vo.OrderListVo;
|
|
|
import com.zhongzheng.modules.order.vo.OrderVo;
|
|
|
+import com.zhongzheng.modules.system.bo.SysTenantEditBo;
|
|
|
+import com.zhongzheng.modules.system.domain.SysTenant;
|
|
|
+import com.zhongzheng.modules.system.service.ISysTenantService;
|
|
|
+import com.zhongzheng.modules.system.vo.SysTenantHandleAccountVo;
|
|
|
import com.zhongzheng.modules.user.domain.UserSubscribe;
|
|
|
import com.zhongzheng.modules.user.service.IUserSubscribeService;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
@@ -61,6 +66,8 @@ public class OrderController extends BaseController {
|
|
|
|
|
|
private final TokenService tokenService;
|
|
|
|
|
|
+ private final ISysTenantService iSysTenantService;
|
|
|
+
|
|
|
/**
|
|
|
* 查询订单列表
|
|
|
*/
|
|
|
@@ -199,5 +206,27 @@ public class OrderController extends BaseController {
|
|
|
return AjaxResult.success(iOrderService.questionGoodsOpenImport(importBoList,loginUser.getUser().getUserId(),SecurityUtils.getUsername()));
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation("获取经办订单收款信息")
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:order:query')")
|
|
|
+ @GetMapping("/handleBank")
|
|
|
+ public AjaxResult<SysTenantHandleAccountVo> getHandleBank() {
|
|
|
+ String tenantId = ServletUtils.getRequest().getHeader("TenantId");
|
|
|
+ SysTenant tenant = iSysTenantService.getById(tenantId);
|
|
|
+ String information = tenant.getHandleBank();
|
|
|
+ SysTenantHandleAccountVo accountVo = JSONObject.parseObject(information, SysTenantHandleAccountVo.class);
|
|
|
+ return AjaxResult.success(accountVo);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation("修改经办订单收款信息")
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:order:query')")
|
|
|
+ @GetMapping("/edit/handleBank")
|
|
|
+ public AjaxResult<Void> editHandleBank(SysTenantHandleAccountVo bo) {
|
|
|
+ String json = JSONObject.toJSONString(bo);
|
|
|
+ String tenantId = ServletUtils.getRequest().getHeader("TenantId");
|
|
|
+ SysTenantEditBo editBo = new SysTenantEditBo();
|
|
|
+ editBo.setTenantId(Long.parseLong(tenantId));
|
|
|
+ editBo.setHandleBank(json);
|
|
|
+ return toAjax(iSysTenantService.updateByEditBo(editBo)?1:0);
|
|
|
+ }
|
|
|
|
|
|
}
|