浏览代码

1

factory
DengBiao 1年前
父节点
当前提交
550363bc49
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. +6
    -0
      app/admin/hdl/enterprise_manage/hdl_factory_identity.go

+ 6
- 0
app/admin/hdl/enterprise_manage/hdl_factory_identity.go 查看文件

@@ -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,


正在加载...
取消
保存