记得上下班打卡 | git大法好,push需谨慎

Commit 2c61def7 authored by 张国柄's avatar 张国柄

fix:会员兑换码生成时间记录;

parent 6b743bbd
...@@ -56,6 +56,7 @@ public class AdamMemberCodeVo implements Serializable, Cloneable { ...@@ -56,6 +56,7 @@ public class AdamMemberCodeVo implements Serializable, Cloneable {
} }
public AdamMemberCodeVo copy(AdamMemberCode source) { public AdamMemberCodeVo copy(AdamMemberCode source) {
if (null == source) return this;
this.setCode(source.getCode()); this.setCode(source.getCode());
this.setMemberId(source.getMemberId()); this.setMemberId(source.getMemberId());
this.setMemberPriceId(source.getMemberPriceId()); this.setMemberPriceId(source.getMemberPriceId());
......
...@@ -17,6 +17,8 @@ import org.springframework.data.mongodb.core.query.Query; ...@@ -17,6 +17,8 @@ import org.springframework.data.mongodb.core.query.Query;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
import java.time.LocalDateTime;
@Slf4j @Slf4j
@Service @Service
public class AdamMemberCodeAdminServiceImpl extends ServiceImpl<AdamMemberCodeMapper, AdamMemberCode> implements IAdamMemberCodeAdminService { public class AdamMemberCodeAdminServiceImpl extends ServiceImpl<AdamMemberCodeMapper, AdamMemberCode> implements IAdamMemberCodeAdminService {
...@@ -52,6 +54,7 @@ public class AdamMemberCodeAdminServiceImpl extends ServiceImpl<AdamMemberCodeMa ...@@ -52,6 +54,7 @@ public class AdamMemberCodeAdminServiceImpl extends ServiceImpl<AdamMemberCodeMa
initMemberCode.setMemberPriceId(param.getMemberPriceId()); initMemberCode.setMemberPriceId(param.getMemberPriceId());
initMemberCode.setMemberNo(memberNo); initMemberCode.setMemberNo(memberNo);
initMemberCode.setState(0);// 0-未使用,1-已使用,2-不可用 initMemberCode.setState(0);// 0-未使用,1-已使用,2-不可用
initMemberCode.setCreatedAt(LocalDateTime.now());
adamMemberCodeMapper.insert(initMemberCode); adamMemberCodeMapper.insert(initMemberCode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment