对账单代码测试修改
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
|
||||
}
|
||||
|
||||
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{
|
||||
Uid: uid,
|
||||
ArtistUid: artistUid,
|
||||
ArtistName: asrtistName,
|
||||
ArtistName: artistName,
|
||||
BatchTime: batchTime,
|
||||
}
|
||||
|
||||
@ -58,11 +58,11 @@ func CreateArtworkTx(tx *gorm.DB, uid, batchTime, artistUid, asrtistName string)
|
||||
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{
|
||||
Uid: uid,
|
||||
ArtistUid: artistUid,
|
||||
ArtistName: asrtistName,
|
||||
ArtistName: artistName,
|
||||
BatchTime: batchTime,
|
||||
}
|
||||
|
||||
@ -80,7 +80,7 @@ func CreateArtworkTxDetail(tx *gorm.DB, uid1, uid2 string, excelOneInfo *stateme
|
||||
Uid: uid2,
|
||||
BatchUid: uid1,
|
||||
TfNum: excelOneInfo.TfNum,
|
||||
ArtworkName: excelOneInfo.ArtistName,
|
||||
ArtworkName: excelOneInfo.ArtworkName,
|
||||
Ruler: excelOneInfo.Ruler,
|
||||
MinPrice: excelOneInfo.MinPrice,
|
||||
GuaranteePrice: excelOneInfo.GuaranteePrice,
|
||||
@ -100,7 +100,7 @@ func CreateArtworkCopyDetail(tx *gorm.DB, uid1, uid2 string, excelOneInfo *state
|
||||
Uid: uid2,
|
||||
BatchUid: uid1,
|
||||
TfNum: excelOneInfo.TfNum,
|
||||
ArtworkName: excelOneInfo.ArtistName,
|
||||
ArtworkName: excelOneInfo.ArtworkName,
|
||||
Ruler: excelOneInfo.Ruler,
|
||||
MinPrice: excelOneInfo.MinPrice,
|
||||
GuaranteePrice: excelOneInfo.GuaranteePrice,
|
||||
@ -156,7 +156,7 @@ func CreateArtworkSoldTxDetail(tx *gorm.DB, uid1, uid2 string, excelTwoInfo *sta
|
||||
Uid: uid2,
|
||||
BatchUid: uid1, //批次uid
|
||||
TfNum: excelTwoInfo.TfNum,
|
||||
ArtworkName: excelTwoInfo.ArtistName,
|
||||
ArtworkName: excelTwoInfo.ArtworkName,
|
||||
Ruler: excelTwoInfo.Ruler,
|
||||
SaleNo: excelTwoInfo.SaleNo,
|
||||
CompleteDate: excelTwoInfo.CompleteDate,
|
||||
@ -177,7 +177,7 @@ func CreateArtworkSoldCopyDetail(tx *gorm.DB, uid1, uid2 string, excelTwoInfo *s
|
||||
Uid: uid2,
|
||||
BatchUid: uid1, //批次uid
|
||||
TfNum: excelTwoInfo.TfNum,
|
||||
ArtworkName: excelTwoInfo.ArtistName,
|
||||
ArtworkName: excelTwoInfo.ArtworkName,
|
||||
Ruler: excelTwoInfo.Ruler,
|
||||
SaleNo: excelTwoInfo.SaleNo,
|
||||
CompleteDate: excelTwoInfo.CompleteDate,
|
||||
|
@ -75,7 +75,7 @@ func (a *Statement) UploadExcelOneTx(req *statement.UploadExcelOneTxRequest) (re
|
||||
if err != nil {
|
||||
return rep, err
|
||||
}
|
||||
if count != 1 {
|
||||
if count != 0 {
|
||||
continue
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user