完成食材图片上传

This commit is contained in:
huangdeliang
2021-03-17 14:15:33 +08:00
parent 64d232d2d6
commit 917f2ab975
3 changed files with 63 additions and 46 deletions

View File

@ -1,87 +1,90 @@
package com.stdiet.custom.mapper;
import java.util.List;
import com.stdiet.custom.domain.SysIngredentFile;
import com.stdiet.custom.domain.SysIngredient;
import com.stdiet.custom.domain.SysIngredientNotRec;
import com.stdiet.custom.domain.SysIngredientRec;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 食材Mapper接口
*
*
* @author wonder
* @date 2020-12-15
*/
public interface SysIngredientMapper
{
public interface SysIngredientMapper {
/**
* 查询食材
*
*
* @param id 食材ID
* @return 食材
*/
public SysIngredient selectSysIngredientById(Long id);
SysIngredient selectSysIngredientById(Long id);
/**
* 查询食材列表
*
*
* @param sysIngredient 食材
* @return 食材集合
*/
public List<SysIngredient> selectSysIngredientList(SysIngredient sysIngredient);
List<SysIngredient> selectSysIngredientList(SysIngredient sysIngredient);
/**
* 新增食材
*
*
* @param sysIngredient 食材
* @return 结果
*/
public int insertSysIngredient(SysIngredient sysIngredient);
int insertSysIngredient(SysIngredient sysIngredient);
/**
* 修改食材
*
*
* @param sysIngredient 食材
* @return 结果
*/
public int updateSysIngredient(SysIngredient sysIngredient);
int updateSysIngredient(SysIngredient sysIngredient);
/**
* 删除食材
*
*
* @param id 食材ID
* @return 结果
*/
public int deleteSysIngredientById(Long id);
int deleteSysIngredientById(Long id);
/**
* 批量删除食材
*
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteSysIngredientByIds(Long[] ids);
int deleteSysIngredientByIds(Long[] ids);
public int batchIngredientRec(List<SysIngredientRec> ingredientRecList);
int batchIngredientRec(List<SysIngredientRec> ingredientRecList);
public int batchIngredientNotRec(List<SysIngredientNotRec> ingredientNotRecList);
int batchIngredientNotRec(List<SysIngredientNotRec> ingredientNotRecList);
public int deleteIngredentRecByIngredientId(Long recId);
int deleteIngredientRecByIngredientId(Long recId);
public int deleteIngredentNotRecByIngredientId(Long notRecId);
int deleteIngredientNotRecByIngredientId(Long notRecId);
public int deleteIngredentRecByIngredientIds(Long[] id);
int deleteIngredientRecByIngredientIds(Long[] id);
public int deleteIngredentNotRecByIngredientIds(Long[] id);
int deleteIngredientNotRecByIngredientIds(Long[] id);
/**
* 根据食材名称查询食材信息
*
* @param name
* @return
*/
public SysIngredient selectSysIngredientByName(@Param("name") String name);
SysIngredient selectSysIngredientByName(@Param("name") String name);
int batchInsertIngredientImage(List<SysIngredentFile> list);
int deleteIngredientImageById(Long id);
}