|
@@ -1624,6 +1624,12 @@ func FindOrgConfigRangeTypeValue(user_org_id int64, project_id int64, item_id in
|
1624
|
1624
|
return
|
1625
|
1625
|
}
|
1626
|
1626
|
|
|
1627
|
+func FindOrgConfigRangeTypeValueTwo(user_org_id int64, project_id int64, item_id int64) (qcs models.InspectionReference, err error) {
|
|
1628
|
+ db := service.XTReadDB()
|
|
1629
|
+ err = db.Model(&models.InspectionReference{}).Where("status = 1 AND org_id = ? AND project_id = ? AND id = ?", user_org_id, project_id, item_id).First(&qcs).Error
|
|
1630
|
+ return
|
|
1631
|
+}
|
|
1632
|
+
|
1627
|
1633
|
func GetInspectionChartData(user_org_id int64, start_time int64, end_time int64, project_id int64, item_id int64, range_type int, range_value string) (item []*otherItemAmount, err error) {
|
1628
|
1634
|
db := service.XTReadDB()
|
1629
|
1635
|
var items []*otherItemAmount
|