|
@@ -18,7 +18,7 @@ import (
|
|
|
//添加用印
|
|
|
func AddSeal(userId, contractId, fileNum int, userName, use, useCompanyName, companyName, creditCode, serviceType, sealType, remark, fileUrl string) (sealInfo *seal.Seal, err error) {
|
|
|
useList := []string{"销售合同", "渠道合同", "付款通知函", "招投标", "战略合作协议"}
|
|
|
- serviceTypeList := []string{"新增业务", "续约业务", "补充协议"}
|
|
|
+ serviceTypeList := []string{"新签合同", "续约合同", "补充协议"}
|
|
|
sealTypeList := []string{"合同章", "公章", "法人章"}
|
|
|
if !strings.Contains(strings.Join(useList, ","), use) {
|
|
|
err = errors.New("用印用途异常")
|
|
@@ -62,7 +62,7 @@ func AddSeal(userId, contractId, fileNum int, userName, use, useCompanyName, com
|
|
|
//修改用印
|
|
|
func Edit(sealId, userId, contractId, fileNum int, use, companyName, userCompanyName, creditCode, serviceType, sealType, remark, fileUrl string) (sealInfo *seal.Seal, err error) {
|
|
|
useList := []string{"销售合同", "渠道合同", "付款通知函", "招投标", "战略合作协议"}
|
|
|
- serviceTypeList := []string{"新增业务", "续约业务", "补充协议"}
|
|
|
+ serviceTypeList := []string{"新签合同", "续约合同", "补充协议"}
|
|
|
sealTypeList := []string{"合同章", "公章", "法人章"}
|
|
|
if !strings.Contains(strings.Join(useList, ","), use) {
|
|
|
err = errors.New("用印用途异常")
|