commit for pull
This commit is contained in:
@@ -144,12 +144,12 @@ public class WoPackagingBoxSubstrateController {
|
||||
totalSubNum+= subNum;
|
||||
}
|
||||
for(PowerReportDTO power : powerReportDTOS){
|
||||
Float prop = Float.valueOf(power.getSubNum())/Float.valueOf(totalSubNum);
|
||||
Float prop = (Float.valueOf(power.getSubNum())/Float.valueOf(totalSubNum))*100;
|
||||
DecimalFormat df = new DecimalFormat("0.00");
|
||||
String propS = df.format(prop)+"%";
|
||||
power.setProportion(propS);
|
||||
}
|
||||
diversePower = totalLevelPower - totalCompensatePower;
|
||||
diversePower = totalCompensatePower - totalLevelPower;
|
||||
powerReportVo.setPowerReports(powerReportDTOS);
|
||||
powerReportVo.setDiversePower(diversePower);
|
||||
powerReportVo.setTotalCompensatePower(totalCompensatePower);
|
||||
|
||||
@@ -46,6 +46,11 @@ public class WoPackagingBoxServiceBizImpl extends CrudServiceImpl<WoPackagingBox
|
||||
private WoPackagingBoxSubstrateServiceBiz woPackagingBoxSubstrateServiceBiz;
|
||||
|
||||
|
||||
public static void main(String[] args) {
|
||||
LocalDateTime localDate=LocalDateTime.parse("2023-03-23 09:00:00", DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
|
||||
System.out.println(localDate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public QueryWrapper<WoPackagingBox> getWrapper(Map<String, Object> params){
|
||||
|
||||
@@ -55,6 +60,8 @@ public class WoPackagingBoxServiceBizImpl extends CrudServiceImpl<WoPackagingBox
|
||||
if(params.get("startTime")!=null && params.get("endTime")!=null){
|
||||
LocalDateTime startTime = LocalDateTime.parse(params.get("startTime").toString(),df);
|
||||
LocalDateTime endTime = LocalDateTime.parse(params.get("endTime").toString(),df);
|
||||
|
||||
|
||||
wrapper.between(startTime!=null && endTime!=null, WoPackagingBox.CREATE_TIME, startTime, endTime);
|
||||
}
|
||||
String boxNo = (String) params.get("boxNo");
|
||||
|
||||
Reference in New Issue
Block a user