|
@@ -340,9 +340,9 @@ public class IndexFragment extends LatteDelegate {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private void download(String code) {
|
|
|
+ private void download(String code, String yhbh) {
|
|
|
Map<String, Object> map = new HashMap<>(2);
|
|
|
- map.put("userNum", smbh);
|
|
|
+ map.put("userNum", yhbh);
|
|
|
map.put("code", code);
|
|
|
mPresenter.getResultFour(requireContext(), map);
|
|
|
}
|
|
@@ -444,32 +444,32 @@ public class IndexFragment extends LatteDelegate {
|
|
|
waterMeter.setUserAddr(smBhTaskBean.getUser_addr());
|
|
|
waterMeter.setCheckUser(smBhTaskBean.getInspect_user_name());
|
|
|
waterMeter.setCreateTime(smBhTaskBean.getInspect_time());
|
|
|
- }
|
|
|
- if ("31001".equals(baseResponse.getCode())) {
|
|
|
- DialogUtils.showDialog(requireContext(), "提示", "该水表不存在,是否进行非在册用水登记?", false, (dialog, which) -> {
|
|
|
- long count = DaoUtilsStore.getInstance().getDictEntityDbUtils().queryCountByQueryBuilder(DictEntityDao.Properties.DictCode.eq("noregistered_type"));
|
|
|
- if (count > 0) {
|
|
|
- Intent intent = new Intent(requireActivity(), UnRegisterActivity.class);
|
|
|
- intent.putExtra("idCard", smbh);
|
|
|
- startActivity(intent);
|
|
|
- } else {
|
|
|
- onMessage("基础数据加载失败");
|
|
|
- }
|
|
|
- });
|
|
|
- } else if ("31002".equals(baseResponse.getCode())) {
|
|
|
- DialogUtils.YhInfoDialog(requireContext(), false, waterMeter, smBhTaskBean == null ? "" : smBhTaskBean.getCommitType(), yhbh ->
|
|
|
- DialogUtils.showDialog(requireContext(), "提示", "该水表未下发核查任务,是否添加到您的临时任务中?", false, (dialog, which) ->
|
|
|
- download(baseResponse.getCode())));
|
|
|
- } else if ("31003".equals(baseResponse.getCode())) {
|
|
|
- DialogUtils.YhInfoDialog(requireContext(), false, waterMeter, smBhTaskBean == null ? "" : smBhTaskBean.getCommitType(), yhbh ->
|
|
|
- DialogUtils.showDialog(requireContext(), "提示", "该水表已下发给" + (smBhTaskBean == null ? "" : smBhTaskBean.getInspect_user_name()) + "核查,是否要转派到您的临时任务中?", false, (dialog, which) ->
|
|
|
- download(baseResponse.getCode())));
|
|
|
- } else if ("31004".equals(baseResponse.getCode())) {
|
|
|
- DialogUtils.YhInfoDialog(requireContext(), false, waterMeter, smBhTaskBean == null ? "" : smBhTaskBean.getCommitType(), yhbh ->
|
|
|
- DialogUtils.showDialog(requireContext(), "提示", "该水表" + (smBhTaskBean == null ? "" : smBhTaskBean.getInspect_user_name()) + "已核查完毕,是否要继续核查?", false, (dialog, which) ->
|
|
|
- download(baseResponse.getCode())));
|
|
|
- } else {
|
|
|
- onMessage(baseResponse.getMessage());
|
|
|
+ if ("31001".equals(baseResponse.getCode())) {
|
|
|
+ DialogUtils.showDialog(requireContext(), "提示", "该水表不存在,是否进行非在册用水登记?", false, (dialog, which) -> {
|
|
|
+ long count = DaoUtilsStore.getInstance().getDictEntityDbUtils().queryCountByQueryBuilder(DictEntityDao.Properties.DictCode.eq("noregistered_type"));
|
|
|
+ if (count > 0) {
|
|
|
+ Intent intent = new Intent(requireActivity(), UnRegisterActivity.class);
|
|
|
+ intent.putExtra("idCard", smBhTaskBean.getUser_num());
|
|
|
+ startActivity(intent);
|
|
|
+ } else {
|
|
|
+ onMessage("基础数据加载失败");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else if ("31002".equals(baseResponse.getCode())) {
|
|
|
+ DialogUtils.YhInfoDialog(requireContext(), false, waterMeter, smBhTaskBean == null ? "" : smBhTaskBean.getCommitType(), yhbh ->
|
|
|
+ DialogUtils.showDialog(requireContext(), "提示", "该水表未下发核查任务,是否添加到您的临时任务中?", false, (dialog, which) ->
|
|
|
+ download(baseResponse.getCode(), smBhTaskBean.getUser_num())));
|
|
|
+ } else if ("31003".equals(baseResponse.getCode())) {
|
|
|
+ DialogUtils.YhInfoDialog(requireContext(), false, waterMeter, smBhTaskBean == null ? "" : smBhTaskBean.getCommitType(), yhbh ->
|
|
|
+ DialogUtils.showDialog(requireContext(), "提示", "该水表已下发给" + (smBhTaskBean == null ? "" : smBhTaskBean.getInspect_user_name()) + "核查,是否要转派到您的临时任务中?", false, (dialog, which) ->
|
|
|
+ download(baseResponse.getCode(), smBhTaskBean.getUser_num())));
|
|
|
+ } else if ("31004".equals(baseResponse.getCode())) {
|
|
|
+ DialogUtils.YhInfoDialog(requireContext(), false, waterMeter, smBhTaskBean == null ? "" : smBhTaskBean.getCommitType(), yhbh ->
|
|
|
+ DialogUtils.showDialog(requireContext(), "提示", "该水表" + (smBhTaskBean == null ? "" : smBhTaskBean.getInspect_user_name()) + "已核查完毕,是否要继续核查?", false, (dialog, which) ->
|
|
|
+ download(baseResponse.getCode(), smBhTaskBean.getUser_num())));
|
|
|
+ } else {
|
|
|
+ onMessage(baseResponse.getMessage());
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|