{"id":75537,"date":"2026-02-12T15:10:58","date_gmt":"2026-02-12T07:10:58","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/75537.html"},"modified":"2026-02-12T15:10:58","modified_gmt":"2026-02-12T07:10:58","slug":"%e9%9b%b6%e5%94%ae%e9%97%a8%e5%ba%97%e6%99%ba%e8%83%bd%e5%b7%a1%e6%a3%80%e4%b8%8e%e7%9b%98%e7%82%b9%e7%b3%bb%e7%bb%9f%ef%bc%9a%e7%89%a9%e8%81%94%e7%bd%91%e4%b8%8e%e5%9b%be%e5%83%8f%e8%af%86%e5%88%ab","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/75537.html","title":{"rendered":"\u96f6\u552e\u95e8\u5e97\u667a\u80fd\u5de1\u68c0\u4e0e\u76d8\u70b9\u7cfb\u7edf\uff1a\u7269\u8054\u7f51\u4e0e\u56fe\u50cf\u8bc6\u522b\u6280\u672f\u5b9e\u8df5"},"content":{"rendered":"<h3>\u95ee\u9898\u80cc\u666f<\/h3>\n<p>\u96f6\u552e\u95e8\u5e97\u65e5\u5e38\u8fd0\u8425\u9762\u4e34\u4e24\u5927\u9ad8\u9891\u75db\u70b9&#xff1a;\u5de1\u68c0\u6548\u7387\u4f4e\u4e0e\u76d8\u70b9\u8017\u65f6\u957f\u3002\u4f20\u7edf\u4f9d\u8d56\u4eba\u5de5\u7eb8\u8d28\u8bb0\u5f55\u7684\u6a21\u5f0f\u5b58\u5728\u660e\u663e\u7f3a\u9677&#xff1a;<\/p>\n<table>\n<tr>\n<p>\u75db\u70b9\u7c7b\u578b<\/p>\n<p>\u5177\u4f53\u8868\u73b0<\/p>\n<p>\u8fd0\u8425\u635f\u5931<\/p>\n<\/tr>\n<tbody>\n<tr>\n<td>\n<p>\u5de1\u68c0\u4f4e\u6548<\/p>\n<\/td>\n<td>\n<p>\u5e97\u5458\u6bcf\u65e5\u82b11-2\u5c0f\u65f6\u5de1\u68c0\u8d27\u67b6\u3001\u68c0\u67e5\u4ef7\u7b7e\u3001\u8bb0\u5f55\u7f3a\u8d27&#xff0c;\u6570\u636e\u6ede\u540e\u4e14\u6613\u9057\u6f0f<\/p>\n<\/td>\n<td>\n<p>\u95ee\u9898\u53d1\u73b0\u5ef6\u8fdf4-6\u5c0f\u65f6&#xff0c;\u5f71\u54cd\u9500\u552e\u673a\u4f1a<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u76d8\u70b9\u8017\u65f6<\/p>\n<\/td>\n<td>\n<p>\u6708\u5ea6\u5168\u76d8\u9700\u95ed\u5e974-8\u5c0f\u65f6&#xff0c;\u62bd\u76d8\u97002-3\u5c0f\u65f6&#xff0c;\u4eba\u5de5\u8ba1\u6570\u9519\u8bef\u738710%&#043;<\/p>\n<\/td>\n<td>\n<p>\u95ed\u5e97\u635f\u5931\u9500\u552e\u989d&#xff0c;\u62bd\u76d8\u6570\u636e\u4e0d\u51c6\u5f71\u54cd\u5e93\u5b58\u51b3\u7b56<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u6570\u636e\u5b64\u5c9b<\/p>\n<\/td>\n<td>\n<p>\u5de1\u68c0\u7167\u7247\u3001\u7f3a\u8d27\u8bb0\u5f55\u3001\u4ef7\u7b7e\u5f02\u5e38\u5206\u6563\u5728\u4e0d\u540c\u4eba\u5458\u624b\u673a\u4e2d&#xff0c;\u96be\u8ffd\u6eaf<\/p>\n<\/td>\n<td>\n<p>\u7ba1\u7406\u5c42\u65e0\u6cd5\u5b9e\u65f6\u638c\u63e1\u95e8\u5e97\u72b6\u6001&#xff0c;\u51b3\u7b56\u7f3a\u4e4f\u4f9d\u636e<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u884c\u4e1a\u5b9e\u8df5\u8868\u660e&#xff0c;\u901a\u8fc7\u7269\u8054\u7f51\u4f20\u611f\u5668&#043;\u56fe\u50cf\u8bc6\u522b&#043;\u79fb\u52a8\u7aef\u95ed\u73af\u7684\u6280\u672f\u65b9\u6848&#xff0c;\u53ef\u5c06\u5de1\u68c0\u8017\u65f6\u964d\u4f4e80%&#xff0c;\u76d8\u70b9\u6548\u7387\u63d0\u53475\u500d\u4ee5\u4e0a\u3002\u90e8\u5206\u96f6\u552eSaaS\u65b9\u6848&#xff08;\u5982\u561a\u561a\u8c61&#xff09;\u5df2\u91c7\u7528\u8be5\u6a21\u5f0f\u5b9e\u73b0\u5206\u949f\u7ea7\u95e8\u5e97\u72b6\u6001\u611f\u77e5&#xff0c;\u672c\u6587\u805a\u7126\u53ef\u590d\u7528\u7684\u6280\u672f\u5b9e\u73b0\u3002<\/p>\n<h3>\u4e00\u3001\u667a\u80fd\u5de1\u68c0\u7cfb\u7edf\u67b6\u6784<\/h3>\n<h4>1.1 \u6574\u4f53\u6280\u672f\u67b6\u6784<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"335\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260212071057-698d7d01cc882.png\" width=\"466\" \/><\/p>\n<h4>1.2 \u5de1\u68c0\u4efb\u52a1\u6a21\u578b\u8bbe\u8ba1<\/h4>\n<p>\/\/ \u5de1\u68c0\u4efb\u52a1\u6a21\u578b<br \/>\n&#064;Data<br \/>\n&#064;Builder<br \/>\npublic class InspectionTask {<\/p>\n<p>    \/\/ \u57fa\u7840\u4fe1\u606f<br \/>\n    private String taskId;<br \/>\n    private String storeId;<br \/>\n    private String taskType;        \/\/ DAILY&#xff08;\u65e5\u5e38\u5de1\u68c0&#xff09;\/ WEEKLY&#xff08;\u5468\u68c0&#xff09;\/ SPECIAL&#xff08;\u4e13\u9879&#xff09;<br \/>\n    private String taskName;<br \/>\n    private String assignee;        \/\/ \u6307\u6d3e\u4eba<br \/>\n    private String executor;        \/\/ \u6267\u884c\u4eba<br \/>\n    private LocalDateTime scheduledTime; \/\/ \u8ba1\u5212\u6267\u884c\u65f6\u95f4<br \/>\n    private LocalDateTime startTime;     \/\/ \u5b9e\u9645\u5f00\u59cb\u65f6\u95f4<br \/>\n    private LocalDateTime endTime;       \/\/ \u5b9e\u9645\u7ed3\u675f\u65f6\u95f4<\/p>\n<p>    \/\/ \u4efb\u52a1\u72b6\u6001<br \/>\n    private String status;          \/\/ PENDING \/ IN_PROGRESS \/ COMPLETED \/ EXPIRED<br \/>\n    private String completionRate;  \/\/ \u5b8c\u6210\u7387&#xff1a;75%<\/p>\n<p>    \/\/ \u5de1\u68c0\u9879\u5217\u8868<br \/>\n    private List&lt;InspectionItem&gt; items;<\/p>\n<p>    &#064;Data<br \/>\n    &#064;Builder<br \/>\n    public static class InspectionItem {<br \/>\n        private String itemId;<br \/>\n        private String itemType;    \/\/ SHELF&#xff08;\u8d27\u67b6&#xff09;\/ PRICE_TAG&#xff08;\u4ef7\u7b7e&#xff09;\/ PROMOTION&#xff08;\u4fc3\u9500&#xff09;\/ CLEANLINESS&#xff08;\u6e05\u6d01&#xff09;<br \/>\n        private String location;    \/\/ \u8d27\u4f4d\u7f16\u53f7&#xff1a;A01-02-03<br \/>\n        private String question;    \/\/ \u68c0\u67e5\u9879&#xff1a;\u8d27\u67b6\u662f\u5426\u7f3a\u8d27&#xff1f;\u4ef7\u7b7e\u662f\u5426\u6e05\u6670&#xff1f;<br \/>\n        private String answerType;  \/\/ YES_NO \/ PHOTO \/ TEXT \/ COUNT<br \/>\n        private String answer;      \/\/ \u7b54\u6848<br \/>\n        private String photoUrl;    \/\/ \u7167\u7247URL&#xff08;\u5982\u6709&#xff09;<br \/>\n        private Boolean abnormal;   \/\/ \u662f\u5426\u5f02\u5e38<br \/>\n        private String remark;      \/\/ \u5907\u6ce8<br \/>\n        private LocalDateTime checkTime; \/\/ \u68c0\u67e5\u65f6\u95f4<br \/>\n    }<br \/>\n}<\/p>\n<p>\/\/ \u5de1\u68c0\u6a21\u677f&#xff08;\u53ef\u590d\u7528&#xff09;<br \/>\n&#064;Data<br \/>\npublic class InspectionTemplate {<br \/>\n    private String templateId;<br \/>\n    private String templateName;<br \/>\n    private String businessType;    \/\/ \u4e1a\u6001&#xff1a;convenience \/ adult \/ fresh<br \/>\n    private List&lt;InspectionItemTemplate&gt; itemTemplates;<\/p>\n<p>    &#064;Data<br \/>\n    public static class InspectionItemTemplate {<br \/>\n        private String itemType;<br \/>\n        private String question;<br \/>\n        private String answerType;<br \/>\n        private Boolean required;   \/\/ \u662f\u5426\u5fc5\u586b<br \/>\n        private String defaultValue; \/\/ \u9ed8\u8ba4\u503c<br \/>\n    }<br \/>\n}<\/p>\n<h4>1.3 \u79fb\u52a8\u7aef\u5de1\u68c0APP\u6838\u5fc3\u529f\u80fd<\/h4>\n<p>\u91c7\u7528Flutter\u8de8\u5e73\u53f0\u5f00\u53d1&#xff0c;\u652f\u6301\u79bb\u7ebf\u64cd\u4f5c\u4e0e\u81ea\u52a8\u540c\u6b65&#xff1a;<\/p>\n<p>\/\/ \u5de1\u68c0\u4efb\u52a1\u6267\u884c\u9875\u9762<br \/>\nclass InspectionTaskPage extends StatefulWidget {<br \/>\n  final String taskId;<\/p>\n<p>  &#064;override<br \/>\n  _InspectionTaskPageState createState() &#061;&gt; _InspectionTaskPageState();<br \/>\n}<\/p>\n<p>class _InspectionTaskPageState extends State&lt;InspectionTaskPage&gt; {<br \/>\n  InspectionTask? task;<br \/>\n  int currentIndex &#061; 0;<br \/>\n  bool isSubmitting &#061; false;<\/p>\n<p>  &#064;override<br \/>\n  void initState() {<br \/>\n    super.initState();<br \/>\n    loadTask();<br \/>\n  }<\/p>\n<p>  \/\/ \u52a0\u8f7d\u4efb\u52a1&#xff08;\u652f\u6301\u79bb\u7ebf&#xff09;<br \/>\n  Future&lt;void&gt; loadTask() async {<br \/>\n    \/\/ 1. \u4f18\u5148\u4ece\u672c\u5730\u7f13\u5b58\u52a0\u8f7d<br \/>\n    task &#061; await LocalCache.getTask(widget.taskId);<\/p>\n<p>    if (task &#061;&#061; null) {<br \/>\n      \/\/ 2. \u7f13\u5b58\u65e0\u6570\u636e&#xff0c;\u4ece\u4e91\u7aef\u62c9\u53d6<br \/>\n      try {<br \/>\n        task &#061; await InspectionApi.getTask(widget.taskId);<br \/>\n        \/\/ 3. \u4fdd\u5b58\u5230\u672c\u5730\u7f13\u5b58<br \/>\n        await LocalCache.saveTask(task!);<br \/>\n      } catch (e) {<br \/>\n        if (mounted) {<br \/>\n          showToast(&#039;\u7f51\u7edc\u5f02\u5e38&#xff0c;\u5c06\u4f7f\u7528\u79bb\u7ebf\u6a21\u5f0f&#039;);<br \/>\n        }<br \/>\n      }<br \/>\n    }<\/p>\n<p>    if (mounted) setState(() {});<br \/>\n  }<\/p>\n<p>  \/\/ \u62cd\u7167\u5e76\u4e0a\u4f20<br \/>\n  Future&lt;void&gt; takePhoto() async {<br \/>\n    final XFile? photo &#061; await ImagePicker().pickImage(<br \/>\n      source: ImageSource.camera,<br \/>\n      maxWidth: 1920,<br \/>\n      maxHeight: 1080,<br \/>\n    );<\/p>\n<p>    if (photo !&#061; null) {<br \/>\n      \/\/ 1. \u4fdd\u5b58\u5230\u672c\u5730<br \/>\n      String localPath &#061; await saveToLocal(photo.path);<\/p>\n<p>      \/\/ 2. \u538b\u7f29\u56fe\u7247&#xff08;\u51cf\u5c11\u4e0a\u4f20\u6d41\u91cf&#xff09;<br \/>\n      String compressedPath &#061; await compressImage(localPath);<\/p>\n<p>      \/\/ 3. \u66f4\u65b0\u7b54\u6848<br \/>\n      setState(() {<br \/>\n        task!.items[currentIndex].photoUrl &#061; compressedPath;<br \/>\n        task!.items[currentIndex].answer &#061; &#039;PHOTO_TAKEN&#039;;<br \/>\n      });<\/p>\n<p>      \/\/ 4. \u672c\u5730\u7f13\u5b58&#xff08;\u652f\u6301\u79bb\u7ebf&#xff09;<br \/>\n      await LocalCache.saveTask(task!);<br \/>\n    }<br \/>\n  }<\/p>\n<p>  \/\/ \u63d0\u4ea4\u4efb\u52a1<br \/>\n  Future&lt;void&gt; submitTask() async {<br \/>\n    if (isSubmitting) return;<\/p>\n<p>    setState(() { isSubmitting &#061; true; });<\/p>\n<p>    try {<br \/>\n      \/\/ 1. \u6821\u9a8c\u5fc5\u586b\u9879<br \/>\n      if (!validateRequiredItems()) {<br \/>\n        showToast(&#039;\u8bf7\u5b8c\u6210\u6240\u6709\u5fc5\u586b\u9879&#039;);<br \/>\n        setState(() { isSubmitting &#061; false; });<br \/>\n        return;<br \/>\n      }<\/p>\n<p>      \/\/ 2. \u6807\u8bb0\u4efb\u52a1\u5b8c\u6210<br \/>\n      task!.status &#061; &#039;COMPLETED&#039;;<br \/>\n      task!.endTime &#061; DateTime.now();<\/p>\n<p>      \/\/ 3. \u4e0a\u4f20\u5230\u4e91\u7aef&#xff08;\u652f\u6301\u65ad\u70b9\u7eed\u4f20&#xff09;<br \/>\n      await uploadWithRetry(task!);<\/p>\n<p>      \/\/ 4. \u6e05\u9664\u672c\u5730\u7f13\u5b58<br \/>\n      await LocalCache.deleteTask(widget.taskId);<\/p>\n<p>      if (mounted) {<br \/>\n        showToast(&#039;\u63d0\u4ea4\u6210\u529f&#039;);<br \/>\n        Navigator.pop(context, true);<br \/>\n      }<\/p>\n<p>    } catch (e) {<br \/>\n      if (mounted) {<br \/>\n        showToast(&#039;\u63d0\u4ea4\u5931\u8d25&#xff0c;\u8bf7\u68c0\u67e5\u7f51\u7edc&#039;);<br \/>\n      }<br \/>\n    } finally {<br \/>\n      if (mounted) setState(() { isSubmitting &#061; false; });<br \/>\n    }<br \/>\n  }<\/p>\n<p>  \/\/ \u79bb\u7ebf\u6570\u636e\u540c\u6b65&#xff08;\u7f51\u7edc\u6062\u590d\u540e\u81ea\u52a8\u89e6\u53d1&#xff09;<br \/>\n  void syncOfflineData() {<br \/>\n    LocalCache.getPendingTasks().then((tasks) {<br \/>\n      for (var task in tasks) {<br \/>\n        uploadWithRetry(task).then((_) {<br \/>\n          LocalCache.deleteTask(task.taskId);<br \/>\n        }).catchError((e) {<br \/>\n          \/\/ \u4e0a\u4f20\u5931\u8d25\u4fdd\u7559&#xff0c;\u4e0b\u6b21\u518d\u8bd5<br \/>\n        });<br \/>\n      }<br \/>\n    });<br \/>\n  }<br \/>\n}<\/p>\n<h3>\u4e8c\u3001\u56fe\u50cf\u8bc6\u522b\u6280\u672f\u5e94\u7528<\/h3>\n<h4>2.1 \u8d27\u67b6\u7f3a\u8d27\u68c0\u6d4b<\/h4>\n<p>\u91c7\u7528\u8f7b\u91cf\u7ea7YOLO\u6a21\u578b\u5728\u79fb\u52a8\u7aef\u5b9e\u65f6\u68c0\u6d4b\u8d27\u67b6\u5546\u54c1\u7f3a\u5931&#xff1a;<\/p>\n<p># TensorFlow Lite \u8d27\u67b6\u7f3a\u8d27\u68c0\u6d4b\u6a21\u578b<br \/>\nclass ShelfStockDetector:<br \/>\n    def __init__(self, model_path&#061;&#039;shelf_detector.tflite&#039;):<br \/>\n        # \u52a0\u8f7dTFLite\u6a21\u578b<br \/>\n        self.interpreter &#061; tf.lite.Interpreter(model_path&#061;model_path)<br \/>\n        self.interpreter.allocate_tensors()<\/p>\n<p>        self.input_details &#061; self.interpreter.get_input_details()<br \/>\n        self.output_details &#061; self.interpreter.get_output_details()<\/p>\n<p>    def detect(self, image):<br \/>\n        &#034;&#034;&#034;<br \/>\n        \u68c0\u6d4b\u8d27\u67b6\u5546\u54c1\u7f3a\u5931<br \/>\n        :param image: RGB\u56fe\u50cf (H, W, 3)<br \/>\n        :return: \u7f3a\u8d27\u533a\u57df\u5217\u8868 [(x1, y1, x2, y2, confidence), &#8230;]<br \/>\n        &#034;&#034;&#034;<br \/>\n        # 1. \u9884\u5904\u7406&#xff1a;resize &#043; normalize<br \/>\n        input_shape &#061; self.input_details[0][&#039;shape&#039;]<br \/>\n        resized &#061; cv2.resize(image, (input_shape[2], input_shape[1]))<br \/>\n        normalized &#061; resized.astype(np.float32) \/ 255.0<br \/>\n        input_data &#061; np.expand_dims(normalized, axis&#061;0)<\/p>\n<p>        # 2. \u63a8\u7406<br \/>\n        self.interpreter.set_tensor(self.input_details[0][&#039;index&#039;], input_data)<br \/>\n        self.interpreter.invoke()<\/p>\n<p>        # 3. \u540e\u5904\u7406&#xff1a;\u83b7\u53d6\u68c0\u6d4b\u7ed3\u679c<br \/>\n        boxes &#061; self.interpreter.get_tensor(self.output_details[0][&#039;index&#039;])[0]<br \/>\n        scores &#061; self.interpreter.get_tensor(self.output_details[1][&#039;index&#039;])[0]<br \/>\n        classes &#061; self.interpreter.get_tensor(self.output_details[2][&#039;index&#039;])[0]<\/p>\n<p>        # 4. \u8fc7\u6ee4\u4f4e\u7f6e\u4fe1\u5ea6\u68c0\u6d4b<br \/>\n        threshold &#061; 0.5<br \/>\n        stockout_regions &#061; []<\/p>\n<p>        for i in range(len(scores)):<br \/>\n            if scores[i] &gt; threshold and classes[i] &#061;&#061; 0:  # 0&#061;\u7f3a\u8d27\u533a\u57df<br \/>\n                y1, x1, y2, x2 &#061; boxes[i]<br \/>\n                h, w &#061; image.shape[:2]<br \/>\n                stockout_regions.append((<br \/>\n                    int(x1 * w), int(y1 * h),<br \/>\n                    int(x2 * w), int(y2 * h),<br \/>\n                    float(scores[i])<br \/>\n                ))<\/p>\n<p>        return stockout_regions<\/p>\n<p>    def draw_result(self, image, stockout_regions):<br \/>\n        &#034;&#034;&#034;\u5728\u56fe\u50cf\u4e0a\u7ed8\u5236\u7f3a\u8d27\u533a\u57df&#034;&#034;&#034;<br \/>\n        result &#061; image.copy()<\/p>\n<p>        for (x1, y1, x2, y2, conf) in stockout_regions:<br \/>\n            # \u7ed8\u5236\u7ea2\u8272\u77e9\u5f62\u6846<br \/>\n            cv2.rectangle(result, (x1, y1), (x2, y2), (0, 0, 255), 2)<br \/>\n            # \u7ed8\u5236\u7f6e\u4fe1\u5ea6\u6807\u7b7e<br \/>\n            label &#061; f&#039;Stockout: {conf:.2f}&#039;<br \/>\n            cv2.putText(result, label, (x1, y1 &#8211; 10),<br \/>\n                       cv2.FONT_HERSHEY_SIMPLEX, 0.5, (0, 0, 255), 1)<\/p>\n<p>        return result<\/p>\n<p>\u6a21\u578b\u4f18\u5316\u5b9e\u8df5&#xff1a;<\/p>\n<table>\n<tr>\n<p>\u4f18\u5316\u9879<\/p>\n<p>\u6280\u672f\u65b9\u6848<\/p>\n<p>\u6548\u679c<\/p>\n<\/tr>\n<tbody>\n<tr>\n<td>\n<p>\u6a21\u578b\u91cf\u5316<\/p>\n<\/td>\n<td>\n<p>FP32 \u2192 INT8<\/p>\n<\/td>\n<td>\n<p>\u6a21\u578b\u4f53\u79ef\u219375%&#xff0c;\u63a8\u7406\u901f\u5ea6\u21911.8x<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u8f93\u5165\u5206\u8fa8\u7387<\/p>\n<\/td>\n<td>\n<p>640\u00d7640 \u2192 320\u00d7320<\/p>\n<\/td>\n<td>\n<p>\u63a8\u7406\u901f\u5ea6\u21913x&#xff0c;mAP\u21930.05<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u6a21\u578b\u526a\u679d<\/p>\n<\/td>\n<td>\n<p>\u79fb\u9664\u5197\u4f59\u5377\u79ef\u5c42<\/p>\n<\/td>\n<td>\n<p>\u53c2\u6570\u91cf\u219340%&#xff0c;\u7cbe\u5ea6\u635f\u5931&lt;2%<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u786c\u4ef6\u52a0\u901f<\/p>\n<\/td>\n<td>\n<p>NNAPI&#xff08;Android&#xff09;\/ Core ML&#xff08;iOS&#xff09;<\/p>\n<\/td>\n<td>\n<p>\u63a8\u7406\u901f\u5ea6\u21912x<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>2.2 \u4ef7\u7b7e\u8bc6\u522b\u4e0e\u6bd4\u5bf9<\/h4>\n<p>\u901a\u8fc7OCR\u8bc6\u522b\u4ef7\u7b7e\u4ef7\u683c&#xff0c;\u4e0e\u7cfb\u7edf\u4ef7\u683c\u81ea\u52a8\u6bd4\u5bf9&#xff1a;<\/p>\n<p># \u4ef7\u7b7eOCR\u8bc6\u522b<br \/>\nclass PriceTagOCR:<br \/>\n    def __init__(self):<br \/>\n        # \u4f7f\u7528PaddleOCR\u8f7b\u91cf\u6a21\u578b<br \/>\n        self.ocr &#061; PaddleOCR(<br \/>\n            use_angle_cls&#061;True,<br \/>\n            lang&#061;&#039;ch&#039;,<br \/>\n            det_model_dir&#061;&#039;ch_PP-OCRv4_det_infer&#039;,<br \/>\n            rec_model_dir&#061;&#039;ch_PP-OCRv4_rec_infer&#039;,<br \/>\n            cls_model_dir&#061;&#039;ch_ppocr_mobile_v2.0_cls_infer&#039;<br \/>\n        )<\/p>\n<p>    def recognize_price(self, image, sku_id):<br \/>\n        &#034;&#034;&#034;<br \/>\n        \u8bc6\u522b\u4ef7\u7b7e\u4ef7\u683c\u5e76\u6bd4\u5bf9\u7cfb\u7edf\u4ef7\u683c<br \/>\n        :param image: \u4ef7\u7b7e\u533a\u57df\u56fe\u50cf<br \/>\n        :param sku_id: \u5546\u54c1SKU<br \/>\n        :return: \u8bc6\u522b\u7ed3\u679c<br \/>\n        &#034;&#034;&#034;<br \/>\n        # 1. OCR\u8bc6\u522b<br \/>\n        result &#061; self.ocr.ocr(image, cls&#061;True)<\/p>\n<p>        # 2. \u63d0\u53d6\u6570\u5b57&#xff08;\u4ef7\u683c&#xff09;<br \/>\n        recognized_text &#061; &#039;&#039;<br \/>\n        for line in result:<br \/>\n            if line is None: continue<br \/>\n            for word_info in line:<br \/>\n                text &#061; word_info[1][0]<br \/>\n                # \u63d0\u53d6\u6570\u5b57\u548c\u5c0f\u6570\u70b9<br \/>\n                price_match &#061; re.search(r&#039;\\\\d&#043;\\\\.?\\\\d*&#039;, text)<br \/>\n                if price_match:<br \/>\n                    recognized_text &#061; price_match.group()<br \/>\n                    break<\/p>\n<p>        if not recognized_text:<br \/>\n            return {<br \/>\n                &#039;success&#039;: False,<br \/>\n                &#039;error&#039;: &#039;\u672a\u8bc6\u522b\u5230\u4ef7\u683c\u6570\u5b57&#039;<br \/>\n            }<\/p>\n<p>        # 3. \u8f6c\u6362\u4e3a\u6570\u5b57<br \/>\n        try:<br \/>\n            recognized_price &#061; float(recognized_text)<br \/>\n        except ValueError:<br \/>\n            return {<br \/>\n                &#039;success&#039;: False,<br \/>\n                &#039;error&#039;: f&#039;\u4ef7\u683c\u683c\u5f0f\u9519\u8bef: {recognized_text}&#039;<br \/>\n            }<\/p>\n<p>        # 4. \u4e0e\u7cfb\u7edf\u4ef7\u683c\u6bd4\u5bf9<br \/>\n        system_price &#061; self.get_system_price(sku_id)<\/p>\n<p>        is_match &#061; abs(recognized_price &#8211; system_price) &lt; 0.1  # \u5141\u8bb80.1\u5143\u8bef\u5dee<\/p>\n<p>        return {<br \/>\n            &#039;success&#039;: True,<br \/>\n            &#039;recognized_price&#039;: recognized_price,<br \/>\n            &#039;system_price&#039;: system_price,<br \/>\n            &#039;is_match&#039;: is_match,<br \/>\n            &#039;difference&#039;: recognized_price &#8211; system_price,<br \/>\n            &#039;confidence&#039;: self.calculate_confidence(result)<br \/>\n        }<\/p>\n<p>    def get_system_price(self, sku_id):<br \/>\n        &#034;&#034;&#034;\u4ece\u7cfb\u7edf\u83b7\u53d6\u5546\u54c1\u4ef7\u683c&#034;&#034;&#034;<br \/>\n        # \u5b9e\u9645\u9879\u76ee\u4e2d\u8c03\u7528API<br \/>\n        # return priceService.getPrice(sku_id)<br \/>\n        return 15.9  # \u793a\u4f8b<\/p>\n<p>    def calculate_confidence(self, ocr_result):<br \/>\n        &#034;&#034;&#034;\u8ba1\u7b97OCR\u7f6e\u4fe1\u5ea6&#034;&#034;&#034;<br \/>\n        if not ocr_result or not ocr_result[0]:<br \/>\n            return 0.0<\/p>\n<p>        scores &#061; [word[1][1] for line in ocr_result if line for word in line]<br \/>\n        return sum(scores) \/ len(scores) if scores else 0.0<\/p>\n<h3>\u4e09\u3001IoT\u4f20\u611f\u5668\u8054\u52a8<\/h3>\n<h4>3.1 \u4f20\u611f\u5668\u6570\u636e\u91c7\u96c6<\/h4>\n<p>\u90e8\u7f72\u6e29\u6e7f\u5ea6\u3001\u95e8\u78c1\u3001\u5ba2\u6d41\u8ba1\u6570\u5668\u7b49\u4f20\u611f\u5668&#xff0c;\u5b9e\u65f6\u76d1\u63a7\u95e8\u5e97\u73af\u5883&#xff1a;<\/p>\n<p>\/\/ \u4f20\u611f\u5668\u6570\u636e\u6a21\u578b<br \/>\n&#064;Data<br \/>\npublic class SensorData {<br \/>\n    private String sensorId;<br \/>\n    private String sensorType;      \/\/ TEMPERATURE \/ HUMIDITY \/ DOOR \/ FOOTFALL<br \/>\n    private String storeId;<br \/>\n    private String location;        \/\/ \u5b89\u88c5\u4f4d\u7f6e&#xff1a;\u51b7\u85cf\u67dcA \/ \u5165\u53e3 \/ \u540e\u4ed3<br \/>\n    private Double value;           \/\/ \u4f20\u611f\u5668\u503c<br \/>\n    private String unit;            \/\/ \u5355\u4f4d&#xff1a;\u2103 \/ % \/ COUNT<br \/>\n    private LocalDateTime timestamp;<br \/>\n    private String status;          \/\/ NORMAL \/ WARNING \/ ALARM<br \/>\n}<\/p>\n<p>\/\/ MQTT\u4f20\u611f\u5668\u6570\u636e\u63a5\u6536\u5668<br \/>\n&#064;Component<br \/>\npublic class SensorDataReceiver {<\/p>\n<p>    &#064;Autowired<br \/>\n    private SensorDataService sensorDataService;<\/p>\n<p>    &#064;Autowired<br \/>\n    private AlertService alertService;<\/p>\n<p>    \/**<br \/>\n     * \u8ba2\u9605\u4f20\u611f\u5668\u6570\u636e\u4e3b\u9898<br \/>\n     * \u4e3b\u9898\u683c\u5f0f&#xff1a;sensor\/{storeId}\/{sensorType}\/{sensorId}<br \/>\n     *\/<br \/>\n    &#064;PostConstruct<br \/>\n    public void subscribe() {<br \/>\n        mqttClient.subscribe(&#034;sensor\/&#043;\/&#043;\/&#043;&#034;, (topic, payload) -&gt; {<br \/>\n            try {<br \/>\n                \/\/ 1. \u89e3\u6790MQTT\u6d88\u606f<br \/>\n                String[] parts &#061; topic.split(&#034;\/&#034;);<br \/>\n                String storeId &#061; parts[1];<br \/>\n                String sensorType &#061; parts[2];<br \/>\n                String sensorId &#061; parts[3];<\/p>\n<p>                SensorDataPayload payloadObj &#061; JsonUtils.fromJson(<br \/>\n                    new String(payload), SensorDataPayload.class<br \/>\n                );<\/p>\n<p>                \/\/ 2. \u6784\u5efa\u4f20\u611f\u5668\u6570\u636e<br \/>\n                SensorData data &#061; SensorData.builder()<br \/>\n                    .sensorId(sensorId)<br \/>\n                    .sensorType(sensorType)<br \/>\n                    .storeId(storeId)<br \/>\n                    .value(payloadObj.getValue())<br \/>\n                    .unit(payloadObj.getUnit())<br \/>\n                    .timestamp(LocalDateTime.now())<br \/>\n                    .build();<\/p>\n<p>                \/\/ 3. \u72b6\u6001\u5224\u5b9a<br \/>\n                data.setStatus(evaluateStatus(sensorType, payloadObj.getValue()));<\/p>\n<p>                \/\/ 4. \u4fdd\u5b58\u5230\u6570\u636e\u5e93<br \/>\n                sensorDataService.save(data);<\/p>\n<p>                \/\/ 5. \u5f02\u5e38\u544a\u8b66<br \/>\n                if (&#034;WARNING&#034;.equals(data.getStatus()) || &#034;ALARM&#034;.equals(data.getStatus())) {<br \/>\n                    alertService.triggerSensorAlert(data);<br \/>\n                }<\/p>\n<p>            } catch (Exception e) {<br \/>\n                log.error(&#034;\u4f20\u611f\u5668\u6570\u636e\u5904\u7406\u5931\u8d25, topic&#061;{}&#034;, topic, e);<br \/>\n            }<br \/>\n        });<br \/>\n    }<\/p>\n<p>    \/**<br \/>\n     * \u8bc4\u4f30\u4f20\u611f\u5668\u72b6\u6001<br \/>\n     *\/<br \/>\n    private String evaluateStatus(String sensorType, Double value) {<br \/>\n        switch (sensorType) {<br \/>\n            case &#034;TEMPERATURE&#034;:<br \/>\n                \/\/ \u51b7\u85cf\u67dc\u6e29\u5ea6&#xff1a;0-8\u2103\u6b63\u5e38&#xff0c;&lt;-2\u2103\u6216&gt;10\u2103\u544a\u8b66<br \/>\n                if (value &lt; -2 || value &gt; 10) return &#034;ALARM&#034;;<br \/>\n                if (value &lt; 0 || value &gt; 8) return &#034;WARNING&#034;;<br \/>\n                return &#034;NORMAL&#034;;<\/p>\n<p>            case &#034;HUMIDITY&#034;:<br \/>\n                \/\/ \u6e7f\u5ea6&#xff1a;40-70%\u6b63\u5e38&#xff0c;&lt;30%\u6216&gt;80%\u544a\u8b66<br \/>\n                if (value &lt; 30 || value &gt; 80) return &#034;ALARM&#034;;<br \/>\n                if (value &lt; 40 || value &gt; 70) return &#034;WARNING&#034;;<br \/>\n                return &#034;NORMAL&#034;;<\/p>\n<p>            case &#034;DOOR&#034;:<br \/>\n                \/\/ \u95e8\u78c1&#xff1a;0&#061;\u5173\u95ed&#xff0c;1&#061;\u5f00\u542f&#xff0c;\u975e\u8425\u4e1a\u65f6\u95f4\u5f00\u542f\u544a\u8b66<br \/>\n                if (value &gt; 0 &amp;&amp; !isBusinessHours()) return &#034;ALARM&#034;;<br \/>\n                return &#034;NORMAL&#034;;<\/p>\n<p>            case &#034;FOOTFALL&#034;:<br \/>\n                \/\/ \u5ba2\u6d41&#xff1a;\u5f02\u5e38\u9ad8\/\u4f4e\u503c\u9884\u8b66<br \/>\n                Double avg &#061; getAverageFootfallToday();<br \/>\n                if (value &gt; avg * 2) return &#034;WARNING&#034;; \/\/ \u5ba2\u6d41\u6fc0\u589e<br \/>\n                if (value &lt; avg * 0.3) return &#034;WARNING&#034;; \/\/ \u5ba2\u6d41\u9aa4\u964d<br \/>\n                return &#034;NORMAL&#034;;<\/p>\n<p>            default:<br \/>\n                return &#034;NORMAL&#034;;<br \/>\n        }<br \/>\n    }<br \/>\n}<\/p>\n<p>&#064;Data<br \/>\nclass SensorDataPayload {<br \/>\n    private Double value;<br \/>\n    private String unit;<br \/>\n    private Long timestamp;<br \/>\n}<\/p>\n<h4>3.2 \u4f20\u611f\u5668\u5f02\u5e38\u544a\u8b66\u89c4\u5219<\/h4>\n<p>&#064;Component<br \/>\npublic class SensorAlertRules {<\/p>\n<p>    \/**<br \/>\n     * \u6e29\u5ea6\u5f02\u5e38\u544a\u8b66\u89c4\u5219<br \/>\n     *\/<br \/>\n    &#064;Rule(name &#061; &#034;\u51b7\u85cf\u67dc\u6e29\u5ea6\u5f02\u5e38&#034;)<br \/>\n    public boolean coldStorageTempAlert(SensorData data) {<br \/>\n        return &#034;TEMPERATURE&#034;.equals(data.getSensorType()) &amp;&amp;<br \/>\n               (&#034;ALARM&#034;.equals(data.getStatus()) || &#034;WARNING&#034;.equals(data.getStatus())) &amp;&amp;<br \/>\n               data.getLocation().contains(&#034;\u51b7\u85cf&#034;);<br \/>\n    }<\/p>\n<p>    \/**<br \/>\n     * \u975e\u8425\u4e1a\u65f6\u95f4\u95e8\u78c1\u5f00\u542f\u544a\u8b66<br \/>\n     *\/<br \/>\n    &#064;Rule(name &#061; &#034;\u975e\u8425\u4e1a\u65f6\u95f4\u95e8\u78c1\u5f00\u542f&#034;)<br \/>\n    public boolean doorOpenAfterHours(SensorData data) {<br \/>\n        return &#034;DOOR&#034;.equals(data.getSensorType()) &amp;&amp;<br \/>\n               data.getValue() &gt; 0 &amp;&amp;  \/\/ \u95e8\u5f00\u542f<br \/>\n               !isBusinessHours() &amp;&amp;   \/\/ \u975e\u8425\u4e1a\u65f6\u95f4<br \/>\n               !&#034;ALARM&#034;.equals(data.getStatus()); \/\/ \u907f\u514d\u91cd\u590d\u544a\u8b66<br \/>\n    }<\/p>\n<p>    \/**<br \/>\n     * \u5ba2\u6d41\u5f02\u5e38\u6ce2\u52a8\u544a\u8b66<br \/>\n     *\/<br \/>\n    &#064;Rule(name &#061; &#034;\u5ba2\u6d41\u5f02\u5e38\u6ce2\u52a8&#034;)<br \/>\n    public boolean footfallAbnormal(SensorData data) {<br \/>\n        if (!&#034;FOOTFALL&#034;.equals(data.getSensorType())) return false;<\/p>\n<p>        \/\/ \u8fde\u7eed3\u6b21\u5ba2\u6d41\u4f4e\u4e8e\u5e73\u5747\u503c30%<br \/>\n        List&lt;SensorData&gt; recent &#061; sensorDataService.getRecentData(<br \/>\n            data.getSensorId(), 3<br \/>\n        );<\/p>\n<p>        long lowCount &#061; recent.stream()<br \/>\n            .filter(d -&gt; &#034;WARNING&#034;.equals(d.getStatus()))<br \/>\n            .count();<\/p>\n<p>        return lowCount &gt;&#061; 3;<br \/>\n    }<\/p>\n<p>    private boolean isBusinessHours() {<br \/>\n        LocalTime now &#061; LocalTime.now();<br \/>\n        LocalTime open &#061; LocalTime.of(7, 0);   \/\/ \u8425\u4e1a\u65f6\u95f47:00<br \/>\n        LocalTime close &#061; LocalTime.of(22, 0); \/\/ \u95ed\u5e97\u65f6\u95f422:00<br \/>\n        return !now.isBefore(open) &amp;&amp; now.isBefore(close);<br \/>\n    }<br \/>\n}<\/p>\n<h3>\u56db\u3001\u667a\u80fd\u76d8\u70b9\u6280\u672f\u5b9e\u73b0<\/h3>\n<h4>4.1 \u84dd\u7259\u76d8\u70b9\u67aa\u96c6\u6210<\/h4>\n<p>\u901a\u8fc7\u84dd\u7259\u8fde\u63a5\u76d8\u70b9\u67aa&#xff0c;\u5b9e\u73b0\u5feb\u901f\u626b\u7801\u76d8\u70b9&#xff1a;<\/p>\n<p>\/\/ Flutter\u84dd\u7259\u76d8\u70b9\u67aa\u96c6\u6210<br \/>\nclass BluetoothScannerService {<br \/>\n  final FlutterBlue flutterBlue &#061; FlutterBlue.instance;<br \/>\n  BluetoothDevice? connectedDevice;<br \/>\n  StreamController&lt;String&gt; _scanResultController &#061; StreamController.broadcast();<\/p>\n<p>  Stream&lt;String&gt; get scanResultStream &#061;&gt; _scanResultController.stream;<\/p>\n<p>  \/\/ \u641c\u7d22\u5e76\u8fde\u63a5\u76d8\u70b9\u67aa<br \/>\n  Future&lt;bool&gt; connectToDevice() async {<br \/>\n    try {<br \/>\n      \/\/ 1. \u641c\u7d22\u84dd\u7259\u8bbe\u5907<br \/>\n      List&lt;ScanResult&gt; results &#061; await flutterBlue.scan(<br \/>\n        timeout: Duration(seconds: 5),<br \/>\n      ).toList();<\/p>\n<p>      \/\/ 2. \u8fc7\u6ee4\u76d8\u70b9\u67aa\u8bbe\u5907&#xff08;\u6839\u636e\u540d\u79f0\u6216MAC&#xff09;<br \/>\n      ScanResult? scannerResult &#061; results.firstWhere(<br \/>\n        (r) &#061;&gt; r.device.name.contains(&#039;Scanner&#039;) ||<br \/>\n               r.device.id.id.startsWith(&#039;XX:XX:XX&#039;), \/\/ \u76d8\u70b9\u67aaMAC\u524d\u7f00<br \/>\n        orElse: () &#061;&gt; null,<br \/>\n      );<\/p>\n<p>      if (scannerResult &#061;&#061; null) {<br \/>\n        showToast(&#039;\u672a\u627e\u5230\u76d8\u70b9\u67aa\u8bbe\u5907&#039;);<br \/>\n        return false;<br \/>\n      }<\/p>\n<p>      \/\/ 3. \u8fde\u63a5\u8bbe\u5907<br \/>\n      connectedDevice &#061; scannerResult.device;<br \/>\n      await connectedDevice!.connect();<\/p>\n<p>      \/\/ 4. \u76d1\u542c\u626b\u7801\u6570\u636e<br \/>\n      _listenToScanData();<\/p>\n<p>      return true;<\/p>\n<p>    } catch (e) {<br \/>\n      log.error(&#039;\u84dd\u7259\u8fde\u63a5\u5931\u8d25: $e&#039;);<br \/>\n      return false;<br \/>\n    }<br \/>\n  }<\/p>\n<p>  \/\/ \u76d1\u542c\u626b\u7801\u6570\u636e<br \/>\n  void _listenToScanData() {<br \/>\n    if (connectedDevice &#061;&#061; null) return;<\/p>\n<p>    \/\/ \u8ba2\u9605\u901a\u77e5\u7279\u5f81\u503c&#xff08;\u76d8\u70b9\u67aa\u626b\u7801\u540e\u4f1a\u53d1\u9001\u901a\u77e5&#xff09;<br \/>\n    connectedDevice!.discoverServices().then((services) {<br \/>\n      for (BluetoothService service in services) {<br \/>\n        for (BluetoothCharacteristic characteristic in service.characteristics) {<br \/>\n          \/\/ \u627e\u5230\u626b\u7801\u6570\u636e\u7279\u5f81\u503c&#xff08;\u6839\u636eUUID&#xff09;<br \/>\n          if (characteristic.uuid.toString() &#061;&#061; &#039;0000XXXX-0000-1000-8000-00805F9B34FB&#039;) {<br \/>\n            characteristic.setNotifyValue(true);<br \/>\n            characteristic.onValueChanged().listen((value) {<br \/>\n              \/\/ \u89e3\u6790\u626b\u7801\u6570\u636e<br \/>\n              String barcode &#061; String.fromCharCodes(value);<br \/>\n              _scanResultController.add(barcode);<br \/>\n            });<br \/>\n          }<br \/>\n        }<br \/>\n      }<br \/>\n    });<br \/>\n  }<\/p>\n<p>  \/\/ \u65ad\u5f00\u8fde\u63a5<br \/>\n  Future&lt;void&gt; disconnect() async {<br \/>\n    if (connectedDevice !&#061; null &amp;&amp; connectedDevice!.isConnected) {<br \/>\n      await connectedDevice!.disconnect();<br \/>\n    }<br \/>\n    connectedDevice &#061; null;<br \/>\n  }<br \/>\n}<\/p>\n<p>\/\/ \u76d8\u70b9\u9875\u9762<br \/>\nclass InventoryCountingPage extends StatefulWidget {<br \/>\n  &#064;override<br \/>\n  _InventoryCountingPageState createState() &#061;&gt; _InventoryCountingPageState();<br \/>\n}<\/p>\n<p>class _InventoryCountingPageState extends State&lt;InventoryCountingPage&gt; {<br \/>\n  BluetoothScannerService scanner &#061; BluetoothScannerService();<br \/>\n  Map&lt;String, int&gt; countedItems &#061; {}; \/\/ \u5df2\u76d8\u70b9\u5546\u54c1&#xff1a;barcode -&gt; count<br \/>\n  bool isBluetoothConnected &#061; false;<\/p>\n<p>  &#064;override<br \/>\n  void initState() {<br \/>\n    super.initState();<br \/>\n    initBluetooth();<br \/>\n  }<\/p>\n<p>  Future&lt;void&gt; initBluetooth() async {<br \/>\n    bool connected &#061; await scanner.connectToDevice();<br \/>\n    if (mounted) {<br \/>\n      setState(() {<br \/>\n        isBluetoothConnected &#061; connected;<br \/>\n      });<\/p>\n<p>      if (connected) {<br \/>\n        showToast(&#039;\u76d8\u70b9\u67aa\u8fde\u63a5\u6210\u529f&#039;);<br \/>\n      }<br \/>\n    }<br \/>\n  }<\/p>\n<p>  &#064;override<br \/>\n  void dispose() {<br \/>\n    scanner.disconnect();<br \/>\n    scanner.scanResultStream.close();<br \/>\n    super.dispose();<br \/>\n  }<\/p>\n<p>  &#064;override<br \/>\n  Widget build(BuildContext context) {<br \/>\n    return Scaffold(<br \/>\n      appBar: AppBar(<br \/>\n        title: Text(&#039;\u667a\u80fd\u76d8\u70b9&#039;),<br \/>\n        actions: [<br \/>\n          IconButton(<br \/>\n            icon: Icon(isBluetoothConnected ? Icons.bluetooth : Icons.bluetooth_disabled),<br \/>\n            onPressed: isBluetoothConnected ? null : initBluetooth,<br \/>\n          ),<br \/>\n        ],<br \/>\n      ),<br \/>\n      body: Column(<br \/>\n        children: [<br \/>\n          \/\/ \u626b\u7801\u7ed3\u679c\u663e\u793a\u533a\u57df<br \/>\n          StreamBuilder&lt;String&gt;(<br \/>\n            stream: scanner.scanResultStream,<br \/>\n            builder: (context, snapshot) {<br \/>\n              if (!snapshot.hasData) return Container();<\/p>\n<p>              String barcode &#061; snapshot.data!;<\/p>\n<p>              \/\/ \u81ea\u52a8\u7d2f\u52a0\u8ba1\u6570<br \/>\n              setState(() {<br \/>\n                countedItems[barcode] &#061; (countedItems[barcode] ?? 0) &#043; 1;<br \/>\n              });<\/p>\n<p>              \/\/ \u64ad\u653e\u626b\u7801\u97f3\u6548<br \/>\n              playScanSound();<\/p>\n<p>              return Container(<br \/>\n                padding: EdgeInsets.all(16),<br \/>\n                color: Colors.green[100],<br \/>\n                child: Text(&#039;\u626b\u7801\u6210\u529f: $barcode&#039;, style: TextStyle(fontSize: 16)),<br \/>\n              );<br \/>\n            },<br \/>\n          ),<\/p>\n<p>          \/\/ \u76d8\u70b9\u8fdb\u5ea6<br \/>\n          Expanded(<br \/>\n            child: ListView.builder(<br \/>\n              itemCount: countedItems.length,<br \/>\n              itemBuilder: (context, index) {<br \/>\n                String barcode &#061; countedItems.keys.elementAt(index);<br \/>\n                int count &#061; countedItems[barcode]!;<\/p>\n<p>                return ListTile(<br \/>\n                  title: Text(&#039;\u5546\u54c1: $barcode&#039;),<br \/>\n                  subtitle: Text(&#039;\u6570\u91cf: $count&#039;),<br \/>\n                  trailing: IconButton(<br \/>\n                    icon: Icon(Icons.delete),<br \/>\n                    onPressed: () {<br \/>\n                      setState(() {<br \/>\n                        countedItems.remove(barcode);<br \/>\n                      });<br \/>\n                    },<br \/>\n                  ),<br \/>\n                );<br \/>\n              },<br \/>\n            ),<br \/>\n          ),<br \/>\n        ],<br \/>\n      ),<br \/>\n      floatingActionButton: FloatingActionButton(<br \/>\n        onPressed: submitInventory,<br \/>\n        child: Icon(Icons.upload),<br \/>\n        tooltip: &#039;\u63d0\u4ea4\u76d8\u70b9&#039;,<br \/>\n      ),<br \/>\n    );<br \/>\n  }<\/p>\n<p>  Future&lt;void&gt; submitInventory() async {<br \/>\n    if (countedItems.isEmpty) {<br \/>\n      showToast(&#039;\u8bf7\u5148\u8fdb\u884c\u76d8\u70b9&#039;);<br \/>\n      return;<br \/>\n    }<\/p>\n<p>    \/\/ \u6784\u5efa\u76d8\u70b9\u6570\u636e<br \/>\n    List&lt;InventoryItem&gt; items &#061; countedItems.entries.map((entry) {<br \/>\n      return InventoryItem(<br \/>\n        barcode: entry.key,<br \/>\n        countedQty: entry.value,<br \/>\n      );<br \/>\n    }).toList();<\/p>\n<p>    \/\/ \u63d0\u4ea4\u5230\u4e91\u7aef<br \/>\n    bool success &#061; await InventoryApi.submitCounting(items);<\/p>\n<p>    if (success) {<br \/>\n      showToast(&#039;\u76d8\u70b9\u63d0\u4ea4\u6210\u529f&#039;);<br \/>\n      Navigator.pop(context);<br \/>\n    } else {<br \/>\n      showToast(&#039;\u63d0\u4ea4\u5931\u8d25&#xff0c;\u8bf7\u91cd\u8bd5&#039;);<br \/>\n    }<br \/>\n  }<br \/>\n}<\/p>\n<h4>4.2 \u76d8\u70b9\u5dee\u5f02\u81ea\u52a8\u5904\u7406<\/h4>\n<p>&#064;Component<br \/>\npublic class InventoryDifferenceHandler {<\/p>\n<p>    \/**<br \/>\n     * \u5904\u7406\u76d8\u70b9\u5dee\u5f02<br \/>\n     * &#064;param countedItems \u76d8\u70b9\u7ed3\u679c<br \/>\n     * &#064;param systemItems \u7cfb\u7edf\u5e93\u5b58<br \/>\n     *\/<br \/>\n    public DifferenceReport processDifferences(<br \/>\n        List&lt;InventoryItem&gt; countedItems,<br \/>\n        List&lt;InventoryItem&gt; systemItems<br \/>\n    ) {<br \/>\n        \/\/ 1. \u6784\u5efa\u7d22\u5f15<br \/>\n        Map&lt;String, InventoryItem&gt; systemIndex &#061; systemItems.stream()<br \/>\n            .collect(Collectors.toMap(InventoryItem::getBarcode, Function.identity()));<\/p>\n<p>        \/\/ 2. \u8ba1\u7b97\u5dee\u5f02<br \/>\n        List&lt;DifferenceItem&gt; differences &#061; new ArrayList&lt;&gt;();<br \/>\n        BigDecimal totalDifferenceAmount &#061; BigDecimal.ZERO;<\/p>\n<p>        for (InventoryItem counted : countedItems) {<br \/>\n            InventoryItem system &#061; systemIndex.get(counted.getBarcode());<\/p>\n<p>            if (system &#061;&#061; null) {<br \/>\n                \/\/ \u5dee\u5f021&#xff1a;\u76d8\u76c8&#xff08;\u7cfb\u7edf\u65e0\u8bb0\u5f55&#xff09;<br \/>\n                DifferenceItem diff &#061; DifferenceItem.builder()<br \/>\n                    .barcode(counted.getBarcode())<br \/>\n                    .differenceType(&#034;SURPLUS&#034;)<br \/>\n                    .systemQty(0)<br \/>\n                    .countedQty(counted.getCountedQty())<br \/>\n                    .differenceQty(counted.getCountedQty())<br \/>\n                    .build();<br \/>\n                differences.add(diff);<\/p>\n<p>            } else {<br \/>\n                int diffQty &#061; counted.getCountedQty() &#8211; system.getSystemQty();<\/p>\n<p>                if (diffQty !&#061; 0) {<br \/>\n                    \/\/ \u5dee\u5f022&#xff1a;\u6570\u91cf\u4e0d\u4e00\u81f4<br \/>\n                    DifferenceItem diff &#061; DifferenceItem.builder()<br \/>\n                        .barcode(counted.getBarcode())<br \/>\n                        .differenceType(diffQty &gt; 0 ? &#034;SURPLUS&#034; : &#034;SHORTAGE&#034;)<br \/>\n                        .systemQty(system.getSystemQty())<br \/>\n                        .countedQty(counted.getCountedQty())<br \/>\n                        .differenceQty(diffQty)<br \/>\n                        .build();<br \/>\n                    differences.add(diff);<\/p>\n<p>                    \/\/ \u8ba1\u7b97\u5dee\u5f02\u91d1\u989d<br \/>\n                    BigDecimal itemAmount &#061; skuService.getPrice(counted.getBarcode())<br \/>\n                        .multiply(BigDecimal.valueOf(Math.abs(diffQty)));<br \/>\n                    totalDifferenceAmount &#061; totalDifferenceAmount.add(itemAmount);<br \/>\n                }<br \/>\n            }<br \/>\n        }<\/p>\n<p>        \/\/ 3. \u751f\u6210\u5dee\u5f02\u62a5\u544a<br \/>\n        return DifferenceReport.builder()<br \/>\n            .totalItems(countedItems.size())<br \/>\n            .differenceCount(differences.size())<br \/>\n            .totalDifferenceAmount(totalDifferenceAmount)<br \/>\n            .differences(differences)<br \/>\n            .build();<br \/>\n    }<\/p>\n<p>    \/**<br \/>\n     * \u81ea\u52a8\u8c03\u8d26&#xff08;\u5c0f\u989d\u5dee\u5f02&#xff09;<br \/>\n     *\/<br \/>\n    public void autoAdjust(DifferenceReport report) {<br \/>\n        for (DifferenceItem diff : report.getDifferences()) {<br \/>\n            \/\/ \u5dee\u5f02\u91d1\u989d &lt; 50\u5143&#xff1a;\u81ea\u52a8\u8c03\u8d26<br \/>\n            BigDecimal diffAmount &#061; skuService.getPrice(diff.getBarcode())<br \/>\n                .multiply(BigDecimal.valueOf(Math.abs(diff.getDifferenceQty())));<\/p>\n<p>            if (diffAmount.compareTo(BigDecimal.valueOf(50)) &lt;&#061; 0) {<br \/>\n                \/\/ \u751f\u6210\u8c03\u8d26\u51ed\u8bc1<br \/>\n                AdjustmentVoucher voucher &#061; AdjustmentVoucher.builder()<br \/>\n                    .barcode(diff.getBarcode())<br \/>\n                    .adjustmentQty(diff.getDifferenceQty())<br \/>\n                    .reason(&#034;\u76d8\u70b9\u5dee\u5f02\u81ea\u52a8\u8c03\u8d26&#xff08;&lt;50\u5143&#xff09;&#034;)<br \/>\n                    .operator(&#034;SYSTEM&#034;)<br \/>\n                    .build();<\/p>\n<p>                inventoryService.adjustStock(voucher);<br \/>\n            }<br \/>\n        }<br \/>\n    }<br \/>\n}<\/p>\n<p>&#064;Data<br \/>\n&#064;Builder<br \/>\npublic class DifferenceReport {<br \/>\n    private int totalItems;              \/\/ \u76d8\u70b9\u5546\u54c1\u603b\u6570<br \/>\n    private int differenceCount;         \/\/ \u5dee\u5f02\u5546\u54c1\u6570<br \/>\n    private BigDecimal totalDifferenceAmount; \/\/ \u5dee\u5f02\u603b\u91d1\u989d<br \/>\n    private List&lt;DifferenceItem&gt; differences; \/\/ \u5dee\u5f02\u660e\u7ec6<br \/>\n}<\/p>\n<p>&#064;Data<br \/>\n&#064;Builder<br \/>\npublic class DifferenceItem {<br \/>\n    private String barcode;<br \/>\n    private String differenceType;  \/\/ SURPLUS&#xff08;\u76d8\u76c8&#xff09;\/ SHORTAGE&#xff08;\u76d8\u4e8f&#xff09;<br \/>\n    private int systemQty;          \/\/ \u7cfb\u7edf\u6570\u91cf<br \/>\n    private int countedQty;         \/\/ \u76d8\u70b9\u6570\u91cf<br \/>\n    private int differenceQty;      \/\/ \u5dee\u5f02\u6570\u91cf&#xff08;\u6b63&#061;\u76d8\u76c8&#xff0c;\u8d1f&#061;\u76d8\u4e8f&#xff09;<br \/>\n}<\/p>\n<h3>\u4e94\u3001\u5b9e\u9645\u90e8\u7f72\u6548\u679c<\/h3>\n<p>\u57fa\u4e8e\u8be5\u65b9\u6848\u7684\u7cfb\u7edf\u5728\u5b9e\u9645\u90e8\u7f72\u4e2d\u8fbe\u5230&#xff1a;<\/p>\n<table>\n<tr>\n<p>\u6307\u6807<\/p>\n<p>\u4f18\u5316\u524d<\/p>\n<p>\u4f18\u5316\u540e<\/p>\n<\/tr>\n<tbody>\n<tr>\n<td>\n<p>\u65e5\u5e38\u5de1\u68c0\u8017\u65f6<\/p>\n<\/td>\n<td>\n<p>60-90\u5206\u949f\/\u5e97\/\u65e5<\/p>\n<\/td>\n<td>\n<p>15-20\u5206\u949f\/\u5e97\/\u65e5<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u6708\u5ea6\u5168\u76d8\u8017\u65f6<\/p>\n<\/td>\n<td>\n<p>\u95ed\u5e974-8\u5c0f\u65f6<\/p>\n<\/td>\n<td>\n<p>1-2\u5c0f\u65f6&#xff08;\u65e0\u9700\u95ed\u5e97&#xff09;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u5de1\u68c0\u95ee\u9898\u53d1\u73b0\u65f6\u6548<\/p>\n<\/td>\n<td>\n<p>4-6\u5c0f\u65f6<\/p>\n<\/td>\n<td>\n<p>\u5b9e\u65f6&#xff08;&lt;5\u5206\u949f&#xff09;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u76d8\u70b9\u51c6\u786e\u7387<\/p>\n<\/td>\n<td>\n<p>90%\u5de6\u53f3<\/p>\n<\/td>\n<td>\n<p>98%&#043;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u4eba\u5de5\u8bb0\u5f55\u9519\u8bef\u7387<\/p>\n<\/td>\n<td>\n<p>15%&#043;<\/p>\n<\/td>\n<td>\n<p>&lt;2%<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6ce8&#xff1a;\u4ee5\u4e0a\u6570\u636e\u57fa\u4e8e\u5178\u578b\u4fbf\u5229\u5e97\u573a\u666f\u5b9e\u6d4b&#xff0c;\u5b9e\u9645\u6548\u679c\u53d7\u95e8\u5e97\u9762\u79ef\u3001\u5546\u54c1SKU\u6570\u91cf\u3001\u7f51\u7edc\u73af\u5883\u5f71\u54cd\u3002<\/p>\n<hr \/>\n<h3>\u603b\u7ed3<\/h3>\n<p>\u667a\u80fd\u5de1\u68c0\u4e0e\u76d8\u70b9\u7cfb\u7edf\u7684\u6280\u672f\u4ef7\u503c\u5728\u4e8e\u5c06\u91cd\u590d\u52b3\u52a8\u8f6c\u5316\u4e3a\u81ea\u52a8\u5316\u6d41\u7a0b&#xff0c;\u6838\u5fc3\u8bbe\u8ba1\u539f\u5219&#xff1a;<\/p>\n<li>\u79fb\u52a8\u7aef\u4f18\u5148<br \/>\n\u91c7\u7528Flutter\u7b49\u8de8\u5e73\u53f0\u6280\u672f&#xff0c;\u652f\u6301\u79bb\u7ebf\u64cd\u4f5c\u4e0e\u81ea\u52a8\u540c\u6b65&#xff0c;\u9002\u914d\u5e97\u5458\u9ad8\u9891\u79fb\u52a8\u573a\u666f\u3002<\/li>\n<li>\u8fb9\u7f18\u8ba1\u7b97\u8d4b\u80fd<br \/>\n\u56fe\u50cf\u8bc6\u522b\u3001\u4f20\u611f\u5668\u6570\u636e\u805a\u5408\u7b49\u8ba1\u7b97\u4e0b\u6c89\u81f3\u8fb9\u7f18\u7aef&#xff0c;\u51cf\u5c11\u4e91\u7aef\u4f9d\u8d56&#xff0c;\u63d0\u5347\u54cd\u5e94\u901f\u5ea6\u3002<\/li>\n<li>\u95ed\u73af\u7ba1\u7406<br \/>\n\u4ece\u4efb\u52a1\u4e0b\u53d1\u2192\u6267\u884c\u2192\u5f02\u5e38\u544a\u8b66\u2192\u5904\u7406\u53cd\u9988&#xff0c;\u5f62\u6210\u5b8c\u6574\u95ed\u73af&#xff0c;\u907f\u514d&#034;\u53d1\u73b0\u95ee\u9898\u4f46\u65e0\u4eba\u8ddf\u8fdb&#034;\u7684\u65ad\u5c42\u3002<\/li>\n<p>\u8be5\u65b9\u6848\u5df2\u5728\u90e8\u5206\u96f6\u552eSaaS\u7cfb\u7edf\u4e2d\u5b9e\u8df5&#xff0c;\u6280\u672f\u6838\u5fc3\u4e0d\u5728\u4e8e\u7b97\u6cd5\u521b\u65b0&#xff0c;\u800c\u5728\u4e8e\u7cbe\u51c6\u5339\u914d\u95e8\u5e97\u8fd0\u8425\u7684\u8f7b\u91cf\u7ea7\u9700\u6c42&#xff1a;\u65e0\u9700\u6602\u8d35\u786c\u4ef6\u6295\u5165&#xff0c;\u57fa\u4e8e\u666e\u901a\u624b\u673a&#043;\u4f4e\u6210\u672c\u4f20\u611f\u5668\u5373\u53ef\u6784\u5efa\u5b9e\u7528\u5de1\u68c0\u80fd\u529b\u3002\u95e8\u5e97\u7ba1\u7406\u7684\u7ec8\u6781\u76ee\u6807\u4e0d\u662f&#034;\u5b8c\u5168\u66ff\u4ee3\u4eba\u5de5&#034;&#xff0c;\u800c\u662f&#034;\u8ba9\u5e97\u5458\u4ece\u91cd\u590d\u8bb0\u5f55\u4e2d\u89e3\u653e&#xff0c;\u4e13\u6ce8\u4e8e\u5ba2\u6237\u670d\u52a1\u4e0e\u5f02\u5e38\u5904\u7406&#034;\u3002<\/p>\n<p>\u6ce8&#xff1a;\u672c\u6587\u4ec5\u8ba8\u8bba\u667a\u80fd\u5de1\u68c0\u4e0e\u76d8\u70b9\u7cfb\u7edf\u7684\u6280\u672f\u5b9e\u73b0\u65b9\u6848&#xff0c;\u6240\u6709\u7ec4\u4ef6\u57fa\u4e8e\u5f00\u6e90\u6280\u672f\u6808\u3002\u6587\u4e2d\u63d0\u53ca\u7684\u884c\u4e1a\u5b9e\u8df5\u4ec5\u4e3a\u6280\u672f\u5b58\u5728\u6027\u4f50\u8bc1&#xff0c;\u4e0d\u6784\u6210\u5546\u4e1a\u4ea7\u54c1\u63a8\u8350\u3002\u5b9e\u9645\u90e8\u7f72\u9700\u7ed3\u5408\u5177\u4f53\u95e8\u5e97\u6761\u4ef6\u4e0e\u4e1a\u52a1\u9700\u6c42\u8c03\u6574\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u95ee\u9898\u80cc\u666f\u96f6\u552e\u95e8\u5e97\u65e5\u5e38\u8fd0\u8425\u9762\u4e34\u4e24\u5927\u9ad8\u9891\u75db\u70b9&#xff1a;\u5de1\u68c0\u6548\u7387\u4f4e\u4e0e\u76d8\u70b9\u8017\u65f6\u957f\u3002\u4f20\u7edf\u4f9d\u8d56\u4eba\u5de5\u7eb8\u8d28\u8bb0\u5f55\u7684\u6a21\u5f0f\u5b58\u5728\u660e\u663e\u7f3a\u9677&#xff1a;\u75db\u70b9\u7c7b\u578b\u5177\u4f53\u8868\u73b0\u8fd0\u8425\u635f\u5931\u5de1\u68c0\u4f4e\u6548\u5e97\u5458\u6bcf\u65e5\u82b11-2\u5c0f\u65f6\u5de1\u68c0\u8d27\u67b6\u3001\u68c0\u67e5\u4ef7\u7b7e\u3001\u8bb0\u5f55\u7f3a\u8d27&#xff0c;\u6570\u636e\u6ede\u540e\u4e14\u6613\u9057\u6f0f\u95ee\u9898\u53d1\u73b0\u5ef6\u8fdf4-6\u5c0f\u65f6&#xff0c;\u5f71\u54cd\u9500\u552e\u673a\u4f1a\u76d8\u70b9\u8017\u65f6\u6708\u5ea6\u5168\u76d8\u9700\u95ed\u5e974-8\u5c0f\u65f6&#xff0c;\u62bd\u76d8\u97002-3\u5c0f\u65f6&#xff0c;\u4eba\u5de5\u8ba1\u6570\u9519\u8bef\u738710%\u95ed\u5e97\u635f\u5931\u9500\u552e\u989d&#xff0c;\u62bd\u76d8\u6570\u636e\u4e0d\u51c6\u5f71\u54cd\u5e93\u5b58\u51b3\u7b56\u6570\u636e\u5b64\u5c9b\u5de1\u68c0\u7167\u7247\u3001\u7f3a\u8d27\u8bb0\u5f55\u3001\u4ef7<\/p>\n","protected":false},"author":2,"featured_media":75536,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[220,730],"topic":[],"class_list":["post-75537","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-220","tag-730"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u96f6\u552e\u95e8\u5e97\u667a\u80fd\u5de1\u68c0\u4e0e\u76d8\u70b9\u7cfb\u7edf\uff1a\u7269\u8054\u7f51\u4e0e\u56fe\u50cf\u8bc6\u522b\u6280\u672f\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/75537.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u96f6\u552e\u95e8\u5e97\u667a\u80fd\u5de1\u68c0\u4e0e\u76d8\u70b9\u7cfb\u7edf\uff1a\u7269\u8054\u7f51\u4e0e\u56fe\u50cf\u8bc6\u522b\u6280\u672f\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u95ee\u9898\u80cc\u666f\u96f6\u552e\u95e8\u5e97\u65e5\u5e38\u8fd0\u8425\u9762\u4e34\u4e24\u5927\u9ad8\u9891\u75db\u70b9&#xff1a;\u5de1\u68c0\u6548\u7387\u4f4e\u4e0e\u76d8\u70b9\u8017\u65f6\u957f\u3002\u4f20\u7edf\u4f9d\u8d56\u4eba\u5de5\u7eb8\u8d28\u8bb0\u5f55\u7684\u6a21\u5f0f\u5b58\u5728\u660e\u663e\u7f3a\u9677&#xff1a;\u75db\u70b9\u7c7b\u578b\u5177\u4f53\u8868\u73b0\u8fd0\u8425\u635f\u5931\u5de1\u68c0\u4f4e\u6548\u5e97\u5458\u6bcf\u65e5\u82b11-2\u5c0f\u65f6\u5de1\u68c0\u8d27\u67b6\u3001\u68c0\u67e5\u4ef7\u7b7e\u3001\u8bb0\u5f55\u7f3a\u8d27&#xff0c;\u6570\u636e\u6ede\u540e\u4e14\u6613\u9057\u6f0f\u95ee\u9898\u53d1\u73b0\u5ef6\u8fdf4-6\u5c0f\u65f6&#xff0c;\u5f71\u54cd\u9500\u552e\u673a\u4f1a\u76d8\u70b9\u8017\u65f6\u6708\u5ea6\u5168\u76d8\u9700\u95ed\u5e974-8\u5c0f\u65f6&#xff0c;\u62bd\u76d8\u97002-3\u5c0f\u65f6&#xff0c;\u4eba\u5de5\u8ba1\u6570\u9519\u8bef\u738710%\u95ed\u5e97\u635f\u5931\u9500\u552e\u989d&#xff0c;\u62bd\u76d8\u6570\u636e\u4e0d\u51c6\u5f71\u54cd\u5e93\u5b58\u51b3\u7b56\u6570\u636e\u5b64\u5c9b\u5de1\u68c0\u7167\u7247\u3001\u7f3a\u8d27\u8bb0\u5f55\u3001\u4ef7\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/75537.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-12T07:10:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260212071057-698d7d01cc882.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/75537.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/75537.html\",\"name\":\"\u96f6\u552e\u95e8\u5e97\u667a\u80fd\u5de1\u68c0\u4e0e\u76d8\u70b9\u7cfb\u7edf\uff1a\u7269\u8054\u7f51\u4e0e\u56fe\u50cf\u8bc6\u522b\u6280\u672f\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-12T07:10:58+00:00\",\"dateModified\":\"2026-02-12T07:10:58+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/75537.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/75537.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/75537.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u96f6\u552e\u95e8\u5e97\u667a\u80fd\u5de1\u68c0\u4e0e\u76d8\u70b9\u7cfb\u7edf\uff1a\u7269\u8054\u7f51\u4e0e\u56fe\u50cf\u8bc6\u522b\u6280\u672f\u5b9e\u8df5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u96f6\u552e\u95e8\u5e97\u667a\u80fd\u5de1\u68c0\u4e0e\u76d8\u70b9\u7cfb\u7edf\uff1a\u7269\u8054\u7f51\u4e0e\u56fe\u50cf\u8bc6\u522b\u6280\u672f\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/75537.html","og_locale":"zh_CN","og_type":"article","og_title":"\u96f6\u552e\u95e8\u5e97\u667a\u80fd\u5de1\u68c0\u4e0e\u76d8\u70b9\u7cfb\u7edf\uff1a\u7269\u8054\u7f51\u4e0e\u56fe\u50cf\u8bc6\u522b\u6280\u672f\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u95ee\u9898\u80cc\u666f\u96f6\u552e\u95e8\u5e97\u65e5\u5e38\u8fd0\u8425\u9762\u4e34\u4e24\u5927\u9ad8\u9891\u75db\u70b9&#xff1a;\u5de1\u68c0\u6548\u7387\u4f4e\u4e0e\u76d8\u70b9\u8017\u65f6\u957f\u3002\u4f20\u7edf\u4f9d\u8d56\u4eba\u5de5\u7eb8\u8d28\u8bb0\u5f55\u7684\u6a21\u5f0f\u5b58\u5728\u660e\u663e\u7f3a\u9677&#xff1a;\u75db\u70b9\u7c7b\u578b\u5177\u4f53\u8868\u73b0\u8fd0\u8425\u635f\u5931\u5de1\u68c0\u4f4e\u6548\u5e97\u5458\u6bcf\u65e5\u82b11-2\u5c0f\u65f6\u5de1\u68c0\u8d27\u67b6\u3001\u68c0\u67e5\u4ef7\u7b7e\u3001\u8bb0\u5f55\u7f3a\u8d27&#xff0c;\u6570\u636e\u6ede\u540e\u4e14\u6613\u9057\u6f0f\u95ee\u9898\u53d1\u73b0\u5ef6\u8fdf4-6\u5c0f\u65f6&#xff0c;\u5f71\u54cd\u9500\u552e\u673a\u4f1a\u76d8\u70b9\u8017\u65f6\u6708\u5ea6\u5168\u76d8\u9700\u95ed\u5e974-8\u5c0f\u65f6&#xff0c;\u62bd\u76d8\u97002-3\u5c0f\u65f6&#xff0c;\u4eba\u5de5\u8ba1\u6570\u9519\u8bef\u738710%\u95ed\u5e97\u635f\u5931\u9500\u552e\u989d&#xff0c;\u62bd\u76d8\u6570\u636e\u4e0d\u51c6\u5f71\u54cd\u5e93\u5b58\u51b3\u7b56\u6570\u636e\u5b64\u5c9b\u5de1\u68c0\u7167\u7247\u3001\u7f3a\u8d27\u8bb0\u5f55\u3001\u4ef7","og_url":"https:\/\/www.wsisp.com\/helps\/75537.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-12T07:10:58+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260212071057-698d7d01cc882.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"10 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/75537.html","url":"https:\/\/www.wsisp.com\/helps\/75537.html","name":"\u96f6\u552e\u95e8\u5e97\u667a\u80fd\u5de1\u68c0\u4e0e\u76d8\u70b9\u7cfb\u7edf\uff1a\u7269\u8054\u7f51\u4e0e\u56fe\u50cf\u8bc6\u522b\u6280\u672f\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-12T07:10:58+00:00","dateModified":"2026-02-12T07:10:58+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/75537.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/75537.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/75537.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u96f6\u552e\u95e8\u5e97\u667a\u80fd\u5de1\u68c0\u4e0e\u76d8\u70b9\u7cfb\u7edf\uff1a\u7269\u8054\u7f51\u4e0e\u56fe\u50cf\u8bc6\u522b\u6280\u672f\u5b9e\u8df5"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/75537","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=75537"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/75537\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/75536"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=75537"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=75537"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=75537"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=75537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}