2 Commits 3592574909 ... f6ebd3a30e

Autor SHA1 Mensaje Fecha
  zoie f6ebd3a30e add:采购管理添加导出接口 hace 3 días
  zoie 3592574909 add:采购管理添加导出接口 hace 3 días
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      models/Purchase/Purchase.go

+ 1 - 1
models/Purchase/Purchase.go

@@ -299,7 +299,7 @@ func (dao *PurchaseDaoImpl) Read_Purchase_Stat(T_dept, T_uid, T_approver string,
 	cond := orm.NewCondition()
 	cond1 := cond.And("T_State__gt", Delete)
 	if isManager {
-		cond = cond.And("T_State__in", []int{WaitPurchase, PurchaseCompleted})
+		cond1 = cond1.And("T_State__in", []int{WaitPurchase, PurchaseCompleted})
 	}
 	if len(T_uid) > 0 {
 		cond1 = cond1.AndCond(cond.Or("T_uuid", T_uid).Or("T_submit", T_uid))