Commit 876a86f9 authored by qiyaxin's avatar qiyaxin

差旅报销审批-通过

parent 89bc7304
...@@ -39,4 +39,7 @@ public interface ExpenseApprovalMapper{ ...@@ -39,4 +39,7 @@ public interface ExpenseApprovalMapper{
//日常报销审批-审核驳回 //日常报销审批-审核驳回
int updateDailyReimburseStatusReject(DailyReimburseApprovalReject fyglDailyReimburseDTO); int updateDailyReimburseStatusReject(DailyReimburseApprovalReject fyglDailyReimburseDTO);
//修改差旅报销的审核状态
int updatetravelOnBusinessStatus(TravelOnBusinessApproval fyglTravelOnBusinessDTO);
} }
...@@ -41,3 +41,4 @@ public interface IExpenseApprovalService { ...@@ -41,3 +41,4 @@ public interface IExpenseApprovalService {
//日常报销审批-审核驳回 //日常报销审批-审核驳回
int updateDailyReimburseStatusReject(List<DailyReimburseApprovalReject> fyglDailyReimburseDTO); int updateDailyReimburseStatusReject(List<DailyReimburseApprovalReject> fyglDailyReimburseDTO);
} }
...@@ -127,12 +127,16 @@ public class IExpenseApprovalServiceImpl implements IExpenseApprovalService { ...@@ -127,12 +127,16 @@ public class IExpenseApprovalServiceImpl implements IExpenseApprovalService {
} }
return 1; return 1;
} }
@Override @Override
@Transactional
public int updatetravelOnBusinessStatus(List<TravelOnBusinessApproval> fyglTravelOnBusinessDTO) { public int updatetravelOnBusinessStatus(List<TravelOnBusinessApproval> fyglTravelOnBusinessDTO) {
for(TravelOnBusinessApproval p : fyglTravelOnBusinessDTO){ for(TravelOnBusinessApproval p : fyglTravelOnBusinessDTO){
//设置状态为未通过 //如果是最终审批,那么项目整体审批状态为已通过
p.setApproveStatus(1); if(p.getIsEndApproval()){
expenseApprovalMapper.updatetravelOnBusinessStatusReject(p); p.setApproveStatus(3);
}
expenseApprovalMapper.updatetravelOnBusinessStatus(p);
} }
return 1; return 1;
} }
......
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
</update> </update>
<!-- 差旅报销审批-通过--> <!-- 差旅报销审批-通过-->
<update id="updatetravelOnBusinessStatusReject" parameterType="com.ruoyi.domain.TravelOnBusinessApproval"> <update id="updatetravelOnBusinessStatus" parameterType="com.ruoyi.domain.TravelOnBusinessApproval">
update fygl_travel_on_business update fygl_travel_on_business
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="approveStatus != null">status = #{approveStatus},</if> <if test="approveStatus != null">status = #{approveStatus},</if>
...@@ -136,4 +136,5 @@ ...@@ -136,4 +136,5 @@
where id = #{dailyReimburseId} where id = #{dailyReimburseId}
</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