|
@@ -90,3 +90,73 @@ func (this *OilSupplierCertListenerController) PreSecondTrail() {
|
|
|
this.Data["json"] = approverIds
|
|
this.Data["json"] = approverIds
|
|
|
this.ServeJSON()
|
|
this.ServeJSON()
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+// @Title 获取业务处室接收分办人员列表 --回调
|
|
|
|
|
+// @Description get user by token
|
|
|
|
|
+// @Success 200 {string} string
|
|
|
|
|
+// @router /pre-third-trail [get]
|
|
|
|
|
+func (this *OilSupplierCertListenerController) PreThirdTrialStatus () {
|
|
|
|
|
+ businessKey := this.GetString("businessKey")
|
|
|
|
|
+ supplierCertId := strings.Split(businessKey, "_")[0]
|
|
|
|
|
+
|
|
|
|
|
+ certSrv := suppliercert.GetOilSupplierCertService(utils.DBE)
|
|
|
|
|
+ var supplierCertEntity suppliercert.OilSupplierCert
|
|
|
|
|
+ certSrv.GetEntityById(supplierCertId, &supplierCertEntity)
|
|
|
|
|
+ cols := []string{
|
|
|
|
|
+ "Id",
|
|
|
|
|
+ "Status",
|
|
|
|
|
+ }
|
|
|
|
|
+ //进入此步骤,记录在数据库中
|
|
|
|
|
+ supplierCertEntity.Status = suppliercert.THIRD_TRIAL_STATUS ////专业处接收
|
|
|
|
|
+ certSrv.UpdateEntityByIdCols(supplierCertId, supplierCertEntity, cols)
|
|
|
|
|
+
|
|
|
|
|
+ //查出业务处室接收分办的人员
|
|
|
|
|
+ stepCode := workflow.PROF_RECE //专业处室接收
|
|
|
|
|
+ auditSettingService := auditsetting.GetOilAuditSettingService(utils.DBE)
|
|
|
|
|
+ approverIds := auditSettingService.GetApproverIdsByStepCodeAndUnitId(stepCode, supplierCertEntity.CommitComId)
|
|
|
|
|
+ this.Data["json"] = approverIds
|
|
|
|
|
+ this.ServeJSON()
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// @Title 获取业务处室专业审批人员列表--回调
|
|
|
|
|
+// @Description get user by token
|
|
|
|
|
+// @Success 200 {string} string
|
|
|
|
|
+// @router /pre-prof-audit [get]
|
|
|
|
|
+func (this *OilSupplierCertListenerController) PreProfAudit() {
|
|
|
|
|
+ businessKey := this.GetString("businessKey")
|
|
|
|
|
+ supplierCertId := strings.Split(businessKey, "_")[0]
|
|
|
|
|
+
|
|
|
|
|
+ certSrv := suppliercert.GetOilSupplierCertService(utils.DBE)
|
|
|
|
|
+ var supplierCertEntity suppliercert.OilSupplierCert
|
|
|
|
|
+ certSrv.GetEntityById(supplierCertId, &supplierCertEntity)
|
|
|
|
|
+ cols := []string{
|
|
|
|
|
+ "Id",
|
|
|
|
|
+ "Status",
|
|
|
|
|
+ }
|
|
|
|
|
+ //进入此步骤,记录在数据库中
|
|
|
|
|
+ supplierCertEntity.Status = suppliercert.PROF_AUDIT_STATUS //业务处室专业审批
|
|
|
|
|
+ certSrv.UpdateEntityByIdCols(supplierCertId, supplierCertEntity, cols)
|
|
|
|
|
+
|
|
|
|
|
+ //查出业务处室接收分办的人员
|
|
|
|
|
+ stepCode := workflow.PROF_AUDIT
|
|
|
|
|
+ auditSettingService := auditsetting.GetOilAuditSettingService(utils.DBE)
|
|
|
|
|
+ approverIds := auditSettingService.GetApproverIdsByStepCodeAndUnitId(stepCode, supplierCertEntity.CommitComId)
|
|
|
|
|
+ this.Data["json"] = approverIds
|
|
|
|
|
+ this.ServeJSON()
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// @Title 查询是否交费--回调
|
|
|
|
|
+// @Description get user by token
|
|
|
|
|
+// @Success 200 {string} string
|
|
|
|
|
+// @router /check-need-pay [get]
|
|
|
|
|
+func (this *OilSupplierCertListenerController) CheckNeedPay() {
|
|
|
|
|
+ businessKey := this.GetString("businessKey")
|
|
|
|
|
+ supplierCertId := strings.Split(businessKey, "_")[0]
|
|
|
|
|
+
|
|
|
|
|
+ certSrv := suppliercert.GetOilSupplierCertService(utils.DBE)
|
|
|
|
|
+ var supplierCertEntity suppliercert.OilSupplierCert
|
|
|
|
|
+ certSrv.GetEntityById(supplierCertId, &supplierCertEntity)
|
|
|
|
|
+
|
|
|
|
|
+ this.Data["json"] = "1"
|
|
|
|
|
+ this.ServeJSON()
|
|
|
|
|
+}
|