UPDATE: VERSION-20260326
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
package com.solution.rule.domain;
|
||||
/*
|
||||
* This file is part of the kernelstudio package.
|
||||
*
|
||||
* (c) 2014-2026 zlin <admin@kernelstudio.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE file
|
||||
* that was distributed with this source code.
|
||||
*/
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class BasicPlatform implements Serializable {
|
||||
|
||||
|
||||
private Integer id;
|
||||
|
||||
private String name;
|
||||
|
||||
private String description;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -8,43 +8,12 @@ package com.solution.rule.domain;
|
||||
* that was distributed with this source code.
|
||||
*/
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class Platform implements Serializable {
|
||||
|
||||
private Integer id;
|
||||
|
||||
private String name;
|
||||
|
||||
private String description;
|
||||
public class Platform extends BasicPlatform {
|
||||
|
||||
private List<PlatformComponent> components;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public List<PlatformComponent> getComponents() {
|
||||
return components;
|
||||
}
|
||||
@@ -52,5 +21,4 @@ public class Platform implements Serializable {
|
||||
public void setComponents(List<PlatformComponent> components) {
|
||||
this.components = components;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.solution.rule.mapper;
|
||||
|
||||
import com.solution.rule.domain.BasicPlatform;
|
||||
import com.solution.rule.domain.Platform;
|
||||
import com.solution.rule.domain.PlatformComponent;
|
||||
import com.solution.rule.domain.vo.ComponentCountVO;
|
||||
@@ -44,4 +45,6 @@ public interface FireRuleMapper {
|
||||
List<Platform> findPlatformComponents(Integer scenarioId);
|
||||
|
||||
List<Platform> findAllPlatformComponents();
|
||||
|
||||
List<BasicPlatform> findAllBasicPlatformComponents();
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.solution.rule.service;
|
||||
|
||||
import com.solution.rule.domain.BasicPlatform;
|
||||
import com.solution.rule.domain.FireRuleExecuteDTO;
|
||||
import com.solution.rule.domain.Platform;
|
||||
import com.solution.rule.domain.PlatformComponent;
|
||||
@@ -47,4 +48,6 @@ public interface FireRuleService {
|
||||
List<Platform> findPlatformComponents(Integer scenarioId);
|
||||
|
||||
List<Platform> findAllPlatformComponents();
|
||||
|
||||
List<BasicPlatform> findAllBasicPlatformComponents();
|
||||
}
|
||||
|
||||
@@ -3,10 +3,7 @@ package com.solution.rule.service.impl;
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.solution.common.constant.ExceptionConstants;
|
||||
import com.solution.rule.domain.FireRuleExecuteDTO;
|
||||
import com.solution.rule.domain.Platform;
|
||||
import com.solution.rule.domain.PlatformComponent;
|
||||
import com.solution.rule.domain.RuleParam;
|
||||
import com.solution.rule.domain.*;
|
||||
import com.solution.rule.domain.dto.WeaponModelDTO;
|
||||
import com.solution.rule.domain.vo.ComponentCountVO;
|
||||
import com.solution.rule.domain.vo.PlatformComponentNamesVO;
|
||||
@@ -181,4 +178,9 @@ public class FireRuleServiceImpl implements FireRuleService {
|
||||
return ruleMapper.findAllPlatformComponents();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<BasicPlatform> findAllBasicPlatformComponents() {
|
||||
return ruleMapper.findAllBasicPlatformComponents();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -85,6 +85,16 @@
|
||||
WHERE platform_id=#{platformId}
|
||||
</select>
|
||||
|
||||
<resultMap id="VPBasicPlatformMap" type="com.solution.rule.domain.BasicPlatform">
|
||||
<result property="id" column="id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="description" column="description"/>
|
||||
</resultMap>
|
||||
<select id="findAllBasicPlatformComponents" resultMap="VPBasicPlatformMap">
|
||||
SELECT *
|
||||
FROM platform
|
||||
</select>
|
||||
|
||||
<resultMap id="VPlatformMap" type="com.solution.rule.domain.Platform">
|
||||
<result property="id" column="id"/>
|
||||
<result property="name" column="name"/>
|
||||
|
||||
Reference in New Issue
Block a user