|
@ -17,7 +17,7 @@ import org.springframework.web.bind.annotation.*;
|
|
* @author hzp add at 20170425
|
|
* @author hzp add at 20170425
|
|
*/
|
|
*/
|
|
@RestController
|
|
@RestController
|
|
@Api(value = "Redis", description = "Redis数据缓存服务")
|
|
|
|
|
|
@Api(value = "Redis", tags = "Redis数据缓存服务")
|
|
public class StdRedisEndPoint extends EnvelopRestEndpoint {
|
|
public class StdRedisEndPoint extends EnvelopRestEndpoint {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
@ -32,18 +32,18 @@ public class StdRedisEndPoint extends EnvelopRestEndpoint {
|
|
|
|
|
|
@ApiOperation("通过StdDataSet版本和id获取标准数据集编码")
|
|
@ApiOperation("通过StdDataSet版本和id获取标准数据集编码")
|
|
@RequestMapping(value = ServiceApi.Redis.StdDataSetCode, method = RequestMethod.GET)
|
|
@RequestMapping(value = ServiceApi.Redis.StdDataSetCode, method = RequestMethod.GET)
|
|
public String getDataSetCode(@ApiParam(value = "version", defaultValue = "")
|
|
|
|
|
|
public String getDataSetCode(@ApiParam(value = "version")
|
|
@RequestParam("version") String version,
|
|
@RequestParam("version") String version,
|
|
@ApiParam(value = "id", defaultValue = "")
|
|
|
|
|
|
@ApiParam(value = "id")
|
|
@RequestParam("id") String id){
|
|
@RequestParam("id") String id){
|
|
return stdRedisService.getDataSetCode(version, id);
|
|
return stdRedisService.getDataSetCode(version, id);
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("通过StdDataSet版本和id获取标准数据集名称")
|
|
@ApiOperation("通过StdDataSet版本和id获取标准数据集名称")
|
|
@RequestMapping(value = ServiceApi.Redis.StdDataSetName, method = RequestMethod.GET)
|
|
@RequestMapping(value = ServiceApi.Redis.StdDataSetName, method = RequestMethod.GET)
|
|
public String getDataSetName(@ApiParam(value = "version", defaultValue = "")
|
|
|
|
|
|
public String getDataSetName(@ApiParam(value = "version")
|
|
@RequestParam("version") String version,
|
|
@RequestParam("version") String version,
|
|
@ApiParam(value = "id", defaultValue = "")
|
|
|
|
|
|
@ApiParam(value = "id")
|
|
@RequestParam("id") String id){
|
|
@RequestParam("id") String id){
|
|
return stdRedisService.getDataSetName(version, id);
|
|
return stdRedisService.getDataSetName(version, id);
|
|
}
|
|
}
|
|
@ -51,9 +51,9 @@ public class StdRedisEndPoint extends EnvelopRestEndpoint {
|
|
|
|
|
|
@ApiOperation("通过StdDataSet版本和编码获取标准数据集名称")
|
|
@ApiOperation("通过StdDataSet版本和编码获取标准数据集名称")
|
|
@RequestMapping(value = ServiceApi.Redis.StdDataSetNameByCode, method = RequestMethod.GET)
|
|
@RequestMapping(value = ServiceApi.Redis.StdDataSetNameByCode, method = RequestMethod.GET)
|
|
public String getDataSetNameByCode(@ApiParam(value = "version", defaultValue = "")
|
|
|
|
|
|
public String getDataSetNameByCode(@ApiParam(value = "version")
|
|
@RequestParam("version") String version,
|
|
@RequestParam("version") String version,
|
|
@ApiParam(value = "code", defaultValue = "")
|
|
|
|
|
|
@ApiParam(value = "code")
|
|
@RequestParam("code") String code){
|
|
@RequestParam("code") String code){
|
|
return stdRedisService.getDataSetNameByCode(version, code);
|
|
return stdRedisService.getDataSetNameByCode(version, code);
|
|
}
|
|
}
|
|
@ -61,9 +61,9 @@ public class StdRedisEndPoint extends EnvelopRestEndpoint {
|
|
|
|
|
|
@ApiOperation("通过StdDataSet版本和编码获取标准数据集主从表信息")
|
|
@ApiOperation("通过StdDataSet版本和编码获取标准数据集主从表信息")
|
|
@RequestMapping(value = ServiceApi.Redis.StdDataSetMultiRecord, method = RequestMethod.GET)
|
|
@RequestMapping(value = ServiceApi.Redis.StdDataSetMultiRecord, method = RequestMethod.GET)
|
|
public Boolean getDataSetMultiRecord(@ApiParam(value = "version", defaultValue = "")
|
|
|
|
|
|
public Boolean getDataSetMultiRecord(@ApiParam(value = "version")
|
|
@RequestParam("version") String version,
|
|
@RequestParam("version") String version,
|
|
@ApiParam(value = "code", defaultValue = "")
|
|
|
|
|
|
@ApiParam(value = "code")
|
|
@RequestParam("code") String code){
|
|
@RequestParam("code") String code){
|
|
return stdRedisService.getDataSetMultiRecord(version, code);
|
|
return stdRedisService.getDataSetMultiRecord(version, code);
|
|
}
|
|
}
|
|
@ -71,11 +71,11 @@ public class StdRedisEndPoint extends EnvelopRestEndpoint {
|
|
|
|
|
|
@ApiOperation("通过StdDataSet版本、编码以及标准数据元的内部编码获取标准数据元对应类型")
|
|
@ApiOperation("通过StdDataSet版本、编码以及标准数据元的内部编码获取标准数据元对应类型")
|
|
@RequestMapping(value = ServiceApi.Redis.StdMetadataType, method = RequestMethod.GET)
|
|
@RequestMapping(value = ServiceApi.Redis.StdMetadataType, method = RequestMethod.GET)
|
|
public String getMetaDataType(@ApiParam(value = "version", defaultValue = "")
|
|
|
|
|
|
public String getMetaDataType(@ApiParam(value = "version")
|
|
@RequestParam("version") String version,
|
|
@RequestParam("version") String version,
|
|
@ApiParam(value = "dataSetCode", defaultValue = "")
|
|
|
|
|
|
@ApiParam(value = "dataSetCode")
|
|
@RequestParam("dataSetCode") String dataSetCode,
|
|
@RequestParam("dataSetCode") String dataSetCode,
|
|
@ApiParam(value = "innerCode", defaultValue = "")
|
|
|
|
|
|
@ApiParam(value = "innerCode")
|
|
@RequestParam("innerCode") String innerCode) {
|
|
@RequestParam("innerCode") String innerCode) {
|
|
|
|
|
|
return stdRedisService.getMetaDataType( version, dataSetCode , innerCode);
|
|
return stdRedisService.getMetaDataType( version, dataSetCode , innerCode);
|
|
@ -83,11 +83,11 @@ public class StdRedisEndPoint extends EnvelopRestEndpoint {
|
|
|
|
|
|
@ApiOperation("通过StdDataSet版本、编码以及标准数据元的内部编码获取标准数据元字典ID")
|
|
@ApiOperation("通过StdDataSet版本、编码以及标准数据元的内部编码获取标准数据元字典ID")
|
|
@RequestMapping(value = ServiceApi.Redis.StdMetadataDict, method = RequestMethod.GET)
|
|
@RequestMapping(value = ServiceApi.Redis.StdMetadataDict, method = RequestMethod.GET)
|
|
public String getMetaDataDict(@ApiParam(value = "version", defaultValue = "")
|
|
|
|
|
|
public String getMetaDataDict(@ApiParam(value = "version")
|
|
@RequestParam("version") String version,
|
|
@RequestParam("version") String version,
|
|
@ApiParam(value = "dataSetCode", defaultValue = "")
|
|
|
|
|
|
@ApiParam(value = "dataSetCode")
|
|
@RequestParam("dataSetCode") String dataSetCode,
|
|
@RequestParam("dataSetCode") String dataSetCode,
|
|
@ApiParam(value = "innerCode", defaultValue = "")
|
|
|
|
|
|
@ApiParam(value = "innerCode")
|
|
@RequestParam("innerCode") String innerCode) {
|
|
@RequestParam("innerCode") String innerCode) {
|
|
return stdRedisService.getMetaDataDict(version, dataSetCode, innerCode);
|
|
return stdRedisService.getMetaDataDict(version, dataSetCode, innerCode);
|
|
}
|
|
}
|
|
@ -95,11 +95,11 @@ public class StdRedisEndPoint extends EnvelopRestEndpoint {
|
|
|
|
|
|
@ApiOperation("通过StdDataSet版本、标准数据元字典ID以及标准数据元字典项编码获取标准数据元字典项值")
|
|
@ApiOperation("通过StdDataSet版本、标准数据元字典ID以及标准数据元字典项编码获取标准数据元字典项值")
|
|
@RequestMapping(value = ServiceApi.Redis.StdDictEntryValue, method = RequestMethod.GET)
|
|
@RequestMapping(value = ServiceApi.Redis.StdDictEntryValue, method = RequestMethod.GET)
|
|
public String getDictEntryValue(@ApiParam(value = "version", defaultValue = "")
|
|
|
|
|
|
public String getDictEntryValue(@ApiParam(value = "version")
|
|
@RequestParam("version") String version,
|
|
@RequestParam("version") String version,
|
|
@ApiParam(value = "dictId", defaultValue = "")
|
|
|
|
|
|
@ApiParam(value = "dictId")
|
|
@RequestParam("dictId") String dictId,
|
|
@RequestParam("dictId") String dictId,
|
|
@ApiParam(value = "entryCode", defaultValue = "")
|
|
|
|
|
|
@ApiParam(value = "entryCode")
|
|
@RequestParam("entryCode") String entryCode) {
|
|
@RequestParam("entryCode") String entryCode) {
|
|
|
|
|
|
return stdRedisService.getDictEntryValue(version, dictId , entryCode);
|
|
return stdRedisService.getDictEntryValue(version, dictId , entryCode);
|
|
@ -108,42 +108,42 @@ public class StdRedisEndPoint extends EnvelopRestEndpoint {
|
|
|
|
|
|
@ApiOperation("通过版本号,数据集code查找数据元,返回通过,分隔的数据元字符串")
|
|
@ApiOperation("通过版本号,数据集code查找数据元,返回通过,分隔的数据元字符串")
|
|
@RequestMapping(value = ServiceApi.Redis.StdMetadataCodes, method = RequestMethod.GET)
|
|
@RequestMapping(value = ServiceApi.Redis.StdMetadataCodes, method = RequestMethod.GET)
|
|
public String getMetadataCodes(@ApiParam(value = "version", defaultValue = "")
|
|
|
|
|
|
public String getMetadataCodes(@ApiParam(value = "version")
|
|
@RequestParam("version") String version,
|
|
@RequestParam("version") String version,
|
|
@ApiParam(value = "datasetCode", defaultValue = "")
|
|
|
|
|
|
@ApiParam(value = "datasetCode")
|
|
@RequestParam("datasetCode") String datasetCode){
|
|
@RequestParam("datasetCode") String datasetCode){
|
|
return stdRedisService.getMetadataCodes(version, datasetCode);
|
|
return stdRedisService.getMetadataCodes(version, datasetCode);
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("通过版本号、标准数据集code和数据元code 获取标准数据元名称")
|
|
@ApiOperation("通过版本号、标准数据集code和数据元code 获取标准数据元名称")
|
|
@RequestMapping(value = ServiceApi.Redis.StdMetadataName, method = RequestMethod.GET)
|
|
@RequestMapping(value = ServiceApi.Redis.StdMetadataName, method = RequestMethod.GET)
|
|
public String getMetadataName(@ApiParam(value = "version", defaultValue = "")
|
|
|
|
|
|
public String getMetadataName(@ApiParam(value = "version")
|
|
@RequestParam("version") String version,
|
|
@RequestParam("version") String version,
|
|
@ApiParam(value = "datasetCode", defaultValue = "")
|
|
|
|
|
|
@ApiParam(value = "datasetCode")
|
|
@RequestParam("datasetCode") String datasetCode,
|
|
@RequestParam("datasetCode") String datasetCode,
|
|
@ApiParam(value = "metadataCode", defaultValue = "")
|
|
|
|
|
|
@ApiParam(value = "metadataCode")
|
|
@RequestParam("metadataCode") String metadataCode){
|
|
@RequestParam("metadataCode") String metadataCode){
|
|
return stdRedisService.getMetadataName(version, datasetCode,metadataCode);
|
|
return stdRedisService.getMetadataName(version, datasetCode,metadataCode);
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("通过版本号、标准数据集code和数据元code 获取标准数据元是否为空")
|
|
@ApiOperation("通过版本号、标准数据集code和数据元code 获取标准数据元是否为空")
|
|
@RequestMapping(value = ServiceApi.Redis.StdMetadataNullable, method = RequestMethod.GET)
|
|
@RequestMapping(value = ServiceApi.Redis.StdMetadataNullable, method = RequestMethod.GET)
|
|
public boolean isMetaDataNullable(@ApiParam(value = "version", defaultValue = "")
|
|
|
|
|
|
public boolean isMetaDataNullable(@ApiParam(value = "version")
|
|
@RequestParam("version") String version,
|
|
@RequestParam("version") String version,
|
|
@ApiParam(value = "datasetCode", defaultValue = "")
|
|
|
|
|
|
@ApiParam(value = "datasetCode")
|
|
@RequestParam("datasetCode") String datasetCode,
|
|
@RequestParam("datasetCode") String datasetCode,
|
|
@ApiParam(value = "metadataCode", defaultValue = "")
|
|
|
|
|
|
@ApiParam(value = "metadataCode")
|
|
@RequestParam("metadataCode") String metadataCode){
|
|
@RequestParam("metadataCode") String metadataCode){
|
|
return stdRedisService.isMetaDataNullable(version, datasetCode,metadataCode);
|
|
return stdRedisService.isMetaDataNullable(version, datasetCode,metadataCode);
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("通过版本号、标准数据集code和数据元code 获取标准数据元是否为空")
|
|
@ApiOperation("通过版本号、标准数据集code和数据元code 获取标准数据元是否为空")
|
|
@RequestMapping(value = ServiceApi.Redis.StdMetadataFormat, method = RequestMethod.GET)
|
|
@RequestMapping(value = ServiceApi.Redis.StdMetadataFormat, method = RequestMethod.GET)
|
|
public String getMetadataFormat(@ApiParam(value = "version", defaultValue = "")
|
|
|
|
|
|
public String getMetadataFormat(@ApiParam(value = "version")
|
|
@RequestParam("version") String version,
|
|
@RequestParam("version") String version,
|
|
@ApiParam(value = "datasetCode", defaultValue = "")
|
|
|
|
|
|
@ApiParam(value = "datasetCode")
|
|
@RequestParam("datasetCode") String datasetCode,
|
|
@RequestParam("datasetCode") String datasetCode,
|
|
@ApiParam(value = "metadataCode", defaultValue = "")
|
|
|
|
|
|
@ApiParam(value = "metadataCode")
|
|
@RequestParam("metadataCode") String metadataCode){
|
|
@RequestParam("metadataCode") String metadataCode){
|
|
return stdRedisService.getMetadataFormat(version, datasetCode,metadataCode);
|
|
return stdRedisService.getMetadataFormat(version, datasetCode,metadataCode);
|
|
}
|
|
}
|
|
@ -164,11 +164,11 @@ public class StdRedisEndPoint extends EnvelopRestEndpoint {
|
|
@ApiOperation("通过StdDataSet版本、标准数据元字典ID以及标准数据元字典项编码判断编码是否存在")
|
|
@ApiOperation("通过StdDataSet版本、标准数据元字典ID以及标准数据元字典项编码判断编码是否存在")
|
|
@RequestMapping(value = ServiceApi.Redis.StdDictEntryCodeExist, method = RequestMethod.GET)
|
|
@RequestMapping(value = ServiceApi.Redis.StdDictEntryCodeExist, method = RequestMethod.GET)
|
|
public Boolean isDictCodeExist(
|
|
public Boolean isDictCodeExist(
|
|
@ApiParam(value = "version", defaultValue = "")
|
|
|
|
|
|
@ApiParam(value = "version")
|
|
@RequestParam("version") String version,
|
|
@RequestParam("version") String version,
|
|
@ApiParam(value = "dictId", defaultValue = "")
|
|
|
|
|
|
@ApiParam(value = "dictId")
|
|
@RequestParam("dictId") String dictId,
|
|
@RequestParam("dictId") String dictId,
|
|
@ApiParam(value = "entryCode", defaultValue = "")
|
|
|
|
|
|
@ApiParam(value = "entryCode")
|
|
@RequestParam("entryCode") String entryCode) {
|
|
@RequestParam("entryCode") String entryCode) {
|
|
return stdRedisService.isDictCodeExist(version, dictId, entryCode);
|
|
return stdRedisService.isDictCodeExist(version, dictId, entryCode);
|
|
}
|
|
}
|