| | |
| | | import cc.mrbird.febs.common.core.entity.QueryRequest; |
| | | import cc.mrbird.febs.common.core.exception.FebsException; |
| | | import cc.mrbird.febs.common.core.utils.FebsUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | import javax.validation.constraints.NotBlank; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | * @date 2021-01-31 11:26:27 |
| | | * @since JDK1.8 |
| | | */ |
| | | @Api(tags = "人员意外险案件录入接口") |
| | | @Slf4j |
| | | @Validated |
| | | @RestController |
| | |
| | | @PreAuthorize("hasAuthority('empAccidentcases:delete')") |
| | | public void logicDeleteEmpAccidentCases(@PathVariable("ids") String ids) throws FebsException { |
| | | try { |
| | | this.empAccidentCasesService.logicDelEmpAccidentcases(ids); |
| | | this.empAccidentCasesService.logicDelEmpAccidentCases(ids); |
| | | } catch (Exception e) { |
| | | String message = "逻辑删除员工意外险案件失败"; |
| | | log.error(message, e); |
| | |
| | | throw new FebsException(message); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "意外险案件信息提交") |
| | | @DeleteMapping("toNormal/{ids}") |
| | | @PreAuthorize("hasAuthority('empAccidentcases:delete')") |
| | | public void momentToNormal(@NotBlank(message = "{required}") @PathVariable("ids") String ids) throws FebsException { |
| | | try { |
| | | this.empAccidentCasesService.momentToNormal(ids); |
| | | } catch (Exception e) { |
| | | String message = "意外险案件信息提交失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | } |
| | | } |
| | | } |