123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- package com.jsh.erp.service;
- import com.alibaba.fastjson.JSONArray;
- import com.alibaba.fastjson.JSONObject;
- import com.baomidou.mybatisplus.extension.service.IService;
- import com.jsh.erp.datasource.entities.*;
- import com.jsh.erp.datasource.vo.DepotItemStockWarningCount;
- import com.jsh.erp.datasource.vo.DepotItemVoBatchNumberList;
- import com.jsh.erp.datasource.vo.InOutPriceVo;
- import org.springframework.transaction.annotation.Transactional;
- import javax.servlet.http.HttpServletRequest;
- import java.math.BigDecimal;
- import java.util.List;
- import java.util.Map;
- public interface DepotItemService extends IService<DepotItem> {
- DepotItem getDepotItem(long id)throws Exception;
- List<DepotItem> getDepotItem()throws Exception;
- List<DepotItem> select(String name, Integer type, String remark, int offset, int rows)throws Exception;
- Long countDepotItem(String name, Integer type, String remark) throws Exception;
- @Transactional(value = "transactionManager", rollbackFor = Exception.class)
- int insertDepotItem(JSONObject obj, HttpServletRequest request)throws Exception;
- @Transactional(value = "transactionManager", rollbackFor = Exception.class)
- int updateDepotItem(JSONObject obj, HttpServletRequest request)throws Exception;
- @Transactional(value = "transactionManager", rollbackFor = Exception.class)
- int deleteDepotItem(Long id, HttpServletRequest request)throws Exception;
- @Transactional(value = "transactionManager", rollbackFor = Exception.class)
- int batchDeleteDepotItem(String ids, HttpServletRequest request)throws Exception;
- int checkIsNameExist(Long id, String name)throws Exception;
- List<DepotItemVo4DetailByTypeAndMId> findDetailByDepotIdsAndMaterialIdList(String depotIds, Boolean forceFlag, Boolean inOutManageFlag, String sku, String batchNumber,
- String number, String beginTime, String endTime, Long mId, Integer offset, Integer rows)throws Exception;
- Long findDetailByDepotIdsAndMaterialIdCount(String depotIds, Boolean forceFlag, Boolean inOutManageFlag, String sku, String batchNumber,
- String number, String beginTime, String endTime, Long mId)throws Exception;
- @Transactional(value = "transactionManager", rollbackFor = Exception.class)
- int insertDepotItemWithObj(DepotItem depotItem)throws Exception;
- @Transactional(value = "transactionManager", rollbackFor = Exception.class)
- int updateDepotItemWithObj(DepotItem depotItem)throws Exception;
- List<DepotItem> getListByHeaderId(Long headerId)throws Exception;
- DepotItem getItemByHeaderIdAndMaterial(Long headerId, Long meId)throws Exception;
- DepotItem getPreItemByHeaderIdAndMaterial(String linkStr, Long meId, Long linkId)throws Exception;
- List<DepotItemVo4WithInfoEx> getDetailList(Long headerId)throws Exception;
- List<DepotItemVo4WithInfoEx> getInOutStock(String materialParam, List<Long> categoryIdList, String endTime, Integer offset, Integer rows)throws Exception;
- int getInOutStockCount(String materialParam, List<Long> categoryIdList, String endTime)throws Exception;
- List<DepotItemVo4WithInfoEx> getListWithBuyOrSale(String materialParam, String billType,
- String beginTime, String endTime, String[] creatorArray, Long organId, String[] organArray, List<Long> categoryList, List<Long> depotList, Boolean forceFlag, Integer offset, Integer rows)throws Exception;
- int getListWithBuyOrSaleCount(String materialParam, String billType,
- String beginTime, String endTime, String[] creatorArray, Long organId, String[] organArray, List<Long> categoryList, List<Long> depotList, Boolean forceFlag)throws Exception;
- BigDecimal buyOrSale(String type, String subType, Long MId, String beginTime, String endTime,
- String[] creatorArray, Long organId, String[] organArray, List<Long> depotList, Boolean forceFlag, String sumType) throws Exception;
- BigDecimal buyOrSalePriceTotal(String type, String subType, String materialParam, String beginTime, String endTime,
- String[] creatorArray, Long organId, String[] organArray, List<Long> categoryList, List<Long> depotList, Boolean forceFlag) throws Exception;
- List<InOutPriceVo> inOrOutPriceList(String beginTime, String endTime) throws Exception;
- /**
- * 保存单据子表信息
- * @param rows 子表信息
- * @param headerId 主表id
- * @param actionType 操作类型
- */
- @Transactional(value = "transactionManager", rollbackFor = Exception.class)
- void saveDetials(String rows, Long headerId, String actionType, HttpServletRequest request) throws Exception;
- @Transactional(value = "transactionManager", rollbackFor = Exception.class)
- String getBillStatusByParam(DepotHead depotHead, String linkStr, String linkType);
- @Transactional(value = "transactionManager", rollbackFor = Exception.class)
- void changeBillStatus(String linkStr, String billStatus);
- @Transactional(value = "transactionManager", rollbackFor = Exception.class)
- void changeBillPurchaseStatus(String linkStr, String billStatus);
- DepotItem getDepotItemByBatchNumber(Long materialExtendId, String batchNumber);
- @Transactional(value = "transactionManager", rollbackFor = Exception.class)
- void deleteDepotItemHeadId(Long headerId)throws Exception;
- @Transactional(value = "transactionManager", rollbackFor = Exception.class)
- void deleteOrCancelSerialNumber(String actionType, DepotHead depotHead, Long headerId) throws Exception;
- void checkAssembleWithMaterialType(JSONArray rowArr, String subType);
- @Transactional(value = "transactionManager", rollbackFor = Exception.class)
- void updateMaterialExtendPrice(Long meId, String subType, String billType, JSONObject rowObj) throws Exception;
- @Transactional(value = "transactionManager", rollbackFor = Exception.class)
- List<DepotItemStockWarningCount> findStockWarningCount(Integer offset, Integer rows, String materialParam, List<Long> depotList, List<Long> categoryList);
- @Transactional(value = "transactionManager", rollbackFor = Exception.class)
- int findStockWarningCountTotal(String materialParam, List<Long> depotList, List<Long> categoryList);
- BigDecimal getSkuStockByParam(Long depotId, Long meId, String beginTime, String endTime) throws Exception;
- BigDecimal getStockByParam(Long depotId, Long mId, String beginTime, String endTime) throws Exception;
- BigDecimal getStockByParamWithDepotList(List<Long> depotList, Long mId, String beginTime, String endTime) throws Exception;
- Map<String, BigDecimal> getIntervalMapByParamWithDepotList(List<Long> depotList, Long mId, String beginTime, String endTime) throws Exception;
- @Transactional(value = "transactionManager", rollbackFor = Exception.class)
- void updateCurrentStock(DepotItem depotItem) throws Exception;
- @Transactional(value = "transactionManager", rollbackFor = Exception.class)
- void updateCurrentUnitPrice(DepotItem depotItem) throws Exception;
- void updateCurrentStockFun(Long mId, Long dId) throws Exception;
- @Transactional(value = "transactionManager", rollbackFor = Exception.class)
- BigDecimal getFinishNumber(Long meId, Long id, Long headerId, Unit unitInfo, String materialUnit, String linkType);
- @Transactional(value = "transactionManager", rollbackFor = Exception.class)
- BigDecimal getRealFinishNumber(String currentSubType, Long meId, Long linkId, Long preHeaderId, Long currentHeaderId, Unit unitInfo, String materialUnit);
- List<DepotItemVoBatchNumberList> getBatchNumberList(String number, String name, Long depotId, String barCode,
- String batchNumber, Boolean forceFlag, Boolean inOutManageFlag) throws Exception;
- BigDecimal getOneBatchNumberStock(Long depotId, String barCode, String batchNumber) throws Exception;
- Long getCountByMaterialAndDepot(Long mId, Long depotId);
- JSONObject parseMapByExcelData(String barCodes, List<Map<String, String>> detailList, String prefixNo) throws Exception;
- BigDecimal getLastUnitPriceByParam(Long organId, Long meId, String prefixNo);
- BigDecimal getCurrentStockByParam(Long depotId, Long mId);
- String getOtherInfo(String[] mpArr, DepotItemVo4WithInfoEx diEx)throws Exception;
- }
|