|
|
@@ -349,34 +349,6 @@ func (this *OilSupplierCertListenerController) GetStorageAuditor() {
|
|
|
// @Success 200 {string} string
|
|
|
// @router /workflow-end [get]
|
|
|
func (this *OilSupplierCertListenerController) WorkflowEndAudit() {
|
|
|
- businessKey := this.GetString("businessKey")
|
|
|
- supplierCertId := strings.Split(businessKey, "-")[0]
|
|
|
- result := this.GetString("result")
|
|
|
- certSrv := suppliercert.GetOilSupplierCertService(utils.DBE)
|
|
|
- var supplierCertEntity suppliercert.OilSupplierCert
|
|
|
- certSrv.GetEntityById(supplierCertId, &supplierCertEntity)
|
|
|
-
|
|
|
- cols := []string{
|
|
|
- "Id",
|
|
|
- "Status",
|
|
|
- "ApplyTime",
|
|
|
- "InFlag",
|
|
|
- "StorageOn",
|
|
|
- "ModifiedOn",
|
|
|
- }
|
|
|
- //进入此步骤,记录在数据库中
|
|
|
- if result == "1" {
|
|
|
- supplierCertEntity.Status = suppliercert.STORE_STATUS // 7 已入库
|
|
|
- } else {
|
|
|
- supplierCertEntity.Status = suppliercert.NO_STOREING_STATUS // -7 待入库未通过
|
|
|
- }
|
|
|
-
|
|
|
- supplierCertEntity.StorageOn = time.Now()
|
|
|
- supplierCertEntity.ApplyTime = time.Now().AddDate(1, 0, 0)
|
|
|
- supplierCertEntity.InFlag = "1"
|
|
|
- supplierCertEntity.ModifiedOn = time.Now()
|
|
|
- certSrv.UpdateEntityByIdCols(supplierCertId, supplierCertEntity, cols)
|
|
|
-
|
|
|
this.Data["json"] = 1
|
|
|
this.ServeJSON()
|
|
|
}
|