|
|
|
@ -81,7 +81,7 @@ public class TongfenCompinfoController extends JeecgController<TongfenCompinfo, |
|
|
|
|
*/ |
|
|
|
|
@AutoLog(value = "同分情况详情-添加") |
|
|
|
|
@ApiOperation(value="同分情况详情-添加", notes="同分情况详情-添加") |
|
|
|
|
@RequiresPermissions("TongfenCompinfo:tongfen_compinfo:add") |
|
|
|
|
/* @RequiresPermissions("TongfenCompinfo:tongfen_compinfo:add")*/ |
|
|
|
|
@PostMapping(value = "/add") |
|
|
|
|
public Result<String> add(@RequestBody TongfenCompinfo tongfenCompinfo) { |
|
|
|
|
tongfenCompinfoService.save(tongfenCompinfo); |
|
|
|
@ -96,11 +96,18 @@ public class TongfenCompinfoController extends JeecgController<TongfenCompinfo, |
|
|
|
|
*/ |
|
|
|
|
@AutoLog(value = "同分情况详情-编辑") |
|
|
|
|
@ApiOperation(value="同分情况详情-编辑", notes="同分情况详情-编辑") |
|
|
|
|
@RequiresPermissions("TongfenCompinfo:tongfen_compinfo:edit") |
|
|
|
|
/*@RequiresPermissions("TongfenCompinfo:tongfen_compinfo:edit")*/ |
|
|
|
|
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
|
|
|
|
public Result<String> edit(@RequestBody TongfenCompinfo tongfenCompinfo) { |
|
|
|
|
tongfenCompinfoService.updateById(tongfenCompinfo); |
|
|
|
|
/*tongfenCompinfoService.updateById(tongfenCompinfo);*/ |
|
|
|
|
Integer a = tongfenCompinfoService.updateScore(tongfenCompinfo.getScore(),tongfenCompinfo.getCcode()); |
|
|
|
|
if (a>0){ |
|
|
|
|
tongfenCompinfoService.removeById(tongfenCompinfo.getId()); |
|
|
|
|
}else { |
|
|
|
|
return Result.error("成绩表存在数据缺失"); |
|
|
|
|
} |
|
|
|
|
return Result.OK("编辑成功!"); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -111,7 +118,7 @@ public class TongfenCompinfoController extends JeecgController<TongfenCompinfo, |
|
|
|
|
*/ |
|
|
|
|
@AutoLog(value = "同分情况详情-通过id删除") |
|
|
|
|
@ApiOperation(value="同分情况详情-通过id删除", notes="同分情况详情-通过id删除") |
|
|
|
|
@RequiresPermissions("TongfenCompinfo:tongfen_compinfo:delete") |
|
|
|
|
/* @RequiresPermissions("TongfenCompinfo:tongfen_compinfo:delete")*/ |
|
|
|
|
@DeleteMapping(value = "/delete") |
|
|
|
|
public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
|
|
|
|
tongfenCompinfoService.removeById(id); |
|
|
|
@ -126,7 +133,7 @@ public class TongfenCompinfoController extends JeecgController<TongfenCompinfo, |
|
|
|
|
*/ |
|
|
|
|
@AutoLog(value = "同分情况详情-批量删除") |
|
|
|
|
@ApiOperation(value="同分情况详情-批量删除", notes="同分情况详情-批量删除") |
|
|
|
|
@RequiresPermissions("TongfenCompinfo:tongfen_compinfo:deleteBatch") |
|
|
|
|
/*@RequiresPermissions("TongfenCompinfo:tongfen_compinfo:deleteBatch")*/ |
|
|
|
|
@DeleteMapping(value = "/deleteBatch") |
|
|
|
|
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
|
|
|
|
this.tongfenCompinfoService.removeByIds(Arrays.asList(ids.split(","))); |
|
|
|
@ -156,7 +163,7 @@ public class TongfenCompinfoController extends JeecgController<TongfenCompinfo, |
|
|
|
|
* @param request |
|
|
|
|
* @param tongfenCompinfo |
|
|
|
|
*/ |
|
|
|
|
@RequiresPermissions("TongfenCompinfo:tongfen_compinfo:exportXls") |
|
|
|
|
/*@RequiresPermissions("TongfenCompinfo:tongfen_compinfo:exportXls")*/ |
|
|
|
|
@RequestMapping(value = "/exportXls") |
|
|
|
|
public ModelAndView exportXls(HttpServletRequest request, TongfenCompinfo tongfenCompinfo) { |
|
|
|
|
return super.exportXls(request, tongfenCompinfo, TongfenCompinfo.class, "同分情况详情"); |
|
|
|
@ -169,7 +176,7 @@ public class TongfenCompinfoController extends JeecgController<TongfenCompinfo, |
|
|
|
|
* @param response |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@RequiresPermissions("TongfenCompinfo:tongfen_compinfo:importExcel") |
|
|
|
|
/*@RequiresPermissions("TongfenCompinfo:tongfen_compinfo:importExcel")*/ |
|
|
|
|
@RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
|
|
|
|
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
|
|
|
|
return super.importExcel(request, response, TongfenCompinfo.class); |
|
|
|
|