-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
412 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
erha-admin-operation/src/main/java/fun/yizhierha/operation/domain/OraDeployServer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package fun.yizhierha.operation.domain; | ||
|
||
import com.baomidou.mybatisplus.annotation.TableField; | ||
import com.baomidou.mybatisplus.annotation.TableName; | ||
import fun.yizhierha.common.utils.file.ExcelExport; | ||
import io.swagger.annotations.ApiModel; | ||
import io.swagger.annotations.ApiModelProperty; | ||
import lombok.Data; | ||
|
||
import java.io.Serializable; | ||
|
||
@ApiModel(value = "应用管理") | ||
@Data | ||
@TableName(value = "ora_deploy_server") | ||
public class OraDeployServer implements Serializable { | ||
@TableField(value = "deploy_id") | ||
@ApiModelProperty(value = "部署ID") | ||
@ExcelExport("部署ID") | ||
private Long deployId; | ||
@TableField(value = "server_id") | ||
@ApiModelProperty(value = "服务ID") | ||
@ExcelExport("服务ID") | ||
private Long serverId; | ||
@TableField(value = "project_id") | ||
@ApiModelProperty(value = "项目ID") | ||
@ExcelExport("项目ID") | ||
private Long projectId; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
erha-admin-operation/src/main/java/fun/yizhierha/operation/mapper/OraDeployServerMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package fun.yizhierha.operation.mapper; | ||
|
||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
import fun.yizhierha.operation.domain.OraDeployServer; | ||
import org.apache.ibatis.annotations.Mapper; | ||
|
||
@Mapper | ||
public interface OraDeployServerMapper extends BaseMapper<OraDeployServer> { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...admin-operation/src/main/java/fun/yizhierha/operation/service/OraDeployServerService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package fun.yizhierha.operation.service; | ||
|
||
import com.baomidou.mybatisplus.extension.service.IService; | ||
import fun.yizhierha.operation.domain.OraDeployServer; | ||
|
||
import java.util.List; | ||
|
||
public interface OraDeployServerService extends IService<OraDeployServer> { | ||
boolean save(List<OraDeployServer> vo); | ||
|
||
void edit(List<OraDeployServer> editbeforvo, List<OraDeployServer> editaftervo); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...ration/src/main/java/fun/yizhierha/operation/service/impl/OraDeployServerServiceImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package fun.yizhierha.operation.service.impl; | ||
|
||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | ||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | ||
import fun.yizhierha.operation.domain.OraDeploy; | ||
import fun.yizhierha.operation.domain.OraDeployServer; | ||
import fun.yizhierha.operation.mapper.OraDeployServerMapper; | ||
import fun.yizhierha.operation.service.OraDeployServerService; | ||
import lombok.RequiredArgsConstructor; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.stereotype.Service; | ||
|
||
import java.util.List; | ||
|
||
@Slf4j | ||
@Service | ||
@RequiredArgsConstructor | ||
public class OraDeployServerServiceImpl extends ServiceImpl<OraDeployServerMapper, OraDeployServer> implements OraDeployServerService { | ||
@Override | ||
public boolean save(List<OraDeployServer> vo) { | ||
this.saveBatch(vo); | ||
return true; | ||
} | ||
|
||
@Override | ||
public void edit(List<OraDeployServer> editbeforvo, List<OraDeployServer> editaftervo) { | ||
this.removeBatchByIds(editbeforvo); | ||
this.saveBatch(editaftervo); | ||
} | ||
} |
Oops, something went wrong.