From dcd3eb3bbbc25b01155493f20f5680fc6d4aee11 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期四, 26 十月 2023 16:02:07 +0800
Subject: [PATCH] 代码提交

---
 ruoyi-project/src/main/java/com/ruoyi/project/service/impl/ServiceFundflowServiceImpl.java |   46 ++++++++++++++++++++++++++++------------------
 1 files changed, 28 insertions(+), 18 deletions(-)

diff --git a/ruoyi-project/src/main/java/com/ruoyi/project/service/impl/ServiceFundflowServiceImpl.java b/ruoyi-project/src/main/java/com/ruoyi/project/service/impl/ServiceFundflowServiceImpl.java
index 5769970..5533734 100644
--- a/ruoyi-project/src/main/java/com/ruoyi/project/service/impl/ServiceFundflowServiceImpl.java
+++ b/ruoyi-project/src/main/java/com/ruoyi/project/service/impl/ServiceFundflowServiceImpl.java
@@ -1,61 +1,71 @@
 package com.ruoyi.project.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.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.baomidou.mybatisplus.core.toolkit.Wrappers;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
 import java.util.ArrayList;
 import java.util.Map;
+
 import com.ruoyi.common.utils.StringUtils;
 import com.ruoyi.project.mapper.ServiceFundflowMapper;
 import com.ruoyi.project.domain.ServiceFundflow;
 import com.ruoyi.project.service.IServiceFundflowService;
+import org.springframework.transaction.annotation.Transactional;
 
 /**
  * 璧勯噾瀹℃壒娴佺▼Service涓氬姟灞傚鐞�
- * 
+ *
  * @author ruoyi
  * @date 2022-04-27
  */
 @Service
-public class ServiceFundflowServiceImpl extends ServiceImpl<ServiceFundflowMapper, ServiceFundflow> implements IServiceFundflowService 
-{
+public class ServiceFundflowServiceImpl extends ServiceImpl<ServiceFundflowMapper, ServiceFundflow> implements IServiceFundflowService {
 
 
     /**
      * 鏌ヨ璧勯噾瀹℃壒娴佺▼鍒楄〃
-     * 
+     *
      * @param serviceFundflow 璧勯噾瀹℃壒娴佺▼
      * @return 璧勯噾瀹℃壒娴佺▼
      */
     @Override
     public List<ServiceFundflow> queryList(ServiceFundflow serviceFundflow) {
         LambdaQueryWrapper<ServiceFundflow> wrappers = Wrappers.lambdaQuery();
-        if (serviceFundflow.getFundid() != null){
-            wrappers.eq(ServiceFundflow::getFundid ,serviceFundflow.getFundid());
+        if (serviceFundflow.getFundid() != null) {
+            wrappers.eq(ServiceFundflow::getFundid, serviceFundflow.getFundid());
         }
-        if (StringUtils.isNotBlank(serviceFundflow.getCheckuserno())){
-            wrappers.eq(ServiceFundflow::getCheckuserno ,serviceFundflow.getCheckuserno());
+        if (StringUtils.isNotBlank(serviceFundflow.getCheckuserno())) {
+            wrappers.eq(ServiceFundflow::getCheckuserno, serviceFundflow.getCheckuserno());
         }
-        if (StringUtils.isNotBlank(serviceFundflow.getCheckusername())){
-            wrappers.like(ServiceFundflow::getCheckusername ,serviceFundflow.getCheckusername());
+        if (StringUtils.isNotBlank(serviceFundflow.getCheckusername())) {
+            wrappers.like(ServiceFundflow::getCheckusername, serviceFundflow.getCheckusername());
         }
-        if (StringUtils.isNotBlank(serviceFundflow.getFlowcontent())){
-            wrappers.eq(ServiceFundflow::getFlowcontent ,serviceFundflow.getFlowcontent());
+        if (StringUtils.isNotBlank(serviceFundflow.getFlowcontent())) {
+            wrappers.eq(ServiceFundflow::getFlowcontent, serviceFundflow.getFlowcontent());
         }
-        if (serviceFundflow.getFlowconclusion() != null){
-            wrappers.eq(ServiceFundflow::getFlowconclusion ,serviceFundflow.getFlowconclusion());
+        if (serviceFundflow.getFlowconclusion() != null) {
+            wrappers.eq(ServiceFundflow::getFlowconclusion, serviceFundflow.getFlowconclusion());
         }
-        if (serviceFundflow.getFundtype() != null){
-            wrappers.eq(ServiceFundflow::getFundtype ,serviceFundflow.getFundtype());
+        if (serviceFundflow.getFundtype() != null) {
+            wrappers.eq(ServiceFundflow::getFundtype, serviceFundflow.getFundtype());
         }
-        if (StringUtils.isNotBlank(serviceFundflow.getApplytype())){
-            wrappers.eq(ServiceFundflow::getApplytype ,serviceFundflow.getApplytype());
+        if (StringUtils.isNotBlank(serviceFundflow.getApplytype())) {
+            wrappers.eq(ServiceFundflow::getApplytype, serviceFundflow.getApplytype());
         }
         return this.list(wrappers);
     }
 
+    @Override
+    @Transactional(rollbackFor = Exception.class)
+    public Boolean saveData(ServiceFundflow serviceFundflow) {
+        boolean save = save(serviceFundflow);
+        return save;
+    }
+
 }

--
Gitblit v1.9.3