UPDATE: VERSION-20260326

This commit is contained in:
libertyspy
2026-03-26 23:36:47 +08:00
parent 6656479327
commit 8958ecd6dc
13 changed files with 315 additions and 91 deletions

View File

@@ -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;
}
}

View File

@@ -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;
}
}

View File

@@ -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();
}

View File

@@ -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();
}

View File

@@ -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();
}
}

View File

@@ -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"/>