|
|
@ -1,26 +1,26 @@ |
|
|
|
package org.jeecg.modules.skillPoints.controller; |
|
|
|
package org.jeecg.modules.skillPoints.controller; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.Arrays; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
|
|
|
import org.jeecg.common.api.vo.Result; |
|
|
|
|
|
|
|
import org.jeecg.common.system.query.QueryGenerator; |
|
|
|
|
|
|
|
import org.jeecg.modules.skillPoints.entity.SkillPoints; |
|
|
|
|
|
|
|
import org.jeecg.modules.skillPoints.service.ISkillPointsService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
|
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
|
|
|
import org.jeecg.common.api.vo.Result; |
|
|
|
|
|
|
|
import org.jeecg.common.aspect.annotation.AutoLog; |
|
|
|
import org.jeecg.common.system.base.controller.JeecgController; |
|
|
|
import org.jeecg.common.system.base.controller.JeecgController; |
|
|
|
|
|
|
|
import org.jeecg.common.system.query.QueryGenerator; |
|
|
|
|
|
|
|
import org.jeecg.modules.skillPoints.entity.SkillPoints; |
|
|
|
|
|
|
|
import org.jeecg.modules.skillPoints.entity.SkillPointsConstant; |
|
|
|
|
|
|
|
import org.jeecg.modules.skillPoints.service.ISkillPointsService; |
|
|
|
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; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
|
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import org.jeecg.common.aspect.annotation.AutoLog; |
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
|
|
|
import java.util.Arrays; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @Description: 技能点管理 |
|
|
|
* @Description: 技能点管理 |
|
|
@ -72,8 +72,8 @@ public class SkillPointsController extends JeecgController<SkillPoints, ISkillPo |
|
|
|
List<SkillPoints> list = skillPointsService.list(new QueryWrapper<SkillPoints>().lambda().orderByDesc(SkillPoints::getSkillCode)); |
|
|
|
List<SkillPoints> list = skillPointsService.list(new QueryWrapper<SkillPoints>().lambda().orderByDesc(SkillPoints::getSkillCode)); |
|
|
|
SkillPoints skillPoints1 = list.get(0); |
|
|
|
SkillPoints skillPoints1 = list.get(0); |
|
|
|
if (skillPoints1 == null){ |
|
|
|
if (skillPoints1 == null){ |
|
|
|
// 编码格式 J+顺序号 共10个字符 ,如果数据库获取不到,则用默认值
|
|
|
|
// 编码格式 J+顺序号 共10个字符 ,如果数据库获取不到,说明还没有编号,则用默认值重新编号
|
|
|
|
code = "J000000001"; |
|
|
|
code = SkillPointsConstant.skill_code; |
|
|
|
}else { |
|
|
|
}else { |
|
|
|
Integer s = Integer.valueOf(skillPoints1.getSkillCode().substring(1)) + 1; |
|
|
|
Integer s = Integer.valueOf(skillPoints1.getSkillCode().substring(1)) + 1; |
|
|
|
String format = String.format("%0" + 9 + "d", s); |
|
|
|
String format = String.format("%0" + 9 + "d", s); |
|
|
|