Commit 039b15c9 by xuyamei

解决报错

parent 833e67af
......@@ -134,6 +134,8 @@ public class TestSettleSubmitOrUpdateOrDelete extends BaseTestImpl {
@Test(priority = 1,dataProvider = "dataProvider")
public void testUpdateSettleResult(double num,int type) throws InterruptedException {
if (id.equals(""))
return;
if (settleDetailId.equals("")){
JSONArray fetchSettleResult = salaryTools.fetchSettleResult(id);
for (int i = 0; i < fetchSettleResult.size(); i++){
......@@ -172,6 +174,8 @@ public class TestSettleSubmitOrUpdateOrDelete extends BaseTestImpl {
@Test(description = "确认结算",priority = 2)
public void testSettleConfirm() throws InterruptedException {
if (id.equals(""))
return;
// 确认结算前查询发放工资的收支明细有多少条
JSONObject revenue = revenueAndExpenditureTools.pageNormalIncomeExpense(payWay,"EXPENSE","SALARY",xmAppApi.getLoginInfo().getStudioId());
int beforeTotal = Integer.parseInt(revenue.getJSONObject("result").getString("total"));
......@@ -191,6 +195,8 @@ public class TestSettleSubmitOrUpdateOrDelete extends BaseTestImpl {
@Test(description = "删除结算单",priority = 3)
public void testSettleDelete() throws InterruptedException {
if (id.equals(""))
return;
// 确认结算前查询发放工资的收支明细有多少条
JSONObject revenue = revenueAndExpenditureTools.pageNormalIncomeExpense(payWay,"EXPENSE","SALARY",xmAppApi.getLoginInfo().getStudioId());
int beforeTotal = Integer.parseInt(revenue.getJSONObject("result").getString("total"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment