| | |
| | | import com.smartor.mapper.UtilsMapper; |
| | | import com.smartor.service.IServiceTelInfoService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public List<Map<String,Object>> getList() { |
| | | List<Map<String,Object>> lists= utilsMapper.getList("select * from service_telinfo where state=0 "); |
| | | public List<Map<String,Object>> getList(String orgid) { |
| | | String where=" where (state=0 OR DATE_ADD(editTime, INTERVAL 10 MINUTE)< NOW()) "; |
| | | if(ObjectUtils.isNotEmpty(orgid)) |
| | | where=where+" and orgid='"+orgid+"'"; |
| | | List<Map<String,Object>> lists= utilsMapper.getList("select * from service_telinfo " +where); |
| | | return lists; |
| | | } |
| | | /** |