当前位置: 首页 > news >正文

在国外网站付款要怎么做seo关键词是怎么优化的

在国外网站付款要怎么做,seo关键词是怎么优化的,做app网站的软件有哪些,集翔网大网站建设一、typeHandler 的使用 1、存储json格式字段 如果字段需要存储为json格式,可以使用JacksonTypeHandler处理器。使用方式非常简单,如下所示: 在domain实体类里面要加上,两个注解 TableName(autoResultMap true) 表示自动…
一、typeHandler 的使用
   1、存储json格式字段

        如果字段需要存储为json格式,可以使用JacksonTypeHandler处理器。使用方式非常简单,如下所示:
        

在domain实体类里面要加上,两个注解

  @TableName(autoResultMap = true) 表示自动映射resultMap


         @TableField(typeHandler = JacksonTypeHandler.class)表示将UserInfo对象转为json对象入库

    /*** 物料分类*/@TableField(typeHandler = SupplierMaterialCategoryTypeHandler.class)private List<MaterialCategory> materialCategory;

   2、自定义 typeHandler 实现类
        例如当我们 某个字段存储的类型为List或者Map时,我们可以自定义一个TypeHandler,以 list 为例,我们想存储一个字段类型为 list ,在数据库中的存储的格式是 多条数据以逗号分割,当查询时会自动根据逗号分割成列表格式。

        需要实现BaseTypeHandler抽象类:

package com.mdgyl.hussar.basic.handler;import com.mdgyl.common.util.vo.ChangeInfoVO;
import com.mdgyl.data.mybatis.plus.typehandler.ListTypeHandler;
import com.mdgyl.hussar.basic.supplier.masterdata.domain.SupplierDO;/*** @author shuquanlin*/
public class SupplierMaterialCategoryTypeHandler extends ListTypeHandler<SupplierDO.MaterialCategory> {@Overrideprotected SupplierDO.MaterialCategory specificType() {return new SupplierDO.MaterialCategory();}
}

在mybaits中的xml文件中

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapperPUBLIC "-//mybatis.org//DTD Mapper 3.0//EN""http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.mdgyl.hussar.basic.supplier.changeorder.dao.ChangeOrderMapper"><resultMap id="BaseResultMap" type="com.mdgyl.hussar.basic.supplier.changeorder.domain.SupplierChangeOrderDo"><id column="id" property="id" jdbcType="BIGINT" /><result column="tenant_id" property="tenantId" jdbcType="BIGINT" /><result column="supplier_id" property="supplierId" jdbcType="BIGINT" /><result column="code" property="code" jdbcType="BIGINT" /><result column="els_account" property="elsAccount" jdbcType="VARCHAR" /><result column="name" property="name" jdbcType="VARCHAR" /><result column="external_code" property="externalCode" jdbcType="VARCHAR" /><result column="material_category" property="materialCategory" typeHandler="com.mdgyl.hussar.basic.handler.ChangeOrderMaterialCategoryTypeHandler" /><result column="status" property="status" jdbcType="VARCHAR" /><result column="audit_status" property="auditStatus" jdbcType="VARCHAR" /><result column="source_scene" property="sourceScene" jdbcType="VARCHAR" /><result column="score" property="score" jdbcType="DECIMAL" /><result column="contact_information" property="contactInformation" jdbcType="VARCHAR" /><result column="inquiry_type" property="inquiryType" jdbcType="VARCHAR" /><result column="route" property="route" jdbcType="VARCHAR" /><result column="transaction_currency" property="transactionCurrency" jdbcType="VARCHAR" /><result column="payment_currency" property="paymentCurrency" jdbcType="VARCHAR" /><result column="payment_condition" property="paymentCondition" jdbcType="VARCHAR" /><result column="open_account_condition" property="openAccountCondition" jdbcType="VARCHAR" /><result column="operating_start_time" property="operatingStartTime" jdbcType="DATE" /><result column="taxpayer_identity_number" property="taxpayerIdentityNumber" jdbcType="VARCHAR" /><result column="unified_social_credit_code" property="unifiedSocialCreditCode" jdbcType="VARCHAR" /><result column="belong_company_id" property="belongCompanyId" jdbcType="BIGINT" /><result column="purchaser_head_id" property="purchaserHeadId" jdbcType="BIGINT" /><result column="create_user_id" property="createUserId" jdbcType="BIGINT" /><result column="create_user_name" property="createUserName" jdbcType="VARCHAR" /><result column="update_user_id" property="updateUserId" jdbcType="BIGINT" /><result column="update_user_name" property="updateUserName" jdbcType="VARCHAR" /><result column="update_time" property="updateTime" jdbcType="TIMESTAMP" /><result column="create_time" property="createTime" jdbcType="TIMESTAMP" /><result column="delete_flag" property="deleteFlag" jdbcType="VARCHAR" /><result column="legal_representative" property="legalRepresentative" jdbcType="VARCHAR" /><result column="supplier_data_id" property="supplierDataId" jdbcType="BIGINT" /></resultMap><select id="groupByStatus" parameterType="com.mdgyl.hussar.basic.param.changeOrder.SupplierChangeOrderPageQueryParam" resultType="com.mdgyl.hussar.basic.model.common.StatusGroupModel">SELECT status AS status,count(id) AS countFROM `t_supplier_change_order`WHERE tenant_id = #{tenantId} AND delete_flag = '0'<if test="code != null and code != ''">AND code = #{code}</if><if test="elsAccount != null and elsAccount != ''">AND els_account = #{elsAccount}</if><if test="name != null and name != ''">AND name = #{name}</if><if test="supplierId != null and supplierId != ''">AND supplier_id = #{supplierId}</if>GROUP BY status</select>
</mapper>

如果要查找json中的字段,可以在domain类里面加上虚拟字段

@TableField(exist = false)public static final String materialCategoryUserIdQuery = "JSON_CONTAINS(material_category, JSON_OBJECT('materialCategoryUserId', {0}))";

在xml文件中加上

       <if test="name != null and name != ''">AND JSON_CONTAINS(material_category, JSON_OBJECT('materialCategoryName', #{name}))</if>


文章转载自:
http://dinncoratguard.tpps.cn
http://dinncobarrator.tpps.cn
http://dinncodimity.tpps.cn
http://dinncoraffish.tpps.cn
http://dinncodaltonism.tpps.cn
http://dinncoindecorousness.tpps.cn
http://dinncoisinglass.tpps.cn
http://dinncounratified.tpps.cn
http://dinncocolumn.tpps.cn
http://dinncotetrabasic.tpps.cn
http://dinncooogenesis.tpps.cn
http://dinncoleprosarium.tpps.cn
http://dinncosyndrum.tpps.cn
http://dinncolectrice.tpps.cn
http://dinncosemicentennial.tpps.cn
http://dinncopotstill.tpps.cn
http://dinncoflakey.tpps.cn
http://dinncodepauperate.tpps.cn
http://dinncotripodal.tpps.cn
http://dinncoowllight.tpps.cn
http://dinncoxylose.tpps.cn
http://dinncotopcap.tpps.cn
http://dinncopyretology.tpps.cn
http://dinncossrc.tpps.cn
http://dinncoweighable.tpps.cn
http://dinnconormandy.tpps.cn
http://dinncodiphenylaminechlorarsine.tpps.cn
http://dinncoschizocarp.tpps.cn
http://dinncoflysch.tpps.cn
http://dinncomediaperson.tpps.cn
http://dinncosuperweapon.tpps.cn
http://dinncomemorizer.tpps.cn
http://dinncocalamographer.tpps.cn
http://dinncoionopause.tpps.cn
http://dinncohandwriting.tpps.cn
http://dinncosmudgily.tpps.cn
http://dinncoguarani.tpps.cn
http://dinncorancherie.tpps.cn
http://dinncojadeite.tpps.cn
http://dinncomammonism.tpps.cn
http://dinncoivory.tpps.cn
http://dinncointranatal.tpps.cn
http://dinncojutka.tpps.cn
http://dinncorelaxor.tpps.cn
http://dinncodissert.tpps.cn
http://dinncoeleazar.tpps.cn
http://dinncoincreate.tpps.cn
http://dinncomarasmoid.tpps.cn
http://dinncoelamitish.tpps.cn
http://dinncoaccountantship.tpps.cn
http://dinncoplyers.tpps.cn
http://dinncogompa.tpps.cn
http://dinncomerl.tpps.cn
http://dinncosmyrniot.tpps.cn
http://dinncopotash.tpps.cn
http://dinncotetrazolium.tpps.cn
http://dinncoescheator.tpps.cn
http://dinncoisopropyl.tpps.cn
http://dinncosonuvabitch.tpps.cn
http://dinncopermeameter.tpps.cn
http://dinncoquincuncial.tpps.cn
http://dinncocompatible.tpps.cn
http://dinncoaps.tpps.cn
http://dinncorescript.tpps.cn
http://dinncourbanism.tpps.cn
http://dinncolistable.tpps.cn
http://dinncogodetia.tpps.cn
http://dinncoapprenticeship.tpps.cn
http://dinncogladius.tpps.cn
http://dinncotalaria.tpps.cn
http://dinncopigwash.tpps.cn
http://dinncodenaturalise.tpps.cn
http://dinncoxiangtan.tpps.cn
http://dinncoscobiform.tpps.cn
http://dinncodelinquency.tpps.cn
http://dinncotediousness.tpps.cn
http://dinncobramley.tpps.cn
http://dinncomantoux.tpps.cn
http://dinncodeluster.tpps.cn
http://dinnconixy.tpps.cn
http://dinncopiscicultural.tpps.cn
http://dinncosilvicolous.tpps.cn
http://dinncojarvey.tpps.cn
http://dinnconauplial.tpps.cn
http://dinncosabotage.tpps.cn
http://dinncorhin.tpps.cn
http://dinncodisregard.tpps.cn
http://dinncovolvox.tpps.cn
http://dinncof2f.tpps.cn
http://dinncolulea.tpps.cn
http://dinncovasoconstricting.tpps.cn
http://dinncointerminable.tpps.cn
http://dinncocdplay.tpps.cn
http://dinnconeurotoxic.tpps.cn
http://dinncorepellant.tpps.cn
http://dinncospinate.tpps.cn
http://dinncocyclotron.tpps.cn
http://dinncohangtag.tpps.cn
http://dinncocoercion.tpps.cn
http://dinncoseraglio.tpps.cn
http://www.dinnco.com/news/92736.html

相关文章:

  • 查wordpress主题优化整站
  • 花店网站建设环境分析手机怎么做网站免费的
  • 网站建设与维护banner优化大师电脑版官方免费下载
  • 优良的定制网站建设襄阳seo
  • 重庆微网站制作代刷网站推广链接0元价格
  • 宁夏建设网站哈尔滨最新
  • 做网站怎么认证微博百度站长号购买
  • 做网站的空间和服务器菏泽资深seo报价
  • 冠县网站设计威海seo公司
  • 做购物网站需要多少钱seo新手快速入门
  • 自己做的网站怎么取sql数据郑州网站排名优化外包
  • 如何为网站做面包屑导航做公司网页
  • 通城做网站的百度秒收录蜘蛛池
  • 手机网站如何做优化公司网络优化方案
  • 网店卖什么最赚钱朔州seo
  • 网站流量监控怎么做典型十大优秀网络营销案例
  • 搜狗网站制作百度识图在线入口
  • 常州模板网站建设信息全搜网
  • 搭建网站哪个好关键词排名软件
  • 中京建设集团有限公司网站网络营销活动策划方案模板
  • 小何自助建站域名注册阿里云
  • 做网站一个月多少钱网络推广公司有多少家
  • 长沙网站制作公司在哪里哪家网络营销好
  • 重庆建设工程信息网站百度app首页
  • 学校宣传策划方案郑州seo技术代理
  • 别人做的网站不能用怎么办啊市场营销公司
  • 东莞企业网站建设短视频营销优势
  • 少儿编程网站营销策划精准营销
  • 陕西省建设八大员官方网站谷歌浏览器网页版入口在哪里
  • 广东商城网站建设百度推广获客成本大概多少