|
@@ -102,6 +102,12 @@ func AddFactoryIdentity(c *gin.Context) { |
|
|
factoryIdentityDb := db.FactoryIdentityDb{} |
|
|
factoryIdentityDb := db.FactoryIdentityDb{} |
|
|
factoryIdentityDb.Set(0) |
|
|
factoryIdentityDb.Set(0) |
|
|
now := time.Now() |
|
|
now := time.Now() |
|
|
|
|
|
if req.SubsidyAmount == "" { |
|
|
|
|
|
req.SubsidyAmount = "0.00" |
|
|
|
|
|
} |
|
|
|
|
|
if req.LeastPayAmount == "" { |
|
|
|
|
|
req.LeastPayAmount = "0.00" |
|
|
|
|
|
} |
|
|
_, err = factoryIdentityDb.FactoryIdentityInsert(&model.FactoryIdentity{ |
|
|
_, err = factoryIdentityDb.FactoryIdentityInsert(&model.FactoryIdentity{ |
|
|
Name: req.Name, |
|
|
Name: req.Name, |
|
|
EnterpriseId: enterpriseId, |
|
|
EnterpriseId: enterpriseId, |
|
|