比赛权重

dev
Gitea 11 months ago
parent 48e5f81a71
commit 279a63c586
  1. 4
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/comp/controller/CompController.java

@ -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);*/
/*--------------------------王家东添加开始============================*/

Loading…
Cancel
Save