|
|
|
@ -227,7 +227,7 @@ public class CompController extends JeecgController<Comp, ICompService> { |
|
|
|
|
public Result<String> edit(@RequestBody Comp comp) { |
|
|
|
|
/*--------------------------王家东添加开始============================*/ |
|
|
|
|
//获取比赛类型
|
|
|
|
|
Double comptypeweight = compTypeService.getById(comp.getCompTypeId()).getScore(); |
|
|
|
|
/* Double comptypeweight = compTypeService.getById(comp.getCompTypeId()).getScore(); |
|
|
|
|
int comptyp = (int) Math.round(comptypeweight); |
|
|
|
|
//得到排序排序加大一便将比赛类型数据减一,最大值是10
|
|
|
|
|
int csort; |
|
|
|
@ -237,7 +237,7 @@ public class CompController extends JeecgController<Comp, ICompService> { |
|
|
|
|
csort = comptyp - comp.getCompOrder(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
comp.setCompweight(csort); |
|
|
|
|
comp.setCompweight(csort);*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*--------------------------王家东添加开始============================*/ |
|
|
|
|