Commit 96508087 authored by chenzhao's avatar chenzhao

融资机构树

parent c2cf37d0
......@@ -21,4 +21,6 @@ public interface FinancingInfoMapper extends BaseMapper<FinancingInfo> {
FinancingInfoDto selectDataInfo(@Param("peasantHouseholdId")Long peasantHouseholdId);
List<Map<String,Object>> selectOrgList();
}
......@@ -52,4 +52,12 @@
WHERE
hfi.peasant_household_id = #{peasantHouseholdId}
</select>
<select id="selectOrgList" resultType="java.util.Map">
select
*
from
privilege_company
where
PARENT_ID = (select SEQUENCE_NBR from privilege_company where COMPANY_NAME = '融资机构')
</select>
</mapper>
......@@ -153,4 +153,13 @@ public class FinancingInfoController extends BaseController {
financingInfoServiceImpl.execueFlow(params);
return CommonResponseNewUtil.success();
}
@TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(httpMethod = "GET",value = "融资机构列表", notes = "融资机构列表")
@GetMapping(value = "/orgList")
public ResponseModel<List<Map<String,Object>>> orgList() {
return CommonResponseNewUtil.success(financingInfoServiceImpl.selectOrgList());
}
}
......@@ -91,7 +91,7 @@ public class FinancingRectificationOrderController extends BaseController {
if (!StringUtils.isEmpty(dto.getRectificationPhoto())){
dto.setRectificationPhotos(JSONArray.parseArray(dto.getRectificationPhoto()));
}
return ResponseHelper.buildResponse(financingRectificationOrderServiceImpl.queryBySeq(sequenceNbr));
return ResponseHelper.buildResponse(dto);
}
/**
......
......@@ -253,4 +253,9 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto,Finan
}
public List<Map<String,Object>> selectOrgList() {
return this.getBaseMapper().selectOrgList();
}
}
\ No newline at end of file
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