Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dev_move
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
邓砥奕
dev_move
Commits
dc8b7f10
提交
dc8b7f10
authored
12月 27, 2020
作者:
133
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改了多数据源
上级
84545b06
显示空白字符变更
内嵌
并排
正在显示
37 个修改的文件
包含
56 行增加
和
75 行删除
+56
-75
BackupConfig.java
...n/java/com/example/removetolocal/config/BackupConfig.java
+9
-3
LocationConfig.java
...java/com/example/removetolocal/config/LocationConfig.java
+8
-3
DeviceLibraryDao.java
...example/removetolocal/newdevice/dao/DeviceLibraryDao.java
+0
-1
PackingLibrary.java
...example/removetolocal/newdevice/domin/PackingLibrary.java
+2
-0
AccessControlNameDao.java
...ple/removetolocal/newentity/dao/AccessControlNameDao.java
+1
-1
AllotBackBillDao.java
...example/removetolocal/newentity/dao/AllotBackBillDao.java
+1
-0
AllotBillDao.java
...com/example/removetolocal/newentity/dao/AllotBillDao.java
+1
-0
DeviceApplyBillDao.java
...ample/removetolocal/newentity/dao/DeviceApplyBillDao.java
+1
-0
DeviceCheckBillDao.java
...ample/removetolocal/newentity/dao/DeviceCheckBillDao.java
+1
-0
DeviceCheckDetailDao.java
...ple/removetolocal/newentity/dao/DeviceCheckDetailDao.java
+1
-0
DeviceCheckPeriodDao.java
...ple/removetolocal/newentity/dao/DeviceCheckPeriodDao.java
+1
-0
DeviceCheckStatDao.java
...ample/removetolocal/newentity/dao/DeviceCheckStatDao.java
+1
-0
DeviceDestroyBillDao.java
...ple/removetolocal/newentity/dao/DeviceDestroyBillDao.java
+1
-0
DeviceLibraryDao.java
...example/removetolocal/newentity/dao/DeviceLibraryDao.java
+0
-1
DeviceRetiredBillDao.java
...ple/removetolocal/newentity/dao/DeviceRetiredBillDao.java
+1
-0
DeviceUseReportDao.java
...ample/removetolocal/newentity/dao/DeviceUseReportDao.java
+1
-0
FinalDetailDao.java
...m/example/removetolocal/newentity/dao/FinalDetailDao.java
+1
-7
FinalReportDao.java
...m/example/removetolocal/newentity/dao/FinalReportDao.java
+1
-0
MatchingDeviceBillDao.java
...le/removetolocal/newentity/dao/MatchingDeviceBillDao.java
+1
-0
MatchingDeviceLibraryDao.java
...removetolocal/newentity/dao/MatchingDeviceLibraryDao.java
+1
-0
MatchingRepairBillDao.java
...le/removetolocal/newentity/dao/MatchingRepairBillDao.java
+1
-0
RepairBackBillDao.java
...xample/removetolocal/newentity/dao/RepairBackBillDao.java
+1
-0
RepairBillDao.java
...om/example/removetolocal/newentity/dao/RepairBillDao.java
+1
-0
RepairDetailDao.java
.../example/removetolocal/newentity/dao/RepairDetailDao.java
+1
-0
RepairSendBillDao.java
...xample/removetolocal/newentity/dao/RepairSendBillDao.java
+1
-0
RfidChangeBillDao.java
...xample/removetolocal/newentity/dao/RfidChangeBillDao.java
+1
-1
RfidChangeLogDao.java
...example/removetolocal/newentity/dao/RfidChangeLogDao.java
+2
-0
ScrapBillDao.java
...com/example/removetolocal/newentity/dao/ScrapBillDao.java
+1
-0
SelfCheckBillDao.java
...example/removetolocal/newentity/dao/SelfCheckBillDao.java
+1
-0
SendBackBillDao.java
.../example/removetolocal/newentity/dao/SendBackBillDao.java
+1
-0
SendBackBillDetailDao.java
...le/removetolocal/newentity/dao/SendBackBillDetailDao.java
+1
-0
TaskDao.java
...java/com/example/removetolocal/newentity/dao/TaskDao.java
+1
-52
TaskLogDao.java
...a/com/example/removetolocal/newentity/dao/TaskLogDao.java
+1
-0
WorkHandoverDao.java
.../example/removetolocal/newentity/dao/WorkHandoverDao.java
+1
-0
WorkHandoverDao.java
...m/example/removetolocal/newtrain/dao/WorkHandoverDao.java
+1
-0
TrainTheme.java
...com/example/removetolocal/newtrain/entity/TrainTheme.java
+2
-0
application.properties
src/main/resources/application.properties
+4
-6
没有找到文件。
src/main/java/com/example/removetolocal/config/BackupConfig.java
浏览文件 @
dc8b7f10
...
...
@@ -17,6 +17,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
import
javax.persistence.EntityManager
;
import
javax.sql.DataSource
;
import
java.util.HashMap
;
import
java.util.Map
;
/**
...
...
@@ -49,7 +50,7 @@ public class BackupConfig {
public
LocalContainerEntityManagerFactoryBean
entityManagerFactoryStms
(
EntityManagerFactoryBuilder
builder
)
{
return
builder
.
dataSource
(
remoteDataSource
)
.
properties
(
properties
.
determineHibernateProperties
(
jpaProperties
.
getProperties
(),
new
HibernateSettings
()
))
.
properties
(
getVendorProperties
(
))
.
packages
(
"com.example.removetolocal.newentity.entity"
)
.
persistenceUnit
(
"backupPersistenceUnit"
)
.
build
();
...
...
@@ -58,8 +59,13 @@ public class BackupConfig {
@Autowired
private
JpaProperties
jpaProperties
;
private
Map
<
String
,
String
>
getVendorProperties
(
DataSource
remoteDataSource
)
{
return
jpaProperties
.
getProperties
();
private
Map
<
String
,
Object
>
getVendorProperties
()
{
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"hibernate.dialect"
,
"org.hibernate.dialect.MySQL5Dialect"
);
// 设置对应的数据库方言
jpaProperties
.
setProperties
(
map
);
return
properties
.
determineHibernateProperties
(
jpaProperties
.
getProperties
(),
new
HibernateSettings
());
}
...
...
src/main/java/com/example/removetolocal/config/LocationConfig.java
浏览文件 @
dc8b7f10
...
...
@@ -19,6 +19,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
import
javax.persistence.EntityManager
;
import
javax.sql.DataSource
;
import
java.util.HashMap
;
import
java.util.Map
;
@SuppressWarnings
({
"SpringAutowiredFieldsWarningInspection"
,
"SpringComponentScan"
})
...
...
@@ -57,7 +58,7 @@ public class LocationConfig {
log
.
info
(
"本地数据源:"
+
locationDataSource
);
return
builder
.
dataSource
(
locationDataSource
)
.
properties
(
properties
.
determineHibernateProperties
(
jpaProperties
.
getProperties
(),
new
HibernateSettings
()
))
.
properties
(
getVendorProperties
(
))
.
packages
(
"com.example.removetolocal.newdevice.domin"
,
"com.example.removetolocal.newtrain.entity"
,
"com.example.removetolocal.newuser.domin"
,
...
...
@@ -72,8 +73,12 @@ public class LocationConfig {
@Autowired
private
JpaProperties
jpaProperties
;
private
Map
<
String
,
String
>
getVendorProperties
()
{
return
jpaProperties
.
getProperties
();
private
Map
<
String
,
Object
>
getVendorProperties
()
{
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"hibernate.dialect"
,
"org.hibernate.dialect.MySQL5Dialect"
);
// 设置对应的数据库方言
jpaProperties
.
setProperties
(
map
);
return
properties
.
determineHibernateProperties
(
jpaProperties
.
getProperties
(),
new
HibernateSettings
());
}
@Primary
...
...
src/main/java/com/example/removetolocal/newdevice/dao/DeviceLibraryDao.java
浏览文件 @
dc8b7f10
...
...
@@ -12,7 +12,6 @@ import java.util.List;
/**
* @author dengdiyi
*/
@SuppressWarnings
(
"SqlResolve"
)
public
interface
DeviceLibraryDao
extends
JpaRepository
<
DeviceLibrary
,
Integer
>,
JpaSpecificationExecutor
<
DeviceLibrary
>
{
DeviceLibrary
findByOldId
(
Integer
oldId
);
...
...
src/main/java/com/example/removetolocal/newdevice/domin/PackingLibrary.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newdevice
.
domin
;
import
com.example.removetolocal.config.BeanHelper
;
import
lombok.Data
;
import
org.hibernate.annotations.SQLDelete
;
import
org.hibernate.annotations.Where
;
import
org.modelmapper.ModelMapper
;
import
org.springframework.data.annotation.CreatedBy
;
import
org.springframework.data.annotation.CreatedDate
;
import
org.springframework.data.annotation.LastModifiedBy
;
...
...
src/main/java/com/example/removetolocal/newentity/dao/AccessControlNameDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.AccessControlName
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
...
...
@@ -7,5 +8,4 @@ import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
* @author dengdiyi
*/
public
interface
AccessControlNameDao
extends
JpaRepository
<
AccessControlName
,
Integer
>,
JpaSpecificationExecutor
<
AccessControlName
>
{
AccessControlName
findByDeviceNo
(
String
deviceNo
);
}
src/main/java/com/example/removetolocal/newentity/dao/AllotBackBillDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.AllotBackBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
...
...
src/main/java/com/example/removetolocal/newentity/dao/AllotBillDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.AllotBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
...
...
src/main/java/com/example/removetolocal/newentity/dao/DeviceApplyBillDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.DeviceApplyBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
...
...
src/main/java/com/example/removetolocal/newentity/dao/DeviceCheckBillDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.DeviceCheckBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
...
...
src/main/java/com/example/removetolocal/newentity/dao/DeviceCheckDetailDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.DeviceCheckDetail
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
import
org.springframework.data.jpa.repository.Modifying
;
...
...
src/main/java/com/example/removetolocal/newentity/dao/DeviceCheckPeriodDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.DeviceCheckPeriod
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
...
...
src/main/java/com/example/removetolocal/newentity/dao/DeviceCheckStatDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.DeviceCheckStat
;
import
org.springframework.data.jpa.repository.JpaRepository
;
/**
...
...
src/main/java/com/example/removetolocal/newentity/dao/DeviceDestroyBillDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.DeviceDestroyBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
...
...
src/main/java/com/example/removetolocal/newentity/dao/DeviceLibraryDao.java
浏览文件 @
dc8b7f10
...
...
@@ -12,7 +12,6 @@ import java.util.List;
/**
* @author dengdiyi
*/
@SuppressWarnings
(
"SqlResolve"
)
public
interface
DeviceLibraryDao
extends
JpaRepository
<
DeviceLibrary
,
Integer
>,
JpaSpecificationExecutor
<
DeviceLibrary
>
{
DeviceLibrary
findByOldId
(
Integer
oldId
);
...
...
src/main/java/com/example/removetolocal/newentity/dao/DeviceRetiredBillDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.DeviceRetiredBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
...
...
src/main/java/com/example/removetolocal/newentity/dao/DeviceUseReportDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.DeviceUseReport
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
...
...
src/main/java/com/example/removetolocal/newentity/dao/FinalDetailDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.FinalDetail
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
...
...
@@ -14,11 +15,4 @@ import java.util.Optional;
*/
public
interface
FinalDetailDao
extends
JpaRepository
<
FinalDetail
,
Integer
>,
JpaSpecificationExecutor
<
FinalDetail
>
{
/**
* 根据reportId获得报告详情列表
*
* @param reportId 报告概览id
* @return 报告详情列表
*/
Optional
<
List
<
FinalDetail
>>
findByReportId
(
Integer
reportId
);
}
src/main/java/com/example/removetolocal/newentity/dao/FinalReportDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.FinalReport
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
...
...
src/main/java/com/example/removetolocal/newentity/dao/MatchingDeviceBillDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.MatchingDeviceBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
...
...
src/main/java/com/example/removetolocal/newentity/dao/MatchingDeviceLibraryDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.MatchingDeviceLibrary
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
...
...
src/main/java/com/example/removetolocal/newentity/dao/MatchingRepairBillDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.MatchingRepairBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
...
...
src/main/java/com/example/removetolocal/newentity/dao/RepairBackBillDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.RepairBackBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
...
...
src/main/java/com/example/removetolocal/newentity/dao/RepairBillDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.RepairBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
...
...
src/main/java/com/example/removetolocal/newentity/dao/RepairDetailDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.RepairDetail
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
...
...
src/main/java/com/example/removetolocal/newentity/dao/RepairSendBillDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.RepairSendBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
...
...
src/main/java/com/example/removetolocal/newentity/dao/RfidChangeBillDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.RfidChangeBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* @author HuangXiahao
* @version V1.0
...
...
src/main/java/com/example/removetolocal/newentity/dao/RfidChangeLogDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.RfidChangeLog
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
...
...
src/main/java/com/example/removetolocal/newentity/dao/ScrapBillDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.ScrapBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
...
...
src/main/java/com/example/removetolocal/newentity/dao/SelfCheckBillDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.SelfCheckBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
...
...
src/main/java/com/example/removetolocal/newentity/dao/SendBackBillDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.SendBackBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
...
...
src/main/java/com/example/removetolocal/newentity/dao/SendBackBillDetailDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.SendBackBillDetail
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
...
...
src/main/java/com/example/removetolocal/newentity/dao/TaskDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.Task
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
import
org.springframework.data.jpa.repository.Query
;
...
...
@@ -12,56 +13,4 @@ import java.util.Optional;
*/
public
interface
TaskDao
extends
JpaRepository
<
Task
,
Integer
>,
JpaSpecificationExecutor
<
Task
>
{
/**
* @param billId 账单id
* @param businessType 业务类型
* 根据账单Id和业务类型查询task
*/
Optional
<
Task
>
findByBillIdAndBusinessType
(
Integer
billId
,
Integer
businessType
);
/**
* 根据账单id、业务类型、任务状态查询task
*
* @param billId 账单id
* @param businessType 业务类型
* @param billStatus 任务状态
*/
List
<
Task
>
findAllByBillIdAndBusinessTypeAndBillStatus
(
Integer
billId
,
Integer
businessType
,
Integer
billStatus
);
/**
* 根据账单id、业务类型、任务状态查询task
*
* @param billId 账单id
* @param businessType 业务类型
*/
List
<
Task
>
findAllByBillIdAndBusinessType
(
Integer
billId
,
Integer
businessType
);
/**
* 根据账单id、业务类型、以及父id为null
*
* @param billId 账单ID
* @param businessType 业务类型
*/
Task
findAllByParentTaskIdIsNullAndBillIdAndBusinessType
(
Integer
billId
,
Integer
businessType
);
List
<
Task
>
findAllByParentTaskId
(
Integer
parentTaskId
);
@Query
(
"select o.billId from Task o where o.id=?1"
)
Integer
findBillIdByTaskId
(
int
taskId
);
@Query
(
"select o.billId from Task o where o.id=?1 and o.businessType=?2"
)
Integer
findBillId
(
int
id
,
int
businessType
);
@Query
(
"select o.billId from Task o where o.parentTaskId = ?1 and o. businessType = ?2"
)
Integer
findBillIdByParentId
(
int
parentTaskId
,
int
businessType
);
List
<
Task
>
findTaskEntitiesByParentTaskId
(
Integer
parentTaskId
);
Task
findByBusinessTypeAndOwnUnitAndBillStatus
(
Integer
type
,
Integer
ownUnit
,
Integer
billStatus
);
Task
findByParentTaskIdAndAndTitle
(
Integer
parentId
,
String
title
);
List
<
Task
>
findAllByBusinessType
(
Integer
businessType
);
}
src/main/java/com/example/removetolocal/newentity/dao/TaskLogDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.TaskLog
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
...
...
src/main/java/com/example/removetolocal/newentity/dao/WorkHandoverDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.entity.WorkHandover
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
...
...
src/main/java/com/example/removetolocal/newtrain/dao/WorkHandoverDao.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newtrain
.
dao
;
import
com.example.removetolocal.newtrain.entity.WorkHandover
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
...
...
src/main/java/com/example/removetolocal/newtrain/entity/TrainTheme.java
浏览文件 @
dc8b7f10
package
com
.
example
.
removetolocal
.
newtrain
.
entity
;
import
com.example.removetolocal.config.BeanHelper
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
org.modelmapper.ModelMapper
;
import
javax.persistence.*
;
import
java.util.Date
;
...
...
src/main/resources/application.properties
浏览文件 @
dc8b7f10
spring.datasource.local.url
=
jdbc:mysql://localhost:3306/
old
2?serverTimezone=Asia/Shanghai&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=false
spring.datasource.local.url
=
jdbc:mysql://localhost:3306/
t
2?serverTimezone=Asia/Shanghai&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=false
spring.datasource.local.driver-class-name
=
com.mysql.cj.jdbc.Driver
spring.datasource.local.username
=
root
spring.datasource.local.password
=
root
#神通
spring.datasource.backup.url
=
jdbc:mysql://localhost:3306/
old2
?serverTimezone=Asia/Shanghai&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=false
spring.datasource.backup.url
=
jdbc:mysql://localhost:3306/
t1
?serverTimezone=Asia/Shanghai&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=false
spring.datasource.backup.driver-class-name
=
com.mysql.cj.jdbc.Driver
spring.datasource.backup.username
=
root
spring.datasource.backup.password
=
root
spring.datasource.url
=
jdbc:mysql://localhost:3306/old2?serverTimezone=Asia/Shanghai&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=false
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
spring.datasource.username
=
root
spring.datasource.password
=
root
spring.jpa.hibernate.ddl-auto
=
update
spring.jpa.show-sql
=
false
spring.jpa.open-in-view
=
true
spring.jpa.hibernate.naming.physical-strategy
=
org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
spring.main.allow-bean-definition-overriding
=
true
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论