|
@@ -217,7 +217,10 @@ func (rg *PreRegisterController) Add(c *gin.Context) {
|
|
|
resp.FailMsg("操作失败", "新增合同及套餐失败, Err: "+e.Error(), c)
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
+ if ob.ContractRegisterId == 0{
|
|
|
+ resp.FailMsg("操作失败", "新增合同失败,合同ID为0", c)
|
|
|
+ return
|
|
|
+ }
|
|
|
for _, r := range req.List {
|
|
|
// 货币及汇率
|
|
|
rateList, e := fmsService.GetTodayCurrencyRateList()
|
|
@@ -331,7 +334,7 @@ func (rg *PreRegisterController) Add(c *gin.Context) {
|
|
|
|
|
|
// 新增开票到款记录
|
|
|
if pp.ContractRegisterId == 0{
|
|
|
- resp.FailMsg("操作失败", "新增预登记失败,合同ID为0, Err: "+e.Error(), c)
|
|
|
+ resp.FailMsg("操作失败", "新增预登记失败,合同ID为0", c)
|
|
|
return
|
|
|
}
|
|
|
if e = pp.Create(); e != nil {
|