├── .gitignore ├── README.md ├── mvnw ├── mvnw.cmd ├── pom.xml └── src ├── main ├── java │ └── com │ │ └── jczc │ │ └── operatorweb │ │ ├── OperatorWebApplication.java │ │ ├── config │ │ └── UserAccessConfig.java │ │ ├── controller │ │ ├── PageController.java │ │ ├── advice │ │ │ └── DataExceptionAdvice.java │ │ └── rest │ │ │ ├── AreaController.java │ │ │ ├── ChargedListController.java │ │ │ ├── ChargingAccountController.java │ │ │ ├── ChargingPriceController.java │ │ │ ├── ChargingStatisticController.java │ │ │ ├── ChargingUserController.java │ │ │ ├── GroupTypeController.java │ │ │ ├── MemberController.java │ │ │ ├── OrganizationController.java │ │ │ ├── PileController.java │ │ │ ├── PileGroupController.java │ │ │ ├── PileProductController.java │ │ │ └── PileStationController.java │ │ ├── dao │ │ ├── AreaDao.java │ │ ├── ChargedListDao.java │ │ ├── ChargingAccountDao.java │ │ ├── ChargingDataDao.java │ │ ├── ChargingPriceDao.java │ │ ├── ChargingStatisticDao.java │ │ ├── ChargingUserDao.java │ │ ├── DeviceStateDao.java │ │ ├── GroupTypeDao.java │ │ ├── MemberDao.java │ │ ├── OrganizationDao.java │ │ ├── PileDao.java │ │ ├── PileGroupDao.java │ │ ├── PileProductDao.java │ │ ├── PileStationDao.java │ │ ├── PositionDao.java │ │ └── VehicleDao.java │ │ ├── entity │ │ ├── Area.java │ │ ├── ChargedList.java │ │ ├── ChargingData.java │ │ ├── ChargingPrice.java │ │ ├── ElectricVehicle.java │ │ ├── Garage.java │ │ ├── GroupType.java │ │ ├── Member.java │ │ ├── Organization.java │ │ ├── Pile.java │ │ ├── PileGroup.java │ │ ├── PileProduct.java │ │ ├── PileStation.java │ │ └── Position.java │ │ ├── enums │ │ ├── ChargingStateEnum.java │ │ ├── DeviceStateEnum.java │ │ └── PayMethodEnum.java │ │ ├── exception │ │ ├── DataException.java │ │ ├── DataExceptionEnum.java │ │ └── ExceptionResponse.java │ │ ├── interceptor │ │ ├── UserAccessInterceptor.java │ │ └── UserLoginInterceptor.java │ │ ├── model │ │ ├── AccountDetail.java │ │ ├── AreaAndStations.java │ │ ├── ChargedFeeList.java │ │ ├── ChargedListInfo.java │ │ ├── ChargingDataInfo.java │ │ ├── ChargingFeeInfo.java │ │ ├── ChargingPriceInfo.java │ │ ├── ChargingStatistic.java │ │ ├── ChargingStatisticRequireMent.java │ │ ├── ChargingUser.java │ │ ├── DeviceStateInfo.java │ │ ├── GroupAndPositon.java │ │ ├── GroupCityMessage.java │ │ ├── GroupProvinceMessage.java │ │ ├── GroupRequireMent.java │ │ ├── GroupResource.java │ │ ├── GroupStationMessage.java │ │ ├── GroupZoneMessage.java │ │ ├── PileChargingState.java │ │ ├── PileGroupInfo.java │ │ ├── PileGroupMessage.java │ │ ├── PileInfo.java │ │ ├── PileStationInfo.java │ │ ├── PileStationMessage.java │ │ ├── PileStatistic.java │ │ ├── PileStatisticRequireMent.java │ │ ├── StationAndElectrity.java │ │ ├── StationAndPosition.java │ │ ├── StationStatistic.java │ │ ├── StationStatisticRequireMent.java │ │ ├── UserAccount.java │ │ ├── UserAccountDetail.java │ │ └── VehicleInfo.java │ │ ├── service │ │ ├── AreaService.java │ │ ├── ChargedListService.java │ │ ├── ChargingAccountService.java │ │ ├── ChargingDataService.java │ │ ├── ChargingPriceService.java │ │ ├── ChargingStatisticService.java │ │ ├── DeviceStateService.java │ │ ├── GroupTypeService.java │ │ ├── Impl │ │ │ ├── AreaServiceImpl.java │ │ │ ├── ChargedListServiceImpl.java │ │ │ ├── ChargingAccountServiceImpl.java │ │ │ ├── ChargingDataServiceImpl.java │ │ │ ├── ChargingPriceImpl.java │ │ │ ├── ChargingStatisticServiceImpl.java │ │ │ ├── DeviceStateServiceImpl.java │ │ │ ├── GroupTypeServiceImpl.java │ │ │ ├── MemberServiceImpl.java │ │ │ ├── OrganizationServiceImpl.java │ │ │ ├── PileGroupServiceImpl.java │ │ │ ├── PileProductServiceImpl.java │ │ │ ├── PileServiceImpl.java │ │ │ ├── PileStationServiceImpl.java │ │ │ ├── PositionServiceImpl.java │ │ │ ├── UserServiceImpl.java │ │ │ └── VehicleServiceImpl.java │ │ ├── MemberService.java │ │ ├── OrganizationService.java │ │ ├── PileGroupService.java │ │ ├── PileProductService.java │ │ ├── PileService.java │ │ ├── PileStationService.java │ │ ├── PositionService.java │ │ ├── UserService.java │ │ └── VehicleService.java │ │ └── util │ │ ├── DateUtil.java │ │ ├── DistanceUtil.java │ │ ├── EncryptUtil.java │ │ ├── PasswordUtil.java │ │ ├── ResponseModel.java │ │ └── StringUtil.java └── resources │ ├── application-dev.properties │ ├── application.properties │ ├── logback-spring.xml │ ├── mapper │ ├── Area.xml │ ├── ChargedList.xml │ ├── ChargingAccount.xml │ ├── ChargingData.xml │ ├── ChargingPrice.xml │ ├── ChargingUser.xml │ ├── DeviceState.xml │ ├── GroupType.xml │ ├── Member.xml │ ├── Organization.xml │ ├── Pile.xml │ ├── PileGroup.xml │ ├── PileProduct.xml │ ├── PileStation.xml │ ├── Position.xml │ ├── chargingStatistics.xml │ └── vehicle.xml │ ├── static │ ├── css │ │ ├── app.css │ │ ├── chargingStation.css │ │ ├── homepage.css │ │ └── regist.css │ ├── favicon.png │ ├── hpbg1.jpg │ ├── hpbg2.jpg │ ├── hpbg3.jpg │ ├── hpbg4.jpg │ ├── hpbg5.jpg │ ├── js │ │ ├── app.js │ │ ├── area.js │ │ ├── moment.min.js │ │ ├── pagejs │ │ │ ├── addChargingPile.js │ │ │ ├── addChargingPileGroup.js │ │ │ ├── addChargingStation.js │ │ │ ├── chargingDetails.js │ │ │ ├── chargingPile.js │ │ │ ├── chargingPileGroup.js │ │ │ ├── chargingPileStatistics.js │ │ │ ├── chargingPrice.js │ │ │ ├── chargingStation.js │ │ │ ├── chargingStation2.js │ │ │ ├── chargingStationStatistics.js │ │ │ ├── checkChargingPile.js │ │ │ ├── homepage.js │ │ │ ├── mapOfChargingStation.js │ │ │ ├── regist.js │ │ │ ├── updateChargingPile.js │ │ │ ├── updateChargingPileGroup.js │ │ │ └── updateChargingStation.js │ │ └── vue.js │ ├── layui │ │ ├── css │ │ │ ├── layui.css │ │ │ ├── layui.mobile.css │ │ │ └── modules │ │ │ │ ├── code.css │ │ │ │ ├── laydate │ │ │ │ └── default │ │ │ │ │ └── laydate.css │ │ │ │ └── layer │ │ │ │ └── default │ │ │ │ ├── icon-ext.png │ │ │ │ ├── icon.png │ │ │ │ ├── layer.css │ │ │ │ ├── loading-0.gif │ │ │ │ ├── loading-1.gif │ │ │ │ └── loading-2.gif │ │ ├── font │ │ │ ├── iconfont.eot │ │ │ ├── iconfont.svg │ │ │ ├── iconfont.ttf │ │ │ └── iconfont.woff │ │ ├── images │ │ │ └── face │ │ │ │ ├── 0.gif │ │ │ │ ├── 1.gif │ │ │ │ ├── 10.gif │ │ │ │ ├── 11.gif │ │ │ │ ├── 12.gif │ │ │ │ ├── 13.gif │ │ │ │ ├── 14.gif │ │ │ │ ├── 15.gif │ │ │ │ ├── 16.gif │ │ │ │ ├── 17.gif │ │ │ │ ├── 18.gif │ │ │ │ ├── 19.gif │ │ │ │ ├── 2.gif │ │ │ │ ├── 20.gif │ │ │ │ ├── 21.gif │ │ │ │ ├── 22.gif │ │ │ │ ├── 23.gif │ │ │ │ ├── 24.gif │ │ │ │ ├── 25.gif │ │ │ │ ├── 26.gif │ │ │ │ ├── 27.gif │ │ │ │ ├── 28.gif │ │ │ │ ├── 29.gif │ │ │ │ ├── 3.gif │ │ │ │ ├── 30.gif │ │ │ │ ├── 31.gif │ │ │ │ ├── 32.gif │ │ │ │ ├── 33.gif │ │ │ │ ├── 34.gif │ │ │ │ ├── 35.gif │ │ │ │ ├── 36.gif │ │ │ │ ├── 37.gif │ │ │ │ ├── 38.gif │ │ │ │ ├── 39.gif │ │ │ │ ├── 4.gif │ │ │ │ ├── 40.gif │ │ │ │ ├── 41.gif │ │ │ │ ├── 42.gif │ │ │ │ ├── 43.gif │ │ │ │ ├── 44.gif │ │ │ │ ├── 45.gif │ │ │ │ ├── 46.gif │ │ │ │ ├── 47.gif │ │ │ │ ├── 48.gif │ │ │ │ ├── 49.gif │ │ │ │ ├── 5.gif │ │ │ │ ├── 50.gif │ │ │ │ ├── 51.gif │ │ │ │ ├── 52.gif │ │ │ │ ├── 53.gif │ │ │ │ ├── 54.gif │ │ │ │ ├── 55.gif │ │ │ │ ├── 56.gif │ │ │ │ ├── 57.gif │ │ │ │ ├── 58.gif │ │ │ │ ├── 59.gif │ │ │ │ ├── 6.gif │ │ │ │ ├── 60.gif │ │ │ │ ├── 61.gif │ │ │ │ ├── 62.gif │ │ │ │ ├── 63.gif │ │ │ │ ├── 64.gif │ │ │ │ ├── 65.gif │ │ │ │ ├── 66.gif │ │ │ │ ├── 67.gif │ │ │ │ ├── 68.gif │ │ │ │ ├── 69.gif │ │ │ │ ├── 7.gif │ │ │ │ ├── 70.gif │ │ │ │ ├── 71.gif │ │ │ │ ├── 8.gif │ │ │ │ └── 9.gif │ │ └── layui.all.js │ ├── location.png │ ├── newspic1.jpg │ ├── newspic2.jpg │ ├── newspic3.jpg │ └── sign.png │ └── templates │ ├── addChargingPile.ftl │ ├── addChargingPileGroup.ftl │ ├── addChargingStation.ftl │ ├── chargingDetails.ftl │ ├── chargingPile.ftl │ ├── chargingPileGroup.ftl │ ├── chargingPileStatistics.ftl │ ├── chargingPrice.ftl │ ├── chargingStation.ftl │ ├── chargingStation2.ftl │ ├── chargingStationStatistics.ftl │ ├── checkChargingPile.ftl │ ├── components │ ├── footer.ftl │ ├── header.ftl │ ├── leftmenu.ftl │ ├── script.ftl │ └── topnav.ftl │ ├── homepage.ftl │ ├── mapOfChargingStation.ftl │ ├── regist.ftl │ ├── updateChargingPile.ftl │ ├── updateChargingPileGroup.ftl │ └── updateChargingStation.ftl └── test └── java └── com └── jczc └── operatorweb ├── OperatorWebApplicationTests.java ├── dao ├── AreaDaoTest.java ├── ChargedListDaoTest.java ├── ChargingPriceDaoTest.java ├── ChargingUserDaoTest.java ├── GroupTypeDaoTest.java ├── PileDaoTest.java ├── PileGroupDaoTest.java ├── PileProductDaoTest.java ├── PileStationDaoTest.java ├── PositionDaoTest.java └── chargingStatisticDaoTest.java └── service ├── ChargedListServiceTest.java ├── ChargingAccountServiceTest.java ├── ChargingDataServiceTest.java └── Impl └── PileStationServiceImplTest.java /.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | 12 | ### IntelliJ IDEA ### 13 | .idea 14 | *.iws 15 | *.iml 16 | *.ipr 17 | 18 | ### NetBeans ### 19 | nbproject/private/ 20 | build/ 21 | nbbuild/ 22 | dist/ 23 | nbdist/ 24 | .nb-gradle/ -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # operator-web 2 | ### 本项目使用springboot + mybatis开发,前端采用Vue.js进行数据绑定 以及 layui作为ui框架。 3 | ### 具有实际应用背景 4 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/OperatorWebApplication.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb; 2 | 3 | import org.mybatis.spring.annotation.MapperScan; 4 | import org.springframework.boot.SpringApplication; 5 | import org.springframework.boot.autoconfigure.SpringBootApplication; 6 | import org.springframework.boot.web.servlet.ServletComponentScan; 7 | 8 | @MapperScan("com.jczc.operatorweb.dao") 9 | @SpringBootApplication 10 | public class OperatorWebApplication { 11 | 12 | public static void main(String[] args) { 13 | 14 | SpringApplication.run(OperatorWebApplication.class, args); 15 | 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/config/UserAccessConfig.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.config; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.context.annotation.Configuration; 5 | import org.springframework.web.servlet.config.annotation.InterceptorRegistry; 6 | import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; 7 | 8 | import com.jczc.operatorweb.interceptor.UserAccessInterceptor; 9 | @Configuration 10 | public class UserAccessConfig extends WebMvcConfigurerAdapter{ 11 | @Autowired 12 | UserAccessInterceptor interceptor; 13 | @Override 14 | public void addInterceptors(InterceptorRegistry registry) { 15 | registry.addInterceptor(interceptor).addPathPatterns("/user/**","/charging/**","/account/**").excludePathPatterns("/user/login","/user/register","/user/search/wx/*"); 16 | super.addInterceptors(registry); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/controller/advice/DataExceptionAdvice.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.controller.advice; 2 | 3 | import org.slf4j.Logger; 4 | import org.slf4j.LoggerFactory; 5 | import org.springframework.web.bind.MissingServletRequestParameterException; 6 | import org.springframework.web.bind.annotation.ControllerAdvice; 7 | import org.springframework.web.bind.annotation.ExceptionHandler; 8 | import org.springframework.web.bind.annotation.ResponseBody; 9 | 10 | import com.jczc.operatorweb.exception.DataException; 11 | import com.jczc.operatorweb.util.ResponseModel; 12 | 13 | @ControllerAdvice 14 | public class DataExceptionAdvice { 15 | private static Logger logger= LoggerFactory.getLogger(DataExceptionAdvice.class); 16 | @ResponseBody 17 | @ExceptionHandler(DataException.class) 18 | public ResponseModel handleDataException(DataException ex){ 19 | logger.error("DataException ocurred:"+ex.getResponse().getMessage()); 20 | ResponseModel res=new ResponseModel<>(false,ex.getResponse().getMessage(),null); 21 | return res; 22 | } 23 | @ResponseBody 24 | @ExceptionHandler(MissingServletRequestParameterException.class) 25 | public ResponseModel paramsBindException(MissingServletRequestParameterException ex){ 26 | logger.error("MissingServletRequestParameterException ocurred,path:"+ex.getMessage()); 27 | ResponseModel res=new ResponseModel<>(false,ex.getMessage(),null); 28 | return res; 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/controller/rest/AreaController.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.controller.rest; 2 | 3 | import com.jczc.operatorweb.entity.Area; 4 | import com.jczc.operatorweb.service.AreaService; 5 | import com.jczc.operatorweb.util.ResponseModel; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.web.bind.annotation.PathVariable; 8 | import org.springframework.web.bind.annotation.RequestMapping; 9 | import org.springframework.web.bind.annotation.RestController; 10 | 11 | import java.util.List; 12 | 13 | @RestController 14 | @RequestMapping("area") 15 | public class AreaController { 16 | @Autowired 17 | AreaService areaService; 18 | 19 | @RequestMapping({"","/"}) 20 | public ResponseModel listAllProvince(){ 21 | return new ResponseModel<>(true, "", areaService.getAreaByParentId(0)); 22 | } 23 | 24 | @RequestMapping("/{areaId}") 25 | public ResponseModel listArea(@PathVariable Integer areaId){ 26 | return new ResponseModel<>(true, "",areaService.getAreaByParentId(areaId)); 27 | } 28 | @RequestMapping("/getMyRegionId/{areaId}") 29 | public ResponseModel Area(@PathVariable Integer areaId){ 30 | return new ResponseModel<>(true, "",areaService.getAreaById(areaId)); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/controller/rest/GroupTypeController.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.controller.rest; 2 | 3 | import com.jczc.operatorweb.entity.GroupType; 4 | import com.jczc.operatorweb.service.GroupTypeService; 5 | import com.jczc.operatorweb.util.ResponseModel; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.web.bind.annotation.GetMapping; 8 | import org.springframework.web.bind.annotation.PathVariable; 9 | import org.springframework.web.bind.annotation.RequestMapping; 10 | import org.springframework.web.bind.annotation.RestController; 11 | 12 | @RestController 13 | @RequestMapping("groupType") 14 | public class GroupTypeController { 15 | 16 | @Autowired 17 | GroupTypeService groupTypeService; 18 | 19 | @GetMapping("/{groupTypeId}") 20 | public ResponseModel getById(@PathVariable Integer groupTypeId){ 21 | return new ResponseModel<>(true, "", groupTypeService.getById(groupTypeId)); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/controller/rest/MemberController.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.controller.rest; 2 | 3 | import javax.servlet.http.HttpServletRequest; 4 | import javax.servlet.http.HttpSession; 5 | 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.web.bind.annotation.PostMapping; 8 | import org.springframework.web.bind.annotation.RequestMapping; 9 | import org.springframework.web.bind.annotation.RestController; 10 | 11 | import com.jczc.operatorweb.entity.Member; 12 | import com.jczc.operatorweb.service.MemberService; 13 | import com.jczc.operatorweb.util.ResponseModel; 14 | 15 | @RestController 16 | @RequestMapping("member") 17 | public class MemberController { 18 | 19 | @Autowired 20 | MemberService memberService; 21 | 22 | @PostMapping("/checkLoginInfo") 23 | public ResponseModel CheckLoginInfo(HttpSession session,HttpServletRequest request,String loginName,String password,Member member) { 24 | Member queryMember = memberService.CheckLoginInfo(member); 25 | loginName = request.getParameter("name"); 26 | password = request.getParameter("password"); 27 | if(queryMember!=null) { 28 | if(queryMember.getName().equals(loginName)&&queryMember.getPassword().equals(password)) { 29 | session.setAttribute("member", queryMember); 30 | return new ResponseModel<>(true, "", memberService.CheckLoginInfo(member)); 31 | }else { 32 | return new ResponseModel<>(false, "信息不正确", memberService.CheckLoginInfo(member)); 33 | } 34 | }else { 35 | return new ResponseModel<>(false, "信息不正确", memberService.CheckLoginInfo(member)); 36 | } 37 | 38 | 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/controller/rest/OrganizationController.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.controller.rest; 2 | 3 | import javax.servlet.http.HttpServletRequest; 4 | import javax.servlet.http.HttpSession; 5 | 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.web.bind.annotation.PostMapping; 8 | import org.springframework.web.bind.annotation.RequestMapping; 9 | import org.springframework.web.bind.annotation.RestController; 10 | 11 | import com.jczc.operatorweb.entity.Member; 12 | import com.jczc.operatorweb.entity.Organization; 13 | import com.jczc.operatorweb.service.MemberService; 14 | import com.jczc.operatorweb.service.OrganizationService; 15 | import com.jczc.operatorweb.util.ResponseModel; 16 | 17 | @RestController 18 | @RequestMapping("organization") 19 | public class OrganizationController { 20 | 21 | @Autowired 22 | OrganizationService organizationService; 23 | 24 | @Autowired 25 | MemberService memberService; 26 | 27 | @PostMapping("/regist") 28 | public ResponseModel organizationRegist(HttpSession session,HttpServletRequest request,Organization organization,Member member) { 29 | if(organizationService.getOrganizationById(organization.getId())==null) { 30 | organizationService.addOrganization(organization); 31 | if(organization.getId()!=null) { 32 | member.setCreatorId(organization.getId()); 33 | member.setOrgId(organization.getId()); 34 | memberService.addMember(member); 35 | session.setAttribute("member", member); 36 | } 37 | return new ResponseModel<>(true, "注册成功", null); 38 | }else { 39 | return new ResponseModel<>(false, "注册失败", null); 40 | } 41 | 42 | 43 | 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/controller/rest/PileProductController.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.controller.rest; 2 | 3 | import com.jczc.operatorweb.entity.PileProduct; 4 | import com.jczc.operatorweb.service.PileProductService; 5 | import com.jczc.operatorweb.util.ResponseModel; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.web.bind.annotation.GetMapping; 8 | import org.springframework.web.bind.annotation.RequestMapping; 9 | import org.springframework.web.bind.annotation.RestController; 10 | 11 | import java.util.List; 12 | 13 | @RestController 14 | @RequestMapping("/product") 15 | public class PileProductController { 16 | @Autowired 17 | PileProductService pileProductService; 18 | 19 | @GetMapping({"","/"}) 20 | public ResponseModel listAllPileProduct(){ 21 | return new ResponseModel<>(true,"",pileProductService.getAllPileProducts()); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/dao/AreaDao.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.dao; 2 | 3 | import com.jczc.operatorweb.entity.Area; 4 | import org.springframework.stereotype.Repository; 5 | 6 | import java.util.List; 7 | 8 | @Repository 9 | public interface AreaDao { 10 | Area queryAreaById(Integer areaId); 11 | List queryAreaByParentId(Integer areaId); 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/dao/ChargedListDao.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.dao; 2 | 3 | import java.util.Date; 4 | import java.util.List; 5 | 6 | import org.apache.ibatis.annotations.Param; 7 | import org.springframework.stereotype.Repository; 8 | 9 | import com.jczc.operatorweb.model.ChargedListInfo; 10 | @Repository 11 | public interface ChargedListDao { 12 | public void addChargedList(ChargedListInfo chargedList); 13 | public int setParkingTime(@Param("pileNo")String pileNo,@Param("parkingTime")Date parkingTime); 14 | public int setStartTime(@Param("pileNo")String pileNo,@Param("startTime")Date startTime); 15 | public int setFullTime(@Param("pileNo")String pileNo,@Param("fullTime")Date fullTime); 16 | public int setEndTimeAndTotalElectricity(@Param("pileNo")String pileNo,@Param("endTime")Date endTime,@Param("totalElectricity")Double totalElectricity); 17 | public boolean setLeavingTime(@Param("pileNo")String pileNo,@Param("leavingTime")Date leavingTime); 18 | public ChargedListInfo getPileCurrentChargedList(@Param("pileNo")String pileNo); 19 | public void update(ChargedListInfo rec); 20 | public ChargedListInfo getUserCurrentChargedList(@Param("userId")Integer userId); 21 | public ChargedListInfo getUnstart(@Param("pileNo")String pileNo); 22 | 23 | public List getPileChargedList(@Param("pileNo")String pileNo,@Param("start")Date start,@Param("end")Date end); 24 | public List getUserChargedList(@Param("userId")Integer userId,@Param("start")Date start,@Param("end")Date end); 25 | public ChargedListInfo getChargedList(@Param("chargedListId")Long chargedListId); 26 | public void updateStatus(@Param("id")Long id, @Param("status")int status); 27 | 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/dao/ChargingAccountDao.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.dao; 2 | 3 | import java.util.Date; 4 | import java.util.List; 5 | 6 | import org.apache.ibatis.annotations.Param; 7 | import org.springframework.stereotype.Repository; 8 | 9 | import com.jczc.operatorweb.model.AccountDetail; 10 | import com.jczc.operatorweb.model.ChargingFeeInfo; 11 | 12 | @Repository 13 | public interface ChargingAccountDao { 14 | List getChargingFeeByUserId(@Param("userId")Integer userId,@Param("start")Date start,@Param("end")Date end,@Param("status")Integer status); 15 | List getChargingFeeByPileNo(@Param("pileNo")String pileNo,@Param("start")Date start,@Param("end")Date end,@Param("status")Integer status); 16 | ChargingFeeInfo getChargingFeeByChargedListId(@Param("chargedListId")Long chargedListId); 17 | List getRechargeHistory(@Param("userId")Integer userId,@Param("start")Date start,@Param("end")Date end); 18 | 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/dao/ChargingDataDao.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.dao; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.stereotype.Repository; 6 | 7 | import com.jczc.operatorweb.model.ChargedListInfo; 8 | import com.jczc.operatorweb.model.ChargingDataInfo; 9 | @Repository 10 | public interface ChargingDataDao { 11 | public void addChargingData(ChargingDataInfo data); 12 | public List getHistoryData(ChargedListInfo chargedListInfo); 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/dao/ChargingPriceDao.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.dao; 2 | 3 | 4 | import com.jczc.operatorweb.entity.ChargingPrice; 5 | 6 | import org.apache.ibatis.annotations.Param; 7 | import com.jczc.operatorweb.model.ChargingPriceInfo; 8 | import org.springframework.stereotype.Repository; 9 | 10 | import java.util.List; 11 | 12 | @Repository 13 | public interface ChargingPriceDao { 14 | public Integer save(ChargingPrice chargingprice); 15 | public Integer delete(Integer chargingpriceId); 16 | public Integer updateById(ChargingPrice ChargingPrice); 17 | public List queryAllChargingPrice(Integer operatorId); 18 | public ChargingPrice getPileChargingPrice(@Param("pileNo")String pileNo); 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/dao/ChargingStatisticDao.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.dao; 2 | 3 | import com.jczc.operatorweb.model.*; 4 | import org.apache.ibatis.annotations.Param; 5 | import org.springframework.stereotype.Repository; 6 | 7 | import java.util.List; 8 | 9 | @Repository 10 | public interface ChargingStatisticDao { 11 | public List queryStationStatisticByZoneId(@Param("operatorId") Integer operatorId, @Param("zoneId") Integer zoneId); 12 | public List queryStationStatisticByCityId(@Param("operatorId") Integer operatorId, @Param("cityId") Integer cityId); 13 | public List queryStationStatisticByProvinceId(@Param("operatorId") Integer operatorId, @Param("provinceId") Integer provinceId); 14 | public List queryStationStatisticByRequireMent(@Param("operatorId") Integer operatorId,@Param("stationStatisticRequireMent") StationStatisticRequireMent stationStatisticRequireMent); 15 | public List queryPileStatisticByStationId(@Param("operatorId") Integer operatorId, @Param("stationId") Integer stationId); 16 | public List queryPileStatisticByZoneId(@Param("operatorId") Integer operatorId, @Param("zoneId") Integer zoneId); 17 | public List queryPileStatisticByCityId(@Param("operatorId") Integer operatorId, @Param("cityId") Integer cityId); 18 | public List queryPileStatisticByProvinceId(@Param("operatorId") Integer operatorId, @Param("provinceId") Integer provinceId); 19 | public List queryPileStatisticByRequireMent(@Param("operatorId") Integer operatorId, @Param("pileStatisticRequireMent") PileStatisticRequireMent pileStatisticRequireMent); 20 | public List queryChargingStatisticByStationId(@Param("operatorId") Integer operatorId, @Param("stationId") Integer stationId); 21 | public List queryChargingStatisticByZoneId(@Param("operatorId") Integer operatorId, @Param("zoneId") Integer zoneId); 22 | public List queryChargingStatisticByCityId(@Param("operatorId") Integer operatorId, @Param("cityId") Integer cityId); 23 | public List queryChargingStatisticByProvinceId(@Param("operatorId") Integer operatorId, @Param("provinceId") Integer provinceId); 24 | public List queryChargingStatisticByRequireMent(@Param("operatorId") Integer operatorId, @Param("chargingStatisticRequireMent") ChargingStatisticRequireMent chargingStatisticRequireMent); 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/dao/DeviceStateDao.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.dao; 2 | 3 | import java.util.Date; 4 | import java.util.List; 5 | 6 | import org.apache.ibatis.annotations.Param; 7 | import org.springframework.stereotype.Repository; 8 | 9 | import com.jczc.operatorweb.model.DeviceStateInfo; 10 | @Repository 11 | public interface DeviceStateDao { 12 | public void addDeviceState(DeviceStateInfo deviceStateInfo); 13 | public DeviceStateInfo getDeviceState(@Param("id")Long id); 14 | public void handleDeviceState(@Param("id")Long id,@Param("handlerId")Integer handlerId,@Param("remark")String remark); 15 | public DeviceStateInfo getLatestDeviceState(@Param("deviceNo")String deviceNo); 16 | public List getHistoryDeviceStates(@Param("deviceNo")String deviceNo,@Param("startTime")Date startTime,@Param("endTime")Date endTime); 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/dao/GroupTypeDao.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.dao; 2 | 3 | import com.jczc.operatorweb.entity.GroupType; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface GroupTypeDao { 8 | public GroupType queryById(Integer groupTypeId); 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/dao/MemberDao.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.dao; 2 | 3 | 4 | import org.springframework.stereotype.Repository; 5 | import com.jczc.operatorweb.entity.Member; 6 | 7 | @Repository 8 | public interface MemberDao { 9 | public Integer save(Member member); 10 | public Member queryLoginInfo(Member member); 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/dao/OrganizationDao.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.dao; 2 | 3 | import org.springframework.stereotype.Repository; 4 | 5 | import com.jczc.operatorweb.entity.Organization; 6 | 7 | @Repository 8 | public interface OrganizationDao { 9 | public Integer save(Organization organization); 10 | public Organization queryOrganizationById(Integer id); 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/dao/PileDao.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.dao; 2 | 3 | import com.jczc.operatorweb.entity.Pile; 4 | import com.jczc.operatorweb.model.PileInfo; 5 | import org.apache.ibatis.annotations.Param; 6 | import org.springframework.stereotype.Repository; 7 | 8 | import java.util.List; 9 | 10 | @Repository 11 | public interface PileDao { 12 | public Integer save(Pile pile); 13 | public Pile queryById(Integer pileId); 14 | public Integer updateById(Pile pile); 15 | public Integer delete(Integer pileId); 16 | public List queryOperatorAllPiles(@Param("operatorId") Integer operatorId); 17 | public List queryPileByBuildId(Integer stationId); 18 | public List queryPileByGroupId(Integer groupId); 19 | public Integer updateByNo(Pile pile); 20 | public PileInfo getPileByNo(String pileNo); 21 | public List getAllPileIdentification (); 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/dao/PileGroupDao.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.dao; 2 | 3 | import com.jczc.operatorweb.entity.PileGroup; 4 | import com.jczc.operatorweb.model.*; 5 | import org.apache.ibatis.annotations.Param; 6 | import org.springframework.stereotype.Repository; 7 | 8 | import java.util.List; 9 | import java.util.Map; 10 | 11 | @Repository 12 | public interface PileGroupDao { 13 | public Integer save(PileGroup pileGroup); 14 | public PileGroupMessage queryPileGroupMessageById(Integer groupId); 15 | public List queryOperatorAllGroupResource(Integer operatorId); 16 | public List queryPileGroupByStationId(@Param("operatorId")Integer operatorId,@Param("stationId") Integer stationId); 17 | public List queryPileGroupByZoneId(@Param("operatorId")Integer operatorId,@Param("zoneId") Integer zoneId); 18 | public List queryPileGroupByCityId(@Param("operatorId")Integer operatorId,@Param("cityId") Integer cityId); 19 | public List queryPileGroupByProvinceId(@Param("operatorId")Integer operatorId,@Param("provinceId") Integer provinceId); 20 | public GroupStationMessage queryGroupStationMessageByStationId(@Param("operatorId")Integer operatorId,@Param("stationId") Integer stationId); 21 | public GroupZoneMessage queryGroupZoneMessageByZoneId(@Param("operatorId")Integer operatorId,@Param("zoneId") Integer zoneId); 22 | public GroupCityMessage queryGroupCityMessageByCityId(@Param("operatorId")Integer operatorId,@Param("cityId") Integer cityId); 23 | public GroupProvinceMessage queryGroupProvinceMessageByProvinceId(@Param("operatorId")Integer operatorId,@Param("provinceId") Integer provinceId); 24 | public List queryGroupByRequirement(@Param("operatorId")Integer operatorId,@Param("groupRequireMent") GroupRequireMent groupRequireMent); 25 | public GroupAndPositon queryByGroupId(Integer groupId); 26 | public Integer updateByGroupId(PileGroup pileGroup); 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/dao/PileProductDao.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.dao; 2 | 3 | import com.jczc.operatorweb.entity.PileProduct; 4 | import org.springframework.stereotype.Repository; 5 | 6 | import java.util.List; 7 | 8 | @Repository 9 | public interface PileProductDao { 10 | public List queryAllPileProducts(); 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/dao/PileStationDao.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.dao; 2 | 3 | import com.jczc.operatorweb.entity.PileStation; 4 | import com.jczc.operatorweb.model.*; 5 | import org.apache.ibatis.annotations.Param; 6 | import org.springframework.stereotype.Repository; 7 | import java.util.Date; 8 | import java.util.List; 9 | 10 | @Repository 11 | public interface PileStationDao { 12 | public Integer save(PileStation pileStation); 13 | public Integer update(PileStation pileStation); 14 | public StationAndPosition queryStationById(Integer stationId); 15 | public PileStationMessage queryPileStationMessageById(Integer stationId); 16 | public List queryAllAreaAndStations(Integer operatorId); 17 | public List queryAllPileStationsByOperatorId(Integer operatorId); 18 | public List queryStationByLngLat(@Param("minLng") double minLng, @Param("maxLng") double maxLng, @Param("minLat") double minLat, @Param("maxLat") double maxLat); 19 | public List getPileStationsWithGps(); 20 | public List getStationsWithChargingData(Integer areaId,Date startTime,Date endTime,String stationId); 21 | public PileStationInfo getPileStationStatById(@Param("stationId")Integer stationId); 22 | public Integer delete(Integer stationId); 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/dao/PositionDao.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.dao; 2 | 3 | import com.jczc.operatorweb.entity.Position; 4 | import org.springframework.stereotype.Repository; 5 | 6 | import java.util.List; 7 | 8 | @Repository 9 | public interface PositionDao { 10 | public Integer save(Position position); 11 | public Integer update(Position position); 12 | public List queryAllStationIdByZoneId(Integer zoneId); 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/dao/VehicleDao.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.dao; 2 | 3 | import com.jczc.operatorweb.model.VehicleInfo; 4 | import org.apache.ibatis.annotations.Param; 5 | import org.springframework.stereotype.Component; 6 | 7 | import java.util.List; 8 | 9 | /** 10 | * Created by lwj on 2017/11/3. 11 | */ 12 | 13 | @Component 14 | public interface VehicleDao { 15 | 16 | /** 17 | * 添加用户所属车辆 18 | * 19 | * @param vehicleReData 20 | * @param id 21 | */ 22 | void save(VehicleInfo vehicle); 23 | 24 | 25 | /** 26 | * 验证该车辆的车牌是否已存在 27 | * 28 | * @param plateNo 29 | * @param id 30 | */ 31 | String validateVehicle(VehicleInfo vehicle); 32 | 33 | /** 34 | * 删除指定汽车信息 35 | * 36 | * @param id 37 | */ 38 | void delete(int id); 39 | 40 | /** 41 | * 获取指定用户汽车信息 42 | * 43 | * @param id 44 | * @return 45 | */ 46 | List findByUserId(int id); 47 | VehicleInfo getByVehicleId(int id); 48 | VehicleInfo getByPlateNo(String platNo); 49 | List findByPlateNo(String platNo); 50 | 51 | /** 52 | * 更新用户汽车信息 53 | * 54 | * @param vehicleReData 55 | * @param id 56 | */ 57 | void update(VehicleInfo vehicle); 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/entity/Area.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.entity; 2 | 3 | public class Area { 4 | private Integer id; 5 | private Integer parentId; 6 | private String name; 7 | 8 | public Integer getId() { 9 | return id; 10 | } 11 | 12 | public void setId(Integer id) { 13 | this.id = id; 14 | } 15 | 16 | public Integer getParentId() { 17 | return parentId; 18 | } 19 | 20 | public void setParentId(Integer parentId) { 21 | this.parentId = parentId; 22 | } 23 | 24 | public String getName() { 25 | return name; 26 | } 27 | 28 | public void setName(String name) { 29 | this.name = name; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/entity/ChargedList.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.entity; 2 | 3 | import java.util.Date; 4 | 5 | public class ChargedList { 6 | private Long id; 7 | private Date createTime; 8 | private Date chargingBeginTime; 9 | private Date chargingFullTime; 10 | private Date chargingEndTime; 11 | private Date parkingBegenTime; 12 | private Date parkingEndTime; 13 | private String chargedPileNo; 14 | private String vehicleNo; 15 | private Integer chargingUserId; 16 | private Integer status; 17 | public Long getId() { 18 | return id; 19 | } 20 | public void setId(Long id) { 21 | this.id = id; 22 | } 23 | public Date getCreateTime() { 24 | return createTime; 25 | } 26 | public void setCreateTime(Date createTime) { 27 | this.createTime = createTime; 28 | } 29 | public Date getChargingBeginTime() { 30 | return chargingBeginTime; 31 | } 32 | public void setChargingBeginTime(Date chargingBeginTime) { 33 | this.chargingBeginTime = chargingBeginTime; 34 | } 35 | public Date getChargingFullTime() { 36 | return chargingFullTime; 37 | } 38 | public void setChargingFullTime(Date chargingFullTime) { 39 | this.chargingFullTime = chargingFullTime; 40 | } 41 | public Date getChargingEndTime() { 42 | return chargingEndTime; 43 | } 44 | public void setChargingEndTime(Date chargingEndTime) { 45 | this.chargingEndTime = chargingEndTime; 46 | } 47 | public Date getParkingBegenTime() { 48 | return parkingBegenTime; 49 | } 50 | public void setParkingBegenTime(Date parkingBegenTime) { 51 | this.parkingBegenTime = parkingBegenTime; 52 | } 53 | public Date getParkingEndTime() { 54 | return parkingEndTime; 55 | } 56 | public void setParkingEndTime(Date parkingEndTime) { 57 | this.parkingEndTime = parkingEndTime; 58 | } 59 | public String getChargedPileNo() { 60 | return chargedPileNo; 61 | } 62 | public void setChargedPileNo(String chargedPileNo) { 63 | this.chargedPileNo = chargedPileNo; 64 | } 65 | public String getVehicleNo() { 66 | return vehicleNo; 67 | } 68 | public void setVehicleNo(String vehicleNo) { 69 | this.vehicleNo = vehicleNo; 70 | } 71 | public Integer getChargingUserId() { 72 | return chargingUserId; 73 | } 74 | public void setChargingUserId(Integer chargingUserId) { 75 | this.chargingUserId = chargingUserId; 76 | } 77 | public Integer getStatus() { 78 | return status; 79 | } 80 | public void setStatus(Integer status) { 81 | this.status = status; 82 | } 83 | 84 | } 85 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/entity/ChargingData.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.entity; 2 | 3 | import java.util.Date; 4 | 5 | public class ChargingData { 6 | private Long id; 7 | private String pileNo; 8 | private Date receiveTime; 9 | private Double current;//电流 10 | private Double electricity;//电量 11 | private Double power;//功率 12 | private Double voltage;//电压 13 | public Long getId() { 14 | return id; 15 | } 16 | public void setId(Long id) { 17 | this.id = id; 18 | } 19 | public String getPileNo() { 20 | return pileNo; 21 | } 22 | public void setPileNo(String pileNo) { 23 | this.pileNo = pileNo; 24 | } 25 | public Date getReceiveTime() { 26 | return receiveTime; 27 | } 28 | public void setReceiveTime(Date receiveTime) { 29 | this.receiveTime = receiveTime; 30 | } 31 | public Double getCurrent() { 32 | return current; 33 | } 34 | public void setCurrent(Double current) { 35 | this.current = current; 36 | } 37 | public Double getElectricity() { 38 | return electricity; 39 | } 40 | public void setElectricity(Double electricity) { 41 | this.electricity = electricity; 42 | } 43 | public Double getPower() { 44 | return power; 45 | } 46 | public void setPower(Double power) { 47 | this.power = power; 48 | } 49 | public Double getVoltage() { 50 | return voltage; 51 | } 52 | public void setVoltage(Double voltage) { 53 | this.voltage = voltage; 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/entity/ChargingPrice.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.entity; 2 | 3 | import java.util.Date; 4 | 5 | public class ChargingPrice { 6 | private int id; 7 | private String name; 8 | private String description; 9 | private Date createTime; 10 | private int creatorId; 11 | private int operatorId; 12 | private byte status; 13 | private double uniPrice; 14 | 15 | public int getId() { 16 | return id; 17 | } 18 | 19 | public void setId(int id) { 20 | this.id = id; 21 | } 22 | 23 | public String getName() { 24 | return name; 25 | } 26 | 27 | public void setName(String name) { 28 | this.name = name; 29 | } 30 | 31 | public String getDescription() { 32 | return description; 33 | } 34 | 35 | public void setDescription(String description) { 36 | this.description = description; 37 | } 38 | 39 | public Date getCreateTime() { 40 | return createTime; 41 | } 42 | 43 | public void setCreateTime(Date createTime) { 44 | this.createTime = createTime; 45 | } 46 | 47 | public int getCreatorId() { 48 | return creatorId; 49 | } 50 | 51 | public void setCreatorId(int creatorId) { 52 | this.creatorId = creatorId; 53 | } 54 | 55 | public int getOperatorId() { 56 | return operatorId; 57 | } 58 | 59 | public void setOperatorId(int operatorId) { 60 | this.operatorId = operatorId; 61 | } 62 | 63 | public byte getStatus() { 64 | return status; 65 | } 66 | 67 | public void setStatus(byte status) { 68 | this.status = status; 69 | } 70 | 71 | public double getUniPrice() { 72 | return uniPrice; 73 | } 74 | 75 | public void setUniPrice(double uniPrice) { 76 | this.uniPrice = uniPrice; 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/entity/ElectricVehicle.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.entity; 2 | 3 | import java.util.Date; 4 | 5 | /** 6 | * Created by LWJ on 2017/10/22. 7 | */ 8 | public class ElectricVehicle { 9 | private int id; 10 | private String plateNo; 11 | private String brand; 12 | private String model; 13 | private int chargingUserId; 14 | private Date createTime; 15 | private byte status; 16 | 17 | public int getId() { 18 | return id; 19 | } 20 | 21 | public void setId(int id) { 22 | this.id = id; 23 | } 24 | 25 | public String getPlateNo() { 26 | return plateNo; 27 | } 28 | 29 | public void setPlateNo(String plateNo) { 30 | this.plateNo = plateNo; 31 | } 32 | 33 | public String getBrand() { 34 | return brand; 35 | } 36 | 37 | public void setBrand(String brand) { 38 | this.brand = brand; 39 | } 40 | 41 | public String getModel() { 42 | return model; 43 | } 44 | 45 | public void setModel(String model) { 46 | this.model = model; 47 | } 48 | 49 | public int getChargingUserId() { 50 | return chargingUserId; 51 | } 52 | 53 | public void setChargingUserId(int chargingUserId) { 54 | this.chargingUserId = chargingUserId; 55 | } 56 | 57 | public Date getCreateTime() { 58 | return createTime; 59 | } 60 | 61 | public void setCreateTime(Date createTime) { 62 | this.createTime = createTime; 63 | } 64 | 65 | public byte getStatus() { 66 | return status; 67 | } 68 | 69 | public void setStatus(byte status) { 70 | this.status = status; 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/entity/Garage.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.entity; 2 | 3 | import java.util.Date; 4 | 5 | public class Garage { 6 | private Integer id; 7 | private String name; 8 | private String description; 9 | private Date createTime; 10 | private Integer createorId; 11 | private Integer buildingsId; 12 | private Double GpsLat; 13 | private Double GpsIng; 14 | private Integer OrgId; 15 | 16 | public Integer getId() { 17 | return id; 18 | } 19 | 20 | public void setId(Integer id) { 21 | this.id = id; 22 | } 23 | 24 | public String getName() { 25 | return name; 26 | } 27 | 28 | public void setName(String name) { 29 | this.name = name; 30 | } 31 | 32 | public String getDescription() { 33 | return description; 34 | } 35 | 36 | public void setDescription(String description) { 37 | this.description = description; 38 | } 39 | 40 | public Date getCreateTime() { 41 | return createTime; 42 | } 43 | 44 | public void setCreateTime(Date createTime) { 45 | this.createTime = createTime; 46 | } 47 | 48 | public Integer getCreateorId() { 49 | return createorId; 50 | } 51 | 52 | public void setCreateorId(Integer createorId) { 53 | this.createorId = createorId; 54 | } 55 | 56 | public Integer getBuildingsId() { 57 | return buildingsId; 58 | } 59 | 60 | public void setBuildingsId(Integer buildingsId) { 61 | this.buildingsId = buildingsId; 62 | } 63 | 64 | public Double getGpsLat() { 65 | return GpsLat; 66 | } 67 | 68 | public void setGpsLat(Double gpsLat) { 69 | GpsLat = gpsLat; 70 | } 71 | 72 | public Double getGpsIng() { 73 | return GpsIng; 74 | } 75 | 76 | public void setGpsIng(Double gpsIng) { 77 | GpsIng = gpsIng; 78 | } 79 | 80 | public Integer getOrgId() { 81 | return OrgId; 82 | } 83 | 84 | public void setOrgId(Integer orgId) { 85 | OrgId = orgId; 86 | } 87 | } 88 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/entity/GroupType.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.entity; 2 | 3 | import java.util.Date; 4 | 5 | public class GroupType { 6 | private Integer id; 7 | private String name; 8 | private String description; 9 | private Integer maxCount; 10 | private Date createTime; 11 | private Integer status; 12 | 13 | public Integer getId() { 14 | return id; 15 | } 16 | 17 | public void setId(Integer id) { 18 | this.id = id; 19 | } 20 | 21 | public String getName() { 22 | return name; 23 | } 24 | 25 | public void setName(String name) { 26 | this.name = name; 27 | } 28 | 29 | public String getDescription() { 30 | return description; 31 | } 32 | 33 | public void setDescription(String description) { 34 | this.description = description; 35 | } 36 | 37 | public Integer getMaxCount() { 38 | return maxCount; 39 | } 40 | 41 | public void setMaxCount(Integer maxCount) { 42 | this.maxCount = maxCount; 43 | } 44 | 45 | public Date getCreateTime() { 46 | return createTime; 47 | } 48 | 49 | public void setCreateTime(Date createTime) { 50 | this.createTime = createTime; 51 | } 52 | 53 | public Integer getStatus() { 54 | return status; 55 | } 56 | 57 | public void setStatus(Integer status) { 58 | this.status = status; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/entity/Member.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.entity; 2 | 3 | import java.util.Date; 4 | 5 | public class Member { 6 | private Integer id; 7 | private String name; 8 | private String mobile; 9 | private String email; 10 | private Integer departmentId; 11 | private Integer orgId; 12 | private Date createTime; 13 | private Integer creatorId; 14 | private byte status; 15 | private String password; 16 | public Integer getId() { 17 | return id; 18 | } 19 | public void setId(Integer id) { 20 | this.id = id; 21 | } 22 | public String getName() { 23 | return name; 24 | } 25 | public void setName(String name) { 26 | this.name = name; 27 | } 28 | public String getMobile() { 29 | return mobile; 30 | } 31 | public void setMobile(String mobile) { 32 | this.mobile = mobile; 33 | } 34 | public String getEmail() { 35 | return email; 36 | } 37 | public void setEmail(String email) { 38 | this.email = email; 39 | } 40 | public Integer getDepartmentId() { 41 | return departmentId; 42 | } 43 | public void setDepartmentId(Integer departmentId) { 44 | this.departmentId = departmentId; 45 | } 46 | public Integer getOrgId() { 47 | return orgId; 48 | } 49 | public void setOrgId(Integer orgId) { 50 | this.orgId = orgId; 51 | } 52 | public Date getCreateTime() { 53 | return createTime; 54 | } 55 | public void setCreateTime(Date createTime) { 56 | this.createTime = createTime; 57 | } 58 | public Integer getCreatorId() { 59 | return creatorId; 60 | } 61 | public void setCreatorId(Integer creatorId) { 62 | this.creatorId = creatorId; 63 | } 64 | public byte getStatus() { 65 | return status; 66 | } 67 | public void setStatus(byte status) { 68 | this.status = status; 69 | } 70 | public String getPassword() { 71 | return password; 72 | } 73 | public void setPassword(String password) { 74 | this.password = password; 75 | } 76 | 77 | } 78 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/entity/Organization.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.entity; 2 | 3 | import java.util.Date; 4 | 5 | public class Organization { 6 | private Integer id; 7 | private Integer parentId; 8 | private String orgName; 9 | private String description; 10 | private Date createTime; 11 | private byte type; 12 | private byte status; 13 | public Integer getId() { 14 | return id; 15 | } 16 | public void setId(Integer id) { 17 | this.id = id; 18 | } 19 | public Integer getParentId() { 20 | return parentId; 21 | } 22 | public void setParentId(Integer parentId) { 23 | this.parentId = parentId; 24 | } 25 | public String getOrgName() { 26 | return orgName; 27 | } 28 | public void setOrgName(String orgName) { 29 | this.orgName = orgName; 30 | } 31 | public String getDescription() { 32 | return description; 33 | } 34 | public void setDescription(String description) { 35 | this.description = description; 36 | } 37 | public Date getCreateTime() { 38 | return createTime; 39 | } 40 | public void setCreateTime(Date createTime) { 41 | this.createTime = createTime; 42 | } 43 | public byte getType() { 44 | return type; 45 | } 46 | public void setType(byte type) { 47 | this.type = type; 48 | } 49 | public byte getStatus() { 50 | return status; 51 | } 52 | public void setStatus(byte status) { 53 | this.status = status; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/entity/PileProduct.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.entity; 2 | 3 | public class PileProduct { 4 | private int id; 5 | private Integer manufacturerId; 6 | private String name; 7 | private String description; 8 | private String model; 9 | private Double maxCurrent; 10 | private byte type; 11 | private String pic1; 12 | private String pic2; 13 | private String pic3; 14 | private String pic4; 15 | private byte status; 16 | 17 | public int getId() { 18 | return id; 19 | } 20 | 21 | public void setId(int id) { 22 | this.id = id; 23 | } 24 | 25 | public Integer getManufacturerId() { 26 | return manufacturerId; 27 | } 28 | 29 | public void setManufacturerId(Integer manufacturerId) { 30 | this.manufacturerId = manufacturerId; 31 | } 32 | 33 | public String getName() { 34 | return name; 35 | } 36 | 37 | public void setName(String name) { 38 | this.name = name; 39 | } 40 | 41 | public String getDescription() { 42 | return description; 43 | } 44 | 45 | public void setDescription(String description) { 46 | this.description = description; 47 | } 48 | 49 | public String getModel() { 50 | return model; 51 | } 52 | 53 | public void setModel(String model) { 54 | this.model = model; 55 | } 56 | 57 | public Double getMaxCurrent() { 58 | return maxCurrent; 59 | } 60 | 61 | public void setMaxCurrent(Double maxCurrent) { 62 | this.maxCurrent = maxCurrent; 63 | } 64 | 65 | public byte getType() { 66 | return type; 67 | } 68 | 69 | public void setType(byte type) { 70 | this.type = type; 71 | } 72 | 73 | public String getPic1() { 74 | return pic1; 75 | } 76 | 77 | public void setPic1(String pic1) { 78 | this.pic1 = pic1; 79 | } 80 | 81 | public String getPic2() { 82 | return pic2; 83 | } 84 | 85 | public void setPic2(String pic2) { 86 | this.pic2 = pic2; 87 | } 88 | 89 | public String getPic3() { 90 | return pic3; 91 | } 92 | 93 | public void setPic3(String pic3) { 94 | this.pic3 = pic3; 95 | } 96 | 97 | public String getPic4() { 98 | return pic4; 99 | } 100 | 101 | public void setPic4(String pic4) { 102 | this.pic4 = pic4; 103 | } 104 | 105 | public byte getStatus() { 106 | return status; 107 | } 108 | 109 | public void setStatus(byte status) { 110 | this.status = status; 111 | } 112 | } 113 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/entity/PileStation.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.entity; 2 | 3 | import java.util.Date; 4 | 5 | public class PileStation { 6 | private int id; 7 | private String name; 8 | private String description; 9 | private Date createTime; 10 | private Integer operatorId; 11 | private Integer creatorId; 12 | private Integer parentId; 13 | private Integer posId; 14 | private Integer type; 15 | private Integer status; 16 | 17 | public int getId() { 18 | return id; 19 | } 20 | 21 | public void setId(int id) { 22 | this.id = id; 23 | } 24 | 25 | public String getName() { 26 | return name; 27 | } 28 | 29 | public void setName(String name) { 30 | this.name = name; 31 | } 32 | 33 | public String getDescription() { 34 | return description; 35 | } 36 | 37 | public void setDescription(String description) { 38 | this.description = description; 39 | } 40 | 41 | public Date getCreateTime() { 42 | return createTime; 43 | } 44 | 45 | public void setCreateTime(Date createTime) { 46 | this.createTime = createTime; 47 | } 48 | 49 | public Integer getCreatorId() { 50 | return creatorId; 51 | } 52 | 53 | public void setCreatorId(Integer creatorId) { 54 | this.creatorId = creatorId; 55 | } 56 | 57 | public Integer getParentId() { 58 | return parentId; 59 | } 60 | 61 | public void setParentId(Integer parentId) { 62 | this.parentId = parentId; 63 | } 64 | 65 | public Integer getPosId() { 66 | return posId; 67 | } 68 | 69 | public void setPosId(Integer posId) { 70 | this.posId = posId; 71 | } 72 | 73 | public Integer getType() { 74 | return type; 75 | } 76 | 77 | public void setType(Integer type) { 78 | this.type = type; 79 | } 80 | 81 | public Integer getStatus() { 82 | return status; 83 | } 84 | 85 | public void setStatus(Integer status) { 86 | this.status = status; 87 | } 88 | 89 | public Integer getOperatorId() { 90 | return operatorId; 91 | } 92 | 93 | public void setOperatorId(Integer operatorId) { 94 | this.operatorId = operatorId; 95 | } 96 | } 97 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/enums/ChargingStateEnum.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.enums; 2 | 3 | public enum ChargingStateEnum { 4 | // 0x01 车位空闲 5 | // 0x02 车牌识别成功 6 | // 0x03 车辆充电枪刚插好 7 | // 0x04 正在充电 8 | // 0x05 车充满 9 | // 0x06 枪断开连接 10 | // 0x07 车离开,车位空闲 11 | IDLE (1,"空闲"), 12 | PARK_START (2,"请求充电"), 13 | CHARGING_BEGIN (3,"开始充电"), 14 | CHARGING (4,"正在充电"), 15 | CHARGING_FULL (5,"电已充满"), 16 | CHARGING_END (6,"充电结束"), 17 | PARK_END (7,"离开车位"); 18 | 19 | private int code; 20 | private String name; 21 | 22 | ChargingStateEnum(int code,String name){ 23 | this.code=code; 24 | this.name=name; 25 | } 26 | public static ChargingStateEnum getByCode(int code){ 27 | for(ChargingStateEnum e:values()){ 28 | if(e.getCode()==code) 29 | return e; 30 | } 31 | return null; 32 | } 33 | public int getCode() { 34 | return code; 35 | } 36 | 37 | public void setCode(int code) { 38 | this.code = code; 39 | } 40 | 41 | public String getName() { 42 | return name; 43 | } 44 | 45 | public void setName(String name) { 46 | this.name = name; 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/enums/DeviceStateEnum.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.enums; 2 | 3 | 4 | //0x01 设备正常 5 | //0x02 网络异常 6 | //0x03 设备无法访问 7 | //0x04 绝缘故障 8 | //0x05 漏电故障 9 | // 0x06 电压异常故障 10 | // 0x07 交流接触器故障 11 | //0x08 直流接触器故障 12 | //0x09 连接器故障 13 | //0x0A 温度过高 14 | //0x0B 防雷故障 15 | //0x0C 通讯故障 16 | 17 | public enum DeviceStateEnum { 18 | WELL (1, "设备正常"), 19 | NET_ERROR (2, "网络异常"), 20 | ACCESS_ERROR (3, "设备无法访问"), 21 | INSULATION_ERROR (4, "绝缘故障"), 22 | LEAKAGE_ERROR (5, "漏电故障"), 23 | VOLTAGE_ERROR (6, "电压异常故障"), 24 | AC_CONTACTOR_ERROR (7, "交流接触器故障"), 25 | DC_CONTACTOR_ERROR (8, "直流接触器故障"), 26 | CONNECTOR_ERROR (9, "连接器故障"), 27 | TEMPERATURE_ERROR (10, "温度过高"), 28 | LIGHTING_PROTECTION_ERROR (11, "防雷故障"), 29 | COMMUNICATION_ERROR (12, "通讯故障"); 30 | /** 31 | * 类型值 32 | */ 33 | public int code; 34 | /** 35 | * 描述 36 | */ 37 | public String describe; 38 | 39 | DeviceStateEnum(int code, String describe) { 40 | this.code = code; 41 | this.describe = describe; 42 | } 43 | 44 | public static DeviceStateEnum getByCode(int code){ 45 | for(DeviceStateEnum state:values()){ 46 | if(state.code==code) 47 | return state; 48 | } 49 | return null; 50 | } 51 | 52 | public int getCode() { 53 | return code; 54 | } 55 | 56 | public void setCode(int code) { 57 | this.code = code; 58 | } 59 | 60 | public String getDescribe() { 61 | return describe; 62 | } 63 | 64 | public void setDescribe(String describe) { 65 | this.describe = describe; 66 | } 67 | 68 | } 69 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/enums/PayMethodEnum.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.enums; 2 | 3 | public enum PayMethodEnum { 4 | BALANCE (1,"余额"), 5 | WX (2,"微信"), 6 | ALI (3,"支付宝"), 7 | CASH (4,"现金"); 8 | private int code; 9 | private String name; 10 | 11 | PayMethodEnum(int code,String name){ 12 | this.code=code; 13 | this.name=name; 14 | } 15 | 16 | public int getCode() { 17 | return code; 18 | } 19 | 20 | public void setCode(int code) { 21 | this.code = code; 22 | } 23 | 24 | public String getName() { 25 | return name; 26 | } 27 | 28 | public void setName(String name) { 29 | this.name = name; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/exception/DataException.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.exception; 2 | 3 | 4 | /** 5 | * Created by lwj on 2017/10/26. 6 | */ 7 | public class DataException extends Exception { 8 | private ExceptionResponse response; 9 | 10 | public DataException(DataExceptionEnum exception) { 11 | response = ExceptionResponse.create(exception.description); 12 | } 13 | 14 | public ExceptionResponse getResponse() { 15 | return response; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/exception/DataExceptionEnum.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.exception; 2 | 3 | /** 4 | * Created with IntelliJ IDEA 5 | * User : jono 6 | * Date : 2017/11/1 7 | */ 8 | public enum DataExceptionEnum { 9 | PARAMS_ERROR ("20001","参数错误"), 10 | MANUFACTURER_IS_NOT_EXIST ("20002","厂商不存在"), 11 | USER_IS_NOT_EXIST ("20003","用户不存在"), 12 | PASSWORD_IS_ERROR ("20004","密码错误"), 13 | USER_IS_EXIST ("20005","该用户已注册"), 14 | BALANCE ("20006","余额不足"), 15 | PLATE_NO_IS_EXIST ("20007","车牌号已存在"), 16 | PRODUCT_IS_NOT_EXIST ("20008","产品不存在"), 17 | PILE_IS_NOW_EXIST ("20009","充电桩不存在"), 18 | NOT_SET_PRICE ("20010","未设置价格"), 19 | GROUP_IS_NOT_EXIST ("20011","充电站不存在"), 20 | NO_RESOURCE ("20012","当前没有资源"), 21 | NO_GROUPS ("20013","当前没有充电站"), 22 | ACCESS_TOKEN_EEOR ("20014","用户授权码错误"), 23 | ALREADY_PAYED ("20015","重复为已支付账单付费"), 24 | 25 | 26 | SERVER_INNER_ERROR ("00000","服务器内部错误"); 27 | public String value; 28 | public String description; 29 | 30 | DataExceptionEnum(String value, String description) { 31 | this.value = value; 32 | this.description = description; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/exception/ExceptionResponse.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.exception; 2 | 3 | /** 4 | * Created by lwj on 2017/10/26. 5 | */ 6 | public class ExceptionResponse { 7 | private String message; 8 | 9 | /** 10 | * Construction Method 11 | * 12 | * @param message 13 | */ 14 | public ExceptionResponse(String message) { 15 | this.message = message; 16 | } 17 | 18 | public static ExceptionResponse create(String message) { 19 | return new ExceptionResponse(message); 20 | } 21 | 22 | 23 | public String getMessage() { 24 | return message; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/interceptor/UserAccessInterceptor.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.interceptor; 2 | 3 | import javax.servlet.http.HttpServletRequest; 4 | import javax.servlet.http.HttpServletResponse; 5 | 6 | import org.slf4j.Logger; 7 | import org.slf4j.LoggerFactory; 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.stereotype.Component; 10 | import org.springframework.web.servlet.HandlerInterceptor; 11 | import org.springframework.web.servlet.ModelAndView; 12 | 13 | import com.alibaba.fastjson.JSON; 14 | import com.jczc.operatorweb.model.ChargingUser; 15 | import com.jczc.operatorweb.service.UserService; 16 | import com.jczc.operatorweb.util.ResponseModel; 17 | @Component 18 | public class UserAccessInterceptor implements HandlerInterceptor{ 19 | private static Logger logger= LoggerFactory.getLogger(UserAccessInterceptor.class); 20 | @Autowired 21 | private UserService userService; 22 | @Override 23 | public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object arg2) throws Exception { 24 | // TODO Auto-generated method stub 25 | logger.info("user access "+ request.getRequestURI()); 26 | String token=request.getParameter("accessToken"); 27 | response.setCharacterEncoding("UTF-8"); 28 | response.setContentType("application/json; charset=utf-8"); 29 | if(token==null){ 30 | ResponseModel res=new ResponseModel<>(false,"请带上accessToken访问"+request.getRequestURI(),null); 31 | response.getWriter().write(JSON.toJSONString(res)); 32 | return false; 33 | } 34 | ChargingUser user=userService.getUserByAccessToken(token); 35 | if(user==null){ 36 | ResponseModel res=new ResponseModel<>(false,"access_token不存在或过期",null); 37 | response.getWriter().write(JSON.toJSONString(res)); 38 | return false; 39 | } 40 | logger.info("get charging user by accessToken:"+token+",user:"+JSON.toJSONString(user)); 41 | request.setAttribute("curUser", user); 42 | return true; 43 | } 44 | @Override 45 | public void afterCompletion(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, Exception arg3) 46 | throws Exception { 47 | // TODO Auto-generated method stub 48 | 49 | } 50 | 51 | @Override 52 | public void postHandle(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, ModelAndView arg3) 53 | throws Exception { 54 | // TODO Auto-generated method stub 55 | 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/interceptor/UserLoginInterceptor.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.interceptor; 2 | 3 | import javax.servlet.http.HttpServletRequest; 4 | import javax.servlet.http.HttpServletResponse; 5 | 6 | import org.slf4j.Logger; 7 | import org.slf4j.LoggerFactory; 8 | import org.springframework.web.servlet.HandlerInterceptor; 9 | import org.springframework.web.servlet.ModelAndView; 10 | 11 | public class UserLoginInterceptor implements HandlerInterceptor{ 12 | private static Logger logger= LoggerFactory.getLogger(UserLoginInterceptor.class); 13 | @Override 14 | public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object arg2, Exception arg3) 15 | throws Exception { 16 | 17 | } 18 | 19 | @Override 20 | public void postHandle(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, ModelAndView arg3) 21 | throws Exception { 22 | // TODO Auto-generated method stub 23 | 24 | } 25 | 26 | @Override 27 | public boolean preHandle(HttpServletRequest request, HttpServletResponse arg1, Object arg2) throws Exception { 28 | // TODO Auto-generated method stub 29 | logger.info("充电用户访问了:"+request.getRequestURI()); 30 | return true; 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/model/AccountDetail.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.model; 2 | 3 | import java.util.Date; 4 | 5 | /** 6 | * Created by LWJ on 2017/10/22. 7 | */ 8 | 9 | public class AccountDetail { 10 | private long id; 11 | private Double amount; 12 | private Date changeTime; 13 | private String remark; 14 | private Integer type; 15 | private long accountId; 16 | private String payFrom; 17 | private String payOrderId; 18 | private String payUserId; 19 | private Integer payStatus; 20 | 21 | public long getId() { 22 | return id; 23 | } 24 | 25 | public void setId(long id) { 26 | this.id = id; 27 | } 28 | 29 | public Double getAmount() { 30 | return amount; 31 | } 32 | 33 | public void setAmount(Double amount) { 34 | this.amount = amount; 35 | } 36 | 37 | public Date getChangeTime() { 38 | return changeTime; 39 | } 40 | 41 | public void setChangeTime(Date changeTime) { 42 | this.changeTime = changeTime; 43 | } 44 | 45 | public String getRemark() { 46 | return remark; 47 | } 48 | 49 | public void setRemark(String remark) { 50 | this.remark = remark; 51 | } 52 | 53 | public Integer getType() { 54 | return type; 55 | } 56 | 57 | public void setType(Integer type) { 58 | this.type = type; 59 | } 60 | 61 | public long getAccountId() { 62 | return accountId; 63 | } 64 | 65 | public void setAccountId(long accountId) { 66 | this.accountId = accountId; 67 | } 68 | 69 | public String getPayFrom() { 70 | return payFrom; 71 | } 72 | 73 | public void setPayFrom(String payFrom) { 74 | this.payFrom = payFrom; 75 | } 76 | 77 | public String getPayOrderId() { 78 | return payOrderId; 79 | } 80 | 81 | public void setPayOrderId(String payOrderId) { 82 | this.payOrderId = payOrderId; 83 | } 84 | 85 | public String getPayUserId() { 86 | return payUserId; 87 | } 88 | 89 | public void setPayUserId(String payUserId) { 90 | this.payUserId = payUserId; 91 | } 92 | 93 | public Integer getPayStatus() { 94 | return payStatus; 95 | } 96 | 97 | public void setPayStatus(Integer payStatus) { 98 | this.payStatus = payStatus; 99 | } 100 | } 101 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/model/AreaAndStations.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.model; 2 | 3 | import com.jczc.operatorweb.entity.PileStation; 4 | 5 | import java.util.List; 6 | 7 | public class AreaAndStations { 8 | private Integer zoneId; 9 | private String zoneName; 10 | private Integer cityId; 11 | private String cityName; 12 | private Integer provinceId; 13 | private String provinceName; 14 | private List pileStations; 15 | 16 | public Integer getZoneId() { 17 | return zoneId; 18 | } 19 | 20 | public void setZoneId(Integer zoneId) { 21 | this.zoneId = zoneId; 22 | } 23 | 24 | public String getZoneName() { 25 | return zoneName; 26 | } 27 | 28 | public void setZoneName(String zoneName) { 29 | this.zoneName = zoneName; 30 | } 31 | 32 | public Integer getCityId() { 33 | return cityId; 34 | } 35 | 36 | public void setCityId(Integer cityId) { 37 | this.cityId = cityId; 38 | } 39 | 40 | public String getCityName() { 41 | return cityName; 42 | } 43 | 44 | public void setCityName(String cityName) { 45 | this.cityName = cityName; 46 | } 47 | 48 | public Integer getProvinceId() { 49 | return provinceId; 50 | } 51 | 52 | public void setProvinceId(Integer provinceId) { 53 | this.provinceId = provinceId; 54 | } 55 | 56 | public String getProvinceName() { 57 | return provinceName; 58 | } 59 | 60 | public void setProvinceName(String provinceName) { 61 | this.provinceName = provinceName; 62 | } 63 | 64 | public List getPileStations() { 65 | return pileStations; 66 | } 67 | 68 | public void setPileStations(List pileStations) { 69 | this.pileStations = pileStations; 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/model/ChargedFeeList.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.model; 2 | 3 | import java.util.Date; 4 | 5 | /** 6 | * Created by LWJ on 2017/10/22. 7 | */ 8 | public class ChargedFeeList { 9 | private long id; 10 | private Double fee; 11 | private Date createTime; 12 | private double electricity; 13 | private Date feeTime; 14 | private Integer feeType; 15 | private String remark; 16 | private Integer status; 17 | private long accountDetailId; 18 | private long chargedListId; 19 | 20 | public long getId() { 21 | return id; 22 | } 23 | 24 | public void setId(long id) { 25 | this.id = id; 26 | } 27 | 28 | public Double getFee() { 29 | return fee; 30 | } 31 | 32 | public void setFee(Double fee) { 33 | this.fee = fee; 34 | } 35 | 36 | public Date getFeeTime() { 37 | return feeTime; 38 | } 39 | 40 | public void setFeeTime(Date feeTime) { 41 | this.feeTime = feeTime; 42 | } 43 | public Date getCreateTime() { 44 | return createTime; 45 | } 46 | 47 | public void setCreateTime(Date createTime) { 48 | this.createTime = createTime; 49 | } 50 | 51 | public double getElectricity() { 52 | return electricity; 53 | } 54 | 55 | public void setElectricity(double electricity) { 56 | this.electricity = electricity; 57 | } 58 | public String getRemark() { 59 | return remark; 60 | } 61 | 62 | public void setRemark(String remark) { 63 | this.remark = remark; 64 | } 65 | 66 | public Integer getStatus() { 67 | return status; 68 | } 69 | 70 | public void setStatus(Integer status) { 71 | this.status = status; 72 | } 73 | 74 | public long getAccountDetailId() { 75 | return accountDetailId; 76 | } 77 | 78 | public void setAccountDetailId(long accountDetailId) { 79 | this.accountDetailId = accountDetailId; 80 | } 81 | 82 | public long getChargedListId() { 83 | return chargedListId; 84 | } 85 | 86 | public void setChargedListId(long chargedListId) { 87 | this.chargedListId = chargedListId; 88 | } 89 | 90 | public Integer getFeeType() { 91 | return feeType; 92 | } 93 | 94 | public void setFeeType(Integer feeType) { 95 | this.feeType = feeType; 96 | } 97 | } -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/model/ChargedListInfo.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.model; 2 | 3 | import java.util.Date; 4 | 5 | public class ChargedListInfo { 6 | private Long id; 7 | private Date createTime; 8 | private Date chargingBeginTime; 9 | private Date chargingFullTime; 10 | private Date chargingEndTime; 11 | private Date parkingBegenTime; 12 | private Date parkingEndTime; 13 | private String chargingPileNo; 14 | private String vehicleNo; 15 | private Integer chargingUserId; 16 | private Integer status; 17 | public Long getId() { 18 | return id; 19 | } 20 | public void setId(Long id) { 21 | this.id = id; 22 | } 23 | public Date getChargingBeginTime() { 24 | return chargingBeginTime; 25 | } 26 | public void setChargingBeginTime(Date chargingBeginTime) { 27 | this.chargingBeginTime = chargingBeginTime; 28 | } 29 | public Date getChargingEndTime() { 30 | return chargingEndTime; 31 | } 32 | public void setChargingEndTime(Date chargingEndTime) { 33 | this.chargingEndTime = chargingEndTime; 34 | } 35 | public String getVehicleNo() { 36 | return vehicleNo; 37 | } 38 | public void setVehicleNo(String vehicleNo) { 39 | this.vehicleNo = vehicleNo; 40 | } 41 | public Integer getStatus() { 42 | return status; 43 | } 44 | public void setStatus(Integer status) { 45 | this.status = status; 46 | } 47 | public Date getCreateTime() { 48 | return createTime; 49 | } 50 | public void setCreateTime(Date createTime) { 51 | this.createTime = createTime; 52 | } 53 | public Date getChargingFullTime() { 54 | return chargingFullTime; 55 | } 56 | public void setChargingFullTime(Date chargingFullTime) { 57 | this.chargingFullTime = chargingFullTime; 58 | } 59 | public Date getParkingBegenTime() { 60 | return parkingBegenTime; 61 | } 62 | public void setParkingBegenTime(Date parkingBegenTime) { 63 | this.parkingBegenTime = parkingBegenTime; 64 | } 65 | public Date getParkingEndTime() { 66 | return parkingEndTime; 67 | } 68 | public void setParkingEndTime(Date parkingEndTime) { 69 | this.parkingEndTime = parkingEndTime; 70 | } 71 | 72 | public String getChargingPileNo() { 73 | return chargingPileNo; 74 | } 75 | public void setChargingPileNo(String chargingPileNo) { 76 | this.chargingPileNo = chargingPileNo; 77 | } 78 | public Integer getChargingUserId() { 79 | return chargingUserId; 80 | } 81 | public void setChargingUserId(Integer chargingUserId) { 82 | this.chargingUserId = chargingUserId; 83 | } 84 | 85 | } 86 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/model/ChargingDataInfo.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.model; 2 | 3 | import java.util.Date; 4 | 5 | public class ChargingDataInfo { 6 | private Long id; 7 | private String pileNo; 8 | private Date receiveTime; 9 | private Double current;//电流 10 | private Double electricity;//电量 11 | private Double power;//功率 12 | private Double voltage;//电压 13 | public ChargingDataInfo(Long id,String pileNo,Date receiveTime, 14 | double current,double electricity,double power,double voltage){ 15 | this.id=id; 16 | this.pileNo=pileNo; 17 | this.receiveTime=receiveTime; 18 | this.current=current; 19 | this.electricity=electricity; 20 | this.power=power; 21 | this.voltage=voltage; 22 | } 23 | public ChargingDataInfo(){} 24 | public Long getId() { 25 | return id; 26 | } 27 | public void setId(Long id) { 28 | this.id = id; 29 | } 30 | public String getPileNo() { 31 | return pileNo; 32 | } 33 | public void setPileNo(String pileNo) { 34 | this.pileNo = pileNo; 35 | } 36 | public Date getReceiveTime() { 37 | return receiveTime; 38 | } 39 | public void setReceiveTime(Date receiveTime) { 40 | this.receiveTime = receiveTime; 41 | } 42 | public Double getCurrent() { 43 | return current; 44 | } 45 | public void setCurrent(Double current) { 46 | this.current = current; 47 | } 48 | public Double getElectricity() { 49 | return electricity; 50 | } 51 | public void setElectricity(Double electricity) { 52 | this.electricity = electricity; 53 | } 54 | public Double getPower() { 55 | return power; 56 | } 57 | public void setPower(Double power) { 58 | this.power = power; 59 | } 60 | public Double getVoltage() { 61 | return voltage; 62 | } 63 | public void setVoltage(Double voltage) { 64 | this.voltage = voltage; 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/model/ChargingFeeInfo.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.model; 2 | 3 | import java.util.Date; 4 | 5 | public class ChargingFeeInfo { 6 | private Integer userId;// 7 | private String pileNo;// 8 | private Date startTime;// 9 | private Date endTime;// 10 | private Long chargedListId;// 11 | private Long accountDetailId;// 12 | private double totolElectricity;// 13 | private double money;// 14 | private Integer status;// 15 | public Integer getUserId() { 16 | return userId; 17 | } 18 | public void setUserId(Integer userId) { 19 | this.userId = userId; 20 | } 21 | public String getPileNo() { 22 | return pileNo; 23 | } 24 | public void setPileNo(String pileNo) { 25 | this.pileNo = pileNo; 26 | } 27 | public Date getStartTime() { 28 | return startTime; 29 | } 30 | public void setStartTime(Date startTime) { 31 | this.startTime = startTime; 32 | } 33 | public Date getEndTime() { 34 | return endTime; 35 | } 36 | public void setEndTime(Date endTime) { 37 | this.endTime = endTime; 38 | } 39 | public Long getChargedListId() { 40 | return chargedListId; 41 | } 42 | public void setChargedListId(Long chargedListId) { 43 | this.chargedListId = chargedListId; 44 | } 45 | public double getMoney() { 46 | return money; 47 | } 48 | public void setMoney(double money) { 49 | this.money = money; 50 | } 51 | public double getTotolElectricity() { 52 | return totolElectricity; 53 | } 54 | public void setTotolElectricity(double totolElectricity) { 55 | this.totolElectricity = totolElectricity; 56 | } 57 | public Integer getStatus() { 58 | return status; 59 | } 60 | public void setStatus(Integer status) { 61 | this.status = status; 62 | } 63 | public Long getAccountDetailId() { 64 | return accountDetailId; 65 | } 66 | public void setAccountDetailId(Long accountDetailId) { 67 | this.accountDetailId = accountDetailId; 68 | } 69 | 70 | } 71 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/model/ChargingPriceInfo.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.model; 2 | 3 | import java.util.Date; 4 | 5 | public class ChargingPriceInfo { 6 | private Integer id; 7 | private String name; 8 | private String description; 9 | private Date createTime; 10 | private Integer creatorId; 11 | private Integer operatorId; 12 | private byte status; 13 | private double uniPrice; 14 | public Integer getId() { 15 | return id; 16 | } 17 | public void setId(Integer id) { 18 | this.id = id; 19 | } 20 | public String getName() { 21 | return name; 22 | } 23 | public void setName(String name) { 24 | this.name = name; 25 | } 26 | public String getDescription() { 27 | return description; 28 | } 29 | public void setDescription(String description) { 30 | this.description = description; 31 | } 32 | public Date getCreateTime() { 33 | return createTime; 34 | } 35 | public void setCreateTime(Date createTime) { 36 | this.createTime = createTime; 37 | } 38 | public Integer getCreatorId() { 39 | return creatorId; 40 | } 41 | public void setCreatorId(Integer creatorId) { 42 | this.creatorId = creatorId; 43 | } 44 | public Integer getOperatorId() { 45 | return operatorId; 46 | } 47 | public void setOperatorId(Integer operatorId) { 48 | this.operatorId = operatorId; 49 | } 50 | public byte getStatus() { 51 | return status; 52 | } 53 | public void setStatus(byte status) { 54 | this.status = status; 55 | } 56 | public double getUniPrice() { 57 | return uniPrice; 58 | } 59 | public void setUniPrice(double uniPrice) { 60 | this.uniPrice = uniPrice; 61 | } 62 | 63 | 64 | } 65 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/model/ChargingStatisticRequireMent.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.model; 2 | 3 | import java.util.Date; 4 | 5 | public class ChargingStatisticRequireMent { 6 | private Integer zoneId = -1; 7 | private Integer cityId = -1; 8 | private Integer provinceId = -1; 9 | private String pileIdentification; 10 | private String chargingUserName; 11 | private Integer status; 12 | private Date beginTime; 13 | private Date endTime; 14 | 15 | public Integer getZoneId() { 16 | return zoneId; 17 | } 18 | 19 | public void setZoneId(Integer zoneId) { 20 | this.zoneId = zoneId; 21 | } 22 | 23 | public Integer getCityId() { 24 | return cityId; 25 | } 26 | 27 | public void setCityId(Integer cityId) { 28 | this.cityId = cityId; 29 | } 30 | 31 | public Integer getProvinceId() { 32 | return provinceId; 33 | } 34 | 35 | public void setProvinceId(Integer provinceId) { 36 | this.provinceId = provinceId; 37 | } 38 | 39 | public String getPileIdentification() { 40 | return pileIdentification; 41 | } 42 | 43 | public void setPileIdentification(String pileIdentification) { 44 | this.pileIdentification = pileIdentification; 45 | } 46 | 47 | public String getChargingUserName() { 48 | return chargingUserName; 49 | } 50 | 51 | public void setChargingUserName(String chargingUserName) { 52 | this.chargingUserName = chargingUserName; 53 | } 54 | 55 | public Integer getStatus() { 56 | return status; 57 | } 58 | 59 | public void setStatus(Integer status) { 60 | this.status = status; 61 | } 62 | 63 | public Date getBeginTime() { 64 | return beginTime; 65 | } 66 | 67 | public void setBeginTime(Date beginTime) { 68 | this.beginTime = beginTime; 69 | } 70 | 71 | public Date getEndTime() { 72 | return endTime; 73 | } 74 | 75 | public void setEndTime(Date endTime) { 76 | this.endTime = endTime; 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/model/ChargingUser.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.model; 2 | 3 | 4 | /** 5 | * Created by LWJ on 2017/10/22. 6 | */ 7 | 8 | public class ChargingUser { 9 | private int id; 10 | private String name; 11 | private String mobile; 12 | private String email; 13 | private String password; 14 | private Integer score; 15 | private Integer type; 16 | private String accessToken; 17 | 18 | public int getId() { 19 | return id; 20 | } 21 | 22 | public void setId(int id) { 23 | this.id = id; 24 | } 25 | 26 | public String getName() { 27 | return name; 28 | } 29 | 30 | public void setName(String name) { 31 | this.name = name; 32 | } 33 | 34 | public String getMobile() { 35 | return mobile; 36 | } 37 | 38 | public void setMobile(String mobile) { 39 | this.mobile = mobile; 40 | } 41 | 42 | public String getEmail() { 43 | return email; 44 | } 45 | 46 | public void setEmail(String email) { 47 | this.email = email; 48 | } 49 | 50 | public String getPassword() { 51 | return password; 52 | } 53 | 54 | public void setPassword(String password) { 55 | this.password = password; 56 | } 57 | 58 | public Integer getScore() { 59 | return score; 60 | } 61 | 62 | public void setScore(Integer score) { 63 | this.score = score; 64 | } 65 | 66 | public Integer getType() { 67 | return type; 68 | } 69 | 70 | public void setType(Integer type) { 71 | this.type = type; 72 | } 73 | 74 | public String getAccessToken() { 75 | return accessToken; 76 | } 77 | 78 | public void setAccessToken(String accessToken) { 79 | this.accessToken = accessToken; 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/model/DeviceStateInfo.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.model; 2 | 3 | import java.util.Date; 4 | 5 | public class DeviceStateInfo { 6 | private Long id; 7 | private String deviceNo; 8 | private Integer code; 9 | private String name; 10 | private Date receiveTime; 11 | private Integer status; 12 | private Integer handlerId; 13 | private Date handleTime; 14 | private String remark; 15 | 16 | public int getCode() { 17 | return code; 18 | } 19 | public void setCode(int code) { 20 | this.code = code; 21 | } 22 | public Long getId() { 23 | return id; 24 | } 25 | public void setId(Long id) { 26 | this.id = id; 27 | } 28 | public String getDeviceNo() { 29 | return deviceNo; 30 | } 31 | public void setDeviceNo(String deviceNo) { 32 | this.deviceNo = deviceNo; 33 | } 34 | public String getName() { 35 | return name; 36 | } 37 | public void setName(String name) { 38 | this.name = name; 39 | } 40 | public Integer getStatus() { 41 | return status; 42 | } 43 | public void setStatus(Integer status) { 44 | this.status = status; 45 | } 46 | public Integer getHandlerId() { 47 | return handlerId; 48 | } 49 | public void setHandlerId(Integer handlerId) { 50 | this.handlerId = handlerId; 51 | } 52 | public Date getHandleTime() { 53 | return handleTime; 54 | } 55 | public void setHandleTime(Date handleTime) { 56 | this.handleTime = handleTime; 57 | } 58 | public String getRemark() { 59 | return remark; 60 | } 61 | public void setRemark(String remark) { 62 | this.remark = remark; 63 | } 64 | public void setCode(Integer code) { 65 | this.code = code; 66 | } 67 | public Date getReceiveTime() { 68 | return receiveTime; 69 | } 70 | public void setReceiveTime(Date receiveTime) { 71 | this.receiveTime = receiveTime; 72 | } 73 | 74 | } 75 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/model/GroupCityMessage.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.model; 2 | 3 | public class GroupCityMessage { 4 | private Integer id; 5 | private String name; 6 | private Integer provinceId; 7 | private String provinceName; 8 | private Integer stationNum; 9 | private Integer groupNum; 10 | private Integer pileNum; 11 | 12 | public Integer getId() { 13 | return id; 14 | } 15 | 16 | public void setId(Integer id) { 17 | this.id = id; 18 | } 19 | 20 | public String getName() { 21 | return name; 22 | } 23 | 24 | public void setName(String name) { 25 | this.name = name; 26 | } 27 | 28 | public String getProvinceName() { 29 | return provinceName; 30 | } 31 | 32 | public void setProvinceName(String provinceName) { 33 | this.provinceName = provinceName; 34 | } 35 | 36 | public Integer getStationNum() { 37 | return stationNum; 38 | } 39 | 40 | public void setStationNum(Integer stationNum) { 41 | this.stationNum = stationNum; 42 | } 43 | 44 | public Integer getGroupNum() { 45 | return groupNum; 46 | } 47 | 48 | public void setGroupNum(Integer groupNum) { 49 | this.groupNum = groupNum; 50 | } 51 | 52 | public Integer getPileNum() { 53 | return pileNum; 54 | } 55 | 56 | public void setPileNum(Integer pileNum) { 57 | this.pileNum = pileNum; 58 | } 59 | 60 | public Integer getProvinceId() { 61 | return provinceId; 62 | } 63 | 64 | public void setProvinceId(Integer provinceId) { 65 | this.provinceId = provinceId; 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/model/GroupProvinceMessage.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.model; 2 | 3 | public class GroupProvinceMessage { 4 | private Integer id; 5 | private String name; 6 | private Integer stationNum; 7 | private Integer groupNum; 8 | private Integer pileNum; 9 | 10 | public Integer getId() { 11 | return id; 12 | } 13 | 14 | public void setId(Integer id) { 15 | this.id = id; 16 | } 17 | 18 | public String getName() { 19 | return name; 20 | } 21 | 22 | public void setName(String name) { 23 | this.name = name; 24 | } 25 | 26 | public Integer getStationNum() { 27 | return stationNum; 28 | } 29 | 30 | public void setStationNum(Integer stationNum) { 31 | this.stationNum = stationNum; 32 | } 33 | 34 | public Integer getGroupNum() { 35 | return groupNum; 36 | } 37 | 38 | public void setGroupNum(Integer groupNum) { 39 | this.groupNum = groupNum; 40 | } 41 | 42 | public Integer getPileNum() { 43 | return pileNum; 44 | } 45 | 46 | public void setPileNum(Integer pileNum) { 47 | this.pileNum = pileNum; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/model/GroupRequireMent.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.model; 2 | 3 | public class GroupRequireMent { 4 | private Integer zoneId = -1; 5 | private Integer cityId = -1; 6 | private Integer provinceId = -1; 7 | private String stationName; 8 | private String groupName; 9 | private Integer status = 1; 10 | 11 | public Integer getZoneId() { 12 | return zoneId; 13 | } 14 | 15 | public void setZoneId(Integer zoneId) { 16 | this.zoneId = zoneId; 17 | } 18 | 19 | public Integer getCityId() { 20 | return cityId; 21 | } 22 | 23 | public void setCityId(Integer cityId) { 24 | this.cityId = cityId; 25 | } 26 | 27 | public Integer getProvinceId() { 28 | return provinceId; 29 | } 30 | 31 | public void setProvinceId(Integer provinceId) { 32 | this.provinceId = provinceId; 33 | } 34 | 35 | public String getStationName() { 36 | return stationName; 37 | } 38 | 39 | public void setStationName(String stationName) { 40 | this.stationName = stationName; 41 | } 42 | 43 | public String getGroupName() { 44 | return groupName; 45 | } 46 | 47 | public void setGroupName(String groupName) { 48 | this.groupName = groupName; 49 | } 50 | 51 | public Integer getStatus() { 52 | return status; 53 | } 54 | 55 | public void setStatus(Integer status) { 56 | this.status = status; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/model/GroupResource.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.model; 2 | 3 | public class GroupResource { 4 | private Integer groupTypeId; 5 | private String groupType; 6 | private Integer maxNum; 7 | private Integer allocNum; 8 | private Integer residueNum; 9 | 10 | public Integer getGroupTypeId() { 11 | return groupTypeId; 12 | } 13 | 14 | public void setGroupTypeId(Integer groupTypeId) { 15 | this.groupTypeId = groupTypeId; 16 | } 17 | 18 | public String getGroupType() { 19 | return groupType; 20 | } 21 | 22 | public void setGroupType(String groupType) { 23 | this.groupType = groupType; 24 | } 25 | 26 | public Integer getMaxNum() { 27 | return maxNum; 28 | } 29 | 30 | public void setMaxNum(Integer maxNum) { 31 | this.maxNum = maxNum; 32 | } 33 | 34 | public Integer getAllocNum() { 35 | return allocNum; 36 | } 37 | 38 | public void setAllocNum(Integer allocNum) { 39 | this.allocNum = allocNum; 40 | } 41 | 42 | public Integer getResidueNum() { 43 | return residueNum; 44 | } 45 | 46 | public void setResidueNum(Integer residueNum) { 47 | this.residueNum = residueNum; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/model/GroupStationMessage.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.model; 2 | 3 | 4 | public class GroupStationMessage { 5 | private Integer id; 6 | private String name; 7 | private Integer zoneId; 8 | private String zoneName; 9 | private Integer cityId; 10 | private String cityName; 11 | private Integer provinceId; 12 | private String provinceName; 13 | private String groupNum; 14 | private String pileNum; 15 | 16 | public Integer getId() { 17 | return id; 18 | } 19 | 20 | public void setId(Integer id) { 21 | this.id = id; 22 | } 23 | 24 | public String getName() { 25 | return name; 26 | } 27 | 28 | public void setName(String name) { 29 | this.name = name; 30 | } 31 | 32 | public String getZoneName() { 33 | return zoneName; 34 | } 35 | 36 | public void setZoneName(String zoneName) { 37 | this.zoneName = zoneName; 38 | } 39 | 40 | public String getCityName() { 41 | return cityName; 42 | } 43 | 44 | public void setCityName(String cityName) { 45 | this.cityName = cityName; 46 | } 47 | 48 | public String getProvinceName() { 49 | return provinceName; 50 | } 51 | 52 | public void setProvinceName(String provinceName) { 53 | this.provinceName = provinceName; 54 | } 55 | 56 | public String getGroupNum() { 57 | return groupNum; 58 | } 59 | 60 | public void setGroupNum(String groupNum) { 61 | this.groupNum = groupNum; 62 | } 63 | 64 | public String getPileNum() { 65 | return pileNum; 66 | } 67 | 68 | public void setPileNum(String pileNum) { 69 | this.pileNum = pileNum; 70 | } 71 | 72 | public Integer getZoneId() { 73 | return zoneId; 74 | } 75 | 76 | public void setZoneId(Integer zoneId) { 77 | this.zoneId = zoneId; 78 | } 79 | 80 | public Integer getCityId() { 81 | return cityId; 82 | } 83 | 84 | public void setCityId(Integer cityId) { 85 | this.cityId = cityId; 86 | } 87 | 88 | public Integer getProvinceId() { 89 | return provinceId; 90 | } 91 | 92 | public void setProvinceId(Integer provinceId) { 93 | this.provinceId = provinceId; 94 | } 95 | } 96 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/model/GroupZoneMessage.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.model; 2 | 3 | 4 | public class GroupZoneMessage { 5 | private Integer id; 6 | private String name; 7 | private Integer cityId; 8 | private String cityName; 9 | private Integer provinceId; 10 | private String provinceName; 11 | private Integer stationNum; 12 | private Integer groupNum; 13 | private Integer pileNum; 14 | 15 | public Integer getId() { 16 | return id; 17 | } 18 | 19 | public void setId(Integer id) { 20 | this.id = id; 21 | } 22 | 23 | public String getName() { 24 | return name; 25 | } 26 | 27 | public void setName(String name) { 28 | this.name = name; 29 | } 30 | 31 | public String getCityName() { 32 | return cityName; 33 | } 34 | 35 | public void setCityName(String cityName) { 36 | this.cityName = cityName; 37 | } 38 | 39 | public String getProvinceName() { 40 | return provinceName; 41 | } 42 | 43 | public void setProvinceName(String provinceName) { 44 | this.provinceName = provinceName; 45 | } 46 | 47 | public Integer getStationNum() { 48 | return stationNum; 49 | } 50 | 51 | public void setStationNum(Integer stationNum) { 52 | this.stationNum = stationNum; 53 | } 54 | 55 | public Integer getGroupNum() { 56 | return groupNum; 57 | } 58 | 59 | public void setGroupNum(Integer groupNum) { 60 | this.groupNum = groupNum; 61 | } 62 | 63 | public Integer getPileNum() { 64 | return pileNum; 65 | } 66 | 67 | public void setPileNum(Integer pileNum) { 68 | this.pileNum = pileNum; 69 | } 70 | 71 | public Integer getCityId() { 72 | return cityId; 73 | } 74 | 75 | public void setCityId(Integer cityId) { 76 | this.cityId = cityId; 77 | } 78 | 79 | public Integer getProvinceId() { 80 | return provinceId; 81 | } 82 | 83 | public void setProvinceId(Integer provinceId) { 84 | this.provinceId = provinceId; 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/model/PileChargingState.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.model; 2 | 3 | import java.util.Date; 4 | 5 | 6 | public class PileChargingState { 7 | private String pileNo; 8 | private int code; 9 | private long receiveTime; 10 | //开始充电时间 11 | private Date chargingBeginTime; 12 | //停止充电时间 13 | private Date gunOffTime; 14 | //驶离时间 15 | private Date parkingOffTime; 16 | //车牌信息 17 | private String plateNumber; 18 | //电流 19 | private Double current; 20 | //电量 21 | private Double electricity; 22 | //功率 23 | private Double power; 24 | //电压 25 | private Double voltage; 26 | public String getPileNo() { 27 | return pileNo; 28 | } 29 | public void setPileNo(String pileNo) { 30 | this.pileNo = pileNo; 31 | } 32 | public int getCode() { 33 | return code; 34 | } 35 | public void setCode(int code) { 36 | this.code = code; 37 | } 38 | public long getReceiveTime() { 39 | return receiveTime; 40 | } 41 | public void setReceiveTime(long receiveTime) { 42 | this.receiveTime = receiveTime; 43 | } 44 | public Date getChargingBeginTime() { 45 | return chargingBeginTime; 46 | } 47 | public void setChargingBeginTime(Date chargingBeginTime) { 48 | this.chargingBeginTime = chargingBeginTime; 49 | } 50 | public Date getGunOffTime() { 51 | return gunOffTime; 52 | } 53 | public void setGunOffTime(Date gunOffTime) { 54 | this.gunOffTime = gunOffTime; 55 | } 56 | public Date getParkingOffTime() { 57 | return parkingOffTime; 58 | } 59 | public void setParkingOffTime(Date parkingOffTime) { 60 | this.parkingOffTime = parkingOffTime; 61 | } 62 | public String getPlateNumber() { 63 | return plateNumber; 64 | } 65 | public void setPlateNumber(String plateNumber) { 66 | this.plateNumber = plateNumber; 67 | } 68 | public Double getCurrent() { 69 | return current; 70 | } 71 | public void setCurrent(Double current) { 72 | this.current = current; 73 | } 74 | public Double getElectricity() { 75 | return electricity; 76 | } 77 | public void setElectricity(Double electricity) { 78 | this.electricity = electricity; 79 | } 80 | public Double getPower() { 81 | return power; 82 | } 83 | public void setPower(Double power) { 84 | this.power = power; 85 | } 86 | public Double getVoltage() { 87 | return voltage; 88 | } 89 | public void setVoltage(Double voltage) { 90 | this.voltage = voltage; 91 | } 92 | 93 | } 94 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/model/PileGroupInfo.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.model; 2 | 3 | public class PileGroupInfo { 4 | private Integer id; 5 | private String name; 6 | private Integer groupTypeId; 7 | private String groupType; 8 | private Integer pileNum; 9 | private Integer chargingPrice; 10 | private Integer stationId; 11 | private String stationName; 12 | private Integer status; 13 | 14 | public Integer getId() { 15 | return id; 16 | } 17 | 18 | public void setId(Integer id) { 19 | this.id = id; 20 | } 21 | 22 | public String getName() { 23 | return name; 24 | } 25 | 26 | public void setName(String name) { 27 | this.name = name; 28 | } 29 | 30 | public Integer getGroupTypeId() { 31 | return groupTypeId; 32 | } 33 | 34 | public void setGroupTypeId(Integer groupTypeId) { 35 | this.groupTypeId = groupTypeId; 36 | } 37 | 38 | public String getGroupType() { 39 | return groupType; 40 | } 41 | 42 | public void setGroupType(String groupType) { 43 | this.groupType = groupType; 44 | } 45 | 46 | public Integer getPileNum() { 47 | return pileNum; 48 | } 49 | 50 | public void setPileNum(Integer pileNum) { 51 | this.pileNum = pileNum; 52 | } 53 | 54 | public Integer getChargingPrice() { 55 | return chargingPrice; 56 | } 57 | 58 | public void setChargingPrice(Integer chargingPrice) { 59 | this.chargingPrice = chargingPrice; 60 | } 61 | 62 | public Integer getStationId() { 63 | return stationId; 64 | } 65 | 66 | public void setStationId(Integer stationId) { 67 | this.stationId = stationId; 68 | } 69 | 70 | public String getStationName() { 71 | return stationName; 72 | } 73 | 74 | public void setStationName(String stationName) { 75 | this.stationName = stationName; 76 | } 77 | 78 | public Integer getStatus() { 79 | return status; 80 | } 81 | 82 | public void setStatus(Integer status) { 83 | this.status = status; 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/model/PileGroupMessage.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.model; 2 | 3 | 4 | public class PileGroupMessage { 5 | private Integer id; 6 | private String name; 7 | private String buildingsName; 8 | private String zoneName; 9 | private String cityName; 10 | private String provinceName; 11 | private String groupTypeName; 12 | private Integer maxNum = 0; 13 | private Integer usedNum = 0; 14 | 15 | public Integer getId() { 16 | return id; 17 | } 18 | 19 | public void setId(Integer id) { 20 | this.id = id; 21 | } 22 | 23 | public String getName() { 24 | return name; 25 | } 26 | 27 | public void setName(String name) { 28 | this.name = name; 29 | } 30 | 31 | public String getBuildingsName() { 32 | return buildingsName; 33 | } 34 | 35 | public void setBuildingsName(String buildingsName) { 36 | this.buildingsName = buildingsName; 37 | } 38 | 39 | public String getZoneName() { 40 | return zoneName; 41 | } 42 | 43 | public void setZoneName(String zoneName) { 44 | this.zoneName = zoneName; 45 | } 46 | 47 | public String getCityName() { 48 | return cityName; 49 | } 50 | 51 | public void setCityName(String cityName) { 52 | this.cityName = cityName; 53 | } 54 | 55 | public String getProvinceName() { 56 | return provinceName; 57 | } 58 | 59 | public void setProvinceName(String provinceName) { 60 | this.provinceName = provinceName; 61 | } 62 | 63 | public String getGroupTypeName() { 64 | return groupTypeName; 65 | } 66 | 67 | public void setGroupTypeName(String groupTypeName) { 68 | this.groupTypeName = groupTypeName; 69 | } 70 | 71 | public Integer getMaxNum() { 72 | return maxNum; 73 | } 74 | 75 | public void setMaxNum(Integer maxNum) { 76 | this.maxNum = maxNum; 77 | } 78 | 79 | public Integer getUsedNum() { 80 | return usedNum; 81 | } 82 | 83 | public void setUsedNum(Integer usedNum) { 84 | this.usedNum = usedNum; 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/model/PileStationMessage.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.model; 2 | 3 | public class PileStationMessage { 4 | private Integer id; 5 | private String name; 6 | private String zoneName; 7 | private String cityName; 8 | private String provinceName; 9 | 10 | public Integer getId() { 11 | return id; 12 | } 13 | 14 | public void setId(Integer id) { 15 | this.id = id; 16 | } 17 | 18 | public String getName() { 19 | return name; 20 | } 21 | 22 | public void setName(String name) { 23 | this.name = name; 24 | } 25 | 26 | public String getZoneName() { 27 | return zoneName; 28 | } 29 | 30 | public void setZoneName(String zoneName) { 31 | this.zoneName = zoneName; 32 | } 33 | 34 | public String getCityName() { 35 | return cityName; 36 | } 37 | 38 | public void setCityName(String cityName) { 39 | this.cityName = cityName; 40 | } 41 | 42 | public String getProvinceName() { 43 | return provinceName; 44 | } 45 | 46 | public void setProvinceName(String provinceName) { 47 | this.provinceName = provinceName; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/model/PileStatistic.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.model; 2 | 3 | public class PileStatistic { 4 | private Integer pileId; 5 | private String pileName; 6 | private Integer garageId; 7 | private String garageName; 8 | private String parkPotNo; 9 | private Integer totalChargingNum; 10 | private double totalChargingHours; 11 | private double totalChargingElectricity; 12 | private double totalChargingPrice; 13 | 14 | public Integer getPileId() { 15 | return pileId; 16 | } 17 | 18 | public void setPileId(Integer pileId) { 19 | this.pileId = pileId; 20 | } 21 | 22 | public String getPileName() { 23 | return pileName; 24 | } 25 | 26 | public void setPileName(String pileName) { 27 | this.pileName = pileName; 28 | } 29 | 30 | public Integer getGarageId() { 31 | return garageId; 32 | } 33 | 34 | public void setGarageId(Integer garageId) { 35 | this.garageId = garageId; 36 | } 37 | 38 | public String getGarageName() { 39 | return garageName; 40 | } 41 | 42 | public void setGarageName(String garageName) { 43 | this.garageName = garageName; 44 | } 45 | 46 | public String getParkPotNo() { 47 | return parkPotNo; 48 | } 49 | 50 | public void setParkPotNo(String parkPotNo) { 51 | this.parkPotNo = parkPotNo; 52 | } 53 | 54 | public double getTotalChargingHours() { 55 | return totalChargingHours; 56 | } 57 | 58 | public void setTotalChargingHours(double totalChargingHours) { 59 | this.totalChargingHours = totalChargingHours; 60 | } 61 | 62 | public double getTotalChargingElectricity() { 63 | return totalChargingElectricity; 64 | } 65 | 66 | public void setTotalChargingElectricity(double totalChargingElectricity) { 67 | this.totalChargingElectricity = totalChargingElectricity; 68 | } 69 | 70 | public double getTotalChargingPrice() { 71 | return totalChargingPrice; 72 | } 73 | 74 | public void setTotalChargingPrice(double totalChargingPrice) { 75 | this.totalChargingPrice = totalChargingPrice; 76 | } 77 | 78 | public Integer getTotalChargingNum() { 79 | return totalChargingNum; 80 | } 81 | 82 | public void setTotalChargingNum(Integer totalChargingNum) { 83 | this.totalChargingNum = totalChargingNum; 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/model/PileStatisticRequireMent.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.model; 2 | 3 | import java.util.Date; 4 | 5 | public class PileStatisticRequireMent { 6 | private Integer zoneId = -1; 7 | private Integer cityId = -1; 8 | private Integer provinceId = -1; 9 | private String pileName; 10 | private Date beginTime; 11 | private Date endTime; 12 | 13 | public Integer getZoneId() { 14 | return zoneId; 15 | } 16 | 17 | public void setZoneId(Integer zoneId) { 18 | this.zoneId = zoneId; 19 | } 20 | 21 | public Integer getCityId() { 22 | return cityId; 23 | } 24 | 25 | public void setCityId(Integer cityId) { 26 | this.cityId = cityId; 27 | } 28 | 29 | public Integer getProvinceId() { 30 | return provinceId; 31 | } 32 | 33 | public void setProvinceId(Integer provinceId) { 34 | this.provinceId = provinceId; 35 | } 36 | 37 | public String getPileName() { 38 | return pileName; 39 | } 40 | 41 | public void setPileName(String pileName) { 42 | this.pileName = pileName; 43 | } 44 | 45 | public Date getBeginTime() { 46 | return beginTime; 47 | } 48 | 49 | public void setBeginTime(Date beginTime) { 50 | this.beginTime = beginTime; 51 | } 52 | 53 | public Date getEndTime() { 54 | return endTime; 55 | } 56 | 57 | public void setEndTime(Date endTime) { 58 | this.endTime = endTime; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/model/StationAndElectrity.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.model; 2 | 3 | public class StationAndElectrity { 4 | private Integer id; 5 | private String name; 6 | private Integer zoneId; 7 | private Integer cityId; 8 | private Integer provinceId; 9 | private Integer pileNum = 0; 10 | private Integer chargingTimes=0;//充电次数 11 | private Double charginghours=0.0;//充电时长(小时) 12 | private Double electricity;//电量 13 | private Double chargingPrice;//电费 14 | 15 | public Integer getId() { 16 | return id; 17 | } 18 | 19 | public void setId(Integer id) { 20 | this.id = id; 21 | } 22 | 23 | public String getName() { 24 | return name; 25 | } 26 | 27 | public void setName(String name) { 28 | this.name = name; 29 | } 30 | 31 | public Integer getPileNum() { 32 | return pileNum; 33 | } 34 | 35 | public void setPileNum(Integer pileNum) { 36 | this.pileNum = pileNum; 37 | } 38 | 39 | public Integer getChargingTimes() { 40 | return chargingTimes; 41 | } 42 | 43 | public void setChargingTimes(Integer chargingTimes) { 44 | this.chargingTimes = chargingTimes; 45 | } 46 | 47 | public Double getCharginghours() { 48 | return charginghours; 49 | } 50 | 51 | public void setCharginghours(Double charginghours) { 52 | this.charginghours = charginghours; 53 | } 54 | 55 | public Double getElectricity() { 56 | return electricity; 57 | } 58 | 59 | public void setElectricity(Double electricity) { 60 | this.electricity = electricity; 61 | } 62 | 63 | public Double getChargingPrice() { 64 | return chargingPrice; 65 | } 66 | 67 | public void setChargingPrice(Double chargingPrice) { 68 | this.chargingPrice = chargingPrice; 69 | } 70 | 71 | public Integer getZoneId() { 72 | return zoneId; 73 | } 74 | 75 | public void setZoneId(Integer zoneId) { 76 | this.zoneId = zoneId; 77 | } 78 | 79 | public Integer getCityId() { 80 | return cityId; 81 | } 82 | 83 | public void setCityId(Integer cityId) { 84 | this.cityId = cityId; 85 | } 86 | 87 | public Integer getProvinceId() { 88 | return provinceId; 89 | } 90 | 91 | public void setProvinceId(Integer provinceId) { 92 | this.provinceId = provinceId; 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/model/StationAndPosition.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.model; 2 | 3 | public class StationAndPosition { 4 | private Integer stationId; 5 | private Integer positionId; 6 | private String name; 7 | private String description; 8 | private Double gpsLat; 9 | private Double gpsLng; 10 | private Integer regionId; 11 | private String detailAddress; 12 | private Integer creatorId; 13 | private Integer operatorId; 14 | 15 | public Integer getStationId() { 16 | return stationId; 17 | } 18 | 19 | public void setStationId(Integer stationId) { 20 | this.stationId = stationId; 21 | } 22 | 23 | public Integer getPositionId() { 24 | return positionId; 25 | } 26 | 27 | public void setPositionId(Integer positionId) { 28 | this.positionId = positionId; 29 | } 30 | 31 | public String getName() { 32 | return name; 33 | } 34 | 35 | public void setName(String name) { 36 | this.name = name; 37 | } 38 | 39 | public String getDescription() { 40 | return description; 41 | } 42 | 43 | public void setDescription(String description) { 44 | this.description = description; 45 | } 46 | 47 | public Double getGpsLat() { 48 | return gpsLat; 49 | } 50 | 51 | public void setGpsLat(Double gpsLat) { 52 | this.gpsLat = gpsLat; 53 | } 54 | 55 | public Double getGpsLng() { 56 | return gpsLng; 57 | } 58 | 59 | public void setGpsLng(Double gpsLng) { 60 | this.gpsLng = gpsLng; 61 | } 62 | 63 | public Integer getRegionId() { 64 | return regionId; 65 | } 66 | 67 | public void setRegionId(Integer regionId) { 68 | this.regionId = regionId; 69 | } 70 | 71 | public String getDetailAddress() { 72 | return detailAddress; 73 | } 74 | 75 | public void setDetailAddress(String detailAddress) { 76 | this.detailAddress = detailAddress; 77 | } 78 | 79 | public Integer getCreatorId() { 80 | return creatorId; 81 | } 82 | 83 | public void setCreatorId(Integer creatorId) { 84 | this.creatorId = creatorId; 85 | } 86 | 87 | public Integer getOperatorId() { 88 | return operatorId; 89 | } 90 | 91 | public void setOperatorId(Integer operatorId) { 92 | this.operatorId = operatorId; 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/model/StationStatistic.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.model; 2 | 3 | public class StationStatistic { 4 | private Integer stationId; 5 | private String stationName; 6 | private int totalPileNum; 7 | private int totalChargingNum; 8 | private double totalChargingHours; 9 | private double totalChargingElectricity; 10 | private double totalChargingPrice; 11 | 12 | public Integer getStationId() { 13 | return stationId; 14 | } 15 | 16 | public void setStationId(Integer stationId) { 17 | this.stationId = stationId; 18 | } 19 | 20 | public String getStationName() { 21 | return stationName; 22 | } 23 | 24 | public void setStationName(String stationName) { 25 | this.stationName = stationName; 26 | } 27 | 28 | public int getTotalPileNum() { 29 | return totalPileNum; 30 | } 31 | 32 | public void setTotalPileNum(int totalPileNum) { 33 | this.totalPileNum = totalPileNum; 34 | } 35 | 36 | public int getTotalChargingNum() { 37 | return totalChargingNum; 38 | } 39 | 40 | public void setTotalChargingNum(int totalChargingNum) { 41 | this.totalChargingNum = totalChargingNum; 42 | } 43 | 44 | public double getTotalChargingHours() { 45 | return totalChargingHours; 46 | } 47 | 48 | public void setTotalChargingHours(double totalChargingHours) { 49 | this.totalChargingHours = totalChargingHours; 50 | } 51 | 52 | public double getTotalChargingElectricity() { 53 | return totalChargingElectricity; 54 | } 55 | 56 | public void setTotalChargingElectricity(double totalChargingElectricity) { 57 | this.totalChargingElectricity = totalChargingElectricity; 58 | } 59 | 60 | public double getTotalChargingPrice() { 61 | return totalChargingPrice; 62 | } 63 | 64 | public void setTotalChargingPrice(double totalChargingPrice) { 65 | this.totalChargingPrice = totalChargingPrice; 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/model/StationStatisticRequireMent.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.model; 2 | 3 | import java.util.Date; 4 | 5 | public class StationStatisticRequireMent { 6 | private Integer zoneId = -1; 7 | private Integer cityId = -1; 8 | private Integer provinceId = -1; 9 | private String stationName; 10 | private Date beginTime; 11 | private Date endTime; 12 | 13 | public Integer getZoneId() { 14 | return zoneId; 15 | } 16 | 17 | public void setZoneId(Integer zoneId) { 18 | this.zoneId = zoneId; 19 | } 20 | 21 | public Integer getCityId() { 22 | return cityId; 23 | } 24 | 25 | public void setCityId(Integer cityId) { 26 | this.cityId = cityId; 27 | } 28 | 29 | public Integer getProvinceId() { 30 | return provinceId; 31 | } 32 | 33 | public void setProvinceId(Integer provinceId) { 34 | this.provinceId = provinceId; 35 | } 36 | 37 | public String getStationName() { 38 | return stationName; 39 | } 40 | 41 | public void setStationName(String stationName) { 42 | this.stationName = stationName; 43 | } 44 | 45 | public Date getBeginTime() { 46 | return beginTime; 47 | } 48 | 49 | public void setBeginTime(Date beginTime) { 50 | this.beginTime = beginTime; 51 | } 52 | 53 | public Date getEndTime() { 54 | return endTime; 55 | } 56 | 57 | public void setEndTime(Date endTime) { 58 | this.endTime = endTime; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/model/UserAccountDetail.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.model; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Date; 5 | import java.util.List; 6 | 7 | public class UserAccountDetail { 8 | private Long id; 9 | private double amount; 10 | private Date changeTime; 11 | private String remark; 12 | private Integer type; 13 | private Integer payStatus; 14 | private Long accountId; 15 | private List chargedFeeList= new ArrayList(); 16 | public Long getId() { 17 | return id; 18 | } 19 | public void setId(Long id) { 20 | this.id = id; 21 | } 22 | public double getAmount() { 23 | return amount; 24 | } 25 | public void setAmount(double amount) { 26 | this.amount = amount; 27 | } 28 | public Date getChangeTime() { 29 | return changeTime; 30 | } 31 | public void setChangeTime(Date changeTime) { 32 | this.changeTime = changeTime; 33 | } 34 | public String getRemark() { 35 | return remark; 36 | } 37 | public void setRemark(String remark) { 38 | this.remark = remark; 39 | } 40 | public Integer getType() { 41 | return type; 42 | } 43 | public void setType(Integer type) { 44 | this.type = type; 45 | } 46 | public Integer getPayStatus() { 47 | return payStatus; 48 | } 49 | public void setPayStatus(Integer payStatus) { 50 | this.payStatus = payStatus; 51 | } 52 | public Long getAccountId() { 53 | return accountId; 54 | } 55 | public void setAccountId(Long accountId) { 56 | this.accountId = accountId; 57 | } 58 | public List getChargedFeeList() { 59 | return chargedFeeList; 60 | } 61 | public void setChargedFeeList(List chargedFeeList) { 62 | this.chargedFeeList = chargedFeeList; 63 | } 64 | 65 | } 66 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/model/VehicleInfo.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.model; 2 | 3 | import java.util.Date; 4 | 5 | public class VehicleInfo { 6 | private int id; 7 | private String plateNo; 8 | private String brand; 9 | private String model; 10 | private int chargingUserId; 11 | private String chargingUserName; 12 | private Date createTime; 13 | private byte status; 14 | public int getId() { 15 | return id; 16 | } 17 | public void setId(int id) { 18 | this.id = id; 19 | } 20 | public String getPlateNo() { 21 | return plateNo; 22 | } 23 | public void setPlateNo(String plateNo) { 24 | this.plateNo = plateNo; 25 | } 26 | public String getBrand() { 27 | return brand; 28 | } 29 | public void setBrand(String brand) { 30 | this.brand = brand; 31 | } 32 | public String getModel() { 33 | return model; 34 | } 35 | public void setModel(String model) { 36 | this.model = model; 37 | } 38 | public int getChargingUserId() { 39 | return chargingUserId; 40 | } 41 | public void setChargingUserId(int chargingUserId) { 42 | this.chargingUserId = chargingUserId; 43 | } 44 | public Date getCreateTime() { 45 | return createTime; 46 | } 47 | public void setCreateTime(Date createTime) { 48 | this.createTime = createTime; 49 | } 50 | public byte getStatus() { 51 | return status; 52 | } 53 | public void setStatus(byte status) { 54 | this.status = status; 55 | } 56 | public String getChargingUserName() { 57 | return chargingUserName; 58 | } 59 | public void setChargingUserName(String chargingUserName) { 60 | this.chargingUserName = chargingUserName; 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/service/AreaService.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service; 2 | 3 | import com.jczc.operatorweb.entity.Area; 4 | 5 | import java.util.List; 6 | 7 | public interface AreaService { 8 | Area getAreaById(Integer areaId); 9 | List getAreaByParentId(Integer areaId); 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/service/ChargingAccountService.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service; 2 | 3 | import java.util.Date; 4 | 5 | import com.github.pagehelper.PageInfo; 6 | import com.jczc.operatorweb.exception.DataException; 7 | import com.jczc.operatorweb.model.AccountDetail; 8 | import com.jczc.operatorweb.model.ChargedListInfo; 9 | import com.jczc.operatorweb.model.ChargingFeeInfo; 10 | 11 | public interface ChargingAccountService { 12 | /** 13 | * 结算并返回充电费用,生成费用账单 14 | * @param chargedList 15 | * @return 16 | */ 17 | public ChargingFeeInfo createChargingFee(ChargedListInfo chargedList); 18 | /** 19 | * 返回实时充电费用(不生成账单) 20 | * @param chargedListInfo 21 | * @return 22 | */ 23 | public ChargingFeeInfo getCurrentChargingFee(ChargedListInfo chargedListInfo); 24 | /** 25 | * 分页查找用户的电费记录 26 | * @param userId 27 | * @param start 28 | * @param end 29 | * @param pageNum 30 | * @param pageSize 31 | * @return 32 | */ 33 | public PageInfo getChargingFeeListByUserId(Integer userId,Date start, Date end,Integer pageNum,Integer pageSize); 34 | /** 35 | * 分页查找桩的电费记录 36 | * @param pileNo 37 | * @param start 38 | * @param end 39 | * @param pageNum 40 | * @param pageSize 41 | * @return 42 | */ 43 | public PageInfo getChargingFeeListByPileNo(String pileNo,Date start, Date end,Integer pageNum,Integer pageSize); 44 | /** 45 | * 获取充电记录的电费信息 46 | * @param chargedListId 47 | * @return 48 | */ 49 | public ChargingFeeInfo getChargingFeeInfoByChargedListId(Long chargedListId); 50 | public void recharge(Integer userId, Double amount, String name, String wxOrderId, String wxUserId) throws DataException; 51 | /** 52 | * 用户充值记录 53 | * @param userId 54 | * @param startTime 55 | * @param endTime 56 | * @param pageNum 57 | * @param pageSize 58 | * @return 59 | */ 60 | public PageInfo rechargeHistory(Integer userId, Date startTime, Date endTime, Integer pageNum, 61 | Integer pageSize); 62 | } 63 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/service/ChargingDataService.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service; 2 | 3 | import org.slf4j.Logger; 4 | import org.slf4j.LoggerFactory; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.alibaba.fastjson.JSON; 9 | import com.jczc.operatorweb.dao.ChargingDataDao; 10 | import com.jczc.operatorweb.model.ChargingDataInfo; 11 | 12 | public interface ChargingDataService { 13 | public void addChargingData(ChargingDataInfo charingData); 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/service/ChargingPriceService.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service; 2 | 3 | import com.github.pagehelper.PageInfo; 4 | import com.jczc.operatorweb.entity.ChargingPrice; 5 | import com.jczc.operatorweb.model.ChargingPriceInfo; 6 | 7 | import java.util.List; 8 | 9 | 10 | public interface ChargingPriceService { 11 | public Integer addChargingPrice(ChargingPrice chargingprice); 12 | public Integer removeChargingPriceById(Integer chargingpriceId); 13 | public Integer updateChargingPrice(ChargingPrice chargingprice); 14 | public PageInfo getAllChargingPrice(Integer operatorId, int pageNum, int pageSize); 15 | public List getTotalChargingPrice(Integer operatorId); 16 | public ChargingPrice getPileChargingPrice(String chargingPileNo); 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/service/ChargingStatisticService.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service; 2 | 3 | import com.github.pagehelper.PageInfo; 4 | import com.jczc.operatorweb.model.*; 5 | import org.apache.ibatis.annotations.Param; 6 | 7 | import java.util.List; 8 | import java.util.Map; 9 | 10 | public interface ChargingStatisticService { 11 | public Map getStationStatisticByZoneId(Integer operatorId, Integer zoneId, int pageNum, int pageSize); 12 | public Map getStationStatisticByCityId(Integer operatorId, Integer cityId, int pageNum, int pageSize); 13 | public Map getStationStatisticByProvinceId(Integer operatorId, Integer provinceId, int pageNum, int pageSize); 14 | public Map getStationStatisticByRequireMent(Integer operatorId,StationStatisticRequireMent stationStatisticRequireMent, int pageNum, int pageSize); 15 | public Map getPileStatisticByStationId(Integer operatorId,Integer stationId, int pageNum, int pageSize); 16 | public Map getPileStatisticByZoneId(Integer operatorId, Integer zoneId, int pageNum, int pageSize); 17 | public Map getPileStatisticByCityId(Integer operatorId, Integer cityId, int pageNum, int pageSize); 18 | public Map getPileStatisticByProvinceId(Integer operatorId, Integer provinceId, int pageNum, int pageSize); 19 | public Map getPileStatisticByRequireMent(Integer operatorId, PileStatisticRequireMent pileStatisticRequireMent, int pageNum, int pageSize); 20 | public PageInfo getChargingStatisticByStationId(Integer operatorId, Integer stationId, int pageNum, int pageSize); 21 | public PageInfo getChargingStatisticByZoneId(Integer operatorId, Integer zoneId, int pageNum, int pageSize); 22 | public PageInfo getChargingStatisticByCityId(Integer operatorId, Integer cityId, int pageNum, int pageSize); 23 | public PageInfo getChargingStatisticByProvinceId(Integer operatorId, Integer provinceId, int pageNum, int pageSize); 24 | public PageInfo getChargingStatisticByRequireMent(Integer operatorId, ChargingStatisticRequireMent chargingStatisticRequireMent, int pageNum, int pageSize); 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/service/DeviceStateService.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service; 2 | 3 | import java.util.Date; 4 | 5 | import com.github.pagehelper.PageInfo; 6 | import com.jczc.operatorweb.model.DeviceStateInfo; 7 | 8 | public interface DeviceStateService { 9 | /** 10 | * 获取设备(异常)状态详情 11 | * @param id 设备状态id 12 | * @return 13 | */ 14 | public DeviceStateInfo getDeviceState(Long id); 15 | /** 16 | * 获取设备的当前状态 17 | * @param deviceNo 18 | * @return 19 | */ 20 | public DeviceStateInfo getLatestDeviceState(String deviceNo); 21 | /** 22 | * 新增设备(异常)状态,并修改设备的当前状态 23 | * @param deviceState 24 | */ 25 | public void addDeviceState(DeviceStateInfo deviceState); 26 | /** 27 | * 处理设备(异常)状态:设置为已处理,可备注 28 | * @param id 29 | * @param handlerId 30 | * @param remark 31 | */ 32 | public void handleDeviceState(Long id,Integer handlerId,String remark); 33 | /** 34 | * 获取设备(异常)状态历史数据 35 | * @param deviceNo 36 | * @param startTime 37 | * @param endTime 38 | * @param pageNum 39 | * @param pageSize 40 | * @return 41 | */ 42 | public PageInfo getDeviceStates(String deviceNo,Date startTime,Date endTime,int pageNum,int pageSize); 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/service/GroupTypeService.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service; 2 | 3 | import com.jczc.operatorweb.entity.GroupType; 4 | 5 | public interface GroupTypeService { 6 | public GroupType getById(Integer groupTypeId); 7 | } 8 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/service/Impl/AreaServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service.Impl; 2 | 3 | import com.jczc.operatorweb.dao.AreaDao; 4 | import com.jczc.operatorweb.entity.Area; 5 | import com.jczc.operatorweb.service.AreaService; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | import java.util.List; 10 | 11 | @Service 12 | public class AreaServiceImpl implements AreaService { 13 | @Autowired 14 | AreaDao areaDao; 15 | 16 | @Override 17 | public Area getAreaById(Integer areaId) { 18 | return areaDao.queryAreaById(areaId); 19 | } 20 | 21 | @Override 22 | public List getAreaByParentId(Integer areaId) { 23 | return areaDao.queryAreaByParentId(areaId); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/service/Impl/ChargingDataServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service.Impl; 2 | 3 | import org.slf4j.Logger; 4 | import org.slf4j.LoggerFactory; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.alibaba.fastjson.JSON; 9 | import com.jczc.operatorweb.dao.ChargingDataDao; 10 | import com.jczc.operatorweb.model.ChargingDataInfo; 11 | import com.jczc.operatorweb.service.ChargingDataService; 12 | @Service 13 | public class ChargingDataServiceImpl implements ChargingDataService { 14 | private static Logger logger = LoggerFactory.getLogger(ChargingDataService.class); 15 | @Autowired 16 | private ChargingDataDao chargingDataDao; 17 | public void addChargingData(ChargingDataInfo charingData){ 18 | logger.info("充电数据 ChargingDataService.addChargingData:"+JSON.toJSONString(charingData)); 19 | chargingDataDao.addChargingData(charingData); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/service/Impl/ChargingPriceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service.Impl; 2 | 3 | import com.github.pagehelper.PageHelper; 4 | import com.github.pagehelper.PageInfo; 5 | import com.jczc.operatorweb.dao.ChargingDataDao; 6 | import com.jczc.operatorweb.dao.ChargingPriceDao; 7 | import com.jczc.operatorweb.entity.ChargingPrice; 8 | import com.jczc.operatorweb.model.ChargedListInfo; 9 | import com.jczc.operatorweb.model.ChargingDataInfo; 10 | import com.jczc.operatorweb.model.ChargingFeeInfo; 11 | import com.jczc.operatorweb.model.ChargingPriceInfo; 12 | import com.jczc.operatorweb.service.ChargingPriceService; 13 | 14 | import java.util.Date; 15 | import java.util.List; 16 | 17 | import org.springframework.beans.factory.annotation.Autowired; 18 | import org.springframework.stereotype.Service; 19 | 20 | 21 | @Service 22 | public class ChargingPriceImpl implements ChargingPriceService { 23 | 24 | @Autowired 25 | ChargingPriceDao chargingPriceDao; 26 | @Autowired 27 | ChargingDataDao chargingDataDao; 28 | 29 | @Override 30 | public PageInfo getAllChargingPrice(Integer operator, int pageNum, int pageSize) { 31 | PageHelper.startPage(pageNum, pageSize); 32 | List chargingPriceInfos = chargingPriceDao.queryAllChargingPrice(operator); 33 | return new PageInfo<>(chargingPriceInfos); 34 | } 35 | 36 | @Override 37 | public List getTotalChargingPrice(Integer operatorId) { 38 | return chargingPriceDao.queryAllChargingPrice(operatorId); 39 | } 40 | 41 | @Override 42 | public Integer addChargingPrice(ChargingPrice chargingprice) { 43 | Date time = new Date(); 44 | //SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 45 | //chargingprice.setCreateTime(Timestamp.valueOf(dateFormat.format( time ))); 46 | chargingprice.setCreateTime(time ); 47 | return (Integer)chargingPriceDao.save(chargingprice); 48 | } 49 | 50 | @Override 51 | public Integer removeChargingPriceById(Integer chargingpriceId) { 52 | return chargingPriceDao.delete(chargingpriceId); 53 | } 54 | 55 | @Override 56 | public Integer updateChargingPrice(ChargingPrice chargingprice) { 57 | return chargingPriceDao.updateById(chargingprice); 58 | } 59 | 60 | @Override 61 | public ChargingPrice getPileChargingPrice(String chargingPileNo) { 62 | return chargingPriceDao.getPileChargingPrice(chargingPileNo); 63 | } 64 | 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/service/Impl/DeviceStateServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service.Impl; 2 | 3 | import java.util.Date; 4 | import java.util.List; 5 | 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | import com.github.pagehelper.PageHelper; 10 | import com.github.pagehelper.PageInfo; 11 | import com.jczc.operatorweb.dao.DeviceStateDao; 12 | import com.jczc.operatorweb.dao.PileDao; 13 | import com.jczc.operatorweb.entity.Pile; 14 | import com.jczc.operatorweb.enums.ChargingStateEnum; 15 | import com.jczc.operatorweb.enums.DeviceStateEnum; 16 | import com.jczc.operatorweb.model.DeviceStateInfo; 17 | import com.jczc.operatorweb.service.DeviceStateService; 18 | @Service 19 | public class DeviceStateServiceImpl implements DeviceStateService { 20 | 21 | @Autowired 22 | private DeviceStateDao deviceStateDao; 23 | @Autowired 24 | private PileDao pileDao; 25 | @Override 26 | public DeviceStateInfo getDeviceState(Long id) { 27 | return deviceStateDao.getDeviceState(id); 28 | } 29 | 30 | @Override 31 | public DeviceStateInfo getLatestDeviceState(String deviceNo) { 32 | return deviceStateDao.getLatestDeviceState(deviceNo); 33 | } 34 | 35 | @Override 36 | public void addDeviceState(DeviceStateInfo deviceState) { 37 | deviceStateDao.addDeviceState(deviceState); 38 | String deviceNo=deviceState.getDeviceNo(); 39 | if(deviceNo.startsWith("3")){//充电桩 40 | Pile pile=new Pile(); 41 | pile.setIdentification(deviceNo); 42 | pile.setDeviceStatus(DeviceStateEnum.getByCode(deviceState.getCode()).getDescribe()); 43 | pileDao.updateByNo(pile); 44 | }else{ 45 | // equipmentDao.updateByNo(equipment) 46 | } 47 | 48 | } 49 | 50 | @Override 51 | public void handleDeviceState(Long id, Integer handlerId, String remark) { 52 | deviceStateDao.handleDeviceState(id, handlerId, remark); 53 | } 54 | 55 | @Override 56 | public PageInfo getDeviceStates(String deviceNo, Date startTime, Date endTime, int pageNum, 57 | int pageSize) { 58 | PageHelper.startPage(pageNum, pageSize); 59 | List list=deviceStateDao.getHistoryDeviceStates(deviceNo, startTime, endTime); 60 | return new PageInfo(list); 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/service/Impl/GroupTypeServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service.Impl; 2 | 3 | import com.jczc.operatorweb.dao.GroupTypeDao; 4 | import com.jczc.operatorweb.entity.GroupType; 5 | import com.jczc.operatorweb.service.GroupTypeService; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | @Service 10 | public class GroupTypeServiceImpl implements GroupTypeService { 11 | @Autowired 12 | GroupTypeDao groupTypeDao; 13 | 14 | @Override 15 | public GroupType getById(Integer groupTypeId) { 16 | return groupTypeDao.queryById(groupTypeId); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/service/Impl/MemberServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service.Impl; 2 | 3 | 4 | import java.util.Date; 5 | 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | import com.jczc.operatorweb.dao.MemberDao; 10 | import com.jczc.operatorweb.entity.Member; 11 | import com.jczc.operatorweb.service.MemberService; 12 | 13 | @Service 14 | public class MemberServiceImpl implements MemberService{ 15 | 16 | @Autowired 17 | MemberDao memberDao; 18 | 19 | @Override 20 | public Member CheckLoginInfo(Member member) { 21 | 22 | return memberDao.queryLoginInfo(member); 23 | } 24 | 25 | @Override 26 | public Integer addMember(Member member) { 27 | Date createTime = new Date(); 28 | member.setCreateTime(createTime); 29 | return memberDao.save(member); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/service/Impl/OrganizationServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service.Impl; 2 | 3 | import java.util.Date; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.jczc.operatorweb.dao.OrganizationDao; 9 | import com.jczc.operatorweb.entity.Organization; 10 | import com.jczc.operatorweb.service.OrganizationService; 11 | 12 | @Service 13 | public class OrganizationServiceImpl implements OrganizationService{ 14 | 15 | @Autowired 16 | OrganizationDao organizationDao; 17 | 18 | @Override 19 | public Integer addOrganization(Organization organization) { 20 | Date createTime = new Date(); 21 | organization.setCreateTime(createTime); 22 | return organizationDao.save(organization); 23 | } 24 | 25 | @Override 26 | public Organization getOrganizationById(Integer id) { 27 | return organizationDao.queryOrganizationById(id); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/service/Impl/PileProductServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service.Impl; 2 | 3 | import com.jczc.operatorweb.dao.PileProductDao; 4 | import com.jczc.operatorweb.entity.PileProduct; 5 | import com.jczc.operatorweb.service.PileProductService; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | import java.util.List; 10 | 11 | @Service 12 | public class PileProductServiceImpl implements PileProductService { 13 | @Autowired 14 | PileProductDao pileProductDao; 15 | 16 | @Override 17 | public List getAllPileProducts() { 18 | return pileProductDao.queryAllPileProducts(); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/service/Impl/PositionServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service.Impl; 2 | 3 | import com.jczc.operatorweb.dao.PositionDao; 4 | import com.jczc.operatorweb.entity.Position; 5 | import com.jczc.operatorweb.service.PositionService; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | @Service 10 | public class PositionServiceImpl implements PositionService { 11 | @Autowired 12 | PositionDao positionDao; 13 | 14 | @Override 15 | public Integer addPosition(Position position) { 16 | Integer incrementId = -1; 17 | if ( positionDao.save(position) == 1){ 18 | incrementId = position.getId(); 19 | } 20 | return incrementId; 21 | } 22 | 23 | @Override 24 | public Integer updatePosition(Position position) { 25 | return positionDao.update(position); 26 | } 27 | 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/service/Impl/VehicleServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service.Impl; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.stereotype.Service; 5 | 6 | import com.jczc.operatorweb.dao.VehicleDao; 7 | import com.jczc.operatorweb.exception.DataException; 8 | import com.jczc.operatorweb.exception.DataExceptionEnum; 9 | import com.jczc.operatorweb.model.VehicleInfo; 10 | import com.jczc.operatorweb.service.VehicleService; 11 | 12 | import java.util.List; 13 | 14 | /** 15 | * Created by lwj on 2017/11/3. 16 | */ 17 | 18 | @Service 19 | public class VehicleServiceImpl implements VehicleService { 20 | 21 | @Autowired 22 | private VehicleDao vehicleDao; 23 | 24 | 25 | @Override 26 | public void addVehicleInfo(VehicleInfo vehicleReData) throws DataException { 27 | String plateNo = vehicleDao.validateVehicle(vehicleReData); 28 | if (plateNo == null || plateNo.equals("")) { 29 | vehicleDao.save(vehicleReData); 30 | } else { 31 | throw new DataException(DataExceptionEnum.PLATE_NO_IS_EXIST); 32 | } 33 | } 34 | 35 | @Override 36 | public void deleteVehicle(int id) throws DataException { 37 | if (id < 0) { 38 | throw new DataException(DataExceptionEnum.PARAMS_ERROR); 39 | } else { 40 | vehicleDao.delete(id); 41 | } 42 | } 43 | 44 | @Override 45 | public List findByUserId(int id) { 46 | return vehicleDao.findByUserId(id); 47 | } 48 | 49 | @Override 50 | public void updata(VehicleInfo vehicleReData) { 51 | vehicleDao.update(vehicleReData); 52 | } 53 | 54 | @Override 55 | public VehicleInfo getByVehicleId(int id) { 56 | return vehicleDao.getByVehicleId(id); 57 | } 58 | 59 | @Override 60 | public VehicleInfo getByPlateNo(String platNo) { 61 | return vehicleDao.getByPlateNo(platNo); 62 | } 63 | 64 | @Override 65 | public List findByPlateNo(String platNo) { 66 | return vehicleDao.findByPlateNo(platNo); 67 | } 68 | 69 | } 70 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/service/MemberService.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service; 2 | 3 | 4 | 5 | import com.jczc.operatorweb.entity.Member; 6 | 7 | public interface MemberService { 8 | public Integer addMember(Member member); 9 | public Member CheckLoginInfo(Member member); 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/service/OrganizationService.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service; 2 | 3 | import com.jczc.operatorweb.entity.Organization; 4 | 5 | public interface OrganizationService { 6 | public Integer addOrganization(Organization organization); 7 | public Organization getOrganizationById(Integer id); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/service/PileGroupService.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service; 2 | 3 | import com.github.pagehelper.PageInfo; 4 | import com.jczc.operatorweb.entity.PileGroup; 5 | import com.jczc.operatorweb.entity.Position; 6 | import com.jczc.operatorweb.model.*; 7 | 8 | import java.util.List; 9 | import java.util.Map; 10 | 11 | public interface PileGroupService { 12 | public PileGroupMessage getPileGroupMessageById(Integer groupId); 13 | public List getOperatorAllGroupResource(Integer operatorId); 14 | public PageInfo getPileGroupByStationId(Integer operatorId, Integer stationId, int pageNum, int pageSize); 15 | public PageInfo getPileGroupByZoneId(Integer operatorId, Integer zoneId, int pageNum, int pageSize); 16 | public PageInfo getPileGroupByCityId(Integer operatorId, Integer cityId, int pageNum, int pageSize); 17 | public PageInfo getPileGroupByProvinceId(Integer operatorId, Integer provinceId, int pageNum, int pageSize); 18 | public GroupStationMessage getGroupStationMessageByStationId(Integer operatorId, Integer stationId); 19 | public GroupZoneMessage getGroupZoneMessageByZoneId(Integer operatorId, Integer zoneId); 20 | public GroupCityMessage getGroupCityMessageByCityId(Integer operatorId, Integer cityId); 21 | public GroupProvinceMessage getGroupProvinceMessageByProvinceId(Integer operatorId, Integer provinceId); 22 | public PageInfo getGroupByRequirement(Integer operatorId, GroupRequireMent groupRequireMent, int pageNum, int pageSize); 23 | public Map addPileGroupAndPositon(GroupAndPositon groupAndPositon); 24 | public GroupAndPositon getGroupById(Integer groupId); 25 | public Integer updatePileGroupAndPosition(GroupAndPositon groupAndPositon); 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/service/PileProductService.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service; 2 | 3 | 4 | import com.jczc.operatorweb.entity.PileProduct; 5 | 6 | import java.util.List; 7 | 8 | public interface PileProductService { 9 | public List getAllPileProducts(); 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/service/PileService.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service; 2 | 3 | import java.util.List; 4 | 5 | import com.github.pagehelper.PageInfo; 6 | import com.jczc.operatorweb.entity.Pile; 7 | import com.jczc.operatorweb.model.PileInfo; 8 | 9 | public interface PileService { 10 | public Integer addPile (Pile pile); 11 | public Pile getPileById(Integer pileId); 12 | public Integer updatePile(Pile pile); 13 | public PageInfo getOperatorAllPiles(Integer operatorId, int pageNum, int pageSize); 14 | public PageInfo getPileByBuildId(Integer stationId, int pageNum, int pageSize); 15 | public PageInfo getPileByGroupId(Integer groupId, int paheNum, int pageSize); 16 | public Integer removePileById(Integer pileId); 17 | public List getPilesForDistance(double lat1, double lng1, double distance); 18 | public PileInfo getPileByNo(String pileNo); 19 | public List getAllPileIdentification(); 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/service/PileStationService.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service; 2 | 3 | import com.github.pagehelper.PageInfo; 4 | import com.jczc.operatorweb.entity.PileStation; 5 | import com.jczc.operatorweb.entity.Position; 6 | import com.jczc.operatorweb.model.*; 7 | import org.apache.ibatis.annotations.Param; 8 | 9 | import java.util.Date; 10 | import java.util.List; 11 | import java.util.Map; 12 | 13 | public interface PileStationService { 14 | public Map addPileStationAndPosition(StationAndPosition stationAndPosition); 15 | public Integer updateStationAndPosition(StationAndPosition stationAndPosition); 16 | public StationAndPosition getStationById(Integer stationId); 17 | public PileStationMessage getPileStationMessageById(Integer stationId); 18 | public List getAllAreaAndStations(Integer operatorId); 19 | public PageInfo getAllPileStationsByOperatorId(Integer operatorId, int pageNum, int pageSize); 20 | public List getStationByLngLat(double longitude,double latitude); 21 | public List getPileStationsForDistance(double lat1, double lng1, double distance); 22 | public PageInfo findStationStatisticsByAreaId(Integer areaId, int pageNum, int pageSize, Date startTime, Date endTime, String stationName); 23 | public PileStationInfo getStationStatById(Integer stationId); 24 | public Integer removeStationById(Integer stationId); 25 | 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/service/PositionService.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service; 2 | 3 | import com.jczc.operatorweb.entity.Position; 4 | 5 | import java.util.List; 6 | import java.util.Map; 7 | 8 | public interface PositionService { 9 | public Integer addPosition(Position position); 10 | public Integer updatePosition(Position position); 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/service/VehicleService.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service; 2 | 3 | 4 | import java.util.List; 5 | 6 | import com.jczc.operatorweb.exception.DataException; 7 | import com.jczc.operatorweb.model.VehicleInfo; 8 | 9 | /** 10 | * Created by lwj on 2017/11/3. 11 | */ 12 | public interface VehicleService { 13 | 14 | /** 15 | * 添加个人汽车信息 16 | * 17 | * @param vehicleReData 18 | * @param id 19 | */ 20 | void addVehicleInfo(VehicleInfo vehicleReData) throws DataException; 21 | 22 | /** 23 | * 删除指定汽车信息 24 | * 25 | * @param id 26 | */ 27 | void deleteVehicle(int id) throws DataException; 28 | 29 | /** 30 | * 获取指定用户的汽车信息 31 | * 32 | * @param id 33 | * @return 34 | */ 35 | List findByUserId(int id); 36 | VehicleInfo getByVehicleId(int id); 37 | VehicleInfo getByPlateNo(String platNo); 38 | List findByPlateNo(String platNo); 39 | 40 | /** 41 | * 更新汽车信息 42 | * 43 | * @param vehicleReData 44 | */ 45 | void updata(VehicleInfo vehicleReData); 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/util/DateUtil.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.util; 2 | 3 | import java.text.ParseException; 4 | import java.text.SimpleDateFormat; 5 | import java.util.Date; 6 | 7 | public class DateUtil { 8 | private static Long YEAR2000=946656000000L; 9 | public static Date getFirtDate(){ 10 | return new Date(YEAR2000); 11 | } 12 | public static Date parseDateStr(String dateStr){ 13 | SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd"); 14 | SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); 15 | try { 16 | return sdf2.parse(dateStr); 17 | } catch (ParseException e) { 18 | // TODO Auto-generated catch block 19 | try { 20 | return sdf1.parse(dateStr); 21 | } catch (ParseException e1) { 22 | // TODO Auto-generated catch block 23 | return null; 24 | } 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/util/DistanceUtil.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.util; 2 | 3 | /** 4 | * @Author: LWJ 5 | * @Date: Created in 10:02 2017/11/28 6 | * @Description: 7 | */ 8 | public class DistanceUtil { 9 | private static final double EARTH_RADIUS = 6378.137; 10 | 11 | private static double rad(double d) { 12 | return d * Math.PI / 180.0; 13 | } 14 | 15 | public static double GetDistanceKM(double srcLat, double srtLng, double destLat, double destLng) { 16 | double radLat1 = rad(srcLat); 17 | double radLat2 = rad(destLat); 18 | double a = radLat1 - radLat2; 19 | double b = rad(srtLng) - rad(destLng); 20 | double s = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) + 21 | Math.cos(radLat1) * Math.cos(radLat2) * Math.pow(Math.sin(b / 2), 2))); 22 | s = s * EARTH_RADIUS; 23 | s = Math.round(s * 1000) / 1000; 24 | return s; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/util/EncryptUtil.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.util; 2 | 3 | import java.util.UUID; 4 | 5 | import com.jczc.operatorweb.model.ChargingUser; 6 | 7 | 8 | public class EncryptUtil { 9 | private static String getUUID() { 10 | return UUID.randomUUID().toString().replace("-", ""); 11 | } 12 | public static String createAccessToken(ChargingUser chargingUser){ 13 | return getUUID(); 14 | } 15 | public static String encryptPassword(String pwd){ 16 | return pwd; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/util/PasswordUtil.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.util; 2 | 3 | public class PasswordUtil { 4 | 5 | public static String encript(String originPwd){ 6 | return originPwd; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/util/ResponseModel.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.util; 2 | 3 | public class ResponseModel { 4 | 5 | private boolean status; 6 | private String msg; 7 | private T data; 8 | 9 | public ResponseModel(){ 10 | 11 | } 12 | 13 | public ResponseModel(boolean status, String msg, T data){ 14 | this.status = status; 15 | this.msg = msg; 16 | this.data = data; 17 | } 18 | public boolean isStatus() { 19 | return status; 20 | } 21 | 22 | public void setStatus(boolean status) { 23 | this.status = status; 24 | } 25 | 26 | public String getMsg() { 27 | return msg; 28 | } 29 | 30 | public void setMsg(String msg) { 31 | this.msg = msg; 32 | } 33 | 34 | public T getData() { 35 | return data; 36 | } 37 | 38 | public void setData(T data) { 39 | this.data = data; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/jczc/operatorweb/util/StringUtil.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.util; 2 | 3 | public class StringUtil { 4 | public static boolean isEmpty(String str){ 5 | if(str==null||str.trim().length()==0) 6 | return true; 7 | return false; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/main/resources/application-dev.properties: -------------------------------------------------------------------------------- 1 | #mqtt 2 | jczc.mqtt.config.host=localhost 3 | jczc.mqtt.config.port=1883 4 | jczc.mqtt.config.clientid=jczc 5 | jczc.mqtt.config.connectionTimeout=20 6 | jczc.mqtt.config.keepAliveInterval=10 7 | jczc.mqtt.config.cleanSession=true 8 | jczc.mqtt.config.subQos=0 9 | jczc.mqtt.config.pubQos=0 10 | jczc.mqtt.config.userName=jczc-platform 11 | jczc.mqtt.config.password=jczc-platform 12 | jczc.mqtt.config.reconnectSeconds=10 13 | 14 | 15 | 16 | spring.jpa.properties.hibernate.hbm2ddl.auto=update 17 | #日志 18 | #logging.level.root=info 19 | logging.config=classpath:logback-spring.xml 20 | server.port=8085 21 | -------------------------------------------------------------------------------- /src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | spring.profiles.active=dev 3 | 4 | #mybatis 5 | mybatis.typeAliasesPackage=com.jczc.operatorweb.model 6 | mybatis.mapperLocations=classpath:mapper/*.xml 7 | mybatis.configuration.map-underscore-to-camel-case=true -------------------------------------------------------------------------------- /src/main/resources/logback-spring.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | ${PATTERN} 14 | UTF-8 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | ${TEST_FILE_PATH} 31 | 32 | 33 | ${TEST_FILE_PATH}/info.%d{yyyy-MM-dd}.log 34 | 35 | 100 36 | 37 | 38 | 39 | ${PATTERN} 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /src/main/resources/mapper/Area.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 12 | 20 | -------------------------------------------------------------------------------- /src/main/resources/mapper/ChargingData.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | INSERT INTO charging_data 6 | ( 7 | pile_no, 8 | receive_time, 9 | current, 10 | electricity, 11 | power, 12 | voltage 13 | ) 14 | VALUES 15 | ( 16 | #{pileNo}, 17 | #{receiveTime}, 18 | #{current}, 19 | #{electricity}, 20 | #{power}, 21 | #{voltage} 22 | ) 23 | 24 | 33 | -------------------------------------------------------------------------------- /src/main/resources/mapper/ChargingPrice.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 18 | 19 | 20 | INSERT INTO charging_price( 21 | name, 22 | description, 23 | uni_price, 24 | create_time, 25 | creator_id, 26 | operator_id, 27 | status 28 | )VALUES( 29 | #{name}, 30 | #{description}, 31 | #{uniPrice}, 32 | #{createTime}, 33 | #{creatorId}, 34 | #{operatorId}, 35 | 1 36 | ) 37 | 38 | 39 | 40 | update charging_price set status = 2 where id = #{chargingpriceId} 41 | 42 | 43 | 44 | UPDATE charging_price 45 | 46 | 47 | name = #{name}, 48 | 49 | 50 | description = #{description}, 51 | 52 | 53 | create_time = #{createTime}, 54 | 55 | 56 | creator_id = #{creatorId}, 57 | 58 | 59 | operator_id = #{operatorId}, 60 | 61 | 62 | status = #{status}, 63 | 64 | 65 | uni_price = #{uniPrice}, 66 | 67 | 68 | WHERE id = #{id} 69 | 70 | 71 | -------------------------------------------------------------------------------- /src/main/resources/mapper/DeviceState.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | INSERT INTO device_state 6 | ( 7 | device_no, 8 | code, 9 | name, 10 | report_time, 11 | status 12 | ) 13 | VALUES 14 | ( 15 | #{deviceNo}, 16 | #{code}, 17 | #{name}, 18 | now(), 19 | 0 20 | ) 21 | 22 | 23 | UPDATE device_state 24 | SET handler_id=#{handlerId},remark=#{remark},status=1 25 | WHERE id = #{id} 26 | 27 | 34 | 43 | 52 | -------------------------------------------------------------------------------- /src/main/resources/mapper/GroupType.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | -------------------------------------------------------------------------------- /src/main/resources/mapper/Member.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | INSERT INTO member( 13 | name, 14 | mobile, 15 | email, 16 | department_id, 17 | org_id, 18 | create_time, 19 | creator_id, 20 | status, 21 | password 22 | )VALUES( 23 | #{name}, 24 | #{mobile}, 25 | #{email}, 26 | 1, 27 | #{orgId}, 28 | #{createTime}, 29 | #{creatorId}, 30 | 1, 31 | #{password} 32 | ) 33 | 34 | 35 | -------------------------------------------------------------------------------- /src/main/resources/mapper/Organization.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | INSERT INTO organization( 7 | parent_id, 8 | name, 9 | description, 10 | create_time, 11 | type, 12 | status 13 | )VALUES( 14 | 1, 15 | #{orgName}, 16 | #{description}, 17 | #{createTime}, 18 | 3, 19 | 1 20 | ) 21 | 22 | 28 | 29 | -------------------------------------------------------------------------------- /src/main/resources/mapper/PileProduct.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | -------------------------------------------------------------------------------- /src/main/resources/mapper/Position.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | insert into position 6 | ( 7 | region_id, 8 | town, 9 | detail_address, 10 | zip_code, 11 | gps_lat, 12 | gps_lng, 13 | create_time, 14 | creator_id, 15 | org_id, 16 | remark, 17 | status 18 | ) 19 | values 20 | ( 21 | #{regionId}, 22 | #{town}, 23 | #{detailAddress}, 24 | #{zipCode}, 25 | #{gpsLat}, 26 | #{gpsLng}, 27 | #{createTime}, 28 | #{creatorId}, 29 | 1, 30 | #{remark}, 31 | 1 32 | ) 33 | 34 | 35 | 36 | update position 37 | 38 | 39 | region_id = #{regionId}, 40 | 41 | 42 | town = #{town}, 43 | 44 | 45 | detail_address = #{detailAddress}, 46 | 47 | 48 | zip_code = #{zipCode}, 49 | 50 | 51 | gps_lat = #{gpsLat}, 52 | 53 | 54 | gps_lng = #{gpsLng}, 55 | 56 | 57 | create_time = #{createTime}, 58 | 59 | 60 | creator_id = #{creatorId}, 61 | 62 | 63 | org_id = #{orgId}, 64 | 65 | 66 | remark = #{remark}, 67 | 68 | 69 | status = #{status}, 70 | 71 | 72 | where id = #{id} 73 | 74 | 75 | 86 | -------------------------------------------------------------------------------- /src/main/resources/static/css/app.css: -------------------------------------------------------------------------------- 1 | #platformlogo{ 2 | width:28%; 3 | } 4 | .layui-body { 5 | padding: 15px; 6 | } 7 | 8 | .right{ 9 | float: right; 10 | display: block; 11 | margin-bottom: 10px 12 | } 13 | #allmap { 14 | position: absolute; 15 | margin-top: 30px; 16 | width: 40%; 17 | height: 300px; 18 | top: 305px; 19 | left: 4%; 20 | border: 1px solid gray; 21 | overflow: hidden; 22 | } 23 | .layui-header{ 24 | height:70px; 25 | } 26 | .layui-layout-admin .layui-logo { 27 | line-height: 70px; 28 | font-size:22px; 29 | } 30 | .layui-layout-admin .layui-side { 31 | top: 70px; 32 | } 33 | .layui-layout-admin .layui-body { 34 | top: 70px; 35 | } -------------------------------------------------------------------------------- /src/main/resources/static/css/homepage.css: -------------------------------------------------------------------------------- 1 | a:hover{ 2 | color:#009688; 3 | } 4 | #platformlogo{ 5 | width:28%; 6 | } 7 | #picCarousel img{ 8 | width:100%; 9 | } 10 | #table{ 11 | width:90%; 12 | margin:30px auto; 13 | } 14 | .news-big-title{ 15 | font-size:26px; 16 | margin:25px 0; 17 | } 18 | .news-big-title span{ 19 | border-bottom:1px solid gray; 20 | padding:5px; 21 | } 22 | .a-more{ 23 | cursor:pointer; 24 | font-size:14px; 25 | float:right; 26 | border-bottom:0px solid; 27 | padding:10px; 28 | } 29 | #left-img{ 30 | height:300px; 31 | position:relative; 32 | } 33 | #left-img-small{ 34 | width:20%; 35 | height:150px; 36 | float:left; 37 | } 38 | #left-img-a{ 39 | color:#fff; 40 | position:absolute; 41 | width:360px; 42 | background-color:rgba(0, 0, 0, 0.38); 43 | padding:15px 0; 44 | left:0; 45 | bottom:0; 46 | } 47 | #right-box{ 48 | height:145px; 49 | overflow:hidden; 50 | position:relative; 51 | } 52 | #right-box-context{ 53 | width:70%; 54 | overflow:hidden; 55 | float:right; 56 | } 57 | .h3-title{ 58 | font-size:24px; 59 | padding:0 0 10px 0; 60 | } 61 | .h3-a-link{ 62 | cursor:pointer; 63 | display:inline-block; 64 | margin:0 5px; 65 | 66 | } 67 | .lead{ 68 | line-height:24px; 69 | overflow:hidden; 70 | height:72px; 71 | text-indent:2em; 72 | } 73 | #footer{ 74 | text-align:center; 75 | background-color:#23262E; 76 | font-size:14px; 77 | height:40px; 78 | line-height:40px; 79 | color:white; 80 | margin-top:30px; 81 | } 82 | #loginDIV{ 83 | display:none; 84 | } 85 | #login-title{ 86 | font-size:20px; 87 | text-align:center; 88 | margin:20px; 89 | } 90 | #loginForm .layui-input{ 91 | width:85%; 92 | } 93 | #loginForm .layui-form-item{ 94 | margin-bottom:20px; 95 | } 96 | #loginForm button{ 97 | margin-right:40px; 98 | } 99 | @media screen and (max-width:1025px){ 100 | #right-box-context{ 101 | width:65%; 102 | } 103 | #left-img-small{ 104 | width:30%; 105 | } 106 | } 107 | @media screen and (min-width:1025px){ 108 | .layui-col-md5{ 109 | width:36%; 110 | } 111 | } 112 | @media screen and (min-width:1040px){ 113 | .layui-col-md5{ 114 | width:40%; 115 | } 116 | } 117 | @media screen and (min-width:1200px){ 118 | .layui-col-md5{ 119 | width:36%; 120 | } 121 | } 122 | -------------------------------------------------------------------------------- /src/main/resources/static/css/regist.css: -------------------------------------------------------------------------------- 1 | #platformlogo{ 2 | width:60%; 3 | font-size:28px; 4 | height:70px; 5 | } 6 | #welcome{ 7 | width:100px; 8 | font-size:20px; 9 | margin-left:50px; 10 | } 11 | #registDIV{ 12 | width:500px; 13 | margin:80px auto; 14 | } 15 | #registDIV textarea{ 16 | resize:none; 17 | } 18 | #registDIV .layui-form-item{ 19 | margin-bottom:20px; 20 | } 21 | #registDIV button{ 22 | margin-right:120px; 23 | } -------------------------------------------------------------------------------- /src/main/resources/static/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/favicon.png -------------------------------------------------------------------------------- /src/main/resources/static/hpbg1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/hpbg1.jpg -------------------------------------------------------------------------------- /src/main/resources/static/hpbg2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/hpbg2.jpg -------------------------------------------------------------------------------- /src/main/resources/static/hpbg3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/hpbg3.jpg -------------------------------------------------------------------------------- /src/main/resources/static/hpbg4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/hpbg4.jpg -------------------------------------------------------------------------------- /src/main/resources/static/hpbg5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/hpbg5.jpg -------------------------------------------------------------------------------- /src/main/resources/static/js/app.js: -------------------------------------------------------------------------------- 1 | var $ = layui.jquery; 2 | var jQuery = layui.jquery; 3 | 4 | // ajax设置 5 | $.ajaxSetup({ 6 | error: function (r) { 7 | layer.closeAll(); 8 | if (!r.error) { 9 | r.error = '未知错误'; 10 | } 11 | if (r.responseText) { 12 | r.error = r.responseText; 13 | } 14 | console.warn("请求返回 " + r.status, r); 15 | layer.msg('失败 ' + r.error, {time: r.error.length / 10.0 * 4000}); 16 | } 17 | }); 18 | 19 | // vue 自定义过滤器 20 | moment.locale('zh-cn'); 21 | Vue.filter("moment", function (value, reverse) { 22 | return ptFormat(value, reverse); 23 | }); 24 | Vue.filter("format", function (value, withFromNow) { 25 | return format(value, withFromNow); 26 | }); 27 | //侧栏高亮 28 | var leftNavItems = $(".layui-nav-tree .layui-nav-item"); 29 | for (var i = 0; i < leftNavItems.length; i++) { 30 | var item = $(leftNavItems[i]); 31 | if (0 === location.pathname.indexOf(item.children('a').attr('href'))) { 32 | //当前访问的页面 33 | item.addClass('layui-this'); 34 | break; 35 | } 36 | } 37 | function format(value, withFromNow) { 38 | var m = moment(value); 39 | var format = m.format("lll"); 40 | if (withFromNow) { 41 | format += '('; 42 | format += m.fromNow(); 43 | format += ')' 44 | } 45 | return format; 46 | } 47 | function ptFormat(value, reverse) { 48 | var now = new Date().getTime(); 49 | 50 | //3天+ 51 | if (now - value > 1000 * 60 * 60 * 24 * 3) { 52 | return !reverse ? moment(value).format("lll") : moment(value).fromNow(); 53 | } 54 | return !reverse ? moment(value).fromNow() : moment(value).format("lll"); 55 | } 56 | -------------------------------------------------------------------------------- /src/main/resources/static/js/pagejs/checkChargingPile.js: -------------------------------------------------------------------------------- 1 | new Vue({ 2 | el: "#app", 3 | data: { 4 | 5 | }, 6 | mounted:function () { 7 | 8 | }, 9 | methods:{ 10 | 11 | } 12 | } 13 | ) -------------------------------------------------------------------------------- /src/main/resources/static/layui/css/modules/code.css: -------------------------------------------------------------------------------- 1 | /** layui-v2.1.5 MIT License By http://www.layui.com */ 2 | html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none} -------------------------------------------------------------------------------- /src/main/resources/static/layui/css/modules/layer/default/icon-ext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/css/modules/layer/default/icon-ext.png -------------------------------------------------------------------------------- /src/main/resources/static/layui/css/modules/layer/default/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/css/modules/layer/default/icon.png -------------------------------------------------------------------------------- /src/main/resources/static/layui/css/modules/layer/default/loading-0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/css/modules/layer/default/loading-0.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/css/modules/layer/default/loading-1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/css/modules/layer/default/loading-1.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/css/modules/layer/default/loading-2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/css/modules/layer/default/loading-2.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/font/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/font/iconfont.eot -------------------------------------------------------------------------------- /src/main/resources/static/layui/font/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/font/iconfont.ttf -------------------------------------------------------------------------------- /src/main/resources/static/layui/font/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/font/iconfont.woff -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/0.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/1.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/10.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/11.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/12.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/12.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/13.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/13.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/14.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/14.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/15.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/15.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/16.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/17.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/17.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/18.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/19.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/19.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/2.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/20.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/20.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/21.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/21.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/22.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/22.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/23.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/23.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/24.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/24.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/25.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/25.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/26.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/26.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/27.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/27.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/28.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/28.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/29.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/29.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/3.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/30.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/30.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/31.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/31.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/32.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/32.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/33.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/33.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/34.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/34.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/35.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/35.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/36.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/36.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/37.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/37.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/38.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/38.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/39.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/39.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/4.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/40.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/40.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/41.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/41.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/42.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/42.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/43.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/43.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/44.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/44.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/45.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/45.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/46.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/46.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/47.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/47.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/48.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/48.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/49.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/49.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/5.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/50.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/50.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/51.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/51.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/52.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/52.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/53.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/53.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/54.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/54.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/55.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/55.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/56.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/56.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/57.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/57.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/58.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/58.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/59.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/59.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/6.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/6.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/60.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/60.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/61.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/61.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/62.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/62.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/63.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/63.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/64.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/64.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/65.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/65.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/66.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/66.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/67.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/67.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/68.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/68.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/69.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/69.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/7.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/7.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/70.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/70.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/71.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/71.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/8.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/8.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/9.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/layui/images/face/9.gif -------------------------------------------------------------------------------- /src/main/resources/static/location.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/location.png -------------------------------------------------------------------------------- /src/main/resources/static/newspic1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/newspic1.jpg -------------------------------------------------------------------------------- /src/main/resources/static/newspic2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/newspic2.jpg -------------------------------------------------------------------------------- /src/main/resources/static/newspic3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/newspic3.jpg -------------------------------------------------------------------------------- /src/main/resources/static/sign.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takeheartying/operator-web-master/fa52961cdb6c15bcf3102de389506d66cccb42e7/src/main/resources/static/sign.png -------------------------------------------------------------------------------- /src/main/resources/templates/checkChargingPile.ftl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | <#include "components/header.ftl"> 5 | 设备管理 6 | 7 | 10 | 11 |
12 | <#include "components/topnav.ftl"> 13 | <#include "components/leftmenu.ftl"> 14 |
15 | 16 |
17 | 内容主体区域 18 |
19 |
20 | <#include "components/footer.ftl"> 21 |
22 | 23 | <#include "components/script.ftl"> 24 | <#--some js--> 25 | -------------------------------------------------------------------------------- /src/main/resources/templates/components/footer.ftl: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/main/resources/templates/components/header.ftl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/main/resources/templates/components/leftmenu.ftl: -------------------------------------------------------------------------------- 1 |
2 | 19 |
20 | -------------------------------------------------------------------------------- /src/main/resources/templates/components/script.ftl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/main/resources/templates/components/topnav.ftl: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | <#--right--> 5 | 16 | 17 | 18 |
19 | -------------------------------------------------------------------------------- /src/main/resources/templates/mapOfChargingStation.ftl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | <#include "components/header.ftl"> 5 | 6 | 查看地图 7 | 8 | 11 | 12 |
13 | <#include "components/topnav.ftl"> 14 | <#include "components/leftmenu.ftl"> 15 |
16 | 17 |
18 | 19 |
20 | 21 |
22 | <#----> 23 | 24 | 25 |
26 |
27 |
28 |
29 |
30 |
31 | <#include "components/footer.ftl"> 32 |
33 | 34 | <#include "components/script.ftl"> 35 | <#--some js--> 36 | 37 | -------------------------------------------------------------------------------- /src/test/java/com/jczc/operatorweb/OperatorWebApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class OperatorWebApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/test/java/com/jczc/operatorweb/dao/AreaDaoTest.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.dao; 2 | 3 | import com.alibaba.fastjson.JSON; 4 | import org.junit.Test; 5 | import org.junit.runner.RunWith; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.boot.test.context.SpringBootTest; 8 | import org.springframework.test.context.junit4.SpringRunner; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | 13 | @RunWith(SpringRunner.class) 14 | @SpringBootTest 15 | public class AreaDaoTest { 16 | @Autowired 17 | AreaDao areaDao; 18 | @Test 19 | public void queryAreaById() throws Exception { 20 | System.out.println(JSON.toJSONString(areaDao.queryAreaById(110000))); 21 | } 22 | 23 | @Test 24 | public void queryAreaByParentId() throws Exception { 25 | System.out.println(JSON.toJSONString(areaDao.queryAreaByParentId(110000))); 26 | } 27 | 28 | } -------------------------------------------------------------------------------- /src/test/java/com/jczc/operatorweb/dao/ChargedListDaoTest.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.dao; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.boot.test.context.SpringBootTest; 7 | import org.springframework.test.context.junit4.SpringRunner; 8 | 9 | import com.jczc.operatorweb.model.ChargedListInfo; 10 | 11 | @RunWith(SpringRunner.class) 12 | @SpringBootTest 13 | public class ChargedListDaoTest { 14 | @Autowired 15 | private ChargedListDao chargedListDao; 16 | @Test 17 | public void testUnstart(){ 18 | ChargedListInfo obj=chargedListDao.getUnstart("3000000001"); 19 | System.out.println(obj); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/test/java/com/jczc/operatorweb/dao/ChargingPriceDaoTest.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.dao; 2 | 3 | import com.alibaba.fastjson.JSON; 4 | import org.junit.Test; 5 | import org.junit.runner.RunWith; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.boot.test.context.SpringBootTest; 8 | import org.springframework.test.context.junit4.SpringRunner; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | @RunWith(SpringRunner.class) 13 | @SpringBootTest 14 | public class ChargingPriceDaoTest { 15 | 16 | @Autowired 17 | ChargingPriceDao chargingPriceDao; 18 | 19 | @Test 20 | public void queryAllChargingPrice() throws Exception { 21 | Integer operatorId = 1; 22 | System.out.println(JSON.toJSONString(chargingPriceDao.queryAllChargingPrice(operatorId))); 23 | } 24 | 25 | } -------------------------------------------------------------------------------- /src/test/java/com/jczc/operatorweb/dao/ChargingUserDaoTest.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.dao; 2 | 3 | import java.util.Date; 4 | 5 | import org.junit.Test; 6 | import org.junit.runner.RunWith; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.boot.test.context.SpringBootTest; 9 | import org.springframework.test.context.junit4.SpringRunner; 10 | 11 | import com.alibaba.fastjson.JSON; 12 | import com.jczc.operatorweb.model.AccountDetail; 13 | import com.jczc.operatorweb.model.ChargingUser; 14 | @RunWith(SpringRunner.class) 15 | @SpringBootTest 16 | public class ChargingUserDaoTest { 17 | @Autowired 18 | ChargingUserDao userDao; 19 | // @Test 20 | // public void testGetUserByToken(){ 21 | // ChargingUser u=userDao.getUserByAccessToken("f19995a8b5814bcbad3147333d29817a"); 22 | // System.out.println(JSON.toJSON(u)); 23 | // } 24 | @Test 25 | public void testCreateAccountDetail(){ 26 | AccountDetail detail=new AccountDetail(); 27 | detail.setAmount(0.01d); 28 | detail.setChangeTime(new Date()); 29 | detail.setRemark("充电费用"); 30 | detail.setPayStatus(1); 31 | detail.setType(2); 32 | detail.setAccountId(46); 33 | Long detailId=userDao.createUserAccountDetail(detail); 34 | System.out.println("new detail id:"+detail.getId()); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/test/java/com/jczc/operatorweb/dao/GroupTypeDaoTest.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.dao; 2 | 3 | import com.alibaba.fastjson.JSON; 4 | import org.junit.Test; 5 | import org.junit.runner.RunWith; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.boot.test.context.SpringBootTest; 8 | import org.springframework.test.context.junit4.SpringRunner; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | @RunWith(SpringRunner.class) 13 | @SpringBootTest 14 | public class GroupTypeDaoTest { 15 | @Autowired 16 | GroupTypeDao groupTypeDao; 17 | @Test 18 | public void queryById() throws Exception { 19 | System.out.println(JSON.toJSONString(groupTypeDao.queryById(1))); 20 | } 21 | 22 | } -------------------------------------------------------------------------------- /src/test/java/com/jczc/operatorweb/dao/PileDaoTest.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.dao; 2 | 3 | import com.alibaba.fastjson.JSON; 4 | import com.jczc.operatorweb.entity.Pile; 5 | import com.jczc.operatorweb.model.PileInfo; 6 | import org.junit.Test; 7 | import org.junit.runner.RunWith; 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.boot.test.context.SpringBootTest; 10 | import org.springframework.test.context.junit4.SpringRunner; 11 | import java.util.List; 12 | 13 | @RunWith(SpringRunner.class) 14 | @SpringBootTest 15 | public class PileDaoTest { 16 | 17 | @Autowired 18 | PileDao pileDao; 19 | @Test 20 | public void save() throws Exception { 21 | Pile pile = new Pile("3000000007",2,1,"车位07",1, 4 , 120.07, 30.666,1, 2, "正常","正常"); 22 | System.out.println(pileDao.save(pile)); 23 | System.out.println(pile.getId()); 24 | } 25 | 26 | @Test 27 | public void queryOperatorAllPiles() throws Exception { 28 | List pileInfo = pileDao.queryOperatorAllPiles(4); 29 | System.out.println(pileInfo.size()); 30 | System.out.println(JSON.toJSONString(pileInfo)); 31 | } 32 | 33 | @Test 34 | public void queryPileByBuildId() throws Exception { 35 | System.out.println(JSON.toJSONString(pileDao.queryPileByBuildId(1))); 36 | System.out.println(pileDao.queryPileByBuildId(1).size()); 37 | } 38 | 39 | @Test 40 | public void queryPileByGroupId() throws Exception { 41 | List pileInfos = pileDao.queryPileByGroupId(1); 42 | System.out.println(pileInfos.size()); 43 | System.out.println(JSON.toJSONString(pileInfos)); 44 | } 45 | 46 | @Test 47 | public void updateById() throws Exception { 48 | Pile pile = new Pile(); 49 | pile.setId(1027); 50 | pile.setDeviceStatus("异常"); 51 | System.out.println(pileDao.updateById(pile)); 52 | } 53 | 54 | @Test 55 | public void delete() throws Exception { 56 | System.out.println(pileDao.delete(1027)); 57 | } 58 | 59 | @Test 60 | public void queryById() throws Exception { 61 | System.out.println(JSON.toJSONString(pileDao.queryById(1023))); 62 | } 63 | @Test 64 | public void getAllPileIdentification() throws Exception { 65 | System.out.println(JSON.toJSONString(pileDao.getAllPileIdentification())); 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /src/test/java/com/jczc/operatorweb/dao/PileProductDaoTest.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.dao; 2 | 3 | import com.alibaba.fastjson.JSON; 4 | import org.junit.Test; 5 | import org.junit.runner.RunWith; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.boot.test.context.SpringBootTest; 8 | import org.springframework.test.context.junit4.SpringRunner; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | @RunWith(SpringRunner.class) 13 | @SpringBootTest 14 | public class PileProductDaoTest { 15 | @Autowired 16 | PileProductDao pileProductDao; 17 | @Test 18 | public void getAllPileProducts() throws Exception { 19 | System.out.println(JSON.toJSONString(pileProductDao.queryAllPileProducts())); 20 | } 21 | 22 | } -------------------------------------------------------------------------------- /src/test/java/com/jczc/operatorweb/dao/PileStationDaoTest.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.dao; 2 | 3 | import com.alibaba.fastjson.JSON; 4 | import com.jczc.operatorweb.entity.PileStation; 5 | import org.junit.Test; 6 | import org.junit.runner.RunWith; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.boot.test.context.SpringBootTest; 9 | import org.springframework.test.context.junit4.SpringRunner; 10 | 11 | import java.util.Date; 12 | 13 | import static org.junit.Assert.*; 14 | 15 | @RunWith(SpringRunner.class) 16 | @SpringBootTest 17 | public class PileStationDaoTest { 18 | 19 | @Autowired 20 | PileStationDao pileStationDao; 21 | 22 | @Test 23 | public void queryPileStationMessageById() throws Exception { 24 | System.out.println(JSON.toJSONString(pileStationDao.queryPileStationMessageById(1))); 25 | } 26 | 27 | @Test 28 | public void queryAllAreaAndStations() throws Exception { 29 | System.out.println(JSON.toJSONString(pileStationDao.queryAllAreaAndStations(1))); 30 | } 31 | 32 | @Test 33 | public void queryAllPileStationsByOperatorId() throws Exception { 34 | System.out.println(JSON.toJSONString(pileStationDao.queryAllPileStationsByOperatorId(1))); 35 | } 36 | 37 | @Test 38 | public void save() throws Exception { 39 | PileStation pileStation = new PileStation(); 40 | pileStation.setCreateTime(new Date()); 41 | pileStation.setDescription("浙大紫金港校区描述"); 42 | pileStation.setCreatorId(1); 43 | pileStation.setPosId(1); 44 | pileStation.setParentId(0); 45 | pileStation.setName("浙大紫金港校区"); 46 | pileStation.setType(1); 47 | pileStationDao.save(pileStation); 48 | System.out.println(pileStation.getId()); 49 | } 50 | 51 | @Test 52 | public void queryStationById() throws Exception { 53 | System.out.println(JSON.toJSONString(pileStationDao.queryStationById(1))); 54 | } 55 | 56 | @Test 57 | public void update() throws Exception { 58 | PileStation pileStation = new PileStation(); 59 | pileStation.setId(9); 60 | pileStation.setName("浙江科技学院小和山校区"); 61 | pileStation.setDescription("浙江科技学院小和山校区描述"); 62 | System.out.println(pileStationDao.update(pileStation)); 63 | 64 | } 65 | @Test 66 | public void delete() throws Exception { 67 | System.out.println(pileStationDao.delete(20)); 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /src/test/java/com/jczc/operatorweb/dao/PositionDaoTest.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.dao; 2 | 3 | import com.alibaba.fastjson.JSON; 4 | import com.jczc.operatorweb.entity.Position; 5 | import org.junit.Test; 6 | import org.junit.runner.RunWith; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.boot.test.context.SpringBootTest; 9 | import org.springframework.test.context.junit4.SpringRunner; 10 | 11 | import java.util.Date; 12 | 13 | import static org.junit.Assert.*; 14 | 15 | @RunWith(SpringRunner.class) 16 | @SpringBootTest 17 | public class PositionDaoTest { 18 | 19 | @Autowired 20 | PositionDao positionDao; 21 | @Test 22 | public void save() throws Exception { 23 | Position position = new Position(); 24 | position.setRegionId(330106); 25 | position.setDetailAddress("留和路318号"); 26 | position.setCreatorId(1); 27 | position.setGpsLng(120.8); 28 | position.setGpsLat(30.6); 29 | position.setOrgId(1); 30 | position.setCreateTime(new Date()); 31 | System.out.println(positionDao.save(position)); 32 | } 33 | 34 | @Test 35 | public void update() throws Exception { 36 | Position position = new Position(); 37 | position.setId(7); 38 | position.setDetailAddress("留和路319号"); 39 | position.setGpsLat(30.1); 40 | System.out.println(positionDao.update(position)); 41 | } 42 | 43 | @Test 44 | public void queryAllStationIdByZoneId() throws Exception { 45 | System.out.println(JSON.toJSONString(positionDao.queryAllStationIdByZoneId(330106))); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/test/java/com/jczc/operatorweb/service/ChargedListServiceTest.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.boot.test.context.SpringBootTest; 7 | import org.springframework.test.context.junit4.SpringRunner; 8 | 9 | import com.alibaba.fastjson.JSON; 10 | import com.github.pagehelper.PageInfo; 11 | import com.jczc.operatorweb.model.ChargedListInfo; 12 | import com.jczc.operatorweb.model.ChargingDataInfo; 13 | import com.jczc.operatorweb.model.ChargingFeeInfo; 14 | 15 | @RunWith(SpringRunner.class) 16 | @SpringBootTest 17 | public class ChargedListServiceTest { 18 | @Autowired 19 | private ChargedListService chargedListService; 20 | @Autowired 21 | private ChargingAccountService chargingAccountService; 22 | @Test 23 | public void getHistoryData(){ 24 | ChargedListInfo info=chargedListService.getChargedList(34L); 25 | System.out.println("info:"+JSON.toJSONString(info)); 26 | PageInfo page=chargedListService.getHistoryChargingData(info, 1, 10); 27 | System.out.println("charging data:"+JSON.toJSONString(page.getList())); 28 | } 29 | @Test 30 | public void createChargingFeeTest(){ 31 | ChargedListInfo info=chargedListService.getChargedList(59L); 32 | ChargingFeeInfo fee=chargingAccountService.createChargingFee(info); 33 | System.out.println("charging fee:"+JSON.toJSONString(fee)); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/test/java/com/jczc/operatorweb/service/ChargingAccountServiceTest.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service; 2 | 3 | import java.text.ParseException; 4 | import java.text.SimpleDateFormat; 5 | import java.util.Date; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | import org.springframework.beans.factory.annotation.Autowired; 10 | import org.springframework.boot.test.context.SpringBootTest; 11 | import org.springframework.test.context.junit4.SpringRunner; 12 | 13 | import com.alibaba.fastjson.JSON; 14 | import com.github.pagehelper.PageInfo; 15 | import com.jczc.operatorweb.model.ChargingFeeInfo; 16 | 17 | @RunWith(SpringRunner.class) 18 | @SpringBootTest 19 | public class ChargingAccountServiceTest { 20 | @Autowired 21 | ChargingAccountService chargingAccountService; 22 | @Test 23 | public void getChargingFeeListByUserIdTest(){ 24 | SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd"); 25 | Date start; 26 | try { 27 | start = sdf.parse("2017-10-1"); 28 | Date end=sdf.parse("2018-1-4"); 29 | PageInfo page=chargingAccountService.getChargingFeeListByUserId(38, start, end, 1, 10); 30 | System.out.println(JSON.toJSONString(page)); 31 | } catch (ParseException e) { 32 | // TODO Auto-generated catch block 33 | e.printStackTrace(); 34 | } 35 | 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/test/java/com/jczc/operatorweb/service/ChargingDataServiceTest.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service; 2 | 3 | import java.util.Date; 4 | 5 | import org.junit.Test; 6 | import org.junit.runner.RunWith; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.boot.test.context.SpringBootTest; 9 | import org.springframework.test.context.junit4.SpringRunner; 10 | 11 | import com.jczc.operatorweb.model.ChargingDataInfo; 12 | 13 | @RunWith(SpringRunner.class) 14 | @SpringBootTest 15 | public class ChargingDataServiceTest { 16 | @Autowired 17 | ChargingDataService service; 18 | @Test 19 | public void addChargingData(){ 20 | //{"current":,"electricity":,"pileNo":"","power":,"receiveTime":,"voltage":} 21 | ChargingDataInfo d=new ChargingDataInfo(); 22 | d.setCurrent(5.12); 23 | d.setPileNo("3000000001"); 24 | d.setPower(101.0); 25 | d.setElectricity(92.16); 26 | d.setReceiveTime(new Date()); 27 | d.setVoltage(271.44); 28 | service.addChargingData(d); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/test/java/com/jczc/operatorweb/service/Impl/PileStationServiceImplTest.java: -------------------------------------------------------------------------------- 1 | package com.jczc.operatorweb.service.Impl; 2 | 3 | import com.alibaba.fastjson.JSON; 4 | import com.jczc.operatorweb.model.StationAndPosition; 5 | import com.jczc.operatorweb.service.PileStationService; 6 | import org.junit.Test; 7 | import org.junit.runner.RunWith; 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.boot.test.context.SpringBootTest; 10 | import org.springframework.test.context.junit4.SpringRunner; 11 | 12 | import java.util.List; 13 | 14 | import static org.junit.Assert.*; 15 | 16 | @RunWith(SpringRunner.class) 17 | @SpringBootTest 18 | public class PileStationServiceImplTest { 19 | @Autowired 20 | PileStationService pileStationService; 21 | 22 | @Test 23 | public void getStationByLngLat() throws Exception { 24 | List stationAndPositions = pileStationService.getStationByLngLat(120.8,30.1); 25 | System.out.println(JSON.toJSONString(stationAndPositions)); 26 | } 27 | 28 | } --------------------------------------------------------------------------------