对账单代码测试修改
This commit is contained in:
parent
01f94832bb
commit
f66da7a009
@ -41,11 +41,11 @@ func IsExistArtworkCopy(tx *gorm.DB, batchTime, artistUid string) (exist bool, a
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func CreateArtworkTx(tx *gorm.DB, uid, batchTime, artistUid, asrtistName string) (err error) {
|
func CreateArtworkTx(tx *gorm.DB, uid, batchTime, artistUid, artistName string) (err error) {
|
||||||
artworkTx := &model.ArtworkTx{
|
artworkTx := &model.ArtworkTx{
|
||||||
Uid: uid,
|
Uid: uid,
|
||||||
ArtistUid: artistUid,
|
ArtistUid: artistUid,
|
||||||
ArtistName: asrtistName,
|
ArtistName: artistName,
|
||||||
BatchTime: batchTime,
|
BatchTime: batchTime,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -58,11 +58,11 @@ func CreateArtworkTx(tx *gorm.DB, uid, batchTime, artistUid, asrtistName string)
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func CreateArtworkCopy(tx *gorm.DB, uid, batchTime, artistUid, asrtistName string) (err error) {
|
func CreateArtworkCopy(tx *gorm.DB, uid, batchTime, artistUid, artistName string) (err error) {
|
||||||
artworkCopy := &model.ArtworkCopy{
|
artworkCopy := &model.ArtworkCopy{
|
||||||
Uid: uid,
|
Uid: uid,
|
||||||
ArtistUid: artistUid,
|
ArtistUid: artistUid,
|
||||||
ArtistName: asrtistName,
|
ArtistName: artistName,
|
||||||
BatchTime: batchTime,
|
BatchTime: batchTime,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ func CreateArtworkTxDetail(tx *gorm.DB, uid1, uid2 string, excelOneInfo *stateme
|
|||||||
Uid: uid2,
|
Uid: uid2,
|
||||||
BatchUid: uid1,
|
BatchUid: uid1,
|
||||||
TfNum: excelOneInfo.TfNum,
|
TfNum: excelOneInfo.TfNum,
|
||||||
ArtworkName: excelOneInfo.ArtistName,
|
ArtworkName: excelOneInfo.ArtworkName,
|
||||||
Ruler: excelOneInfo.Ruler,
|
Ruler: excelOneInfo.Ruler,
|
||||||
MinPrice: excelOneInfo.MinPrice,
|
MinPrice: excelOneInfo.MinPrice,
|
||||||
GuaranteePrice: excelOneInfo.GuaranteePrice,
|
GuaranteePrice: excelOneInfo.GuaranteePrice,
|
||||||
@ -100,7 +100,7 @@ func CreateArtworkCopyDetail(tx *gorm.DB, uid1, uid2 string, excelOneInfo *state
|
|||||||
Uid: uid2,
|
Uid: uid2,
|
||||||
BatchUid: uid1,
|
BatchUid: uid1,
|
||||||
TfNum: excelOneInfo.TfNum,
|
TfNum: excelOneInfo.TfNum,
|
||||||
ArtworkName: excelOneInfo.ArtistName,
|
ArtworkName: excelOneInfo.ArtworkName,
|
||||||
Ruler: excelOneInfo.Ruler,
|
Ruler: excelOneInfo.Ruler,
|
||||||
MinPrice: excelOneInfo.MinPrice,
|
MinPrice: excelOneInfo.MinPrice,
|
||||||
GuaranteePrice: excelOneInfo.GuaranteePrice,
|
GuaranteePrice: excelOneInfo.GuaranteePrice,
|
||||||
@ -156,7 +156,7 @@ func CreateArtworkSoldTxDetail(tx *gorm.DB, uid1, uid2 string, excelTwoInfo *sta
|
|||||||
Uid: uid2,
|
Uid: uid2,
|
||||||
BatchUid: uid1, //批次uid
|
BatchUid: uid1, //批次uid
|
||||||
TfNum: excelTwoInfo.TfNum,
|
TfNum: excelTwoInfo.TfNum,
|
||||||
ArtworkName: excelTwoInfo.ArtistName,
|
ArtworkName: excelTwoInfo.ArtworkName,
|
||||||
Ruler: excelTwoInfo.Ruler,
|
Ruler: excelTwoInfo.Ruler,
|
||||||
SaleNo: excelTwoInfo.SaleNo,
|
SaleNo: excelTwoInfo.SaleNo,
|
||||||
CompleteDate: excelTwoInfo.CompleteDate,
|
CompleteDate: excelTwoInfo.CompleteDate,
|
||||||
@ -177,7 +177,7 @@ func CreateArtworkSoldCopyDetail(tx *gorm.DB, uid1, uid2 string, excelTwoInfo *s
|
|||||||
Uid: uid2,
|
Uid: uid2,
|
||||||
BatchUid: uid1, //批次uid
|
BatchUid: uid1, //批次uid
|
||||||
TfNum: excelTwoInfo.TfNum,
|
TfNum: excelTwoInfo.TfNum,
|
||||||
ArtworkName: excelTwoInfo.ArtistName,
|
ArtworkName: excelTwoInfo.ArtworkName,
|
||||||
Ruler: excelTwoInfo.Ruler,
|
Ruler: excelTwoInfo.Ruler,
|
||||||
SaleNo: excelTwoInfo.SaleNo,
|
SaleNo: excelTwoInfo.SaleNo,
|
||||||
CompleteDate: excelTwoInfo.CompleteDate,
|
CompleteDate: excelTwoInfo.CompleteDate,
|
||||||
|
@ -75,7 +75,7 @@ func (a *Statement) UploadExcelOneTx(req *statement.UploadExcelOneTxRequest) (re
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return rep, err
|
return rep, err
|
||||||
}
|
}
|
||||||
if count != 1 {
|
if count != 0 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user