数据同步新增部门信息

version1
anthonyywj2 3 years ago
parent 5a36d6cf7a
commit 6e702d549c

@ -0,0 +1,15 @@
package com.glxp.sale.admin.entity.auth;
import lombok.Data;
import java.util.Date;
@Data
public class DeptEntity {
private String code;
private Integer id;
private String name;
private String remark;
private Integer flag;
private Date updateTime;
}

@ -2,6 +2,7 @@ package com.glxp.sale.admin.res.sync;
import cn.hutool.core.collection.CollUtil; import cn.hutool.core.collection.CollUtil;
import com.glxp.sale.admin.entity.auth.AuthAdmin; import com.glxp.sale.admin.entity.auth.AuthAdmin;
import com.glxp.sale.admin.entity.auth.DeptEntity;
import com.glxp.sale.admin.entity.info.CompanyProductRelevanceEntity; import com.glxp.sale.admin.entity.info.CompanyProductRelevanceEntity;
import com.glxp.sale.admin.entity.info.WarehouseBussinessTypeEntity; import com.glxp.sale.admin.entity.info.WarehouseBussinessTypeEntity;
import com.glxp.sale.admin.entity.info.WarehouseUserEntity; import com.glxp.sale.admin.entity.info.WarehouseUserEntity;
@ -30,6 +31,7 @@ public class SpsSyncDataResponse {
List<WarehouseBussinessTypeEntity> warehouseBussinessTypeEntities; List<WarehouseBussinessTypeEntity> warehouseBussinessTypeEntities;
List<WarehouseUserEntity> warehouseUserEntities; List<WarehouseUserEntity> warehouseUserEntities;
List<AuthAdmin> authAdminList; List<AuthAdmin> authAdminList;
List<DeptEntity> deptEntityList;
@Override @Override
public String toString() { public String toString() {
@ -85,6 +87,10 @@ public class SpsSyncDataResponse {
if (CollUtil.isNotEmpty(authAdminList)) { if (CollUtil.isNotEmpty(authAdminList)) {
remark.append("用户信息:").append(authAdminList.size()).append(" 条\n"); remark.append("用户信息:").append(authAdminList.size()).append(" 条\n");
} }
if (CollUtil.isNotEmpty(deptEntityList)) {
remark.append("部门信息:").append(deptEntityList.size()).append(" 条\n");
}
return remark.toString(); return remark.toString();
} }
} }

@ -80,7 +80,8 @@ public class DlAllDataService {
|| CollUtil.isNotEmpty(syncOrderResponse.getThrProductsEntities()) || CollUtil.isNotEmpty(syncOrderResponse.getThrProductsEntities())
|| CollUtil.isNotEmpty(syncOrderResponse.getUdiInfoEntities()) || CollUtil.isNotEmpty(syncOrderResponse.getUdiInfoEntities())
|| CollUtil.isNotEmpty(syncOrderResponse.getUdiRelevanceEntities()) || CollUtil.isNotEmpty(syncOrderResponse.getUdiRelevanceEntities())
|| CollUtil.isNotEmpty(syncOrderResponse.getAuthAdminList())) || CollUtil.isNotEmpty(syncOrderResponse.getAuthAdminList())
|| CollUtil.isNotEmpty(syncOrderResponse.getDeptEntityList()))
) { ) {
String key = gennerOrderUtils.getAllProducts(); String key = gennerOrderUtils.getAllProducts();

Loading…
Cancel
Save