|
|
@ -100,7 +100,7 @@ |
|
|
insert into xm_test_case( |
|
|
insert into xm_test_case( |
|
|
<include refid="columns"/> |
|
|
<include refid="columns"/> |
|
|
) values ( |
|
|
) values ( |
|
|
#{id},#{caseName},#{caseRemark},#{testStep},#{expectResult},#{menuId},#{menuName},#{ctime},#{ltime},#{luserid},#{lusername},#{cbranchId},#{moduleId},#{moduleName},#{caseStatus},#{cuserid},#{cusername},#{productId},#{verNum},#{casedbId},#{casedbName},#{funcId},#{funcName},#{funcPnames},#{preRemark},#{caseType},#{cpriority},#{budgetWorkload},#{actWorkload},#{initWorkload},#{retest},#{pbranchId},#{testType} |
|
|
|
|
|
|
|
|
#{id},#{caseName},#{caseRemark},#{testStep},#{expectResult},#{menuId},#{menuName},#{ctime},#{ltime},#{luserid},#{lusername},#{cbranchId},#{moduleId},#{moduleName},#{caseStatus},#{cuserid},#{cusername},#{productId},#{verNum},#{casedbId},#{casedbName},#{funcId},#{funcName},#{funcPnames},#{preRemark},#{caseType},#{cpriority},#{budgetWorkload},#{actWorkload},#{initWorkload},#{retest},#{pbranchId},#{testType},#{autoStep} |
|
|
) |
|
|
) |
|
|
</insert> |
|
|
</insert> |
|
|
|
|
|
|
|
|
@ -175,7 +175,7 @@ |
|
|
|
|
|
|
|
|
<!--sql片段 列--> |
|
|
<!--sql片段 列--> |
|
|
<sql id="columns"> |
|
|
<sql id="columns"> |
|
|
id,case_name,case_remark,test_step,expect_result,menu_id,menu_name,ctime,ltime,luserid,lusername,cbranch_id,module_id,module_name,case_status,cuserid,cusername,product_id,ver_num,casedb_id,casedb_name,func_id,func_name,func_pnames,pre_remark,case_type,cpriority,budget_workload,act_workload,init_workload,retest,pbranch_id,test_type |
|
|
|
|
|
|
|
|
id,case_name,case_remark,test_step,expect_result,menu_id,menu_name,ctime,ltime,luserid,lusername,cbranch_id,module_id,module_name,case_status,cuserid,cusername,product_id,ver_num,casedb_id,casedb_name,func_id,func_name,func_pnames,pre_remark,case_type,cpriority,budget_workload,act_workload,init_workload,retest,pbranch_id,test_type,auto_step |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
|
|
|
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS--> |
|
|
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS--> |
|
|
@ -213,6 +213,7 @@ |
|
|
<if test="retest != null and retest != ''"> and res.retest = #{retest} </if> |
|
|
<if test="retest != null and retest != ''"> and res.retest = #{retest} </if> |
|
|
<if test="pbranchId != null and pbranchId != ''"> and res.pbranch_id = #{pbranchId} </if> |
|
|
<if test="pbranchId != null and pbranchId != ''"> and res.pbranch_id = #{pbranchId} </if> |
|
|
<if test="testType != null and testType != ''"> and res.test_type = #{testType} </if> |
|
|
<if test="testType != null and testType != ''"> and res.test_type = #{testType} </if> |
|
|
|
|
|
<if test="autoStep != null and autoStep != ''"> and res.auto_step = #{autoStep} </if> |
|
|
</sql> |
|
|
</sql> |
|
|
<!--sql片段 更新字段 --> |
|
|
<!--sql片段 更新字段 --> |
|
|
<sql id="set"> |
|
|
<sql id="set"> |
|
|
@ -247,7 +248,8 @@ |
|
|
init_workload = #{initWorkload}, |
|
|
init_workload = #{initWorkload}, |
|
|
retest = #{retest}, |
|
|
retest = #{retest}, |
|
|
pbranch_id = #{pbranchId}, |
|
|
pbranch_id = #{pbranchId}, |
|
|
test_type = #{testType} |
|
|
|
|
|
|
|
|
test_type = #{testType}, |
|
|
|
|
|
auto_step = #{autoStep} |
|
|
</sql> |
|
|
</sql> |
|
|
<sql id="someFieldSet"> |
|
|
<sql id="someFieldSet"> |
|
|
<if test="caseName != null and caseName != ''"> case_name = #{caseName}, </if> |
|
|
<if test="caseName != null and caseName != ''"> case_name = #{caseName}, </if> |
|
|
@ -282,6 +284,7 @@ |
|
|
<if test="retest != null and retest != ''"> retest = #{retest}, </if> |
|
|
<if test="retest != null and retest != ''"> retest = #{retest}, </if> |
|
|
<if test="pbranchId != null and pbranchId != ''"> pbranch_id = #{pbranchId}, </if> |
|
|
<if test="pbranchId != null and pbranchId != ''"> pbranch_id = #{pbranchId}, </if> |
|
|
<if test="testType != null and testType != ''"> test_type = #{testType}, </if> |
|
|
<if test="testType != null and testType != ''"> test_type = #{testType}, </if> |
|
|
|
|
|
<if test="autoStep != null and autoStep != ''"> auto_step = #{autoStep}, </if> |
|
|
</sql> |
|
|
</sql> |
|
|
<!--sql片段 批量更新 --> |
|
|
<!--sql片段 批量更新 --> |
|
|
<sql id="batchSet"> |
|
|
<sql id="batchSet"> |
|
|
@ -316,6 +319,7 @@ |
|
|
init_workload = #{item.initWorkload}, |
|
|
init_workload = #{item.initWorkload}, |
|
|
retest = #{item.retest}, |
|
|
retest = #{item.retest}, |
|
|
pbranch_id = #{item.pbranchId}, |
|
|
pbranch_id = #{item.pbranchId}, |
|
|
test_type = #{item.testType} |
|
|
|
|
|
|
|
|
test_type = #{item.testType}, |
|
|
|
|
|
auto_step = #{item.autoStep} |
|
|
</sql> |
|
|
</sql> |
|
|
</mapper> |
|
|
</mapper> |