From 5b6bd2b10c8c87b658b888f4d0384aec3ed491ce Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期二, 26 八月 2025 12:21:29 +0800 Subject: [PATCH] 代码提交 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFundController.java | 46 ++++++++++++++++++++++++++++++---------------- 1 files changed, 30 insertions(+), 16 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFundController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFundController.java index 94b2a5e..2c26721 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFundController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFundController.java @@ -59,11 +59,12 @@ @Autowired private IServiceFundService serviceFundService; @Autowired + private IServiceFundSharedService serviceFundSharedService; + @Autowired private IServiceFunddetailService serviceFunddetailService; @Autowired private IServiceFundflowruleService serviceFundflowruleService; - @Autowired - private IServiceFundflowService serviceFundflowService; + @Autowired private IServiceDonatebaseinfoService serviceDonatebaseinfoService; @@ -71,20 +72,10 @@ private IServiceReimbursementService serviceReimbursementService; @Autowired - private IServiceSystemmessageService iServiceSystemmessageService; - - @Autowired private IServiceExternalpersonService externalpersonService; @Autowired private ISysPostService postService; - - - @Autowired - private DingTalkService dingTalkService; - - @Autowired - private ISysUserService sysUserService; public ServiceFundController() { configuration = new Configuration(); @@ -118,13 +109,32 @@ @PostMapping("/processlog") public AjaxResult processlog(@RequestBody ServiceProcessVO serviceProcessVO) { log.info("鑷磋繙绯荤粺娴佺▼閫�鍥炲鎵规棩蹇楀叆鍙傦細{}", serviceProcessVO); - if (serviceProcessVO.getBackCode() == null || StringUtils.isEmpty(serviceProcessVO.getApplytype())) { + if (serviceProcessVO.getBackCode() == null && StringUtils.isEmpty(serviceProcessVO.getApplytype())) { return AjaxResult.error("鍏ヨ兘涓虹┖,璇锋鏌ュ叆鍙�!!"); } Boolean processlog = serviceFundService.processlog(serviceProcessVO); if (!processlog) return AjaxResult.error("瀹℃壒璁板綍澶辫触"); return AjaxResult.success("瀹℃壒璁板綍鎴愬姛"); + } + + /** + * 淇敼缂栧彿涓庢敮浠樻柟寮� + * + * @param serviceCodeAndPyaWay + * @return + */ + @PostMapping("/updatecodepayway") + public AjaxResult updatecodepay(@RequestBody ServiceCodeAndPyaWay serviceCodeAndPyaWay) { + log.info("鑷磋繙绯荤粺缂栧彿涓庢敮浠樻柟寮忓叆鍙傦細{}", serviceCodeAndPyaWay); + if (StringUtils.isEmpty(serviceCodeAndPyaWay.getApplytype()) || StringUtils.isEmpty(serviceCodeAndPyaWay.getBh()) || StringUtils.isEmpty(serviceCodeAndPyaWay.getZffs())) { + return AjaxResult.error("鍏ヨ兘涓虹┖,璇锋鏌ュ叆鍙�!!"); + } + + Boolean result = serviceFundService.updatecodepay(serviceCodeAndPyaWay); + if (!result) return AjaxResult.error("淇敼澶辫触"); + + return AjaxResult.success("淇敼鎴愬姛"); } @@ -323,7 +333,7 @@ public AjaxResult checkFund(@RequestBody CheckFundVO checkFundVO) { log.info("serviceFundController---checkFund鐨勫叆鍙傚�糲heckFundVO :{}", checkFundVO); LoginUser loginUser = getLoginUser(); - Map<String, String> map = serviceFundService.checkFund(checkFundVO,loginUser); + Map<String, String> map = serviceFundService.checkFund(checkFundVO, loginUser); Set<String> keys = map.keySet(); for (String s : keys) { if (!s.equals("200")) return AjaxResult.error(map.get(s)); @@ -454,9 +464,13 @@ } String newTime = String.valueOf(Calendar.getInstance().getTimeInMillis()); - String name = "涓撳鍔冲姟璐瑰彂鏀剧敵璇峰崟_" + dataMap.get("XM") + "_" + newTime; + String newName = null; + if (Objects.isNull(dataMap.get("XM"))) { + newName = dataMap.get("XM").toString().trim(); + } + String name = "涓撳鍔冲姟璐瑰彂鏀剧敵璇峰崟_" + newName + "_" + newTime; if (dataLW.equals("4")) { - name = "鍔炲叕璐圭敤鐢宠鍗昣" + dataMap.get("XM") + "_" + newTime; + name = "鍔炲叕璐圭敤鐢宠鍗昣" + newName + "_" + newTime; } //杈撳嚭鏂囨。璺緞鍙婂悕绉� -- Gitblit v1.9.3