Commit 0f9bfa17 authored by 祁正's avatar 祁正

项目费用审批-删除

parent 322d167e
package com.ruoyi.controller;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
......@@ -70,4 +69,11 @@ public class FyglProjectCostRequest extends BaseController {
{
return AjaxResult.success(costService.updateProjectCost(fyglProjectCostDTO));
}
//删除费用申请-物理
@PutMapping("/delete/{id}")
public AjaxResult deleteProjectCost(@PathVariable("id") Integer id)
{
return AjaxResult.success(costService.deleteProjectCost(id));
}
}
......@@ -21,6 +21,8 @@ public interface FyglProjectCostMapper {
//修改接口
int updateProjectCost(FyglProjectCostDTO fyglProjectCostDTO);
int deleteProjectCost(Integer id);
//获取项目列表
List<String> getProjectNameList();
......
......@@ -21,5 +21,7 @@ public interface IFyglProjectCostService {
int updateProjectCost(FyglProjectCostDTO fyglProjectCostDTO);
int deleteProjectCost(Integer id);
List<String> getProjectNameList();
}
......@@ -78,6 +78,11 @@ public class IFyglProjectCostServiceImpl implements IFyglProjectCostService {
return projectCostMapper.updateProjectCost(fyglProjectCostDTO);
}
@Override
public int deleteProjectCost(Integer id) {
return projectCostMapper.deleteProjectCost(id);
}
@Override
public List<String> getProjectNameList() {
return projectCostMapper.getProjectNameList();
......
......@@ -91,6 +91,9 @@
<update id="changeStatus">
update fygl_project_cost_request set approve_status = #{approveStatus} where id = #{id}
</update>
<delete id="deleteProjectCost">
delete from fygl_project_cost_request where id = #{id}
</delete>
<select parameterType="com.ruoyi.domain.dto.FyglProjectCostDTO" id="getList" resultMap="listDTO">
SELECT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment