服务指令bug
This commit is contained in:
parent
38aa454a51
commit
5c55d2d11b
|
@ -39,6 +39,10 @@ public class OrgAllInfo implements Serializable {
|
||||||
* 是否标准指令库 0是1否
|
* 是否标准指令库 0是1否
|
||||||
*/
|
*/
|
||||||
private String izDirectiveMain;
|
private String izDirectiveMain;
|
||||||
|
/**
|
||||||
|
* 媒体资源访问地址
|
||||||
|
*/
|
||||||
|
private String mediaUrl;
|
||||||
/**
|
/**
|
||||||
* 省份
|
* 省份
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
d.url,
|
d.url,
|
||||||
d.plat_type,
|
d.plat_type,
|
||||||
d.iz_directive_main,
|
d.iz_directive_main,
|
||||||
|
d.media_url,
|
||||||
o.open_id,
|
o.open_id,
|
||||||
o.wechat_name,
|
o.wechat_name,
|
||||||
o.tel,
|
o.tel,
|
||||||
|
|
|
@ -55,6 +55,20 @@ public class SysBaseInfoApi {
|
||||||
return Result.ok(result);
|
return Result.ok(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据机构编码获取机构媒体资源访问地址
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@GetMapping("/getMediaUrlByOrgCode")
|
||||||
|
public Result<?> getMediaUrlByOrgCode(@RequestParam("orgCode") String orgCode) {
|
||||||
|
JSONObject deptInfo = sysBaseAPI.getOrgInfo(orgCode);
|
||||||
|
Map<String, Object> result = Maps.newHashMap();
|
||||||
|
String mediaUrl = deptInfo.getString("mediaUrl");
|
||||||
|
result.put("mediaUrl", mediaUrl.endsWith("/") ? mediaUrl : mediaUrl + "/");
|
||||||
|
return Result.ok(result);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据机构编码获取机构api接口前缀
|
* 根据机构编码获取机构api接口前缀
|
||||||
*
|
*
|
||||||
|
|
|
@ -68,6 +68,10 @@ public class SysDepartEntity implements Serializable {
|
||||||
* 是否标准指令库 0是1否
|
* 是否标准指令库 0是1否
|
||||||
*/
|
*/
|
||||||
private String izDirectiveMain;
|
private String izDirectiveMain;
|
||||||
|
/**
|
||||||
|
* 媒体资源访问地址
|
||||||
|
*/
|
||||||
|
private String mediaUrl;
|
||||||
/**
|
/**
|
||||||
* 省份
|
* 省份
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -88,6 +88,10 @@ public class SysDepart implements Serializable {
|
||||||
* 是否标准指令库 0是1否
|
* 是否标准指令库 0是1否
|
||||||
*/
|
*/
|
||||||
private String izDirectiveMain;
|
private String izDirectiveMain;
|
||||||
|
/**
|
||||||
|
* 媒体资源访问地址
|
||||||
|
*/
|
||||||
|
private String mediaUrl;
|
||||||
/**
|
/**
|
||||||
* 省份
|
* 省份
|
||||||
*/
|
*/
|
||||||
|
@ -256,6 +260,7 @@ public class SysDepart implements Serializable {
|
||||||
Objects.equals(url, depart.url) &&
|
Objects.equals(url, depart.url) &&
|
||||||
Objects.equals(contextPath, depart.contextPath) &&
|
Objects.equals(contextPath, depart.contextPath) &&
|
||||||
Objects.equals(izDirectiveMain, depart.izDirectiveMain) &&
|
Objects.equals(izDirectiveMain, depart.izDirectiveMain) &&
|
||||||
|
Objects.equals(mediaUrl, depart.mediaUrl) &&
|
||||||
Objects.equals(province, depart.province) &&
|
Objects.equals(province, depart.province) &&
|
||||||
Objects.equals(city, depart.city) &&
|
Objects.equals(city, depart.city) &&
|
||||||
Objects.equals(district, depart.district) &&
|
Objects.equals(district, depart.district) &&
|
||||||
|
@ -284,7 +289,7 @@ public class SysDepart implements Serializable {
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(super.hashCode(), id, parentId, departName,
|
return Objects.hash(super.hashCode(), id, parentId, departName,
|
||||||
departNameEn, departNameAbbr, departOrder, description, orgCategory,
|
departNameEn, departNameAbbr, departOrder, description, orgCategory,
|
||||||
orgType, orgCode, url, contextPath, izDirectiveMain, province, city, district, operationStartTime,
|
orgType, orgCode, url, contextPath, izDirectiveMain,mediaUrl, province, city, district, operationStartTime,
|
||||||
operationEndTime, contractStartTime, contractEndTime, mobile, fax, address, memo, status,
|
operationEndTime, contractStartTime, contractEndTime, mobile, fax, address, memo, status,
|
||||||
delFlag, createBy, createTime, updateBy, updateTime, tenantId, payableAmount);
|
delFlag, createBy, createTime, updateBy, updateTime, tenantId, payableAmount);
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,6 +71,8 @@ public class SysDepartTreeModel implements Serializable {
|
||||||
|
|
||||||
private String izDirectiveMain;
|
private String izDirectiveMain;
|
||||||
|
|
||||||
|
private String mediaUrl;
|
||||||
|
|
||||||
private String province;
|
private String province;
|
||||||
|
|
||||||
private String city;
|
private String city;
|
||||||
|
@ -144,6 +146,7 @@ public class SysDepartTreeModel implements Serializable {
|
||||||
this.url = sysDepart.getUrl();
|
this.url = sysDepart.getUrl();
|
||||||
this.contextPath = sysDepart.getContextPath();
|
this.contextPath = sysDepart.getContextPath();
|
||||||
this.izDirectiveMain = sysDepart.getIzDirectiveMain();
|
this.izDirectiveMain = sysDepart.getIzDirectiveMain();
|
||||||
|
this.mediaUrl = sysDepart.getMediaUrl();
|
||||||
this.province = sysDepart.getProvince();
|
this.province = sysDepart.getProvince();
|
||||||
this.city = sysDepart.getCity();
|
this.city = sysDepart.getCity();
|
||||||
this.district = sysDepart.getDistrict();
|
this.district = sysDepart.getDistrict();
|
||||||
|
@ -508,6 +511,14 @@ public class SysDepartTreeModel implements Serializable {
|
||||||
this.contextPath = contextPath;
|
this.contextPath = contextPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getMediaUrl() {
|
||||||
|
return mediaUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMediaUrl(String mediaUrl) {
|
||||||
|
this.mediaUrl = mediaUrl;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 重写equals方法
|
* 重写equals方法
|
||||||
*/
|
*/
|
||||||
|
@ -534,6 +545,7 @@ public class SysDepartTreeModel implements Serializable {
|
||||||
Objects.equals(url, model.url) &&
|
Objects.equals(url, model.url) &&
|
||||||
Objects.equals(contextPath, model.contextPath) &&
|
Objects.equals(contextPath, model.contextPath) &&
|
||||||
Objects.equals(izDirectiveMain, model.izDirectiveMain) &&
|
Objects.equals(izDirectiveMain, model.izDirectiveMain) &&
|
||||||
|
Objects.equals(mediaUrl, model.mediaUrl) &&
|
||||||
Objects.equals(province, model.province) &&
|
Objects.equals(province, model.province) &&
|
||||||
Objects.equals(city, model.city) &&
|
Objects.equals(city, model.city) &&
|
||||||
Objects.equals(district, model.district) &&
|
Objects.equals(district, model.district) &&
|
||||||
|
@ -565,7 +577,7 @@ public class SysDepartTreeModel implements Serializable {
|
||||||
|
|
||||||
return Objects.hash(id, parentId, platType, departName, departNameEn, departNameAbbr,
|
return Objects.hash(id, parentId, platType, departName, departNameEn, departNameAbbr,
|
||||||
departOrder, description, orgCategory, orgType, orgCode, url, contextPath, izDirectiveMain, province, city, district,
|
departOrder, description, orgCategory, orgType, orgCode, url, contextPath, izDirectiveMain, province, city, district,
|
||||||
operationStartTime, operationEndTime, contractStartTime, contractEndTime,
|
mediaUrl, operationStartTime, operationEndTime, contractStartTime, contractEndTime,
|
||||||
mobile, fax, address, memo, status, delFlag, qywxIdentifier,
|
mobile, fax, address, memo, status, delFlag, qywxIdentifier,
|
||||||
createBy, createTime, updateBy, updateTime, children, directorUserIds, payableAmount);
|
createBy, createTime, updateBy, updateTime, children, directorUserIds, payableAmount);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1933,6 +1933,7 @@ public class SysBaseApiImpl implements ISysBaseAPI {
|
||||||
map.put("url",list.get(0).getUrl());
|
map.put("url",list.get(0).getUrl());
|
||||||
map.put("contextPath",list.get(0).getContextPath());
|
map.put("contextPath",list.get(0).getContextPath());
|
||||||
map.put("izDirectiveMain",list.get(0).getIzDirectiveMain());
|
map.put("izDirectiveMain",list.get(0).getIzDirectiveMain());
|
||||||
|
map.put("mediaUrl",list.get(0).getMediaUrl());
|
||||||
}
|
}
|
||||||
return new JSONObject(map);
|
return new JSONObject(map);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue