|
|
@@ -2,6 +2,7 @@ package proj
|
|
|
|
|
|
import (
|
|
|
"context"
|
|
|
+
|
|
|
contractDao "dashoo.cn/micro/app/dao/contract"
|
|
|
custDao "dashoo.cn/micro/app/dao/cust"
|
|
|
projDao "dashoo.cn/micro/app/dao/proj"
|
|
|
@@ -11,20 +12,21 @@ import (
|
|
|
workflowService "dashoo.cn/micro/app/service/workflow"
|
|
|
"dashoo.cn/opms_libary/plugin/dingtalk"
|
|
|
|
|
|
+ "fmt"
|
|
|
+ "strconv"
|
|
|
+ "strings"
|
|
|
+
|
|
|
"dashoo.cn/micro/app/service"
|
|
|
"dashoo.cn/opms_libary/multipart"
|
|
|
"dashoo.cn/opms_libary/myerrors"
|
|
|
"dashoo.cn/opms_libary/plugin/dingtalk/message"
|
|
|
"dashoo.cn/opms_libary/plugin/dingtalk/workflow"
|
|
|
"dashoo.cn/opms_libary/utils"
|
|
|
- "fmt"
|
|
|
"github.com/gogf/gf/database/gdb"
|
|
|
"github.com/gogf/gf/frame/g"
|
|
|
"github.com/gogf/gf/os/gtime"
|
|
|
"github.com/gogf/gf/util/gconv"
|
|
|
"github.com/shopspring/decimal"
|
|
|
- "strconv"
|
|
|
- "strings"
|
|
|
)
|
|
|
|
|
|
type businessService struct {
|
|
|
@@ -199,7 +201,9 @@ func (p *businessService) Create(req *model.AddProjBusinessReq) (err error) {
|
|
|
}
|
|
|
business.NboCode = nboCode
|
|
|
//business.NboStatus = StatusOK
|
|
|
- business.NboType = StatusC
|
|
|
+ if business.NboType == "" {
|
|
|
+ business.NboType = StatusC
|
|
|
+ }
|
|
|
business.ApproStatus = ApprovalWaiting
|
|
|
business.EstTransPrice = totalPrice
|
|
|
business.CustProvinceId = customer.CustProvinceId
|