| | |
| | | |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.math.RoundingMode; |
| | | import java.sql.Timestamp; |
| | | import java.time.LocalDateTime; |
| | | import java.time.ZoneId; |
| | |
| | | userPendingorder.setTargetPrice(preMarketPrice); |
| | | userPendingorder.setAddTime(new Date()); |
| | | userPendingorder.setStatus(0); |
| | | userPendingorder.setBuyAmt(buyAmt); |
| | | userPendingorder.setBuyAmt(preMarketPrice.multiply(new BigDecimal(buyNum)).setScale(2, RoundingMode.HALF_UP)); |
| | | int ret = userPendingorderMapper.insert(userPendingorder); |
| | | }else { |
| | | userPosition.setPositionType(user.getAccountType()); |