feat(pocket): 新增工厂状态数据的CURD功能
- 为Klptcm1ProPlantStateCurrent实体增加完整的增删改查接口 - 实现按复合键(INSDATE+TYPE)查询、插入、更新和删除逻辑 - 在Mapper层添加对应的XML SQL映射支持 - 为Klptcm1ProPlantStateDefine增加ID查询、批量删除等功能 - 添加PlantStateWithValueVo视图对象及相关联查逻辑 - 提供根据名称获取带值的状态定义列表方法 - 控制器层新增RESTful API endpoints支持完整操作- 完善服务层实现并暴露统一的服务接口供调用
This commit is contained in:
@@ -6,10 +6,25 @@ import com.klp.common.core.page.TableDataInfo;
|
||||
import com.klp.pocket.domain.Klptcm1ProPlantStateCurrent;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import java.util.List;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@Mapper
|
||||
public interface Klptcm1ProPlantStateCurrentMapper {
|
||||
|
||||
// 查询所有
|
||||
Page<Klptcm1ProPlantStateCurrent> selectAll(Page<Object> build);
|
||||
|
||||
// 按复合键查询
|
||||
Klptcm1ProPlantStateCurrent selectOne(@Param("insdate") Date insdate, @Param("type") BigDecimal type);
|
||||
|
||||
// 新增
|
||||
int insert(Klptcm1ProPlantStateCurrent entity);
|
||||
|
||||
// 修改(按复合键)
|
||||
int updateByKey(Klptcm1ProPlantStateCurrent entity);
|
||||
|
||||
// 删除(按复合键)
|
||||
int deleteByKey(@Param("insdate") Date insdate, @Param("type") BigDecimal type);
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.klp.pocket.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.klp.pocket.domain.Klptcm1ProPlantStateDefine;
|
||||
import com.klp.pocket.domain.vo.PlantStateWithValueVo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
|
||||
@@ -22,4 +23,25 @@ public interface Klptcm1ProPlantStateDefineMapper {
|
||||
*/
|
||||
Page<Klptcm1ProPlantStateDefine> selectPage(Page<Object> page);
|
||||
|
||||
List<PlantStateWithValueVo> selectByValue(String name);
|
||||
|
||||
/**
|
||||
* 按ID查询
|
||||
*/
|
||||
Klptcm1ProPlantStateDefine selectById(BigDecimal id);
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
int insert(Klptcm1ProPlantStateDefine entity);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
int updateById(Klptcm1ProPlantStateDefine entity);
|
||||
|
||||
/**
|
||||
* 删除(批量)
|
||||
*/
|
||||
int deleteByIds(List<BigDecimal> ids);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user