红圈通接口改造

This commit is contained in:
shuo.wang
2025-08-06 10:07:02 +08:00
parent eb9d469833
commit 52839ab03e
3 changed files with 4 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ public class HqtQuotationSheetAPIRequest {
/**
* @description:报价编号
*/
private String name;
private String name__c;
@Data
public static class Field1__c {

View File

@@ -104,11 +104,11 @@ public class HqtAPIServiceImpl implements HqtAPIService {
field1__c.setCode(request.getHqtShopId());
HqtTokenDTO hqtToken = this.getHqtToken();
String requestUrl = hqtToken.getEndPoint() + "/v1/data/objects/CustomObject77__c";
String requestUrl = hqtToken.getEndPoint() + "/v1/data/objects/CustomObject638__c";
HqtQuotationSheetAPIRequest apiRequest = new HqtQuotationSheetAPIRequest();
apiRequest.setField1__c(field1__c);
apiRequest.setName(request.getQuotationSheetId());
apiRequest.setName__c(request.getQuotationSheetId());
sendPostRequest(JSONObject.toJSONString(apiRequest), requestUrl, hqtToken);
}

View File

@@ -115,7 +115,7 @@ public class OrderSysInfoServiceImpl implements OrderSysInfoService {
map.put("storeName", shopInfoDO.getShopName());
//自有店财务
UserRoleEnum finance = UserRoleEnum.FINANCE;
if (JoinModeEnum.OWN_STORE.equals(shopInfo.getJoinMode())) {
if (JoinModeEnum.OWN_STORE.getCode()==(shopInfo.getJoinMode())) {
finance = UserRoleEnum.OWN_SHOP_OFFICE;
}
List<EnterpriseUserDO> itList = userAuthMappingService.getAllUserByRoleEnumAndRegionId(finance, shopInfoDO.getRegionId());