| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.poi.ss.formula.functions.T; |
| | | import org.apache.shiro.SecurityUtils; |
| | | import org.flowable.engine.IdentityService; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | |
| | | import org.jeecg.common.system.vo.LoginUser; |
| | | import org.jeecg.common.util.ImportExcelUtil; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.quartz.service.IQuartzJobService; |
| | | import org.jeecg.modules.system.entity.SysPosition; |
| | | import org.jeecg.modules.system.service.ISysBusinessCodeRuleService; |
| | | import org.jeecg.modules.system.service.ISysPositionService; |
| | | import org.jeecgframework.poi.excel.ExcelImportUtil; |
| | | import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
| | |
| | | @Autowired |
| | | private ISysPositionService sysPositionService; |
| | | |
| | | @Autowired |
| | | private ISysBusinessCodeRuleService sysBusinessCodeRuleService; |
| | | |
| | | /** |
| | | * 分页列表查询 |
| | | * |
| | |
| | | @ApiOperation(value = "职务表-添加", notes = "职务表-添加") |
| | | @PostMapping(value = "/add") |
| | | public Result<SysPosition> add(@RequestBody SysPosition sysPosition) { |
| | | String codeSeq = sysBusinessCodeRuleService.generateBusinessCodeSeq("PositionCodeRule"); |
| | | sysPosition.setCode(codeSeq); |
| | | Result<SysPosition> result = new Result<SysPosition>(); |
| | | try { |
| | | sysPositionService.save(sysPosition); |