OrderPreparedStatementCreator:
package com.mmera.store.dao.util;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.Map;
import org.springframework.jdbc.core.PreparedStatementCreator;
public class OrderPreparedStatementCreator implements PreparedStatementCreator {
private static final String sql = "insert into store_order(orderSerial,orderZipCode,orderAddress,userId,orderReceiver,orderMessage,orderPhone,orderMobile,orderPayType,orderLogisticFee,orderTime) values(?,?,?,?,?,?,?,?,?,now())";
private Map order;
public OrderPreparedStatementCreator(Map order){
this.order = order;
}
public PreparedStatement createPreparedStatement(Connection connection) throws SQLException {
PreparedStatement ps = connection.prepareStatement(