New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.matrix.system.fenxiao.dao.ShopSalesmanGradeDao"> |
| | | <!-- 定义ShopSalesmanGrade 的复杂关联map --> |
| | | <resultMap type="com.matrix.system.fenxiao.entity.ShopSalesmanGrade" id="ShopSalesmanGradeMap"> |
| | | <id property="id" column="id" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="name" column="name" /> |
| | | <result property="sealesCommission" column="seales_commission" /> |
| | | <result property="invitationCommission" column="invitation_commission" /> |
| | | <result property="gradeCondition" column="grade_condition" /> |
| | | <result property="isDefault" column="is_default" /> |
| | | <result property="companyId" column="company_id" /> |
| | | </resultMap> |
| | | |
| | | |
| | | <!-- 定义ShopSalesmanGrade 的简单map ,本map不添加其他的关联属性 --> |
| | | <resultMap type="com.matrix.system.fenxiao.entity.ShopSalesmanGrade" id="ShopSalesmanGradeSimpleMap"> |
| | | <id property="id" column="id" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="name" column="name" /> |
| | | <result property="sealesCommission" column="seales_commission" /> |
| | | <result property="invitationCommission" column="invitation_commission" /> |
| | | <result property="gradeCondition" column="grade_condition" /> |
| | | <result property="isDefault" column="is_default" /> |
| | | <result property="companyId" column="company_id" /> |
| | | </resultMap> |
| | | |
| | | |
| | | <select id="getShopSalesmanGradeVo" resultType="com.matrix.system.fenxiao.vo.ShopSalesmanGradeVo"> |
| | | SELECT |
| | | a.id, |
| | | a.name |
| | | FROM |
| | | shop_salesman_grade a |
| | | where |
| | | a.company_id = #{companyId} |
| | | </select> |
| | | |
| | | <select id="findFyfaManageList" resultType="com.matrix.system.fenxiao.vo.FyfaManageVo"> |
| | | SELECT |
| | | a.id id, |
| | | a.name name, |
| | | a.self_commission selfCommission, |
| | | a.seales_commission sealesCommission, |
| | | a.invitation_commission invitationCommission, |
| | | a.grade_condition gradeCondition, |
| | | a.is_default isDefault |
| | | FROM |
| | | shop_salesman_grade a |
| | | <where> |
| | | a.company_id = #{record.companyId} |
| | | </where> |
| | | <if test="record.sort !=null"> |
| | | order by |
| | | a.${record.sort} ${record.order} |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |