@Test public void testListProjectBasicInfoByType() throws Exception { }
@Override public CommonResult listProjectBasicInfoByType(Integer type) { JSONObject returnJson = new JSONObject(); List<HashMap> info; if (type == 1) info = techProjectMapper.listProjectBasicInfoByType("检查"); else if (type == 2) info = techProjectMapper.listProjectBasicInfoByType("检验"); else if (type == 3) info = techProjectMapper.listProjectBasicInfoByType("处置"); else return CommonResult.fail(ResultCode.E_801); returnJson.put("projects", info); return CommonResult.success(info); }
TechProjectManagementServiceImpl implements TechProjectManagementService { @Override public CommonResult listProjectBasicInfoByType(Integer type) { JSONObject returnJson = new JSONObject(); List<HashMap> info; if (type == 1) info = techProjectMapper.listProjectBasicInfoByType("检查"); else if (type == 2) info = techProjectMapper.listProjectBasicInfoByType("检验"); else if (type == 3) info = techProjectMapper.listProjectBasicInfoByType("处置"); else return CommonResult.fail(ResultCode.E_801); returnJson.put("projects", info); return CommonResult.success(info); } }
TechProjectManagementServiceImpl implements TechProjectManagementService { @Override public CommonResult listProjectBasicInfoByType(Integer type) { JSONObject returnJson = new JSONObject(); List<HashMap> info; if (type == 1) info = techProjectMapper.listProjectBasicInfoByType("检查"); else if (type == 2) info = techProjectMapper.listProjectBasicInfoByType("检验"); else if (type == 3) info = techProjectMapper.listProjectBasicInfoByType("处置"); else return CommonResult.fail(ResultCode.E_801); returnJson.put("projects", info); return CommonResult.success(info); }  }
TechProjectManagementServiceImpl implements TechProjectManagementService { @Override public CommonResult listProjectBasicInfoByType(Integer type) { JSONObject returnJson = new JSONObject(); List<HashMap> info; if (type == 1) info = techProjectMapper.listProjectBasicInfoByType("检查"); else if (type == 2) info = techProjectMapper.listProjectBasicInfoByType("检验"); else if (type == 3) info = techProjectMapper.listProjectBasicInfoByType("处置"); else return CommonResult.fail(ResultCode.E_801); returnJson.put("projects", info); return CommonResult.success(info); }  @Override CommonResult listProjectBasicInfoByType(Integer type); @Override CommonResult listItemBasicInfoByProject(Integer projectId); }
TechProjectManagementServiceImpl implements TechProjectManagementService { @Override public CommonResult listProjectBasicInfoByType(Integer type) { JSONObject returnJson = new JSONObject(); List<HashMap> info; if (type == 1) info = techProjectMapper.listProjectBasicInfoByType("检查"); else if (type == 2) info = techProjectMapper.listProjectBasicInfoByType("检验"); else if (type == 3) info = techProjectMapper.listProjectBasicInfoByType("处置"); else return CommonResult.fail(ResultCode.E_801); returnJson.put("projects", info); return CommonResult.success(info); }  @Override CommonResult listProjectBasicInfoByType(Integer type); @Override CommonResult listItemBasicInfoByProject(Integer projectId);  }