|
|
@ -20,7 +20,9 @@ import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.util.Calendar; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.GregorianCalendar; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
/** |
|
|
@ -103,8 +105,10 @@ public class AuditServiceImpl implements AuditService { |
|
|
|
2.用户当前首充时间小于当前时间 |
|
|
|
3.用户当前首充时间等于2020-01-01 00:00:00 |
|
|
|
*/ |
|
|
|
if(oldFirstRecharge== null || oldFirstRecharge.after(date) || "2020-01-01 00:00:00".equals(oldFirstRecharge.toString())){ |
|
|
|
update.setFirstRecharge(date);//设置首充时间为当前时间 |
|
|
|
// 构造 2020-01-01 00:00:00 |
|
|
|
Date placeholder = new GregorianCalendar(2020, Calendar.JANUARY, 1, 0, 0).getTime(); |
|
|
|
if(oldFirstRecharge== null||oldFirstRecharge.after(date)||placeholder.equals(oldFirstRecharge)){ |
|
|
|
auditMapper.updateFirstRecharge(order.getJwcode());//设置首充时间为当前时间 |
|
|
|
} |
|
|
|
auditMapper.updateUserGold(update); |
|
|
|
//erp增加充值数据 |
|
|
|