优化BUG

dev
xiepeng 2024-05-17 17:57:02 +08:00
parent 56de84e337
commit 8b613dda3a
5 changed files with 13 additions and 4 deletions

View File

@ -31,6 +31,8 @@ import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.io.File; import java.io.File;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*; import java.util.*;
import java.util.stream.Collectors; import java.util.stream.Collectors;

View File

@ -308,13 +308,16 @@ public class InsureController extends BaseController {
List<PageData> drivingLicenseImgs = imgfilesService.listAll(pd);//行驶证照片 List<PageData> drivingLicenseImgs = imgfilesService.listAll(pd);//行驶证照片
map.put("drivingLicenseImgs", drivingLicenseImgs); map.put("drivingLicenseImgs", drivingLicenseImgs);
} }
varList.forEach(operating -> { operatingList.forEach(operating -> {
operating.put("ID", operating.getString("OPERATING_ID")); operating.put("ID", operating.getString("OPERATING_ID"));
}); });
map.put("list", varList); map.put("list", operatingList);
map.put("result", errInfo); map.put("result", errInfo);
return map; return map;
} }
if ("2".equals(pd.getString("TRAFFIC_TYPE"))) { if ("2".equals(pd.getString("TRAFFIC_TYPE"))) {
// 货运挂车 // 货运挂车
List<PageData> freightList = freightTrailerService.trailerList(pd.getString("CORPINFO_ID")); List<PageData> freightList = freightTrailerService.trailerList(pd.getString("CORPINFO_ID"));
@ -338,10 +341,10 @@ public class InsureController extends BaseController {
List<PageData> drivingLicenseImgs = imgfilesService.listAll(pd);//行驶证照片 List<PageData> drivingLicenseImgs = imgfilesService.listAll(pd);//行驶证照片
map.put("drivingLicenseImgs", drivingLicenseImgs); map.put("drivingLicenseImgs", drivingLicenseImgs);
} }
varList.forEach(freight -> { freightList.forEach(freight -> {
freight.put("ID", freight.getString("FREIGHTTRAILER_ID")); freight.put("ID", freight.getString("FREIGHTTRAILER_ID"));
}); });
map.put("list", varList); map.put("list", freightList);
map.put("result", errInfo); map.put("result", errInfo);
return map; return map;
} }

View File

@ -94,5 +94,7 @@ public interface FreightTrailerMapper {
void editInspectTreight(PageData pd); void editInspectTreight(PageData pd);
PageData findTrailerByPlateNumber(PageData pd); PageData findTrailerByPlateNumber(PageData pd);
} }

View File

@ -152,5 +152,6 @@ public class FreightTrailerServiceImpl implements FreightTrailerService {
public PageData findTrailerByPlateNumber(PageData pd) { public PageData findTrailerByPlateNumber(PageData pd) {
return freightTrailerMapper.findTrailerByPlateNumber(pd); return freightTrailerMapper.findTrailerByPlateNumber(pd);
} }
} }

View File

@ -1016,6 +1016,7 @@ public class UsersServiceImpl implements UsersService {
@Override @Override
public void editPractitioner(PageData pd, MultipartFile[] files) throws Exception { public void editPractitioner(PageData pd, MultipartFile[] files) throws Exception {
usersMapper.editPractitioner(pd); usersMapper.editPractitioner(pd);
pd.put("PERSONNEL_TYPE", pd.getString("PERSONNEL_TYPE_NAME"));
userInfoService.editPractitioner(pd); userInfoService.editPractitioner(pd);
List<String> filePaths = new ArrayList<>(); List<String> filePaths = new ArrayList<>();