|
@@ -28,11 +28,19 @@
|
|
|
<result column="data" property="data"/>
|
|
|
<result column="roomIds" property="roomIds"/>
|
|
|
<result column="entryTime" property="entryTime"/>
|
|
|
+
|
|
|
+ <result column="creditCode" property="creditCode"/>
|
|
|
+ <result column="enterpriseCode" property="enterpriseCode"/>
|
|
|
+ <result column="enterpriseLabel" property="enterpriseLabel"/>
|
|
|
+ <result column="enterpriseMilestones" property="enterpriseMilestones"/>
|
|
|
+ <result column="contacts" property="contacts"/>
|
|
|
+ <result column="intellectualPropertyRight" property="intellectualPropertyRight"/>
|
|
|
+ <result column="produce" property="produce"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<insert id="insert" parameterType="com.bosshand.virgo.api.model.Merchant" useGeneratedKeys="true" keyProperty="id">
|
|
|
- INSERT INTO merchant(`address`, `businessScope`, `corporateScale`, `corporatePhilosophy`, `corporateCulture`, `contactInformation`, `fax`, `email`, `organizationId`, `projectId`, `industryType`, `name`, `legalPerson`, `establishDate`, `businessTerm`, `registeredCapital`, `status`, `data`, `roomIds`, `entryTime`)
|
|
|
- VALUES (#{address}, #{businessScope}, #{corporateScale}, #{corporatePhilosophy}, #{corporateCulture}, #{contactInformation}, #{fax}, #{email}, #{organizationId}, #{projectId}, #{industryType}, #{name}, #{legalPerson}, #{establishDate}, #{businessTerm}, #{registeredCapital}, #{status}, #{data}, #{roomIds}, #{entryTime})
|
|
|
+ INSERT INTO merchant(`address`, `businessScope`, `corporateScale`, `corporatePhilosophy`, `corporateCulture`, `contactInformation`, `fax`, `email`, `organizationId`, `projectId`, `industryType`, `name`, `legalPerson`, `establishDate`, `businessTerm`, `registeredCapital`, `status`, `data`, `roomIds`, `entryTime`, `creditCode`, `enterpriseCode`, `enterpriseLabel`, `enterpriseMilestones`, `contacts`, `intellectualPropertyRight`, `produce`)
|
|
|
+ VALUES (#{address}, #{businessScope}, #{corporateScale}, #{corporatePhilosophy}, #{corporateCulture}, #{contactInformation}, #{fax}, #{email}, #{organizationId}, #{projectId}, #{industryType}, #{name}, #{legalPerson}, #{establishDate}, #{businessTerm}, #{registeredCapital}, #{status}, #{data}, #{roomIds}, #{entryTime}, #{creditCode}, #{enterpriseCode}, #{enterpriseLabel}, #{enterpriseMilestones}, #{contacts}, #{intellectualPropertyRight}, #{produce})
|
|
|
</insert>
|
|
|
|
|
|
<delete id="delete">
|
|
@@ -63,6 +71,14 @@
|
|
|
<if test="data!=null">data=#{data},</if>
|
|
|
<if test="roomIds!=null">roomIds=#{roomIds},</if>
|
|
|
<if test="entryTime!=null">entryTime=#{entryTime},</if>
|
|
|
+
|
|
|
+ <if test="creditCode!=null">creditCode=#{creditCode},</if>
|
|
|
+ <if test="enterpriseCode!=null">enterpriseCode=#{enterpriseCode},</if>
|
|
|
+ <if test="enterpriseLabel!=null">enterpriseLabel=#{enterpriseLabel},</if>
|
|
|
+ <if test="enterpriseMilestones!=null">enterpriseMilestones=#{enterpriseMilestones},</if>
|
|
|
+ <if test="contacts!=null">contacts=#{contacts},</if>
|
|
|
+ <if test="intellectualPropertyRight!=null">intellectualPropertyRight=#{intellectualPropertyRight},</if>
|
|
|
+ <if test="produce!=null">produce=#{produce},</if>
|
|
|
</trim>
|
|
|
WHERE id=#{id}
|
|
|
</update>
|
|
@@ -95,6 +111,14 @@
|
|
|
<if test="data!=null">and data=#{data}</if>
|
|
|
<if test="roomIds!=null">and roomIds=#{roomIds}</if>
|
|
|
<if test="entryTime!=null">and entryTime=#{entryTime}</if>
|
|
|
+
|
|
|
+ <if test="creditCode!=null">and creditCode=#{creditCode}</if>
|
|
|
+ <if test="enterpriseCode!=null">and enterpriseCode=#{enterpriseCode}</if>
|
|
|
+ <if test="enterpriseLabel!=null">and enterpriseLabel=#{enterpriseLabel}</if>
|
|
|
+ <if test="enterpriseMilestones!=null">and enterpriseMilestones=#{enterpriseMilestones}</if>
|
|
|
+ <if test="contacts!=null">and contacts=#{contacts}</if>
|
|
|
+ <if test="intellectualPropertyRight!=null">and intellectualPropertyRight=#{intellectualPropertyRight}</if>
|
|
|
+ <if test="produce!=null">and produce=#{produce}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -122,6 +146,14 @@
|
|
|
<if test="data!=null">and data=#{data}</if>
|
|
|
<if test="roomIds!=null">and roomIds=#{roomIds}</if>
|
|
|
<if test="entryTime!=null">and entryTime=#{entryTime}</if>
|
|
|
+
|
|
|
+ <if test="creditCode!=null">and creditCode=#{creditCode}</if>
|
|
|
+ <if test="enterpriseCode!=null">and enterpriseCode=#{enterpriseCode}</if>
|
|
|
+ <if test="enterpriseLabel!=null">and enterpriseLabel=#{enterpriseLabel}</if>
|
|
|
+ <if test="enterpriseMilestones!=null">and enterpriseMilestones=#{enterpriseMilestones}</if>
|
|
|
+ <if test="contacts!=null">and contacts=#{contacts}</if>
|
|
|
+ <if test="intellectualPropertyRight!=null">and intellectualPropertyRight=#{intellectualPropertyRight}</if>
|
|
|
+ <if test="produce!=null">and produce=#{produce}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -149,6 +181,14 @@
|
|
|
<if test="p.data!=null">and data=#{p.data}</if>
|
|
|
<if test="p.roomIds!=null">and roomIds=#{p.roomIds}</if>
|
|
|
<if test="p.entryTime!=null">and entryTime=#{p.entryTime}</if>
|
|
|
+
|
|
|
+ <if test="p.creditCode!=null">and creditCode=#{p.creditCode}</if>
|
|
|
+ <if test="p.enterpriseCode!=null">and enterpriseCode=#{p.enterpriseCode}</if>
|
|
|
+ <if test="p.enterpriseLabel!=null">and enterpriseLabel=#{p.enterpriseLabel}</if>
|
|
|
+ <if test="p.enterpriseMilestones!=null">and enterpriseMilestones=#{p.enterpriseMilestones}</if>
|
|
|
+ <if test="p.contacts!=null">and contacts=#{p.contacts}</if>
|
|
|
+ <if test="p.intellectualPropertyRight!=null">and intellectualPropertyRight=#{p.intellectualPropertyRight}</if>
|
|
|
+ <if test="p.produce!=null">and produce=#{p.produce}</if>
|
|
|
</where>
|
|
|
limit #{currIndex} , #{pageSize}
|
|
|
</select>
|