UPDATE: VERSION-20260331
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
package com.solution.system.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;
|
||||
|
||||
public class HbNodeCommand implements Serializable {
|
||||
|
||||
private Integer id;
|
||||
|
||||
private String command;
|
||||
|
||||
private String chineseName;
|
||||
|
||||
private String description;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getCommand() {
|
||||
return command;
|
||||
}
|
||||
|
||||
public void setCommand(String command) {
|
||||
this.command = command;
|
||||
}
|
||||
|
||||
public String getChineseName() {
|
||||
return chineseName;
|
||||
}
|
||||
|
||||
public void setChineseName(String chineseName) {
|
||||
this.chineseName = chineseName;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.solution.system.mapper;
|
||||
/*
|
||||
* 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 com.solution.system.domain.HbNodeCommand;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface HbNodeCommandMapper {
|
||||
|
||||
List<HbNodeCommand> findAll();
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.solution.system.service;
|
||||
/*
|
||||
* 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 com.solution.system.domain.HbNodeCommand;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface HbNodeCommandService {
|
||||
|
||||
List<HbNodeCommand> findAll();
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.solution.system.service.impl;
|
||||
/*
|
||||
* 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 com.solution.system.domain.HbNodeCommand;
|
||||
import com.solution.system.mapper.HbNodeCommandMapper;
|
||||
import com.solution.system.service.HbNodeCommandService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class HbNodeCommandServiceImpl implements HbNodeCommandService {
|
||||
|
||||
private final HbNodeCommandMapper hbNodeCommandMapper;
|
||||
|
||||
public HbNodeCommandServiceImpl(HbNodeCommandMapper hbNodeCommandMapper) {
|
||||
this.hbNodeCommandMapper = hbNodeCommandMapper;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<HbNodeCommand> findAll() {
|
||||
return hbNodeCommandMapper.findAll();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.solution.system.mapper.HbNodeCommandMapper">
|
||||
|
||||
<resultMap type="com.solution.system.domain.HbNodeCommand" id="HbNodeCommandMapperMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="command" column="command"/>
|
||||
<result property="description" column="description"/>
|
||||
<result property="chineseName" column="chinese_name"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="findAll" resultMap="HbNodeCommandMapperMap">
|
||||
select *
|
||||
from bh_node_command
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user