|
|
@ -12,6 +12,7 @@ import org.jeecg.common.system.base.controller.JeecgController; |
|
|
|
import org.jeecg.common.system.query.QueryGenerator; |
|
|
|
import org.jeecg.common.system.query.QueryGenerator; |
|
|
|
import org.jeecg.modules.skillType.entity.SkillType; |
|
|
|
import org.jeecg.modules.skillType.entity.SkillType; |
|
|
|
import org.jeecg.modules.skillType.service.ISkillTypeService; |
|
|
|
import org.jeecg.modules.skillType.service.ISkillTypeService; |
|
|
|
|
|
|
|
import org.jeecg.modules.taskSkill.entity.TaskSkillConstant; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import org.springframework.web.servlet.ModelAndView; |
|
|
|
import org.springframework.web.servlet.ModelAndView; |
|
|
@ -68,7 +69,7 @@ public class SkillTypeController extends JeecgController<SkillType, ISkillTypeSe |
|
|
|
@PostMapping(value = "/add") |
|
|
|
@PostMapping(value = "/add") |
|
|
|
public Result<?> add(@RequestBody SkillType skillType) { |
|
|
|
public Result<?> add(@RequestBody SkillType skillType) { |
|
|
|
if (skillType.getSupertypeId() == null){ |
|
|
|
if (skillType.getSupertypeId() == null){ |
|
|
|
skillType.setSupertypeId("-1"); |
|
|
|
skillType.setSupertypeId(TaskSkillConstant.skill_superType); |
|
|
|
} |
|
|
|
} |
|
|
|
skillTypeService.save(skillType); |
|
|
|
skillTypeService.save(skillType); |
|
|
|
return Result.OK("添加成功!"); |
|
|
|
return Result.OK("添加成功!"); |
|
|
|