|
@@ -35,6 +35,12 @@
|
|
<result property="updateTime" column="update_time"/>
|
|
<result property="updateTime" column="update_time"/>
|
|
<result property="delFlag" column="del_flag"/>
|
|
<result property="delFlag" column="del_flag"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
+ <resultMap id="CompanyMap2" extends="CompanyMap" type="com.jpsoft.picc.modules.base.entity.Company">
|
|
|
|
+ <association property="businessNatureN"
|
|
|
|
+ column="{catalogName=business_nature_catalog,value=business_nature}"
|
|
|
|
+ select="com.jpsoft.picc.modules.sys.dao.DataDictionaryDAO.findNameByCatalogNameAndValue"
|
|
|
|
+ />
|
|
|
|
+ </resultMap>
|
|
<insert id="insert" parameterType="com.jpsoft.picc.modules.base.entity.Company">
|
|
<insert id="insert" parameterType="com.jpsoft.picc.modules.base.entity.Company">
|
|
<!--
|
|
<!--
|
|
<selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
|
<selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
|
@@ -189,9 +195,10 @@
|
|
<select id="list" resultMap="CompanyMap">
|
|
<select id="list" resultMap="CompanyMap">
|
|
select * from base_company
|
|
select * from base_company
|
|
</select>
|
|
</select>
|
|
- <select id="search" parameterType="hashmap" resultMap="CompanyMap">
|
|
|
|
|
|
+ <select id="search" parameterType="hashmap" resultMap="CompanyMap2">
|
|
<![CDATA[
|
|
<![CDATA[
|
|
- select * from base_company where del_flag=0
|
|
|
|
|
|
+ select *,'营业性质' as 'business_nature_catalog'
|
|
|
|
+ from base_company where del_flag=0
|
|
]]>
|
|
]]>
|
|
<if test="searchParams.name != null">
|
|
<if test="searchParams.name != null">
|
|
and name_ like #{searchParams.name}
|
|
and name_ like #{searchParams.name}
|
|
@@ -215,14 +222,12 @@
|
|
and create_time < str_to_date( #{searchParams.endTime},'%Y-%m-%d')
|
|
and create_time < str_to_date( #{searchParams.endTime},'%Y-%m-%d')
|
|
]]>
|
|
]]>
|
|
</if>
|
|
</if>
|
|
-
|
|
|
|
<if test="searchParams.promotionList != null">
|
|
<if test="searchParams.promotionList != null">
|
|
and promoter_ in
|
|
and promoter_ in
|
|
<foreach item="item" collection="searchParams.promotionList" open="(" separator="," close=")">
|
|
<foreach item="item" collection="searchParams.promotionList" open="(" separator="," close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
-
|
|
|
|
<if test="searchParams.hasPromotion != null">
|
|
<if test="searchParams.hasPromotion != null">
|
|
<![CDATA[
|
|
<![CDATA[
|
|
and ifnull(promoter_,'')<>''
|
|
and ifnull(promoter_,'')<>''
|