|
@@ -42,6 +42,10 @@ func (b *BigPartPurchase) TableName() string {
|
|
|
func NewBigPartPurchase(pastureId, departmentId, employeeId, providerId int64,
|
|
|
purchaseType modernPb.PurchaseType_Kind, orderNumber, createdTime string,
|
|
|
) *BigPartPurchase {
|
|
|
+ var statue int32 = 2
|
|
|
+ if purchaseType == 3 {
|
|
|
+ statue = 7
|
|
|
+ }
|
|
|
local, _ := time.LoadLocation("Asia/Shanghai")
|
|
|
createTime, _ := time.ParseInLocation("2006-01-02 15:04:05", fmt.Sprintf("%s 00:00:00", createdTime), local)
|
|
|
return &BigPartPurchase{
|
|
@@ -55,7 +59,7 @@ func NewBigPartPurchase(pastureId, departmentId, employeeId, providerId int64,
|
|
|
FlowWorkNote: "",
|
|
|
BuyStatue: 0,
|
|
|
WorkflowNote: "",
|
|
|
- Statue: 7,
|
|
|
+ Statue: statue,
|
|
|
ProviderId: providerId,
|
|
|
PurchaseType: purchaseType,
|
|
|
}
|