feat(CuMemberBonusDelay): 日期格式化

This commit is contained in:
appleyou 2025-04-17 16:34:34 +08:00 committed by cabbage
parent 22278410bc
commit 545735f451
2 changed files with 4 additions and 2 deletions

View File

@ -79,14 +79,14 @@
left join cu_member_settle_period cmsp
on cmsp.pk_id = cmbd.period
where cmbd.del_flag = 0
<if test="param.memberCode != null and param != ''">
<if test="param.memberCode != null and param.memberCode != ''">
and cm.member_code like #{param.memberCode} || '%'
</if>
<if test="param.startDate != null">
and cmsp.settle_date >= #{param.startDate}
</if>
<if test="param.endDate != null">
and param.endDate >= cmsp.settle_date
and #{param.endDate} >= cmsp.settle_date
</if>
order by cmbd.period desc
</select>

View File

@ -1,5 +1,6 @@
package com.hzs.common.domain.member.bonus.ext;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hzs.common.domain.member.bonus.CuMemberBonusDelay;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ -29,6 +30,7 @@ public class CuMemberBonusDelayExt extends CuMemberBonusDelay {
/**
* 结算日期
*/
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date settleDate;
}