添加model_path

This commit is contained in:
wanxiaoli 2026-01-20 16:02:10 +08:00
parent 09a05c70c1
commit aca12f1534
2 changed files with 26 additions and 2 deletions

View File

@ -8,16 +8,17 @@ spring:
driverClassName: com.mysql.cj.jdbc.Driver driverClassName: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://43.138.168.68:3306/businessdb_css?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true url: jdbc:mysql://43.138.168.68:3306/businessdb_css?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true
username: root username: root
password: ylfw20230626@ password: q3eef875%&4@44%*3
slave: slave:
driverClassName: com.mysql.cj.jdbc.Driver driverClassName: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://43.138.168.68:3306/businessdb_css?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true url: jdbc:mysql://43.138.168.68:3306/businessdb_css?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true
username: root username: root
password: ylfw20230626@ password: q3eef875%&4@44%*3
file-space: file-space:
files: D:\css\files\ files: D:\css\files\
system: D:\css\system\ system: D:\css\system\
model-path: E:\python_coding\keffCenter\models\
security: security:
dev: dev:
permit: true permit: true

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yfd.business.css.mapper.EventMapper">
<select id="selectByScenarioId"
parameterType="string"
resultType="com.yfd.business.css.domain.Event">
SELECT
event_id,
scenario_id,
device_id,
material_id,
attr_changes,
trigger_time,
'' as label
FROM event
WHERE scenario_id = #{scenarioId}
</select>
</mapper>