ApplyPaymentSettleExtendMapper.java 1.8 KB

1234567891011121314151617181920212223242526
  1. package com.idea.oa.apply.mapper;
  2. import com.idea.oa.apply.model.inout.ApplyAddWorkIn;
  3. import com.idea.oa.apply.model.inout.ApplyPaymentSettleIn;
  4. import org.apache.ibatis.annotations.Param;
  5. import org.apache.ibatis.annotations.Select;
  6. import org.springframework.stereotype.Component;
  7. import java.util.Map;
  8. @Component
  9. public interface ApplyPaymentSettleExtendMapper {
  10. @Select("SELECT flow_main_push.id AS flowMainPushId,frame_user.truename AS createdByString,flow_main_push.flow_main_id AS flowMainId,apply_payment_settle.*FROM flow_main_push LEFT JOIN apply_payment_settle ON apply_payment_settle.id=flow_main_push.form_id LEFT JOIN frame_user ON frame_user.id=apply_payment_settle.created_by WHERE flow_main_push.id=#{flowMainPushId}")
  11. ApplyPaymentSettleIn getInfoByFlowMainPushId(String flowMainPushId);
  12. @Select("SELECT flow_main.id AS flowMainId,frame_user.truename AS createdByString,apply_payment_settle.*FROM flow_main LEFT JOIN apply_payment_settle ON apply_payment_settle.id=flow_main.form_id LEFT JOIN frame_user ON frame_user.id=apply_payment_settle.created_by WHERE flow_main.id=#{flowMainId}")
  13. ApplyPaymentSettleIn getInfoByFlowMainId(String flowMainId);
  14. // frame_user.posts,frame_post.post_name,frame_user.id,frame_user.truename,frame_user.department,sys_dept.dept_name as deptName
  15. @Select("SELECT frame_user.posts,frame_post.post_name as postName,frame_user.id,frame_user.truename,frame_user.department,sys_dept.dept_name as deptName FROM frame_user LEFT JOIN sys_dept ON sys_dept.id=frame_user.department LEFT JOIN frame_post ON frame_post.id=frame_user.posts WHERE frame_user.id=#{userId}")
  16. Map<String, Object> getUserInfoByUserId(@Param("userId") String userId);
  17. @Select("SELECT MAX(title) as maxnum FROM apply_payment_settle")
  18. String selectMaxNum();
  19. }