Quellcode durchsuchen

融资盖章缴费更新费用状态

peixh vor 3 Jahren
Ursprung
Commit
cbb052da24

+ 9 - 4
sc-service/src/main/java/com/huyi/service/financeRecord/controller/RecordSealController.java

@@ -796,13 +796,18 @@ public class RecordSealController extends BaseController {
      * @return
      * @throws Exception
      */
-    @PostMapping("/updateChargeStatus/{zfrId}")
-    public AjaxResult updateChargeStatus(@PathVariable String zfrId) throws Exception {
-
+    @PostMapping("/updateChargeStatus/{zfrId}/{zciStatus}")
+    public AjaxResult updateChargeStatus(@PathVariable String zfrId,@PathVariable String zciStatus) throws Exception {
+        //获取此操作员
+        LoginUser userInfo = tokenService.getLoginUser();
+        SysUser user = userInfo.getSysUser();
+        String userId = user.getUserId()+"";
         LambdaQueryWrapper<ZcChargeInf> queryWrapper = new LambdaQueryWrapper<>();
         queryWrapper.eq(ZcChargeInf::getZciFinanceId,zfrId);
         ZcChargeInf zcChargeInf = new ZcChargeInf();
-        zcChargeInf.setZciStatus("02");
+        zcChargeInf.setZciStatus(zciStatus);
+        zcChargeInf.setUpdateBy(userId);
+        zcChargeInf.setUpdateTime(DateUtils.getNowDate());
         iZcChargeInfService.update(zcChargeInf,queryWrapper);
         return AjaxResult.success();
     }