OracleActTransactionLog.php 738 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace App;
  3. use Illuminate\Database\Eloquent\Model;
  4. /**
  5. * DB: FLUX/WMS_USER
  6. * TABLE: ACT_TRANSACTION_LOG
  7. * EXPLAIN: 库存事务
  8. */
  9. class OracleActTransactionLog extends Model
  10. {
  11. protected $connection="oracle";
  12. protected $table="ACT_TRANSACTION_LOG";
  13. /*
  14. * column: FMLotNum FMSKU ADDTIME TOCustomerID TOQty_Each FMQty_Each TransactionType TOLocation
  15. * */
  16. function oracleBasCustomer(){
  17. return $this->hasOne('App\OracleBasCustomer','customerid','tocustomerid');
  18. }
  19. function oracleBasSku(){
  20. return $this->hasOne('App\OracleBasSKU','sku','fmsku');
  21. }
  22. function oracleInvLotAtt(){
  23. return $this->hasOne('App\OracleInvLotAtt','lotnum','fmlotnum');
  24. }
  25. }