Commit 322d167e authored by 祁正's avatar 祁正

项目费用报销-修改

parent 7906d6a0
......@@ -54,4 +54,11 @@ public class FyglProjectCostReimbursementController extends BaseController {
{
return AjaxResult.success(reimbursementService.insertReimbursement(reimbursementVo));
}
//修改
@PutMapping("/updateReimbursementDetail")
public AjaxResult updateReimbursementDetail(@RequestBody FyglDailyReimbursementVo reimbursementVo)
{
return AjaxResult.success(reimbursementService.updateReimbursement(reimbursementVo));
}
}
......@@ -26,6 +26,7 @@ public class FyglDailyReimbursementVo extends BaseEntity {
//附件
private String accessory;
private Integer id;
private Integer rid;
private String serialNumber;
private String description;
......
......@@ -22,4 +22,7 @@ public interface FyglProjectCostReimbursementMapper {
//待报销接口
public List<FyglProjectCostDTO> approvestatus3List(FyglProjectCostDTO fyglProjectCostDTO);
public int updateReimbursement(FyglDailyReimbursementVo fyglDailyReimbursementVo);
}
......@@ -16,4 +16,6 @@ public interface IFyglProjectCostReimbursementService {
public int insertReimbursement(FyglDailyReimbursementVo fyglDailyReimbursementVo);
public int updateReimbursement(FyglDailyReimbursementVo fyglDailyReimbursementVo);
}
......@@ -60,4 +60,11 @@ public class IFyglProjectCostReimbursementServiceImpl implements IFyglProjectCos
reimbursementMapper.insertReimbursement(fyglDailyReimbursementVo);
return i;
}
@Override
public int updateReimbursement(FyglDailyReimbursementVo fyglDailyReimbursementVo) {
fyglDailyReimbursementVo.setUpdateBy(SecurityUtils.getUsername());
fyglDailyReimbursementVo.setUpdateTime(DateUtils.getNowDate());
return reimbursementMapper.updateReimbursement(fyglDailyReimbursementVo);
}
}
......@@ -51,6 +51,15 @@
<if test="remark != null">#{remark}</if>
</trim>
</insert>
<update id="updateReimbursement" parameterType="com.ruoyi.domain.dto.FyglProjectCostReimbursementDTO">
update fygl_project_cost_reimbursement
<trim prefix="SET" suffixOverrides=",">
<if test="actualAmount != null">actual_amount = #{actualAmount},</if>
<if test="description != null">`description` = #{description}</if>
</trim>
where id = #{id}
</update>
<select id="getList" resultMap="listDTO" parameterType="com.ruoyi.domain.dto.FyglProjectCostReimbursementDTO">
......
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