package com.jsh.erp.datasource.mappers; import com.jsh.erp.datasource.entities.*; import java.math.BigDecimal; import java.util.List; import org.apache.ibatis.annotations.Param; public interface DepotItemMapper { /** * This method was generated by MyBatis Generator. * This method corresponds to the database table jsh_depotitem * * @mbggenerated */ int countByExample(DepotItemExample example); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table jsh_depotitem * * @mbggenerated */ int deleteByExample(DepotItemExample example); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table jsh_depotitem * * @mbggenerated */ int deleteByPrimaryKey(Long id); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table jsh_depotitem * * @mbggenerated */ int insert(DepotItem record); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table jsh_depotitem * * @mbggenerated */ int insertSelective(DepotItem record); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table jsh_depotitem * * @mbggenerated */ List selectByExample(DepotItemExample example); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table jsh_depotitem * * @mbggenerated */ DepotItem selectByPrimaryKey(Long id); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table jsh_depotitem * * @mbggenerated */ int updateByExampleSelective(@Param("record") DepotItem record, @Param("example") DepotItemExample example); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table jsh_depotitem * * @mbggenerated */ int updateByExample(@Param("record") DepotItem record, @Param("example") DepotItemExample example); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table jsh_depotitem * * @mbggenerated */ int updateByPrimaryKeySelective(DepotItem record); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table jsh_depotitem * * @mbggenerated */ int updateByPrimaryKey(DepotItem record); List selectByConditionDepotItem( @Param("name") String name, @Param("type") Integer type, @Param("remark") String remark, @Param("offset") Integer offset, @Param("rows") Integer rows); int countsByDepotItem( @Param("name") String name, @Param("type") Integer type, @Param("remark") String remark); List getHeaderIdByMaterial( @Param("materialParam") String materialParam, @Param("depotIds") String depotIds); List findDetailByTypeAndMaterialIdList( @Param("mId") Long mId, @Param("offset") Integer offset, @Param("rows") Integer rows); int findDetailByTypeAndMaterialIdCounts( @Param("mId") Long mId); List findStockNumByMaterialIdList( @Param("mId") Long mId, @Param("monthTime") String monthTime, @Param("offset") Integer offset, @Param("rows") Integer rows); int findStockNumByMaterialIdCounts( @Param("mId") Long mId, @Param("monthTime") String monthTime); int findByTypeAndMaterialIdIn( @Param("mId") Long mId); int findByTypeAndMaterialIdOut( @Param("mId") Long mId); List getDetailList( @Param("headerId") Long headerId); List findByAll( @Param("headIds") String headIds, @Param("materialIds") String materialIds, @Param("offset") Integer offset, @Param("rows") Integer rows); int findByAllCount( @Param("headIds") String headIds, @Param("materialIds") String materialIds); BigDecimal findByTypeInIsPrev( @Param("ProjectId") Integer ProjectId, @Param("MId") Long MId, @Param("MonthTime") String MonthTime); BigDecimal findByTypeInIsNotPrev( @Param("ProjectId") Integer ProjectId, @Param("MId") Long MId, @Param("MonthTime") String MonthTime); BigDecimal findByTypeOutIsPrev( @Param("ProjectId") Integer ProjectId, @Param("MId") Long MId, @Param("MonthTime") String MonthTime); BigDecimal findByTypeOutIsNotPrev( @Param("ProjectId") Integer ProjectId, @Param("MId") Long MId, @Param("MonthTime") String MonthTime); BigDecimal findPriceByTypeInIsPrev( @Param("ProjectId") Integer ProjectId, @Param("MId") Long MId, @Param("MonthTime") String MonthTime); BigDecimal findPriceByTypeInIsNotPrev( @Param("ProjectId") Integer ProjectId, @Param("MId") Long MId, @Param("MonthTime") String MonthTime); BigDecimal findPriceByTypeOutIsPrev( @Param("ProjectId") Integer ProjectId, @Param("MId") Long MId, @Param("MonthTime") String MonthTime); BigDecimal findPriceByTypeOutIsNotPrev( @Param("ProjectId") Integer ProjectId, @Param("MId") Long MId, @Param("MonthTime") String MonthTime); BigDecimal buyOrSaleNumber( @Param("type") String type, @Param("subType") String subType, @Param("MId") Long MId, @Param("MonthTime") String MonthTime, @Param("sumType") String sumType); BigDecimal buyOrSalePrice( @Param("type") String type, @Param("subType") String subType, @Param("MId") Long MId, @Param("MonthTime") String MonthTime, @Param("sumType") String sumType); BigDecimal findGiftByTypeIn( @Param("subType") String subType, @Param("ProjectId") Integer ProjectId, @Param("MId") Long MId); BigDecimal findGiftByTypeOut( @Param("subType") String subType, @Param("ProjectId") Integer ProjectId, @Param("MId") Long MId); }