Commit f44dde58 authored by liukai's avatar liukai

应用管理——详情

parent 06ee6a34
......@@ -92,6 +92,12 @@ public class PmsApiDetailsController {
return pmsApiManagementService.getPammList(pmsApiManagement);
}
@ApiOperation("服务分类——详情")
@PostMapping("/getPammByCode")
public ResponseVO<List<PmsApiManagement>> getPammByCode(@RequestBody PmsApiManagement pmsApiManagement) {
return pmsApiManagementService.getPammByCode(pmsApiManagement);
}
}
......@@ -8,4 +8,6 @@ import java.util.List;
public interface PmsApiManagementMapper extends BaseMapper<PmsApiManagement> {
List<PmsApiManagement> getPammList(PmsApiManagement pmsApiManagement);
List<PmsApiManagement> getPammByCode(PmsApiManagement pmsApiManagement);
}
......@@ -6,10 +6,12 @@ import com.github.pagehelper.PageInfo;
import com.pms.ocp.model.entity.PmsApiManagement;
import com.pms.ocp.model.vo.ResponseVO;
import java.util.List;
public interface PmsApiManagementService extends IService<PmsApiManagement> {
ResponseVO<PageInfo<PmsApiManagement>> getPammList(PmsApiManagement pmsApiManagement);
ResponseVO getPammByCode(PmsApiManagement pmsApiManagement);
}
......@@ -32,4 +32,10 @@ public class PmsApiManagementServiceImpl extends ServiceImpl<PmsApiManagementMap
PageInfo<PmsApiManagement> pageInfo = new PageInfo<>(pammList);
return ResponseVO.ok(pageInfo);
}
@Override
public ResponseVO getPammByCode(PmsApiManagement pmsApiManagement) {
List<PmsApiManagement> pammByCode = pmsApiManagementMapper.getPammByCode(pmsApiManagement);
return ResponseVO.ok(pammByCode);
}
}
......@@ -6,14 +6,14 @@
select
oab.obj_id,
oab.api_code,
oab.api_name,
api_name,
oab.api_group_code,
oab.api_promotion,
oab.api_req,
oab.api_resp,
oab.api_url,
oab.api_ctime,
oab.api_mtime,
DATE_FORMAT( api_mtime, '%Y','%m','%d') api_mtime_string,
oab.api_user_id,
oab.api_unit,
oab.owner_company_code,
......@@ -23,7 +23,8 @@
oab.api_version,
oab.api_center_code,
oab.api_description,
oab.api_user_name,
api_user_name,
api_group_name,
oti.iocn_type,
oti.code_no,
oti.iocn,
......@@ -31,6 +32,69 @@
from ocp_api_base oab LEFT JOIN
ocp_api_group oag on oab.api_group_code = oag.api_group_code
INNER JOIN ocp_tenant_iocn oti on oab.api_code = oti.code_no
<if test="apiName != null and apiName != ''">
and api_name = #{apiName}
</if>
<if test="apiGroupName != null and apiGroupName != ''">
and api_group_name = #{apiGroupName}
</if>
<if test="apiUserName != null and apiUserName != ''">
and api_user_name = #{apiUserName}
</if>
<if test="apiMtime != null">
AND api_mtime >= DATE_FORMAT(#{apiMtime},'%Y-%m-%d ')
</if>
<if test="apiMtime != null">
AND api_mtime &lt;= DATE_FORMAT(#{apiMtime},'%Y-%m-%d ')
</if>
</select>
<select id="getPammByCode" resultType="com.pms.ocp.model.entity.PmsApiManagement">
select
oab.obj_id,
oab.api_code,
api_name,
oab.api_group_code,
oab.api_promotion,
oab.api_req,
oab.api_resp,
oab.api_url,
oab.api_ctime,
api_mtime,
oab.api_user_id,
oab.api_unit,
oab.owner_company_code,
oab.is_delete,
oab.api_zone,
oab.api_layer,
oab.api_version,
oab.api_center_code,
oab.api_description,
api_user_name,
api_group_name,
api_group_promotion_type,
api_group_company_code,
api_group_version,
api_group_order_no,
api_group_user_id,
api_group_user_name,
api_group_ctime,
api_group_mtime,
api_group_pcode,
api_group_level,
oti.iocn_type,
oti.code_no,
oti.iocn,
oti.company_code
from ocp_api_base oab LEFT JOIN
ocp_api_group oag on oab.api_group_code = oag.api_group_code
INNER JOIN ocp_tenant_iocn oti on oab.api_code = oti.code_no
where oab.api_code = #{apiCode}
</select>
</mapper>
\ 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