Browse Source

调整存储过程调用的方法名

shudong 1 year ago
parent
commit
4f815f04b4

+ 1 - 10
collect-fees/collect-fees-service/src/main/java/com/tofly/fees/feesmgt/controller_easy/SfChargeEasyController.java

@@ -1,36 +1,27 @@
 package com.tofly.fees.feesmgt.controller_easy;
 
-import com.alibaba.fastjson.JSONObject;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.core.toolkit.StringUtils;
 import com.tofly.common.core.entity.ResultRespone;
 import com.tofly.fees.common.BaseController;
 import com.tofly.fees.common.annotate.requestPostSingle.RequestPostSingleParam;
 import com.tofly.fees.common.dbhelper.DbHelper;
-import com.tofly.fees.common.dbhelper.PageSortHelper;
 import com.tofly.fees.common.enums.SysEnum;
-import com.tofly.fees.common.model.CollectionData;
 import com.tofly.fees.common.model.PageLink;
 import com.tofly.fees.common.model.ProcParamModel;
 import com.tofly.fees.common.util.DateUtils;
 import com.tofly.fees.common.util.ToolsUtils;
 import com.tofly.fees.feesmgt.entity.SfCharge;
 import com.tofly.fees.feesmgt.service.SfChargeService;
-import com.tofly.fees.feesmgt.service.SfCusAccService;
-import com.tofly.fees.wechatofficalacctmgt.entity.WxBzsq;
 import io.swagger.annotations.*;
-import io.swagger.models.auth.In;
 import lombok.AllArgsConstructor;
 import org.apache.ibatis.mapping.ParameterMode;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.format.annotation.DateTimeFormat;
 import org.springframework.web.bind.annotation.*;
-import springfox.documentation.service.ApiListing;
 
 import java.math.BigDecimal;
 import java.sql.JDBCType;
 import java.sql.ResultSet;
-import java.text.MessageFormat;
 import java.util.*;
 
 import static com.tofly.fees.common.ControllerConstants.*;
@@ -279,7 +270,7 @@ public class SfChargeEasyController extends BaseController {
         paramModels.add(new ProcParamModel("V_CHSJ", ParameterMode.IN, JDBCType.DOUBLE, new Date()));
         paramModels.add(new ProcParamModel("V_SFCG", ParameterMode.OUT, JDBCType.VARCHAR, "-1"));
 
-        Map mp = dbHelper.excuteProcedure("PROC_SF_CH", paramModels);
+        Map mp = dbHelper.executeProcedure("PROC_SF_CH", paramModels);
         if(mp.get("V_SFCG").equals("1")){
             return  ResultRespone.success("成功");
         }

+ 1 - 16
collect-fees/collect-fees-service/src/main/java/com/tofly/fees/financialmgt/controller_easy/SfRecEasyController.java

@@ -1,37 +1,22 @@
 package com.tofly.fees.financialmgt.controller_easy;
 
-import cn.hutool.db.meta.JdbcType;
-import com.baomidou.mybatisplus.core.toolkit.StringUtils;
 import com.tofly.common.core.entity.ResultRespone;
 import com.tofly.fees.common.BaseController;
 import com.tofly.fees.common.dbhelper.DbHelper;
-import com.tofly.fees.common.enums.SysEnum;
 import com.tofly.fees.common.model.CollectionData;
-import com.tofly.fees.common.model.PageLink;
 import com.tofly.fees.common.model.ProcParamModel;
-import com.tofly.fees.common.util.DateUtils;
-import com.tofly.fees.common.util.XmlUtils;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import io.swagger.annotations.ApiParam;
 import lombok.AllArgsConstructor;
-import org.apache.ibatis.io.Resources;
 import org.apache.ibatis.mapping.ParameterMode;
-import org.springframework.data.repository.query.Param;
-import org.springframework.format.annotation.DateTimeFormat;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestParam;
 import org.springframework.web.bind.annotation.RestController;
 
-import java.io.InputStream;
 import java.sql.JDBCType;
-import java.sql.ParameterMetaData;
 import java.util.*;
-import java.util.stream.Collectors;
-
-import static com.tofly.fees.common.ControllerConstants.*;
-import static com.tofly.fees.common.ControllerConstants.Mapper_Redis_Prix;
 
 /**
  * @description:
@@ -95,7 +80,7 @@ public class SfRecEasyController extends BaseController {
         list.add(new ProcParamModel("V_ISFFGX", ParameterMode.IN, JDBCType.VARCHAR, "0"));
         list.add(new ProcParamModel("V_CUR", ParameterMode.OUT, JDBCType.REF_CURSOR, null));
         list.add(new ProcParamModel("V_SFCG", ParameterMode.OUT, JDBCType.VARCHAR, "0"));
-        Map map = db.excuteProcedure("PROC_CX_QFMX", list);
+        Map map = db.executeProcedure("PROC_CX_QFMX", list);
 
         //存储过程返回的参数
         if (map != null && map.get("V_SFCG").equals("0")) {

+ 5 - 7
collect-fees/collect-fees-service/src/main/java/com/tofly/fees/meterreadingmgt/controller/BwMeterReadPlanController.java

@@ -31,7 +31,6 @@ import io.swagger.annotations.ApiImplicitParams;
 import io.swagger.annotations.ApiOperation;
 import lombok.AllArgsConstructor;
 import org.apache.commons.lang.StringUtils;
-import org.apache.ibatis.annotations.Param;
 import org.apache.ibatis.mapping.ParameterMode;
 import org.springframework.beans.BeanUtils;
 import org.springframework.web.bind.annotation.*;
@@ -43,10 +42,9 @@ import java.util.*;
 import java.util.concurrent.ConcurrentLinkedQueue;
 
 /**
- * 抄表计划_抄表录入
+ * 抄表计划-抄表录入算费接口
  *
- * @author xb
- * @date Thu Jun 01 00:00:00 CST 2023
+ * @author shudong
  */
 @RestController
 @AllArgsConstructor
@@ -63,7 +61,7 @@ public class BwMeterReadPlanController extends BaseController {
      * 抄表录入查询列表数据
      */
     @PostMapping("/page")
-    @ApiOperation(value = "分页查询")
+    @ApiOperation(value = "抄表录入查询列表数据")
     @ApiImplicitParams({
             @ApiImplicitParam(name = "companyBranch", value = "公司", dataType = "String"),
             @ApiImplicitParam(name = "mrArea", value = "片区", dataType = "String"),
@@ -342,7 +340,7 @@ public class BwMeterReadPlanController extends BaseController {
         listZB.add(new ProcParamModel("P_CBKID", ParameterMode.IN, JDBCType.INTEGER, null));
         listZB.add(new ProcParamModel("P_SFCG", ParameterMode.OUT, JDBCType.INTEGER, 0));
         listZB.add(new ProcParamModel("P_MSG", ParameterMode.OUT, JDBCType.VARCHAR, ""));
-        Map mapZB = db.excuteProcedure("PROC_SLJS_ZB", listZB);
+        Map mapZB = db.executeProcedure("PROC_SLJS_ZB", listZB);
 
         //存储过程返回的参数
         if (!(mapZB != null && mapZB.get("P_SFCG").equals(1))) {
@@ -391,7 +389,7 @@ public class BwMeterReadPlanController extends BaseController {
             listSLSF.add(new ProcParamModel("P_CBKID", ParameterMode.IN, JDBCType.INTEGER, meterCId));
             listSLSF.add(new ProcParamModel("P_SFCG", ParameterMode.OUT, JDBCType.INTEGER, 0));
             listSLSF.add(new ProcParamModel("P_MSG", ParameterMode.OUT, JDBCType.VARCHAR, ""));
-            Map mapSLSF = db.excuteProcedure("PROC_SLSFJS", listSLSF);
+            Map mapSLSF = db.executeProcedure("PROC_SLSFJS", listSLSF);
             //判断返回结果
             if (mapSLSF != null && mapSLSF.get("P_SFCG").equals(1)) {
                 intReturnNum++;