|
@@ -330,3 +330,27 @@ func (this *OilSupplierCertListenerController) GetPrePayer() {
|
|
|
this.Data["json"] = approverIds
|
|
this.Data["json"] = approverIds
|
|
|
this.ServeJSON()
|
|
this.ServeJSON()
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+// @Title 审批驳回--回调
|
|
|
|
|
+// @Description get user by token
|
|
|
|
|
+// @Success 200 {string} string
|
|
|
|
|
+// @router /approval-refuse [get]
|
|
|
|
|
+func (this *OilSupplierCertListenerController) ApprovalRefuse() {
|
|
|
|
|
+ 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.DRAFT_STATUS //重置为草稿状态
|
|
|
|
|
+ certSrv.UpdateEntityByIdCols(supplierCertId, supplierCertEntity, cols)
|
|
|
|
|
+
|
|
|
|
|
+ //创建人即为交费的人员
|
|
|
|
|
+ this.Data["json"] = 1
|
|
|
|
|
+ this.ServeJSON()
|
|
|
|
|
+}
|