WorkflowApproveRecordMapper.xml 1.7 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.xjrsoft.module.workflow.mapper.WorkflowApproveRecordMapper">
  6. <select id="myApproveRecord" resultType="com.xjrsoft.module.ledger.vo.WfSubscriptionPageVo">
  7. </select>
  8. <select id="getList" parameterType="com.xjrsoft.module.ledger.dto.WfSubscriptionPageDto" resultType="com.xjrsoft.module.ledger.vo.WfSubscriptionPageVo">
  9. select t1.id,t2.name as org_name,t3.name as user_name,t1.shen_qing_ri_qi4752, t1.folder_id,t1.number,t1.total_amount from wf_subscription t1
  10. left join xjr_department t2 on t1.application_department = t2.id
  11. left join xjr_user t3 on t1.user_id = t3.id
  12. where 1 = 1
  13. <if test="dto.orgId != null">
  14. and t1.id = #{dto.orgId}
  15. </if>
  16. <if test="dto.startDate != null and dto.startDate != '' and dto.endDate != null and dto.endDate != ''">
  17. and t1.shen_qing_ri_qi4752 between #{dto.startDate} and #{dto.endDate}
  18. </if>
  19. <if test="dto.userName != null and dto.userName != ''">
  20. and t3.name like concat('%', #{dto.userName}, '%')
  21. </if>
  22. order by t1.shen_qing_ri_qi4752 desc
  23. </select>
  24. <select id="getInfoById" resultType="com.xjrsoft.module.ledger.vo.WfSubscriptionListInfoVo">
  25. select t1.id,t2.name as org_name,t3.name as user_name,t1.shen_qing_ri_qi4752,t1.folder_id from wf_subscription t1
  26. left join xjr_department t2 on t1.application_department = t2.id
  27. left join xjr_user t3 on t1.user_id = t3.id
  28. where t1.id = #{id}
  29. </select>
  30. </mapper>