Package net.risesoft.controller
Class HistoryController
- java.lang.Object
-
- net.risesoft.controller.HistoryController
-
@RestController @RequestMapping("/history") public class HistoryController extends Object实体修改历史- Author:
- shidaobang
- Date:
- 2025/01/06
-
-
Constructor Summary
Constructors Constructor Description HistoryController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.risesoft.pojo.Y9Result<String>getEntityChanges(String entity, Optional<Object> id, Optional<String> author)获取实体修改net.risesoft.pojo.Y9Result<List<Object>>getEntityShadows(String entity, Optional<Object> id, Optional<String> author)获取实体的历史版本net.risesoft.pojo.Y9Result<List<Map<String,Object>>>getEntityShadowsRows(String entity, Optional<String> id, Optional<String> author)获取实体历史版本net.risesoft.pojo.Y9Result<List<org.javers.core.metamodel.object.CdoSnapshot>>getEntitySnapshots(String entity, Optional<Object> id, Optional<String> author)获取实体历史版本(键值对的形式)net.risesoft.pojo.Y9Result<Set<String>>getShadowTitles(String entity, Optional<Object> id)获取实体字段名
-
-
-
Method Detail
-
getEntityChanges
@RequestMapping("/changes") @Transactional("rsPublicTransactionManager") public net.risesoft.pojo.Y9Result<String> getEntityChanges(@RequestParam String entity, @RequestParam Optional<Object> id, @RequestParam Optional<String> author)获取实体修改- Parameters:
entity- 实体类id- IDauthor- 操作人- Returns:
Y9Result<String>
-
getEntityShadows
@RequestMapping("/shadows") @Transactional("rsPublicTransactionManager") public net.risesoft.pojo.Y9Result<List<Object>> getEntityShadows(@RequestParam String entity, @RequestParam Optional<Object> id, @RequestParam Optional<String> author)获取实体的历史版本- Parameters:
entity- 实体id- IDauthor- 操作人- Returns:
Y9Result<List<Object>>
-
getEntityShadowsRows
@RequestMapping("/getShadowRows") @Transactional("rsPublicTransactionManager") public net.risesoft.pojo.Y9Result<List<Map<String,Object>>> getEntityShadowsRows(@RequestParam String entity, @RequestParam Optional<String> id, @RequestParam Optional<String> author) throws ClassNotFoundException获取实体历史版本- Parameters:
entity- 实体id- IDauthor- 操作人- Returns:
Y9Result<List<Map<String, Object>>>- Throws:
ClassNotFoundException- 找不到类异常
-
getEntitySnapshots
@RequestMapping("/snapshots") @Transactional("rsPublicTransactionManager") public net.risesoft.pojo.Y9Result<List<org.javers.core.metamodel.object.CdoSnapshot>> getEntitySnapshots(@RequestParam String entity, @RequestParam Optional<Object> id, @RequestParam Optional<String> author)获取实体历史版本(键值对的形式)- Parameters:
entity- 实体id- IDauthor- 作者- Returns:
Y9Result<List<CdoSnapshot>>
-
-