|
|
@@ -938,19 +938,18 @@ func (this *OilSupplierCertController) AuditEntityFir() {
|
|
|
usvc := userRole.GetUserService(utils.DBE)
|
|
|
|
|
|
if supplierCertEntity.InStyle == "3"{
|
|
|
- status = suppliercert.CENT_AUDIT_STATUS
|
|
|
- where := "AuditStepCode='" + workflow.PROF_REGULATION + "'"
|
|
|
+ status = suppliercert.THIRD_TRIAL_STATUS
|
|
|
+ where := "AuditStepCode='" + workflow.PROF_RECE + "'"
|
|
|
usvc.GetEntity(&setting, where)
|
|
|
- paramSvc := baseparameter.GetBaseparameterService(utils.DBE)
|
|
|
- topid := paramSvc.GetBaseparameterMessage("", "paramset", "CENT_AUDIT")
|
|
|
ids := usvc.GetUserIdsByRoleId(strconv.Itoa(setting.RoleId))
|
|
|
tempstr := strings.Join(ids, ",")
|
|
|
uids := strings.Replace(tempstr, "uid_", "", -1)
|
|
|
uids = strings.Trim(uids, ",")
|
|
|
if uids != "" {
|
|
|
- where := "Id in (" + uids + ")" + " and UnitId=" + topid
|
|
|
+ where := "Id in (" + uids + ")" + " and UnitId=" + strconv.Itoa(supplierCertEntity.ThirdAudit)
|
|
|
usvc.GetEntities(&userlist, where)
|
|
|
}
|
|
|
+
|
|
|
} else if supplierCertEntity.InStyle == "2" || supplierCertEntity.InStyle == "4" || supplierCertEntity.InStyle == "6" {
|
|
|
|
|
|
svcActiviti := workflow.GetActivitiService(utils.DBE)
|