|
@@ -28,30 +28,30 @@
|
|
|
<result column="blame_jyx_config_id" property="jyxConfigId"/>
|
|
<result column="blame_jyx_config_id" property="jyxConfigId"/>
|
|
|
</collection>
|
|
</collection>
|
|
|
<collection property="settingList" ofType="com.jzg.commons.entity.po.jyxSetting">
|
|
<collection property="settingList" ofType="com.jzg.commons.entity.po.jyxSetting">
|
|
|
- <id column="setting_id" property="id"/>
|
|
|
|
|
- <result column="seats" property="seats"/>
|
|
|
|
|
- <result column="setting_coverage" property="coverage"/>
|
|
|
|
|
- <result column="setting_premium" property="premium"/>
|
|
|
|
|
- <result column="setting_system_code" property="systemCode"/>
|
|
|
|
|
- <result column="setting_jyx_config_id" property="jyxConfigId"/>
|
|
|
|
|
|
|
+ <id column="setting_id" property="id"/>
|
|
|
|
|
+ <result column="seats" property="seats"/>
|
|
|
|
|
+ <result column="setting_coverage" property="coverage"/>
|
|
|
|
|
+ <result column="setting_premium" property="premium"/>
|
|
|
|
|
+ <result column="setting_system_code" property="systemCode"/>
|
|
|
|
|
+ <result column="setting_jyx_config_id" property="jyxConfigId"/>
|
|
|
</collection>
|
|
</collection>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="params">
|
|
<sql id="params">
|
|
|
- jc.`id`, jc.`product_type`,jc.`parent_id`, jc.`product_name`,jc.`alias`,jc.`company`, jc.`product_code`,jc.`connection_method`,jc.`premium_setting`, jc.`coverage` as jsCoverage, jc.`premium` as jsPremium, jc.`system_code`, jc.`is_delete` as isDelete
|
|
|
|
|
|
|
+ jc.`id`, jc.`product_type`,jc.`parent_id`, jc.`product_name`,jc.`alias`,jc.`company`, jc.`product_code`,jc.`connection_method`,jc.`premium_setting`, jc.`coverage` as jsCoverage, jc.`premium` as jsPremium, jc.`system_code`, jc.`is_delete` as isDelete
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="jyxList" resultMap="jyxConfigVo">
|
|
<select id="jyxList" resultMap="jyxConfigVo">
|
|
|
select
|
|
select
|
|
|
<include refid="params"/> ,
|
|
<include refid="params"/> ,
|
|
|
- jb.id as blame_id,jb.blame,jb.blame_code,jb.blame_coverage,jb.blame_premium,jb.system_code as blame_system_code,jb.jyx_config_id as blame_jyx_config_id,
|
|
|
|
|
- js.id as setting_id,js.seats,js.coverage as setting_coverage,js.premium as setting_premium,js.system_code as setting_system_code,js.jyx_config_id as setting_jyx_config_id
|
|
|
|
|
- from jyx_config jc
|
|
|
|
|
- left join jyx_blame jb on jc.id = jb.jyx_config_id
|
|
|
|
|
- left join jyx_setting js on jc.id = js.jyx_config_id
|
|
|
|
|
|
|
+ jb.id as blame_id,jb.blame,jb.blame_code,jb.blame_coverage,jb.blame_premium,jb.system_code as blame_system_code,jb.jyx_config_id as blame_jyx_config_id,
|
|
|
|
|
+ js.id as setting_id,js.seats,js.coverage as setting_coverage,js.premium as setting_premium,js.system_code as setting_system_code,js.jyx_config_id as setting_jyx_config_id
|
|
|
|
|
+ from jyx_config jc
|
|
|
|
|
+ left join jyx_blame jb on jc.id = jb.jyx_config_id AND jb.is_delete = 0
|
|
|
|
|
+ left join jyx_setting js on jc.id = js.jyx_config_id AND js.is_delete = 0
|
|
|
<where>
|
|
<where>
|
|
|
- jc.is_delete = 0
|
|
|
|
|
|
|
+ jc.is_delete = 0
|
|
|
<if test="params != null and params != ''">
|
|
<if test="params != null and params != ''">
|
|
|
and (jc.product_name like concat('%',#{params},'%') or jc.alias like concat('%',#{params},'%'))
|
|
and (jc.product_name like concat('%',#{params},'%') or jc.alias like concat('%',#{params},'%'))
|
|
|
</if>
|
|
</if>
|
|
@@ -78,9 +78,10 @@
|
|
|
jb.id as blame_id,jb.blame,jb.blame_code,jb.blame_coverage,jb.blame_premium,jb.system_code as blame_system_code,jb.jyx_config_id as blame_jyx_config_id,
|
|
jb.id as blame_id,jb.blame,jb.blame_code,jb.blame_coverage,jb.blame_premium,jb.system_code as blame_system_code,jb.jyx_config_id as blame_jyx_config_id,
|
|
|
js.id as setting_id,js.seats,js.coverage as setting_coverage,js.premium as setting_premium,js.system_code as setting_system_code,js.jyx_config_id as setting_jyx_config_id
|
|
js.id as setting_id,js.seats,js.coverage as setting_coverage,js.premium as setting_premium,js.system_code as setting_system_code,js.jyx_config_id as setting_jyx_config_id
|
|
|
from jyx_config jc
|
|
from jyx_config jc
|
|
|
- left join jyx_blame jb on jc.id = jb.jyx_config_id
|
|
|
|
|
- left join jyx_setting js on jc.id = js.jyx_config_id
|
|
|
|
|
|
|
+ left join jyx_blame jb on jc.id = jb.jyx_config_id AND jb.is_delete = 0
|
|
|
|
|
+ left join jyx_setting js on jc.id = js.jyx_config_id AND js.is_delete = 0
|
|
|
<where>
|
|
<where>
|
|
|
|
|
+ jc.is_delete = 0
|
|
|
<if test="ids != null and ids != ''">
|
|
<if test="ids != null and ids != ''">
|
|
|
and jc.id in
|
|
and jc.id in
|
|
|
<foreach collection="ids" item="id" open="(" separator="," close=")">
|
|
<foreach collection="ids" item="id" open="(" separator="," close=")">
|
|
@@ -99,9 +100,10 @@
|
|
|
jb.id as blame_id,jb.blame,jb.blame_code,jb.blame_coverage,jb.blame_premium,jb.system_code as blame_system_code,jb.jyx_config_id as blame_jyx_config_id,
|
|
jb.id as blame_id,jb.blame,jb.blame_code,jb.blame_coverage,jb.blame_premium,jb.system_code as blame_system_code,jb.jyx_config_id as blame_jyx_config_id,
|
|
|
js.id as setting_id,js.seats,js.coverage as setting_coverage,js.premium as setting_premium,js.system_code as setting_system_code,js.jyx_config_id as setting_jyx_config_id
|
|
js.id as setting_id,js.seats,js.coverage as setting_coverage,js.premium as setting_premium,js.system_code as setting_system_code,js.jyx_config_id as setting_jyx_config_id
|
|
|
from jyx_config jc
|
|
from jyx_config jc
|
|
|
- left join jyx_blame jb on jc.id = jb.jyx_config_id
|
|
|
|
|
- left join jyx_setting js on jc.id = js.jyx_config_id
|
|
|
|
|
|
|
+ left join jyx_blame jb on jc.id = jb.jyx_config_id AND jb.is_delete = 0
|
|
|
|
|
+ left join jyx_setting js on jc.id = js.jyx_config_id AND js.is_delete = 0
|
|
|
<where>
|
|
<where>
|
|
|
|
|
+ jc.is_delete = 0
|
|
|
<if test="ids != null and ids != ''">
|
|
<if test="ids != null and ids != ''">
|
|
|
and jc.id in
|
|
and jc.id in
|
|
|
<foreach collection="ids" item="id" open="(" separator="," close=")">
|
|
<foreach collection="ids" item="id" open="(" separator="," close=")">
|
|
@@ -120,8 +122,8 @@
|
|
|
jb.id as blame_id,jb.blame,jb.blame_code,jb.blame_coverage,jb.blame_premium,jb.system_code as blame_system_code,jb.jyx_config_id as blame_jyx_config_id,
|
|
jb.id as blame_id,jb.blame,jb.blame_code,jb.blame_coverage,jb.blame_premium,jb.system_code as blame_system_code,jb.jyx_config_id as blame_jyx_config_id,
|
|
|
js.id as setting_id,js.seats,js.coverage as setting_coverage,js.premium as setting_premium,js.system_code as setting_system_code,js.jyx_config_id as setting_jyx_config_id
|
|
js.id as setting_id,js.seats,js.coverage as setting_coverage,js.premium as setting_premium,js.system_code as setting_system_code,js.jyx_config_id as setting_jyx_config_id
|
|
|
from jyx_config jc
|
|
from jyx_config jc
|
|
|
- left join jyx_blame jb on jc.id = jb.jyx_config_id
|
|
|
|
|
- left join jyx_setting js on jc.id = js.jyx_config_id
|
|
|
|
|
|
|
+ left join jyx_blame jb on jc.id = jb.jyx_config_id AND jb.is_delete = 0
|
|
|
|
|
+ left join jyx_setting js on jc.id = js.jyx_config_id AND js.is_delete = 0
|
|
|
<where>
|
|
<where>
|
|
|
jc.is_delete = 0 and jc.parent_id = 0
|
|
jc.is_delete = 0 and jc.parent_id = 0
|
|
|
<if test="company != null and company != ''">
|
|
<if test="company != null and company != ''">
|