|
|
@ -826,7 +826,15 @@ public class BusVehicleApplyService extends MybatisBaseService<BusVehicleApplyMa |
|
|
|
return rb.success().setData(vo); |
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean abandonApply(String sid) { |
|
|
|
return baseMapper.abandonApply(sid); |
|
|
|
public ResultBean abandonApply(String[] sids) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
//查询该sid中是否有流程不是已办结的
|
|
|
|
int count = baseMapper.selectByNodeState(StringUtils.join(sids, ",")); |
|
|
|
if (count > 0) { |
|
|
|
return rb.setMsg("作废的数据中包含流程未完结的数据,不允许作废"); |
|
|
|
} |
|
|
|
List<String> sidsList = Arrays.asList(sids); |
|
|
|
int i = baseMapper.abandonApply(sidsList); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
} |