1
huangxiaoqiang
2026-03-17 3fa25c0bcb790b64bc206211923099cc330c5086
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core;
using WIDESEA_DTO;
 
namespace WIDESEA_StoragIntegrationServices
{
    public partial class WCSService
    {
        /// <summary>
        /// 请求焊装白车身信息
        /// </summary>
        /// <param name="json"></param>
        /// <returns></returns>
        public WebResponseContent RequstCarBodyInfo(RequestTaskDto json)
        {
            WebResponseContent webResponseContent = new WebResponseContent();
            try
            {
                var carInfo = _carBodyInfoRepository.QueryFirst(x => x.RFID == json.PVI);
                if (carInfo != null) throw new Exception($"PVI{json.PVI}车身数据已存在");
 
                ///请求焊装车身特征
                WebResponseContent webResponse = _mesService.issuedCharacter(json.PVI, json.Position, json.PalletCode);
                if (!webResponse.Status) throw new Exception($"{webResponse.Message}");
 
                ///BDC01  过点
                WebResponseContent content = _mesService.PassPoint(json);
                if (!content.Status) throw new Exception($"{content.Message}");
 
                return webResponseContent.OK();
 
            }
            catch (Exception ex)
            {
                webResponseContent.Error($"获取车身数据失败{ex.Message}");
            }
            return webResponseContent;
        }
    }
}