mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-18 17:38:48 +08:00
初始化项目
This commit is contained in:
parent
0809c0bee2
commit
6fcfcbd4a2
@ -54,7 +54,7 @@ public class VelocityUtils {
|
|||||||
VelocityContext velocityContext = new VelocityContext();
|
VelocityContext velocityContext = new VelocityContext();
|
||||||
velocityContext.put("tplCategory", genTable.getTplCategory());
|
velocityContext.put("tplCategory", genTable.getTplCategory());
|
||||||
velocityContext.put("tableName", genTable.getTableName());
|
velocityContext.put("tableName", genTable.getTableName());
|
||||||
velocityContext.put("functionName", StringUtils.isNotEmpty(functionName) ? functionName : "【请填写功能名称】");
|
velocityContext.put("functionName", StringUtils.isNotEmpty(functionName) ? functionName : "【家庭管理】");
|
||||||
velocityContext.put("ClassName", genTable.getClassName());
|
velocityContext.put("ClassName", genTable.getClassName());
|
||||||
velocityContext.put("className", StringUtils.uncapitalize(genTable.getClassName()));
|
velocityContext.put("className", StringUtils.uncapitalize(genTable.getClassName()));
|
||||||
velocityContext.put("moduleName", genTable.getModuleName());
|
velocityContext.put("moduleName", genTable.getModuleName());
|
||||||
|
|||||||
@ -23,7 +23,7 @@ import org.dromara.system.service.IEqFamilyService;
|
|||||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 【请填写功能名称】
|
* 【家庭管理】
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author Lion Li
|
||||||
* @date 2024-07-14
|
* @date 2024-07-14
|
||||||
@ -37,7 +37,7 @@ public class EqFamilyController extends BaseController {
|
|||||||
private final IEqFamilyService eqFamilyService;
|
private final IEqFamilyService eqFamilyService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询【请填写功能名称】列表
|
* 查询【家庭管理】列表
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:family:list")
|
@SaCheckPermission("system:family:list")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
@ -46,18 +46,18 @@ public class EqFamilyController extends BaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 导出【请填写功能名称】列表
|
* 导出【家庭管理】列表
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:family:export")
|
@SaCheckPermission("system:family:export")
|
||||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
|
@Log(title = "【家庭管理】", businessType = BusinessType.EXPORT)
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(EqFamilyBo bo, HttpServletResponse response) {
|
public void export(EqFamilyBo bo, HttpServletResponse response) {
|
||||||
List<EqFamilyVo> list = eqFamilyService.queryList(bo);
|
List<EqFamilyVo> list = eqFamilyService.queryList(bo);
|
||||||
ExcelUtil.exportExcel(list, "【请填写功能名称】", EqFamilyVo.class, response);
|
ExcelUtil.exportExcel(list, "【家庭管理】", EqFamilyVo.class, response);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取【请填写功能名称】详细信息
|
* 获取【家庭管理】详细信息
|
||||||
*
|
*
|
||||||
* @param familyId 主键
|
* @param familyId 主键
|
||||||
*/
|
*/
|
||||||
@ -69,10 +69,10 @@ public class EqFamilyController extends BaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增【请填写功能名称】
|
* 新增【家庭管理】
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:family:add")
|
@SaCheckPermission("system:family:add")
|
||||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
|
@Log(title = "【家庭管理】", businessType = BusinessType.INSERT)
|
||||||
@RepeatSubmit()
|
@RepeatSubmit()
|
||||||
@PostMapping()
|
@PostMapping()
|
||||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody EqFamilyBo bo) {
|
public R<Void> add(@Validated(AddGroup.class) @RequestBody EqFamilyBo bo) {
|
||||||
@ -80,10 +80,10 @@ public class EqFamilyController extends BaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改【请填写功能名称】
|
* 修改【家庭管理】
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:family:edit")
|
@SaCheckPermission("system:family:edit")
|
||||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
|
@Log(title = "【家庭管理】", businessType = BusinessType.UPDATE)
|
||||||
@RepeatSubmit()
|
@RepeatSubmit()
|
||||||
@PutMapping()
|
@PutMapping()
|
||||||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody EqFamilyBo bo) {
|
public R<Void> edit(@Validated(EditGroup.class) @RequestBody EqFamilyBo bo) {
|
||||||
@ -91,12 +91,12 @@ public class EqFamilyController extends BaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除【请填写功能名称】
|
* 删除【家庭管理】
|
||||||
*
|
*
|
||||||
* @param familyIds 主键串
|
* @param familyIds 主键串
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:family:remove")
|
@SaCheckPermission("system:family:remove")
|
||||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
|
@Log(title = "【家庭管理】", businessType = BusinessType.DELETE)
|
||||||
@DeleteMapping("/{familyIds}")
|
@DeleteMapping("/{familyIds}")
|
||||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||||
@PathVariable Long[] familyIds) {
|
@PathVariable Long[] familyIds) {
|
||||||
|
|||||||
@ -37,5 +37,10 @@ public class EqAreaEquipment extends BaseEntity {
|
|||||||
*/
|
*/
|
||||||
private Long equipmentId;
|
private Long equipmentId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 排序
|
||||||
|
*/
|
||||||
|
private Integer sort;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import lombok.EqualsAndHashCode;
|
|||||||
import java.io.Serial;
|
import java.io.Serial;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 【请填写功能名称】对象 eq_family
|
* 【家庭管理】对象 eq_family
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author Lion Li
|
||||||
* @date 2024-07-14
|
* @date 2024-07-14
|
||||||
|
|||||||
@ -38,5 +38,8 @@ public class EqAreaEquipmentBo extends BaseEntity {
|
|||||||
@NotNull(message = "设备ID不能为空", groups = { AddGroup.class, EditGroup.class })
|
@NotNull(message = "设备ID不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||||
private Long equipmentId;
|
private Long equipmentId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 排序
|
||||||
|
*/
|
||||||
|
private Integer sort;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import lombok.EqualsAndHashCode;
|
|||||||
import jakarta.validation.constraints.*;
|
import jakarta.validation.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 【请填写功能名称】业务对象 eq_family
|
* 【家庭管理】业务对象 eq_family
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author Lion Li
|
||||||
* @date 2024-07-14
|
* @date 2024-07-14
|
||||||
|
|||||||
@ -46,5 +46,9 @@ public class EqAreaEquipmentVo implements Serializable {
|
|||||||
@ExcelProperty(value = "设备ID")
|
@ExcelProperty(value = "设备ID")
|
||||||
private Long equipmentId;
|
private Long equipmentId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 排序
|
||||||
|
*/
|
||||||
|
private Integer sort;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,7 +15,7 @@ import java.util.Date;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 【请填写功能名称】视图对象 eq_family
|
* 【家庭管理】视图对象 eq_family
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author Lion Li
|
||||||
* @date 2024-07-14
|
* @date 2024-07-14
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import org.dromara.system.domain.vo.EqFamilyVo;
|
|||||||
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
|
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 【请填写功能名称】Mapper接口
|
* 【家庭管理】Mapper接口
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author Lion Li
|
||||||
* @date 2024-07-14
|
* @date 2024-07-14
|
||||||
|
|||||||
@ -9,7 +9,7 @@ import java.util.Collection;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 【请填写功能名称】Service接口
|
* 【家庭管理】Service接口
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author Lion Li
|
||||||
* @date 2024-07-14
|
* @date 2024-07-14
|
||||||
@ -17,48 +17,48 @@ import java.util.List;
|
|||||||
public interface IEqFamilyService {
|
public interface IEqFamilyService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询【请填写功能名称】
|
* 查询【家庭管理】
|
||||||
*
|
*
|
||||||
* @param familyId 主键
|
* @param familyId 主键
|
||||||
* @return 【请填写功能名称】
|
* @return 【家庭管理】
|
||||||
*/
|
*/
|
||||||
EqFamilyVo queryById(Long familyId);
|
EqFamilyVo queryById(Long familyId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分页查询【请填写功能名称】列表
|
* 分页查询【家庭管理】列表
|
||||||
*
|
*
|
||||||
* @param bo 查询条件
|
* @param bo 查询条件
|
||||||
* @param pageQuery 分页参数
|
* @param pageQuery 分页参数
|
||||||
* @return 【请填写功能名称】分页列表
|
* @return 【家庭管理】分页列表
|
||||||
*/
|
*/
|
||||||
TableDataInfo<EqFamilyVo> queryPageList(EqFamilyBo bo, PageQuery pageQuery);
|
TableDataInfo<EqFamilyVo> queryPageList(EqFamilyBo bo, PageQuery pageQuery);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询符合条件的【请填写功能名称】列表
|
* 查询符合条件的【家庭管理】列表
|
||||||
*
|
*
|
||||||
* @param bo 查询条件
|
* @param bo 查询条件
|
||||||
* @return 【请填写功能名称】列表
|
* @return 【家庭管理】列表
|
||||||
*/
|
*/
|
||||||
List<EqFamilyVo> queryList(EqFamilyBo bo);
|
List<EqFamilyVo> queryList(EqFamilyBo bo);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增【请填写功能名称】
|
* 新增【家庭管理】
|
||||||
*
|
*
|
||||||
* @param bo 【请填写功能名称】
|
* @param bo 【家庭管理】
|
||||||
* @return 是否新增成功
|
* @return 是否新增成功
|
||||||
*/
|
*/
|
||||||
Boolean insertByBo(EqFamilyBo bo);
|
Boolean insertByBo(EqFamilyBo bo);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改【请填写功能名称】
|
* 修改【家庭管理】
|
||||||
*
|
*
|
||||||
* @param bo 【请填写功能名称】
|
* @param bo 【家庭管理】
|
||||||
* @return 是否修改成功
|
* @return 是否修改成功
|
||||||
*/
|
*/
|
||||||
Boolean updateByBo(EqFamilyBo bo);
|
Boolean updateByBo(EqFamilyBo bo);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 校验并批量删除【请填写功能名称】信息
|
* 校验并批量删除【家庭管理】信息
|
||||||
*
|
*
|
||||||
* @param ids 待删除的主键集合
|
* @param ids 待删除的主键集合
|
||||||
* @param isValid 是否进行有效性校验
|
* @param isValid 是否进行有效性校验
|
||||||
|
|||||||
@ -20,7 +20,7 @@ import java.util.Map;
|
|||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 【请填写功能名称】Service业务层处理
|
* 【家庭管理】Service业务层处理
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author Lion Li
|
||||||
* @date 2024-07-14
|
* @date 2024-07-14
|
||||||
@ -32,10 +32,10 @@ public class EqFamilyServiceImpl implements IEqFamilyService {
|
|||||||
private final EqFamilyMapper baseMapper;
|
private final EqFamilyMapper baseMapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询【请填写功能名称】
|
* 查询【家庭管理】
|
||||||
*
|
*
|
||||||
* @param familyId 主键
|
* @param familyId 主键
|
||||||
* @return 【请填写功能名称】
|
* @return 【家庭管理】
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public EqFamilyVo queryById(Long familyId){
|
public EqFamilyVo queryById(Long familyId){
|
||||||
@ -43,11 +43,11 @@ public class EqFamilyServiceImpl implements IEqFamilyService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分页查询【请填写功能名称】列表
|
* 分页查询【家庭管理】列表
|
||||||
*
|
*
|
||||||
* @param bo 查询条件
|
* @param bo 查询条件
|
||||||
* @param pageQuery 分页参数
|
* @param pageQuery 分页参数
|
||||||
* @return 【请填写功能名称】分页列表
|
* @return 【家庭管理】分页列表
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public TableDataInfo<EqFamilyVo> queryPageList(EqFamilyBo bo, PageQuery pageQuery) {
|
public TableDataInfo<EqFamilyVo> queryPageList(EqFamilyBo bo, PageQuery pageQuery) {
|
||||||
@ -57,10 +57,10 @@ public class EqFamilyServiceImpl implements IEqFamilyService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询符合条件的【请填写功能名称】列表
|
* 查询符合条件的【家庭管理】列表
|
||||||
*
|
*
|
||||||
* @param bo 查询条件
|
* @param bo 查询条件
|
||||||
* @return 【请填写功能名称】列表
|
* @return 【家庭管理】列表
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<EqFamilyVo> queryList(EqFamilyBo bo) {
|
public List<EqFamilyVo> queryList(EqFamilyBo bo) {
|
||||||
@ -77,9 +77,9 @@ public class EqFamilyServiceImpl implements IEqFamilyService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增【请填写功能名称】
|
* 新增【家庭管理】
|
||||||
*
|
*
|
||||||
* @param bo 【请填写功能名称】
|
* @param bo 【家庭管理】
|
||||||
* @return 是否新增成功
|
* @return 是否新增成功
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@ -94,9 +94,9 @@ public class EqFamilyServiceImpl implements IEqFamilyService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改【请填写功能名称】
|
* 修改【家庭管理】
|
||||||
*
|
*
|
||||||
* @param bo 【请填写功能名称】
|
* @param bo 【家庭管理】
|
||||||
* @return 是否修改成功
|
* @return 是否修改成功
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@ -114,7 +114,7 @@ public class EqFamilyServiceImpl implements IEqFamilyService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 校验并批量删除【请填写功能名称】信息
|
* 校验并批量删除【家庭管理】信息
|
||||||
*
|
*
|
||||||
* @param ids 待删除的主键集合
|
* @param ids 待删除的主键集合
|
||||||
* @param isValid 是否进行有效性校验
|
* @param isValid 是否进行有效性校验
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user