Browse Source

团队重构

master
陈裕财 3 years ago
parent
commit
c0113999c0
  1. 4
      xm-core/src/main/java/com/xm/core/entity/XmMenu.java
  2. 12
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMenuMapper.xml

4
xm-core/src/main/java/com/xm/core/entity/XmMenu.java

@ -8,7 +8,7 @@ import java.util.Date;
/** /**
* 组织 com 顶级模块 xm 大模块 core 小模块 <br> * 组织 com 顶级模块 xm 大模块 core 小模块 <br>
* 实体 XmMenu所有属性名: <br> * 实体 XmMenu所有属性名: <br>
* "startTime","开始时间","menuId","功能编号","menuName","功能名称","pmenuId","上级功能","productId","归属产品编号","remark","备注","status","状态0初始1待评审2待设计3待开发4待sit测试5待uat测试6已测试待上线7已上线8已下线9已删除","online","是否已上线","demandUrl","需求链接","codeUrl","代码链接","designUrl","设计链接","docUrl","文档链接","helpUrl","帮助文档链接","operDocUrl","操作手册链接","seqNo","排序序号","mmUserid","故事管理员编号","mmUsername","故事管理员姓名","ctime","创建时间","ntype","节点类型0-叶子节点,1非叶子节点","sinceVersion","开始版本","childrenCnt","儿子节点个数","ltime","更新时间","tagIds","标签编号,逗号分割","tagNames","标签名称,逗号分割","pidPaths","父级id逗号分割,最后一个为本节点节点编号,以,号结尾","lvl","层级0-顶级,1-一级,2-二级,3-三级,4-四级。总共5级","isTpl","是否为模板","phaseId","计划编号","iterationId","迭代编号","source","需求来源","proposerId","提出人编号","proposerName","提出人姓名","dlvl","需求层次0-基础需求,1-增值需求,2-扩展需求","dtype","需求类型;0-新增功能;1-功能改进;2-bug修复;3-用户体验;4-UI优化;5-内部需求;6-删除需求;7-接口需求;","priority","优先级;0-紧急重要;1-紧急不重要;2-不紧急重要;3-不紧急不重要","dclass","需求分类1-史诗,2-特性,3-用户故事,4-任务,5-缺陷","iterationName","迭代名称","endTime","结束时间","funcId","功能菜单编号-故事才有","funcName","功能菜单名称-故事才有","comments","评论数","ups","点赞数","reads","阅读数";<br>
* "startTime","开始时间","menuId","功能编号","menuName","功能名称","pmenuId","上级功能","productId","归属产品编号","remark","备注","status","状态0初始1待评审2待设计3待开发4待sit测试5待uat测试6已测试待上线7已上线8已下线9已删除","online","是否已上线","demandUrl","需求链接","codeUrl","代码链接","designUrl","设计链接","docUrl","文档链接","helpUrl","帮助文档链接","operDocUrl","操作手册链接","seqNo","排序序号","mmUserid","故事管理员编号","mmUsername","故事管理员姓名","ctime","创建时间","ntype","节点类型0-叶子节点,1非叶子节点","sinceVersion","开始版本","childrenCnt","儿子节点个数","ltime","更新时间","tagIds","标签编号,逗号分割","tagNames","标签名称,逗号分割","pidPaths","父级id逗号分割,最后一个为本节点节点编号,以,号结尾","lvl","层级0-顶级,1-一级,2-二级,3-三级,4-四级。总共5级","isTpl","是否为模板","phaseId","计划编号","iterationId","迭代编号","source","需求来源","proposerId","提出人编号","proposerName","提出人姓名","dlvl","需求层次0-基础需求,1-增值需求,2-扩展需求","dtype","需求类型;0-新增功能;1-功能改进;2-bug修复;3-用户体验;4-UI优化;5-内部需求;6-删除需求;7-接口需求;","priority","优先级;0-紧急重要;1-紧急不重要;2-不紧急重要;3-不紧急不重要","dclass","需求分类1-史诗,2-特性,3-用户故事,4-任务,5-缺陷","iterationName","迭代名称","endTime","结束时间","funcId","功能菜单编号-故事才有","funcName","功能菜单名称-故事才有","comments","评论数","ups","点赞数","readNum","阅读数";<br>
* 当前主键(包括多主键):<br> * 当前主键(包括多主键):<br>
* menu_id;<br> * menu_id;<br>
*/ */
@ -146,7 +146,7 @@ public class XmMenu implements java.io.Serializable {
Integer ups; Integer ups;
@ApiModelProperty(notes="阅读数",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="阅读数",allowEmptyValue=true,example="",allowableValues="")
Integer reads;
Integer readNum;
/** /**
*功能编号 *功能编号

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

@ -328,7 +328,7 @@
insert into xm_menu( insert into xm_menu(
<include refid="columns"/> <include refid="columns"/>
) values ( ) values (
#{startTime},#{menuId},#{menuName},#{pmenuId},#{productId},#{remark},#{status},#{online},#{demandUrl},#{codeUrl},#{designUrl},#{docUrl},#{helpUrl},#{operDocUrl},#{seqNo},#{mmUserid},#{mmUsername},#{ctime},#{ntype},#{sinceVersion},#{childrenCnt},#{ltime},#{tagIds},#{tagNames},#{pidPaths},#{lvl},#{isTpl},#{phaseId},#{iterationId},#{source},#{proposerId},#{proposerName},#{dlvl},#{dtype},#{priority},#{dclass},#{iterationName},#{endTime},#{funcId},#{funcName},#{comments},#{ups},#{reads}
#{startTime},#{menuId},#{menuName},#{pmenuId},#{productId},#{remark},#{status},#{online},#{demandUrl},#{codeUrl},#{designUrl},#{docUrl},#{helpUrl},#{operDocUrl},#{seqNo},#{mmUserid},#{mmUsername},#{ctime},#{ntype},#{sinceVersion},#{childrenCnt},#{ltime},#{tagIds},#{tagNames},#{pidPaths},#{lvl},#{isTpl},#{phaseId},#{iterationId},#{source},#{proposerId},#{proposerName},#{dlvl},#{dtype},#{priority},#{dclass},#{iterationName},#{endTime},#{funcId},#{funcName},#{comments},#{ups},#{readNum}
) )
</insert> </insert>
@ -403,7 +403,7 @@
<!--sql片段 列--> <!--sql片段 列-->
<sql id="columns"> <sql id="columns">
start_time,menu_id,menu_name,pmenu_id,product_id,remark,status,online,demand_url,code_url,design_url,doc_url,help_url,oper_doc_url,seq_no,mm_userid,mm_username,ctime,ntype,since_version,children_cnt,ltime,tag_ids,tag_names,pid_paths,lvl,is_tpl,phase_id,iteration_id,source,proposer_id,proposer_name,dlvl,dtype,priority,dclass,iteration_name,end_time,func_id,func_name,comments,ups,reads
start_time,menu_id,menu_name,pmenu_id,product_id,remark,status,online,demand_url,code_url,design_url,doc_url,help_url,oper_doc_url,seq_no,mm_userid,mm_username,ctime,ntype,since_version,children_cnt,ltime,tag_ids,tag_names,pid_paths,lvl,is_tpl,phase_id,iteration_id,source,proposer_id,proposer_name,dlvl,dtype,priority,dclass,iteration_name,end_time,func_id,func_name,comments,ups,read_num
</sql> </sql>
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS--> <!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS-->
@ -450,7 +450,7 @@
<if test="funcName != null and funcName != ''"> and res.func_name = #{funcName} </if> <if test="funcName != null and funcName != ''"> and res.func_name = #{funcName} </if>
<if test="comments != null and comments != ''"> and res.comments = #{comments} </if> <if test="comments != null and comments != ''"> and res.comments = #{comments} </if>
<if test="ups != null and ups != ''"> and res.ups = #{ups} </if> <if test="ups != null and ups != ''"> and res.ups = #{ups} </if>
<if test="reads != null and reads != ''"> and res.reads = #{reads} </if>
<if test="readNum != null and readNum != ''"> and res.read_num = #{readNum} </if>
</sql> </sql>
<!--sql片段 更新字段 --> <!--sql片段 更新字段 -->
<sql id="set"> <sql id="set">
@ -495,7 +495,7 @@
func_name = #{funcName}, func_name = #{funcName},
comments = #{comments}, comments = #{comments},
ups = #{ups}, ups = #{ups},
reads = #{reads}
read_num = #{readNum}
</sql> </sql>
<sql id="someFieldSet"> <sql id="someFieldSet">
<if test="startTime != null"> start_time = #{startTime}, </if> <if test="startTime != null"> start_time = #{startTime}, </if>
@ -539,7 +539,7 @@
<if test="funcName != null and funcName != ''"> func_name = #{funcName}, </if> <if test="funcName != null and funcName != ''"> func_name = #{funcName}, </if>
<if test="comments != null and comments != ''"> comments = #{comments}, </if> <if test="comments != null and comments != ''"> comments = #{comments}, </if>
<if test="ups != null and ups != ''"> ups = #{ups}, </if> <if test="ups != null and ups != ''"> ups = #{ups}, </if>
<if test="reads != null and reads != ''"> reads = #{reads}, </if>
<if test="readNum != null and readNum != ''"> read_num = #{readNum}, </if>
</sql> </sql>
<!--sql片段 批量更新 --> <!--sql片段 批量更新 -->
<sql id="batchSet"> <sql id="batchSet">
@ -584,6 +584,6 @@
func_name = #{item.funcName}, func_name = #{item.funcName},
comments = #{item.comments}, comments = #{item.comments},
ups = #{item.ups}, ups = #{item.ups},
reads = #{item.reads}
read_num = #{item.readNum}
</sql> </sql>
</mapper> </mapper>
Loading…
Cancel
Save