修改批量提交

This commit is contained in:
md 2021-08-15 19:41:32 +08:00
parent b8a17b8629
commit 4c114b8357
8 changed files with 23 additions and 18 deletions

View File

@ -3,7 +3,7 @@ apply plugin: 'com.android.application'
android {
compileSdkVersion 29
buildToolsVersion '29.0.2'
// ndkVersion '23.0.7123448'
ndkVersion '23.0.7123448'
defaultConfig {
applicationId "com.navinfo.outdoor"

View File

@ -50,7 +50,7 @@ public class CapacityEvaluationAdapter extends RecyclerView.Adapter<CapacityEval
@Override
public void onClick(View v) {
if (onCapacityClick != null) {
onCapacityClick.onClick(position);
onCapacityClick.onClick(capacityList.get(position).getId());
}
}
});

View File

@ -83,6 +83,7 @@ public class CapacityEvaluationFragment extends BaseFragment implements View.OnC
public void onClick(int id) {
Intent capacityEvaWeb = new Intent(getActivity(), FragmentManagement.class);
capacityEvaWeb.putExtra("tag", 14);
capacityEvaWeb.putExtra("id",id+"");
startActivity(capacityEvaWeb);
}
});

View File

@ -90,8 +90,9 @@ public class CapacityMeasurementFragment extends BaseFragment implements View.On
private void initNetWorks(boolean b) {
showLoadingDialog();
String id = getActivity().getIntent().getStringExtra("id");
HttpParams httpParams = new HttpParams();
httpParams.put("id", "11");
httpParams.put("id", id);
OkGoBuilder.getInstance()
.Builder(getActivity())
.url(HttpInterface.EXAM_CONTENT)

View File

@ -98,10 +98,10 @@ public class HasSubmitFragment extends BaseFragment implements View.OnClickListe
public void initRequest() {
initPoiSubMitWork();//poi
initChaningSubMitWork();//充电站
initPoiVideoSubMitWork();//poi录像
initRoadSubMitWork();//道路录像
initChaningSubMitWork();//充电站录像
initOtherSubMitWork();//其他录像
initOtherSubMitWork();//其他
}
private void initOtherSubMitWork() {
@ -148,7 +148,7 @@ public class HasSubmitFragment extends BaseFragment implements View.OnClickListe
HttpParams httpParams = new HttpParams();
httpParams.put("type", "2");
httpParams.put("pageSize", "10");
httpParams.put("pageNum", "2");
httpParams.put("pageNum", hasPage);
OkGoBuilder.getInstance()
.Builder(getActivity())
.url(HttpInterface.GET_COMMIT_LIST)
@ -165,6 +165,7 @@ public class HasSubmitFragment extends BaseFragment implements View.OnClickListe
chargingAuditProcess.setText(hasSubmitBeanBody.getAuditingCount() + "");
chargingAuditThrough.setText(hasSubmitBeanBody.getPassCount() + "");
chargingAuditNotThrough.setText(hasSubmitBeanBody.getNotPassCount() + "");
hasPage++;
}
} else {
Toast.makeText(getActivity(), hasSubmitBean.getMessage() + "", Toast.LENGTH_SHORT).show();

View File

@ -509,7 +509,7 @@ public class PoiFragment extends BaseDrawerFragment implements View.OnClickListe
if (getPhoneBean.getCode() == 200) {
String code = getPhoneBean.getBody().getCode();
Integer telLength = getPhoneBean.getBody().getTelLength();
if (!code.equals(Constant.CODE)){
if (!Constant.CODE.equals(code)){
DialogSettings.style = DialogSettings.STYLE.STYLE_KONGZUE;
MessageDialog.show((AppCompatActivity) getContext(), "提示", "此地区区号为"+code+",请手动修改", "确定","取消").setOkButton(new OnDialogButtonClickListener() {
@Override

View File

@ -250,7 +250,6 @@ public class PoiSaveUtils {
return;
}
ArrayList<File> photoFile = new ArrayList<>();
photoFile.clear();
if (poiEntity.getPhotoInfo() != null) {
if (poiEntity.getPhotoInfo().size() > 0) {
for (int i = 0; i < poiEntity.getPhotoInfo().size(); i++) {
@ -268,11 +267,12 @@ public class PoiSaveUtils {
txtFileList.add(file);
}
videoFileList.addAll(txtFileList);
}
File fileZip = new File(Constant.PICTURE_FOLDER, "files" + ".zip");
ZipUtil.zipFiles(videoFileList, fileZip, null);
if (fileZip!=null){
photoFile.add(fileZip);
}
}
String url = null;
//1 "POI"2 "充电站"3 "POI录像"4 "道路录像"5 "其他"6 "面状任务"
if (poiEntity.getType() == 1) {
@ -289,6 +289,7 @@ public class PoiSaveUtils {
try {
HttpParams httpParams=new HttpParams();
httpParams.put("auditId",bodyId);
Response execute = OkGoBuilder.getInstance()
.Builder(mContext)
.url(url)

View File

@ -254,7 +254,8 @@
android:textSize="12sp" />
<TextView
android:id="@+id/charging_audit_process"
android:id="@+id/road_audit_process"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1"
@ -268,7 +269,7 @@
android:textSize="12sp" />
<TextView
android:id="@+id/charging_audit_through"
android:id="@+id/road_audit_through"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1"
@ -282,7 +283,7 @@
android:textSize="12sp" />
<TextView
android:id="@+id/charging_audit_not_through"
android:id="@+id/road_audit_not_through"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="18"
@ -349,7 +350,7 @@
android:textSize="12sp" />
<TextView
android:id="@+id/road_audit_process"
android:id="@+id/charging_audit_process"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1"
@ -363,7 +364,7 @@
android:textSize="12sp" />
<TextView
android:id="@+id/road_audit_through"
android:id="@+id/charging_audit_through"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1"
@ -377,7 +378,7 @@
android:textSize="12sp" />
<TextView
android:id="@+id/road_audit_not_through"
android:id="@+id/charging_audit_not_through"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="18"