Commit 46420fcc authored by libin's avatar libin

钱包

parent 700bc693
...@@ -15,6 +15,7 @@ import org.springframework.transaction.annotation.Transactional; ...@@ -15,6 +15,7 @@ import org.springframework.transaction.annotation.Transactional;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.text.ParseException; import java.text.ParseException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.time.Instant;
import java.util.Date; import java.util.Date;
/** /**
...@@ -113,6 +114,8 @@ public class MyWaterBiz extends BaseBiz<MyWalletMapper, MyWallet>{ ...@@ -113,6 +114,8 @@ public class MyWaterBiz extends BaseBiz<MyWalletMapper, MyWallet>{
public int createWalletByUserId(Integer userId){ public int createWalletByUserId(Integer userId){
MyWallet myWallet = new MyWallet(); MyWallet myWallet = new MyWallet();
myWallet.setUserId(userId); myWallet.setUserId(userId);
myWallet.setCrtTime(Instant.now().toEpochMilli());
myWallet.setUpdTime(Instant.now().toEpochMilli());
return mapper.insertSelective(myWallet); return mapper.insertSelective(myWallet);
} }
} }
\ No newline at end of file
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