|
@@ -1,6 +1,6 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
-<mapper namespace="com.github.zuihou.business.productionresource.dao.ProductionResourceMapper">
|
|
|
+<mapper namespace="com.github.zuihou.business.productionresource.dao.ProductionTenantResourceMapper">
|
|
|
|
|
|
<!-- 通用查询映射结果 -->
|
|
|
<resultMap id="BaseResultMap" type="com.github.zuihou.business.productionresource.entity.ProductionResource">
|
|
@@ -34,13 +34,25 @@
|
|
|
<result column="production_no" jdbcType="VARCHAR" property="productionNo"/>
|
|
|
<result column="manufacturer" jdbcType="VARCHAR" property="manufacturer"/>
|
|
|
<result column="program_num" jdbcType="INTEGER" property="programNum"/>
|
|
|
- <result column="advUrl" jdbcType="VARCHAR" property="advUrl"/>
|
|
|
+ <result column="adv_url" jdbcType="VARCHAR" property="advUrl"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 通用查询结果列 -->
|
|
|
<sql id="Base_Column_List">
|
|
|
- id,create_time,create_user,update_time,update_user,
|
|
|
+ id,create_time,create_user,update_time,update_user,adv_url,place_id,lineDesc,placeName,
|
|
|
compnay_id, module_id, area_id, name, resources_category, code, status, online_status, remark, ip, port, GATHER_TASK_ID, income_today, exception_order_num, cache_storge_num, max_speed, capital_no, capital_name, capital_type, mode_specification, capital_price, production_date, production_no, manufacturer, program_num
|
|
|
</sql>
|
|
|
|
|
|
+ <select id="pageList" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List"/>, longtitude,latitude,areaIds,tenantDesc,pic, category
|
|
|
+ from (
|
|
|
+ SELECT
|
|
|
+ a.*,b.label as lineDesc,v.longtitude,v.latitude,v.pic,v.category,v.tenantDesc,
|
|
|
+ v.areaIds,v.placeName from imcs_tenant_productionresource a
|
|
|
+ left join c_core_org b on a.org_id = b.id
|
|
|
+ left join view_productionresource v on a.id = v.id
|
|
|
+ ) s ${ew.customSqlSegment}
|
|
|
+ </select>
|
|
|
+
|
|
|
</mapper>
|