对账单测试代码提交
This commit is contained in:
parent
f66da7a009
commit
8de3b3e4b1
@ -112,8 +112,15 @@ func (a *Statement) UploadExcelTwoTx(req *statement.UploadExcelTwoTxRequest) (re
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return rep, err
|
return rep, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Println("exist", exist)
|
||||||
|
fmt.Println("artworkTx", artworkTx)
|
||||||
|
fmt.Println("artworkTx", artworkTx)
|
||||||
|
|
||||||
//没有的就生成物权批次
|
//没有的就生成物权批次
|
||||||
if exist {
|
if exist {
|
||||||
|
fmt.Println("第一处")
|
||||||
|
|
||||||
//获取批次uid
|
//获取批次uid
|
||||||
uid1, err := util.GetUid()
|
uid1, err := util.GetUid()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -124,7 +131,7 @@ func (a *Statement) UploadExcelTwoTx(req *statement.UploadExcelTwoTxRequest) (re
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return rep, err
|
return rep, err
|
||||||
}
|
}
|
||||||
|
fmt.Println("第二处")
|
||||||
//对账单画作物权委托详情uid
|
//对账单画作物权委托详情uid
|
||||||
uid2, err := util.GetUid()
|
uid2, err := util.GetUid()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -136,6 +143,7 @@ func (a *Statement) UploadExcelTwoTx(req *statement.UploadExcelTwoTxRequest) (re
|
|||||||
return rep, err
|
return rep, err
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
fmt.Println("第三处")
|
||||||
//查看画作是否已经被该批次录入过,被录入过就跳过
|
//查看画作是否已经被该批次录入过,被录入过就跳过
|
||||||
count, err := dao.IsExistArtworkSoldTxDetail(tx, artworkTx.Uid, v.TfNum)
|
count, err := dao.IsExistArtworkSoldTxDetail(tx, artworkTx.Uid, v.TfNum)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -144,7 +152,7 @@ func (a *Statement) UploadExcelTwoTx(req *statement.UploadExcelTwoTxRequest) (re
|
|||||||
if count != 1 {
|
if count != 1 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
fmt.Println("第四处")
|
||||||
//获取批次uid
|
//获取批次uid
|
||||||
uid, err := util.GetUid()
|
uid, err := util.GetUid()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -154,6 +162,7 @@ func (a *Statement) UploadExcelTwoTx(req *statement.UploadExcelTwoTxRequest) (re
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return rep, err
|
return rep, err
|
||||||
}
|
}
|
||||||
|
fmt.Println("第五处")
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user