Commit 876a86f9 authored by qiyaxin's avatar qiyaxin

差旅报销审批-通过

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