BUG优化

dev
xiepeng 2024-04-25 09:52:09 +08:00
parent aab7cc1666
commit d27456c596
3 changed files with 20 additions and 3 deletions

View File

@ -68,6 +68,7 @@ public class TrafficSecurityWaybillRegistrationController extends BaseController
Map<String, Object> map = new HashMap<>();
String errInfo = "success";
PageData pd = this.getPageData();
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID());
List<PageData> commitmentList = trafficDrivingCommitmentService.getDrivingCommitment(pd);
try {
pd = trafficDrivingTypeService.infoCategory(pd); //根据ID读取

View File

@ -199,8 +199,8 @@ public class OperationsController extends BaseController {
}
}
}
pd.put("FOREIGN_KEY", pd.getString("OPERATIONS_ID"));
pd.put("TYPE", 126);
pd.put("FOREIGN_KEY", pd.getString("VEHICLE"));
pd.put("TYPE", 122);
List<PageData> operationsinfoImgs = imgfilesService.listAll(pd);//营运证资料图片
map.put("pd", pd);
map.put("operationsinfoImgs", operationsinfoImgs);
@ -293,7 +293,10 @@ public class OperationsController extends BaseController {
pd.put("FOREIGN_KEY", pd.getString("ID"));
pd.put("TYPE", 121);
List<PageData> drivingLicenseImgs = imgfilesService.listAll(pd);//行驶证照片
pd.put("TYPE", 122);
List<PageData> operatingcertificateImgs = imgfilesService.listAll(pd);//营运证照片
map.put("drivingLicenseImgs", drivingLicenseImgs);
map.put("operatingcertificateImgs", operatingcertificateImgs);
}
map.put("list", resData);
map.put("result", errInfo);

View File

@ -9,6 +9,7 @@ import com.zcloud.util.DateUtil;
import com.zcloud.util.Jurisdiction;
import com.zcloud.util.ObjectExcelView;
import com.zcloud.util.Tools;
import org.apache.commons.lang.StringUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
@ -17,6 +18,8 @@ import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.DoubleStream;
/**
* 使
@ -129,6 +132,16 @@ public class SafetyInvestmentUseController extends BaseController {
pd = this.getPageData();
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业ID
List<PageData> varList = safetyinvestmentuseService.listAll(pd); //列出SafetyInvestmentUse列表
// 计算预提额合计
Double drawingsTotal = varList.stream().
filter(data -> StringUtils.equals(data.getString("USE_TYPE"), "1"))
.mapToDouble(data -> Double.valueOf(data.getString("AMOUNT"))).sum();
varList.forEach(data -> {
});
map.put("drawingsTotal", drawingsTotal);
map.put("varList", varList);
map.put("result", errInfo);
return map;