|
@@ -0,0 +1,53 @@
|
|
|
+package com.huyi.service.credit.controller;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
+import com.huyi.service.base.entity.ZcFinanceLog;
|
|
|
+import com.huyi.service.base.service.IZcFinanceLogService;
|
|
|
+import com.keao.tianhu.starter.mybatis.plus.entity.QueryRequest;
|
|
|
+import com.tianhu.common.core.domain.R;
|
|
|
+import com.tianhu.common.core.web.controller.BaseController;
|
|
|
+import com.tianhu.common.security.annotation.PreAuthorize;
|
|
|
+import com.tianhu.common.security.service.TokenService;
|
|
|
+import com.tianhu.system.api.domain.SysUser;
|
|
|
+import com.tianhu.system.api.model.LoginUser;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
+ * 融信操作记录
|
|
|
+ * dudm@minpay.cc
|
|
|
+ * 2021-09-16
|
|
|
+ */
|
|
|
+@RestController
|
|
|
+@RequestMapping("/ownFinanceLog")
|
|
|
+public class OwnFinanceLogController extends BaseController {
|
|
|
+ @Autowired
|
|
|
+ private TokenService tokenService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private IZcFinanceLogService iZcFinanceLogService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询融信信息
|
|
|
+ * @param financeId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/list/{financeId}")
|
|
|
+ public R list(@PathVariable("financeId") String financeId) {
|
|
|
+ //查询当前操作员
|
|
|
+ LoginUser userInfo = tokenService.getLoginUser();
|
|
|
+ SysUser use = userInfo.getSysUser();
|
|
|
+ //查询当前用户是否是经办人
|
|
|
+ LambdaQueryWrapper<ZcFinanceLog> logRelWrapper = new LambdaQueryWrapper<>();
|
|
|
+ logRelWrapper.eq(ZcFinanceLog::getZflFinanceId,financeId);
|
|
|
+ logRelWrapper.orderByAsc(ZcFinanceLog::getCreateTime);
|
|
|
+ List<ZcFinanceLog> list = iZcFinanceLogService.findZcFinanceLogs(logRelWrapper);
|
|
|
+ return R.ok(list);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|