Commit 41afdf0e authored by hekaiwen's avatar hekaiwen

bug24788 历史设备登记无需再次选择有无设备代码

equCodeCategory 1 有设备代码 2 无设备代码
parent 67bb138e
......@@ -166,7 +166,13 @@ public class JgUseRegistrationController extends BaseController {
@ApiOperation(httpMethod = "GET", value = "从一码通的表中查询详情", notes = "从一码通的表中查询详情")
@GetMapping(value = "/getDetailByIdx")
public ResponseModel<Map<String, Object>> getDetailByIdx(@RequestParam(value = "record") String record) {
return ResponseHelper.buildResponse(jgUseRegistrationServiceImpl.getDetailByIdx(record));
Map<String, Object> detailByIdx = jgUseRegistrationServiceImpl.getDetailByIdx(record);
if(detailByIdx.get("equCode") != null && !detailByIdx.get("equCode").equals("")) {
detailByIdx.put("equCodeCategory", 1);
}else{
detailByIdx.put("equCodeCategory", 0);
}
return ResponseHelper.buildResponse(detailByIdx);
}
@TycloudOperation(ApiLevel = UserType.AGENCY)
......
  • Developer

    equCodeCategory1 有设备代码0 无设备代码 前端组件 1有设备代码 2无设备代码

Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment