| | |
| | | SELECT |
| | | t.*, |
| | | spu.real_name realName, |
| | | spu.user_type userTypeName |
| | | FROM t_integral_detail t |
| | | spu.user_type userTypeName, |
| | | DATE_FORMAT(t.createTime, '%Y-%m-%d %H:%m:%s') createDate |
| | | FROM t_integral_detail t |
| | | LEFT JOIN sys_plat_user spu on spu.user_id = t.userId |
| | | WHERE t.isUse = 1 and t.type = 2 and t.companyId = #{companyId} |
| | | <if test="userId != null and userId !=''"> |
| | |
| | | <select id="selectSafeIntegralInfo" resultType="com.thhy.secure.modules.biz.integralAccount.entity.IntegralDetailDto"> |
| | | SELECT |
| | | t.*, |
| | | DATE_FORMAT(t.createTime, '%Y-%m-%d') createDate |
| | | DATE_FORMAT(t.createTime, '%Y-%m-%d %H:%m:%s') createDate |
| | | FROM t_integral_detail t |
| | | WHERE t.isUse = 1 |
| | | <if test="companyId != null and companyId !=''"> |