code: public static java.sql.Timestamp convertSqlDate(Date dt) {
          if (dt == null) {
              return new java.sql.Timestamp(0);
          }
          return new java.sql.Timestamp(dt.getTime());
      }
docs: 将java.util.Date类型的对象转换为java.sql.Timestamp类型的对象
  
  @param dt Date
  
  @return Timestamp