Commit eec9dfca authored by qiyaxin's avatar qiyaxin

差旅报销审批-驳回

parent 876a86f9
...@@ -89,4 +89,10 @@ public class ExpenseApprovalController extends BaseController { ...@@ -89,4 +89,10 @@ public class ExpenseApprovalController extends BaseController {
return AjaxResult.success(expenseApprovalService.updatetravelOnBusinessStatus(FyglTravelOnBusinessDTO)); return AjaxResult.success(expenseApprovalService.updatetravelOnBusinessStatus(FyglTravelOnBusinessDTO));
} }
//差旅报销-驳回
@PostMapping("/travelOnBusinessApprovalReject")
public AjaxResult travelOnBusinessApprovalReject(@RequestBody List<TravelOnBusinessApprovalReject> FyglTravelOnBusinessDTO) {
return AjaxResult.success(expenseApprovalService.updatetravelOnBusinessStatusReject(FyglTravelOnBusinessDTO));
}
} }
...@@ -42,4 +42,7 @@ public interface ExpenseApprovalMapper{ ...@@ -42,4 +42,7 @@ public interface ExpenseApprovalMapper{
//修改差旅报销的审核状态 //修改差旅报销的审核状态
int updatetravelOnBusinessStatus(TravelOnBusinessApproval fyglTravelOnBusinessDTO); int updatetravelOnBusinessStatus(TravelOnBusinessApproval fyglTravelOnBusinessDTO);
//差旅报销审批-审核驳回
int updatetravelOnBusinessStatusReject(TravelOnBusinessApprovalReject fyglTravelOnBusinessDTO);
} }
...@@ -34,11 +34,15 @@ public interface IExpenseApprovalService { ...@@ -34,11 +34,15 @@ public interface IExpenseApprovalService {
//差旅报销审批-审核通过 //差旅报销审批-审核通过
int updatetravelOnBusinessStatus(List<TravelOnBusinessApproval> fyglTravelOnBusinessDTO); int updatetravelOnBusinessStatus(List<TravelOnBusinessApproval> fyglTravelOnBusinessDTO);
//差旅报销审批-审核驳回
int updatetravelOnBusinessStatusReject(List<TravelOnBusinessApprovalReject> fyglTravelOnBusinessDTO);
//日常报销审批-审核通过 //日常报销审批-审核通过
int updateDailyReimburseStatus(List<DailyReimburseApproval> fyglDailyReimburseDTO); int updateDailyReimburseStatus(List<DailyReimburseApproval> fyglDailyReimburseDTO);
//日常报销审批-审核驳回 //日常报销审批-审核驳回
int updateDailyReimburseStatusReject(List<DailyReimburseApprovalReject> fyglDailyReimburseDTO); int updateDailyReimburseStatusReject(List<DailyReimburseApprovalReject> fyglDailyReimburseDTO);
} }
...@@ -141,4 +141,15 @@ public class IExpenseApprovalServiceImpl implements IExpenseApprovalService { ...@@ -141,4 +141,15 @@ public class IExpenseApprovalServiceImpl implements IExpenseApprovalService {
return 1; return 1;
} }
@Override
@Transactional
public int updatetravelOnBusinessStatusReject(List<TravelOnBusinessApprovalReject> fyglTravelOnBusinessDTO) {
for(TravelOnBusinessApprovalReject p : fyglTravelOnBusinessDTO){
//设置状态为未通过
p.setApproveStatus(1);
expenseApprovalMapper.updatetravelOnBusinessStatusReject(p);
}
return 1;
}
} }
...@@ -86,6 +86,15 @@ ...@@ -86,6 +86,15 @@
</trim> </trim>
where id = #{travelOnBusinessId} where id = #{travelOnBusinessId}
</update> </update>
<!-- 差旅报销审批-驳回-->
<update id="updatetravelOnBusinessStatusReject" parameterType="com.ruoyi.domain.TravelOnBusinessApprovalReject">
update fygl_travel_on_business
<trim prefix="SET" suffixOverrides=",">
<if test="approveStatus != null">status = #{approveStatus},</if>
<if test="groundsForRejection != null">grounds_for_rejection = #{groundsForRejection}</if>
</trim>
where id = #{travelOnBusinessId}
</update>
<select id="getDailyBaoXiaoApproval" resultType="com.ruoyi.domain.dto.DailyBaoXiaoApprovalDTO"> <select id="getDailyBaoXiaoApproval" resultType="com.ruoyi.domain.dto.DailyBaoXiaoApprovalDTO">
...@@ -137,4 +146,5 @@ ...@@ -137,4 +146,5 @@
</update> </update>
</mapper> </mapper>
\ No newline at end of file
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