|
@@ -577,12 +577,21 @@ func (this *OilSupplierCertController) AuditEntity() {
|
|
|
AuditRemark := this.GetString("AuditRemark")
|
|
AuditRemark := this.GetString("AuditRemark")
|
|
|
secondAudit := this.GetString("SecondAudit")
|
|
secondAudit := this.GetString("SecondAudit")
|
|
|
thirdAudit := this.GetString("ThirdAudit")
|
|
thirdAudit := this.GetString("ThirdAudit")
|
|
|
|
|
+ typeCode := this.GetString("TypeCode")
|
|
|
|
|
|
|
|
var setting auditsetting.Base_OilAuditSetting
|
|
var setting auditsetting.Base_OilAuditSetting
|
|
|
var userlist []userRole.Base_User
|
|
var userlist []userRole.Base_User
|
|
|
usvc := userRole.GetUserService(utils.DBE)
|
|
usvc := userRole.GetUserService(utils.DBE)
|
|
|
|
|
+ where := ""
|
|
|
if this.User.IsCompanyUser == 1 {
|
|
if this.User.IsCompanyUser == 1 {
|
|
|
- where := "AuditStepCode='" + workflow.SUB_OFFICE + "'"
|
|
|
|
|
|
|
+ if typeCode == "01" {
|
|
|
|
|
+ where = "AuditStepCode='" + workflow.SUB_OFFICE_WZ + "'"
|
|
|
|
|
+ } else if typeCode == "02" {
|
|
|
|
|
+ where = "AuditStepCode='" + workflow.SUB_OFFICE_JS + "'"
|
|
|
|
|
+
|
|
|
|
|
+ } else if typeCode == "03" {
|
|
|
|
|
+ where = "AuditStepCode='" + workflow.SUB_OFFICE_JF + "'"
|
|
|
|
|
+ }
|
|
|
usvc.GetEntity(&setting, where)
|
|
usvc.GetEntity(&setting, where)
|
|
|
ids := usvc.GetUserIdsByRoleId(strconv.Itoa(setting.RoleId))
|
|
ids := usvc.GetUserIdsByRoleId(strconv.Itoa(setting.RoleId))
|
|
|
tempstr := strings.Join(ids, ",")
|
|
tempstr := strings.Join(ids, ",")
|