tangzy
2021-08-26 97f4c8f1aeea0b973d302d25bbf60c82dddf9a8d
src/main/java/org/springblade/modules/recordk/controller/RecordkController.java
@@ -92,7 +92,8 @@
   @ApiOperation(value = "新增", notes = "传入recordk")
   public R save(@Valid @RequestBody Recordk recordk) {
      String cardid = recordk.getCardid();
      Map map = recordkService.selectIn(cardid);
      String ptype = recordk.getPtype();
      Map map = recordkService.selectIn(cardid,ptype);
      if (map!=null){
         String id = map.get("id").toString();
         recordkService.removeByIds(Func.toLongList(id));
@@ -110,7 +111,8 @@
   @ApiOperation(value = "新增", notes = "传入permit")
   public R recorkstorage(@Valid @RequestBody Recordk recordk) {
      String cardid = recordk.getCardid();
      Map map = recordkService.selectIn(cardid);
      String ptype = recordk.getPtype();
      Map map = recordkService.selectIn(cardid,ptype);
      if (map!=null){
         recordk.setStorage("0");
         recordkService.updateById(recordk);
@@ -156,8 +158,8 @@
   @PostMapping("/selectIn")
   public R selectIn(String cardid) {
      Map map = recordkService.selectIn(cardid);
   public R selectIn(String cardid,String type) {
      Map map = recordkService.selectIn(cardid,type);
      return R.data(map);
   }