Browse Source

分布式本地缓存

master
陈裕财 3 years ago
parent
commit
6509a021f4
  1. 5
      xm-core/src/main/java/com/xm/core/entity/XmRptConfig.java
  2. 12
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmRptConfigMapper.xml

5
xm-core/src/main/java/com/xm/core/entity/XmRptConfig.java

@ -8,7 +8,7 @@ import java.util.Date;
/** /**
* 组织 com 顶级模块 xm 大模块 core 小模块 <br> * 组织 com 顶级模块 xm 大模块 core 小模块 <br>
* 实体 XmRptConfig所有属性名: <br> * 实体 XmRptConfig所有属性名: <br>
* "bizId","业务编号","id","报告编号","name","报告名称","cuserid","创建人","cusername","创建人姓名","ctime","创建时间","cbranchId","创建机构","cfg","报告配置项";<br>
* "bizId","业务编号","id","报告编号","name","报告名称","cuserid","创建人","cusername","创建人姓名","ctime","创建时间","cbranchId","创建机构","cfg","报告配置项","bizType","业务类型1-产品报告,2-迭代报告,3-测试计划报告,4-项目报告,5-企业报告,6-测试库报告";<br>
* 当前主键(包括多主键):<br> * 当前主键(包括多主键):<br>
* id;<br> * id;<br>
*/ */
@ -42,6 +42,9 @@ public class XmRptConfig implements java.io.Serializable {
@ApiModelProperty(notes="报告配置项",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="报告配置项",allowEmptyValue=true,example="",allowableValues="")
String cfg; String cfg;
@ApiModelProperty(notes="业务类型1-产品报告,2-迭代报告,3-测试计划报告,4-项目报告,5-企业报告,6-测试库报告",allowEmptyValue=true,example="",allowableValues="")
String bizType;
/** /**
*报告编号 *报告编号

12
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmRptConfigMapper.xml

@ -67,7 +67,7 @@
insert into xm_rpt_config( insert into xm_rpt_config(
<include refid="columns"/> <include refid="columns"/>
) values ( ) values (
#{bizId},#{id},#{name},#{cuserid},#{cusername},#{ctime},#{cbranchId},#{cfg}
#{bizId},#{id},#{name},#{cuserid},#{cusername},#{ctime},#{cbranchId},#{cfg},#{bizType}
) )
</insert> </insert>
@ -142,7 +142,7 @@
<!--sql片段 列--> <!--sql片段 列-->
<sql id="columns"> <sql id="columns">
biz_id,id,name,cuserid,cusername,ctime,cbranch_id,cfg
biz_id,id,name,cuserid,cusername,ctime,cbranch_id,cfg,biz_type
</sql> </sql>
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS--> <!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS-->
@ -155,6 +155,7 @@
<if test="ctime != null"> and date_format(res.ctime,'%Y-%m-%d') = date_format(#{ctime},'%Y-%m-%d') </if> <if test="ctime != null"> and date_format(res.ctime,'%Y-%m-%d') = date_format(#{ctime},'%Y-%m-%d') </if>
<if test="cbranchId != null and cbranchId != ''"> and res.cbranch_id = #{cbranchId} </if> <if test="cbranchId != null and cbranchId != ''"> and res.cbranch_id = #{cbranchId} </if>
<if test="cfg != null and cfg != ''"> and res.cfg = #{cfg} </if> <if test="cfg != null and cfg != ''"> and res.cfg = #{cfg} </if>
<if test="bizType != null and bizType != ''"> and res.biz_type = #{bizType} </if>
</sql> </sql>
<!--sql片段 更新字段 --> <!--sql片段 更新字段 -->
<sql id="set"> <sql id="set">
@ -164,7 +165,8 @@
cusername = #{cusername}, cusername = #{cusername},
ctime = #{ctime}, ctime = #{ctime},
cbranch_id = #{cbranchId}, cbranch_id = #{cbranchId},
cfg = #{cfg}
cfg = #{cfg},
biz_type = #{bizType}
</sql> </sql>
<sql id="someFieldSet"> <sql id="someFieldSet">
<if test="bizId != null and bizId != ''"> biz_id = #{bizId}, </if> <if test="bizId != null and bizId != ''"> biz_id = #{bizId}, </if>
@ -174,6 +176,7 @@
<if test="ctime != null"> ctime = #{ctime}, </if> <if test="ctime != null"> ctime = #{ctime}, </if>
<if test="cbranchId != null and cbranchId != ''"> cbranch_id = #{cbranchId}, </if> <if test="cbranchId != null and cbranchId != ''"> cbranch_id = #{cbranchId}, </if>
<if test="cfg != null and cfg != ''"> cfg = #{cfg}, </if> <if test="cfg != null and cfg != ''"> cfg = #{cfg}, </if>
<if test="bizType != null and bizType != ''"> biz_type = #{bizType}, </if>
</sql> </sql>
<!--sql片段 批量更新 --> <!--sql片段 批量更新 -->
<sql id="batchSet"> <sql id="batchSet">
@ -183,6 +186,7 @@
cusername = #{item.cusername}, cusername = #{item.cusername},
ctime = #{item.ctime}, ctime = #{item.ctime},
cbranch_id = #{item.cbranchId}, cbranch_id = #{item.cbranchId},
cfg = #{item.cfg}
cfg = #{item.cfg},
biz_type = #{item.bizType}
</sql> </sql>
</mapper> </mapper>
Loading…
Cancel
Save