Authored by caoyan

寄存转现货

... ... @@ -125,5 +125,13 @@ public interface DepositService {
* @return
*/
int updateDepositWaitToPick(Integer uid, String depositCode);
/**
* 取消购买后更新寄存状态
* @param uid
* @param depositCode
* @return
*/
int updateDepositAfterCancelBuy(Integer uid, String depositCode);
}
... ...
... ... @@ -814,6 +814,11 @@ public class DepositServiceImpl implements DepositService {
return storageDepositMapper.updateStorageStatus(deposit.getId(), StorageDepositStatusEnum.WAITING_QUERY.getCode(), 0, DepositOutTypeEnum.OUTTYPE_DEPOSIT_CHANGE_TO_IN_STOCK.getCode(), uid);
}
@Autowired
public int updateDepositAfterCancelBuy(Integer uid, String depositCode) {
return 0;
}
private List<DepositDetailBo> convertDepositResp(List<StorageDeposit> list, List<Long> orderCodeList){
Map<Long, BigDecimal> orderCodePriceMap = Maps.newHashMap();
List<BuyerOrder> buyerOrderList = buyerOrderMapper.selectByOrderCodes(orderCodeList, null);
... ...