Browse Source

贷款提交

Administrator 2 years ago
parent
commit
be2ab4939b
26 changed files with 2208 additions and 7 deletions
  1. 46 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java
  2. 40 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/DkCommonController.java
  3. 104 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/DkFjController.java
  4. 104 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/DksqController.java
  5. 104 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/DksqLcjlController.java
  6. 1 1
      ruoyi-admin/src/main/resources/application-druid.yml
  7. 18 0
      ruoyi-common/pom.xml
  8. 112 0
      ruoyi-common/src/main/java/com/ruoyi/common/utils/HttpClientUtils.java
  9. 123 0
      ruoyi-system/src/main/java/com/ruoyi/system/domain/DkFj.java
  10. 375 0
      ruoyi-system/src/main/java/com/ruoyi/system/domain/Dksq.java
  11. 98 0
      ruoyi-system/src/main/java/com/ruoyi/system/domain/DksqLcjl.java
  12. 61 0
      ruoyi-system/src/main/java/com/ruoyi/system/mapper/DkFjMapper.java
  13. 61 0
      ruoyi-system/src/main/java/com/ruoyi/system/mapper/DksqLcjlMapper.java
  14. 61 0
      ruoyi-system/src/main/java/com/ruoyi/system/mapper/DksqMapper.java
  15. 13 0
      ruoyi-system/src/main/java/com/ruoyi/system/service/IDkCommonServerce.java
  16. 61 0
      ruoyi-system/src/main/java/com/ruoyi/system/service/IDkFjService.java
  17. 61 0
      ruoyi-system/src/main/java/com/ruoyi/system/service/IDksqLcjlService.java
  18. 61 0
      ruoyi-system/src/main/java/com/ruoyi/system/service/IDksqService.java
  19. 40 0
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/DkCommonServerceImpl.java
  20. 95 0
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/DkFjServiceImpl.java
  21. 96 0
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/DksqLcjlServiceImpl.java
  22. 96 0
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/DksqServiceImpl.java
  23. 11 6
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java
  24. 89 0
      ruoyi-system/src/main/resources/mapper/system/DkFjMapper.xml
  25. 91 0
      ruoyi-system/src/main/resources/mapper/system/DksqLcjlMapper.xml
  26. 186 0
      ruoyi-system/src/main/resources/mapper/system/DksqMapper.xml

+ 46 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java

@@ -1,9 +1,13 @@
 package com.ruoyi.web.controller.common;
 
+import java.io.IOException;
 import java.util.ArrayList;
 import java.util.List;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
+
+import com.alibaba.fastjson2.JSONObject;
+import com.ruoyi.common.utils.HttpClientUtils;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -160,4 +164,46 @@ public class CommonController
             log.error("下载文件失败", e);
         }
     }
+
+    /**
+     * ocr身份证识别,微信接口
+     *
+     * @return
+     */
+    @PostMapping("/ocrIdCard")
+    public AjaxResult ocrIdCard(MultipartFile file) {
+
+        String accessTokenResult = getAccessToken();
+        JSONObject jsonObject = JSONObject.parseObject(accessTokenResult);
+        String accessToken = jsonObject.getString("access_token");
+        //https://api.weixin.qq.com/cv/ocr/idcard?type=MODE&img_url=ENCODE_URL&access_token=ACCESS_TOCKEN
+        String result = "";
+        try {
+            // 上传文件路径
+            String filePath = RuoYiConfig.getUploadPath();
+            // 上传并返回新文件名称
+            String fileName = FileUploadUtils.upload(filePath, file);
+            String url = serverConfig.getUrl() + fileName;
+            result = HttpClientUtils.doPost("https://api.weixin.qq.com/cv/ocr/idcard?type=photo&img_url=" + url + "&access_token=" + accessToken, null);
+            JSONObject parse = JSONObject.parseObject(result);
+            String errcode = parse.getString("errcode");
+            System.out.println("解析身份证返回值:"+result);
+            if ("0".equals(errcode)){
+                return AjaxResult.success(parse);
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        return AjaxResult.error("识别失败");
+    }
+
+    private static String getAccessToken() {
+        String accessToken = "";
+        try {
+            accessToken = HttpClientUtils.doGet1("https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=wxb9b83f3c86545690&secret=95adc6921a24a3c6cff55f2a1290f6f6");
+        } catch (IOException e) {
+            e.printStackTrace();
+        }
+        return accessToken;
+    }
 }

+ 40 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/DkCommonController.java

@@ -0,0 +1,40 @@
+package com.ruoyi.web.controller.common;
+
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.system.domain.Dksq;
+import com.ruoyi.system.service.impl.DkCommonServerceImpl;
+import com.ruoyi.system.service.impl.DksqLcjlServiceImpl;
+import com.ruoyi.system.service.impl.DksqServiceImpl;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+/**
+ * @Author: tjf
+ * @Date: 2023/6/15 15:27
+ * @Describe:
+ */
+@RequestMapping("/dkCommon")
+public class DkCommonController extends BaseController {
+    @Autowired
+    private DkCommonServerceImpl dkCommonServerce;
+
+    /**
+     * 劳动局审核
+     */
+    @PreAuthorize("@ss.hasPermi('system:dksq:edit')")
+    @Log(title = "贷款申请_主", businessType = BusinessType.UPDATE)
+    @PostMapping("/shenHe")
+    public AjaxResult shenHe(@RequestBody Dksq dksq)
+    {
+        return dkCommonServerce.shenHe(dksq);
+    }
+
+
+}

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/DkFjController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.web.controller.system;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.system.domain.DkFj;
+import com.ruoyi.system.service.IDkFjService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 贷款_附件Controller
+ * 
+ * @author boman
+ * @date 2023-06-15
+ */
+@RestController
+@RequestMapping("/system/fj")
+public class DkFjController extends BaseController
+{
+    @Autowired
+    private IDkFjService dkFjService;
+
+    /**
+     * 查询贷款_附件列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:fj:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(DkFj dkFj)
+    {
+        startPage();
+        List<DkFj> list = dkFjService.selectDkFjList(dkFj);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出贷款_附件列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:fj:export')")
+    @Log(title = "贷款_附件", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, DkFj dkFj)
+    {
+        List<DkFj> list = dkFjService.selectDkFjList(dkFj);
+        ExcelUtil<DkFj> util = new ExcelUtil<DkFj>(DkFj.class);
+        util.exportExcel(response, list, "贷款_附件数据");
+    }
+
+    /**
+     * 获取贷款_附件详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:fj:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(dkFjService.selectDkFjById(id));
+    }
+
+    /**
+     * 新增贷款_附件
+     */
+    @PreAuthorize("@ss.hasPermi('system:fj:add')")
+    @Log(title = "贷款_附件", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody DkFj dkFj)
+    {
+        return toAjax(dkFjService.insertDkFj(dkFj));
+    }
+
+    /**
+     * 修改贷款_附件
+     */
+    @PreAuthorize("@ss.hasPermi('system:fj:edit')")
+    @Log(title = "贷款_附件", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody DkFj dkFj)
+    {
+        return toAjax(dkFjService.updateDkFj(dkFj));
+    }
+
+    /**
+     * 删除贷款_附件
+     */
+    @PreAuthorize("@ss.hasPermi('system:fj:remove')")
+    @Log(title = "贷款_附件", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(dkFjService.deleteDkFjByIds(ids));
+    }
+}

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/DksqController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.web.controller.system;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.system.domain.Dksq;
+import com.ruoyi.system.service.IDksqService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 贷款申请_主Controller
+ * 
+ * @author boman
+ * @date 2023-06-15
+ */
+@RestController
+@RequestMapping("/system/dksq")
+public class DksqController extends BaseController
+{
+    @Autowired
+    private IDksqService dksqService;
+
+    /**
+     * 查询贷款申请_主列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:dksq:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(Dksq dksq)
+    {
+        startPage();
+        List<Dksq> list = dksqService.selectDksqList(dksq);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出贷款申请_主列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:dksq:export')")
+    @Log(title = "贷款申请_主", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, Dksq dksq)
+    {
+        List<Dksq> list = dksqService.selectDksqList(dksq);
+        ExcelUtil<Dksq> util = new ExcelUtil<Dksq>(Dksq.class);
+        util.exportExcel(response, list, "贷款申请_主数据");
+    }
+
+    /**
+     * 获取贷款申请_主详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:dksq:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(dksqService.selectDksqById(id));
+    }
+
+    /**
+     * 新增贷款申请_主
+     */
+    @PreAuthorize("@ss.hasPermi('system:dksq:add')")
+    @Log(title = "贷款申请_主", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody Dksq dksq)
+    {
+        return toAjax(dksqService.insertDksq(dksq));
+    }
+
+    /**
+     * 修改贷款申请_主
+     */
+    @PreAuthorize("@ss.hasPermi('system:dksq:edit')")
+    @Log(title = "贷款申请_主", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody Dksq dksq)
+    {
+        return toAjax(dksqService.updateDksq(dksq));
+    }
+
+    /**
+     * 删除贷款申请_主
+     */
+    @PreAuthorize("@ss.hasPermi('system:dksq:remove')")
+    @Log(title = "贷款申请_主", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(dksqService.deleteDksqByIds(ids));
+    }
+}

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/DksqLcjlController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.web.controller.system;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.system.domain.DksqLcjl;
+import com.ruoyi.system.service.IDksqLcjlService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 贷款申请_流程记录Controller
+ * 
+ * @author boman
+ * @date 2023-06-15
+ */
+@RestController
+@RequestMapping("/system/lcjl")
+public class DksqLcjlController extends BaseController
+{
+    @Autowired
+    private IDksqLcjlService dksqLcjlService;
+
+    /**
+     * 查询贷款申请_流程记录列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:lcjl:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(DksqLcjl dksqLcjl)
+    {
+        startPage();
+        List<DksqLcjl> list = dksqLcjlService.selectDksqLcjlList(dksqLcjl);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出贷款申请_流程记录列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:lcjl:export')")
+    @Log(title = "贷款申请_流程记录", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, DksqLcjl dksqLcjl)
+    {
+        List<DksqLcjl> list = dksqLcjlService.selectDksqLcjlList(dksqLcjl);
+        ExcelUtil<DksqLcjl> util = new ExcelUtil<DksqLcjl>(DksqLcjl.class);
+        util.exportExcel(response, list, "贷款申请_流程记录数据");
+    }
+
+    /**
+     * 获取贷款申请_流程记录详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:lcjl:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(dksqLcjlService.selectDksqLcjlById(id));
+    }
+
+    /**
+     * 新增贷款申请_流程记录
+     */
+    @PreAuthorize("@ss.hasPermi('system:lcjl:add')")
+    @Log(title = "贷款申请_流程记录", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody DksqLcjl dksqLcjl)
+    {
+        return toAjax(dksqLcjlService.insertDksqLcjl(dksqLcjl));
+    }
+
+    /**
+     * 修改贷款申请_流程记录
+     */
+    @PreAuthorize("@ss.hasPermi('system:lcjl:edit')")
+    @Log(title = "贷款申请_流程记录", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody DksqLcjl dksqLcjl)
+    {
+        return toAjax(dksqLcjlService.updateDksqLcjl(dksqLcjl));
+    }
+
+    /**
+     * 删除贷款申请_流程记录
+     */
+    @PreAuthorize("@ss.hasPermi('system:lcjl:remove')")
+    @Log(title = "贷款申请_流程记录", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(dksqLcjlService.deleteDksqLcjlByIds(ids));
+    }
+}

+ 1 - 1
ruoyi-admin/src/main/resources/application-druid.yml

@@ -17,7 +17,7 @@ ruoyi:
 # 开发环境配置
 server:
     # 服务器的HTTP端口,默认为8080
-    port: 8010
+    port: 8020
     servlet:
         # 应用的访问路径
         context-path: /

+ 18 - 0
ruoyi-common/pom.xml

@@ -17,6 +17,24 @@
 
     <dependencies>
 
+        <!--httpClint-->
+        <dependency>
+            <groupId>org.apache.httpcomponents</groupId>
+            <artifactId>httpclient</artifactId>
+            <version>4.5.5</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.httpcomponents</groupId>
+            <artifactId>httpmime</artifactId>
+            <version>4.5</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.httpcomponents</groupId>
+            <artifactId>httpclient</artifactId>
+            <version>4.5.13</version>
+        </dependency>
+
         <!-- Spring框架基本的核心工具 -->
         <dependency>
             <groupId>org.springframework</groupId>

+ 112 - 0
ruoyi-common/src/main/java/com/ruoyi/common/utils/HttpClientUtils.java

@@ -0,0 +1,112 @@
+package com.ruoyi.common.utils;
+
+import org.apache.http.NameValuePair;
+import org.apache.http.client.config.RequestConfig;
+import org.apache.http.client.entity.UrlEncodedFormEntity;
+import org.apache.http.client.methods.CloseableHttpResponse;
+import org.apache.http.client.methods.HttpGet;
+import org.apache.http.client.methods.HttpPost;
+import org.apache.http.impl.client.CloseableHttpClient;
+import org.apache.http.impl.client.HttpClients;
+import org.apache.http.message.BasicNameValuePair;
+import org.apache.http.util.EntityUtils;
+
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+public class HttpClientUtils {
+
+    final static int TIMEOUT = 1000;
+    final static int TIMEOUT_MSEC = 5 * 1000;
+
+    public static String doPost(String url, Map<String, String> paramMap) throws IOException {
+        // 创建Httpclient对象
+        CloseableHttpClient httpClient = HttpClients.createDefault();
+        CloseableHttpResponse response = null;
+        String resultString = "";
+        try {
+            // 创建Http Post请求
+            HttpPost httpPost = new HttpPost(url);
+            // 创建参数列表
+            if (paramMap != null) {
+                List<NameValuePair> paramList = new ArrayList<>();
+                for (Map.Entry<String, String> param : paramMap.entrySet()) {
+                    paramList.add(new BasicNameValuePair(param.getKey(), param.getValue()));
+                }
+                // 模拟表单
+                UrlEncodedFormEntity entity = new UrlEncodedFormEntity(paramList);
+                httpPost.setEntity(entity);
+            }
+
+            httpPost.setConfig(builderRequestConfig());
+
+            // 执行http请求
+            response = httpClient.execute(httpPost);
+
+            resultString = EntityUtils.toString(response.getEntity(), "UTF-8");
+        } catch (Exception e) {
+            throw e;
+        } finally {
+            try {
+                response.close();
+            } catch (IOException e) {
+                throw e;
+            }
+        }
+
+        return resultString;
+    }
+
+    public static String doGet(String url, Map<String, String> paramMap) throws IOException {
+        url += "?appid=" + paramMap.get("appid") + "&secret=" + paramMap.get("secret") + "&js_code=" + paramMap.get("js_code") + "&grant_type=" + paramMap.get("grant_type");
+        // 创建Httpclient对象
+        CloseableHttpClient httpClient = HttpClients.createDefault();
+        CloseableHttpResponse response = null;
+        String resultString = "";
+        try {
+            // 创建Http Post请求
+            HttpGet httpGet = new HttpGet(url);
+            // 执行http请求
+            response = httpClient.execute(httpGet);
+            resultString = EntityUtils.toString(response.getEntity(), "UTF-8");
+        } catch (Exception e) {
+            throw e;
+        } finally {
+            try {
+                response.close();
+            } catch (IOException e) {
+                throw e;
+            }
+        }
+        return resultString;
+    }
+
+    public static String doGet1(String url) throws IOException {
+        // 创建Httpclient对象
+        CloseableHttpClient httpClient = HttpClients.createDefault();
+        CloseableHttpResponse response = null;
+        String resultString = "";
+        try {
+            // 创建Http Post请求
+            HttpGet httpGet = new HttpGet(url);
+            // 执行http请求
+            response = httpClient.execute(httpGet);
+            resultString = EntityUtils.toString(response.getEntity(), "UTF-8");
+        } catch (Exception e) {
+            throw e;
+        } finally {
+            assert response != null;
+            response.close();
+        }
+        return resultString;
+    }
+
+    private static RequestConfig builderRequestConfig() {
+        return RequestConfig.custom()
+                .setConnectTimeout(TIMEOUT_MSEC)
+                .setConnectionRequestTimeout(TIMEOUT_MSEC)
+                .setSocketTimeout(TIMEOUT_MSEC).build();
+    }
+}

+ 123 - 0
ruoyi-system/src/main/java/com/ruoyi/system/domain/DkFj.java

@@ -0,0 +1,123 @@
+package com.ruoyi.system.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 贷款_附件对象 dk_fj
+ * 
+ * @author boman
+ * @date 2023-06-15
+ */
+public class DkFj extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** $column.columnComment */
+    private Long id;
+
+    /** 贷款申请ID */
+    @Excel(name = "贷款申请ID")
+    private Long dkId;
+
+    /** 附件名称 */
+    @Excel(name = "附件名称")
+    private String fjName;
+
+    /** 附件地址 */
+    @Excel(name = "附件地址")
+    private String path;
+
+    /** 附件担保类别 1:担保人担保 2:房产担保 */
+    @Excel(name = "附件担保类别 1:担保人担保 2:房产担保")
+    private String status;
+
+    /** 附件档次 1:10万元以下 2:10-20 3:20-50  */
+    @Excel(name = "附件档次 1:10万元以下 2:10-20 3:20-50 ")
+    private String grade;
+
+    /** 附件类型 1: 身份证正面 2(身份证反面) 3配偶身份证正面 4配偶身份证反面 5:结婚证 6:户口本首页 7:户口本单页(本人) 8:户口本单页(配偶) 9:申请人征信报告(本人) 10:申请人征信报告(配偶) 11:担保人身份证正面 12:担保人身份证反面 13:担保人收入证明 14:推荐表 15: 创业担保贷款担保合同 16:营业执照 17:工资表 18:带动就业人员名单 19 房产抵押担保合同 20 房产土地证明 21:房产所属人身份证正面 22:房产所属人身份证反面 23:担保人2身份证正面 24:担保人2身份证反面 25:担保人2收入证明 */
+    @Excel(name = "附件类型 1: 身份证正面 2(身份证反面) 3配偶身份证正面 4配偶身份证反面 5:结婚证 6:户口本首页 7:户口本单页(本人) 8:户口本单页(配偶) 9:申请人征信报告(本人) 10:申请人征信报告(配偶) 11:担保人身份证正面 12:担保人身份证反面 13:担保人收入证明 14:推荐表 15: 创业担保贷款担保合同 16:营业执照 17:工资表 18:带动就业人员名单 19 房产抵押担保合同 20 房产土地证明 21:房产所属人身份证正面 22:房产所属人身份证反面 23:担保人2身份证正面 24:担保人2身份证反面 25:担保人2收入证明")
+    private String type;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+    public void setDkId(Long dkId) 
+    {
+        this.dkId = dkId;
+    }
+
+    public Long getDkId() 
+    {
+        return dkId;
+    }
+    public void setFjName(String fjName) 
+    {
+        this.fjName = fjName;
+    }
+
+    public String getFjName() 
+    {
+        return fjName;
+    }
+    public void setPath(String path) 
+    {
+        this.path = path;
+    }
+
+    public String getPath() 
+    {
+        return path;
+    }
+    public void setStatus(String status) 
+    {
+        this.status = status;
+    }
+
+    public String getStatus() 
+    {
+        return status;
+    }
+    public void setGrade(String grade) 
+    {
+        this.grade = grade;
+    }
+
+    public String getGrade() 
+    {
+        return grade;
+    }
+    public void setType(String type) 
+    {
+        this.type = type;
+    }
+
+    public String getType() 
+    {
+        return type;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("dkId", getDkId())
+            .append("fjName", getFjName())
+            .append("path", getPath())
+            .append("status", getStatus())
+            .append("grade", getGrade())
+            .append("type", getType())
+            .append("remark", getRemark())
+            .append("createTime", getCreateTime())
+            .toString();
+    }
+}

+ 375 - 0
ruoyi-system/src/main/java/com/ruoyi/system/domain/Dksq.java

@@ -0,0 +1,375 @@
+package com.ruoyi.system.domain;
+
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 贷款申请_主对象 dksq
+ * 
+ * @author boman
+ * @date 2023-06-15
+ */
+public class Dksq extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** ID */
+    private Long id;
+
+    /** 申请金额(万元) */
+    @Excel(name = "申请金额(万元)")
+    private String sqMoney;
+
+    /** 担保类型 1:担保人担保 2:房产担保 */
+    @Excel(name = "担保类型 1:担保人担保 2:房产担保")
+    private String dbType;
+
+    /** 担保档次 1:10万元以下 2:10-20 3:20-50 */
+    @Excel(name = "担保档次 1:10万元以下 2:10-20 3:20-50")
+    private String dbGrade;
+
+    /** 申请人姓名 */
+    @Excel(name = "申请人姓名")
+    private String sqName;
+
+    /** 申请人身份证号码 */
+    @Excel(name = "申请人身份证号码")
+    private String sqIdCard;
+
+    /** 申请人手机号 */
+    @Excel(name = "申请人手机号")
+    private String sqPhone;
+
+    /** 申请人文化程度 */
+    @Excel(name = "申请人文化程度")
+    private String whcd;
+
+    /** 人员类别 */
+    @Excel(name = "人员类别")
+    private String rylb;
+
+    /** 申请人信用等级 */
+    @Excel(name = "申请人信用等级")
+    private String xydj;
+
+    /** 婚姻状况 */
+    @Excel(name = "婚姻状况")
+    private String hyzk;
+
+    /** 配偶姓名 */
+    @Excel(name = "配偶姓名")
+    private String poName;
+
+    /** 配偶身份证号码 */
+    @Excel(name = "配偶身份证号码")
+    private String poIdCard;
+
+    /** 配偶工作单位 */
+    @Excel(name = "配偶工作单位")
+    private String poGzdw;
+
+    /** 担保人姓名 */
+    @Excel(name = "担保人姓名")
+    private String dbrName;
+
+    /** 担保人身份证号码 */
+    @Excel(name = "担保人身份证号码")
+    private String dbrIdCard;
+
+    /** 担保人2姓名 */
+    @Excel(name = "担保人2姓名")
+    private String dbrTwoName;
+
+    /** 担保人2身份证号码 */
+    @Excel(name = "担保人2身份证号码")
+    private String dbrTwoIdCard;
+
+    /** 申请状态 */
+    @Excel(name = "申请状态")
+    private String type;
+    private String result;
+
+    /** 放贷银行名称 */
+    @Excel(name = "放贷银行名称")
+    private String fdBank;
+
+    /** 放贷银行id */
+    @Excel(name = "放贷银行id")
+    private Long fdBankId;
+
+    /** 实际放贷金额(万元) */
+    @Excel(name = "实际放贷金额(万元)")
+    private String fdMoney;
+
+    /** 实际放贷时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "实际放贷时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date fdTime;
+    /**
+     * 贷款流程记录表
+     */
+    private DksqLcjl dksqLcjl;
+
+    public DksqLcjl getDksqLcjl() {
+        return dksqLcjl;
+    }
+
+    public void setDksqLcjl(DksqLcjl dksqLcjl) {
+        this.dksqLcjl = dksqLcjl;
+    }
+
+    public void setId(Long id)
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+    public void setSqMoney(String sqMoney) 
+    {
+        this.sqMoney = sqMoney;
+    }
+
+    public String getSqMoney() 
+    {
+        return sqMoney;
+    }
+    public void setDbType(String dbType) 
+    {
+        this.dbType = dbType;
+    }
+
+    public String getDbType() 
+    {
+        return dbType;
+    }
+    public void setDbGrade(String dbGrade) 
+    {
+        this.dbGrade = dbGrade;
+    }
+
+    public String getDbGrade() 
+    {
+        return dbGrade;
+    }
+    public void setSqName(String sqName) 
+    {
+        this.sqName = sqName;
+    }
+
+    public String getSqName() 
+    {
+        return sqName;
+    }
+    public void setSqIdCard(String sqIdCard) 
+    {
+        this.sqIdCard = sqIdCard;
+    }
+
+    public String getSqIdCard() 
+    {
+        return sqIdCard;
+    }
+    public void setSqPhone(String sqPhone) 
+    {
+        this.sqPhone = sqPhone;
+    }
+
+    public String getSqPhone() 
+    {
+        return sqPhone;
+    }
+    public void setWhcd(String whcd) 
+    {
+        this.whcd = whcd;
+    }
+
+    public String getWhcd() 
+    {
+        return whcd;
+    }
+    public void setRylb(String rylb) 
+    {
+        this.rylb = rylb;
+    }
+
+    public String getRylb() 
+    {
+        return rylb;
+    }
+    public void setXydj(String xydj) 
+    {
+        this.xydj = xydj;
+    }
+
+    public String getXydj() 
+    {
+        return xydj;
+    }
+    public void setHyzk(String hyzk) 
+    {
+        this.hyzk = hyzk;
+    }
+
+    public String getHyzk() 
+    {
+        return hyzk;
+    }
+    public void setPoName(String poName) 
+    {
+        this.poName = poName;
+    }
+
+    public String getPoName() 
+    {
+        return poName;
+    }
+    public void setPoIdCard(String poIdCard) 
+    {
+        this.poIdCard = poIdCard;
+    }
+
+    public String getPoIdCard() 
+    {
+        return poIdCard;
+    }
+    public void setPoGzdw(String poGzdw) 
+    {
+        this.poGzdw = poGzdw;
+    }
+
+    public String getPoGzdw() 
+    {
+        return poGzdw;
+    }
+    public void setDbrName(String dbrName) 
+    {
+        this.dbrName = dbrName;
+    }
+
+    public String getDbrName() 
+    {
+        return dbrName;
+    }
+    public void setDbrIdCard(String dbrIdCard) 
+    {
+        this.dbrIdCard = dbrIdCard;
+    }
+
+    public String getDbrIdCard() 
+    {
+        return dbrIdCard;
+    }
+    public void setDbrTwoName(String dbrTwoName) 
+    {
+        this.dbrTwoName = dbrTwoName;
+    }
+
+    public String getDbrTwoName() 
+    {
+        return dbrTwoName;
+    }
+    public void setDbrTwoIdCard(String dbrTwoIdCard) 
+    {
+        this.dbrTwoIdCard = dbrTwoIdCard;
+    }
+
+    public String getDbrTwoIdCard() 
+    {
+        return dbrTwoIdCard;
+    }
+    public void setType(String type) 
+    {
+        this.type = type;
+    }
+
+    public String getType() 
+    {
+        return type;
+    }
+    public void setFdBank(String fdBank) 
+    {
+        this.fdBank = fdBank;
+    }
+
+    public String getFdBank() 
+    {
+        return fdBank;
+    }
+    public void setFdBankId(Long fdBankId) 
+    {
+        this.fdBankId = fdBankId;
+    }
+
+    public Long getFdBankId() 
+    {
+        return fdBankId;
+    }
+    public void setFdMoney(String fdMoney) 
+    {
+        this.fdMoney = fdMoney;
+    }
+
+    public String getFdMoney() 
+    {
+        return fdMoney;
+    }
+    public void setFdTime(Date fdTime) 
+    {
+        this.fdTime = fdTime;
+    }
+
+    public Date getFdTime() 
+    {
+        return fdTime;
+    }
+
+    public String getResult() {
+        return result;
+    }
+
+    public void setResult(String result) {
+        this.result = result;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("sqMoney", getSqMoney())
+            .append("dbType", getDbType())
+            .append("dbGrade", getDbGrade())
+            .append("sqName", getSqName())
+            .append("sqIdCard", getSqIdCard())
+            .append("sqPhone", getSqPhone())
+            .append("whcd", getWhcd())
+            .append("rylb", getRylb())
+            .append("xydj", getXydj())
+            .append("hyzk", getHyzk())
+            .append("poName", getPoName())
+            .append("poIdCard", getPoIdCard())
+            .append("poGzdw", getPoGzdw())
+            .append("dbrName", getDbrName())
+            .append("dbrIdCard", getDbrIdCard())
+            .append("dbrTwoName", getDbrTwoName())
+            .append("dbrTwoIdCard", getDbrTwoIdCard())
+            .append("type", getType())
+            .append("result", getResult())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .append("remark", getRemark())
+            .append("fdBank", getFdBank())
+            .append("fdBankId", getFdBankId())
+            .append("fdMoney", getFdMoney())
+            .append("fdTime", getFdTime())
+            .toString();
+    }
+}

+ 98 - 0
ruoyi-system/src/main/java/com/ruoyi/system/domain/DksqLcjl.java

@@ -0,0 +1,98 @@
+package com.ruoyi.system.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 贷款申请_流程记录对象 dksq_lcjl
+ * 
+ * @author boman
+ * @date 2023-06-15
+ */
+public class DksqLcjl extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** ID */
+    private Long id;
+
+    /** 贷款申请id */
+    @Excel(name = "贷款申请id")
+    private Long dksqId;
+
+    /** 申请状态 1:提交申请 2:人社局审查 3:银行评估 4:银行放贷 */
+    @Excel(name = "申请状态 1:提交申请 2:人社局审查 3:银行评估 4:银行放贷")
+    private String type;
+
+    /** 申请结果 1:等待 2:通过 3:未通过 */
+    @Excel(name = "申请结果 1:等待 2:通过 3:未通过")
+    private String result;
+
+    /** 审查状态 */
+    @Excel(name = "审查状态")
+    private String status;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+    public void setDksqId(Long dksqId) 
+    {
+        this.dksqId = dksqId;
+    }
+
+    public Long getDksqId() 
+    {
+        return dksqId;
+    }
+    public void setType(String type) 
+    {
+        this.type = type;
+    }
+
+    public String getType() 
+    {
+        return type;
+    }
+    public void setResult(String result) 
+    {
+        this.result = result;
+    }
+
+    public String getResult() 
+    {
+        return result;
+    }
+    public void setStatus(String status) 
+    {
+        this.status = status;
+    }
+
+    public String getStatus() 
+    {
+        return status;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("dksqId", getDksqId())
+            .append("type", getType())
+            .append("result", getResult())
+            .append("status", getStatus())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .append("remark", getRemark())
+            .toString();
+    }
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/system/mapper/DkFjMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.system.mapper;
+
+import java.util.List;
+import com.ruoyi.system.domain.DkFj;
+
+/**
+ * 贷款_附件Mapper接口
+ * 
+ * @author boman
+ * @date 2023-06-15
+ */
+public interface DkFjMapper 
+{
+    /**
+     * 查询贷款_附件
+     * 
+     * @param id 贷款_附件主键
+     * @return 贷款_附件
+     */
+    public DkFj selectDkFjById(Long id);
+
+    /**
+     * 查询贷款_附件列表
+     * 
+     * @param dkFj 贷款_附件
+     * @return 贷款_附件集合
+     */
+    public List<DkFj> selectDkFjList(DkFj dkFj);
+
+    /**
+     * 新增贷款_附件
+     * 
+     * @param dkFj 贷款_附件
+     * @return 结果
+     */
+    public int insertDkFj(DkFj dkFj);
+
+    /**
+     * 修改贷款_附件
+     * 
+     * @param dkFj 贷款_附件
+     * @return 结果
+     */
+    public int updateDkFj(DkFj dkFj);
+
+    /**
+     * 删除贷款_附件
+     * 
+     * @param id 贷款_附件主键
+     * @return 结果
+     */
+    public int deleteDkFjById(Long id);
+
+    /**
+     * 批量删除贷款_附件
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteDkFjByIds(Long[] ids);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/system/mapper/DksqLcjlMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.system.mapper;
+
+import java.util.List;
+import com.ruoyi.system.domain.DksqLcjl;
+
+/**
+ * 贷款申请_流程记录Mapper接口
+ * 
+ * @author boman
+ * @date 2023-06-15
+ */
+public interface DksqLcjlMapper 
+{
+    /**
+     * 查询贷款申请_流程记录
+     * 
+     * @param id 贷款申请_流程记录主键
+     * @return 贷款申请_流程记录
+     */
+    public DksqLcjl selectDksqLcjlById(Long id);
+
+    /**
+     * 查询贷款申请_流程记录列表
+     * 
+     * @param dksqLcjl 贷款申请_流程记录
+     * @return 贷款申请_流程记录集合
+     */
+    public List<DksqLcjl> selectDksqLcjlList(DksqLcjl dksqLcjl);
+
+    /**
+     * 新增贷款申请_流程记录
+     * 
+     * @param dksqLcjl 贷款申请_流程记录
+     * @return 结果
+     */
+    public int insertDksqLcjl(DksqLcjl dksqLcjl);
+
+    /**
+     * 修改贷款申请_流程记录
+     * 
+     * @param dksqLcjl 贷款申请_流程记录
+     * @return 结果
+     */
+    public int updateDksqLcjl(DksqLcjl dksqLcjl);
+
+    /**
+     * 删除贷款申请_流程记录
+     * 
+     * @param id 贷款申请_流程记录主键
+     * @return 结果
+     */
+    public int deleteDksqLcjlById(Long id);
+
+    /**
+     * 批量删除贷款申请_流程记录
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteDksqLcjlByIds(Long[] ids);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/system/mapper/DksqMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.system.mapper;
+
+import java.util.List;
+import com.ruoyi.system.domain.Dksq;
+
+/**
+ * 贷款申请_主Mapper接口
+ * 
+ * @author boman
+ * @date 2023-06-15
+ */
+public interface DksqMapper 
+{
+    /**
+     * 查询贷款申请_主
+     * 
+     * @param id 贷款申请_主主键
+     * @return 贷款申请_主
+     */
+    public Dksq selectDksqById(Long id);
+
+    /**
+     * 查询贷款申请_主列表
+     * 
+     * @param dksq 贷款申请_主
+     * @return 贷款申请_主集合
+     */
+    public List<Dksq> selectDksqList(Dksq dksq);
+
+    /**
+     * 新增贷款申请_主
+     * 
+     * @param dksq 贷款申请_主
+     * @return 结果
+     */
+    public int insertDksq(Dksq dksq);
+
+    /**
+     * 修改贷款申请_主
+     * 
+     * @param dksq 贷款申请_主
+     * @return 结果
+     */
+    public int updateDksq(Dksq dksq);
+
+    /**
+     * 删除贷款申请_主
+     * 
+     * @param id 贷款申请_主主键
+     * @return 结果
+     */
+    public int deleteDksqById(Long id);
+
+    /**
+     * 批量删除贷款申请_主
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteDksqByIds(Long[] ids);
+}

+ 13 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/IDkCommonServerce.java

@@ -0,0 +1,13 @@
+package com.ruoyi.system.service;
+
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.system.domain.Dksq;
+
+/**
+ * @Author: tjf
+ * @Date: 2023/6/15 15:33
+ * @Describe:
+ */
+public interface IDkCommonServerce {
+    public AjaxResult shenHe(Dksq dksq);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/IDkFjService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.system.service;
+
+import java.util.List;
+import com.ruoyi.system.domain.DkFj;
+
+/**
+ * 贷款_附件Service接口
+ * 
+ * @author boman
+ * @date 2023-06-15
+ */
+public interface IDkFjService 
+{
+    /**
+     * 查询贷款_附件
+     * 
+     * @param id 贷款_附件主键
+     * @return 贷款_附件
+     */
+    public DkFj selectDkFjById(Long id);
+
+    /**
+     * 查询贷款_附件列表
+     * 
+     * @param dkFj 贷款_附件
+     * @return 贷款_附件集合
+     */
+    public List<DkFj> selectDkFjList(DkFj dkFj);
+
+    /**
+     * 新增贷款_附件
+     * 
+     * @param dkFj 贷款_附件
+     * @return 结果
+     */
+    public int insertDkFj(DkFj dkFj);
+
+    /**
+     * 修改贷款_附件
+     * 
+     * @param dkFj 贷款_附件
+     * @return 结果
+     */
+    public int updateDkFj(DkFj dkFj);
+
+    /**
+     * 批量删除贷款_附件
+     * 
+     * @param ids 需要删除的贷款_附件主键集合
+     * @return 结果
+     */
+    public int deleteDkFjByIds(Long[] ids);
+
+    /**
+     * 删除贷款_附件信息
+     * 
+     * @param id 贷款_附件主键
+     * @return 结果
+     */
+    public int deleteDkFjById(Long id);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/IDksqLcjlService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.system.service;
+
+import java.util.List;
+import com.ruoyi.system.domain.DksqLcjl;
+
+/**
+ * 贷款申请_流程记录Service接口
+ * 
+ * @author boman
+ * @date 2023-06-15
+ */
+public interface IDksqLcjlService 
+{
+    /**
+     * 查询贷款申请_流程记录
+     * 
+     * @param id 贷款申请_流程记录主键
+     * @return 贷款申请_流程记录
+     */
+    public DksqLcjl selectDksqLcjlById(Long id);
+
+    /**
+     * 查询贷款申请_流程记录列表
+     * 
+     * @param dksqLcjl 贷款申请_流程记录
+     * @return 贷款申请_流程记录集合
+     */
+    public List<DksqLcjl> selectDksqLcjlList(DksqLcjl dksqLcjl);
+
+    /**
+     * 新增贷款申请_流程记录
+     * 
+     * @param dksqLcjl 贷款申请_流程记录
+     * @return 结果
+     */
+    public int insertDksqLcjl(DksqLcjl dksqLcjl);
+
+    /**
+     * 修改贷款申请_流程记录
+     * 
+     * @param dksqLcjl 贷款申请_流程记录
+     * @return 结果
+     */
+    public int updateDksqLcjl(DksqLcjl dksqLcjl);
+
+    /**
+     * 批量删除贷款申请_流程记录
+     * 
+     * @param ids 需要删除的贷款申请_流程记录主键集合
+     * @return 结果
+     */
+    public int deleteDksqLcjlByIds(Long[] ids);
+
+    /**
+     * 删除贷款申请_流程记录信息
+     * 
+     * @param id 贷款申请_流程记录主键
+     * @return 结果
+     */
+    public int deleteDksqLcjlById(Long id);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/IDksqService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.system.service;
+
+import java.util.List;
+import com.ruoyi.system.domain.Dksq;
+
+/**
+ * 贷款申请_主Service接口
+ * 
+ * @author boman
+ * @date 2023-06-15
+ */
+public interface IDksqService 
+{
+    /**
+     * 查询贷款申请_主
+     * 
+     * @param id 贷款申请_主主键
+     * @return 贷款申请_主
+     */
+    public Dksq selectDksqById(Long id);
+
+    /**
+     * 查询贷款申请_主列表
+     * 
+     * @param dksq 贷款申请_主
+     * @return 贷款申请_主集合
+     */
+    public List<Dksq> selectDksqList(Dksq dksq);
+
+    /**
+     * 新增贷款申请_主
+     * 
+     * @param dksq 贷款申请_主
+     * @return 结果
+     */
+    public int insertDksq(Dksq dksq);
+
+    /**
+     * 修改贷款申请_主
+     * 
+     * @param dksq 贷款申请_主
+     * @return 结果
+     */
+    public int updateDksq(Dksq dksq);
+
+    /**
+     * 批量删除贷款申请_主
+     * 
+     * @param ids 需要删除的贷款申请_主主键集合
+     * @return 结果
+     */
+    public int deleteDksqByIds(Long[] ids);
+
+    /**
+     * 删除贷款申请_主信息
+     * 
+     * @param id 贷款申请_主主键
+     * @return 结果
+     */
+    public int deleteDksqById(Long id);
+}

+ 40 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/DkCommonServerceImpl.java

@@ -0,0 +1,40 @@
+package com.ruoyi.system.service.impl;
+
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.system.domain.Dksq;
+import com.ruoyi.system.domain.DksqLcjl;
+import com.ruoyi.system.mapper.DksqLcjlMapper;
+import com.ruoyi.system.mapper.DksqMapper;
+import com.ruoyi.system.service.IDkCommonServerce;
+import org.springframework.beans.factory.annotation.Autowired;
+
+/**
+ * @Author: tjf
+ * @Date: 2023/6/15 15:32
+ * @Describe:
+ */
+public class DkCommonServerceImpl implements IDkCommonServerce {
+
+    @Autowired
+    private DksqMapper dksqMapper;
+    @Autowired
+    private DksqLcjlMapper dksqLcjlMapper;
+
+    /**
+     * 劳动局审核
+     * @param dksq
+     * @return
+     */
+    @Override
+    public AjaxResult shenHe(Dksq dksq) {
+        if (!"1".equals(dksq.getType())){
+            return AjaxResult.error("当前项目异常");
+        }
+        dksq.setType("2");
+        dksqMapper.updateDksq(dksq);
+        //插入流程记录表
+        DksqLcjl dksqLcjl = dksq.getDksqLcjl();
+        dksqLcjlMapper.insertDksqLcjl(dksqLcjl);
+        return AjaxResult.success();
+    }
+}

+ 95 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/DkFjServiceImpl.java

@@ -0,0 +1,95 @@
+package com.ruoyi.system.service.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.system.mapper.DkFjMapper;
+import com.ruoyi.system.domain.DkFj;
+import com.ruoyi.system.service.IDkFjService;
+
+/**
+ * 贷款_附件Service业务层处理
+ * 
+ * @author boman
+ * @date 2023-06-15
+ */
+@Service
+public class DkFjServiceImpl implements IDkFjService 
+{
+    @Autowired
+    private DkFjMapper dkFjMapper;
+
+    /**
+     * 查询贷款_附件
+     * 
+     * @param id 贷款_附件主键
+     * @return 贷款_附件
+     */
+    @Override
+    public DkFj selectDkFjById(Long id)
+    {
+        return dkFjMapper.selectDkFjById(id);
+    }
+
+    /**
+     * 查询贷款_附件列表
+     * 
+     * @param dkFj 贷款_附件
+     * @return 贷款_附件
+     */
+    @Override
+    public List<DkFj> selectDkFjList(DkFj dkFj)
+    {
+        return dkFjMapper.selectDkFjList(dkFj);
+    }
+
+    /**
+     * 新增贷款_附件
+     * 
+     * @param dkFj 贷款_附件
+     * @return 结果
+     */
+    @Override
+    public int insertDkFj(DkFj dkFj)
+    {
+        dkFj.setCreateTime(DateUtils.getNowDate());
+        return dkFjMapper.insertDkFj(dkFj);
+    }
+
+    /**
+     * 修改贷款_附件
+     * 
+     * @param dkFj 贷款_附件
+     * @return 结果
+     */
+    @Override
+    public int updateDkFj(DkFj dkFj)
+    {
+        return dkFjMapper.updateDkFj(dkFj);
+    }
+
+    /**
+     * 批量删除贷款_附件
+     * 
+     * @param ids 需要删除的贷款_附件主键
+     * @return 结果
+     */
+    @Override
+    public int deleteDkFjByIds(Long[] ids)
+    {
+        return dkFjMapper.deleteDkFjByIds(ids);
+    }
+
+    /**
+     * 删除贷款_附件信息
+     * 
+     * @param id 贷款_附件主键
+     * @return 结果
+     */
+    @Override
+    public int deleteDkFjById(Long id)
+    {
+        return dkFjMapper.deleteDkFjById(id);
+    }
+}

+ 96 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/DksqLcjlServiceImpl.java

@@ -0,0 +1,96 @@
+package com.ruoyi.system.service.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.system.mapper.DksqLcjlMapper;
+import com.ruoyi.system.domain.DksqLcjl;
+import com.ruoyi.system.service.IDksqLcjlService;
+
+/**
+ * 贷款申请_流程记录Service业务层处理
+ * 
+ * @author boman
+ * @date 2023-06-15
+ */
+@Service
+public class DksqLcjlServiceImpl implements IDksqLcjlService 
+{
+    @Autowired
+    private DksqLcjlMapper dksqLcjlMapper;
+
+    /**
+     * 查询贷款申请_流程记录
+     * 
+     * @param id 贷款申请_流程记录主键
+     * @return 贷款申请_流程记录
+     */
+    @Override
+    public DksqLcjl selectDksqLcjlById(Long id)
+    {
+        return dksqLcjlMapper.selectDksqLcjlById(id);
+    }
+
+    /**
+     * 查询贷款申请_流程记录列表
+     * 
+     * @param dksqLcjl 贷款申请_流程记录
+     * @return 贷款申请_流程记录
+     */
+    @Override
+    public List<DksqLcjl> selectDksqLcjlList(DksqLcjl dksqLcjl)
+    {
+        return dksqLcjlMapper.selectDksqLcjlList(dksqLcjl);
+    }
+
+    /**
+     * 新增贷款申请_流程记录
+     * 
+     * @param dksqLcjl 贷款申请_流程记录
+     * @return 结果
+     */
+    @Override
+    public int insertDksqLcjl(DksqLcjl dksqLcjl)
+    {
+        dksqLcjl.setCreateTime(DateUtils.getNowDate());
+        return dksqLcjlMapper.insertDksqLcjl(dksqLcjl);
+    }
+
+    /**
+     * 修改贷款申请_流程记录
+     * 
+     * @param dksqLcjl 贷款申请_流程记录
+     * @return 结果
+     */
+    @Override
+    public int updateDksqLcjl(DksqLcjl dksqLcjl)
+    {
+        dksqLcjl.setUpdateTime(DateUtils.getNowDate());
+        return dksqLcjlMapper.updateDksqLcjl(dksqLcjl);
+    }
+
+    /**
+     * 批量删除贷款申请_流程记录
+     * 
+     * @param ids 需要删除的贷款申请_流程记录主键
+     * @return 结果
+     */
+    @Override
+    public int deleteDksqLcjlByIds(Long[] ids)
+    {
+        return dksqLcjlMapper.deleteDksqLcjlByIds(ids);
+    }
+
+    /**
+     * 删除贷款申请_流程记录信息
+     * 
+     * @param id 贷款申请_流程记录主键
+     * @return 结果
+     */
+    @Override
+    public int deleteDksqLcjlById(Long id)
+    {
+        return dksqLcjlMapper.deleteDksqLcjlById(id);
+    }
+}

+ 96 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/DksqServiceImpl.java

@@ -0,0 +1,96 @@
+package com.ruoyi.system.service.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.system.mapper.DksqMapper;
+import com.ruoyi.system.domain.Dksq;
+import com.ruoyi.system.service.IDksqService;
+
+/**
+ * 贷款申请_主Service业务层处理
+ * 
+ * @author boman
+ * @date 2023-06-15
+ */
+@Service
+public class DksqServiceImpl implements IDksqService 
+{
+    @Autowired
+    private DksqMapper dksqMapper;
+
+    /**
+     * 查询贷款申请_主
+     * 
+     * @param id 贷款申请_主主键
+     * @return 贷款申请_主
+     */
+    @Override
+    public Dksq selectDksqById(Long id)
+    {
+        return dksqMapper.selectDksqById(id);
+    }
+
+    /**
+     * 查询贷款申请_主列表
+     * 
+     * @param dksq 贷款申请_主
+     * @return 贷款申请_主
+     */
+    @Override
+    public List<Dksq> selectDksqList(Dksq dksq)
+    {
+        return dksqMapper.selectDksqList(dksq);
+    }
+
+    /**
+     * 新增贷款申请_主
+     * 
+     * @param dksq 贷款申请_主
+     * @return 结果
+     */
+    @Override
+    public int insertDksq(Dksq dksq)
+    {
+        dksq.setCreateTime(DateUtils.getNowDate());
+        return dksqMapper.insertDksq(dksq);
+    }
+
+    /**
+     * 修改贷款申请_主
+     * 
+     * @param dksq 贷款申请_主
+     * @return 结果
+     */
+    @Override
+    public int updateDksq(Dksq dksq)
+    {
+        dksq.setUpdateTime(DateUtils.getNowDate());
+        return dksqMapper.updateDksq(dksq);
+    }
+
+    /**
+     * 批量删除贷款申请_主
+     * 
+     * @param ids 需要删除的贷款申请_主主键
+     * @return 结果
+     */
+    @Override
+    public int deleteDksqByIds(Long[] ids)
+    {
+        return dksqMapper.deleteDksqByIds(ids);
+    }
+
+    /**
+     * 删除贷款申请_主信息
+     * 
+     * @param id 贷款申请_主主键
+     * @return 结果
+     */
+    @Override
+    public int deleteDksqById(Long id)
+    {
+        return dksqMapper.deleteDksqById(id);
+    }
+}

+ 11 - 6
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java

@@ -211,13 +211,18 @@ public class SysDeptServiceImpl implements ISysDeptService
     @Override
     public int insertDept(SysDept dept)
     {
-        SysDept info = deptMapper.selectDeptById(dept.getParentId());
-        // 如果父节点不为正常状态,则不允许新增子节点
-        if (!UserConstants.DEPT_NORMAL.equals(info.getStatus()))
-        {
-            throw new ServiceException("部门停用,不允许新增");
+        Long parentId = dept.getParentId();
+        if (parentId != null){
+            SysDept info = deptMapper.selectDeptById(dept.getParentId());
+            // 如果父节点不为正常状态,则不允许新增子节点
+            if (!UserConstants.DEPT_NORMAL.equals(info.getStatus()))
+            {
+                throw new ServiceException("部门停用,不允许新增");
+            }
+            dept.setAncestors(info.getAncestors() + "," + dept.getParentId());
+        }else {
+            dept.setAncestors("0");
         }
-        dept.setAncestors(info.getAncestors() + "," + dept.getParentId());
         return deptMapper.insertDept(dept);
     }
 

+ 89 - 0
ruoyi-system/src/main/resources/mapper/system/DkFjMapper.xml

@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.system.mapper.DkFjMapper">
+    
+    <resultMap type="DkFj" id="DkFjResult">
+        <result property="id"    column="id"    />
+        <result property="dkId"    column="dk_id"    />
+        <result property="fjName"    column="fj_name"    />
+        <result property="path"    column="path"    />
+        <result property="status"    column="status"    />
+        <result property="grade"    column="grade"    />
+        <result property="type"    column="type"    />
+        <result property="remark"    column="remark"    />
+        <result property="createTime"    column="create_time"    />
+    </resultMap>
+
+    <sql id="selectDkFjVo">
+        select id, dk_id, fj_name, path, status, grade, type, remark, create_time from dk_fj
+    </sql>
+
+    <select id="selectDkFjList" parameterType="DkFj" resultMap="DkFjResult">
+        <include refid="selectDkFjVo"/>
+        <where>  
+            <if test="dkId != null "> and dk_id = #{dkId}</if>
+            <if test="fjName != null  and fjName != ''"> and fj_name like concat('%', #{fjName}, '%')</if>
+            <if test="path != null  and path != ''"> and path = #{path}</if>
+            <if test="status != null  and status != ''"> and status = #{status}</if>
+            <if test="grade != null  and grade != ''"> and grade = #{grade}</if>
+            <if test="type != null  and type != ''"> and type = #{type}</if>
+        </where>
+    </select>
+    
+    <select id="selectDkFjById" parameterType="Long" resultMap="DkFjResult">
+        <include refid="selectDkFjVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertDkFj" parameterType="DkFj" useGeneratedKeys="true" keyProperty="id">
+        insert into dk_fj
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="dkId != null">dk_id,</if>
+            <if test="fjName != null and fjName != ''">fj_name,</if>
+            <if test="path != null">path,</if>
+            <if test="status != null">status,</if>
+            <if test="grade != null">grade,</if>
+            <if test="type != null">type,</if>
+            <if test="remark != null">remark,</if>
+            <if test="createTime != null">create_time,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="dkId != null">#{dkId},</if>
+            <if test="fjName != null and fjName != ''">#{fjName},</if>
+            <if test="path != null">#{path},</if>
+            <if test="status != null">#{status},</if>
+            <if test="grade != null">#{grade},</if>
+            <if test="type != null">#{type},</if>
+            <if test="remark != null">#{remark},</if>
+            <if test="createTime != null">#{createTime},</if>
+         </trim>
+    </insert>
+
+    <update id="updateDkFj" parameterType="DkFj">
+        update dk_fj
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="dkId != null">dk_id = #{dkId},</if>
+            <if test="fjName != null and fjName != ''">fj_name = #{fjName},</if>
+            <if test="path != null">path = #{path},</if>
+            <if test="status != null">status = #{status},</if>
+            <if test="grade != null">grade = #{grade},</if>
+            <if test="type != null">type = #{type},</if>
+            <if test="remark != null">remark = #{remark},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteDkFjById" parameterType="Long">
+        delete from dk_fj where id = #{id}
+    </delete>
+
+    <delete id="deleteDkFjByIds" parameterType="String">
+        delete from dk_fj where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 91 - 0
ruoyi-system/src/main/resources/mapper/system/DksqLcjlMapper.xml

@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.system.mapper.DksqLcjlMapper">
+    
+    <resultMap type="DksqLcjl" id="DksqLcjlResult">
+        <result property="id"    column="id"    />
+        <result property="dksqId"    column="dksq_id"    />
+        <result property="type"    column="type"    />
+        <result property="result"    column="result"    />
+        <result property="status"    column="status"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectDksqLcjlVo">
+        select id, dksq_id, type, result, status, create_by, create_time, update_by, update_time, remark from dksq_lcjl
+    </sql>
+
+    <select id="selectDksqLcjlList" parameterType="DksqLcjl" resultMap="DksqLcjlResult">
+        <include refid="selectDksqLcjlVo"/>
+        <where>  
+            <if test="dksqId != null "> and dksq_id = #{dksqId}</if>
+            <if test="type != null  and type != ''"> and type = #{type}</if>
+            <if test="result != null  and result != ''"> and result = #{result}</if>
+            <if test="status != null  and status != ''"> and status = #{status}</if>
+        </where>
+    </select>
+    
+    <select id="selectDksqLcjlById" parameterType="Long" resultMap="DksqLcjlResult">
+        <include refid="selectDksqLcjlVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertDksqLcjl" parameterType="DksqLcjl" useGeneratedKeys="true" keyProperty="id">
+        insert into dksq_lcjl
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="dksqId != null">dksq_id,</if>
+            <if test="type != null">type,</if>
+            <if test="result != null">result,</if>
+            <if test="status != null">status,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="dksqId != null">#{dksqId},</if>
+            <if test="type != null">#{type},</if>
+            <if test="result != null">#{result},</if>
+            <if test="status != null">#{status},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateDksqLcjl" parameterType="DksqLcjl">
+        update dksq_lcjl
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="dksqId != null">dksq_id = #{dksqId},</if>
+            <if test="type != null">type = #{type},</if>
+            <if test="result != null">result = #{result},</if>
+            <if test="status != null">status = #{status},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteDksqLcjlById" parameterType="Long">
+        delete from dksq_lcjl where id = #{id}
+    </delete>
+
+    <delete id="deleteDksqLcjlByIds" parameterType="String">
+        delete from dksq_lcjl where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 186 - 0
ruoyi-system/src/main/resources/mapper/system/DksqMapper.xml

@@ -0,0 +1,186 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.system.mapper.DksqMapper">
+    
+    <resultMap type="Dksq" id="DksqResult">
+        <result property="id"    column="id"    />
+        <result property="sqMoney"    column="sq_money"    />
+        <result property="dbType"    column="db_type"    />
+        <result property="dbGrade"    column="db_grade"    />
+        <result property="sqName"    column="sq_name"    />
+        <result property="sqIdCard"    column="sq_id_card"    />
+        <result property="sqPhone"    column="sq_phone"    />
+        <result property="whcd"    column="whcd"    />
+        <result property="rylb"    column="rylb"    />
+        <result property="xydj"    column="xydj"    />
+        <result property="hyzk"    column="hyzk"    />
+        <result property="poName"    column="po_name"    />
+        <result property="poIdCard"    column="po_id_card"    />
+        <result property="poGzdw"    column="po_gzdw"    />
+        <result property="dbrName"    column="dbr_name"    />
+        <result property="dbrIdCard"    column="dbr_id_card"    />
+        <result property="dbrTwoName"    column="dbr_two_name"    />
+        <result property="dbrTwoIdCard"    column="dbr_two_id_card"    />
+        <result property="type"    column="type"    />
+        <result property="result"    column="result"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+        <result property="fdBank"    column="fd_bank"    />
+        <result property="fdBankId"    column="fd_bank_id"    />
+        <result property="fdMoney"    column="fd_money"    />
+        <result property="fdTime"    column="fd_time"    />
+    </resultMap>
+
+    <sql id="selectDksqVo">
+        select id, sq_money, db_type, db_grade, sq_name, sq_id_card, sq_phone, whcd, rylb, xydj, hyzk,result, po_name, po_id_card, po_gzdw, dbr_name, dbr_id_card, dbr_two_name, dbr_two_id_card, type, create_by, create_time, update_by, update_time, remark, fd_bank, fd_bank_id, fd_money, fd_time from dksq
+    </sql>
+
+    <select id="selectDksqList" parameterType="Dksq" resultMap="DksqResult">
+        <include refid="selectDksqVo"/>
+        <where>  
+            <if test="sqMoney != null  and sqMoney != ''"> and sq_money = #{sqMoney}</if>
+            <if test="dbType != null  and dbType != ''"> and db_type = #{dbType}</if>
+            <if test="dbGrade != null  and dbGrade != ''"> and db_grade = #{dbGrade}</if>
+            <if test="sqName != null  and sqName != ''"> and sq_name like concat('%', #{sqName}, '%')</if>
+            <if test="sqIdCard != null  and sqIdCard != ''"> and sq_id_card = #{sqIdCard}</if>
+            <if test="sqPhone != null  and sqPhone != ''"> and sq_phone = #{sqPhone}</if>
+            <if test="whcd != null  and whcd != ''"> and whcd = #{whcd}</if>
+            <if test="rylb != null  and rylb != ''"> and rylb = #{rylb}</if>
+            <if test="xydj != null  and xydj != ''"> and xydj = #{xydj}</if>
+            <if test="hyzk != null  and hyzk != ''"> and hyzk = #{hyzk}</if>
+            <if test="poName != null  and poName != ''"> and po_name like concat('%', #{poName}, '%')</if>
+            <if test="poIdCard != null  and poIdCard != ''"> and po_id_card = #{poIdCard}</if>
+            <if test="poGzdw != null  and poGzdw != ''"> and po_gzdw = #{poGzdw}</if>
+            <if test="dbrName != null  and dbrName != ''"> and dbr_name like concat('%', #{dbrName}, '%')</if>
+            <if test="dbrIdCard != null  and dbrIdCard != ''"> and dbr_id_card = #{dbrIdCard}</if>
+            <if test="dbrTwoName != null  and dbrTwoName != ''"> and dbr_two_name like concat('%', #{dbrTwoName}, '%')</if>
+            <if test="dbrTwoIdCard != null  and dbrTwoIdCard != ''"> and dbr_two_id_card = #{dbrTwoIdCard}</if>
+            <if test="type != null  and type != ''"> and type = #{type}</if>
+            <if test="result != null  and result != ''"> and result = #{result}</if>
+            <if test="fdBank != null  and fdBank != ''"> and fd_bank = #{fdBank}</if>
+            <if test="fdBankId != null "> and fd_bank_id = #{fdBankId}</if>
+            <if test="fdMoney != null  and fdMoney != ''"> and fd_money = #{fdMoney}</if>
+            <if test="fdTime != null "> and fd_time = #{fdTime}</if>
+        </where>
+    </select>
+    
+    <select id="selectDksqById" parameterType="Long" resultMap="DksqResult">
+        <include refid="selectDksqVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertDksq" parameterType="Dksq" useGeneratedKeys="true" keyProperty="id">
+        insert into dksq
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="sqMoney != null">sq_money,</if>
+            <if test="dbType != null">db_type,</if>
+            <if test="dbGrade != null">db_grade,</if>
+            <if test="sqName != null">sq_name,</if>
+            <if test="sqIdCard != null">sq_id_card,</if>
+            <if test="sqPhone != null">sq_phone,</if>
+            <if test="whcd != null">whcd,</if>
+            <if test="rylb != null">rylb,</if>
+            <if test="xydj != null">xydj,</if>
+            <if test="hyzk != null">hyzk,</if>
+            <if test="poName != null">po_name,</if>
+            <if test="poIdCard != null">po_id_card,</if>
+            <if test="poGzdw != null">po_gzdw,</if>
+            <if test="dbrName != null">dbr_name,</if>
+            <if test="dbrIdCard != null">dbr_id_card,</if>
+            <if test="dbrTwoName != null">dbr_two_name,</if>
+            <if test="dbrTwoIdCard != null">dbr_two_id_card,</if>
+            <if test="type != null">type,</if>
+            <if test="result != null">result,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+            <if test="fdBank != null">fd_bank,</if>
+            <if test="fdBankId != null">fd_bank_id,</if>
+            <if test="fdMoney != null">fd_money,</if>
+            <if test="fdTime != null">fd_time,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="sqMoney != null">#{sqMoney},</if>
+            <if test="dbType != null">#{dbType},</if>
+            <if test="dbGrade != null">#{dbGrade},</if>
+            <if test="sqName != null">#{sqName},</if>
+            <if test="sqIdCard != null">#{sqIdCard},</if>
+            <if test="sqPhone != null">#{sqPhone},</if>
+            <if test="whcd != null">#{whcd},</if>
+            <if test="rylb != null">#{rylb},</if>
+            <if test="xydj != null">#{xydj},</if>
+            <if test="hyzk != null">#{hyzk},</if>
+            <if test="poName != null">#{poName},</if>
+            <if test="poIdCard != null">#{poIdCard},</if>
+            <if test="poGzdw != null">#{poGzdw},</if>
+            <if test="dbrName != null">#{dbrName},</if>
+            <if test="dbrIdCard != null">#{dbrIdCard},</if>
+            <if test="dbrTwoName != null">#{dbrTwoName},</if>
+            <if test="dbrTwoIdCard != null">#{dbrTwoIdCard},</if>
+            <if test="type != null">#{type},</if>
+            <if test="result != null">#{result},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+            <if test="fdBank != null">#{fdBank},</if>
+            <if test="fdBankId != null">#{fdBankId},</if>
+            <if test="fdMoney != null">#{fdMoney},</if>
+            <if test="fdTime != null">#{fdTime},</if>
+         </trim>
+    </insert>
+
+    <update id="updateDksq" parameterType="Dksq">
+        update dksq
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="sqMoney != null">sq_money = #{sqMoney},</if>
+            <if test="dbType != null">db_type = #{dbType},</if>
+            <if test="dbGrade != null">db_grade = #{dbGrade},</if>
+            <if test="sqName != null">sq_name = #{sqName},</if>
+            <if test="sqIdCard != null">sq_id_card = #{sqIdCard},</if>
+            <if test="sqPhone != null">sq_phone = #{sqPhone},</if>
+            <if test="whcd != null">whcd = #{whcd},</if>
+            <if test="rylb != null">rylb = #{rylb},</if>
+            <if test="xydj != null">xydj = #{xydj},</if>
+            <if test="hyzk != null">hyzk = #{hyzk},</if>
+            <if test="poName != null">po_name = #{poName},</if>
+            <if test="poIdCard != null">po_id_card = #{poIdCard},</if>
+            <if test="poGzdw != null">po_gzdw = #{poGzdw},</if>
+            <if test="dbrName != null">dbr_name = #{dbrName},</if>
+            <if test="dbrIdCard != null">dbr_id_card = #{dbrIdCard},</if>
+            <if test="dbrTwoName != null">dbr_two_name = #{dbrTwoName},</if>
+            <if test="dbrTwoIdCard != null">dbr_two_id_card = #{dbrTwoIdCard},</if>
+            <if test="type != null">type = #{type},</if>
+            <if test="result != null">result = #{result},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+            <if test="fdBank != null">fd_bank = #{fdBank},</if>
+            <if test="fdBankId != null">fd_bank_id = #{fdBankId},</if>
+            <if test="fdMoney != null">fd_money = #{fdMoney},</if>
+            <if test="fdTime != null">fd_time = #{fdTime},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteDksqById" parameterType="Long">
+        delete from dksq where id = #{id}
+    </delete>
+
+    <delete id="deleteDksqByIds" parameterType="String">
+        delete from dksq where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>