|
@@ -3,10 +3,7 @@ package com.zhongzheng.controller.financial;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
import java.util.Arrays;
|
|
import java.util.Arrays;
|
|
|
|
|
|
|
|
-import com.zhongzheng.modules.top.financial.bo.TopCostInstTpAddBo;
|
|
|
|
|
-import com.zhongzheng.modules.top.financial.bo.TopCostInstTpEditBo;
|
|
|
|
|
-import com.zhongzheng.modules.top.financial.bo.TopCostInstTpQueryBo;
|
|
|
|
|
-import com.zhongzheng.modules.top.financial.bo.TopCostTpQueryBo;
|
|
|
|
|
|
|
+import com.zhongzheng.modules.top.financial.bo.*;
|
|
|
import com.zhongzheng.modules.top.financial.service.ITopCostInstTpService;
|
|
import com.zhongzheng.modules.top.financial.service.ITopCostInstTpService;
|
|
|
import com.zhongzheng.modules.top.financial.vo.TopCostInstTpVo;
|
|
import com.zhongzheng.modules.top.financial.vo.TopCostInstTpVo;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
@@ -51,7 +48,7 @@ public class TopCostInstTpController extends BaseController {
|
|
|
@GetMapping("/list")
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo<TopCostInstTpVo> list(TopCostInstTpQueryBo bo) {
|
|
public TableDataInfo<TopCostInstTpVo> list(TopCostInstTpQueryBo bo) {
|
|
|
startPage();
|
|
startPage();
|
|
|
- List<TopCostInstTpVo> list = iTopCostInstTpService.queryList(bo);
|
|
|
|
|
|
|
+ List<TopCostInstTpVo> list = iTopCostInstTpService.selectList(bo);
|
|
|
return getDataTable(list);
|
|
return getDataTable(list);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -95,4 +92,12 @@ public class TopCostInstTpController extends BaseController {
|
|
|
public AjaxResult<Void> deleteBatch(@RequestBody TopCostInstTpQueryBo bo) {
|
|
public AjaxResult<Void> deleteBatch(@RequestBody TopCostInstTpQueryBo bo) {
|
|
|
return toAjax(iTopCostInstTpService.deleteBatch(bo) ? 1 : 0);
|
|
return toAjax(iTopCostInstTpService.deleteBatch(bo) ? 1 : 0);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @ApiOperation("修改供应商成本模板默认状态")
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:tp:edit')")
|
|
|
|
|
+ @Log(title = "修改供应商成本模板默认状态", businessType = BusinessType.UPDATE)
|
|
|
|
|
+ @PostMapping("/editDefaultStatus")
|
|
|
|
|
+ public AjaxResult<Void> editDefaultStatus(@RequestBody TopCostInstTpEditBo bo) {
|
|
|
|
|
+ return toAjax(iTopCostInstTpService.updateDefaultStatus(bo) ? 1 : 0);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|