2025-07-17 16:19:19 +08:00
|
|
|
|
import 'dart:io';
|
|
|
|
|
|
2025-07-15 08:32:50 +08:00
|
|
|
|
import 'package:dio/dio.dart';
|
2025-08-06 09:19:51 +08:00
|
|
|
|
import 'package:qhd_prevention/pages/app/Danger_paicha/check_information_one_item.dart';
|
2025-07-15 08:32:50 +08:00
|
|
|
|
import 'package:qhd_prevention/tools/tools.dart';
|
|
|
|
|
|
|
|
|
|
import 'HttpManager.dart';
|
|
|
|
|
|
|
|
|
|
class ApiService {
|
2025-07-18 17:33:37 +08:00
|
|
|
|
// static const String basePath = "http://192.168.0.25:28199/";
|
|
|
|
|
// static const String basePath = "http://192.168.20.240:8500/integrated_whb";
|
|
|
|
|
// static const String baseFacePath = "http://192.168.0.25:38199/";
|
2025-07-30 10:47:52 +08:00
|
|
|
|
// ///人脸识别服务
|
2025-07-18 17:33:37 +08:00
|
|
|
|
// static const String baseFacePath = "https://qaaqwh.qhdsafety.com/whb_stu_face/";
|
2025-07-18 17:13:38 +08:00
|
|
|
|
|
2025-07-18 17:33:37 +08:00
|
|
|
|
// static const String basePath = "https://qaaqwh.qhdsafety.com/integrated_whb/";
|
|
|
|
|
// static const String baseImgPath = "https://file.zcloudchina.com/YTHFile";
|
|
|
|
|
// static const String adminPath = "https://qaaqwh.qhdsafety.com/integrated_whb/";
|
|
|
|
|
// static const String projectManagerUrl = 'https://pm.qhdsafety.com/zy-projectManage/';
|
|
|
|
|
// static const String publicKey = 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDUoHAavCikaZxjlDM6Km8cX+ye78F4oF39AcEfnE1p2Yn9pJ9WFxYZ4Vkh6F8SKMi7k4nYsKceqB1RwG996SvHQ5C3pM3nbXCP4K15ad6QhN4a7lzlbLhiJcyIKszvvK8ncUDw8mVQ0j/2mwxv05yH6LN9OKU6Hzm1ninpWeE+awIDAQAB'
|
2025-07-15 08:32:50 +08:00
|
|
|
|
/// 人脸识别服务
|
|
|
|
|
static const String baseFacePath =
|
|
|
|
|
"https://qaaqwh.qhdsafety.com/whb_stu_face/";
|
|
|
|
|
|
|
|
|
|
/// 登录及其他管理后台接口
|
2025-07-18 17:33:37 +08:00
|
|
|
|
static const String basePath = "https://qaaqwh.qhdsafety.com/integrated_whb";
|
2025-07-15 08:32:50 +08:00
|
|
|
|
|
|
|
|
|
/// 图片文件服务
|
|
|
|
|
static const String baseImgPath = "https://file.zcloudchina.com/YTHFile";
|
|
|
|
|
|
|
|
|
|
/// 管理后台统一路径
|
|
|
|
|
static const String adminPath =
|
|
|
|
|
"https://qaaqwh.qhdsafety.com/integrated_whb/";
|
|
|
|
|
|
|
|
|
|
/// 项目管理系统
|
|
|
|
|
static const String projectManagerUrl =
|
|
|
|
|
'https://pm.qhdsafety.com/zy-projectManage';
|
|
|
|
|
|
2025-07-18 17:33:37 +08:00
|
|
|
|
// /// 人脸识别服务
|
|
|
|
|
// static const String baseFacePath =
|
|
|
|
|
// "https://qaaqwh.qhdsafety.com/whb_stu_face/";
|
|
|
|
|
//
|
|
|
|
|
// /// 登录及其他管理后台接口
|
|
|
|
|
// static const String basePath = "http://192.168.20.240:8500/integrated_whb/";
|
|
|
|
|
//
|
|
|
|
|
// /// 图片文件服务
|
|
|
|
|
// static const String baseImgPath = "https://file.zcloudchina.com/YTHFile";
|
|
|
|
|
//
|
|
|
|
|
// /// 管理后台统一路径
|
|
|
|
|
// static const String adminPath =
|
|
|
|
|
// "https://qaaqwh.qhdsafety.com/integrated_whb/";
|
|
|
|
|
//
|
|
|
|
|
// /// 项目管理系统
|
|
|
|
|
// static const String projectManagerUrl =
|
|
|
|
|
// 'https://pm.qhdsafety.com/zy-projectManage';
|
|
|
|
|
|
|
|
|
|
|
2025-07-15 08:32:50 +08:00
|
|
|
|
/// RSA 公钥
|
|
|
|
|
static const publicKey = '''
|
|
|
|
|
-----BEGIN PUBLIC KEY-----
|
|
|
|
|
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDUoHAavCikaZxjlDM6Km8cX+ye
|
|
|
|
|
78F4oF39AcEfnE1p2Yn9pJ9WFxYZ4Vkh6F8SKMi7k4nYsKceqB1RwG996SvHQ5C3p
|
|
|
|
|
M3nbXCP4K15ad6QhN4a7lzlbLhiJcyIKszvvK8ncUDw8mVQ0j/2mwxv05yH6LN9OK
|
|
|
|
|
U6Hzm1ninpWeE+awIDAQAB
|
|
|
|
|
-----END PUBLIC KEY-----
|
|
|
|
|
''';
|
|
|
|
|
|
2025-07-18 17:33:37 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-07-15 08:32:50 +08:00
|
|
|
|
/// 登录验证接口
|
|
|
|
|
static Future<Map<String, dynamic>> loginCheck(String keydataVal) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/admin/check',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
'KEYDATA': keydataVal,
|
|
|
|
|
'SOURCE': '2',
|
|
|
|
|
'tm': DateTime.now().millisecondsSinceEpoch.toString(),
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-16 08:37:08 +08:00
|
|
|
|
/// TODO -------------–-------------------- 首页 -------------–--------------------
|
2025-07-15 08:32:50 +08:00
|
|
|
|
/// 我的工作
|
|
|
|
|
static Future<Map<String, dynamic>> getWork() {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/hidden/getCountByUserId',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
'userId': SessionService.instance.loginUserId,
|
|
|
|
|
'USER_NAME': SessionService.instance.username,
|
|
|
|
|
'CHECK_DEPARTMENT_ID': SessionService.instance.deptId,
|
|
|
|
|
'IS_MAIN': SessionService.instance.isRest,
|
|
|
|
|
'CORPINFO_ID': SessionService.instance.corpinfoId,
|
|
|
|
|
'USER_ID': SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-16 08:37:08 +08:00
|
|
|
|
/// 特殊作业红点数量
|
2025-07-15 08:32:50 +08:00
|
|
|
|
static Future<Map<String, dynamic>> getRedPoint() {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/eightwork/checkWork',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {'USER_ID': SessionService.instance.loginUserId},
|
|
|
|
|
);
|
|
|
|
|
}
|
2025-07-24 09:38:06 +08:00
|
|
|
|
/// 通知红点数量
|
|
|
|
|
static Future<Map<String, dynamic>> getNotifRedPoint() {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/notice/getRedPoint',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
'USER_ID': SessionService.instance.loginUserId,
|
|
|
|
|
'CORPINFO_ID': SessionService.instance.corpinfoId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
2025-07-15 08:32:50 +08:00
|
|
|
|
|
2025-07-24 09:38:06 +08:00
|
|
|
|
/// 排查数据(我的)
|
2025-07-15 08:32:50 +08:00
|
|
|
|
static Future<Map<String, dynamic>> getUserData() {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/hidden/getUserIndexData',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
'userId': SessionService.instance.loginUserId,
|
|
|
|
|
'USER_NAME': SessionService.instance.username,
|
|
|
|
|
'CHECK_DEPARTMENT_ID': SessionService.instance.deptId,
|
|
|
|
|
'IS_MAIN': SessionService.instance.isRest,
|
|
|
|
|
'CORPINFO_ID': SessionService.instance.corpinfoId,
|
|
|
|
|
'USER_ID': SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
2025-07-24 09:38:06 +08:00
|
|
|
|
/// 排查数据(部门)
|
|
|
|
|
static Future<Map<String, dynamic>> getDeptData() {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/hidden/getDeptIndexData',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
'userId': SessionService.instance.loginUserId,
|
|
|
|
|
'USER_NAME': SessionService.instance.username,
|
|
|
|
|
'DEPARTMENT_ID': SessionService.instance.deptId,
|
|
|
|
|
'IS_MAIN': SessionService.instance.isRest,
|
|
|
|
|
'CORPINFO_ID': SessionService.instance.corpinfoId,
|
|
|
|
|
'USER_ID': SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
/// 排查数据(监管)
|
|
|
|
|
static Future<Map<String, dynamic>> getSuperviseDeptData() {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/hidden/getSuperviseDeptIndexData',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
'userId': SessionService.instance.loginUserId,
|
|
|
|
|
'USER_NAME': SessionService.instance.username,
|
|
|
|
|
'DEPARTMENT_ID': SessionService.instance.deptId,
|
|
|
|
|
'IS_MAIN': SessionService.instance.isRest,
|
|
|
|
|
'CORPINFO_ID': SessionService.instance.corpinfoId,
|
|
|
|
|
'USER_ID': SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
2025-07-16 08:37:08 +08:00
|
|
|
|
/// 安全检查
|
2025-07-15 08:32:50 +08:00
|
|
|
|
static Future<Map<String, dynamic>> getSafetyEnvironmentalInspectionCount() {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/safetyenvironmental/countCheck',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
'CORPINFO_ID': SessionService.instance.corpinfoId,
|
|
|
|
|
'INSPECTION_USER_ID': SessionService.instance.loginUserId,
|
|
|
|
|
'INSPECTED_SITEUSER_ID': SessionService.instance.loginUserId,
|
|
|
|
|
'INSPECTION_ORIGINATOR_ID': SessionService.instance.loginUserId,
|
|
|
|
|
'tm': DateTime.now().millisecondsSinceEpoch.toString(),
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static Future<Map<String, dynamic>> getUpdateInfo() {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
projectManagerUrl,
|
|
|
|
|
'/projectDetails/findUpdate?code=cloud&type=APP',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 月隐患 1 月隐患,2年隐患
|
|
|
|
|
static Future<Map<String, dynamic>> getDanger(int type) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/hidden/getIndexCount',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
'userId': SessionService.instance.loginUserId,
|
|
|
|
|
'CORPINFO_ID': SessionService.instance.corpinfoId,
|
|
|
|
|
(type == 1 ? 'IS_MONTH' : 'IS_YEAR'): '1',
|
|
|
|
|
'USER_ID': SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static Future<Map<String, dynamic>> getSurveyData() {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/survey/goEdit',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
'CORPINFO_ID': SessionService.instance.corpinfoId,
|
|
|
|
|
'USER_ID': SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static Future<Map<String, dynamic>> getUserId() {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/surveyanswer/getUserId',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
'CORPINFO_ID': SessionService.instance.corpinfoId,
|
|
|
|
|
'USER_ID': SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
/// 获取清单数量
|
|
|
|
|
static Future<Map<String, dynamic>> getListData() {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/listmanager/checkList',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
'userId': SessionService.instance.loginUserId,
|
|
|
|
|
'USER_NAME': SessionService.instance.username,
|
|
|
|
|
'CHECK_DEPARTMENT_ID': SessionService.instance.deptId,
|
|
|
|
|
'IS_MAIN': SessionService.instance.isRest,
|
|
|
|
|
'CORPINFO_ID': SessionService.instance.corpinfoId,
|
|
|
|
|
'USER_ID': SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
/// 获取滚动隐患
|
|
|
|
|
static Future<Map<String, dynamic>> getHiddenRoll() {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/hidden/getHiddenByCorp',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
'CORPINFO_ID': SessionService.instance.corpinfoId,
|
|
|
|
|
'HIDDENLEVEL': 'hiddenLevel0001',
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static Future<Map<String, dynamic>> getIsRest() {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/hidden/getHiddenByCorp',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
'CORPINFO_ID': SessionService.instance.corpinfoId,
|
|
|
|
|
'USER_ID': SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
2025-07-16 08:37:08 +08:00
|
|
|
|
/// TODO -------------–-------------------- 首页学习园地 -------------–--------------------
|
|
|
|
|
/// 我的任务列表
|
|
|
|
|
static Future<Map<String, dynamic>> getStudyList(int page) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/edu/stagestudentrelation/pageTaskByUser',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
'CORPINFO_ID': SessionService.instance.corpinfoId,
|
|
|
|
|
'USER_ID': SessionService.instance.loginUserId,
|
|
|
|
|
'showCount':10,
|
|
|
|
|
'currentPage':page
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
/// 课程列表
|
|
|
|
|
static Future<Map<String, dynamic>> getClassList(String classId, String POST_ID) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/edu/stagestudentrelation/getClassCurriculum',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
'CORPINFO_ID': SessionService.instance.corpinfoId,
|
|
|
|
|
'USER_ID': SessionService.instance.loginUserId,
|
|
|
|
|
'showCount':9999,
|
|
|
|
|
'currentPage':1,
|
|
|
|
|
'CLASS_ID' : classId,
|
|
|
|
|
'POST_ID' : POST_ID
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
2025-07-17 16:10:46 +08:00
|
|
|
|
/// 学习详情视频列表
|
|
|
|
|
static Future<Map<String, dynamic>> getStudyDetailList(String CLASS_ID, String CLASSCURRICULUM_ID, String STUDENT_ID) {
|
|
|
|
|
print(CLASS_ID + '---' + CLASSCURRICULUM_ID + '---' + STUDENT_ID+ '---' + SessionService.instance.corpinfoId! + '---' + SessionService.instance.loginUserId!);
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/edu/stagestudentrelation/getMyTask',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
'CLASSCURRICULUM_ID': CLASSCURRICULUM_ID,
|
|
|
|
|
'CLASS_ID' : CLASS_ID,
|
|
|
|
|
'STUDENT_ID':STUDENT_ID,
|
|
|
|
|
'CORPINFO_ID': SessionService.instance.corpinfoId,
|
|
|
|
|
'USER_ID': SessionService.instance.loginUserId,
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
2025-07-22 13:34:34 +08:00
|
|
|
|
|
|
|
|
|
/// 获取视频信息
|
2025-07-17 16:10:46 +08:00
|
|
|
|
static Future<Map<String, dynamic>> fnGetVideoPlayInfo(String VIDEOCOURSEWARE_ID) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/edu/audioOrVideo/getVideoPlayInfoApp',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
'VIDEOCOURSEWARE_ID': VIDEOCOURSEWARE_ID,
|
|
|
|
|
'CORPINFO_ID': SessionService.instance.corpinfoId,
|
|
|
|
|
'USER_ID': SessionService.instance.loginUserId,
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
2025-07-18 17:33:37 +08:00
|
|
|
|
static Future<Map<String, dynamic>> fnSetUserFaceTime(int FACE_TIME) {
|
2025-07-17 16:10:46 +08:00
|
|
|
|
return HttpManager().request(
|
|
|
|
|
baseFacePath,
|
|
|
|
|
'/app/user/setUserFaceTime',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
'loading':false,
|
|
|
|
|
'FACE_TIME': FACE_TIME,
|
|
|
|
|
'CORPINFO_ID': SessionService.instance.corpinfoId,
|
|
|
|
|
'USER_ID': SessionService.instance.loginUserId,
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
2025-07-18 17:13:38 +08:00
|
|
|
|
static Future<Map<String, dynamic>> fnGetUserFaceTime(int FACE_TIME) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
baseFacePath,
|
|
|
|
|
'/app/user/getUserFaceTime',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
'loading':false,
|
|
|
|
|
'FACE_TIME': FACE_TIME,
|
|
|
|
|
'CORPINFO_ID': SessionService.instance.corpinfoId,
|
|
|
|
|
'USER_ID': SessionService.instance.loginUserId,
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
/// 清除人脸时间
|
|
|
|
|
static Future<Map<String, dynamic>> fnClearUserFaceTime() {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
baseFacePath,
|
|
|
|
|
'/app/user/clearUserFaceTime',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
'loading':false,
|
|
|
|
|
'CORPINFO_ID': SessionService.instance.corpinfoId,
|
|
|
|
|
'USER_ID': SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-17 16:10:46 +08:00
|
|
|
|
static Future<Map<String, dynamic>> fnGetVideoPlayProgress(String VIDEOCOURSEWARE_ID, String CURRICULUM_ID, String CLASS_ID, String STUDENT_ID) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/edu/coursestudyvideorecord/getVideoProgress',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
'VIDEOCOURSEWARE_ID': VIDEOCOURSEWARE_ID,
|
|
|
|
|
'CURRICULUM_ID' : CURRICULUM_ID,
|
|
|
|
|
'CLASS_ID':CLASS_ID,
|
|
|
|
|
'STUDENT_ID':STUDENT_ID,
|
|
|
|
|
'CORPINFO_ID': SessionService.instance.corpinfoId,
|
|
|
|
|
'USER_ID': SessionService.instance.loginUserId,
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
/// 上报播放进度或结束
|
|
|
|
|
static Future<Map<String, dynamic>> fnSubmitPlayTime(String VIDEOCOURSEWARE_ID, String CURRICULUM_ID,String IS_END,int RESOURCETIME,String CHAPTER_ID,String STUDENT_ID,String CLASSCURRICULUM_ID, String CLASS_ID) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/edu/coursestudyvideorecord/save',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
'VIDEOCOURSEWARE_ID': VIDEOCOURSEWARE_ID,
|
|
|
|
|
'CURRICULUM_ID': CURRICULUM_ID,
|
|
|
|
|
'CHAPTER_ID': CHAPTER_ID,
|
|
|
|
|
'RESOURCETIME': RESOURCETIME,
|
|
|
|
|
'IS_END':IS_END,
|
|
|
|
|
'CLASS_ID': CLASS_ID,
|
|
|
|
|
'CLASSCURRICULUM_ID': CLASSCURRICULUM_ID,
|
|
|
|
|
'STUDENT_ID': STUDENT_ID,
|
|
|
|
|
'loading': false,
|
2025-07-18 17:33:37 +08:00
|
|
|
|
'USER_NAME': SessionService.instance.username,
|
2025-07-17 16:10:46 +08:00
|
|
|
|
'CORPINFO_ID': SessionService.instance.corpinfoId,
|
|
|
|
|
'USER_ID': SessionService.instance.loginUserId,
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
/// 人脸比对上传接口
|
|
|
|
|
///
|
|
|
|
|
/// [imagePath] 本地图片文件路径
|
|
|
|
|
/// 返回后端完整 JSON
|
|
|
|
|
static Future<Map<String, dynamic>> getUserFace(String imagePath, String studentId) async {
|
|
|
|
|
final file = File(imagePath);
|
|
|
|
|
if (!await file.exists()) {
|
|
|
|
|
throw ApiException('file_not_found', '图片不存在:$imagePath');
|
|
|
|
|
}
|
|
|
|
|
final fileName = file.path.split(Platform.pathSeparator).last;
|
|
|
|
|
|
|
|
|
|
return HttpManager().uploadFaceImage(
|
|
|
|
|
baseUrl: baseFacePath,
|
|
|
|
|
path: '/app/user/compareFaceForH5V2',
|
|
|
|
|
fromData: {
|
|
|
|
|
'USER_ID' : SessionService.instance.loginUserId,
|
|
|
|
|
'STUDENT_ID' : studentId,
|
|
|
|
|
'CORPINFO_ID' : SessionService.instance.corpinfoId,
|
|
|
|
|
'FFILE' : await MultipartFile.fromFile(
|
|
|
|
|
file.path,
|
|
|
|
|
filename: fileName
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
/// 签名上传
|
|
|
|
|
static Future<Map<String, dynamic>> signUpdate(String signBase64, String CLASS_ID, String STAGESTUDENTRELATION_ID) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/edu/stagestudentrelation/sign',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
'FFILE':signBase64,
|
|
|
|
|
'STUDYSTATE':1,
|
|
|
|
|
'CLASS_ID' : CLASS_ID,
|
|
|
|
|
'STAGESTUDENTRELATION_ID': STAGESTUDENTRELATION_ID,
|
|
|
|
|
'OPERATOR': SessionService.instance.username,
|
|
|
|
|
'USER_ID': SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-22 13:34:34 +08:00
|
|
|
|
/// 视频练习
|
|
|
|
|
static Future<Map<String, dynamic>> questionListByVideo(String VIDEOCOURSEWARE_ID) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/edu/question/listAllByVideo',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
'VIDEOCOURSEWARE_ID':VIDEOCOURSEWARE_ID,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 成绩查询
|
|
|
|
|
static Future<Map<String, dynamic>> pageTaskScoreByUser(int showCount, int currentPage) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/edu/stagestudentrelation/pageTaskScoreByUser',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
"showCount": showCount,
|
|
|
|
|
"currentPage": currentPage
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 考试详情
|
|
|
|
|
static Future<Map<String, dynamic>> getExamRecordByStuId(String STUDENT_ID, String CLASS_ID) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/edu/stageexam/getExamRecordByStuId',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"STUDENT_ID":STUDENT_ID,
|
|
|
|
|
"CLASS_ID": CLASS_ID,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
/// 开始考试
|
|
|
|
|
static Future<Map<String, dynamic>> getStartExam(Map data) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/edu/stageexam/getExam',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
...data
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
/// 开始加强考试
|
|
|
|
|
static Future<Map<String, dynamic>> getStartStrengthenExam(Map data) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/edu/stageexam/getStrengthenExam',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
...data
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
/// 加强学习视频
|
|
|
|
|
static Future<Map<String, dynamic>> getListStrengthenVideo(Map data) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/edu/stagestudentrelation/listStrengthenVideo',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
...data
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
/// 考试提交
|
|
|
|
|
static Future<Map<String, dynamic>> submitExam(Map data) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/edu/stageexam/submit',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"USERNAME": SessionService.instance.loginUser?["USERNAME"]??"",
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
...data
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
2025-07-17 16:10:46 +08:00
|
|
|
|
|
2025-07-24 09:38:06 +08:00
|
|
|
|
///TODO -------------–-------------------- 首页特殊作业 -------------–--------------------
|
|
|
|
|
/// 特殊作业
|
|
|
|
|
static Future<Map<String, dynamic>> specialCheckWork() {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/eightwork/checkWork',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
/// 特殊作业分类二级
|
|
|
|
|
static Future<Map<String, dynamic>> specialcheckWorkCount(String path) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/' + path + '/checkWorkCount',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"tm": DateTime.now().millisecondsSinceEpoch,
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
2025-08-06 13:43:22 +08:00
|
|
|
|
/// 筛选数据
|
|
|
|
|
static Future<Map<String, dynamic>> searchGetTaskSetps(int task_id) {
|
2025-07-24 09:38:06 +08:00
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/eightwork/getTaskSetps',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"TASK_ID": task_id,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
2025-08-06 13:43:22 +08:00
|
|
|
|
/// 特殊作业筛选列表
|
|
|
|
|
static Future<Map<String, dynamic>> specialCheckListWorkCount(Map data, String url) {
|
2025-07-24 09:38:06 +08:00
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
url,
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
...data
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
/// 动火删除
|
|
|
|
|
static Future<Map<String, dynamic>> hotworkDelete(String hotworkId) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/hotwork/delete',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
"HOTWORK_ID":hotworkId
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
2025-08-06 13:43:22 +08:00
|
|
|
|
/// 八项作业流程图
|
|
|
|
|
static Future<Map<String, dynamic>> workGetFlowList(String workType,String hotworkId) {
|
|
|
|
|
// 根据 workType 生成对应的字段名,比如 'hotwork' -> 'HOTWORK_ID'
|
|
|
|
|
final idKey = '${workType.toUpperCase()}_ID';
|
2025-07-24 09:38:06 +08:00
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
2025-08-06 13:43:22 +08:00
|
|
|
|
'/app/${workType}/getFlowList',
|
2025-07-24 09:38:06 +08:00
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
2025-08-06 13:43:22 +08:00
|
|
|
|
idKey :hotworkId
|
2025-07-28 14:22:07 +08:00
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
2025-08-06 13:43:22 +08:00
|
|
|
|
|
|
|
|
|
/// 作业详情
|
|
|
|
|
static Future<Map<String, dynamic>> getHomeworkFindById(String workType, String hotworkId) {
|
|
|
|
|
// 根据 workType 生成对应的字段名,比如 'hotwork' -> 'HOTWORK_ID'
|
|
|
|
|
final idKey = '${workType.toUpperCase()}_ID';
|
2025-08-01 16:41:44 +08:00
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
2025-08-06 13:43:22 +08:00
|
|
|
|
'/app/${workType}/findById',
|
2025-08-01 16:41:44 +08:00
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
2025-08-06 13:43:22 +08:00
|
|
|
|
idKey:hotworkId,
|
2025-08-01 16:41:44 +08:00
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
2025-07-28 14:22:07 +08:00
|
|
|
|
/// 提交作业
|
2025-08-01 16:41:44 +08:00
|
|
|
|
static Future<Map<String, dynamic>> submitHomework(String url, Map data) {
|
2025-07-28 14:22:07 +08:00
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
url,
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
...data
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
/// 气体分析详情列表
|
2025-08-06 13:43:22 +08:00
|
|
|
|
static Future<Map<String, dynamic>> workGasList(String workType,String workId) {
|
|
|
|
|
// 根据 workType 生成对应的字段名,比如 'hotwork' -> 'HOTWORK_ID'
|
|
|
|
|
final idKey = '${workType.toUpperCase()}_ID';
|
2025-07-28 14:22:07 +08:00
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
2025-08-06 13:43:22 +08:00
|
|
|
|
'/app/${workType}/gas/list',
|
2025-07-28 14:22:07 +08:00
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
2025-08-06 13:43:22 +08:00
|
|
|
|
idKey:workId,
|
2025-07-28 14:22:07 +08:00
|
|
|
|
"tm": DateTime.now().millisecondsSinceEpoch,
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
/// 气体分析详情列表删除
|
2025-08-06 13:43:22 +08:00
|
|
|
|
static Future<Map<String, dynamic>> workGasDelete(String workType,String workGasId) {
|
|
|
|
|
// 根据 workType 生成对应的字段名,比如 'hotwork' -> 'HOTWORK_ID'
|
|
|
|
|
final idKey = '${workType.toUpperCase()}GAS_ID';
|
2025-07-28 14:22:07 +08:00
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
2025-08-06 13:43:22 +08:00
|
|
|
|
'/app/$workType/gas/delete',
|
2025-07-28 14:22:07 +08:00
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
2025-08-06 13:43:22 +08:00
|
|
|
|
idKey:workGasId,
|
2025-07-28 14:22:07 +08:00
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
2025-08-11 17:40:03 +08:00
|
|
|
|
/// 所有签名列表
|
2025-08-06 13:43:22 +08:00
|
|
|
|
static Future<Map<String, dynamic>> listSignFinished(String workType,String hotworkId) {
|
|
|
|
|
// 根据 workType 生成对应的字段名,比如 'hotwork' -> 'HOTWORK_ID'
|
|
|
|
|
final idKey = '${workType.toUpperCase()}_ID';
|
2025-07-28 14:22:07 +08:00
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
2025-08-06 13:43:22 +08:00
|
|
|
|
'/app/${workType}/listSignFinished',
|
2025-07-28 14:22:07 +08:00
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
2025-08-06 13:43:22 +08:00
|
|
|
|
idKey :hotworkId,
|
2025-07-28 14:22:07 +08:00
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
/// 安全防护措施
|
2025-08-06 13:43:22 +08:00
|
|
|
|
static Future<Map<String, dynamic>> listSignFinishMeasures(String workType,String workId,
|
|
|
|
|
) {
|
|
|
|
|
// 根据 workType 生成对应的字段名,比如 'hotwork' -> 'HOTWORK_ID'
|
|
|
|
|
final idKey = '${workType.toUpperCase()}_ID';
|
2025-07-28 14:22:07 +08:00
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
2025-08-01 16:41:44 +08:00
|
|
|
|
'/app/$workType/listSignFinishMeasures',
|
2025-07-28 14:22:07 +08:00
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
2025-08-06 13:43:22 +08:00
|
|
|
|
idKey: workId,
|
2025-07-28 14:22:07 +08:00
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
2025-08-06 13:43:22 +08:00
|
|
|
|
|
|
|
|
|
/// 所有安全防护措施
|
2025-08-01 16:41:44 +08:00
|
|
|
|
static Future<Map<String, dynamic>> listSignFinishAllMeasures(String workType) {
|
2025-07-28 16:50:40 +08:00
|
|
|
|
final String tm = DateTime.now().millisecondsSinceEpoch.toString();
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
2025-08-01 16:41:44 +08:00
|
|
|
|
'/app/$workType/listAllMeasures?tm=$tm',
|
2025-07-28 16:50:40 +08:00
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
2025-07-29 08:50:41 +08:00
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
2025-07-28 16:50:40 +08:00
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
2025-07-30 10:51:07 +08:00
|
|
|
|
/// 安全措施确认
|
2025-08-06 13:43:22 +08:00
|
|
|
|
static Future<Map<String, dynamic>> listSignSureAllMeasures(String workType,String homeWorkId) {
|
2025-07-30 10:51:07 +08:00
|
|
|
|
final String tm = DateTime.now().millisecondsSinceEpoch.toString();
|
2025-08-06 13:43:22 +08:00
|
|
|
|
// 根据 workType 生成对应的字段名,比如 'hotwork' -> 'HOTWORK_ID'
|
|
|
|
|
final idKey = '${workType.toUpperCase()}_ID';
|
2025-07-30 10:51:07 +08:00
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
2025-08-06 13:43:22 +08:00
|
|
|
|
'/app/$workType/listAllMeasuresForSign?tm=$tm',
|
2025-07-30 10:51:07 +08:00
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
2025-08-06 13:43:22 +08:00
|
|
|
|
idKey: homeWorkId,
|
2025-07-30 17:08:46 +08:00
|
|
|
|
"CONFIRM_ID":SessionService.instance.loginUserId,
|
2025-07-30 10:51:07 +08:00
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-28 14:22:07 +08:00
|
|
|
|
/// 关联的特殊作业列表
|
|
|
|
|
static Future<Map<String, dynamic>> getEightWorkStartList(Map data) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/eightwork/startingList',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
...data
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
/// 风险辨识结果 风险列表
|
|
|
|
|
static Future<Map<String, dynamic>> getEightWorkInfo(Map data) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/eightwork/getInfo',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
...data
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
/// 动火人及证书编号
|
|
|
|
|
static Future<Map<String, dynamic>> getHotWorkNameList() {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/hotwork/namelist',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"tm": DateTime.now().millisecondsSinceEpoch,
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2025-08-01 16:41:44 +08:00
|
|
|
|
|
2025-07-28 14:22:07 +08:00
|
|
|
|
/// 保存或作废气体检测
|
2025-08-06 13:43:22 +08:00
|
|
|
|
static Future<Map<String, dynamic>> saveGasTest(String workType,
|
2025-07-28 14:22:07 +08:00
|
|
|
|
Map<String, dynamic> formData,
|
|
|
|
|
List<String> filePaths,
|
|
|
|
|
) async {
|
|
|
|
|
// 复制一份 formData
|
|
|
|
|
final data = Map<String, dynamic>.from(formData);
|
|
|
|
|
|
|
|
|
|
// 把文件路径填成 MultipartFile
|
|
|
|
|
for (var i = 0; i < filePaths.length; i++) {
|
|
|
|
|
final path = filePaths[i];
|
|
|
|
|
data['file$i'] = await MultipartFile.fromFile(
|
|
|
|
|
path,
|
|
|
|
|
filename: path.split(Platform.pathSeparator).last,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
return HttpManager().uploadFaceImage(
|
|
|
|
|
baseUrl: basePath,
|
2025-08-06 13:43:22 +08:00
|
|
|
|
path: '/app/$workType/gas/save',
|
2025-07-28 14:22:07 +08:00
|
|
|
|
fromData: data,
|
|
|
|
|
);
|
|
|
|
|
}
|
2025-07-30 10:51:07 +08:00
|
|
|
|
/// 保存安全措施确认
|
|
|
|
|
static Future<Map<String, dynamic>> saveSafeFunctionSure (
|
2025-08-01 16:41:44 +08:00
|
|
|
|
String workType,
|
2025-07-30 10:51:07 +08:00
|
|
|
|
Map<String, dynamic> formData,
|
|
|
|
|
List<String> filePaths,
|
|
|
|
|
) async {
|
|
|
|
|
// 复制一份 formData
|
|
|
|
|
final data = Map<String, dynamic>.from(formData);
|
2025-07-24 09:38:06 +08:00
|
|
|
|
|
2025-07-30 10:51:07 +08:00
|
|
|
|
// 把文件路径填成 MultipartFile
|
|
|
|
|
for (var i = 0; i < filePaths.length; i++) {
|
|
|
|
|
final path = filePaths[i];
|
|
|
|
|
data['file$i'] = await MultipartFile.fromFile(
|
|
|
|
|
path,
|
|
|
|
|
filename: path.split(Platform.pathSeparator).last,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
return HttpManager().uploadFaceImage(
|
|
|
|
|
baseUrl: basePath,
|
2025-08-01 16:41:44 +08:00
|
|
|
|
path: '/app/$workType/nextStep',
|
2025-07-30 10:51:07 +08:00
|
|
|
|
fromData: data,
|
|
|
|
|
);
|
|
|
|
|
}
|
2025-07-15 08:32:50 +08:00
|
|
|
|
|
2025-07-31 17:33:26 +08:00
|
|
|
|
/// 上传图片或视频
|
2025-07-30 17:08:46 +08:00
|
|
|
|
static Future<Map<String, dynamic>> uploadSaveFile (
|
|
|
|
|
String filePath,
|
|
|
|
|
) async {
|
|
|
|
|
final Map<String, dynamic> data = {
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
};
|
|
|
|
|
// 把文件路径填成 MultipartFile
|
|
|
|
|
final path = filePath;
|
|
|
|
|
data['file'] = await MultipartFile.fromFile(
|
|
|
|
|
path,
|
|
|
|
|
filename: path.split(Platform.pathSeparator).last,
|
|
|
|
|
);
|
|
|
|
|
return HttpManager().uploadFaceImage(
|
|
|
|
|
baseUrl: basePath,
|
|
|
|
|
path: '/app/eightwork/saveFile',
|
|
|
|
|
fromData: data,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
///删除图片
|
|
|
|
|
static Future<Map<String, dynamic>> deleteSaveFile(String FILE_PATH) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/eightwork/deleteFile',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"FILE_PATH": FILE_PATH,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
/// 安全措施个项保存
|
|
|
|
|
static Future<Map<String, dynamic>> saveDangerousOptionsFile (
|
|
|
|
|
List<String> filePaths,
|
|
|
|
|
) async {
|
|
|
|
|
// 复制一份 formData
|
|
|
|
|
final Map<String, dynamic> data = {
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
};
|
|
|
|
|
// 把文件路径填成 MultipartFile
|
|
|
|
|
for (var i = 0; i < filePaths.length; i++) {
|
|
|
|
|
final path = filePaths[i];
|
2025-07-31 17:33:26 +08:00
|
|
|
|
if (path.contains('uploadFiles')) {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
2025-07-30 17:08:46 +08:00
|
|
|
|
data['file$i'] = await MultipartFile.fromFile(
|
|
|
|
|
path,
|
|
|
|
|
filename: path.split(Platform.pathSeparator).last,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
return HttpManager().uploadFaceImage(
|
|
|
|
|
baseUrl: basePath,
|
|
|
|
|
path: '/app/eightwork/saveDangerousOptionsFile',
|
|
|
|
|
fromData: data,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2025-08-06 13:43:22 +08:00
|
|
|
|
/// 受限空间台账信息
|
|
|
|
|
static Future<Map<String, dynamic>> getLimitspaceMsssage(String LIMITSPACE_ID) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/limitspace/goEdit',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
'LIMITSPACE_ID' : LIMITSPACE_ID,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
/// 受限空间名称列表
|
|
|
|
|
static Future<Map<String, dynamic>> getLimitspaceNameList() {
|
|
|
|
|
final String tm = DateTime.now().millisecondsSinceEpoch.toString();
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/limitspace/listAllSpace?tm=${tm}',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
/// 受限空间气体分析详情
|
|
|
|
|
static Future<Map<String, dynamic>> getConfinedspacegaswh(String CONFINEDSPACE_ID) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/confinedspacegaswh/goEdit',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"CONFINEDSPACE_ID" : CONFINEDSPACE_ID,
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
/// 受限空间气体提交
|
|
|
|
|
static Future<Map<String, dynamic>> submitSpaceGas(String url, Map data) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
url,
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
...data
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
2025-07-16 08:38:10 +08:00
|
|
|
|
|
2025-07-24 09:38:06 +08:00
|
|
|
|
///TODO -------------–-------------------- 我的 -------------–--------------------
|
2025-07-16 08:38:10 +08:00
|
|
|
|
|
|
|
|
|
/// 问题反馈
|
|
|
|
|
static Future<Map<String, dynamic>> setFeedBack(String backTitle,String backContent,String backType,String imgPaths) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
2025-07-18 17:33:37 +08:00
|
|
|
|
'/app/feedback/add',
|
2025-07-16 08:38:10 +08:00
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"FEEDBACK_TITLE":backTitle,
|
|
|
|
|
"FEEDBACK_CONTENT":backContent,
|
|
|
|
|
"FEEDBACK_TYPE":backType,
|
|
|
|
|
"FEEDBACK_IMG" :imgPaths,
|
|
|
|
|
"loginUserId":SessionService.instance.loginUserId,
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-17 17:58:04 +08:00
|
|
|
|
/// 问题反馈图片
|
|
|
|
|
static Future<Map<String, dynamic>> reloadFeedBack(String imagePath) async {
|
|
|
|
|
final file = File(imagePath);
|
|
|
|
|
if (!await file.exists()) {
|
|
|
|
|
throw ApiException('file_not_found', '图片不存在:$imagePath');
|
|
|
|
|
}
|
|
|
|
|
final fileName = file.path.split(Platform.pathSeparator).last;
|
|
|
|
|
|
|
|
|
|
return HttpManager().uploadFaceImage(
|
|
|
|
|
baseUrl: basePath,
|
|
|
|
|
path: '/app/feedback/upload',
|
|
|
|
|
fromData: {
|
|
|
|
|
"corpUserId":"",
|
|
|
|
|
'CORPINFO_ID': SessionService.instance.corpinfoId,
|
|
|
|
|
'USER_ID': SessionService.instance.loginUserId,
|
|
|
|
|
'FFILE': await MultipartFile.fromFile(
|
|
|
|
|
file.path,
|
|
|
|
|
filename: fileName
|
|
|
|
|
),
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-25 18:06:37 +08:00
|
|
|
|
/// 隐患整改图片上传
|
|
|
|
|
static Future<Map<String, dynamic>> addImgFiles(String imagePath,String type,String id) async {
|
|
|
|
|
final file = File(imagePath);
|
|
|
|
|
if (!await file.exists()) {
|
|
|
|
|
throw ApiException('file_not_found', '图片不存在:$imagePath');
|
|
|
|
|
}
|
|
|
|
|
final fileName = file.path.split(Platform.pathSeparator).last;
|
|
|
|
|
return HttpManager().uploadFaceImage(
|
|
|
|
|
baseUrl: basePath,
|
2025-07-29 08:53:00 +08:00
|
|
|
|
path: '/app/imgfiles/add',
|
2025-07-25 18:06:37 +08:00
|
|
|
|
fromData: {
|
|
|
|
|
'FOREIGN_KEY': id,
|
|
|
|
|
'TYPE': type,
|
|
|
|
|
"corpUserId":"",
|
|
|
|
|
'CORPINFO_ID': SessionService.instance.corpinfoId,
|
|
|
|
|
'USER_ID': SessionService.instance.loginUserId,
|
|
|
|
|
'FFILE': await MultipartFile.fromFile(
|
|
|
|
|
file.path,
|
|
|
|
|
filename: fileName
|
|
|
|
|
),
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-29 08:53:00 +08:00
|
|
|
|
/// ai识别图片隐患
|
|
|
|
|
static Future<Map<String, dynamic>> identifyImg(String imagePath) async {
|
|
|
|
|
final file = File(imagePath);
|
|
|
|
|
if (!await file.exists()) {
|
|
|
|
|
throw ApiException('file_not_found', '图片不存在:$imagePath');
|
|
|
|
|
}
|
|
|
|
|
final fileName = file.path.split(Platform.pathSeparator).last;
|
|
|
|
|
return HttpManager().uploadFaceImage(
|
|
|
|
|
baseUrl: basePath,
|
|
|
|
|
path: '/app/hidden/identifyImg',
|
|
|
|
|
fromData: {
|
|
|
|
|
'CORPINFO_ID': SessionService.instance.corpinfoId,
|
|
|
|
|
'USER_ID': SessionService.instance.loginUserId,
|
|
|
|
|
'FFILE': await MultipartFile.fromFile(
|
|
|
|
|
file.path,
|
|
|
|
|
filename: fileName
|
|
|
|
|
),
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2025-07-16 08:38:10 +08:00
|
|
|
|
/// 修改密码
|
|
|
|
|
static Future<Map<String, dynamic>> changePassWord(String oldPwd,String confirmPwd) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/user/editUserPwd',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"USERNAME": SessionService.instance.loginUser?["USERNAME"]??"",
|
|
|
|
|
"PASSWORD": oldPwd,
|
|
|
|
|
"NOWPASSWORD": confirmPwd,
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 获取离岗管理列表
|
|
|
|
|
static Future<Map<String, dynamic>> getDutyManagement(int showCount, int currentPage) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
2025-07-17 17:58:04 +08:00
|
|
|
|
'/app/offduty/list?showCount=$showCount¤tPage=$currentPage',
|
2025-07-16 08:38:10 +08:00
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
// ISMAIN:loginUser.ISMAIN,
|
|
|
|
|
// ISSUPERVISE:loginUser.ISSUPERVISE,
|
|
|
|
|
"DEPARTMENT_ID":SessionService.instance.deptId,
|
|
|
|
|
"TYPE": 'edit'
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-16 18:07:10 +08:00
|
|
|
|
/// 通知列表
|
|
|
|
|
static Future<Map<String, dynamic>> getNotifList(String showCount, String currentPage,String keyWord) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/notice/list',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"showCount" : showCount,
|
|
|
|
|
"currentPage" : currentPage,
|
|
|
|
|
"KEYWORDS":keyWord,
|
|
|
|
|
"corpinfoId" :SessionService.instance.corpinfoId,
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 通知列表-企业
|
|
|
|
|
static Future<Map<String, dynamic>> getNotifEnterprise(String showCount, String currentPage,String keyWord) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/notice/listForCp',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"showCount" : showCount,
|
|
|
|
|
"currentPage" : currentPage,
|
|
|
|
|
"KEYWORDS":keyWord,
|
|
|
|
|
"loginUserId" :SessionService.instance.loginUserId,
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// 通知详情
|
|
|
|
|
static Future<Map<String, dynamic>> getNotifDetail(String id) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/notice/goEdit',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"NOTICECORPUSERID_ID":id,
|
|
|
|
|
"loginUserId":SessionService.instance.loginUserId,
|
|
|
|
|
"corpinfoId":SessionService.instance.corpinfoId,
|
|
|
|
|
"ISMAIN":"0",
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
2025-07-16 08:38:10 +08:00
|
|
|
|
|
2025-07-16 18:07:10 +08:00
|
|
|
|
/// 通知详情-企业
|
|
|
|
|
static Future<Map<String, dynamic>> getNotifEnterpriseDetail(String id) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/notice/goEditForPc',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"NOTICECORPUSERID_ID":id,
|
|
|
|
|
"loginUserId":SessionService.instance.loginUserId,
|
|
|
|
|
"corpinfoId":SessionService.instance.corpinfoId,
|
|
|
|
|
"ISMAIN":"0",
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
2025-07-17 16:10:46 +08:00
|
|
|
|
/// 更新人脸信息
|
2025-07-18 17:13:38 +08:00
|
|
|
|
static Future<Map<String, dynamic>> reloadMyFace(String imagePath, String studentId) async {
|
2025-07-17 16:10:46 +08:00
|
|
|
|
final file = File(imagePath);
|
|
|
|
|
if (!await file.exists()) {
|
|
|
|
|
throw ApiException('file_not_found', '图片不存在:$imagePath');
|
|
|
|
|
}
|
|
|
|
|
final fileName = file.path.split(Platform.pathSeparator).last;
|
|
|
|
|
|
|
|
|
|
return HttpManager().uploadFaceImage(
|
2025-07-18 17:33:37 +08:00
|
|
|
|
baseUrl: basePath,
|
|
|
|
|
path: '/app/user/editUserFaceV2',
|
|
|
|
|
fromData: {
|
|
|
|
|
'CORPINFO_ID': SessionService.instance.corpinfoId,
|
|
|
|
|
'USER_ID': SessionService.instance.loginUserId,
|
|
|
|
|
'FFILE': await MultipartFile.fromFile(
|
|
|
|
|
file.path,
|
|
|
|
|
filename: fileName
|
|
|
|
|
),
|
|
|
|
|
}
|
2025-07-17 16:10:46 +08:00
|
|
|
|
);
|
|
|
|
|
}
|
2025-07-16 08:38:10 +08:00
|
|
|
|
|
2025-07-16 18:07:10 +08:00
|
|
|
|
/// 删除通知-企业
|
|
|
|
|
static Future<Map<String, dynamic>> deleteNotif(String id) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/notice/delete',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"NOTICECORPUSERID_ID":id,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-17 17:58:04 +08:00
|
|
|
|
/// 获取AI预警列表
|
2025-07-16 18:07:10 +08:00
|
|
|
|
static Future<Map<String, dynamic>> getAiAlarmList(String showCount, String currentPage,String keyWord) {
|
|
|
|
|
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/aiwarning/list?showCount=$showCount¤tPage=$currentPage',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"tm": DateTime.now().millisecondsSinceEpoch,
|
|
|
|
|
"KEYWORDS": keyWord, //关键字模糊查询
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
2025-07-16 08:38:10 +08:00
|
|
|
|
|
|
|
|
|
|
2025-07-17 17:58:04 +08:00
|
|
|
|
/// 离岗申请
|
|
|
|
|
static Future<Map<String, dynamic>> submitApplicationLeaving(String startTime, String endTime,String text) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/offduty/add',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"OFFDUTY_ID":"",
|
|
|
|
|
"STARTTIME": startTime,
|
|
|
|
|
"ENDTIME": endTime,
|
|
|
|
|
"DESCR": text,
|
|
|
|
|
"REVIEW_USER_ID": "",
|
|
|
|
|
"CREATOR": SessionService.instance.loginUserId,
|
|
|
|
|
"OPERATOR": SessionService.instance.loginUserId,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 离岗审批
|
|
|
|
|
static Future<Map<String, dynamic>> dutyApproval(String type, String text,String itemNum) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/offduty/review',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"OFFDUTY_ID":itemNum,
|
|
|
|
|
"REVIEW_STATUS":type,
|
|
|
|
|
"REVIEW_DESC":text,
|
|
|
|
|
"OPERATOR":SessionService.instance.loginUserId
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 离岗取消
|
|
|
|
|
static Future<Map<String, dynamic>> dutyReturned(String type, String text,String itemNum) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/offduty/cancel',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"OFFDUTY_ID":itemNum,
|
|
|
|
|
"REVIEW_STATUS":type,
|
|
|
|
|
"REVIEW_DESC":text,
|
|
|
|
|
"OPERATOR":SessionService.instance.loginUserId
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// 获取离岗记录列表
|
|
|
|
|
static Future<Map<String, dynamic>> getDepartureRecordList(int showCount, int currentPage) {
|
|
|
|
|
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/offduty/list?showCount=$showCount¤tPage=$currentPage',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
"ISMAIN":0,
|
|
|
|
|
"ISSUPERVISE":0,
|
|
|
|
|
"DEPARTMENT_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"TYPE": 'show'
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2025-07-18 17:33:37 +08:00
|
|
|
|
|
|
|
|
|
/// 获取隐患治理列表
|
|
|
|
|
static Future<Map<String, dynamic>> getHiddenTreatmentList(int type, int currentPage,
|
|
|
|
|
String startDate,String endDate,String level,String riskStandard,String state,
|
|
|
|
|
String departmentId,String correctiveDepartment,String isIndex,String keyWord) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/hidden/listRiskStandard',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
|
|
|
|
|
//隐患记录
|
|
|
|
|
"STARTTIME": startDate,
|
|
|
|
|
"ENDTIME": endDate,
|
|
|
|
|
"HIDDENLEVEL": level,
|
|
|
|
|
"HIDDEN_RISKSTANDARD": riskStandard,
|
|
|
|
|
"STATE": state,
|
|
|
|
|
"DEPARTMENT_ID": departmentId,
|
|
|
|
|
"RECTIFICATIONDEPT": correctiveDepartment,
|
|
|
|
|
|
|
|
|
|
//已验收隐患
|
|
|
|
|
"isIndex": isIndex,
|
|
|
|
|
|
|
|
|
|
//通用
|
|
|
|
|
"DISPOSESTATE": type,
|
|
|
|
|
"currentPage": currentPage,
|
|
|
|
|
"tm": DateTime.now().millisecondsSinceEpoch.toString(),
|
|
|
|
|
"showCount": "10",
|
|
|
|
|
"totalResult": "0",
|
|
|
|
|
|
|
|
|
|
"USERDEPT": SessionService.instance.corpinfoId,
|
|
|
|
|
"SELFUSERID": SessionService.instance.loginUserId,
|
|
|
|
|
"HIDDENDESCR": keyWord,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-24 11:18:47 +08:00
|
|
|
|
/// 获取部门列表
|
2025-07-18 17:33:37 +08:00
|
|
|
|
static Future<Map<String, dynamic>> getHiddenTreatmentListTree() {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/sys/listTree',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"DEPARTMENT_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
2025-07-25 18:06:37 +08:00
|
|
|
|
|
|
|
|
|
/// 获取隐患等级列表2
|
|
|
|
|
static Future<Map<String, dynamic>> getHiddenLevelsListTwo() {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/dictionaries/getLevels',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"DICTIONARIES_ID": '3babc15144444bdc8d763d0af2bdfff8',
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 获取隐患类型列表
|
|
|
|
|
static Future<Map<String, dynamic>> getHiddenTypeList(String parentId) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/dictionaries/listAllDictToParId',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"parentId": parentId,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-24 11:18:47 +08:00
|
|
|
|
/// 获取部门负责人列表
|
|
|
|
|
static Future<Map<String, dynamic>> getListTreePersonList(String DEPARTMENT_ID) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
2025-07-24 14:49:16 +08:00
|
|
|
|
'/app/sys/listUser',
|
2025-07-24 11:18:47 +08:00
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"tm":DateTime.now().millisecondsSinceEpoch.toString(),
|
|
|
|
|
"DEPARTMENT_ID": DEPARTMENT_ID,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-18 17:33:37 +08:00
|
|
|
|
|
2025-07-23 20:14:38 +08:00
|
|
|
|
/// 获取隐患记录详情
|
|
|
|
|
static Future<Map<String, dynamic>> getDangerDetail(String id) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/hidden/goEdit',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"HIDDEN_ID": id,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-24 20:01:23 +08:00
|
|
|
|
/// 获取隐患记录详情第二个接口,不知道为什么
|
|
|
|
|
static Future<Map<String, dynamic>> getDangerDetailTwo(String id) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/customHidden/goEdit',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"HIDDEN_ID": id,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-23 20:14:38 +08:00
|
|
|
|
/// 获取个人信息
|
|
|
|
|
static Future<Map<String, dynamic>> getUserInfo() {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/user/goEditUser',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// 获取本日工作提醒
|
|
|
|
|
static Future<Map<String, dynamic>> getAnPai() {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/listmanager/checkListIndex',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"tm":DateTime.now().millisecondsSinceEpoch.toString(),
|
|
|
|
|
"DEPARTMENT_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 获取本日日程安排
|
|
|
|
|
static Future<Map<String, dynamic>> getRiCheng(String data) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/schedule/getData',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"CDATA": data,
|
|
|
|
|
"USERNAME": SessionService.instance.loginUser?["USERNAME"]??"",
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 增加本日日程安排
|
|
|
|
|
static Future<Map<String, dynamic>> addRiCheng(String data,String title, String content,String id,String urlPath) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/schedule/$urlPath',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"CDATA": data,
|
|
|
|
|
"USERNAME":SessionService.instance.loginUser?["USERNAME"]??"",
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
"SCHEDULE_ID": id,
|
|
|
|
|
"TITLE": title,
|
|
|
|
|
"FHDESC":content,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// 获取风险分布列表
|
|
|
|
|
static Future<Map<String, dynamic>> getRiskRecordList(int currentPage,
|
|
|
|
|
String riskId,String dept,String level,String keyWord) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/riskpoint/list?showCount=-1¤tPage=$currentPage',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"CORPINFOID": SessionService.instance.corpinfoId,
|
|
|
|
|
"RISK_UNIT_ID": riskId,
|
|
|
|
|
"DEPARTMENT_ID": dept,
|
|
|
|
|
"LEVELID": level,
|
|
|
|
|
"IS_APP": 1,
|
|
|
|
|
"tm": DateTime.now().millisecondsSinceEpoch.toString(),
|
|
|
|
|
"KEYWORDS": keyWord, //关键字模糊查询
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 获取风险分布详情
|
|
|
|
|
static Future<Map<String, dynamic>> getForIdentification(String id) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/riskpoint/getForIdentification',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"CHECK_IDENTIFICATION_ID": id,
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 获取风险分布详情提交坐标
|
|
|
|
|
static Future<Map<String, dynamic>> addCoordinate(String id,String longitude,String latitude) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/riskpoint/editLonAndLat',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"IDENTIFICATIONPARTS_ID": id,
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
"LONGITUDE" : longitude,
|
|
|
|
|
"LATITUDE" : latitude,
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 获取风险分布列表侧滑菜单第二个选框数据
|
|
|
|
|
static Future<Map<String, dynamic>> getTreeListUnit(String id) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/riskpoint/listUnit',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"DEPARTMENT_ID": id,
|
|
|
|
|
"tm": DateTime.now().millisecondsSinceEpoch.toString(),
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 获取法律法规类表
|
|
|
|
|
static Future<Map<String, dynamic>> getLowList(String keyWord) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/mfolderStipulate/appListTree',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
"KEYWORDS":keyWord,
|
|
|
|
|
"SHARE": "yes",
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-24 20:01:23 +08:00
|
|
|
|
/// 获取法律法规类表第二层列表
|
|
|
|
|
static Future<Map<String, dynamic>> getLowListByParentId(String id) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/mfolderStipulate/listByParentId',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"PARENT_ID":id,
|
|
|
|
|
"TYPE":2,
|
|
|
|
|
"CORPINFO_ID":SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// 提交隐患整改
|
|
|
|
|
static Future<Map<String, dynamic>> rectificationSubmission(String id,String buMenId,String renYuanId) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/hidden/editRec',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"RECTIFICATIONDEPT": buMenId,
|
|
|
|
|
"RECTIFICATIONOR": renYuanId,
|
|
|
|
|
"HIDDEN_ID": id,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// 提交隐患整改
|
2025-07-25 18:06:37 +08:00
|
|
|
|
static Future<Map<String, dynamic>> normalRectificationSubmission(
|
|
|
|
|
String dataTime,String miaoShu,String acceptedPrepareType,String acceptedPlanType,
|
|
|
|
|
String id,String caertTime,String listName,
|
|
|
|
|
String standard,String method,String fund,String person,
|
|
|
|
|
String workTime,String time,String work,String other,String json) {
|
|
|
|
|
|
|
|
|
|
// print("============>"+ dataTime+ miaoShu+ acceptedPrepareType+ acceptedPlanType+
|
|
|
|
|
// id+ caertTime+ listName+ standard+ method+ fund+ person+
|
|
|
|
|
// workTime+ time+ work+ other+ json);
|
|
|
|
|
|
2025-07-24 20:01:23 +08:00
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/hidden/rectify',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
2025-07-25 18:06:37 +08:00
|
|
|
|
|
|
|
|
|
"RECTIFICATIONTIME": dataTime,
|
|
|
|
|
"RECTIFYDESCR": miaoShu,
|
|
|
|
|
"HAVESCHEME": acceptedPrepareType,
|
|
|
|
|
"HAVEPLAN": acceptedPlanType,
|
|
|
|
|
"HIDDEN_ID": id,
|
|
|
|
|
|
|
|
|
|
"SCREENINGDATE": caertTime.isNotEmpty ? caertTime : '',
|
|
|
|
|
"LISTNAME": listName.isNotEmpty ? caertTime : '',
|
|
|
|
|
"GOVERNSTANDARDS": standard,
|
|
|
|
|
"GOVERNMETHOD": method,
|
|
|
|
|
"EXPENDITURE": fund,
|
|
|
|
|
"PRINCIPAL": person,
|
|
|
|
|
"PROGRAMMING": workTime,
|
|
|
|
|
"TIMELIMITFOR": time,
|
|
|
|
|
"JOBREQUIREMENT": work,
|
|
|
|
|
"OTHERBUSINESS": other,
|
|
|
|
|
"OTHER": json,
|
|
|
|
|
|
2025-07-24 20:01:23 +08:00
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2025-07-25 18:06:37 +08:00
|
|
|
|
/// 获取隐患级别
|
|
|
|
|
static Future<Map<String, dynamic>> getHazardLevel() {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/dictionaries/getLevels?tm=${DateTime.now().millisecondsSinceEpoch}',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"DICTIONARIES_ID": '5e7cf8620ba54ad89719d0be62133c7a',
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-29 08:53:00 +08:00
|
|
|
|
/// 上传隐患快报
|
|
|
|
|
static Future<Map<String, dynamic>> addRiskListCheckApp(
|
|
|
|
|
String hazardDescription,String partDescription,String latitude,String longitude,
|
|
|
|
|
String dangerDetail,String dataTime,String type,String responsibleId,
|
|
|
|
|
String yinHuanTypeIds,String hazardLeve,String buMenId,String buMenPDId,
|
|
|
|
|
String yinHuanTypeNames,String hiddenType1,String hiddenType2,String hiddenType3,) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/hidden/riskListCheckAppAdd',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"HIDDEN_ID": "",
|
|
|
|
|
"SOURCE": '1',
|
|
|
|
|
"HIDDENDESCR": hazardDescription,
|
|
|
|
|
"HIDDENPART": partDescription,
|
|
|
|
|
"LATITUDE": latitude,
|
|
|
|
|
"LONGITUDE": longitude,
|
|
|
|
|
|
|
|
|
|
"RECTIFYDESCR": dangerDetail,
|
|
|
|
|
"RECTIFICATIONDEADLINE": dataTime,
|
|
|
|
|
"RECTIFICATIONTYPE": type,
|
|
|
|
|
"RECTIFICATIONOR": responsibleId,
|
|
|
|
|
|
|
|
|
|
"HIDDENTYPE": yinHuanTypeIds,
|
|
|
|
|
"HIDDENLEVEL":hazardLeve,
|
|
|
|
|
"RECTIFICATIONDEPT": buMenId,
|
|
|
|
|
"HIDDENFINDDEPT": buMenPDId.isNotEmpty?buMenPDId:buMenId,
|
|
|
|
|
|
|
|
|
|
"CREATOR": SessionService.instance.loginUserId,
|
|
|
|
|
"HIDDENTYPE_NAME": yinHuanTypeNames,
|
|
|
|
|
"HIDDENTYPE1": hiddenType1 ,
|
|
|
|
|
"HIDDENTYPE2": hiddenType2 ,
|
|
|
|
|
"HIDDENTYPE3": hiddenType3 ,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-30 10:47:52 +08:00
|
|
|
|
/// 提交隐患验收接口
|
|
|
|
|
static Future<Map<String, dynamic>> addHazardAcceptance(String type,String miaoshu,String dataTime,String id) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/hidden/riskListCheckInspection',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"ISQUALIFIED": type,
|
|
|
|
|
"CHECKDESCR": miaoshu,
|
|
|
|
|
"CHECK_TIME": dataTime,
|
|
|
|
|
"HIDDEN_ID": id,
|
|
|
|
|
"CHECKOR": SessionService.instance.loginUserId,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 隐患检查列表
|
|
|
|
|
static Future<Map<String, dynamic>> getHazardInspectionRecordList(
|
|
|
|
|
int currentPage,String keyWord,String id,String dept,
|
|
|
|
|
String starDate,String endDate,String periodId,String userName,String typeId,) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/listmanager/recordList?showCount=-1¤tPage=$currentPage',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"DEPARTMENT_ID": id,
|
|
|
|
|
"DEPT_ID": dept,
|
|
|
|
|
"STARTTIME": starDate,
|
|
|
|
|
"ENDTIME": endDate,
|
|
|
|
|
"PERIOD": periodId,
|
|
|
|
|
"USERNAME": userName,
|
|
|
|
|
"TYPE": typeId,
|
|
|
|
|
"tm": DateTime.now().millisecondsSinceEpoch.toString(),
|
|
|
|
|
"KEYWORDS": keyWord, //关键字模糊查询
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 标准排查列表
|
|
|
|
|
static Future<Map<String, dynamic>> getStandardInvestigationRecordList(
|
|
|
|
|
int currentPage,String keyWord,String id,String dept,
|
|
|
|
|
String starDate,String endDate,String periodId,String userName,String typeId,) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/hiddenDangerCheckStandardCustom/recordList?showCount=-1¤tPage=$currentPage',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"DEPARTMENT_ID": id,
|
|
|
|
|
"DEPT_ID": dept,
|
|
|
|
|
"STARTTIME": starDate,
|
|
|
|
|
"ENDTIME": endDate,
|
|
|
|
|
"PERIOD": periodId,
|
|
|
|
|
"USERNAME": userName,
|
|
|
|
|
"TYPE": typeId,
|
|
|
|
|
"tm": DateTime.now().millisecondsSinceEpoch.toString(),
|
|
|
|
|
"KEYWORDS": keyWord, //关键字模糊查询
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 获取清单类型
|
|
|
|
|
static Future<Map<String, dynamic>> getListType() {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/dictionaries/getLevels?tm=${DateTime.now().millisecondsSinceEpoch.toString()}',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"DICTIONARIES_ID": '4a3d0d99b0ea4e268c11dd0b18866917',
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 获取清单类型
|
|
|
|
|
static Future<Map<String, dynamic>> getListInspectionCycle() {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/dictionaries/getLevels?tm=${DateTime.now().millisecondsSinceEpoch.toString()}',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"DICTIONARIES_ID": 'f60cf0e8315b4993b6d6049dd29f2ba5',
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-30 18:01:25 +08:00
|
|
|
|
/// 获取检查记录列表
|
|
|
|
|
static Future<Map<String, dynamic>> getCheckRecordListOne(String id,String keyword) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/checkrecord/list',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"LISTMANAGER_ID": id,
|
|
|
|
|
"KEYWORDS": keyword,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 获取检查记录列表
|
|
|
|
|
static Future<Map<String, dynamic>> getCheckRecordList(String id,String keyword) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/customCheckRecord/list',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"CUSTOM_ID": id,
|
|
|
|
|
"KEYWORDS": keyword,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 获取检查记录详情
|
|
|
|
|
static Future<Map<String, dynamic>> getInspectRecordsDetail(String id) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
2025-07-31 21:15:00 +08:00
|
|
|
|
'/app/customCheckRecord/goEdit',
|
2025-07-30 18:01:25 +08:00
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"CHECKRECORD_ID": id,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-31 21:15:00 +08:00
|
|
|
|
/// 获取检查记录详情2
|
|
|
|
|
static Future<Map<String, dynamic>> getInspectRecordsDetailTwo(String id) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/customHidden/getCheckHidden',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"CHECKRECORD_ID": id,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 获取详情图片列表
|
|
|
|
|
static Future<Map<String, dynamic>> getDetailImageList(String id) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/imgfiles/listImgs',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"FOREIGN_KEY": id,
|
|
|
|
|
"TYPE": 14,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// 获取标准排查列表
|
|
|
|
|
static Future<Map<String, dynamic>> getStandardInvestigationList(String id,String keyWord) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/hiddenDangerCheckStandardCustom/checkList',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"USER_NAME": SessionService.instance.username,
|
|
|
|
|
"CHECK_DEPARTMENT_ID": id,
|
|
|
|
|
"SUB_DEPARTMENT_IDS": keyWord, //选择的部门
|
|
|
|
|
"IS_MAIN":SessionService.instance. loginUser?["ISMAIN"]??"0",
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
"ISSUPERVISE": SessionService.instance. loginUser?["ISSUPERVISE"]??"0",
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 获取隐患排查列表
|
|
|
|
|
static Future<Map<String, dynamic>> getHazardInvestigationList(String id,String keyWord) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/listmanager/checkListV2',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"USER_NAME": SessionService.instance.username,
|
|
|
|
|
"CHECK_DEPARTMENT_ID": id,
|
|
|
|
|
"SUB_DEPARTMENT_IDS": keyWord, //选择的部门
|
|
|
|
|
"IS_MAIN":SessionService.instance. loginUser?["ISMAIN"]??"0",
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
"ISSUPERVISE": SessionService.instance. loginUser?["ISSUPERVISE"]??"0",
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 获取检查项目列表
|
|
|
|
|
static Future<Map<String, dynamic>> getInspectionItemList(String id) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/hiddenDangerCheckStandardCustom/getCheckItem',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"CUSTOM_ID": id,
|
|
|
|
|
"USER_NAME": SessionService.instance.username,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 获取检查项目列表
|
|
|
|
|
static Future<Map<String, dynamic>> getRiskPointsList(String id) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/listmanager/getRisk',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"LISTMANAGER_ID": id,
|
|
|
|
|
"USER_NAME": SessionService.instance.username,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 检查人员是否绑定定位卡
|
|
|
|
|
static Future<Map<String, dynamic>> isInElectronicFence(String id) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/listmanager/isInElectronicFence',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"ELECTRONIC_FENCE_ID": id,
|
|
|
|
|
"USER_NAME": SessionService.instance.username,
|
|
|
|
|
"PLS_ID":"",
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 获取排查项
|
|
|
|
|
static Future<Map<String, dynamic>> getInvestigationItems(final item) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/hiddenDangerCheckStandardCustom/goCheck',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"CUSTOM_ID": item["CUSTOM_ID"],
|
|
|
|
|
"CHECK_ITEM": item["CHECK_ITEM"],
|
|
|
|
|
"USER_NAME": SessionService.instance.username,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// 获取已上传图片
|
|
|
|
|
static Future<Map<String, dynamic>> getAlreadyUpImages(String id) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/imgfiles/listImgs',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"FOREIGN_KEY": id,
|
|
|
|
|
"TYPE": 14,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
2025-07-30 18:01:25 +08:00
|
|
|
|
|
2025-07-31 21:15:00 +08:00
|
|
|
|
/// 删除已上传图片
|
|
|
|
|
static Future<Map<String, dynamic>> onImageRemoved(String id) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/imgfiles/delete',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"IMGFILES_ID": id,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
2025-07-30 10:47:52 +08:00
|
|
|
|
|
2025-07-18 17:33:37 +08:00
|
|
|
|
|
2025-08-01 16:40:59 +08:00
|
|
|
|
/// 暂存隐患记录
|
|
|
|
|
static Future<Map<String, dynamic>> temporaryStorageOfHidden(
|
|
|
|
|
String msg,item,unqualifiedInspectionItemID,
|
|
|
|
|
String hazardDescription,String partDescription,String latitude,String longitude,
|
|
|
|
|
String dangerDetail,String dataTime,String type,String responsibleId,
|
|
|
|
|
String yinHuanTypeIds,String hazardLeve,String buMenId,String buMenPDId,
|
|
|
|
|
String yinHuanTypeNames,String hiddenType1,String hiddenType2,String hiddenType3,) {
|
2025-08-06 09:19:51 +08:00
|
|
|
|
print("======>$type");
|
2025-08-01 16:40:59 +08:00
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/customHidden/$msg',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"HIDDEN_ID":unqualifiedInspectionItemID,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"CUSTOM_ID": item["CUSTOM_ID"]??"",
|
|
|
|
|
"CUSTOM_ITEM_ID": item["CUSTOM_ITEM_ID"]??"",
|
|
|
|
|
"RECORDITEM_ID": item["RECORDITEM_ID"]??"",
|
|
|
|
|
"CHECK_CATEGORY": item["CHECK_CATEGORY"]??"",
|
|
|
|
|
"CHECK_CATEGORY_NAME": item["CHECK_CATEGORY_NAME"]??"",
|
|
|
|
|
"CHECK_ITEM": item["CHECK_ITEM"]??"",
|
|
|
|
|
"CHECK_ITEM_NAME":item["CHECK_ITEM_NAME"]??"",
|
|
|
|
|
"CHECK_CONTENT": item["CHECK_CONTENT"]??"",
|
|
|
|
|
"CHECK_STANDARD": item["CHECK_STANDARD"]??"",
|
|
|
|
|
"REFERENCE_BASIS":item["REFERENCE_BASIS"] ??"",
|
|
|
|
|
"SOURCE": '2',
|
|
|
|
|
"STATE": '0',
|
2025-08-06 09:19:51 +08:00
|
|
|
|
"CLEARIMG": '1',
|
2025-08-01 16:40:59 +08:00
|
|
|
|
|
|
|
|
|
"HIDDENDESCR": hazardDescription,
|
|
|
|
|
"HIDDENPART": partDescription,
|
|
|
|
|
"LATITUDE": latitude,
|
|
|
|
|
"LONGITUDE": longitude,
|
|
|
|
|
|
|
|
|
|
"RECTIFYDESCR": dangerDetail,
|
|
|
|
|
"RECTIFICATIONDEADLINE": dataTime,
|
|
|
|
|
"RECTIFICATIONTYPE": type,
|
|
|
|
|
"RECTIFICATIONOR": responsibleId,
|
|
|
|
|
|
|
|
|
|
"HIDDENTYPE": yinHuanTypeIds,
|
|
|
|
|
"HIDDENLEVEL":hazardLeve,
|
|
|
|
|
"RECTIFICATIONDEPT": buMenId,
|
|
|
|
|
"HIDDENFINDDEPT": buMenPDId.isNotEmpty?buMenPDId:buMenId,
|
|
|
|
|
|
|
|
|
|
"CREATOR": SessionService.instance.loginUserId,
|
|
|
|
|
"HIDDENTYPE_NAME": yinHuanTypeNames,
|
|
|
|
|
"HIDDENTYPE1": hiddenType1 ,
|
|
|
|
|
"HIDDENTYPE2": hiddenType2 ,
|
|
|
|
|
"HIDDENTYPE3": hiddenType3 ,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// 获取暂存隐患记录
|
|
|
|
|
static Future<Map<String, dynamic>> getTemporaryStorageOfHidden(String id) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/customHidden/goEdit',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"HIDDEN_ID": id,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2025-08-06 09:19:51 +08:00
|
|
|
|
/// 提交排查项
|
|
|
|
|
static Future<Map<String, dynamic>> submitInvestigationItems(
|
|
|
|
|
item,String longitude,String latitude,
|
|
|
|
|
String itemsString,String idsString,String checkrecordId,) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/customCheckRecord/add',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"CUSTOM_ID": item["CUSTOM_ID"],
|
|
|
|
|
"LIST_NAME": SessionService.instance.listItemNameJson,
|
|
|
|
|
"CREATOR": SessionService.instance.username,
|
|
|
|
|
"LATITUDE": latitude,
|
|
|
|
|
"LONGITUDE": longitude,
|
|
|
|
|
"ITEMS": itemsString,
|
|
|
|
|
"IDS": idsString,
|
|
|
|
|
"CHECKRECORD_ID": checkrecordId,
|
|
|
|
|
"tm": DateTime.now().millisecondsSinceEpoch.toString(),
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2025-08-07 17:37:21 +08:00
|
|
|
|
/// 获取排查项
|
2025-08-06 09:19:51 +08:00
|
|
|
|
static Future<Map<String, dynamic>> getCheckInformationList(String id) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/customHidden/getOtherHidden',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
|
|
|
|
|
"CUSTOM_ID": id,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// 暂存其他隐患记录
|
|
|
|
|
static Future<Map<String, dynamic>> checkInformationOneItemData(
|
|
|
|
|
String msg,String id,unqualifiedInspectionItemID,
|
|
|
|
|
String hazardDescription,String partDescription,String latitude,String longitude,
|
|
|
|
|
String dangerDetail,String dataTime,String type,String responsibleId,
|
|
|
|
|
String yinHuanTypeIds,String hazardLeve,String buMenId,String buMenPDId,
|
|
|
|
|
String yinHuanTypeNames,String hiddenType1,String hiddenType2,String hiddenType3,) {
|
|
|
|
|
print("======>$type");
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/customHidden/$msg',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
|
|
|
|
|
"HIDDEN_ID":unqualifiedInspectionItemID,
|
|
|
|
|
"SOURCE": '3',
|
|
|
|
|
"STATE": '0',
|
|
|
|
|
|
|
|
|
|
"HIDDENDESCR": hazardDescription,
|
|
|
|
|
"HIDDENPART": partDescription,
|
|
|
|
|
"LATITUDE": latitude,
|
|
|
|
|
"LONGITUDE": longitude,
|
|
|
|
|
|
|
|
|
|
"RECTIFYDESCR": dangerDetail,
|
|
|
|
|
"RECTIFICATIONDEADLINE": dataTime,
|
|
|
|
|
"RECTIFICATIONTYPE": type,
|
|
|
|
|
"RECTIFICATIONOR": responsibleId,
|
|
|
|
|
|
|
|
|
|
"HIDDENTYPE": yinHuanTypeIds,
|
|
|
|
|
"HIDDENLEVEL":hazardLeve,
|
|
|
|
|
"RECTIFICATIONDEPT": buMenId,
|
|
|
|
|
"HIDDENFINDDEPT": buMenPDId.isNotEmpty?buMenPDId:buMenId,
|
|
|
|
|
|
|
|
|
|
"CREATOR": SessionService.instance.loginUserId,
|
|
|
|
|
"LISTMANAGER_ID": id,
|
|
|
|
|
"HIDDENTYPE_NAME": yinHuanTypeNames,
|
|
|
|
|
"HIDDENTYPE1": hiddenType1 ,
|
|
|
|
|
"HIDDENTYPE2": hiddenType2 ,
|
|
|
|
|
"HIDDENTYPE3": hiddenType3 ,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// 提交排查项
|
|
|
|
|
static Future<Map<String, dynamic>> customCheckRecordFinish(String time,String text,
|
|
|
|
|
String CHECKRECORD_ID,String id,String json) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/customCheckRecord/finish',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"CHECK_TIME": time,
|
|
|
|
|
"DESCR": text,
|
|
|
|
|
"CHECKRECORD_ID": CHECKRECORD_ID,
|
|
|
|
|
"CUSTOM_ID": id,
|
|
|
|
|
"OTHER": json,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-08-07 17:37:21 +08:00
|
|
|
|
/// 获取隐患排查排查项
|
|
|
|
|
static Future<Map<String, dynamic>> getInvestigationItemsYinHuan(final item) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/listmanager/goCheck',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"LISTMANAGER_ID": item["LISTMANAGER_ID"],
|
|
|
|
|
"IDENTIFICATIONPARTS_ID": item["IDENTIFICATIONPARTS_ID"],
|
|
|
|
|
"USER_NAME": SessionService.instance.username,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 获取隐患排查暂存隐患记录
|
|
|
|
|
static Future<Map<String, dynamic>> getYinHuanTemporaryStorageOfHidden(String id) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/hidden/goRiskListCheckEdit',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"HIDDEN_ID": id,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// 暂存隐患排查隐患记录
|
|
|
|
|
static Future<Map<String, dynamic>> temporaryStorageOfHiddenYinHuan(
|
|
|
|
|
String msg,item,unqualifiedInspectionItemID,
|
|
|
|
|
String hazardDescription,String partDescription,String latitude,String longitude,
|
|
|
|
|
String dangerDetail,String dataTime,String type,String responsibleId,
|
|
|
|
|
String yinHuanTypeIds,String hazardLeve,String buMenId,String buMenPDId,
|
|
|
|
|
String yinHuanTypeNames,String hiddenType1,String hiddenType2,String hiddenType3,result) {
|
|
|
|
|
print("======>$type");
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/hidden/$msg',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"HIDDEN_ID":unqualifiedInspectionItemID,
|
|
|
|
|
"SOURCE": '2',
|
|
|
|
|
"STATE": '0',
|
|
|
|
|
|
|
|
|
|
"HIDDEN_CATEGORY": result["HIDDEN_CATEGORY"] ?? '',
|
|
|
|
|
"LISTMANAGER_ID": item["LISTMANAGER_ID"],
|
|
|
|
|
"RISKITEM_ID": result["LISTCHECKITEM_ID"],
|
|
|
|
|
"CHECK_CONTENT": item["CHECK_CONTENT"]??"",
|
|
|
|
|
"RECORDITEM_ID": item["RECORDITEM_ID"]??"",
|
|
|
|
|
|
|
|
|
|
"HIDDENDESCR": hazardDescription,
|
|
|
|
|
"HIDDENPART": partDescription,
|
|
|
|
|
"LATITUDE": latitude,
|
|
|
|
|
"LONGITUDE": longitude,
|
|
|
|
|
|
|
|
|
|
"RECTIFYDESCR": dangerDetail,
|
|
|
|
|
"RECTIFICATIONDEADLINE": dataTime,
|
|
|
|
|
"RECTIFICATIONTYPE": type,
|
|
|
|
|
"RECTIFICATIONOR": responsibleId,
|
|
|
|
|
|
|
|
|
|
"HIDDENTYPE": yinHuanTypeIds,
|
|
|
|
|
"HIDDENLEVEL":hazardLeve,
|
|
|
|
|
"RECTIFICATIONDEPT": buMenId,
|
|
|
|
|
"HIDDENFINDDEPT": buMenPDId.isNotEmpty?buMenPDId:buMenId,
|
|
|
|
|
|
|
|
|
|
"CREATOR": SessionService.instance.loginUserId,
|
|
|
|
|
"CLEARIMG": '1',
|
|
|
|
|
"HIDDENTYPE_NAME": yinHuanTypeNames,
|
|
|
|
|
"HIDDENTYPE1": hiddenType1 ,
|
|
|
|
|
"HIDDENTYPE2": hiddenType2 ,
|
|
|
|
|
"HIDDENTYPE3": hiddenType3 ,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// 提交隐患排查排查项
|
|
|
|
|
static Future<Map<String, dynamic>> submitInvestigationItemsYinHuan(
|
|
|
|
|
item,String longitude,String latitude,
|
|
|
|
|
String itemsString,String idsString,String checkrecordId,) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/checkrecord/add',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
// "CUSTOM_ID": item["CUSTOM_ID"],
|
|
|
|
|
"LISTMANAGER_ID": item["LISTMANAGER_ID"],
|
|
|
|
|
"LIST_NAME": SessionService.instance.listItemNameJson,
|
|
|
|
|
"CREATOR": SessionService.instance.username,
|
|
|
|
|
"LATITUDE": latitude,
|
|
|
|
|
"LONGITUDE": longitude,
|
|
|
|
|
"ITEMS": itemsString,
|
|
|
|
|
"IDS": idsString,
|
|
|
|
|
"CHECKRECORD_ID": checkrecordId,
|
|
|
|
|
"tm": DateTime.now().millisecondsSinceEpoch.toString(),
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// 获取隐患排查项
|
|
|
|
|
static Future<Map<String, dynamic>> getCheckInformationListYinHuan(String id) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/hidden/getOtherHidden',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"LISTMANAGER_ID": id,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// 提交隐患排查项
|
|
|
|
|
static Future<Map<String, dynamic>> customCheckRecordFinishYinHuan(String time,String text,
|
|
|
|
|
String CHECKRECORD_ID,String id,String json) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/checkrecord/finish',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"CHECK_TIME": time,
|
|
|
|
|
"DESCR": text,
|
|
|
|
|
"CHECKRECORD_ID": CHECKRECORD_ID,
|
|
|
|
|
"LISTMANAGER_ID": id,
|
|
|
|
|
"OTHER": json,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// 获取暂存隐患记录
|
|
|
|
|
static Future<Map<String, dynamic>> getTemporaryStorageOfHiddenYinHuan(String id) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
2025-08-08 16:18:07 +08:00
|
|
|
|
'/app/hidden/goEdit',
|
2025-08-07 17:37:21 +08:00
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"HIDDEN_ID": id,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID":SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// 暂存其他隐患记录
|
|
|
|
|
static Future<Map<String, dynamic>> checkInformationOneItemDataYinHuan(
|
|
|
|
|
String msg,String id,unqualifiedInspectionItemID,
|
|
|
|
|
String hazardDescription,String partDescription,String latitude,String longitude,
|
|
|
|
|
String dangerDetail,String dataTime,String type,String responsibleId,
|
|
|
|
|
String yinHuanTypeIds,String hazardLeve,String buMenId,String buMenPDId,
|
|
|
|
|
String yinHuanTypeNames,String hiddenType1,String hiddenType2,String hiddenType3,) {
|
|
|
|
|
print("======>$type");
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/hidden/$msg',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
|
|
|
|
|
"HIDDEN_ID":unqualifiedInspectionItemID,
|
|
|
|
|
"SOURCE": '3',
|
|
|
|
|
"STATE": '0',
|
|
|
|
|
|
|
|
|
|
"HIDDENDESCR": hazardDescription,
|
|
|
|
|
"HIDDENPART": partDescription,
|
|
|
|
|
"LATITUDE": latitude,
|
|
|
|
|
"LONGITUDE": longitude,
|
|
|
|
|
|
|
|
|
|
"RECTIFYDESCR": dangerDetail,
|
|
|
|
|
"RECTIFICATIONDEADLINE": dataTime,
|
|
|
|
|
"RECTIFICATIONTYPE": type,
|
|
|
|
|
"RECTIFICATIONOR": responsibleId,
|
|
|
|
|
|
|
|
|
|
"HIDDENTYPE": yinHuanTypeIds,
|
|
|
|
|
"HIDDENLEVEL":hazardLeve,
|
|
|
|
|
"RECTIFICATIONDEPT": buMenId,
|
|
|
|
|
"HIDDENFINDDEPT": buMenPDId.isNotEmpty?buMenPDId:buMenId,
|
|
|
|
|
|
|
|
|
|
"CREATOR": SessionService.instance.loginUserId,
|
|
|
|
|
"LISTMANAGER_ID": id,
|
|
|
|
|
"HIDDENTYPE_NAME": yinHuanTypeNames,
|
|
|
|
|
"HIDDENTYPE1": hiddenType1 ,
|
|
|
|
|
"HIDDENTYPE2": hiddenType2 ,
|
|
|
|
|
"HIDDENTYPE3": hiddenType3 ,
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2025-08-08 16:18:07 +08:00
|
|
|
|
|
|
|
|
|
/// 获取安全例会列表
|
|
|
|
|
static Future<Map<String, dynamic>> getSafetyMeetingList(int page,int selectedTab) {
|
|
|
|
|
return HttpManager().request(
|
|
|
|
|
basePath,
|
|
|
|
|
'/app/safetyMeeting/list?selectType=$selectedTab &showCount=10¤tPage=$page',
|
|
|
|
|
method: Method.post,
|
|
|
|
|
data: {
|
|
|
|
|
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
|
|
|
"USER_ID": SessionService.instance.loginUserId,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2025-07-15 08:32:50 +08:00
|
|
|
|
}
|
2025-07-17 16:10:46 +08:00
|
|
|
|
|