| | |
| | | FROM |
| | | activity_sign_record a |
| | | where |
| | | a.actId = #{actId} |
| | | and a.open_id = #{userId} |
| | | and a.sign_time like concat('%',#{format},'%') |
| | | a.activity_id = #{actId} |
| | | and a.user_id = #{userId} |
| | | and a.sign_time like concat('%',DATE(#{format}),'%') |
| | | </select> |
| | | |
| | | <select id="selectRecordByMonth" resultType="com.matrix.system.shopXcx.api.vo.ActivitySignRecordVo"> |
| | | SELECT |
| | | * |
| | | FROM |
| | | activity_sign_record a |
| | | where a.sign_time like concat('%',DATE_FORMAT(#{date},'%Y-%m'),'%') |
| | | and a.activity_id = #{actId} |
| | | and a.user_id = #{userId} |
| | | </select> |
| | | |
| | | </mapper> |