|
@@ -15,6 +15,7 @@ import (
|
|
|
"hongze/hongze_mobile_admin/models/tables/contract_operation_record"
|
|
|
"hongze/hongze_mobile_admin/models/tables/contract_service_detail"
|
|
|
"hongze/hongze_mobile_admin/utils"
|
|
|
+ "rdluck_tools/orm"
|
|
|
"reflect"
|
|
|
"strings"
|
|
|
"time"
|
|
@@ -105,6 +106,11 @@ func UploadCheckBackFile(contractId int, fileUrl string, opUser *custom.AdminWx)
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+ //同步更新客户那边提交审批的合同
|
|
|
+ o := orm.NewOrm()
|
|
|
+ sql := `update company_contract set img_url = ? where contract_code=? and source="系统合同" `
|
|
|
+ _, err = o.Raw(sql, contractInfo.CheckBackFileUrl, contractInfo.ContractType).Exec()
|
|
|
+
|
|
|
//添加操作日志
|
|
|
remark := "上传签回合同附件"
|
|
|
_ = contract_operation_record.AddContractOperationRecord(contractInfo.ContractId, opUser.AdminId, 0, "upload", opUser.RealName, remark)
|