|
@@ -18,6 +18,9 @@
|
|
|
<result column="organizedDataCenter" property="organizedDataCenter"/>
|
|
|
<result column="organizationCode" property="organizationCode"/>
|
|
|
<result column="facilitator" property="facilitator"/>
|
|
|
+ <result column="creditNo" property="creditNo"/>
|
|
|
+ <result column="legalPerson" property="legalPerson"/>
|
|
|
+ <result column="certificationStatus" property="certificationStatus"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="getById" resultMap="MgrOrganizationResult">
|
|
@@ -93,8 +96,8 @@
|
|
|
</select>
|
|
|
|
|
|
<insert id="insert" parameterType="com.bosshand.virgo.core.model.MgrOrganization" useGeneratedKeys="true" keyProperty="id">
|
|
|
- INSERT into mgr_organization(logo, name, contact, contactTel, address, businessLicense, introduction, registerDate, status, organizationCode, facilitator)
|
|
|
- values(#{logo}, #{name}, #{contact}, #{contactTel}, #{address}, #{businessLicense}, #{introduction}, now(), #{status}, #{organizationCode}, #{facilitator})
|
|
|
+ INSERT into mgr_organization(logo, name, contact, contactTel, address, businessLicense, introduction, registerDate, status, organizationCode, facilitator, creditNo, legalPerson)
|
|
|
+ values(#{logo}, #{name}, #{contact}, #{contactTel}, #{address}, #{businessLicense}, #{introduction}, now(), #{status}, #{organizationCode}, #{facilitator}, #{creditNo}, #{legalPerson})
|
|
|
</insert>
|
|
|
|
|
|
<update id="update" parameterType="com.bosshand.virgo.core.model.MgrOrganization">
|
|
@@ -111,6 +114,8 @@
|
|
|
<if test="registerDate!=null">registerDate=#{registerDate},</if>
|
|
|
<if test="organizedDataCenter!=0">organizedDataCenter=#{organizedDataCenter},</if>
|
|
|
<if test="facilitator!=null">facilitator=#{facilitator},</if>
|
|
|
+ <if test="creditNo!=null">creditNo=#{creditNo},</if>
|
|
|
+ <if test="legalPerson!=null">legalPerson=#{legalPerson},</if>
|
|
|
</trim>
|
|
|
WHERE id=#{id}
|
|
|
</update>
|
|
@@ -118,12 +123,19 @@
|
|
|
<update id="updateStatus" parameterType="com.bosshand.virgo.core.model.MgrOrganization">
|
|
|
UPDATE mgr_organization
|
|
|
<trim prefix="set" suffixOverrides=",">
|
|
|
- <if test="id!=null">id=#{id},</if>
|
|
|
<if test="status == 0 or status == 1">status=#{status},</if>
|
|
|
</trim>
|
|
|
WHERE id=#{id}
|
|
|
</update>
|
|
|
|
|
|
+<update id="updateCertificationStatus" parameterType="com.bosshand.virgo.core.model.MgrOrganization">
|
|
|
+ UPDATE mgr_organization
|
|
|
+ <trim prefix="set" suffixOverrides=",">
|
|
|
+ <if test="certificationStatus == 0 or certificationStatus == 1">certificationStatus=#{certificationStatus},</if>
|
|
|
+ </trim>
|
|
|
+ WHERE id=#{id}
|
|
|
+</update>
|
|
|
+
|
|
|
<update id="setOrganizedDataCenter" parameterType="com.bosshand.virgo.core.model.MgrOrganization">
|
|
|
UPDATE mgr_organization set organizedDataCenter = #{organizedDataCenter} WHERE id=#{id}
|
|
|
</update>
|