|
|
@ -41,7 +41,7 @@ import com.alibaba.fastjson.JSON; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import org.jeecg.common.aspect.annotation.AutoLog; |
|
|
|
import org.jeecg.common.aspect.annotation.AutoLog; |
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @Description: 上年度(末)主要财务数据 |
|
|
|
* @Description: 上年度(末)主要财务数据 |
|
|
@ -91,7 +91,6 @@ public class DepsbnczController extends JeecgController<Depsbncz, IDepsbnczServi |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@AutoLog(value = "上年度(末)主要财务数据-添加") |
|
|
|
@AutoLog(value = "上年度(末)主要财务数据-添加") |
|
|
|
@ApiOperation(value="上年度(末)主要财务数据-添加", notes="上年度(末)主要财务数据-添加") |
|
|
|
@ApiOperation(value="上年度(末)主要财务数据-添加", notes="上年度(末)主要财务数据-添加") |
|
|
|
@RequiresPermissions("depsbncz:depsbncz:add") |
|
|
|
|
|
|
|
@PostMapping(value = "/add") |
|
|
|
@PostMapping(value = "/add") |
|
|
|
public Result<String> add(@RequestBody Depsbncz depsbncz) { |
|
|
|
public Result<String> add(@RequestBody Depsbncz depsbncz) { |
|
|
|
LoginUser user= (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
|
|
|
LoginUser user= (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
|
|
@ -110,7 +109,6 @@ public class DepsbnczController extends JeecgController<Depsbncz, IDepsbnczServi |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@AutoLog(value = "上年度(末)主要财务数据-编辑") |
|
|
|
@AutoLog(value = "上年度(末)主要财务数据-编辑") |
|
|
|
@ApiOperation(value="上年度(末)主要财务数据-编辑", notes="上年度(末)主要财务数据-编辑") |
|
|
|
@ApiOperation(value="上年度(末)主要财务数据-编辑", notes="上年度(末)主要财务数据-编辑") |
|
|
|
@RequiresPermissions("depsbncz:depsbncz:edit") |
|
|
|
|
|
|
|
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
|
|
|
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
|
|
|
public Result<String> edit(@RequestBody Depsbncz depsbncz) { |
|
|
|
public Result<String> edit(@RequestBody Depsbncz depsbncz) { |
|
|
|
depsbnczService.updateById(depsbncz); |
|
|
|
depsbnczService.updateById(depsbncz); |
|
|
@ -125,7 +123,6 @@ public class DepsbnczController extends JeecgController<Depsbncz, IDepsbnczServi |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@AutoLog(value = "上年度(末)主要财务数据-通过id删除") |
|
|
|
@AutoLog(value = "上年度(末)主要财务数据-通过id删除") |
|
|
|
@ApiOperation(value="上年度(末)主要财务数据-通过id删除", notes="上年度(末)主要财务数据-通过id删除") |
|
|
|
@ApiOperation(value="上年度(末)主要财务数据-通过id删除", notes="上年度(末)主要财务数据-通过id删除") |
|
|
|
@RequiresPermissions("depsbncz:depsbncz:delete") |
|
|
|
|
|
|
|
@DeleteMapping(value = "/delete") |
|
|
|
@DeleteMapping(value = "/delete") |
|
|
|
public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
|
|
|
public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
|
|
|
depsbnczService.removeById(id); |
|
|
|
depsbnczService.removeById(id); |
|
|
@ -140,7 +137,6 @@ public class DepsbnczController extends JeecgController<Depsbncz, IDepsbnczServi |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@AutoLog(value = "上年度(末)主要财务数据-批量删除") |
|
|
|
@AutoLog(value = "上年度(末)主要财务数据-批量删除") |
|
|
|
@ApiOperation(value="上年度(末)主要财务数据-批量删除", notes="上年度(末)主要财务数据-批量删除") |
|
|
|
@ApiOperation(value="上年度(末)主要财务数据-批量删除", notes="上年度(末)主要财务数据-批量删除") |
|
|
|
@RequiresPermissions("depsbncz:depsbncz:deleteBatch") |
|
|
|
|
|
|
|
@DeleteMapping(value = "/deleteBatch") |
|
|
|
@DeleteMapping(value = "/deleteBatch") |
|
|
|
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
|
|
|
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
|
|
|
this.depsbnczService.removeByIds(Arrays.asList(ids.split(","))); |
|
|
|
this.depsbnczService.removeByIds(Arrays.asList(ids.split(","))); |
|
|
@ -170,7 +166,6 @@ public class DepsbnczController extends JeecgController<Depsbncz, IDepsbnczServi |
|
|
|
* @param request |
|
|
|
* @param request |
|
|
|
* @param depsbncz |
|
|
|
* @param depsbncz |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@RequiresPermissions("depsbncz:depsbncz:exportXls") |
|
|
|
|
|
|
|
@RequestMapping(value = "/exportXls") |
|
|
|
@RequestMapping(value = "/exportXls") |
|
|
|
public ModelAndView exportXls(HttpServletRequest request, Depsbncz depsbncz) { |
|
|
|
public ModelAndView exportXls(HttpServletRequest request, Depsbncz depsbncz) { |
|
|
|
return super.exportXls(request, depsbncz, Depsbncz.class, "上年度(末)主要财务数据"); |
|
|
|
return super.exportXls(request, depsbncz, Depsbncz.class, "上年度(末)主要财务数据"); |
|
|
@ -183,7 +178,6 @@ public class DepsbnczController extends JeecgController<Depsbncz, IDepsbnczServi |
|
|
|
* @param response |
|
|
|
* @param response |
|
|
|
* @return |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@RequiresPermissions("depsbncz:depsbncz:importExcel") |
|
|
|
|
|
|
|
@RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
|
|
|
@RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
|
|
|
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
|
|
|
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
|
|
|
return super.importExcel(request, response, Depsbncz.class); |
|
|
|
return super.importExcel(request, response, Depsbncz.class); |
|
|
|