fix 增加sub_manage查询接口

luoyang 5 years ago
parent f9896bd95b
commit 05667b73b0

@ -10,7 +10,7 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>manage</artifactId>
<version>1.2.27</version>
<version>1.2.28</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

@ -220,5 +220,7 @@ public interface RetailAppService {
void commitAuthFilesToCompliance(JSONObject device,JSONObject photoInfo);
JSONObject getClientSubManage(JSONObject device);
boolean isSubPartner(JSONObject device, String clientMoniker);
}

@ -2426,6 +2426,15 @@ public class RetailAppServiceImp implements RetailAppService {
clientManager.commitAuthFilesToCompliance(client.getString("client_moniker"), account, "App");
}
public JSONObject getClientSubManage(JSONObject device) {
JSONObject result = new JSONObject();
String clientType = device.getString("client_type");
deviceSupport.findRegister(clientType);
JSONObject client = clientManager.getClientInfo(device.getIntValue("client_id"));
result.put("sub_manage", client.getBooleanValue("sub_manage"));
return result;
}
@Override
public boolean isSubPartner(JSONObject device,String clientMoniker) {
JSONObject client = clientManager.getClientInfoByMoniker(clientMoniker);

@ -838,4 +838,9 @@ public class RetailAppController {
public void commitToComplianceAuthFiles(@ModelAttribute(CommonConsts.RETAIL_DEVICE) JSONObject device, @RequestBody JSONObject photoInfo) {
retailAppService.commitAuthFilesToCompliance(device, photoInfo);
}
@GetMapping("/client/sub_manage")
public JSONObject getClientSubManage(@ModelAttribute(CommonConsts.RETAIL_DEVICE) JSONObject device) {
return retailAppService.getClientSubManage(device);
}
}

Loading…
Cancel
Save