Commit 63ba6ded by huangjinxin

fix:组织结构,网点数据同步相关

1 parent ff5aa178
......@@ -73,7 +73,7 @@ public class RedisService {
try {
ValueOperations<String, String> operations = redisTemplate.opsForValue();
operations.set(key, value);
redisTemplate.expire(key, expireTime, TimeUnit.SECONDS);
redisTemplate.expire(key, expireTime, TimeUnit.MILLISECONDS);
result = true;
} catch (Exception e) {
log.error("[set]---------->redis存值失败, key为: {}, 失败原因:{}", key, e.getMessage(), e);
......
......@@ -17,7 +17,7 @@ public class OrderServiceDetailResp {
private String location;
private String orderStatus;
private String serviceStatus;
private OrderDetail reschedulingParams;
// private OrderDetail reschedulingParams;
private List<KV> items;
/**
......@@ -93,14 +93,18 @@ public class OrderServiceDetailResp {
private String beanTags;
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public static class OrderDetail {
private String location;
private String address;
private String brand;
private String date;
private String type;
private String skill;
}
private String address;
private String date;
//
// @Data
// @JsonInclude(JsonInclude.Include.NON_NULL)
// public static class OrderDetail {
// private String location;
// private String address;
// private String brand;
// private String date;
// private String type;
// private String skill;
// }
}
......@@ -13,6 +13,10 @@ public class BelongRB {
* 账号中心部门id
*/
private String bsDeptId;
/**
* bean部门id
*/
private String beanDeptId;
/**
* 部门名称
......
......@@ -24,6 +24,10 @@ public class Department {
*/
private String tagName;
/**
* 部门中文名称
*/
private String tagNameCn;
/**
* 部门描述 非必须
*/
private String desc;
......@@ -73,7 +77,7 @@ public class Department {
private Integer enable;
/**
* 管辖区域
* 管辖区域
*/
private List<BaseAddress> manageCityList;
......
package com.dituhui.pea.order.feign.bean.enums;
public enum BeanPointTypeEnum {
// 类型(1分站,2外围,3小组,4网点,5自保点,6社会独立点,7商家独立点,8连锁网点,9网点伞下店)
// Self("1", "自保点"),
// Social("2", "社会独立点"),
// Business("3", "商家独立点"),
// Chain("4", "连锁网点"),
// Umbrella("5", "网点伞下店"),
// Umbrella("5", "网点伞下店"),
peaSelf(5, "自保点"),
peaSocial(6, "社会独立点"),
peaBusiness(7, "商家独立点"),
peaChain(8, "连锁网点"),
peaUmbrella(9, "网点伞下店");
private Integer type;
private String clazz;
BeanPointTypeEnum() {
}
BeanPointTypeEnum(Integer type, String clazz) {
this.type = type;
this.clazz = clazz;
}
public Integer getType() {
return type;
}
public String getClazz() {
return clazz;
}
public static Integer getTypeByClazz(String clazz) {
for (BeanPointTypeEnum value : BeanPointTypeEnum.values()) {
if (value.getClazz().equals(clazz)) {
return value.getType();
}
}
return null;
}
}
......@@ -49,14 +49,6 @@ public class OrderServiceDetailImpl implements OrderServiceDetail {
List<KV> items = this.packOrderDetail(order);
// 设置订单详情信息
OrderServiceDetailResp.OrderDetail detail = new OrderServiceDetailResp.OrderDetail();
detail.setAddress(String.format("%s%s%s", order.getCity(), order.getCounty(), order.getAddress()));
detail.setLocation(String.format("%s,%s", order.getX(), order.getY()));
detail.setDate(TimeUtils.IsoLocalDate2String(order.getDt()));
detail.setBrand(order.getBrand());
detail.setType(order.getType());
detail.setSkill(order.getSkill());
OrderServiceDetailResp res = new OrderServiceDetailResp();
res.setOrderId(orderId);
res.setRisk("");
......@@ -67,9 +59,11 @@ public class OrderServiceDetailImpl implements OrderServiceDetail {
res.setOrderStatus(order.getOrderStatus());
res.setServiceStatus(order.getServiceStatus());
res.setLocation(String.format("%s,%s", order.getX(), order.getY()));
res.setReschedulingParams(detail);
res.setItems(items);
res.setDate(TimeUtils.IsoLocalDate2String(order.getDt()));
res.setAddress(String.format("%s%s%s", order.getCity(), order.getCounty(), order.getAddress()));
res.setIsMultiple(order.getIsMultiple());
res.setIsAppointEngineer(order.getIsAppointEngineer());
if (StringUtils.isNotBlank(order.getAppointEngineerCodes())) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!