类 HistoryController
java.lang.Object
net.risesoft.controller.HistoryController
实体修改历史
- 作者:
- shidaobang
-
构造器详细资料
-
HistoryController
public HistoryController()
-
-
方法详细资料
-
getEntityChanges
@RequestMapping("/changes") @Transactional("rsPublicTransactionManager") public net.risesoft.pojo.Y9Result<String> getEntityChanges(@RequestParam String entity, @RequestParam Optional<Object> id, @RequestParam Optional<String> author) 获取实体修改- 参数:
entity- 实体类id- IDauthor- 操作人- 返回:
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) 获取实体的历史版本- 参数:
entity- 实体id- IDauthor- 操作人- 返回:
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 获取实体历史版本- 参数:
entity- 实体id- IDauthor- 操作人- 返回:
Y9Result<List<Map<String, Object>>>- 抛出:
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) 获取实体历史版本(键值对的形式)- 参数:
entity- 实体id- IDauthor- 作者- 返回:
Y9Result<List<CdoSnapshot>>
-
getShadowTitles
@RequestMapping("/getShadowTitles") @Transactional("rsPublicTransactionManager") public net.risesoft.pojo.Y9Result<Set<String>> getShadowTitles(@RequestParam String entity, @RequestParam Optional<Object> id) 获取实体字段名- 参数:
entity- 实体id- ID- 返回:
Y9Result<Set<String>>
-