|
@@ -109,7 +109,12 @@ public class SealTurnController extends JeecgController<SealTurn, ISealTurnServi
|
|
@AutoLog(value = "上缴印章-编辑")
|
|
@AutoLog(value = "上缴印章-编辑")
|
|
@ApiOperation(value="上缴印章-编辑", notes="上缴印章-编辑")
|
|
@ApiOperation(value="上缴印章-编辑", notes="上缴印章-编辑")
|
|
@PutMapping(value = "/edit")
|
|
@PutMapping(value = "/edit")
|
|
|
|
+ @Transactional
|
|
public Result<?> edit(@RequestBody SealTurn sealTurn) {
|
|
public Result<?> edit(@RequestBody SealTurn sealTurn) {
|
|
|
|
+ UpdateWrapper<SealArchives> updateWrapper = new UpdateWrapper<>();
|
|
|
|
+ updateWrapper.eq("id",sealTurn.getSealId());
|
|
|
|
+ updateWrapper.set("turn_date",sealTurn.getTurnDate());
|
|
|
|
+ sealArchivesService.update(updateWrapper);
|
|
sealTurnService.updateById(sealTurn);
|
|
sealTurnService.updateById(sealTurn);
|
|
return Result.ok("编辑成功!");
|
|
return Result.ok("编辑成功!");
|
|
}
|
|
}
|
|
@@ -182,4 +187,20 @@ public class SealTurnController extends JeecgController<SealTurn, ISealTurnServi
|
|
return super.importExcel(request, response, SealTurn.class);
|
|
return super.importExcel(request, response, SealTurn.class);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 通过id删除
|
|
|
|
+ *
|
|
|
|
+ * @param sealTurn
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @AutoLog(value = "上缴印章-通过id删除")
|
|
|
|
+ @ApiOperation(value="上缴印章-通过id删除", notes="上缴印章-通过id删除")
|
|
|
|
+ @DeleteMapping(value = "/deletes")
|
|
|
|
+ public Result<?> deletes(@RequestBody SealTurn sealTurn) {
|
|
|
|
+ System.out.println(sealTurn);
|
|
|
|
+// sealTurnService.removeById(id);
|
|
|
|
+ return Result.ok("删除成功!");
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|