Commit 9f53c23c by 高晓磊

价格行情趋势图 修改少一天的问题 砂石类型趋势图增加砂石种类的类型字段

parent a865cf29
...@@ -481,7 +481,7 @@ public class PriceAdjustmentDaoImpl extends AbstractBaseDao implements PriceAdju ...@@ -481,7 +481,7 @@ public class PriceAdjustmentDaoImpl extends AbstractBaseDao implements PriceAdju
startValue= forValue.get(dinasTypeId + stationId.toString()); startValue= forValue.get(dinasTypeId + stationId.toString());
}else{ }else{
if(null != adjustmentStartDate){ if(null != adjustmentStartDate){
startDate = adjustmentStartDate.toInstant().atZone(ZoneId.systemDefault()).toLocalDate(); startDate = adjustmentStartDate.toInstant().atZone(ZoneId.systemDefault()).toLocalDate().plusDays(-1);
}else{ }else{
startDate = nowDate; startDate = nowDate;
} }
......
...@@ -174,7 +174,7 @@ public class PriceAdjustmentController { ...@@ -174,7 +174,7 @@ public class PriceAdjustmentController {
} }
KObject priceAdjustment = priceAdjustmentService.validateByStationId(id); KObject priceAdjustment = priceAdjustmentService.validateByStationId(id);
if(null!=priceAdjustment){ if(null!=priceAdjustment){
return ResponseObj.error("有正在审批的数据,不可新建", priceAdjustment); return ResponseObj.error("有正在审批或审批不通过的数据,不可新建", priceAdjustment);
} }
return ResponseObj.success("可以新增"); return ResponseObj.success("可以新增");
...@@ -230,7 +230,6 @@ public class PriceAdjustmentController { ...@@ -230,7 +230,6 @@ public class PriceAdjustmentController {
* 数据相同时候的提示 * 数据相同时候的提示
* @return * @return
*/ */
@GetMapping("getSameMessageById") @GetMapping("getSameMessageById")
public ResponseObj getSameById(@RequestParam("id") UUID id){ public ResponseObj getSameById(@RequestParam("id") UUID id){
KObject byId = priceAdjustmentService.getById(id); KObject byId = priceAdjustmentService.getById(id);
......
...@@ -10,8 +10,16 @@ public class DinasTypeParent { ...@@ -10,8 +10,16 @@ public class DinasTypeParent {
private UUID dinasTypeId; private UUID dinasTypeId;
private String dinasTypeName; private String dinasTypeName;
private Integer typeType;
private List<TimeValueParentEntity> timeValueParentEntityList; private List<TimeValueParentEntity> timeValueParentEntityList;
public Integer getTypeType() {
return typeType;
}
public void setTypeType(Integer typeType) {
this.typeType = typeType;
}
public UUID getDinasTypeId() { public UUID getDinasTypeId() {
return dinasTypeId; return dinasTypeId;
......
...@@ -270,6 +270,8 @@ public class ProductionPlanReportDaoImpl extends AbstractBaseDao implements Prod ...@@ -270,6 +270,8 @@ public class ProductionPlanReportDaoImpl extends AbstractBaseDao implements Prod
add.add(Projections.alias(Projections.groupProperty("dinasType.dinasTypeName"), "dinasTypeName")); add.add(Projections.alias(Projections.groupProperty("dinasType.dinasTypeName"), "dinasTypeName"));
add.add(Projections.alias( add.add(Projections.alias(
Projections.groupProperty("dinasType.id"), "dinasTypeId")); Projections.groupProperty("dinasType.id"), "dinasTypeId"));
add.add(Projections.alias(
Projections.groupProperty("dinasType.type"), "typeType"));
} }
if (!CollectionUtils.isEmpty(ids)) { if (!CollectionUtils.isEmpty(ids)) {
......
...@@ -289,6 +289,7 @@ public class ProductionPlanReportServiceImpl implements ProductionPlanReportServ ...@@ -289,6 +289,7 @@ public class ProductionPlanReportServiceImpl implements ProductionPlanReportServ
UUID productionLineId = UUID.fromString(stringObjectMap.get("productionLineId").toString()); UUID productionLineId = UUID.fromString(stringObjectMap.get("productionLineId").toString());
UUID dinasTypeId = UUID.fromString(stringObjectMap.get("dinasTypeId").toString()); UUID dinasTypeId = UUID.fromString(stringObjectMap.get("dinasTypeId").toString());
String dinasTypeName = stringObjectMap.get("dinasTypeName").toString(); String dinasTypeName = stringObjectMap.get("dinasTypeName").toString();
String typeType = stringObjectMap.get("typeType").toString();
String productionLineName = stringObjectMap.get("productionLineName").toString(); String productionLineName = stringObjectMap.get("productionLineName").toString();
Double sumDinasWeight = Double.parseDouble(stringObjectMap.get("sumDinasWeight").toString()); Double sumDinasWeight = Double.parseDouble(stringObjectMap.get("sumDinasWeight").toString());
...@@ -301,6 +302,7 @@ public class ProductionPlanReportServiceImpl implements ProductionPlanReportServ ...@@ -301,6 +302,7 @@ public class ProductionPlanReportServiceImpl implements ProductionPlanReportServ
DinasTypeParent productionLineEchart = new DinasTypeParent(); DinasTypeParent productionLineEchart = new DinasTypeParent();
productionLineEchart.setDinasTypeId(dinasTypeId); productionLineEchart.setDinasTypeId(dinasTypeId);
productionLineEchart.setDinasTypeName(dinasTypeName); productionLineEchart.setDinasTypeName(dinasTypeName);
productionLineEchart.setTypeType(Integer.parseInt(typeType));
productionLineEchart.setTimeValueParentEntityList(new ArrayList<>()); productionLineEchart.setTimeValueParentEntityList(new ArrayList<>());
dinasTypeMap.put(dinasTypeId,productionLineEchart); dinasTypeMap.put(dinasTypeId,productionLineEchart);
dinasTypeParents.add(productionLineEchart); dinasTypeParents.add(productionLineEchart);
......
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
</column> </column>
</property> </property>
<property name="approvalTime" type="timestamp" not-null="true"> <property name="approvalTime" type="timestamp" not-null="false">
<column name="approval_time"> <column name="approval_time">
<comment>审批时间</comment> <comment>审批时间</comment>
</column> </column>
......
...@@ -8,23 +8,23 @@ ...@@ -8,23 +8,23 @@
<description></description> <description></description>
</header> </header>
<content> <content>
<customQuery id='c3040cd8-5faa-4f83-bdf7-d2251dd884c7'> <customQuery id='d78b6275-39f8-41fa-8d89-cd6502d9493b'>
<kclass>com.xyst.dinas.transport.datamodel.TransportRecord</kclass> <kclass>com.xyst.dinas.transport.datamodel.TransportRecord</kclass>
<authorityItem></authorityItem> <authorityItem></authorityItem>
<innerScene title='全部'> <innerScene title='全部'>
<id>9e4f14fa-0db7-41ba-ba85-9586572bdcd8</id> <id>73c09a52-f23b-469f-a79c-33c51dddd0c3</id>
<javaImplement>com.beecode.inz.common.scene.CommonAllScene</javaImplement> <javaImplement>com.beecode.inz.common.scene.CommonAllScene</javaImplement>
<defaultExecute></defaultExecute> <defaultExecute></defaultExecute>
<hide></hide> <hide></hide>
</innerScene> </innerScene>
<innerScene title='已废弃'> <innerScene title='已废弃'>
<id>fe7934d2-0cd6-4f50-a961-2938b741af6a</id> <id>782edfab-6610-4afe-a76f-0404beb2f88e</id>
<javaImplement>com.beecode.inz.common.scene.DefaultDiscardScene</javaImplement> <javaImplement>com.beecode.inz.common.scene.DefaultDiscardScene</javaImplement>
<defaultExecute></defaultExecute> <defaultExecute></defaultExecute>
<hide></hide> <hide></hide>
</innerScene> </innerScene>
<innerScene title='权限过滤'> <innerScene title='权限过滤'>
<id>6fce9908-901b-491c-9508-5deb75e8aadc</id> <id>f017a930-c663-4d7d-b6f4-a4e81f8c396d</id>
<javaImplement>com.xyst.dinas.biz.scene.XystDinasCommonAllScene</javaImplement> <javaImplement>com.xyst.dinas.biz.scene.XystDinasCommonAllScene</javaImplement>
<defaultExecute>true</defaultExecute> <defaultExecute>true</defaultExecute>
<hide>true</hide> <hide>true</hide>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment