|
@@ -102,7 +102,7 @@ func (f *Front) RemarkDetail() {
|
|
|
f.T["worder_new"] = rep["worder_new"]
|
|
|
f.T["pcl_new"] = rep["pcl_new"]
|
|
|
f.T["pkg_new"] = rep["pkg_new"]
|
|
|
- f.T["nextid"] = GetNextDataId(did, coll) //下一条id
|
|
|
+ f.T["nextid"] = GetNextDataId(did, coll, pid) //下一条id
|
|
|
_ = f.Render("project/remark_detail.html", &f.T)
|
|
|
}
|
|
|
|
|
@@ -524,13 +524,15 @@ func DealData(tmpLen int, publishtime float64, tmp []map[string]interface{}, mor
|
|
|
}
|
|
|
|
|
|
//获取当前数据下一条的id
|
|
|
-func GetNextDataId(id, coll string) string {
|
|
|
+func GetNextDataId(id, coll, tid string) string {
|
|
|
nextIdQuery := map[string]interface{}{
|
|
|
"_id": map[string]interface{}{
|
|
|
"$gt": mgo.StringTOBsonId(id),
|
|
|
},
|
|
|
}
|
|
|
-
|
|
|
+ if tid != "" {
|
|
|
+ nextIdQuery["s_usertaskid"] = tid
|
|
|
+ }
|
|
|
one, _ := util.Mgo.Find(coll, nextIdQuery, `{"_id":1}`, `{"_id":1}`, true, 0, 1)
|
|
|
if one != nil && len(*one) == 1 {
|
|
|
return mgo.BsonIdToSId((*one)[0]["_id"])
|
|
@@ -705,7 +707,7 @@ func (f *Front) CheckDetail() {
|
|
|
f.T["worder_new"] = rep["worder_new"]
|
|
|
f.T["pcl_new"] = rep["pcl_new"]
|
|
|
f.T["pkg_new"] = rep["pkg_new"]
|
|
|
- f.T["nextid"] = GetNextDataId(did, coll) //下一条id
|
|
|
+ f.T["nextid"] = GetNextDataId(did, coll, tid) //下一条id
|
|
|
_ = f.Render("project/check_detail.html", &f.T)
|
|
|
}
|
|
|
|