|
|
@ -89,7 +89,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} |
|
|
|
|
|
|
|
|
#{id},#{caseName},#{caseRemark},#{testStep},#{expectResult},#{menuId},#{menuName},#{ctime},#{ltime},#{luserid},#{lusername},#{cbranchId},#{moduleId},#{moduleName},#{caseStatus},#{cuserid},#{cusername},#{productId},#{verNum},#{casedbId},#{casedbName},#{funcId},#{funcName},#{funcPnames} |
|
|
) |
|
|
) |
|
|
</insert> |
|
|
</insert> |
|
|
|
|
|
|
|
|
@ -164,7 +164,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 |
|
|
|
|
|
|
|
|
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 |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
|
|
|
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS--> |
|
|
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS--> |
|
|
@ -190,6 +190,9 @@ |
|
|
<if test="verNum != null and verNum != ''"> and res.ver_num = #{verNum} </if> |
|
|
<if test="verNum != null and verNum != ''"> and res.ver_num = #{verNum} </if> |
|
|
<if test="casedbId != null and casedbId != ''"> and res.casedb_id = #{casedbId} </if> |
|
|
<if test="casedbId != null and casedbId != ''"> and res.casedb_id = #{casedbId} </if> |
|
|
<if test="casedbName != null and casedbName != ''"> and res.casedb_name = #{casedbName} </if> |
|
|
<if test="casedbName != null and casedbName != ''"> and res.casedb_name = #{casedbName} </if> |
|
|
|
|
|
<if test="funcId != null and funcId != ''"> and res.func_id = #{funcId} </if> |
|
|
|
|
|
<if test="funcName != null and funcName != ''"> and res.func_name = #{funcName} </if> |
|
|
|
|
|
<if test="funcPnames != null and funcPnames != ''"> and res.func_pnames = #{funcPnames} </if> |
|
|
</sql> |
|
|
</sql> |
|
|
<!--sql片段 更新字段 --> |
|
|
<!--sql片段 更新字段 --> |
|
|
<sql id="set"> |
|
|
<sql id="set"> |
|
|
@ -212,7 +215,10 @@ |
|
|
product_id = #{productId}, |
|
|
product_id = #{productId}, |
|
|
ver_num = #{verNum}, |
|
|
ver_num = #{verNum}, |
|
|
casedb_id = #{casedbId}, |
|
|
casedb_id = #{casedbId}, |
|
|
casedb_name = #{casedbName} |
|
|
|
|
|
|
|
|
casedb_name = #{casedbName}, |
|
|
|
|
|
func_id = #{funcId}, |
|
|
|
|
|
func_name = #{funcName}, |
|
|
|
|
|
func_pnames = #{funcPnames} |
|
|
</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> |
|
|
@ -235,6 +241,9 @@ |
|
|
<if test="verNum != null and verNum != ''"> ver_num = #{verNum}, </if> |
|
|
<if test="verNum != null and verNum != ''"> ver_num = #{verNum}, </if> |
|
|
<if test="casedbId != null and casedbId != ''"> casedb_id = #{casedbId}, </if> |
|
|
<if test="casedbId != null and casedbId != ''"> casedb_id = #{casedbId}, </if> |
|
|
<if test="casedbName != null and casedbName != ''"> casedb_name = #{casedbName}, </if> |
|
|
<if test="casedbName != null and casedbName != ''"> casedb_name = #{casedbName}, </if> |
|
|
|
|
|
<if test="funcId != null and funcId != ''"> func_id = #{funcId}, </if> |
|
|
|
|
|
<if test="funcName != null and funcName != ''"> func_name = #{funcName}, </if> |
|
|
|
|
|
<if test="funcPnames != null and funcPnames != ''"> func_pnames = #{funcPnames}, </if> |
|
|
</sql> |
|
|
</sql> |
|
|
<!--sql片段 批量更新 --> |
|
|
<!--sql片段 批量更新 --> |
|
|
<sql id="batchSet"> |
|
|
<sql id="batchSet"> |
|
|
@ -257,6 +266,9 @@ |
|
|
product_id = #{item.productId}, |
|
|
product_id = #{item.productId}, |
|
|
ver_num = #{item.verNum}, |
|
|
ver_num = #{item.verNum}, |
|
|
casedb_id = #{item.casedbId}, |
|
|
casedb_id = #{item.casedbId}, |
|
|
casedb_name = #{item.casedbName} |
|
|
|
|
|
|
|
|
casedb_name = #{item.casedbName}, |
|
|
|
|
|
func_id = #{item.funcId}, |
|
|
|
|
|
func_name = #{item.funcName}, |
|
|
|
|
|
func_pnames = #{item.funcPnames} |
|
|
</sql> |
|
|
</sql> |
|
|
</mapper> |
|
|
</mapper> |