Commit c5703bcd authored by tangwei's avatar tangwei

添加事务注解

parent 6ef1cd5f
......@@ -84,6 +84,7 @@ public class FirefightersPostController extends BaseController {
@TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ApiOperation(httpMethod = "DELETE", value = "根据消防人员id删除岗位和学历信息", notes = "根据 id删除")
@Transactional
public ResponseModel<Object> deleteById(HttpServletRequest request, @PathVariable Long id){
try {
iFirefightersPostService.update(new UpdateWrapper<FirefightersPost>().eq("firefighters_id", id).set("is_delete", 1));
......@@ -108,6 +109,7 @@ public class FirefightersPostController extends BaseController {
@TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/updateById", method = RequestMethod.PUT)
@ApiOperation(httpMethod = "PUT", value = "修改岗位信息", notes = "修改岗位信息")
@Transactional
public ResponseModel<Object> updateByIdFirefightersPost(HttpServletRequest request, @RequestBody FirefightersData firefightersData){
try {
FirefightersPost firefightersPost= firefightersData.getFirefightersPost();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment