| | |
| | | <result property="linkType" column="link_type"/> |
| | | <result property="linkUrl" column="link_url"/> |
| | | <result property="companyId" column="company_id" /> |
| | | <result property="pageId" column="page_id" /> |
| | | </resultMap> |
| | | |
| | | |
| | |
| | | <result property="remarks" column="remarks" /> |
| | | <result property="linkType" column="link_type"/> |
| | | <result property="linkUrl" column="link_url"/> |
| | | <result property="pageId" column="page_id" /> |
| | | <result property="companyId" column="company_id" /> |
| | | </resultMap> |
| | | |
| | |
| | | remarks, |
| | | link_type, |
| | | link_url, |
| | | page_id, |
| | | company_id |
| | | </sql> |
| | | |
| | |
| | | #{item.remarks}, |
| | | #{item.linkType}, |
| | | #{item.linkUrl}, |
| | | #{item.pageId}, |
| | | #{item.companyId} |
| | | </sql> |
| | | |
| | |
| | | </if> |
| | | <if test="(record.remarks!=null and record.remarks!='') or (record.remarks!='' and record.remarks==0) "> |
| | | and remarks = #{record.remarks} |
| | | </if> |
| | | <if test="(record.pageId!=null and record.pageId!='') or (record.pageId!='' and record.pageId==0) "> |
| | | and page_id = #{record.pageId} |
| | | </if> |
| | | <if test="record.companyId != null and record.companyId !='' "> |
| | | and company_id = #{record.companyId} |
| | |
| | | link_type = #{linkType}, |
| | | </if> |
| | | |
| | | <if test="_parameter.containsKey('pageId')"> |
| | | page_id = #{pageId}, |
| | | </if> |
| | | |
| | | |
| | | </set> |
| | | WHERE id=#{id} |
| | |
| | | company_id = #{record.companyId} |
| | | </if> |
| | | |
| | | <if test="record.pageId != null and record.pageId !='' "> |
| | | page_id = #{record.pageId} |
| | | </if> |
| | | |
| | | </set> |
| | | WHERE id=#{record.id} |
| | | </update> |
| | |
| | | <include refid="where_sql" ></include> |
| | | </where> |
| | | </delete> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 分页查询 --> |
| | | <select id="selectInPage" resultType="com.matrix.system.shopXcx.bean.ShopAdvertis"> |
| | |
| | | ad.type_id typeId, |
| | | ad.sort, |
| | | ad.remarks, |
| | | ad.page_id, |
| | | IFNULL(adType.adt_name ,'无分类') adtName |
| | | from shop_advertis ad |
| | | left join shop_advertis_type adType |