| | |
| | | |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.hibernate.Session; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | |
| | | @Component |
| | | public class SecurityService extends HibernateDao { |
| | | |
| | | @Autowired |
| | | @Resource |
| | | private CoreSecCameraService coreSecCameraService; |
| | | |
| | | public List<SecCamera> listCamera(Map<String, Object> param) { |
| | |
| | | if (null == data.getCompanyId()) { |
| | | data.setCompanyId(ContextUtil.getCompanyId()); |
| | | } |
| | | |
| | | data.setUpdateTime(new Date()); |
| | | if (data.getChanNum() == 0) { |
| | | data.setChanNum(1); |
| | | } |