4037 lines
		
	
	
		
			113 KiB
		
	
	
	
		
			Dart
		
	
	
			
		
		
	
	
			4037 lines
		
	
	
		
			113 KiB
		
	
	
	
		
			Dart
		
	
	
| import 'dart:io';
 | ||
| 
 | ||
| import 'package:dio/dio.dart';
 | ||
| import 'package:qhd_prevention/pages/app/Danger_paicha/check_information_one_item.dart';
 | ||
| import 'package:qhd_prevention/tools/tools.dart';
 | ||
| 
 | ||
| import 'HttpManager.dart';
 | ||
| 
 | ||
| class ApiService {
 | ||
|   // 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/";
 | ||
|   //  ///人脸识别服务
 | ||
|   // static const String baseFacePath = "https://qaaqwh.qhdsafety.com/whb_stu_face/";
 | ||
| 
 | ||
|   // 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'
 | ||
|   /// 人脸识别服务
 | ||
|   // static const String baseFacePath =  "https://qaaqwh.qhdsafety.com/whb_stu_face";
 | ||
|   static const String baseFacePath = "http://192.168.20.240:8500/whb_stu_face/";
 | ||
|   /// 登录及其他管理后台接口
 | ||
|   // static const String basePath = "http://192.168.20.240:8500/integrated_whb";//测试服务器
 | ||
|   // static const String basePath = "https://qaaqwh.qhdsafety.com/integrated_whb";
 | ||
|   static const String basePath = "http://192.168.20.240:8500/integrated_whb";
 | ||
|   // static const String basePath = "http://192.168.0.25:28199";//王轩服务器
 | ||
|   // static const String basePath = "http://192.168.0.45:28199";//长久服务器
 | ||
| 
 | ||
|   /// 图片文件服务
 | ||
|   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';
 | ||
| 
 | ||
| 
 | ||
|   /// RSA 公钥
 | ||
|   static const publicKey = '''
 | ||
| -----BEGIN PUBLIC KEY-----
 | ||
| MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDUoHAavCikaZxjlDM6Km8cX+ye
 | ||
| 78F4oF39AcEfnE1p2Yn9pJ9WFxYZ4Vkh6F8SKMi7k4nYsKceqB1RwG996SvHQ5C3p
 | ||
| M3nbXCP4K15ad6QhN4a7lzlbLhiJcyIKszvvK8ncUDw8mVQ0j/2mwxv05yH6LN9OK
 | ||
| U6Hzm1ninpWeE+awIDAQAB
 | ||
| -----END PUBLIC KEY-----
 | ||
| ''';
 | ||
| 
 | ||
|   /// 登录验证接口
 | ||
|   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(),
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// TODO -------------–-------------------- 首页 -------------–--------------------
 | ||
|   /// 我的工作
 | ||
|   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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 特殊作业红点数量
 | ||
|   static Future<Map<String, dynamic>> getRedPoint() {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/eightwork/checkWork',
 | ||
|       method: Method.post,
 | ||
|       data: {'USER_ID': SessionService.instance.loginUserId},
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 通知红点数量
 | ||
|   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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 排查数据(我的)
 | ||
|   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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 排查数据(部门)
 | ||
|   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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 安全检查
 | ||
|   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>> safeCheckDangerAcceptanceSubmit(Map data) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/hidden/finalcheck',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         ...data,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
| 
 | ||
| 
 | ||
|   static Future<Map<String, dynamic>> getUpdateInfo() {
 | ||
|     return HttpManager().request(
 | ||
|       projectManagerUrl,
 | ||
|       '/projectDetails/findUpdate?code=cloud&type=APP',
 | ||
|       method: Method.post,
 | ||
|       data: {},
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 校验安全承诺
 | ||
|   static Future<Map<String, dynamic>> checkSafeCorppromise() async {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/corppromise/ISSIGN_II',
 | ||
|       method: Method.post,
 | ||
|       data: {'USER_ID': SessionService.instance.loginUserId},
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 安全承诺详情
 | ||
|   static Future<Map<String, dynamic>> safeCorppromiseDetail() async {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/corppromise/promise_II',
 | ||
|       method: Method.post,
 | ||
|       data: {'USER_ID': SessionService.instance.loginUserId},
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   // /// 安全承诺提交
 | ||
|   static Future<Map<String, dynamic>> submitCorppromiseSign(
 | ||
|     String imagePath,
 | ||
|     Map data,
 | ||
|   ) 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/corppromise/editpeople_II',
 | ||
|       fromData: {
 | ||
|         ...data,
 | ||
|         'CORPINFO_ID': SessionService.instance.corpinfoId,
 | ||
|         'FFILE': await MultipartFile.fromFile(file.path, filename: fileName),
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
|   /// 检查记录详情地图信息(标准排查)
 | ||
|   static Future<Map<String, dynamic>> getNormalRecordMapInfo(Map data) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/customCheckRecord/goMap',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         ...data
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
|   /// 检查记录详情地图信息(隐患排查)
 | ||
|   static Future<Map<String, dynamic>> getDangerRecordMapInfo(Map data) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/checkrecord/goMap',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         ...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.loginUser?['ISMAIN']??'',
 | ||
|         '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/offduty/isRest',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         'CORPINFO_ID': SessionService.instance.corpinfoId,
 | ||
|         'USER_ID': SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
| 
 | ||
|   /// 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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
|   static Future<Map<String, dynamic>> getVideoPermissions() {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/coursestudyvideorecord/getVideoPermissions',
 | ||
|       method: Method.post,
 | ||
|       withToken: true,
 | ||
|       data: {
 | ||
|         'USERNAME': SessionService.instance.username,
 | ||
|         'CORPINFO_ID': SessionService.instance.corpinfoId,
 | ||
|         'USER_ID': SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 学习详情视频列表
 | ||
|   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,
 | ||
|       withToken: true,
 | ||
|       data: {
 | ||
|         'CLASSCURRICULUM_ID': CLASSCURRICULUM_ID,
 | ||
|         'CLASS_ID': CLASS_ID,
 | ||
|         'STUDENT_ID': STUDENT_ID,
 | ||
|         'CORPINFO_ID': SessionService.instance.corpinfoId,
 | ||
|         'USER_ID': SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取视频信息
 | ||
|   static Future<Map<String, dynamic>> fnGetVideoPlayInfo(
 | ||
|     String VIDEOCOURSEWARE_ID,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/edu/audioOrVideo/getVideoPlayInfoApp',
 | ||
|       method: Method.post,
 | ||
|       withToken: true,
 | ||
|       data: {
 | ||
|         'VIDEOCOURSEWARE_ID': VIDEOCOURSEWARE_ID,
 | ||
|         'CORPINFO_ID': SessionService.instance.corpinfoId,
 | ||
|         'USER_ID': SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
|   /// 人脸成功告知服务器
 | ||
|   static Future<Map<String, dynamic>> fnSetUserFaceTime(int FACE_TIME) {
 | ||
|     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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
|   /// 是否需要人脸识别
 | ||
|   static Future<Map<String, dynamic>> fnGetUserFaceTime() {
 | ||
|     return HttpManager().request(
 | ||
|       baseFacePath,
 | ||
|       '/app/user/getUserFaceTime',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         'loading': false,
 | ||
|         'CORPINFO_ID': SessionService.instance.corpinfoId,
 | ||
|         'USER_ID': SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
|   /// 人脸状态,是否上传过人脸
 | ||
|   static Future<Map<String, dynamic>> fnGetUserFace() {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/user/getUserFace',
 | ||
|       method: Method.post,
 | ||
|       withToken: true,
 | ||
|       data: {
 | ||
|         'USERNAME': SessionService.instance.username,
 | ||
|         '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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
|   /// 获取视频进度
 | ||
|   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,
 | ||
|       withToken: true,
 | ||
|       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(Map data) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/edu/coursestudyvideorecord/save',
 | ||
|       method: Method.post,
 | ||
|       withToken: true,
 | ||
|       data: {
 | ||
|         ...data,
 | ||
|         'USER_NAME': SessionService.instance.username,
 | ||
|         'CORPINFO_ID': SessionService.instance.corpinfoId,
 | ||
|         'USER_ID': SessionService.instance.loginUserId,
 | ||
|       },
 | ||
| 
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 人脸比对上传接口
 | ||
|   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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 视频练习
 | ||
|   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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   ///TODO -------------–-------------------- 首页特殊作业 -------------–--------------------
 | ||
|   /// 作业区域校验
 | ||
|   static Future<Map<String, dynamic>> checkSpecialWorkIsInPls(
 | ||
|     String ELECTRONIC_FENCE_AREA_ID,
 | ||
|     String LONGITUDE,
 | ||
|     String LATITUDE,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/eightwork/isInPls',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|         "ELECTRONIC_FENCE_AREA_ID": ELECTRONIC_FENCE_AREA_ID,
 | ||
|         "LONGITUDE": LONGITUDE,
 | ||
|         "LATITUDE": LATITUDE,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 特殊作业
 | ||
|   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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 筛选数据
 | ||
|   static Future<Map<String, dynamic>> searchGetTaskSetps(int task_id) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/eightwork/getTaskSetps',
 | ||
|       method: Method.post,
 | ||
|       data: {"TASK_ID": task_id},
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 特殊作业筛选列表
 | ||
|   static Future<Map<String, dynamic>> specialCheckListWorkCount(
 | ||
|     Map data,
 | ||
|     String url,
 | ||
|   ) {
 | ||
|     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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 八项作业流程图
 | ||
|   static Future<Map<String, dynamic>> workGetFlowList(
 | ||
|     String workType,
 | ||
|     String hotworkId,
 | ||
|   ) {
 | ||
|     // 根据 workType 生成对应的字段名,比如 'hotwork' -> 'HOTWORK_ID'
 | ||
|     final idKey = '${workType.toUpperCase()}_ID';
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/${workType}/getFlowList',
 | ||
|       method: Method.post,
 | ||
|       data: {idKey: hotworkId},
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 作业详情
 | ||
|   static Future<Map<String, dynamic>> getHomeworkFindById(
 | ||
|     String workType,
 | ||
|     String hotworkId,
 | ||
|   ) {
 | ||
|     // 根据 workType 生成对应的字段名,比如 'hotwork' -> 'HOTWORK_ID'
 | ||
|     final idKey = '${workType.toUpperCase()}_ID';
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/${workType}/findById',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         idKey: hotworkId,
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 提交作业
 | ||
|   static Future<Map<String, dynamic>> submitHomework(String url, Map data) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       url,
 | ||
|       method: Method.post,
 | ||
|       data: {...data},
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 气体分析详情列表
 | ||
|   static Future<Map<String, dynamic>> workGasList(
 | ||
|     String workType,
 | ||
|     String workId,
 | ||
|   ) {
 | ||
|     // 根据 workType 生成对应的字段名,比如 'hotwork' -> 'HOTWORK_ID'
 | ||
|     final idKey = '${workType.toUpperCase()}_ID';
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/${workType}/gas/list',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         idKey: workId,
 | ||
|         "tm": DateTime.now().millisecondsSinceEpoch,
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 气体分析详情列表删除
 | ||
|   static Future<Map<String, dynamic>> workGasDelete(
 | ||
|     String workType,
 | ||
|     String workGasId,
 | ||
|   ) {
 | ||
|     // 根据 workType 生成对应的字段名,比如 'hotwork' -> 'HOTWORK_ID'
 | ||
|     final idKey = '${workType.toUpperCase()}GAS_ID';
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/$workType/gas/delete',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         idKey: workGasId,
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 所有签名列表
 | ||
|   static Future<Map<String, dynamic>> listSignFinished(
 | ||
|     String workType,
 | ||
|     String hotworkId,
 | ||
|   ) {
 | ||
|     // 根据 workType 生成对应的字段名,比如 'hotwork' -> 'HOTWORK_ID'
 | ||
|     final idKey = '${workType.toUpperCase()}_ID';
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/${workType}/listSignFinished',
 | ||
|       method: Method.post,
 | ||
|       data: {idKey: hotworkId},
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 安全防护措施
 | ||
|   static Future<Map<String, dynamic>> listSignFinishMeasures(
 | ||
|     String workType,
 | ||
|     String workId,
 | ||
|   ) {
 | ||
|     // 根据 workType 生成对应的字段名,比如 'hotwork' -> 'HOTWORK_ID'
 | ||
|     final idKey = '${workType.toUpperCase()}_ID';
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/$workType/listSignFinishMeasures',
 | ||
|       method: Method.post,
 | ||
|       data: {idKey: workId},
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 所有安全防护措施
 | ||
|   static Future<Map<String, dynamic>> listSignFinishAllMeasures(
 | ||
|     String workType,
 | ||
|   ) {
 | ||
|     final String tm = DateTime.now().millisecondsSinceEpoch.toString();
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/$workType/listAllMeasures?tm=$tm',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 安全措施确认
 | ||
|   static Future<Map<String, dynamic>> listSignSureAllMeasures(
 | ||
|     String workType,
 | ||
|     String homeWorkId,
 | ||
|   ) {
 | ||
|     final String tm = DateTime.now().millisecondsSinceEpoch.toString();
 | ||
|     // 根据 workType 生成对应的字段名,比如 'hotwork' -> 'HOTWORK_ID'
 | ||
|     final idKey = '${workType.toUpperCase()}_ID';
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/$workType/listAllMeasuresForSign?tm=$tm',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         idKey: homeWorkId,
 | ||
|         "CONFIRM_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 关联的特殊作业列表
 | ||
|   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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取是摄像头列表
 | ||
|   static Future<Map<String, dynamic>> getVideomanagerList() {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/videomanager/listAll',
 | ||
|       method: Method.post,
 | ||
|       data: {"CORPINFO_ID": SessionService.instance.corpinfoId},
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取承包商列表
 | ||
|   static Future<Map<String, dynamic>> getUnitListAll() {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/units/listAll',
 | ||
|       method: Method.post,
 | ||
|       data: {"CORPINFO_ID": SessionService.instance.corpinfoId},
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取作业区域列表
 | ||
|   static Future<Map<String, dynamic>> getWorkAreaList() {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/electronicFence/listTree',
 | ||
|       method: Method.post,
 | ||
|       data: {"CORPINFO_ID": SessionService.instance.corpinfoId},
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 保存或作废气体检测
 | ||
|   static Future<Map<String, dynamic>> saveGasTest(
 | ||
|     String workType,
 | ||
|     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,
 | ||
|       path: '/app/$workType/gas/save',
 | ||
|       fromData: data,
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 作业票签字下一步
 | ||
|   static Future<Map<String, dynamic>> saveSafeFunctionSure(
 | ||
|     String workType,
 | ||
|     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,
 | ||
|       path: '/app/$workType/nextStep',
 | ||
|       fromData: data,
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 上传图片或视频
 | ||
|   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 signImgList,
 | ||
|       ) async {
 | ||
|     final Map<String, dynamic> data = {
 | ||
|       "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|     };
 | ||
| 
 | ||
|     // 根据 signImgList 的索引生成 file0, file1 ...
 | ||
|     for (var i = 0; i < signImgList.length; i++) {
 | ||
|       final path = signImgList[i];
 | ||
|       if (path == null || path.isEmpty) continue;
 | ||
|       if (path.contains('uploadFiles')) continue; // 已上传,跳过
 | ||
| 
 | ||
|       final filename = path.split(Platform.pathSeparator).last;
 | ||
|       data['file$i'] = await MultipartFile.fromFile(
 | ||
|         path,
 | ||
|         filename: filename,
 | ||
|       );
 | ||
|     }
 | ||
| 
 | ||
|     final resp = await HttpManager().uploadFaceImage(
 | ||
|       baseUrl: basePath,
 | ||
|       path: '/app/eightwork/saveDangerousOptionsFile',
 | ||
|       fromData: data,
 | ||
|     );
 | ||
| 
 | ||
|     return resp;
 | ||
|   }
 | ||
| 
 | ||
|   /// 受限空间台账信息
 | ||
|   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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   ///TODO -------------–-------------------- 重点工程管理 -------------–--------------------
 | ||
|   static Future<Map<String, dynamic>> getKeyProjectCount() {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/keyprojectcheck/keyProjectCount',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "loginUserId": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 重点工程筛选列表
 | ||
|   static Future<Map<String, dynamic>> getKeyProjectList(Map data, String url) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       url,
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "UserId": SessionService.instance.loginUserId,
 | ||
|         ...data,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 重点工程详情
 | ||
|   static Future<Map<String, dynamic>> getKeyProjectDeatail(
 | ||
|     String OUTSOURCED_ID,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/keyProjects/getOutsourced',
 | ||
|       method: Method.post,
 | ||
|       data: {"OUTSOURCED_ID": OUTSOURCED_ID},
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 工程开始结束
 | ||
|   static Future<Map<String, dynamic>> sureKeyProjectState(
 | ||
|     String OUTSOURCED_ID,
 | ||
|     String State,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/keyProjects/updateState',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "OUTSOURCED_ID": OUTSOURCED_ID,
 | ||
|         'OPERATOR': SessionService.instance.loginUserId,
 | ||
|         'STATE': State,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 安全检查管理列表
 | ||
|   static Future<Map<String, dynamic>> getSafeCheckList(Map data, String url) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       url,
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "UserId": SessionService.instance.loginUserId,
 | ||
|         ...data,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 安全检查记录
 | ||
|   static Future<Map<String, dynamic>> getSafeCheckReciordList(
 | ||
|     Map data,
 | ||
|     String url,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       url,
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "UserId": SessionService.instance.loginUserId,
 | ||
|         ...data,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 安全检查发起
 | ||
|   static Future<Map<String, dynamic>> addSafeCheckRecord(String OUTSOURCED_ID) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/keyProjects/goEdit',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "OUTSOURCED_ID": OUTSOURCED_ID,
 | ||
|         "tm": DateTime.now().millisecondsSinceEpoch.toString(),
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 安全检查
 | ||
|   static Future<Map<String, dynamic>> getSafeCheckGoEdit(
 | ||
|     String KEYPROJECTCHECK_ID,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/keyprojectcheck/goEdit',
 | ||
|       method: Method.post,
 | ||
|       data: {"KEYPROJECTCHECK_ID": KEYPROJECTCHECK_ID},
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 安全检查单位现场负责人列表
 | ||
|   static Future<Map<String, dynamic>> getSafeCheckPersonList(
 | ||
|     String UNITS_ID,
 | ||
|     String NOMAIN,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/keyProjects/listAllPersonnel',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "UNITS_ID": UNITS_ID,
 | ||
|         'NOMAIN': NOMAIN,
 | ||
|         "tm": DateTime.now().millisecondsSinceEpoch.toString(),
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 安全检查检查类型
 | ||
|   static Future<Map<String, dynamic>> getSafeCheckTypeList() {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/dictionaries/listSelectTreeByTkiTree?tm=${DateTime.now().millisecondsSinceEpoch.toString()}',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "DICTIONARIES_ID": '60e6481d96e44a5390ff5c347c4d1ffe',
 | ||
|         "tm": DateTime.now().millisecondsSinceEpoch.toString(),
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 删除list
 | ||
|   static Future<Map<String, dynamic>> removeList() {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/dictionaries/listSelectTreeByTkiTree?tm=${DateTime.now().millisecondsSinceEpoch.toString()}',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "DICTIONARIES_ID": '60e6481d96e44a5390ff5c347c4d1ffe',
 | ||
|         "tm": DateTime.now().millisecondsSinceEpoch.toString(),
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 安全检查被检查单位
 | ||
|   static Future<Map<String, dynamic>> getSafeCheckToUnitList(
 | ||
|     String OUTSOURCED_ID,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/keyProjects/listAllUnits',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "OUTSOURCED_ID": OUTSOURCED_ID,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 安全检查发起提交
 | ||
|   static Future<Map<String, dynamic>> safeCheckPunishSubmit(Map data) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/keyprojectpunish/add',
 | ||
|       method: Method.post,
 | ||
|       data: {...data},
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 安全检查发起提交
 | ||
|   static Future<Map<String, dynamic>> safeKeyprojectCheckSubmit(Map data) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/keyprojectcheck/add',
 | ||
|       method: Method.post,
 | ||
|       data: {...data},
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 重点工程隐患管理列表
 | ||
|   static Future<Map<String, dynamic>> getKeyprojectDangerList(
 | ||
|     String url,
 | ||
|     Map data,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       url,
 | ||
|       method: Method.post,
 | ||
|       data: {...data},
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 重点工程隐患详情
 | ||
|   static Future<Map<String, dynamic>> getKeyprojectDangerFindHidden(
 | ||
|     String HIDDEN_ID,
 | ||
|     String OUTSOURCED_ID,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/keyprojectcheck/findHidden',
 | ||
|       method: Method.post,
 | ||
|       data: {'HIDDEN_ID': HIDDEN_ID, 'OUTSOURCED_ID': OUTSOURCED_ID},
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 重点工程隐患验收
 | ||
|   static Future<Map<String, dynamic>> checkKeyprojectDanger(
 | ||
|     String HIDDEN_ID,
 | ||
|     Map data,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/keyprojectcheck/check',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "CREATOR": SessionService.instance.loginUserId,
 | ||
|         "OPERATOR": SessionService.instance.loginUserId,
 | ||
|         'HIDDEN_ID': HIDDEN_ID,
 | ||
|         ...data,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 上传图片
 | ||
|   static Future<Map<String, dynamic>> addNormalImgFiles(
 | ||
|     String imagePath,
 | ||
|     Map data,
 | ||
|   ) 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/imgfiles/add',
 | ||
|       fromData: {
 | ||
|         ...data,
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|         'FFILE': await MultipartFile.fromFile(file.path, filename: fileName),
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 重点工程处罚
 | ||
|   static Future<Map<String, dynamic>> keyprojectpunishAdd(Map data) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/keyprojectpunish/add',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "CREATOR": SessionService.instance.loginUserId,
 | ||
|         "OPERATOR": SessionService.instance.loginUserId,
 | ||
|         ...data,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 重点工程处罚修改隐患
 | ||
|   static Future<Map<String, dynamic>> keyprojectPunishEdit(
 | ||
|     Map data,
 | ||
|     String ISPUNISH,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/keyprojectcheck/editHiddenIspunish',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "ISPUNISH": ISPUNISH,
 | ||
|         "PUNISH_PERSON": SessionService.instance.loginUserId,
 | ||
|         ...data,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   ///TODO -------------–-------------------- 安全检查 -------------–--------------------
 | ||
|   static Future<Map<String, dynamic>> getSafeCheckCount() {
 | ||
|     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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 安全检查流程图
 | ||
|   static Future<Map<String, dynamic>> safeCheckFlowList(String ID) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/safetyenvironmental/showFlowChart',
 | ||
|       method: Method.post,
 | ||
|       data: {'ID': ID},
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 所以安全检查列表
 | ||
|   static Future<Map<String, dynamic>> getSafeCheckSearchList(
 | ||
|     Map data,
 | ||
|     String url,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       url,
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "loginUserId": SessionService.instance.loginUserId,
 | ||
|         'tm': DateTime.now().millisecondsSinceEpoch.toString(),
 | ||
|         'roleLevel': SessionService.instance.loginUser?['roleLevel'] ?? '',
 | ||
|         'supDeparIds': SessionService.instance.loginUser?['supDeparIds'] ?? '',
 | ||
| 
 | ||
|         ...data,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   // 安全检查列表详情
 | ||
|   static Future<Map<String, dynamic>> getSafeCheckStartGoEdit(
 | ||
|     String INSPECTION_ID,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/safetyenvironmental/goEdit',
 | ||
|       method: Method.post,
 | ||
|       data: {"INSPECTION_ID": INSPECTION_ID},
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   // 安全检查确认列表
 | ||
|   static Future<Map<String, dynamic>> getSafeCheckSureList(
 | ||
|     String INSPECTION_ID,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/safetyenvironmental/goShow',
 | ||
|       method: Method.post,
 | ||
|       data: {"INSPECTION_ID": INSPECTION_ID},
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   // 安全检查操作
 | ||
|   static Future<Map<String, dynamic>> SafeCheckStartGoEditMsg(
 | ||
|     String imagePath,
 | ||
|     String msg,
 | ||
|     Map data,
 | ||
|   ) async {
 | ||
|     Map<String, dynamic> formData = {...data};
 | ||
|     if (imagePath.isNotEmpty) {
 | ||
|       final file = File(imagePath);
 | ||
|       if (!await file.exists()) {
 | ||
|         throw ApiException('file_not_found', '图片不存在:$imagePath');
 | ||
|       }
 | ||
|       final fileName = file.path.split(Platform.pathSeparator).last;
 | ||
|       formData['FFILE'] = await MultipartFile.fromFile(
 | ||
|         file.path,
 | ||
|         filename: fileName,
 | ||
|       );
 | ||
|       return HttpManager().uploadFaceImage(
 | ||
|         baseUrl: basePath,
 | ||
|         path: '/app/safetyenvironmental/$msg',
 | ||
|         fromData: formData,
 | ||
|       );
 | ||
|     } else {
 | ||
|       return HttpManager().request(
 | ||
|         basePath,
 | ||
|         '/app/safetyenvironmental/$msg',
 | ||
|         data: formData,
 | ||
|       );
 | ||
|     }
 | ||
|   }
 | ||
| 
 | ||
|   // 安全检查核实
 | ||
|   static Future<Map<String, dynamic>> getSafePersonCheck(
 | ||
|     Map formData,
 | ||
|     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/safetyenvironmentalinspector/verify',
 | ||
|       fromData: {
 | ||
|         ...formData,
 | ||
|         'FFILE': await MultipartFile.fromFile(file.path, filename: fileName),
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   // 安全检查确认
 | ||
|   static Future<Map<String, dynamic>> getSafePersonSignSure(
 | ||
|     Map formData,
 | ||
|     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/safetyenvironmentalexplain/add',
 | ||
|       fromData: {
 | ||
|         ...formData,
 | ||
|         'FFILE': await MultipartFile.fromFile(file.path, filename: fileName),
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   // 安全检查隐患指派列表
 | ||
|   static Future<Map<String, dynamic>> getSafeCheckDangerList(
 | ||
|     String INSPECTION_ID,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/hidden/listForSafetyEnvironmental',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "INSPECTION_ID": INSPECTION_ID,
 | ||
|         'INSPECTION_STATUS': '3-7',
 | ||
|         'tm': DateTime.now().millisecondsSinceEpoch.toString(),
 | ||
|         'KEYWORDS': '',
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   // 安全检查申辩不成立理由提交
 | ||
|   static Future<Map<String, dynamic>> safeCheckDefendSubmit(
 | ||
|     Map formData,
 | ||
|     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/safetyenvironmental/explain',
 | ||
|       fromData: {
 | ||
|         ...formData,
 | ||
|         'FFILE': await MultipartFile.fromFile(file.path, filename: fileName),
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   // 安全检查隐患指派
 | ||
|   static Future<Map<String, dynamic>> safeCheckDangerConfirm(Map data) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       // 'http://192.168.0.45:28199',
 | ||
|       '/app/hidden/confirm',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         ...data,
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|         "OPERATOR": SessionService.instance.loginUserId,
 | ||
|         "NAME": SessionService.instance.username,
 | ||
|         "USERNAME": SessionService.instance.username,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   // 安全检查申辩记录
 | ||
|   static Future<Map<String, dynamic>> safeCheckDefendRecordList(
 | ||
|     String INSPECTION_ID,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/safetyenvironmental/getExplain',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "INSPECTION_ORIGINATOR_ID": SessionService.instance.loginUserId,
 | ||
|         "INSPECTION_ID": INSPECTION_ID,
 | ||
|         'tm': DateTime.now().millisecondsSinceEpoch.toString(),
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   ///TODO -------------–-------------------- 我的 -------------–--------------------
 | ||
| 
 | ||
|   /// 问题反馈
 | ||
|   static Future<Map<String, dynamic>> setFeedBack(
 | ||
|     String backTitle,
 | ||
|     String backContent,
 | ||
|     String backType,
 | ||
|     String imgPaths,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/feedback/add',
 | ||
|       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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 更新签字信息
 | ||
|   static Future<Map<String, dynamic>> refreshSignInfo(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/user/updateUserSign',
 | ||
|       fromData: {
 | ||
|         'CORPINFO_ID': SessionService.instance.corpinfoId,
 | ||
|         'USER_ID': SessionService.instance.loginUserId,
 | ||
|         'FFILE': await MultipartFile.fromFile(file.path, filename: fileName),
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 问题反馈图片
 | ||
|   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),
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 隐患整改图片上传
 | ||
|   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,
 | ||
|       path: '/app/imgfiles/add',
 | ||
|       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),
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 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),
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 修改密码
 | ||
|   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,
 | ||
|       '/app/offduty/list?showCount=$showCount¤tPage=$currentPage',
 | ||
|       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',
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 通知列表
 | ||
|   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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 通知详情-企业
 | ||
|   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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 更新人脸信息
 | ||
|   static Future<Map<String, dynamic>> reloadMyFace(
 | ||
|     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: basePath,
 | ||
|       path: '/app/user/editUserFaceV2',
 | ||
|       fromData: {
 | ||
|         'CORPINFO_ID': SessionService.instance.corpinfoId,
 | ||
|         'USER_ID': SessionService.instance.loginUserId,
 | ||
|         'FFILE': await MultipartFile.fromFile(file.path, filename: fileName),
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 删除通知-企业
 | ||
|   static Future<Map<String, dynamic>> deleteNotif(String id) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/notice/delete',
 | ||
|       method: Method.post,
 | ||
|       data: {"NOTICECORPUSERID_ID": id},
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取AI预警列表
 | ||
|   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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 离岗申请
 | ||
|   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.deptId,
 | ||
|         "TYPE": 'show',
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取隐患治理列表
 | ||
|   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.isEmpty?"":"$endDate 23:59:59",
 | ||
|         "HIDDENLEVEL": level,
 | ||
|         "HIDDEN_RISKSTANDARD": riskStandard,
 | ||
|         // "SOURCE": 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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取部门列表
 | ||
|   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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取隐患等级列表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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取部门负责人列表
 | ||
|   static Future<Map<String, dynamic>> getListTreePersonList(
 | ||
|     String DEPARTMENT_ID,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/sys/listUser',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "tm": DateTime.now().millisecondsSinceEpoch.toString(),
 | ||
|         "DEPARTMENT_ID": DEPARTMENT_ID,
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取隐患记录详情
 | ||
|   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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取隐患记录详情第二个接口,不知道为什么
 | ||
|   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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取个人信息
 | ||
|   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.deptId,
 | ||
|         "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",
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取法律法规类表第二层列表
 | ||
|   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: {
 | ||
|         "HIDDEN_ID": id,
 | ||
|         "RECTIFICATIONDEPT": buMenId,
 | ||
|         "RECTIFICATIONOR": renYuanId,
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 提交隐患整改
 | ||
|   static Future<Map<String, dynamic>> rectificationSubmissionTwo(
 | ||
|     String id,
 | ||
|     String buMenId,
 | ||
|     String renYuanId,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/customHidden/editRec',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "HIDDEN_ID": id,
 | ||
|         "RECTIFICATIONDEPT": buMenId,
 | ||
|         "RECTIFICATIONOR": renYuanId,
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 提交隐患整改
 | ||
|   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);
 | ||
| 
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/hidden/rectify',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "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,
 | ||
| 
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 提交隐患整改
 | ||
|   static Future<Map<String, dynamic>> normalRectificationSubmissionTwo(
 | ||
|     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);
 | ||
| 
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/customHidden/rectify',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "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,
 | ||
| 
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取隐患级别
 | ||
|   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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 上传隐患快报
 | ||
|   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,
 | ||
|       Map data,
 | ||
|   ) {
 | ||
| 
 | ||
|     print("======>"+{
 | ||
|       // ...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,
 | ||
|     }.toString());
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/hidden/riskListCheckAppAdd',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         // ...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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 提交隐患验收接口
 | ||
|   static Future<Map<String, dynamic>> addHazardAcceptanceZero(
 | ||
|       String type,
 | ||
|       String miaoshu,
 | ||
|       String dataTime,
 | ||
|       String id,
 | ||
|       ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/hidden/check',
 | ||
|       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>> 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>> addHazardAcceptanceTwo(
 | ||
|       String type,
 | ||
|       String miaoshu,
 | ||
|       String dataTime,
 | ||
|       String id,
 | ||
|       String hiddendescr,
 | ||
|       ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/customHidden/check',
 | ||
|       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,
 | ||
|         "HIDDENDESCR":hiddendescr,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
| 
 | ||
|   /// 隐患检查列表
 | ||
|   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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取检查记录列表
 | ||
|   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>> getInspectRecordsDetailYin(String id) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/checkrecord/goEdit',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "CHECKRECORD_ID": id,
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取检查记录详情2-隐患
 | ||
|   static Future<Map<String, dynamic>> getInspectRecordsDetailTwoYin(String id) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/hidden/getChcenkHidden',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "CHECKRECORD_ID": id,
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取检查记录详情
 | ||
|   static Future<Map<String, dynamic>> getInspectRecordsDetail(String id) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/customCheckRecord/goEdit',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "CHECKRECORD_ID": id,
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取检查记录详情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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 删除已上传图片
 | ||
|   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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 暂存隐患记录
 | ||
|   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,
 | ||
|   ) {
 | ||
|     print("======>$type");
 | ||
|     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',
 | ||
|         "CLEARIMG": '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,
 | ||
|         "HIDDENFINDDEPT":  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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 提交排查项
 | ||
|   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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取排查项
 | ||
|   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,
 | ||
|         "CUSTOM_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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取隐患排查排查项
 | ||
|   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": item["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,
 | ||
|       '/app/hidden/goEdit',
 | ||
|       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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取安全例会列表
 | ||
|   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,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取安全例会详情
 | ||
|   static Future<Map<String, dynamic>> getSafetyMeetDetail(String id) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/safetyMeeting/goEdit',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "SAFETY_MEETING_ID": id,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 提交安全例会详情
 | ||
|   static Future<Map<String, dynamic>> setSafetyMeetDetailFeedback(
 | ||
|     String id,
 | ||
|     String text,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/safetyMeeting/confirm',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "SAFETY_MEETING_ID": id,
 | ||
|         "FEED_BACK": text,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 安全例会详情图片
 | ||
|   static Future<Map<String, dynamic>> addSafetyMeetDetailFeedBack(
 | ||
|     String imagePath,
 | ||
|     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,
 | ||
|       path: '/app/safetyMeeting/upload',
 | ||
|       fromData: {
 | ||
|         'FOREIGN_KEY': id,
 | ||
|         'CORPINFO_ID': SessionService.instance.corpinfoId,
 | ||
|         "TYPE": "106",
 | ||
|         'FFILE': await MultipartFile.fromFile(file.path, filename: fileName),
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取设备巡检列表
 | ||
|   static Future<Map<String, dynamic>> getEquipmentInspectionList(
 | ||
|     int page,
 | ||
|     int selectedTab,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/specialequipmentaqxj/list?showCount=100¤tPage=$page',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "UNCHECK": selectedTab == 0 ? "" : "1",
 | ||
|         "tm": DateTime.now().millisecondsSinceEpoch.toString(),
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 开始巡检
 | ||
|   static Future<Map<String, dynamic>> startInspection(
 | ||
|     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,
 | ||
|       path: '/app/specialequipmentaqxj/add',
 | ||
|       fromData: data,
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 设备巡检记录
 | ||
|   static Future<Map<String, dynamic>> getEquipmentDetailList(
 | ||
|     String id,
 | ||
|     int selectedTab,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/specialequipmentaqxj/listByEquipment',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "SPECIALEQUIPMENT_ID": id,
 | ||
|         "IS_CHECKED": selectedTab,
 | ||
|         "tm": DateTime.now().millisecondsSinceEpoch.toString(),
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 巡检记录-详情
 | ||
|   static Future<Map<String, dynamic>> getEquimentDetailListinfo(String id) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/specialequipmentaqxj/goEdit',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "SPECIALEQUIPMENTAQXJ_ID": id,
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取公司安全承诺列表
 | ||
|   static Future<Map<String, dynamic>> getCompanySafetyCommitmentList(
 | ||
|     int page,
 | ||
|     String keyWord,
 | ||
|     String id,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/commitmentcompany/list?showCount=-1¤tPage=$page',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "DEPARTMENT_ID": id,
 | ||
|         "tm": DateTime.now().millisecondsSinceEpoch.toString(),
 | ||
|         "KEYWORDS": keyWord, //关键字模糊查询
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取车间安全承诺列表
 | ||
|   static Future<Map<String, dynamic>> getWorkshopSafetyCommitmentList(
 | ||
|     int page,
 | ||
|     String keyWord,
 | ||
|     String id,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/commitmentworkshop/list?showCount=-1¤tPage=$page',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "DEPARTMENT_ID": id,
 | ||
|         "tm": DateTime.now().millisecondsSinceEpoch.toString(),
 | ||
|         "KEYWORDS": keyWord, //关键字模糊查询
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 其他承诺
 | ||
|   static Future<Map<String, dynamic>> getWorkshopSafetyOtherCommitmen(
 | ||
|     String PROMISE_ID,
 | ||
|     String PROMISEPEOPLE_ID,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/corppromise/goEdit_II',
 | ||
|       method: Method.post,
 | ||
|       data: {"PROMISE_ID": PROMISE_ID, "PROMISEPEOPLE_ID": PROMISEPEOPLE_ID},
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   static Future<Map<String, dynamic>> getWorkshopSafetyOthercorppromise(
 | ||
|     String PROMISEPEOPLE_ID,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/corppromise/editIsRead_II',
 | ||
|       method: Method.post,
 | ||
|       data: {"PROMISEPEOPLE_ID": PROMISEPEOPLE_ID},
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取班组安全承诺列表
 | ||
|   static Future<Map<String, dynamic>> getTeamSafetyCommitmentList(
 | ||
|     int page,
 | ||
|     String keyWord,
 | ||
|     String id,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/commitment/team/list?showCount=-1¤tPage=$page',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "DEPARTMENT_ID": id,
 | ||
|         "tm": DateTime.now().millisecondsSinceEpoch.toString(),
 | ||
|         "KEYWORDS": keyWord, //关键字模糊查询
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取公司安全承诺列表-验证申请
 | ||
|   static Future<Map<String, dynamic>> getCompanySafetyCommitmentPermission(
 | ||
|     String id,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/commitmentcompany/check',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "DEPARTMENT_ID": id,
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取车间安全承诺列表-验证申请
 | ||
|   static Future<Map<String, dynamic>> getWorkshopSafetyCommitmentPermission(
 | ||
|     String id,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/commitmentworkshop/check',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "DEPARTMENT_ID": id,
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取班组安全承诺列表-验证申请
 | ||
|   static Future<Map<String, dynamic>> getTeamSafetyCommitmentPermission(
 | ||
|     String id,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/commitment/team/check',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "DEPARTMENT_ID": id,
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 公司安全承诺-提交
 | ||
|   static Future<Map<String, dynamic>> upCompanySafetyCommitmentApply(
 | ||
|     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[0];
 | ||
|     data['FFILE'] = await MultipartFile.fromFile(
 | ||
|       path,
 | ||
|       filename: path.split(Platform.pathSeparator).last,
 | ||
|     );
 | ||
|     // }
 | ||
|     return HttpManager().uploadFaceImage(
 | ||
|       baseUrl: basePath,
 | ||
|       path: '/app/commitmentcompany/add',
 | ||
|       fromData: data,
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取车间安全承诺列表-提交
 | ||
|   static Future<Map<String, dynamic>> upWorkshopSafetyCommitmentApply(
 | ||
|     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[0];
 | ||
|     data['FFILE'] = await MultipartFile.fromFile(
 | ||
|       path,
 | ||
|       filename: path.split(Platform.pathSeparator).last,
 | ||
|     );
 | ||
|     // }
 | ||
|     return HttpManager().uploadFaceImage(
 | ||
|       baseUrl: basePath,
 | ||
|       path: '/app/commitmentworkshop/add',
 | ||
|       fromData: data,
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取班组安全承诺列表-提交
 | ||
|   static Future<Map<String, dynamic>> upTeamSafetyCommitmentApply(
 | ||
|     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[0];
 | ||
|     data['FFILE'] = await MultipartFile.fromFile(
 | ||
|       path,
 | ||
|       filename: path.split(Platform.pathSeparator).last,
 | ||
|     );
 | ||
|     // }
 | ||
|     return HttpManager().uploadFaceImage(
 | ||
|       baseUrl: basePath,
 | ||
|       path: '/app/commitment/team/add',
 | ||
|       fromData: data,
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取公司安全承诺列表-详情
 | ||
|   static Future<Map<String, dynamic>> getCompanySafetyCommitmentDetail(
 | ||
|     String id,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/commitmentcompany/goEdit',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "COMMITMENTCOMPANY_ID": id,
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取车间安全承诺列表-详情
 | ||
|   static Future<Map<String, dynamic>> getWorkshopSafetyCommitmentDetail(
 | ||
|     String id,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/commitmentworkshop/goEdit',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "COMMITMENTWORKSHOP_ID": id,
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取班组安全承诺列表-详情
 | ||
|   static Future<Map<String, dynamic>> getTeamSafetyCommitmentDetail(String id) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/commitment/team/goEdit',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "COMMITMENTTEAM_ID": id,
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取其他行业承诺-我的承诺列表
 | ||
|   static Future<Map<String, dynamic>> getMyOtherCommitmentsList() {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/corppromise/promiselist_II',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "showCount": "-1",
 | ||
|         "currentPage": "1",
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取其他行业承诺-接收承诺列表
 | ||
|   static Future<Map<String, dynamic>> getAcceptCommitmentList() {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/corppromise/receivePromiseList_II',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "showCount": "-1",
 | ||
|         "currentPage": "1",
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 获取头像
 | ||
|   static Future<Map<String, dynamic>> getUserHeadPhoto(String phone) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/user/getUserPhoto',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "USERNAME": SessionService.instance.loginUser?["USERNAME"] ?? "",
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   ///TODO -------------–-------------------- NFC巡检 -------------–--------------------
 | ||
|   /// 管道区域
 | ||
|   static Future<Map<String, dynamic>> getNfcPipeLineAreaList() {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/pipelineInspection/getPipelineAreaListAll',
 | ||
|       method: Method.post,
 | ||
|       data: {"CORPINFO_ID": SessionService.instance.corpinfoId, 'STATUS': '0'},
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// 管道设备列表
 | ||
|   static Future<Map<String, dynamic>> getNfcEquipmentPipelineListAll(
 | ||
|     String PIPELINE_AREA_ID,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/pipelineInspection/getEquipmentPipelineListAll',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         'STATUS': '0',
 | ||
|         'PIPELINE_AREA_ID': PIPELINE_AREA_ID,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   ///NFC标签入库
 | ||
|   static Future<Map<String, dynamic>> nfcTagAdd(Map data) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/pipelineInspection/nfcTagAdd',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         ...data,
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   ///NFC任务列表
 | ||
|   static Future<Map<String, dynamic>> nfcTaskList(
 | ||
|     int showCount,
 | ||
|     int currentPage,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/pipelineInspection/getPatrolTaskList?showCount=$showCount¤tPage=$currentPage',
 | ||
| 
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|         "STATUS": '0',
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   ///NFC任务详情
 | ||
|   static Future<Map<String, dynamic>> nfcTaskDetailList(
 | ||
|     int showCount,
 | ||
|     int currentPage,
 | ||
|     Map data,
 | ||
|   ) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/pipelineInspection/getPatrolTaskDetailList?showCount=$showCount¤tPage=$currentPage',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         ...data,
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   static Future<Map<String, dynamic>> nfcWriteCheck(String NFC_CODE) {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/pipelineInspection/nfcTagCheck',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|         'NFC_CODE': NFC_CODE,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
|   /// NFC问题反馈详情
 | ||
|   static Future<Map<String, dynamic>> getNfcFeedBackDetail(
 | ||
|       Map data,
 | ||
|       ) async {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/pipelineInspection/goEditNfcExceptionRecord',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         ...data,
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
|   /// NFC问题反馈
 | ||
|   static Future<Map<String, dynamic>> nfcFeedBack(
 | ||
|     Map data,
 | ||
|   ) async {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/pipelineInspection/nfcExceptionRecordAdd',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         ...data,
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
|   // 检查项提交
 | ||
|   static Future<Map<String, dynamic>> nfcChekSubmit(
 | ||
|       Map data,
 | ||
|       ) async {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/pipelineInspection/patrolRecordDetailSaveOrUpdate',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         ...data,
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
|   /// nfc隐患记录
 | ||
|   static Future<Map<String, dynamic>> nfcDangerRecord(
 | ||
|       Map data,
 | ||
|       ) async {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/pipelineInspection/goEditPatrolRecordDetailHidden',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         ...data,
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
|   // NFC隐患上传文件接口
 | ||
|   static Future<Map<String, dynamic>> addNFCImgFiles(
 | ||
|       String imagePath,
 | ||
|       Map data,
 | ||
|       ) 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//imgfiles/add',
 | ||
|       fromData: {
 | ||
|         ...data,
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|         'FFILE': await MultipartFile.fromFile(file.path, filename: fileName),
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
|   /// nfc巡检记录
 | ||
|   static Future<Map<String, dynamic>> nfcInspectionRecord(
 | ||
|       int showCount,
 | ||
|       int currentPage,
 | ||
|       ) async {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/pipelineInspection/getPatrolRecordList?showCount=$showCount¤tPage=$currentPage',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
| 
 | ||
| 
 | ||
|   /// 获取个人签字
 | ||
|   static Future<Map<String, dynamic>> getMySignature() {
 | ||
|     return HttpManager().request(
 | ||
|       basePath,
 | ||
|       '/app/user/geUserInfoSign',
 | ||
|       method: Method.post,
 | ||
|       data: {
 | ||
|         "CORPINFO_ID": SessionService.instance.corpinfoId,
 | ||
|         "USER_ID": SessionService.instance.loginUserId,
 | ||
|       },
 | ||
|     );
 | ||
|   }
 | ||
| 
 | ||
| 
 | ||
| 
 | ||
| 
 | ||
| 
 | ||
| 
 | ||
| }
 |