| | |
| | | |
| | | <mapper namespace="com.matrix.system.score.dao.ScoreUseRecordDao"> |
| | | |
| | | <select id="selectFlowList" resultType="com.matrix.system.score.entity.ScoreUseRecord"> |
| | | select * from score_use_record |
| | | where open_id=#{record.userId} |
| | | and DATE_FORMAT(create_time,'%Y-%m')=#{record.queryTime} |
| | | |
| | | <select id="selectFlowList" resultType="com.matrix.system.shopXcx.api.vo.ScoreUseRecordVo"> |
| | | |
| | | select a.*, |
| | | b.SHOP_NAME, |
| | | c.su_name as optionName |
| | | from score_use_record a |
| | | left join sys_shop_info b on a.shop_id=b.id |
| | | left join sys_users c on a.opration_user_id=c.su_id |
| | | where a.open_id=#{record.userId} |
| | | and DATE_FORMAT(a.create_time,'%Y-%m')=#{record.queryTime} |
| | | <if test="record.revenueType==1"> |
| | | and rec_num>0 |
| | | and a.rec_num>0 |
| | | </if> |
| | | <if test="record.revenueType==2"> |
| | | <![CDATA[ and rec_num<0 ]]> |
| | | <![CDATA[ and a.rec_num<0 ]]> |
| | | </if> |
| | | order by create_time desc |
| | | order by a.create_time desc |
| | | |
| | | </select> |
| | | |
| | | |
| | | |
| | | </mapper> |