初始化项目

This commit is contained in:
zzc 2024-07-16 00:22:10 +08:00
parent 0809c0bee2
commit 6fcfcbd4a2
11 changed files with 54 additions and 42 deletions

View File

@ -54,7 +54,7 @@ public class VelocityUtils {
VelocityContext velocityContext = new VelocityContext();
velocityContext.put("tplCategory", genTable.getTplCategory());
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", StringUtils.uncapitalize(genTable.getClassName()));
velocityContext.put("moduleName", genTable.getModuleName());

View File

@ -23,7 +23,7 @@ import org.dromara.system.service.IEqFamilyService;
import org.dromara.common.mybatis.core.page.TableDataInfo;
/**
* 请填写功能名称
* 家庭管理
*
* @author Lion Li
* @date 2024-07-14
@ -37,7 +37,7 @@ public class EqFamilyController extends BaseController {
private final IEqFamilyService eqFamilyService;
/**
* 查询请填写功能名称列表
* 查询家庭管理列表
*/
@SaCheckPermission("system:family:list")
@GetMapping("/list")
@ -46,18 +46,18 @@ public class EqFamilyController extends BaseController {
}
/**
* 导出请填写功能名称列表
* 导出家庭管理列表
*/
@SaCheckPermission("system:family:export")
@Log(title = "请填写功能名称", businessType = BusinessType.EXPORT)
@Log(title = "家庭管理", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(EqFamilyBo bo, HttpServletResponse response) {
List<EqFamilyVo> list = eqFamilyService.queryList(bo);
ExcelUtil.exportExcel(list, "请填写功能名称", EqFamilyVo.class, response);
ExcelUtil.exportExcel(list, "家庭管理", EqFamilyVo.class, response);
}
/**
* 获取请填写功能名称详细信息
* 获取家庭管理详细信息
*
* @param familyId 主键
*/
@ -69,10 +69,10 @@ public class EqFamilyController extends BaseController {
}
/**
* 新增请填写功能名称
* 新增家庭管理
*/
@SaCheckPermission("system:family:add")
@Log(title = "请填写功能名称", businessType = BusinessType.INSERT)
@Log(title = "家庭管理", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping()
public R<Void> add(@Validated(AddGroup.class) @RequestBody EqFamilyBo bo) {
@ -80,10 +80,10 @@ public class EqFamilyController extends BaseController {
}
/**
* 修改请填写功能名称
* 修改家庭管理
*/
@SaCheckPermission("system:family:edit")
@Log(title = "请填写功能名称", businessType = BusinessType.UPDATE)
@Log(title = "家庭管理", businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping()
public R<Void> edit(@Validated(EditGroup.class) @RequestBody EqFamilyBo bo) {
@ -91,12 +91,12 @@ public class EqFamilyController extends BaseController {
}
/**
* 删除请填写功能名称
* 删除家庭管理
*
* @param familyIds 主键串
*/
@SaCheckPermission("system:family:remove")
@Log(title = "请填写功能名称", businessType = BusinessType.DELETE)
@Log(title = "家庭管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{familyIds}")
public R<Void> remove(@NotEmpty(message = "主键不能为空")
@PathVariable Long[] familyIds) {

View File

@ -37,5 +37,10 @@ public class EqAreaEquipment extends BaseEntity {
*/
private Long equipmentId;
/**
* 排序
*/
private Integer sort;
}

View File

@ -8,7 +8,7 @@ import lombok.EqualsAndHashCode;
import java.io.Serial;
/**
* 请填写功能名称对象 eq_family
* 家庭管理对象 eq_family
*
* @author Lion Li
* @date 2024-07-14

View File

@ -38,5 +38,8 @@ public class EqAreaEquipmentBo extends BaseEntity {
@NotNull(message = "设备ID不能为空", groups = { AddGroup.class, EditGroup.class })
private Long equipmentId;
/**
* 排序
*/
private Integer sort;
}

View File

@ -10,7 +10,7 @@ import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
/**
* 请填写功能名称业务对象 eq_family
* 家庭管理业务对象 eq_family
*
* @author Lion Li
* @date 2024-07-14

View File

@ -46,5 +46,9 @@ public class EqAreaEquipmentVo implements Serializable {
@ExcelProperty(value = "设备ID")
private Long equipmentId;
/**
* 排序
*/
private Integer sort;
}

View File

@ -15,7 +15,7 @@ import java.util.Date;
/**
* 请填写功能名称视图对象 eq_family
* 家庭管理视图对象 eq_family
*
* @author Lion Li
* @date 2024-07-14

View File

@ -5,7 +5,7 @@ import org.dromara.system.domain.vo.EqFamilyVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
/**
* 请填写功能名称Mapper接口
* 家庭管理Mapper接口
*
* @author Lion Li
* @date 2024-07-14

View File

@ -9,7 +9,7 @@ import java.util.Collection;
import java.util.List;
/**
* 请填写功能名称Service接口
* 家庭管理Service接口
*
* @author Lion Li
* @date 2024-07-14
@ -17,48 +17,48 @@ import java.util.List;
public interface IEqFamilyService {
/**
* 查询请填写功能名称
* 查询家庭管理
*
* @param familyId 主键
* @return 请填写功能名称
* @return 家庭管理
*/
EqFamilyVo queryById(Long familyId);
/**
* 分页查询请填写功能名称列表
* 分页查询家庭管理列表
*
* @param bo 查询条件
* @param pageQuery 分页参数
* @return 请填写功能名称分页列表
* @return 家庭管理分页列表
*/
TableDataInfo<EqFamilyVo> queryPageList(EqFamilyBo bo, PageQuery pageQuery);
/**
* 查询符合条件的请填写功能名称列表
* 查询符合条件的家庭管理列表
*
* @param bo 查询条件
* @return 请填写功能名称列表
* @return 家庭管理列表
*/
List<EqFamilyVo> queryList(EqFamilyBo bo);
/**
* 新增请填写功能名称
* 新增家庭管理
*
* @param bo 请填写功能名称
* @param bo 家庭管理
* @return 是否新增成功
*/
Boolean insertByBo(EqFamilyBo bo);
/**
* 修改请填写功能名称
* 修改家庭管理
*
* @param bo 请填写功能名称
* @param bo 家庭管理
* @return 是否修改成功
*/
Boolean updateByBo(EqFamilyBo bo);
/**
* 校验并批量删除请填写功能名称信息
* 校验并批量删除家庭管理信息
*
* @param ids 待删除的主键集合
* @param isValid 是否进行有效性校验

View File

@ -20,7 +20,7 @@ import java.util.Map;
import java.util.Collection;
/**
* 请填写功能名称Service业务层处理
* 家庭管理Service业务层处理
*
* @author Lion Li
* @date 2024-07-14
@ -32,10 +32,10 @@ public class EqFamilyServiceImpl implements IEqFamilyService {
private final EqFamilyMapper baseMapper;
/**
* 查询请填写功能名称
* 查询家庭管理
*
* @param familyId 主键
* @return 请填写功能名称
* @return 家庭管理
*/
@Override
public EqFamilyVo queryById(Long familyId){
@ -43,11 +43,11 @@ public class EqFamilyServiceImpl implements IEqFamilyService {
}
/**
* 分页查询请填写功能名称列表
* 分页查询家庭管理列表
*
* @param bo 查询条件
* @param pageQuery 分页参数
* @return 请填写功能名称分页列表
* @return 家庭管理分页列表
*/
@Override
public TableDataInfo<EqFamilyVo> queryPageList(EqFamilyBo bo, PageQuery pageQuery) {
@ -57,10 +57,10 @@ public class EqFamilyServiceImpl implements IEqFamilyService {
}
/**
* 查询符合条件的请填写功能名称列表
* 查询符合条件的家庭管理列表
*
* @param bo 查询条件
* @return 请填写功能名称列表
* @return 家庭管理列表
*/
@Override
public List<EqFamilyVo> queryList(EqFamilyBo bo) {
@ -77,9 +77,9 @@ public class EqFamilyServiceImpl implements IEqFamilyService {
}
/**
* 新增请填写功能名称
* 新增家庭管理
*
* @param bo 请填写功能名称
* @param bo 家庭管理
* @return 是否新增成功
*/
@Override
@ -94,9 +94,9 @@ public class EqFamilyServiceImpl implements IEqFamilyService {
}
/**
* 修改请填写功能名称
* 修改家庭管理
*
* @param bo 请填写功能名称
* @param bo 家庭管理
* @return 是否修改成功
*/
@Override
@ -114,7 +114,7 @@ public class EqFamilyServiceImpl implements IEqFamilyService {
}
/**
* 校验并批量删除请填写功能名称信息
* 校验并批量删除家庭管理信息
*
* @param ids 待删除的主键集合
* @param isValid 是否进行有效性校验