修改批量提交

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 { android {
compileSdkVersion 29 compileSdkVersion 29
buildToolsVersion '29.0.2' buildToolsVersion '29.0.2'
// ndkVersion '23.0.7123448' ndkVersion '23.0.7123448'
defaultConfig { defaultConfig {
applicationId "com.navinfo.outdoor" applicationId "com.navinfo.outdoor"

View File

@ -50,7 +50,7 @@ public class CapacityEvaluationAdapter extends RecyclerView.Adapter<CapacityEval
@Override @Override
public void onClick(View v) { public void onClick(View v) {
if (onCapacityClick != null) { 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) { public void onClick(int id) {
Intent capacityEvaWeb = new Intent(getActivity(), FragmentManagement.class); Intent capacityEvaWeb = new Intent(getActivity(), FragmentManagement.class);
capacityEvaWeb.putExtra("tag", 14); capacityEvaWeb.putExtra("tag", 14);
capacityEvaWeb.putExtra("id",id+"");
startActivity(capacityEvaWeb); startActivity(capacityEvaWeb);
} }
}); });

View File

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

View File

@ -98,10 +98,10 @@ public class HasSubmitFragment extends BaseFragment implements View.OnClickListe
public void initRequest() { public void initRequest() {
initPoiSubMitWork();//poi initPoiSubMitWork();//poi
initChaningSubMitWork();//充电站
initPoiVideoSubMitWork();//poi录像 initPoiVideoSubMitWork();//poi录像
initRoadSubMitWork();//道路录像 initRoadSubMitWork();//道路录像
initChaningSubMitWork();//充电站录像 initOtherSubMitWork();//其他
initOtherSubMitWork();//其他录像
} }
private void initOtherSubMitWork() { private void initOtherSubMitWork() {
@ -148,7 +148,7 @@ public class HasSubmitFragment extends BaseFragment implements View.OnClickListe
HttpParams httpParams = new HttpParams(); HttpParams httpParams = new HttpParams();
httpParams.put("type", "2"); httpParams.put("type", "2");
httpParams.put("pageSize", "10"); httpParams.put("pageSize", "10");
httpParams.put("pageNum", "2"); httpParams.put("pageNum", hasPage);
OkGoBuilder.getInstance() OkGoBuilder.getInstance()
.Builder(getActivity()) .Builder(getActivity())
.url(HttpInterface.GET_COMMIT_LIST) .url(HttpInterface.GET_COMMIT_LIST)
@ -165,6 +165,7 @@ public class HasSubmitFragment extends BaseFragment implements View.OnClickListe
chargingAuditProcess.setText(hasSubmitBeanBody.getAuditingCount() + ""); chargingAuditProcess.setText(hasSubmitBeanBody.getAuditingCount() + "");
chargingAuditThrough.setText(hasSubmitBeanBody.getPassCount() + ""); chargingAuditThrough.setText(hasSubmitBeanBody.getPassCount() + "");
chargingAuditNotThrough.setText(hasSubmitBeanBody.getNotPassCount() + ""); chargingAuditNotThrough.setText(hasSubmitBeanBody.getNotPassCount() + "");
hasPage++;
} }
} else { } else {
Toast.makeText(getActivity(), hasSubmitBean.getMessage() + "", Toast.LENGTH_SHORT).show(); 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) { if (getPhoneBean.getCode() == 200) {
String code = getPhoneBean.getBody().getCode(); String code = getPhoneBean.getBody().getCode();
Integer telLength = getPhoneBean.getBody().getTelLength(); Integer telLength = getPhoneBean.getBody().getTelLength();
if (!code.equals(Constant.CODE)){ if (!Constant.CODE.equals(code)){
DialogSettings.style = DialogSettings.STYLE.STYLE_KONGZUE; DialogSettings.style = DialogSettings.STYLE.STYLE_KONGZUE;
MessageDialog.show((AppCompatActivity) getContext(), "提示", "此地区区号为"+code+",请手动修改", "确定","取消").setOkButton(new OnDialogButtonClickListener() { MessageDialog.show((AppCompatActivity) getContext(), "提示", "此地区区号为"+code+",请手动修改", "确定","取消").setOkButton(new OnDialogButtonClickListener() {
@Override @Override

View File

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

View File

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