DengBiao 1 ano atrás
pai
commit
550363bc49
1 arquivos alterados com 6 adições e 0 exclusões
  1. +6
    -0
      app/admin/hdl/enterprise_manage/hdl_factory_identity.go

+ 6
- 0
app/admin/hdl/enterprise_manage/hdl_factory_identity.go Ver arquivo

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


Carregando…
Cancelar
Salvar