Skip to content

Commit

Permalink
doc: rm clear foreign key and set default value for job type
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouYixun committed Feb 4, 2023
1 parent 901e71e commit f66c38a
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 97 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ public class Jobs implements Serializable, TypeConverter<Jobs, JobsDTO> {
private Integer suiteId;

@TableField
@Column(isNull = false, comment = "定时任务类型")
@Column(isNull = false, defaultValue = "testJob", comment = "定时任务类型")
private String type;
}
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,7 @@ public void updateSysScheduleJob(String type, String cron) {

public void createSysTrigger() {
for (String type : typeList) {
// 从数据库中获取数据,然后创建
Jobs job = jobsService.findByType(type);
// 首次部署,初始化系统定时任务
if (job == null) {
job = initSysJob(type);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,6 @@ public void testUpdate() {

agentsService.update(id, name, highTemp, highTempTime, robotType, robotToken, robotSecret);

agents.setId(1);
Mockito.when(agentsMapper.selectById(Mockito.any()))
.thenReturn(agents);
agentsService.update(1, name, highTemp, highTempTime, robotType, robotToken, robotSecret);

}


Expand Down

0 comments on commit f66c38a

Please sign in to comment.