|  |  |  | 
|---|
|  |  |  | 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> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="selectListByActIdAndUserIdLikesignTime" resultType="com.matrix.system.activity.entity.ActivitySignRecord"> | 
|---|
|  |  |  | SELECT | 
|---|
|  |  |  | * | 
|---|
|  |  |  | FROM | 
|---|
|  |  |  | activity_sign_record a | 
|---|
|  |  |  | where | 
|---|
|  |  |  | a.activity_id = #{actId} | 
|---|
|  |  |  | and a.user_id = #{userId} | 
|---|
|  |  |  | and a.sign_time like concat('%',DATE(#{format}),'%') | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </mapper> | 
|---|