Quellcode durchsuchen

费用申请-科研费号统一由定时任务生成

lgl vor 11 Monaten
Ursprung
Commit
34307f9541
1 geänderte Dateien mit 11 neuen und 26 gelöschten Zeilen
  1. 11 26
      src/main/java/com/liang/controller/StaBudgetapprovalController.java

+ 11 - 26
src/main/java/com/liang/controller/StaBudgetapprovalController.java

@@ -270,7 +270,7 @@ public class StaBudgetapprovalController extends BaseController {
270 270
             PrjApproverecord approveInfo = approveList.get(0);
271 271
             approveInfo.setSqje(sqje);
272 272
 
273
-            if (spzt.equals(PostInfoEnum.YZ.postName()+"审批") || spzt.equals(PostInfoEnum.ZGYLD.postName() + "审批") && sqje < 1000000) {
273
+            if (spzt.equals(PostInfoEnum.YZ.postName() + "审批") || spzt.equals(PostInfoEnum.ZGYLD.postName() + "审批") && sqje < 1000000) {
274 274
                 approveInfo.setSpcz("批量审批");
275 275
                 approveInfo.setYj("通过");
276 276
             } else {
@@ -303,7 +303,7 @@ public class StaBudgetapprovalController extends BaseController {
303 303
             }
304 304
             res.put("approveInfo", approveInfo);
305 305
         } else {
306
-           throw new CustomException("费用申请批量审批ERROR:数据不匹配,xmid:",xmid);
306
+            throw new CustomException("费用申请批量审批ERROR:数据不匹配,xmid:", xmid);
307 307
         }
308 308
         return res;
309 309
 
@@ -311,6 +311,7 @@ public class StaBudgetapprovalController extends BaseController {
311 311
 
312 312
     @Resource
313 313
     private SysUserPostService sysUserPostService;
314
+
314 315
     /**
315 316
      * 编辑数据(费用申请)
316 317
      *
@@ -990,25 +991,7 @@ public class StaBudgetapprovalController extends BaseController {
990 991
     @RequestMapping(value = "/updateSpzt", method = RequestMethod.POST)
991 992
     public BaseResult updateSpzt(@RequestBody String strData) {
992 993
         StaBudgetapproval fysq = JsonTool.parseObject(strData, StaBudgetapproval.class);
993
-        if (fysq.getSpzt().equals("审批结束")&&(StrUtil.isNotBlank(fysq.getOperations())&&!"bathsp".equals(fysq.getOperations()))) {
994
-            DateFormat dateFormat = new SimpleDateFormat("yyyy");
995
-            PrjProject project = prjProjectService.queryById(fysq.getXmid());
996
-            if (project != null && project.getXmlxmc().indexOf("政府") > 0) {
997
-                String partBh = "结转类(" + dateFormat.format(new Date()) + ")";
998
-                String bh = GetApproveRecordBH(partBh);
999
-                fysq.setBh(bh);
1000
-            } else {
1001
-                if (fysq.getSqje() < 1000000) {
1002
-                    String partBh = "科研类(" + dateFormat.format(new Date()) + ")";
1003
-                    String bh = GetApproveRecordBH(partBh);
1004
-                    fysq.setBh(bh);
1005
-                } else {
1006
-                    String partBh = "大额科研类(" + dateFormat.format(new Date()) + ")";
1007
-                    String bh = GetApproveRecordBH(partBh);
1008
-                    fysq.setBh(bh);
1009
-                }
1010
-            }
1011
-        } else {
994
+        if (fysq.getSpzt().equals("审批结束")) {
1012 995
             fysq.setBh("");
1013 996
         }
1014 997
         int num = staBudgetapprovalService.updateSpzt(fysq);
@@ -1304,13 +1287,14 @@ public class StaBudgetapprovalController extends BaseController {
1304 1287
 
1305 1288
         return resultMap;
1306 1289
     }
1290
+
1307 1291
     @ResponseBody
1308
-    @RequestMapping(value = "/getAll",method = RequestMethod.GET)
1309
-    public BaseResult getAll(){
1292
+    @RequestMapping(value = "/getAll", method = RequestMethod.GET)
1293
+    public BaseResult getAll() {
1310 1294
         Map<String, String> paraMap = new HashMap<>();
1311 1295
         List<FeeManagemant> list = prjProjectService.getFyglList(paraMap);
1312 1296
 
1313
-    return BaseResult.success(list);
1297
+        return BaseResult.success(list);
1314 1298
     }
1315 1299
 
1316 1300
 
@@ -1434,10 +1418,10 @@ public class StaBudgetapprovalController extends BaseController {
1434 1418
     public Object getSubNode(@PathVariable Integer nys,
1435 1419
                              @RequestParam Integer page,
1436 1420
                              @RequestParam Integer limit,
1437
-                             @RequestParam(required = false ,value = "mc") String mc
1421
+                             @RequestParam(required = false, value = "mc") String mc
1438 1422
     ) {
1439 1423
         Integer count = prjAnnualbudgetdetailService.getSubNodeCount(nys, page, limit);
1440
-        List<PrjAnnualbudgetdetail> list = prjAnnualbudgetdetailService.getSubNode(nys, page, limit,mc);
1424
+        List<PrjAnnualbudgetdetail> list = prjAnnualbudgetdetailService.getSubNode(nys, page, limit, mc);
1441 1425
 
1442 1426
         Map<String, Object> resultMap = new HashMap<>();
1443 1427
         resultMap.put("code", 0);
@@ -1450,6 +1434,7 @@ public class StaBudgetapprovalController extends BaseController {
1450 1434
 
1451 1435
     /**
1452 1436
      * 未关联项目备用金列表
1437
+     *
1453 1438
      * @return
1454 1439
      */
1455 1440
     @ResponseBody