bug fix: change setter name
This commit is contained in:
parent
c23b188d86
commit
13298c5ca6
|
@ -68,7 +68,7 @@ public class AlarmTaskDO {
|
|||
*/
|
||||
private Integer approvalStatus;
|
||||
|
||||
public void setControlChannel(List<Integer> controlChannel) {
|
||||
public void setControlChannelByList(List<Integer> controlChannel) {
|
||||
this.controlChannel = ObjectUtils.isEmpty(controlChannel) ?
|
||||
SensorControlTunnelName.TUNNEL_ALL.getValue() :
|
||||
controlChannel.stream().mapToInt(Integer::intValue).sum();
|
||||
|
|
|
@ -107,7 +107,7 @@ public class AlarmTaskServiceImpl implements AlarmTaskService {
|
|||
.sender(alarmTaskReqDTO.getSender())
|
||||
.sendTime(alarmTaskReqDTO.getSendTime())
|
||||
.approvalStatus(ApprovalStatusEnum.APPROVAL_SUCCESS.getCode()).build();
|
||||
alarmTaskDO.setControlChannel(ctrlChannel);
|
||||
alarmTaskDO.setControlChannelByList(ctrlChannel);
|
||||
|
||||
//入库
|
||||
alarmTaskMapper.addAlarmTask(alarmTaskDO);
|
||||
|
|
Loading…
Reference in New Issue