Compare commits

..

No commits in common. "571cee49a0d8d69458704154f084c7713b67a38b" and "fa189331b8d6b5a3d57dd1679d8e234335947b5f" have entirely different histories.

6 changed files with 17 additions and 46 deletions

View File

@ -35,7 +35,6 @@ import javax.annotation.Resource;
import javax.validation.groups.Default; import javax.validation.groups.Default;
import java.io.IOException; import java.io.IOException;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
@ -127,8 +126,6 @@ public class ScreenController extends BaseController {
Integer setupTime = 1; Integer setupTime = 1;
//剩余时间 //剩余时间
Integer remainingTime = 0; Integer remainingTime = 0;
if (kilnInfo.getType() != 4) { if (kilnInfo.getType() != 4) {
if (kilnInfo.getType() == 3) { if (kilnInfo.getType() == 3) {
remainingTime = readPlc(nameSpace, "ProgramTimeRemaining").intValue(); remainingTime = readPlc(nameSpace, "ProgramTimeRemaining").intValue();
@ -614,8 +611,6 @@ public class ScreenController extends BaseController {
map.put("rot2", rot2ConsumeList); map.put("rot2", rot2ConsumeList);
map.put("temp", tempConsumeList); map.put("temp", tempConsumeList);
map.put("oilTemp", oilTempConsumeList); map.put("oilTemp", oilTempConsumeList);
map.put("outerZone1Temp",outerZone1TempConsumeList);
map.put("outerZone2Temp",outerZone2TempConsumeList);
return successful(JSONObject.parseObject(JSON.toJSONString(map))); return successful(JSONObject.parseObject(JSON.toJSONString(map)));
} }

View File

@ -1,16 +1,12 @@
package com.mt.wms.empty.service.impl; package com.mt.wms.empty.service.impl;
import com.mt.wms.core.base.BaseService; import com.mt.wms.core.base.BaseService;
import com.mt.wms.core.dal.entity.CurrTask;
import com.mt.wms.core.dal.service.CurrTaskServiceBiz;
import com.mt.wms.core.vo.R; import com.mt.wms.core.vo.R;
import com.mt.wms.empty.mapper.EleMapper; import com.mt.wms.empty.mapper.EleMapper;
import com.mt.wms.empty.service.EleService; import com.mt.wms.empty.service.EleService;
import com.mt.wms.empty.vo.CountEleVo;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List;
/** /**
* @Author: LGH * @Author: LGH
@ -21,26 +17,9 @@ public class EleServiceImpl extends BaseService implements EleService {
@Resource @Resource
EleMapper eleMapper; EleMapper eleMapper;
@Resource
CurrTaskServiceBiz currTaskServiceBiz;
@Override @Override
public R list(Long kilnId) { public R list(Long kilnId) {
List<CountEleVo> list = eleMapper.list(kilnId); return successful(eleMapper.list(kilnId));
for (CountEleVo countEleVo:list
) {
CurrTask currTask = currTaskServiceBiz.getById(countEleVo.getTaskId());
if (currTask.getStoveCode()==null){
if (currTask.getSheetNo()!=null){
currTask.setStoveCode(currTask.getSheetNo());
}else {
currTask.setStoveCode(currTask.getTaskCode());
}
}
countEleVo.setStoveCode(currTask.getStoveCode());
countEleVo.setCreateTime(currTask.getCreateTime());
}
return successful(list);
} }
} }

View File

@ -314,7 +314,7 @@ public class ScheduledTask extends BaseService {
Double oilStirringSpeed2 = readPlc(nameSpaceNote, "OilStirringSpeed2"); Double oilStirringSpeed2 = readPlc(nameSpaceNote, "OilStirringSpeed2");
ParRotSpeedValue parRotSpeedValue = new ParRotSpeedValue(); ParRotSpeedValue parRotSpeedValue = new ParRotSpeedValue();
parRotSpeedValue.setOilStiSpeedAValue(oilStirringSpeed1.floatValue()); parRotSpeedValue.setOilStiSpeedAValue(oilStirringSpeed1.floatValue());
parRotSpeedValue.setOilStiSpeedBValue(oilStirringSpeed2.floatValue()); parRotSpeedValue.setOilStiSpeedAValue(oilStirringSpeed2.floatValue());
parRotSpeedValue.setKilnId(kilnId); parRotSpeedValue.setKilnId(kilnId);
parRotSpeedValue.setTaskId(currTaskId); parRotSpeedValue.setTaskId(currTaskId);
parRotSpeedValue.setCreateTime(LocalDateTime.now()); parRotSpeedValue.setCreateTime(LocalDateTime.now());
@ -555,7 +555,7 @@ public class ScheduledTask extends BaseService {
//A向电压 //A向电压
Double phaseAVoltage = readPlc(nameSpaceNote, "AVoltage"); Double phaseAVoltage = readPlc(nameSpaceNote, "AVoltage");
Double phaseBVoltage = readPlc(nameSpaceNote, "BVoltage"); Double phaseBVoltage = readPlc(nameSpaceNote, "BVoltage");
Double phaseCVoltage = readPlc(nameSpaceNote, "Cvoltage"); Double phaseCVoltage = readPlc(nameSpaceNote, "CVoltage");
//ABC三向电流 //ABC三向电流
Double aCurrent = readPlc(nameSpaceNote, "ACurrent"); Double aCurrent = readPlc(nameSpaceNote, "ACurrent");
Double bCurrent = readPlc(nameSpaceNote, "BCurrent"); Double bCurrent = readPlc(nameSpaceNote, "BCurrent");

View File

@ -35,10 +35,4 @@ public class CountEleVo {
*/ */
@ApiModelProperty(value = "任务id", example = "0.0") @ApiModelProperty(value = "任务id", example = "0.0")
private Long taskId; private Long taskId;
/**
* 炉号
*/
@ApiModelProperty(value = "炉号", example = "0.0")
private String stoveCode;
} }

View File

@ -9,7 +9,6 @@ import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import java.time.LocalDateTime;
import java.util.List; import java.util.List;
/** /**
@ -80,11 +79,6 @@ public class NowCurrTaskDetVo extends BaseVo implements PageVo.ConvertVo {
*/ */
@ApiModelProperty(value = "工艺进度", example = "0") @ApiModelProperty(value = "工艺进度", example = "0")
private Integer completeness; private Integer completeness;
/**
* 开始加工时间
*/
@ApiModelProperty(value = "开始加工时间", example = "0")
private LocalDateTime beginTime;
/** /**
* 标识卡list * 标识卡list

View File

@ -18,17 +18,26 @@
<select id="list" <select id="list"
resultType="com.mt.wms.empty.vo.CountEleVo"> resultType="com.mt.wms.empty.vo.CountEleVo">
select select
tpev .task_id ,
tpev.total_bat,
tpev .create_time ,
tpev .kiln_id
from
t_par_ele_value tpev
inner join(
select
max(total_bat) as total_bat , max(total_bat) as total_bat ,
task_id task_id
from from
t_par_ele_value tpev2 t_par_ele_value tpev2
where
kiln_id = #{kilnId}
group by group by
task_id task_id
order by )tpev3 on
total_bat desc tpev .task_id = tpev3.task_id
limit 11 and tpev .total_bat = tpev3.total_bat
where tpev .kiln_id =#{kilnId}
order by tpev .create_time desc
limit 10
</select> </select>