|
@@ -7,6 +7,7 @@
|
|
<if test="companyName != null and companyName != ''">company_name,</if>
|
|
<if test="companyName != null and companyName != ''">company_name,</if>
|
|
<if test="email != null and email != ''">email,</if>
|
|
<if test="email != null and email != ''">email,</if>
|
|
<if test="openStatus != null and openStatus != ''">open_status,</if>
|
|
<if test="openStatus != null and openStatus != ''">open_status,</if>
|
|
|
|
+ <if test="remark != null and remark != ''">remark,</if>
|
|
<if test="creatorId != null and creatorId != ''">creatorid,</if>
|
|
<if test="creatorId != null and creatorId != ''">creatorid,</if>
|
|
<if test="updaterId != null and updaterId != ''">updaterId,</if>
|
|
<if test="updaterId != null and updaterId != ''">updaterId,</if>
|
|
isvalid,
|
|
isvalid,
|
|
@@ -17,6 +18,7 @@
|
|
<if test="companyName != null and companyName != ''">#{companyName},</if>
|
|
<if test="companyName != null and companyName != ''">#{companyName},</if>
|
|
<if test="email != null and email != ''">#{email},</if>
|
|
<if test="email != null and email != ''">#{email},</if>
|
|
<if test="openStatus != null and openStatus != ''">#{openStatus},</if>
|
|
<if test="openStatus != null and openStatus != ''">#{openStatus},</if>
|
|
|
|
+ <if test="remark != null and remark != ''">#{remark},</if>
|
|
<if test="creatorId != null and creatorId != ''">#{creatorId},</if>
|
|
<if test="creatorId != null and creatorId != ''">#{creatorId},</if>
|
|
<if test="updaterId != null and updaterId != ''">#{updaterId},</if>
|
|
<if test="updaterId != null and updaterId != ''">#{updaterId},</if>
|
|
1,
|
|
1,
|
|
@@ -32,6 +34,7 @@
|
|
<if test="companyName != null and companyName != ''">company_name=#{companyName},</if>
|
|
<if test="companyName != null and companyName != ''">company_name=#{companyName},</if>
|
|
<if test="email != null and email != ''">email=#{email},</if>
|
|
<if test="email != null and email != ''">email=#{email},</if>
|
|
<if test="openStatus != null and openStatus != ''">open_status=#{openStatus},</if>
|
|
<if test="openStatus != null and openStatus != ''">open_status=#{openStatus},</if>
|
|
|
|
+ <if test="remark != null and remark != ''">remark=#{remark},</if>
|
|
<if test="updaterId != null and updaterId != ''">updaterid=#{updaterId},</if>
|
|
<if test="updaterId != null and updaterId != ''">updaterid=#{updaterId},</if>
|
|
<if test="updateTime != null">updatetime=#{updateTime},</if>
|
|
<if test="updateTime != null">updatetime=#{updateTime},</if>
|
|
</set>
|
|
</set>
|
|
@@ -47,6 +50,7 @@
|
|
<result column="company_name" property="companyName"/>
|
|
<result column="company_name" property="companyName"/>
|
|
<result column="email" property="email"/>
|
|
<result column="email" property="email"/>
|
|
<result column="open_status" property="openStatus"/>
|
|
<result column="open_status" property="openStatus"/>
|
|
|
|
+ <result column="remark" property="remark"/>
|
|
<result column="creatorid" property="creatorId"/>
|
|
<result column="creatorid" property="creatorId"/>
|
|
<result column="updaterid" property="updaterId"/>
|
|
<result column="updaterid" property="updaterId"/>
|
|
<result column="createtime" property="createTime"/>
|
|
<result column="createtime" property="createTime"/>
|
|
@@ -54,7 +58,7 @@
|
|
<result column="isvalid" property="isvalid"/>
|
|
<result column="isvalid" property="isvalid"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="selectCompanyEmailConfigDo">
|
|
<sql id="selectCompanyEmailConfigDo">
|
|
- select company_id, company_name, email, open_status, creatorid, createtime, updaterid, updatetime,isvalid
|
|
|
|
|
|
+ select company_id, company_name, email, open_status,remark, creatorid, createtime, updaterid, updatetime,isvalid
|
|
from PPW_EMAIL.company_email_config
|
|
from PPW_EMAIL.company_email_config
|
|
</sql>
|
|
</sql>
|
|
<!-- 查询条件 -->
|
|
<!-- 查询条件 -->
|
|
@@ -73,4 +77,19 @@
|
|
<select id="searchEmailByCompanyId" resultType="java.lang.String" parameterType="java.lang.String">
|
|
<select id="searchEmailByCompanyId" resultType="java.lang.String" parameterType="java.lang.String">
|
|
select email from PPW_EMAIL.company_email_config where company_id = #{companyId} and isvalid =1
|
|
select email from PPW_EMAIL.company_email_config where company_id = #{companyId} and isvalid =1
|
|
</select>
|
|
</select>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <resultMap id="BaseVOMap" type="com.simuwang.base.pojo.vo.CompanyEmailConfigVO">
|
|
|
|
+ <id column="id" property="id"/>
|
|
|
|
+ <result column="company_id" property="companyId"/>
|
|
|
|
+ <result column="company_name" property="companyName"/>
|
|
|
|
+ <result column="email" property="email"/>
|
|
|
|
+ <result column="open_status" property="openStatus"/>
|
|
|
|
+ <result column="remark" property="remark"/>
|
|
|
|
+ </resultMap>
|
|
|
|
+ <select id="searchEmailConfig" resultMap="BaseVOMap"
|
|
|
|
+ parameterType="java.lang.String">
|
|
|
|
+ select id,company_id,company_name,email,open_status,remark from PPW_EMAIL.company_email_config where isvalid =1 and company_id=#{companyId}
|
|
|
|
+ </select>
|
|
</mapper>
|
|
</mapper>
|