| | |
| | | <result property="userTempAvatarUrl" column="user_temp_avatar_url" /> |
| | | <result property="userType" column="user_type" /> |
| | | <result property="companyId" column="company_id" /> |
| | | <result property="isSales" column="is_sales" /> |
| | | <result property="withdrawalCash" column="withdrawal_cash" /> |
| | | <result property="salesmanGrade" column="salesman_grade" /> |
| | | <result property="parentOpenId" column="parent_open_id" /> |
| | | </resultMap> |
| | | |
| | | |
| | |
| | | <result property="userTempAvatarUrl" column="user_temp_avatar_url" /> |
| | | <result property="userType" column="user_type" /> |
| | | <result property="companyId" column="company_id" /> |
| | | <result property="isSales" column="is_sales" /> |
| | | <result property="withdrawalCash" column="withdrawal_cash" /> |
| | | <result property="salesmanGrade" column="salesman_grade" /> |
| | | <result property="parentOpenId" column="parent_open_id" /> |
| | | </resultMap> |
| | | |
| | | <!-- 字段sql --> |
| | |
| | | user_temp_name, |
| | | user_temp_avatar_url, |
| | | user_type, |
| | | company_id |
| | | company_id, |
| | | is_sales, |
| | | withdrawal_cash, |
| | | salesman_grade, |
| | | parent_open_id |
| | | |
| | | </sql> |
| | | |
| | | <!-- 属性sql --> |
| | |
| | | #{item.userTempName}, |
| | | #{item.userTempAvatarUrl}, |
| | | #{item.userType}, |
| | | #{item.companyId} |
| | | #{item.companyId}, |
| | | #{item.isSales}, |
| | | #{item.withdrawalCash}, |
| | | #{item.salesmanGrade}, |
| | | #{item.parentOpenId} |
| | | |
| | | |
| | | </sql> |
| | | |
| | | <!-- where sql --> |
| | |
| | | <if test="record.companyId != null and record.companyId !='' "> |
| | | and company_id = #{record.companyId} |
| | | </if> |
| | | |
| | | <if test="record.isSales != null and record.isSales !='' "> |
| | | and is_sales = #{record.isSales} |
| | | </if> |
| | | |
| | | <if test="record.withdrawalCash != null and record.withdrawalCash !='' "> |
| | | and withdrawal_cash = #{record.withdrawalCash} |
| | | </if> |
| | | |
| | | <if test="record.salesmanGrade != null and record.salesmanGrade !='' "> |
| | | and salesman_grade = #{record.salesmanGrade} |
| | | </if> |
| | | <if test="record.parentOpenId != null and record.parentOpenId !='' "> |
| | | and parent_open_id = #{record.parentOpenId} |
| | | </if> |
| | | |
| | | <if test="(record.startTime!=null and record.startTime!='') or (record.startTime!='' and record.startTime==0) "> |
| | | and date_format(create_time,'%Y-%m-%d') >= #{record.startTime} |
| | | </if> |
| | |
| | | </if> |
| | | <if test="_parameter.containsKey('userTempAvatarUrl')"> |
| | | user_temp_avatar_url = #{userTempAvatarUrl}, |
| | | </if> |
| | | </if> |
| | | |
| | | |
| | | <if test="_parameter.containsKey('userType')"> |
| | | user_type = #{userType}, |
| | | </if> |
| | | </if> |
| | | |
| | | <if test="_parameter.containsKey('isSales')"> |
| | | is_sales = #{isSales}, |
| | | </if> |
| | | |
| | | <if test="_parameter.containsKey('withdrawalCash')"> |
| | | withdrawal_cash = #{withdrawalCash}, |
| | | </if> |
| | | <if test="_parameter.containsKey('salesmanGrade')"> |
| | | salesman_grade = #{salesmanGrade}, |
| | | </if> |
| | | <if test="_parameter.containsKey('parentOpenId')"> |
| | | parent_open_id = #{parentOpenId}, |
| | | </if> |
| | | |
| | | |
| | | |
| | | </set> |
| | | WHERE user_id=#{userId} |
| | | </update> |
| | |
| | | <if test="record.userType != null "> |
| | | user_type = #{record.userType}, |
| | | </if> |
| | | <if test="record.isSales != null "> |
| | | is_sales = #{record.isSales}, |
| | | </if> |
| | | <if test="record.withdrawalCash != null "> |
| | | withdrawal_cash = #{record.withdrawalCash}, |
| | | </if> |
| | | <if test="record.salesmanGrade != null "> |
| | | salesman_grade = #{record.salesmanGrade}, |
| | | </if> |
| | | <if test="record.parentOpenId != null "> |
| | | parent_open_id = #{record.parentOpenId}, |
| | | </if> |
| | | |
| | | </set> |
| | | WHERE user_id=#{record.userId} |
| | | </update> |