|
|
@ -1,15 +1,10 @@ |
|
|
|
package demo.weiyichi.controller; |
|
|
|
package demo.weiyichi.controller; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import demo.weiyichi.model.AccountTab; |
|
|
|
|
|
|
|
import demo.weiyichi.model.ApiResponse; |
|
|
|
|
|
|
|
import demo.weiyichi.model.RecordTable; |
|
|
|
import demo.weiyichi.model.RecordTable; |
|
|
|
import demo.weiyichi.model.WithdrawMoneyDTO; |
|
|
|
|
|
|
|
import demo.weiyichi.model.TransferDTO; |
|
|
|
import demo.weiyichi.model.TransferDTO; |
|
|
|
import demo.weiyichi.model.QueryDTO; |
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.dao.EmptyResultDataAccessException; |
|
|
|
import org.springframework.dao.EmptyResultDataAccessException; |
|
|
|
import org.springframework.http.HttpStatus; |
|
|
|
|
|
|
|
import org.springframework.http.ResponseEntity; |
|
|
|
import org.springframework.http.ResponseEntity; |
|
|
|
import org.springframework.jdbc.core.JdbcTemplate; |
|
|
|
import org.springframework.jdbc.core.JdbcTemplate; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
@ -22,11 +17,10 @@ import java.time.format.DateTimeFormatter; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.Map; |
|
|
|
import java.math.BigDecimal; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RestController |
|
|
|
@RestController |
|
|
|
@RequestMapping("/weiyichi") |
|
|
|
@RequestMapping("/weiyichi") |
|
|
|
public class transferAccount { |
|
|
|
public class TranferAccount { |
|
|
|
@Autowired |
|
|
|
@Autowired |
|
|
|
private JdbcTemplate jdbcTemplate; |
|
|
|
private JdbcTemplate jdbcTemplate; |
|
|
|
private Boolean verifyAccountPassword(String cardNo, String password) { |
|
|
|
private Boolean verifyAccountPassword(String cardNo, String password) { |