|
@@ -188,13 +188,17 @@ func Read_UserWorkOrder_List(T_uuid string, page int, page_z int) (t []WorkOrder
|
|
return t, cnt
|
|
return t, cnt
|
|
}
|
|
}
|
|
|
|
|
|
-func Read_WorkOrder_ALL_T_State_Count(T_pids string, T_handle int) (cnt int64) {
|
|
|
|
|
|
+func Read_WorkOrder_ALL_T_State_Count(T_pids string, T_handle int, Time_start string) (cnt int64) {
|
|
o := orm.NewOrm()
|
|
o := orm.NewOrm()
|
|
qs := o.QueryTable(new(WorkOrder))
|
|
qs := o.QueryTable(new(WorkOrder))
|
|
cond := orm.NewCondition()
|
|
cond := orm.NewCondition()
|
|
|
|
|
|
cond1 := cond.And("T_State__gt", 0)
|
|
cond1 := cond.And("T_State__gt", 0)
|
|
|
|
|
|
|
|
+ if len(Time_start) > 0 {
|
|
|
|
+ cond1 = cond1.And("CreateTime__gte", Time_start)
|
|
|
|
+ }
|
|
|
|
+
|
|
if len(T_pids) > 0 && T_pids != "*" {
|
|
if len(T_pids) > 0 && T_pids != "*" {
|
|
list := lib.SplitStringIds(T_pids, "P")
|
|
list := lib.SplitStringIds(T_pids, "P")
|
|
cond1 = cond1.And("T_pid__in", list)
|
|
cond1 = cond1.And("T_pid__in", list)
|