fix
This commit is contained in:
parent
4a882aa4e3
commit
486dd1239f
|
|
@ -43,6 +43,8 @@ public interface HotSearchMapper
|
|||
*/
|
||||
public int updateHotSearch(HotSearch hotSearch);
|
||||
|
||||
public int updateHotSearchByMaId(Long maId);
|
||||
|
||||
/**
|
||||
* 删除热搜设备
|
||||
*
|
||||
|
|
|
|||
|
|
@ -2,21 +2,16 @@ package com.bonus.zlpt.equip.service.impl;
|
|||
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
||||
import com.bonus.zlpt.common.core.domain.equip.dto.InforMationDto;
|
||||
import com.bonus.zlpt.common.core.domain.equip.vo.DevInfoVo;
|
||||
|
||||
import com.bonus.zlpt.common.core.domain.system.SysFile;
|
||||
import com.bonus.zlpt.common.core.utils.DateUtils;
|
||||
import com.bonus.zlpt.common.core.utils.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import com.bonus.zlpt.equip.mapper.HotSearchMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.bonus.zlpt.equip.mapper.DevInfoMapper;
|
||||
import com.bonus.zlpt.common.core.domain.equip.DevInfo;
|
||||
import com.bonus.zlpt.equip.service.IDevInfoService;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
|
|
@ -34,6 +29,8 @@ public class DevInfoServiceImpl implements IDevInfoService
|
|||
|
||||
@Resource
|
||||
private DevInfoMapper devInfoMapper;
|
||||
@Resource
|
||||
private HotSearchMapper hotSearchMapper;
|
||||
|
||||
/**
|
||||
* 查询设备信息
|
||||
|
|
@ -67,6 +64,7 @@ public class DevInfoServiceImpl implements IDevInfoService
|
|||
}
|
||||
Long companyUpNum = devInfoMapper.getCompanyUpNum(devInfoVo.getOwnCo());
|
||||
devInfoVo.setCompanyUpNum(companyUpNum);
|
||||
hotSearchMapper.updateHotSearchByMaId(devInfoVo.getMaId());
|
||||
return devInfoVo;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -50,6 +50,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="updateHotSearchByMaId" parameterType="Long">
|
||||
update ma_hot_search
|
||||
set search_num = search_num + 1
|
||||
where ma_id = #{maId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteHotSearchById" parameterType="Long">
|
||||
delete from ma_hot_search where id = #{id}
|
||||
</delete>
|
||||
|
|
|
|||
Loading…
Reference in New Issue