派生自 projectDept/qhighschool

yn147
2023-11-23 bccada7cbf7eea3c37c0243d95426d1a29d9121f
1
2
3
4
5
6
7
8
9
10
11
12
13
package com.qxueyou.scc.base.handler;
 
import org.hibernate.dialect.MySQLDialect;
import org.hibernate.dialect.function.SQLFunctionTemplate;
import org.hibernate.type.LongType;
 
public class QxueyouMysqlDialect extends MySQLDialect {
    
    public QxueyouMysqlDialect(){
        super();
        registerFunction("distance", new SQLFunctionTemplate(new LongType(), "F_DISTANCE(?1,?2,?3,?4)"));
    }
}