|
|
@@ -418,12 +418,12 @@ func (this *OilContractController) GetEntityList() {
|
|
|
wherePRegAudit := "AuditStepCode='PROF_REGULATION'"
|
|
|
orgSvc.GetEntity(&settingReg, wherePRegAudit) // PROF_AUDIT
|
|
|
res1 := orgSvc.UserInRoleById(this.User.Id, strconv.Itoa(settingReg.RoleId))
|
|
|
- // 所有业务处室分办单位可查看所有合同 TODO 待确认
|
|
|
- var settingProf auditsetting.Base_OilAuditSetting
|
|
|
- wherePAudit := "AuditStepCode='PROF_RECE'"
|
|
|
- orgSvc.GetEntity(&settingProf, wherePAudit) // PROF_AUDIT
|
|
|
- res2 := orgSvc.UserInRoleById(this.User.Id, strconv.Itoa(settingProf.RoleId))
|
|
|
- if !res1 && !res2 {
|
|
|
+ // 所有业务处室分办单位可查看所有合同
|
|
|
+ //var settingProf auditsetting.Base_OilAuditSetting
|
|
|
+ //wherePAudit := "AuditStepCode='PROF_RECE'"
|
|
|
+ //orgSvc.GetEntity(&settingProf, wherePAudit) // PROF_AUDIT
|
|
|
+ //res2 := orgSvc.UserInRoleById(this.User.Id, strconv.Itoa(settingProf.RoleId))
|
|
|
+ if !res1 {
|
|
|
where = where + " and a.SecondUnit= " + strconv.Itoa(this.User.UnitId)
|
|
|
}
|
|
|
|
|
|
@@ -829,11 +829,11 @@ func (this *OilContractController) ExportList() {
|
|
|
orgSvc.GetEntity(&settingReg, wherePRegAudit) // PROF_AUDIT
|
|
|
res1 := orgSvc.UserInRoleById(this.User.Id, strconv.Itoa(settingReg.RoleId))
|
|
|
// 所有业务处室分办单位可查看所有合同 TODO 待确认
|
|
|
- var settingProf auditsetting.Base_OilAuditSetting
|
|
|
- wherePAudit := "AuditStepCode='PROF_RECE'"
|
|
|
- orgSvc.GetEntity(&settingProf, wherePAudit) // PROF_AUDIT
|
|
|
- res2 := orgSvc.UserInRoleById(this.User.Id, strconv.Itoa(settingProf.RoleId))
|
|
|
- if !res1 && !res2 {
|
|
|
+ //var settingProf auditsetting.Base_OilAuditSetting
|
|
|
+ //wherePAudit := "AuditStepCode='PROF_RECE'"
|
|
|
+ //orgSvc.GetEntity(&settingProf, wherePAudit) // PROF_AUDIT
|
|
|
+ //res2 := orgSvc.UserInRoleById(this.User.Id, strconv.Itoa(settingProf.RoleId))
|
|
|
+ if !res1 {
|
|
|
where = where + " and a.SecondUnit= " + strconv.Itoa(this.User.UnitId)
|
|
|
}
|
|
|
|