|
@@ -427,7 +427,7 @@ func ApprovalListExport(this *SealApprovalController, condition, joinCondition s
|
|
|
br.ErrMsg = "保存文件失败"
|
|
|
return
|
|
|
}
|
|
|
- downloadFileName := "用印审批列表" + time.Now().Format("2006.01.02")+ ".xlsx"
|
|
|
+ downloadFileName := "用印审批列表" + time.Now().Format("2006.01.02") + ".xlsx"
|
|
|
this.Ctx.Output.Download(downLoadnFilePath, downloadFileName)
|
|
|
defer func() {
|
|
|
os.Remove(downLoadnFilePath)
|
|
@@ -480,6 +480,19 @@ func (this *SealApprovalController) Apply() {
|
|
|
br.ErrMsg = "参数丢失!Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
+ creditCode := req.CreditCode
|
|
|
+ startDate := req.StartDate
|
|
|
+
|
|
|
+ if startDate != "" {
|
|
|
+ companyInfo, tmpErr := company.GetCompanyByCreditCode(creditCode)
|
|
|
+ //如果查询异常,且并不是在系统中找不到该社会信用码,那么就异常返回
|
|
|
+ if tmpErr != nil {
|
|
|
+ br.Msg = "根据社会信用码获取客户信息失败!"
|
|
|
+ br.ErrMsg = "根据社会信用码获取客户信息失败!Err:" + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ req.CompanyId = companyInfo.CompanyId
|
|
|
+ }
|
|
|
|
|
|
// 申请用印
|
|
|
err = seal.ApplySeal(this.SysUser, req)
|