This commit is contained in:
xiangwb
2018-04-18 13:34:32 +08:00
parent c1dd6dfdb1
commit d87e13c29f
4 changed files with 9 additions and 37 deletions
@@ -71,11 +71,9 @@ public class DataDictionaryControl {
@ApiImplicitParam(name = "id", value = "主键", paramType = "query", dataType = "string")
@PostMapping("uniqueCode")
public JSONObject uniqueCode(@RequestParam String code, String id) {
boolean b = dataDictionaryService.uniqueCode(code, id);
RestMessage result = new RestMessage();
if (b) {
result.setSuccess(true);
}
boolean b = dataDictionaryService.uniqueCode(code, id);
result.setSuccess(b);
return JsonResult.toJSONObj(result);
}