package com.consum.base.service;
|
|
import com.consum.base.pojo.BaseGoodsTemplateParam;
|
import com.consum.model.po.BaseCategory;
|
import com.consum.model.po.BaseGoodsTemplate;
|
import com.consum.model.po.FinSysTenantUser;
|
import com.consum.model.po.SDictData;
|
import com.consum.model.vo.BaseGoodsTemplateVo;
|
import com.iplatform.model.po.S_user_core;
|
import com.walker.db.page.GenericPager;
|
import com.walker.jdbc.service.BaseService;
|
import java.util.List;
|
import java.util.Map;
|
|
public interface BaseGoodsTemplateService extends BaseService {
|
|
List<BaseCategory> getByCategoryId(Long categoryId);
|
|
/**
|
* @Description 新增物品模板
|
* @Author 卢庆阳
|
* @Date 2023/10/24
|
*/
|
int add(BaseGoodsTemplateParam param, FinSysTenantUser currentUser);
|
|
/**
|
* @Description 物品模板列表查询
|
* @Author 卢庆阳
|
* @Date 2023/10/24
|
*/
|
GenericPager<BaseGoodsTemplate> queryList(BaseGoodsTemplateParam param);
|
|
/**
|
* 根据物品id查询物品详情
|
*
|
* @author 卢庆阳
|
* @date 2023/9/26
|
*/
|
BaseGoodsTemplateVo getById(Long id);
|
|
/**
|
* @Description 编辑
|
* @Author 卢庆阳
|
* @Date 2023/10/24
|
*/
|
int updateBaseGoodsTemplate(BaseGoodsTemplateParam param);
|
|
/**
|
* @Description 根据物品名称和分类id查询物品
|
* @Author 卢庆阳
|
* @Date 2023/10/24
|
*/
|
BaseGoodsTemplate getByGoodsNameAndCategoryId(String goodsName, Long categoryId);
|
|
/**
|
* 根据型号ID查询物品信息
|
*
|
* @param modelId
|
* @return
|
*/
|
|
Map<String, Object> queryGoodsInfoByModelId(Long modelId);
|
|
/**
|
* 修改状态
|
*
|
* @author 卢庆阳
|
* @date 2023/10/25
|
*/
|
int updateStatus(BaseGoodsTemplate goodsTemplate);
|
|
/**
|
* @Description 根据物品id删除物品
|
* @Author 卢庆阳
|
* @Date 2023/10/25
|
*/
|
int updateById(BaseGoodsTemplate goodsTemplate, S_user_core currentUser);
|
|
/**
|
* @return
|
* @Description 查询仓库类型(数据字典)
|
* @Author 卢庆阳
|
* @Date 2023/10/30
|
*/
|
List<SDictData> queryClassificationCode();
|
|
/**
|
* @Description 根据分类id查询物品模板
|
* @Author 卢庆阳
|
* @Date 2023/10/30
|
*/
|
List<BaseGoodsTemplate> queryByCategoryId(Long categoryId);
|
|
/**
|
* @param agencyId
|
* @param categoryId
|
* @param states
|
* @param goodsName 全匹配!!!
|
* @return
|
*/
|
|
List<BaseGoodsTemplate> queryGoodsTemplateByCategoryId(Long agencyId, Long categoryId, Short states, String goodsName);
|
}
|