Browse Source

投标直通车

master
陈裕财 3 years ago
parent
commit
4bd26fd7d9
  1. 51
      xm-core/src/main/java/com/xm/core/entity/XmTestCasedb.java
  2. 72
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTestCasedbMapper.xml

51
xm-core/src/main/java/com/xm/core/entity/XmTestCasedb.java

@ -4,11 +4,12 @@ import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import java.math.BigDecimal;
/**
* 组织 com 顶级模块 xm 大模块 core 小模块 <br>
* 实体 XmTestCasedb所有属性名: <br>
* "id","主键","name","用例库名称","cuserid","创建人","cusername","创建人姓名","ctime","创建日期","cbranchId","归属机构编号","productId","产品编号","productName","产品名称";<br>
* "id","主键","name","用例库名称","cuserid","创建人","cusername","创建人姓名","ctime","创建日期","cbranchId","归属机构编号","productId","产品编号","productName","产品名称","totalCases","总用例数","okCases","通过用例数","errCases","失败用例数","igCases","忽略用例数","blCases","阻塞用例数","bugCnt","bug数目","closedBugs","已关闭bug总数","resolvedBugs","已解决bug总数","activeBugs","激活的bug总数","confirmedBugs","已解决bug总数","testPlans","测试计划数","menus","需求数目","funcs","功能模块数","status","状态0初始,1-启用,2关闭","budgetWorkload","预算工时","actWorkload","实际工时";<br>
* 当前主键(包括多主键):<br>
* id;<br>
*/
@ -42,6 +43,54 @@ public class XmTestCasedb implements java.io.Serializable {
@ApiModelProperty(notes="产品名称",allowEmptyValue=true,example="",allowableValues="")
String productName;
@ApiModelProperty(notes="总用例数",allowEmptyValue=true,example="",allowableValues="")
Integer totalCases;
@ApiModelProperty(notes="通过用例数",allowEmptyValue=true,example="",allowableValues="")
Integer okCases;
@ApiModelProperty(notes="失败用例数",allowEmptyValue=true,example="",allowableValues="")
Integer errCases;
@ApiModelProperty(notes="忽略用例数",allowEmptyValue=true,example="",allowableValues="")
Integer igCases;
@ApiModelProperty(notes="阻塞用例数",allowEmptyValue=true,example="",allowableValues="")
Integer blCases;
@ApiModelProperty(notes="bug数目",allowEmptyValue=true,example="",allowableValues="")
Integer bugCnt;
@ApiModelProperty(notes="已关闭bug总数",allowEmptyValue=true,example="",allowableValues="")
Integer closedBugs;
@ApiModelProperty(notes="已解决bug总数",allowEmptyValue=true,example="",allowableValues="")
Integer resolvedBugs;
@ApiModelProperty(notes="激活的bug总数",allowEmptyValue=true,example="",allowableValues="")
Integer activeBugs;
@ApiModelProperty(notes="已解决bug总数",allowEmptyValue=true,example="",allowableValues="")
Integer confirmedBugs;
@ApiModelProperty(notes="测试计划数",allowEmptyValue=true,example="",allowableValues="")
Integer testPlans;
@ApiModelProperty(notes="需求数目",allowEmptyValue=true,example="",allowableValues="")
Integer menus;
@ApiModelProperty(notes="功能模块数",allowEmptyValue=true,example="",allowableValues="")
Integer funcs;
@ApiModelProperty(notes="状态0初始,1-启用,2关闭",allowEmptyValue=true,example="",allowableValues="")
String status;
@ApiModelProperty(notes="预算工时",allowEmptyValue=true,example="",allowableValues="")
BigDecimal budgetWorkload;
@ApiModelProperty(notes="实际工时",allowEmptyValue=true,example="",allowableValues="")
BigDecimal actWorkload;
/**
*主键

72
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTestCasedbMapper.xml

@ -67,7 +67,7 @@
insert into xm_test_casedb(
<include refid="columns"/>
) values (
#{id},#{name},#{cuserid},#{cusername},#{ctime},#{cbranchId},#{productId},#{productName}
#{id},#{name},#{cuserid},#{cusername},#{ctime},#{cbranchId},#{productId},#{productName},#{totalCases},#{okCases},#{errCases},#{igCases},#{blCases},#{bugCnt},#{closedBugs},#{resolvedBugs},#{activeBugs},#{confirmedBugs},#{testPlans},#{menus},#{funcs},#{status},#{budgetWorkload},#{actWorkload}
)
</insert>
@ -142,7 +142,7 @@
<!--sql片段 列-->
<sql id="columns">
id,name,cuserid,cusername,ctime,cbranch_id,product_id,product_name
id,name,cuserid,cusername,ctime,cbranch_id,product_id,product_name,total_cases,ok_cases,err_cases,ig_cases,bl_cases,bug_cnt,closed_bugs,resolved_bugs,active_bugs,confirmed_bugs,test_plans,menus,funcs,status,budget_workload,act_workload
</sql>
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS-->
@ -155,6 +155,22 @@
<if test="cbranchId != null and cbranchId != ''"> and res.cbranch_id = #{cbranchId} </if>
<if test="productId != null and productId != ''"> and res.product_id = #{productId} </if>
<if test="productName != null and productName != ''"> and res.product_name = #{productName} </if>
<if test="totalCases != null and totalCases != ''"> and res.total_cases = #{totalCases} </if>
<if test="okCases != null and okCases != ''"> and res.ok_cases = #{okCases} </if>
<if test="errCases != null and errCases != ''"> and res.err_cases = #{errCases} </if>
<if test="igCases != null and igCases != ''"> and res.ig_cases = #{igCases} </if>
<if test="blCases != null and blCases != ''"> and res.bl_cases = #{blCases} </if>
<if test="bugCnt != null and bugCnt != ''"> and res.bug_cnt = #{bugCnt} </if>
<if test="closedBugs != null and closedBugs != ''"> and res.closed_bugs = #{closedBugs} </if>
<if test="resolvedBugs != null and resolvedBugs != ''"> and res.resolved_bugs = #{resolvedBugs} </if>
<if test="activeBugs != null and activeBugs != ''"> and res.active_bugs = #{activeBugs} </if>
<if test="confirmedBugs != null and confirmedBugs != ''"> and res.confirmed_bugs = #{confirmedBugs} </if>
<if test="testPlans != null and testPlans != ''"> and res.test_plans = #{testPlans} </if>
<if test="menus != null and menus != ''"> and res.menus = #{menus} </if>
<if test="funcs != null and funcs != ''"> and res.funcs = #{funcs} </if>
<if test="status != null and status != ''"> and res.status = #{status} </if>
<if test="budgetWorkload != null and budgetWorkload != ''"> and res.budget_workload = #{budgetWorkload} </if>
<if test="actWorkload != null and actWorkload != ''"> and res.act_workload = #{actWorkload} </if>
</sql>
<!--sql片段 更新字段 -->
<sql id="set">
@ -164,7 +180,23 @@
ctime = #{ctime},
cbranch_id = #{cbranchId},
product_id = #{productId},
product_name = #{productName}
product_name = #{productName},
total_cases = #{totalCases},
ok_cases = #{okCases},
err_cases = #{errCases},
ig_cases = #{igCases},
bl_cases = #{blCases},
bug_cnt = #{bugCnt},
closed_bugs = #{closedBugs},
resolved_bugs = #{resolvedBugs},
active_bugs = #{activeBugs},
confirmed_bugs = #{confirmedBugs},
test_plans = #{testPlans},
menus = #{menus},
funcs = #{funcs},
status = #{status},
budget_workload = #{budgetWorkload},
act_workload = #{actWorkload}
</sql>
<sql id="someFieldSet">
<if test="name != null and name != ''"> name = #{name}, </if>
@ -174,6 +206,22 @@
<if test="cbranchId != null and cbranchId != ''"> cbranch_id = #{cbranchId}, </if>
<if test="productId != null and productId != ''"> product_id = #{productId}, </if>
<if test="productName != null and productName != ''"> product_name = #{productName}, </if>
<if test="totalCases != null and totalCases != ''"> total_cases = #{totalCases}, </if>
<if test="okCases != null and okCases != ''"> ok_cases = #{okCases}, </if>
<if test="errCases != null and errCases != ''"> err_cases = #{errCases}, </if>
<if test="igCases != null and igCases != ''"> ig_cases = #{igCases}, </if>
<if test="blCases != null and blCases != ''"> bl_cases = #{blCases}, </if>
<if test="bugCnt != null and bugCnt != ''"> bug_cnt = #{bugCnt}, </if>
<if test="closedBugs != null and closedBugs != ''"> closed_bugs = #{closedBugs}, </if>
<if test="resolvedBugs != null and resolvedBugs != ''"> resolved_bugs = #{resolvedBugs}, </if>
<if test="activeBugs != null and activeBugs != ''"> active_bugs = #{activeBugs}, </if>
<if test="confirmedBugs != null and confirmedBugs != ''"> confirmed_bugs = #{confirmedBugs}, </if>
<if test="testPlans != null and testPlans != ''"> test_plans = #{testPlans}, </if>
<if test="menus != null and menus != ''"> menus = #{menus}, </if>
<if test="funcs != null and funcs != ''"> funcs = #{funcs}, </if>
<if test="status != null and status != ''"> status = #{status}, </if>
<if test="budgetWorkload != null and budgetWorkload != ''"> budget_workload = #{budgetWorkload}, </if>
<if test="actWorkload != null and actWorkload != ''"> act_workload = #{actWorkload}, </if>
</sql>
<!--sql片段 批量更新 -->
<sql id="batchSet">
@ -183,6 +231,22 @@
ctime = #{item.ctime},
cbranch_id = #{item.cbranchId},
product_id = #{item.productId},
product_name = #{item.productName}
product_name = #{item.productName},
total_cases = #{item.totalCases},
ok_cases = #{item.okCases},
err_cases = #{item.errCases},
ig_cases = #{item.igCases},
bl_cases = #{item.blCases},
bug_cnt = #{item.bugCnt},
closed_bugs = #{item.closedBugs},
resolved_bugs = #{item.resolvedBugs},
active_bugs = #{item.activeBugs},
confirmed_bugs = #{item.confirmedBugs},
test_plans = #{item.testPlans},
menus = #{item.menus},
funcs = #{item.funcs},
status = #{item.status},
budget_workload = #{item.budgetWorkload},
act_workload = #{item.actWorkload}
</sql>
</mapper>
Loading…
Cancel
Save