xiao547607 vor 5 Jahren
Ursprung
Commit
7bfb157722
30 geänderte Dateien mit 3258 neuen und 0 gelöschten Zeilen
  1. 230 0
      src/main/java/com/jpsoft/smart/modules/base/controller/AlarmInfoController.java
  2. 230 0
      src/main/java/com/jpsoft/smart/modules/base/controller/InformationInfoController.java
  3. 230 0
      src/main/java/com/jpsoft/smart/modules/base/controller/OwnerInfoController.java
  4. 230 0
      src/main/java/com/jpsoft/smart/modules/base/controller/ParkingApplyController.java
  5. 230 0
      src/main/java/com/jpsoft/smart/modules/base/controller/ParkingInfoController.java
  6. 19 0
      src/main/java/com/jpsoft/smart/modules/base/dao/AlarmInfoDAO.java
  7. 19 0
      src/main/java/com/jpsoft/smart/modules/base/dao/InformationInfoDAO.java
  8. 19 0
      src/main/java/com/jpsoft/smart/modules/base/dao/OwnerInfoDAO.java
  9. 19 0
      src/main/java/com/jpsoft/smart/modules/base/dao/ParkingApplyDAO.java
  10. 19 0
      src/main/java/com/jpsoft/smart/modules/base/dao/ParkingInfoDAO.java
  11. 157 0
      src/main/java/com/jpsoft/smart/modules/base/entity/AlarmInfo.java
  12. 203 0
      src/main/java/com/jpsoft/smart/modules/base/entity/InformationInfo.java
  13. 272 0
      src/main/java/com/jpsoft/smart/modules/base/entity/OwnerInfo.java
  14. 159 0
      src/main/java/com/jpsoft/smart/modules/base/entity/ParkingApply.java
  15. 207 0
      src/main/java/com/jpsoft/smart/modules/base/entity/ParkingInfo.java
  16. 18 0
      src/main/java/com/jpsoft/smart/modules/base/service/AlarmInfoService.java
  17. 18 0
      src/main/java/com/jpsoft/smart/modules/base/service/InformationInfoService.java
  18. 18 0
      src/main/java/com/jpsoft/smart/modules/base/service/OwnerInfoService.java
  19. 18 0
      src/main/java/com/jpsoft/smart/modules/base/service/ParkingApplyService.java
  20. 18 0
      src/main/java/com/jpsoft/smart/modules/base/service/ParkingInfoService.java
  21. 70 0
      src/main/java/com/jpsoft/smart/modules/base/service/impl/AlarmInfoServiceImpl.java
  22. 70 0
      src/main/java/com/jpsoft/smart/modules/base/service/impl/InformationInfoServiceImpl.java
  23. 70 0
      src/main/java/com/jpsoft/smart/modules/base/service/impl/OwnerInfoServiceImpl.java
  24. 70 0
      src/main/java/com/jpsoft/smart/modules/base/service/impl/ParkingApplyServiceImpl.java
  25. 70 0
      src/main/java/com/jpsoft/smart/modules/base/service/impl/ParkingInfoServiceImpl.java
  26. 101 0
      src/main/resources/mapper/base/AlarmInfo.xml
  27. 116 0
      src/main/resources/mapper/base/InformationInfo.xml
  28. 141 0
      src/main/resources/mapper/base/OwnerInfo.xml
  29. 101 0
      src/main/resources/mapper/base/ParkingApply.xml
  30. 116 0
      src/main/resources/mapper/base/ParkingInfo.xml

+ 230 - 0
src/main/java/com/jpsoft/smart/modules/base/controller/AlarmInfoController.java

@@ -0,0 +1,230 @@
+package com.jpsoft.smart.modules.base.controller;
+
+import com.github.pagehelper.Page;
+import com.jpsoft.smart.modules.base.entity.AlarmInfo;
+import com.jpsoft.smart.modules.base.service.AlarmInfoService;
+import com.jpsoft.smart.modules.common.dto.MessageResult;
+import com.jpsoft.smart.modules.common.dto.Sort;
+import com.jpsoft.smart.modules.common.utils.PojoUtils;
+import io.swagger.annotations.ApiOperation;
+import org.apache.commons.lang3.StringUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.*;
+
+@RestController
+@RequestMapping("/base/alarmInfo")
+public class AlarmInfoController {
+    private Logger logger = LoggerFactory.getLogger(getClass());
+
+    @Autowired
+    private AlarmInfoService alarmInfoService;
+
+    @ApiOperation(value="创建空记录")
+    @GetMapping("create")
+    public MessageResult<AlarmInfo> create(){
+        MessageResult<AlarmInfo> msgResult = new MessageResult<>();
+
+        AlarmInfo alarmInfo = new AlarmInfo();
+
+        msgResult.setData(alarmInfo);
+        msgResult.setResult(true);
+
+        return msgResult;
+    }
+    
+    @ApiOperation(value="添加信息")
+    @PostMapping("add")
+    public MessageResult<AlarmInfo> add(@RequestBody AlarmInfo alarmInfo,@RequestAttribute String subject){
+        MessageResult<AlarmInfo> msgResult = new MessageResult<>();
+
+        try {
+            alarmInfo.setId(UUID.randomUUID().toString());
+            alarmInfo.setDelFlag(false);
+            alarmInfo.setCreateBy(subject);
+            alarmInfo.setCreateTime(new Date());
+            
+            int affectCount = alarmInfoService.insert(alarmInfo);
+
+            if (affectCount > 0) {
+                msgResult.setResult(true);
+                msgResult.setData(alarmInfo);
+            } else {
+                msgResult.setResult(false);
+                msgResult.setMessage("数据库添加失败");
+            }
+        }
+        catch(Exception ex){
+            logger.error(ex.getMessage(),ex);
+
+            msgResult.setResult(false);
+            msgResult.setMessage(ex.getMessage());
+        }
+
+        return msgResult;
+    }
+
+    @ApiOperation(value="获取信息")
+    @GetMapping("edit/{id}")
+    public MessageResult<AlarmInfo> edit(@PathVariable("id") String id){
+        MessageResult<AlarmInfo> msgResult = new MessageResult<>();
+
+        try {
+            AlarmInfo alarmInfo = alarmInfoService.get(id);
+
+            if (alarmInfo != null) {
+                msgResult.setResult(true);
+                msgResult.setData(alarmInfo);
+            } else {
+                msgResult.setResult(false);
+                msgResult.setMessage("数据库不存在该记录!");
+            }
+        }
+        catch(Exception ex){
+            logger.error(ex.getMessage(),ex);
+
+            msgResult.setResult(false);
+            msgResult.setMessage(ex.getMessage());
+        }
+
+        return msgResult;
+    }
+
+    @ApiOperation(value="更新用户")
+    @PostMapping("update")
+    public MessageResult<AlarmInfo> update(@RequestBody AlarmInfo alarmInfo,@RequestAttribute String subject){
+        MessageResult<AlarmInfo> msgResult = new MessageResult<>();
+
+        try {
+            alarmInfo.setUpdateBy(subject);
+            alarmInfo.setUpdateTime(new Date());
+            
+            int affectCount = alarmInfoService.update(alarmInfo);
+
+            if (affectCount > 0) {
+                msgResult.setResult(true);
+                msgResult.setData(alarmInfo);
+            } else {
+                msgResult.setResult(false);
+                msgResult.setMessage("数据库更新失败");
+            }
+        }
+        catch(Exception ex){
+            logger.error(ex.getMessage(),ex);
+
+            msgResult.setResult(false);
+            msgResult.setMessage(ex.getMessage());
+        }
+
+        return msgResult;
+    }
+
+	@ApiOperation(value="删除")
+    @PostMapping("delete/{id}")
+    public MessageResult<Integer> delete(@PathVariable("id") String id,@RequestAttribute String subject){
+        MessageResult<Integer> msgResult = new MessageResult<>();
+
+        try {
+            AlarmInfo alarmInfo = alarmInfoService.get(id);
+            alarmInfo.setDelFlag(true);
+            alarmInfo.setUpdateBy(subject);
+            alarmInfo.setUpdateTime(new Date());
+
+            int affectCount = alarmInfoService.update(alarmInfo);
+
+            if (affectCount > 0) {
+                msgResult.setResult(true);
+                msgResult.setData(affectCount);
+            } else {
+                msgResult.setResult(false);
+                msgResult.setMessage("删除失败");
+            }
+        }
+        catch(Exception ex){
+            logger.error(ex.getMessage(),ex);
+
+            msgResult.setResult(false);
+            msgResult.setMessage(ex.getMessage());
+        }
+
+        return msgResult;
+    }
+
+
+    @ApiOperation(value="批量删除")
+    @PostMapping("batchDelete")
+    public MessageResult<Integer> batchDelete(@RequestBody List<String> idList,@RequestAttribute String subject){
+        MessageResult<Integer> msgResult = new MessageResult<>();
+
+        try {
+            int affectCount = 0;
+
+            for (String id : idList) {
+                AlarmInfo alarmInfo = alarmInfoService.get(id);
+                alarmInfo.setDelFlag(true);
+                alarmInfo.setUpdateBy(subject);
+                alarmInfo.setUpdateTime(new Date());
+
+                affectCount += alarmInfoService.update(alarmInfo);
+            }
+
+            if (affectCount > 0) {
+                msgResult.setResult(true);
+                msgResult.setData(affectCount);
+            } else {
+                msgResult.setResult(false);
+                msgResult.setMessage("删除失败");
+            }
+        }
+        catch(Exception ex){
+            logger.error(ex.getMessage(),ex);
+
+            msgResult.setResult(false);
+            msgResult.setMessage(ex.getMessage());
+        }
+
+        return msgResult;
+    }
+
+    @ApiOperation(value="列表")
+    @RequestMapping(value = "pageList",method = RequestMethod.POST)
+    public MessageResult<Map> pageList(
+            String id,
+            @RequestParam(value="draw",defaultValue="1") int draw,
+            @RequestParam(value="start",defaultValue="1") int start,
+            @RequestParam(value="length",defaultValue="20") int length,
+            @RequestAttribute String subject){
+
+        //当前用户ID
+        System.out.println(subject);
+
+        MessageResult<Map> msgResult = new MessageResult<>();
+
+        Map<String,Object> searchParams = new HashMap<>();
+
+        List<Sort> sortList = new ArrayList<>();
+        sortList.add(new Sort("id_","asc"));
+
+        if (StringUtils.isNotEmpty(id)) {
+            searchParams.put("id","%" + id + "%");
+        }
+
+        int pageNum = start / length;
+
+        if (start % length != 0) {
+            pageNum++;
+        }
+
+        int pageSize = length;
+
+        Page<AlarmInfo> page = alarmInfoService.pageSearch(searchParams,pageNum,pageSize,sortList);
+
+        msgResult.setResult(true);
+        msgResult.setData(PojoUtils.pageWrapper(page));
+
+        return msgResult;
+    }
+}

+ 230 - 0
src/main/java/com/jpsoft/smart/modules/base/controller/InformationInfoController.java

@@ -0,0 +1,230 @@
+package com.jpsoft.smart.modules.base.controller;
+
+import com.github.pagehelper.Page;
+import com.jpsoft.smart.modules.base.entity.InformationInfo;
+import com.jpsoft.smart.modules.base.service.InformationInfoService;
+import com.jpsoft.smart.modules.common.dto.MessageResult;
+import com.jpsoft.smart.modules.common.dto.Sort;
+import com.jpsoft.smart.modules.common.utils.PojoUtils;
+import io.swagger.annotations.ApiOperation;
+import org.apache.commons.lang3.StringUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.*;
+
+@RestController
+@RequestMapping("/base/informationInfo")
+public class InformationInfoController {
+    private Logger logger = LoggerFactory.getLogger(getClass());
+
+    @Autowired
+    private InformationInfoService informationInfoService;
+
+    @ApiOperation(value="创建空记录")
+    @GetMapping("create")
+    public MessageResult<InformationInfo> create(){
+        MessageResult<InformationInfo> msgResult = new MessageResult<>();
+
+        InformationInfo informationInfo = new InformationInfo();
+
+        msgResult.setData(informationInfo);
+        msgResult.setResult(true);
+
+        return msgResult;
+    }
+    
+    @ApiOperation(value="添加信息")
+    @PostMapping("add")
+    public MessageResult<InformationInfo> add(@RequestBody InformationInfo informationInfo,@RequestAttribute String subject){
+        MessageResult<InformationInfo> msgResult = new MessageResult<>();
+
+        try {
+            informationInfo.setId(UUID.randomUUID().toString());
+            informationInfo.setDelFlag(false);
+            informationInfo.setCreateBy(subject);
+            informationInfo.setCreateTime(new Date());
+            
+            int affectCount = informationInfoService.insert(informationInfo);
+
+            if (affectCount > 0) {
+                msgResult.setResult(true);
+                msgResult.setData(informationInfo);
+            } else {
+                msgResult.setResult(false);
+                msgResult.setMessage("数据库添加失败");
+            }
+        }
+        catch(Exception ex){
+            logger.error(ex.getMessage(),ex);
+
+            msgResult.setResult(false);
+            msgResult.setMessage(ex.getMessage());
+        }
+
+        return msgResult;
+    }
+
+    @ApiOperation(value="获取信息")
+    @GetMapping("edit/{id}")
+    public MessageResult<InformationInfo> edit(@PathVariable("id") String id){
+        MessageResult<InformationInfo> msgResult = new MessageResult<>();
+
+        try {
+            InformationInfo informationInfo = informationInfoService.get(id);
+
+            if (informationInfo != null) {
+                msgResult.setResult(true);
+                msgResult.setData(informationInfo);
+            } else {
+                msgResult.setResult(false);
+                msgResult.setMessage("数据库不存在该记录!");
+            }
+        }
+        catch(Exception ex){
+            logger.error(ex.getMessage(),ex);
+
+            msgResult.setResult(false);
+            msgResult.setMessage(ex.getMessage());
+        }
+
+        return msgResult;
+    }
+
+    @ApiOperation(value="更新用户")
+    @PostMapping("update")
+    public MessageResult<InformationInfo> update(@RequestBody InformationInfo informationInfo,@RequestAttribute String subject){
+        MessageResult<InformationInfo> msgResult = new MessageResult<>();
+
+        try {
+            informationInfo.setUpdateBy(subject);
+            informationInfo.setUpdateTime(new Date());
+            
+            int affectCount = informationInfoService.update(informationInfo);
+
+            if (affectCount > 0) {
+                msgResult.setResult(true);
+                msgResult.setData(informationInfo);
+            } else {
+                msgResult.setResult(false);
+                msgResult.setMessage("数据库更新失败");
+            }
+        }
+        catch(Exception ex){
+            logger.error(ex.getMessage(),ex);
+
+            msgResult.setResult(false);
+            msgResult.setMessage(ex.getMessage());
+        }
+
+        return msgResult;
+    }
+
+	@ApiOperation(value="删除")
+    @PostMapping("delete/{id}")
+    public MessageResult<Integer> delete(@PathVariable("id") String id,@RequestAttribute String subject){
+        MessageResult<Integer> msgResult = new MessageResult<>();
+
+        try {
+            InformationInfo informationInfo = informationInfoService.get(id);
+            informationInfo.setDelFlag(true);
+            informationInfo.setUpdateBy(subject);
+            informationInfo.setUpdateTime(new Date());
+
+            int affectCount = informationInfoService.update(informationInfo);
+
+            if (affectCount > 0) {
+                msgResult.setResult(true);
+                msgResult.setData(affectCount);
+            } else {
+                msgResult.setResult(false);
+                msgResult.setMessage("删除失败");
+            }
+        }
+        catch(Exception ex){
+            logger.error(ex.getMessage(),ex);
+
+            msgResult.setResult(false);
+            msgResult.setMessage(ex.getMessage());
+        }
+
+        return msgResult;
+    }
+
+
+    @ApiOperation(value="批量删除")
+    @PostMapping("batchDelete")
+    public MessageResult<Integer> batchDelete(@RequestBody List<String> idList,@RequestAttribute String subject){
+        MessageResult<Integer> msgResult = new MessageResult<>();
+
+        try {
+            int affectCount = 0;
+
+            for (String id : idList) {
+                InformationInfo informationInfo = informationInfoService.get(id);
+                informationInfo.setDelFlag(true);
+                informationInfo.setUpdateBy(subject);
+                informationInfo.setUpdateTime(new Date());
+
+                affectCount += informationInfoService.update(informationInfo);
+            }
+
+            if (affectCount > 0) {
+                msgResult.setResult(true);
+                msgResult.setData(affectCount);
+            } else {
+                msgResult.setResult(false);
+                msgResult.setMessage("删除失败");
+            }
+        }
+        catch(Exception ex){
+            logger.error(ex.getMessage(),ex);
+
+            msgResult.setResult(false);
+            msgResult.setMessage(ex.getMessage());
+        }
+
+        return msgResult;
+    }
+
+    @ApiOperation(value="列表")
+    @RequestMapping(value = "pageList",method = RequestMethod.POST)
+    public MessageResult<Map> pageList(
+            String id,
+            @RequestParam(value="draw",defaultValue="1") int draw,
+            @RequestParam(value="start",defaultValue="1") int start,
+            @RequestParam(value="length",defaultValue="20") int length,
+            @RequestAttribute String subject){
+
+        //当前用户ID
+        System.out.println(subject);
+
+        MessageResult<Map> msgResult = new MessageResult<>();
+
+        Map<String,Object> searchParams = new HashMap<>();
+
+        List<Sort> sortList = new ArrayList<>();
+        sortList.add(new Sort("id_","asc"));
+
+        if (StringUtils.isNotEmpty(id)) {
+            searchParams.put("id","%" + id + "%");
+        }
+
+        int pageNum = start / length;
+
+        if (start % length != 0) {
+            pageNum++;
+        }
+
+        int pageSize = length;
+
+        Page<InformationInfo> page = informationInfoService.pageSearch(searchParams,pageNum,pageSize,sortList);
+
+        msgResult.setResult(true);
+        msgResult.setData(PojoUtils.pageWrapper(page));
+
+        return msgResult;
+    }
+}

+ 230 - 0
src/main/java/com/jpsoft/smart/modules/base/controller/OwnerInfoController.java

@@ -0,0 +1,230 @@
+package com.jpsoft.smart.modules.base.controller;
+
+import com.github.pagehelper.Page;
+import com.jpsoft.smart.modules.base.entity.OwnerInfo;
+import com.jpsoft.smart.modules.base.service.OwnerInfoService;
+import com.jpsoft.smart.modules.common.dto.MessageResult;
+import com.jpsoft.smart.modules.common.dto.Sort;
+import com.jpsoft.smart.modules.common.utils.PojoUtils;
+import io.swagger.annotations.ApiOperation;
+import org.apache.commons.lang3.StringUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.*;
+
+@RestController
+@RequestMapping("/base/ownerInfo")
+public class OwnerInfoController {
+    private Logger logger = LoggerFactory.getLogger(getClass());
+
+    @Autowired
+    private OwnerInfoService ownerInfoService;
+
+    @ApiOperation(value="创建空记录")
+    @GetMapping("create")
+    public MessageResult<OwnerInfo> create(){
+        MessageResult<OwnerInfo> msgResult = new MessageResult<>();
+
+        OwnerInfo ownerInfo = new OwnerInfo();
+
+        msgResult.setData(ownerInfo);
+        msgResult.setResult(true);
+
+        return msgResult;
+    }
+    
+    @ApiOperation(value="添加信息")
+    @PostMapping("add")
+    public MessageResult<OwnerInfo> add(@RequestBody OwnerInfo ownerInfo,@RequestAttribute String subject){
+        MessageResult<OwnerInfo> msgResult = new MessageResult<>();
+
+        try {
+            ownerInfo.setId(UUID.randomUUID().toString());
+            ownerInfo.setDelFlag(false);
+            ownerInfo.setCreateBy(subject);
+            ownerInfo.setCreateTime(new Date());
+            
+            int affectCount = ownerInfoService.insert(ownerInfo);
+
+            if (affectCount > 0) {
+                msgResult.setResult(true);
+                msgResult.setData(ownerInfo);
+            } else {
+                msgResult.setResult(false);
+                msgResult.setMessage("数据库添加失败");
+            }
+        }
+        catch(Exception ex){
+            logger.error(ex.getMessage(),ex);
+
+            msgResult.setResult(false);
+            msgResult.setMessage(ex.getMessage());
+        }
+
+        return msgResult;
+    }
+
+    @ApiOperation(value="获取信息")
+    @GetMapping("edit/{id}")
+    public MessageResult<OwnerInfo> edit(@PathVariable("id") String id){
+        MessageResult<OwnerInfo> msgResult = new MessageResult<>();
+
+        try {
+            OwnerInfo ownerInfo = ownerInfoService.get(id);
+
+            if (ownerInfo != null) {
+                msgResult.setResult(true);
+                msgResult.setData(ownerInfo);
+            } else {
+                msgResult.setResult(false);
+                msgResult.setMessage("数据库不存在该记录!");
+            }
+        }
+        catch(Exception ex){
+            logger.error(ex.getMessage(),ex);
+
+            msgResult.setResult(false);
+            msgResult.setMessage(ex.getMessage());
+        }
+
+        return msgResult;
+    }
+
+    @ApiOperation(value="更新用户")
+    @PostMapping("update")
+    public MessageResult<OwnerInfo> update(@RequestBody OwnerInfo ownerInfo,@RequestAttribute String subject){
+        MessageResult<OwnerInfo> msgResult = new MessageResult<>();
+
+        try {
+            ownerInfo.setUpdateBy(subject);
+            ownerInfo.setUpdateTime(new Date());
+            
+            int affectCount = ownerInfoService.update(ownerInfo);
+
+            if (affectCount > 0) {
+                msgResult.setResult(true);
+                msgResult.setData(ownerInfo);
+            } else {
+                msgResult.setResult(false);
+                msgResult.setMessage("数据库更新失败");
+            }
+        }
+        catch(Exception ex){
+            logger.error(ex.getMessage(),ex);
+
+            msgResult.setResult(false);
+            msgResult.setMessage(ex.getMessage());
+        }
+
+        return msgResult;
+    }
+
+	@ApiOperation(value="删除")
+    @PostMapping("delete/{id}")
+    public MessageResult<Integer> delete(@PathVariable("id") String id,@RequestAttribute String subject){
+        MessageResult<Integer> msgResult = new MessageResult<>();
+
+        try {
+            OwnerInfo ownerInfo = ownerInfoService.get(id);
+            ownerInfo.setDelFlag(true);
+            ownerInfo.setUpdateBy(subject);
+            ownerInfo.setUpdateTime(new Date());
+
+            int affectCount = ownerInfoService.update(ownerInfo);
+
+            if (affectCount > 0) {
+                msgResult.setResult(true);
+                msgResult.setData(affectCount);
+            } else {
+                msgResult.setResult(false);
+                msgResult.setMessage("删除失败");
+            }
+        }
+        catch(Exception ex){
+            logger.error(ex.getMessage(),ex);
+
+            msgResult.setResult(false);
+            msgResult.setMessage(ex.getMessage());
+        }
+
+        return msgResult;
+    }
+
+
+    @ApiOperation(value="批量删除")
+    @PostMapping("batchDelete")
+    public MessageResult<Integer> batchDelete(@RequestBody List<String> idList,@RequestAttribute String subject){
+        MessageResult<Integer> msgResult = new MessageResult<>();
+
+        try {
+            int affectCount = 0;
+
+            for (String id : idList) {
+                OwnerInfo ownerInfo = ownerInfoService.get(id);
+                ownerInfo.setDelFlag(true);
+                ownerInfo.setUpdateBy(subject);
+                ownerInfo.setUpdateTime(new Date());
+
+                affectCount += ownerInfoService.update(ownerInfo);
+            }
+
+            if (affectCount > 0) {
+                msgResult.setResult(true);
+                msgResult.setData(affectCount);
+            } else {
+                msgResult.setResult(false);
+                msgResult.setMessage("删除失败");
+            }
+        }
+        catch(Exception ex){
+            logger.error(ex.getMessage(),ex);
+
+            msgResult.setResult(false);
+            msgResult.setMessage(ex.getMessage());
+        }
+
+        return msgResult;
+    }
+
+    @ApiOperation(value="列表")
+    @RequestMapping(value = "pageList",method = RequestMethod.POST)
+    public MessageResult<Map> pageList(
+            String id,
+            @RequestParam(value="draw",defaultValue="1") int draw,
+            @RequestParam(value="start",defaultValue="1") int start,
+            @RequestParam(value="length",defaultValue="20") int length,
+            @RequestAttribute String subject){
+
+        //当前用户ID
+        System.out.println(subject);
+
+        MessageResult<Map> msgResult = new MessageResult<>();
+
+        Map<String,Object> searchParams = new HashMap<>();
+
+        List<Sort> sortList = new ArrayList<>();
+        sortList.add(new Sort("id_","asc"));
+
+        if (StringUtils.isNotEmpty(id)) {
+            searchParams.put("id","%" + id + "%");
+        }
+
+        int pageNum = start / length;
+
+        if (start % length != 0) {
+            pageNum++;
+        }
+
+        int pageSize = length;
+
+        Page<OwnerInfo> page = ownerInfoService.pageSearch(searchParams,pageNum,pageSize,sortList);
+
+        msgResult.setResult(true);
+        msgResult.setData(PojoUtils.pageWrapper(page));
+
+        return msgResult;
+    }
+}

+ 230 - 0
src/main/java/com/jpsoft/smart/modules/base/controller/ParkingApplyController.java

@@ -0,0 +1,230 @@
+package com.jpsoft.smart.modules.base.controller;
+
+import com.github.pagehelper.Page;
+import com.jpsoft.smart.modules.base.entity.ParkingApply;
+import com.jpsoft.smart.modules.base.service.ParkingApplyService;
+import com.jpsoft.smart.modules.common.dto.MessageResult;
+import com.jpsoft.smart.modules.common.dto.Sort;
+import com.jpsoft.smart.modules.common.utils.PojoUtils;
+import io.swagger.annotations.ApiOperation;
+import org.apache.commons.lang3.StringUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.*;
+
+@RestController
+@RequestMapping("/base/parkingApply")
+public class ParkingApplyController {
+    private Logger logger = LoggerFactory.getLogger(getClass());
+
+    @Autowired
+    private ParkingApplyService parkingApplyService;
+
+    @ApiOperation(value="创建空记录")
+    @GetMapping("create")
+    public MessageResult<ParkingApply> create(){
+        MessageResult<ParkingApply> msgResult = new MessageResult<>();
+
+        ParkingApply parkingApply = new ParkingApply();
+
+        msgResult.setData(parkingApply);
+        msgResult.setResult(true);
+
+        return msgResult;
+    }
+    
+    @ApiOperation(value="添加信息")
+    @PostMapping("add")
+    public MessageResult<ParkingApply> add(@RequestBody ParkingApply parkingApply,@RequestAttribute String subject){
+        MessageResult<ParkingApply> msgResult = new MessageResult<>();
+
+        try {
+            parkingApply.setId(UUID.randomUUID().toString());
+            parkingApply.setDelFlag(false);
+            parkingApply.setCreateBy(subject);
+            parkingApply.setCreateTime(new Date());
+            
+            int affectCount = parkingApplyService.insert(parkingApply);
+
+            if (affectCount > 0) {
+                msgResult.setResult(true);
+                msgResult.setData(parkingApply);
+            } else {
+                msgResult.setResult(false);
+                msgResult.setMessage("数据库添加失败");
+            }
+        }
+        catch(Exception ex){
+            logger.error(ex.getMessage(),ex);
+
+            msgResult.setResult(false);
+            msgResult.setMessage(ex.getMessage());
+        }
+
+        return msgResult;
+    }
+
+    @ApiOperation(value="获取信息")
+    @GetMapping("edit/{id}")
+    public MessageResult<ParkingApply> edit(@PathVariable("id") String id){
+        MessageResult<ParkingApply> msgResult = new MessageResult<>();
+
+        try {
+            ParkingApply parkingApply = parkingApplyService.get(id);
+
+            if (parkingApply != null) {
+                msgResult.setResult(true);
+                msgResult.setData(parkingApply);
+            } else {
+                msgResult.setResult(false);
+                msgResult.setMessage("数据库不存在该记录!");
+            }
+        }
+        catch(Exception ex){
+            logger.error(ex.getMessage(),ex);
+
+            msgResult.setResult(false);
+            msgResult.setMessage(ex.getMessage());
+        }
+
+        return msgResult;
+    }
+
+    @ApiOperation(value="更新用户")
+    @PostMapping("update")
+    public MessageResult<ParkingApply> update(@RequestBody ParkingApply parkingApply,@RequestAttribute String subject){
+        MessageResult<ParkingApply> msgResult = new MessageResult<>();
+
+        try {
+            parkingApply.setUpdateBy(subject);
+            parkingApply.setUpdateTime(new Date());
+            
+            int affectCount = parkingApplyService.update(parkingApply);
+
+            if (affectCount > 0) {
+                msgResult.setResult(true);
+                msgResult.setData(parkingApply);
+            } else {
+                msgResult.setResult(false);
+                msgResult.setMessage("数据库更新失败");
+            }
+        }
+        catch(Exception ex){
+            logger.error(ex.getMessage(),ex);
+
+            msgResult.setResult(false);
+            msgResult.setMessage(ex.getMessage());
+        }
+
+        return msgResult;
+    }
+
+	@ApiOperation(value="删除")
+    @PostMapping("delete/{id}")
+    public MessageResult<Integer> delete(@PathVariable("id") String id,@RequestAttribute String subject){
+        MessageResult<Integer> msgResult = new MessageResult<>();
+
+        try {
+            ParkingApply parkingApply = parkingApplyService.get(id);
+            parkingApply.setDelFlag(true);
+            parkingApply.setUpdateBy(subject);
+            parkingApply.setUpdateTime(new Date());
+
+            int affectCount = parkingApplyService.update(parkingApply);
+
+            if (affectCount > 0) {
+                msgResult.setResult(true);
+                msgResult.setData(affectCount);
+            } else {
+                msgResult.setResult(false);
+                msgResult.setMessage("删除失败");
+            }
+        }
+        catch(Exception ex){
+            logger.error(ex.getMessage(),ex);
+
+            msgResult.setResult(false);
+            msgResult.setMessage(ex.getMessage());
+        }
+
+        return msgResult;
+    }
+
+
+    @ApiOperation(value="批量删除")
+    @PostMapping("batchDelete")
+    public MessageResult<Integer> batchDelete(@RequestBody List<String> idList,@RequestAttribute String subject){
+        MessageResult<Integer> msgResult = new MessageResult<>();
+
+        try {
+            int affectCount = 0;
+
+            for (String id : idList) {
+                ParkingApply parkingApply = parkingApplyService.get(id);
+                parkingApply.setDelFlag(true);
+                parkingApply.setUpdateBy(subject);
+                parkingApply.setUpdateTime(new Date());
+
+                affectCount += parkingApplyService.update(parkingApply);
+            }
+
+            if (affectCount > 0) {
+                msgResult.setResult(true);
+                msgResult.setData(affectCount);
+            } else {
+                msgResult.setResult(false);
+                msgResult.setMessage("删除失败");
+            }
+        }
+        catch(Exception ex){
+            logger.error(ex.getMessage(),ex);
+
+            msgResult.setResult(false);
+            msgResult.setMessage(ex.getMessage());
+        }
+
+        return msgResult;
+    }
+
+    @ApiOperation(value="列表")
+    @RequestMapping(value = "pageList",method = RequestMethod.POST)
+    public MessageResult<Map> pageList(
+            String id,
+            @RequestParam(value="draw",defaultValue="1") int draw,
+            @RequestParam(value="start",defaultValue="1") int start,
+            @RequestParam(value="length",defaultValue="20") int length,
+            @RequestAttribute String subject){
+
+        //当前用户ID
+        System.out.println(subject);
+
+        MessageResult<Map> msgResult = new MessageResult<>();
+
+        Map<String,Object> searchParams = new HashMap<>();
+
+        List<Sort> sortList = new ArrayList<>();
+        sortList.add(new Sort("id_","asc"));
+
+        if (StringUtils.isNotEmpty(id)) {
+            searchParams.put("id","%" + id + "%");
+        }
+
+        int pageNum = start / length;
+
+        if (start % length != 0) {
+            pageNum++;
+        }
+
+        int pageSize = length;
+
+        Page<ParkingApply> page = parkingApplyService.pageSearch(searchParams,pageNum,pageSize,sortList);
+
+        msgResult.setResult(true);
+        msgResult.setData(PojoUtils.pageWrapper(page));
+
+        return msgResult;
+    }
+}

+ 230 - 0
src/main/java/com/jpsoft/smart/modules/base/controller/ParkingInfoController.java

@@ -0,0 +1,230 @@
+package com.jpsoft.smart.modules.base.controller;
+
+import com.github.pagehelper.Page;
+import com.jpsoft.smart.modules.base.entity.ParkingInfo;
+import com.jpsoft.smart.modules.base.service.ParkingInfoService;
+import com.jpsoft.smart.modules.common.dto.MessageResult;
+import com.jpsoft.smart.modules.common.dto.Sort;
+import com.jpsoft.smart.modules.common.utils.PojoUtils;
+import io.swagger.annotations.ApiOperation;
+import org.apache.commons.lang3.StringUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.*;
+
+@RestController
+@RequestMapping("/base/parkingInfo")
+public class ParkingInfoController {
+    private Logger logger = LoggerFactory.getLogger(getClass());
+
+    @Autowired
+    private ParkingInfoService parkingInfoService;
+
+    @ApiOperation(value="创建空记录")
+    @GetMapping("create")
+    public MessageResult<ParkingInfo> create(){
+        MessageResult<ParkingInfo> msgResult = new MessageResult<>();
+
+        ParkingInfo parkingInfo = new ParkingInfo();
+
+        msgResult.setData(parkingInfo);
+        msgResult.setResult(true);
+
+        return msgResult;
+    }
+    
+    @ApiOperation(value="添加信息")
+    @PostMapping("add")
+    public MessageResult<ParkingInfo> add(@RequestBody ParkingInfo parkingInfo,@RequestAttribute String subject){
+        MessageResult<ParkingInfo> msgResult = new MessageResult<>();
+
+        try {
+            parkingInfo.setId(UUID.randomUUID().toString());
+            parkingInfo.setDelFlag(false);
+            parkingInfo.setCreateBy(subject);
+            parkingInfo.setCreateTime(new Date());
+            
+            int affectCount = parkingInfoService.insert(parkingInfo);
+
+            if (affectCount > 0) {
+                msgResult.setResult(true);
+                msgResult.setData(parkingInfo);
+            } else {
+                msgResult.setResult(false);
+                msgResult.setMessage("数据库添加失败");
+            }
+        }
+        catch(Exception ex){
+            logger.error(ex.getMessage(),ex);
+
+            msgResult.setResult(false);
+            msgResult.setMessage(ex.getMessage());
+        }
+
+        return msgResult;
+    }
+
+    @ApiOperation(value="获取信息")
+    @GetMapping("edit/{id}")
+    public MessageResult<ParkingInfo> edit(@PathVariable("id") String id){
+        MessageResult<ParkingInfo> msgResult = new MessageResult<>();
+
+        try {
+            ParkingInfo parkingInfo = parkingInfoService.get(id);
+
+            if (parkingInfo != null) {
+                msgResult.setResult(true);
+                msgResult.setData(parkingInfo);
+            } else {
+                msgResult.setResult(false);
+                msgResult.setMessage("数据库不存在该记录!");
+            }
+        }
+        catch(Exception ex){
+            logger.error(ex.getMessage(),ex);
+
+            msgResult.setResult(false);
+            msgResult.setMessage(ex.getMessage());
+        }
+
+        return msgResult;
+    }
+
+    @ApiOperation(value="更新用户")
+    @PostMapping("update")
+    public MessageResult<ParkingInfo> update(@RequestBody ParkingInfo parkingInfo,@RequestAttribute String subject){
+        MessageResult<ParkingInfo> msgResult = new MessageResult<>();
+
+        try {
+            parkingInfo.setUpdateBy(subject);
+            parkingInfo.setUpdateTime(new Date());
+            
+            int affectCount = parkingInfoService.update(parkingInfo);
+
+            if (affectCount > 0) {
+                msgResult.setResult(true);
+                msgResult.setData(parkingInfo);
+            } else {
+                msgResult.setResult(false);
+                msgResult.setMessage("数据库更新失败");
+            }
+        }
+        catch(Exception ex){
+            logger.error(ex.getMessage(),ex);
+
+            msgResult.setResult(false);
+            msgResult.setMessage(ex.getMessage());
+        }
+
+        return msgResult;
+    }
+
+	@ApiOperation(value="删除")
+    @PostMapping("delete/{id}")
+    public MessageResult<Integer> delete(@PathVariable("id") String id,@RequestAttribute String subject){
+        MessageResult<Integer> msgResult = new MessageResult<>();
+
+        try {
+            ParkingInfo parkingInfo = parkingInfoService.get(id);
+            parkingInfo.setDelFlag(true);
+            parkingInfo.setUpdateBy(subject);
+            parkingInfo.setUpdateTime(new Date());
+
+            int affectCount = parkingInfoService.update(parkingInfo);
+
+            if (affectCount > 0) {
+                msgResult.setResult(true);
+                msgResult.setData(affectCount);
+            } else {
+                msgResult.setResult(false);
+                msgResult.setMessage("删除失败");
+            }
+        }
+        catch(Exception ex){
+            logger.error(ex.getMessage(),ex);
+
+            msgResult.setResult(false);
+            msgResult.setMessage(ex.getMessage());
+        }
+
+        return msgResult;
+    }
+
+
+    @ApiOperation(value="批量删除")
+    @PostMapping("batchDelete")
+    public MessageResult<Integer> batchDelete(@RequestBody List<String> idList,@RequestAttribute String subject){
+        MessageResult<Integer> msgResult = new MessageResult<>();
+
+        try {
+            int affectCount = 0;
+
+            for (String id : idList) {
+                ParkingInfo parkingInfo = parkingInfoService.get(id);
+                parkingInfo.setDelFlag(true);
+                parkingInfo.setUpdateBy(subject);
+                parkingInfo.setUpdateTime(new Date());
+
+                affectCount += parkingInfoService.update(parkingInfo);
+            }
+
+            if (affectCount > 0) {
+                msgResult.setResult(true);
+                msgResult.setData(affectCount);
+            } else {
+                msgResult.setResult(false);
+                msgResult.setMessage("删除失败");
+            }
+        }
+        catch(Exception ex){
+            logger.error(ex.getMessage(),ex);
+
+            msgResult.setResult(false);
+            msgResult.setMessage(ex.getMessage());
+        }
+
+        return msgResult;
+    }
+
+    @ApiOperation(value="列表")
+    @RequestMapping(value = "pageList",method = RequestMethod.POST)
+    public MessageResult<Map> pageList(
+            String id,
+            @RequestParam(value="draw",defaultValue="1") int draw,
+            @RequestParam(value="start",defaultValue="1") int start,
+            @RequestParam(value="length",defaultValue="20") int length,
+            @RequestAttribute String subject){
+
+        //当前用户ID
+        System.out.println(subject);
+
+        MessageResult<Map> msgResult = new MessageResult<>();
+
+        Map<String,Object> searchParams = new HashMap<>();
+
+        List<Sort> sortList = new ArrayList<>();
+        sortList.add(new Sort("id_","asc"));
+
+        if (StringUtils.isNotEmpty(id)) {
+            searchParams.put("id","%" + id + "%");
+        }
+
+        int pageNum = start / length;
+
+        if (start % length != 0) {
+            pageNum++;
+        }
+
+        int pageSize = length;
+
+        Page<ParkingInfo> page = parkingInfoService.pageSearch(searchParams,pageNum,pageSize,sortList);
+
+        msgResult.setResult(true);
+        msgResult.setData(PojoUtils.pageWrapper(page));
+
+        return msgResult;
+    }
+}

+ 19 - 0
src/main/java/com/jpsoft/smart/modules/base/dao/AlarmInfoDAO.java

@@ -0,0 +1,19 @@
+package com.jpsoft.smart.modules.base.dao;
+
+import com.jpsoft.smart.modules.base.entity.AlarmInfo;
+import com.jpsoft.smart.modules.common.dto.Sort;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+import java.util.Map;
+
+@Repository
+public interface AlarmInfoDAO {
+	int insert(AlarmInfo entity);
+	int update(AlarmInfo entity);
+	int exist(String id);
+	AlarmInfo get(String id);
+	int delete(String id);
+	List<AlarmInfo> list();
+	List<AlarmInfo> search(Map<String, Object> searchParams, List<Sort> sortList);
+}

+ 19 - 0
src/main/java/com/jpsoft/smart/modules/base/dao/InformationInfoDAO.java

@@ -0,0 +1,19 @@
+package com.jpsoft.smart.modules.base.dao;
+
+import com.jpsoft.smart.modules.base.entity.InformationInfo;
+import com.jpsoft.smart.modules.common.dto.Sort;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+import java.util.Map;
+
+@Repository
+public interface InformationInfoDAO {
+	int insert(InformationInfo entity);
+	int update(InformationInfo entity);
+	int exist(String id);
+	InformationInfo get(String id);
+	int delete(String id);
+	List<InformationInfo> list();
+	List<InformationInfo> search(Map<String, Object> searchParams, List<Sort> sortList);
+}

+ 19 - 0
src/main/java/com/jpsoft/smart/modules/base/dao/OwnerInfoDAO.java

@@ -0,0 +1,19 @@
+package com.jpsoft.smart.modules.base.dao;
+
+import com.jpsoft.smart.modules.base.entity.OwnerInfo;
+import com.jpsoft.smart.modules.common.dto.Sort;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+import java.util.Map;
+
+@Repository
+public interface OwnerInfoDAO {
+	int insert(OwnerInfo entity);
+	int update(OwnerInfo entity);
+	int exist(String id);
+	OwnerInfo get(String id);
+	int delete(String id);
+	List<OwnerInfo> list();
+	List<OwnerInfo> search(Map<String, Object> searchParams, List<Sort> sortList);
+}

+ 19 - 0
src/main/java/com/jpsoft/smart/modules/base/dao/ParkingApplyDAO.java

@@ -0,0 +1,19 @@
+package com.jpsoft.smart.modules.base.dao;
+
+import com.jpsoft.smart.modules.base.entity.ParkingApply;
+import com.jpsoft.smart.modules.common.dto.Sort;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+import java.util.Map;
+
+@Repository
+public interface ParkingApplyDAO {
+	int insert(ParkingApply entity);
+	int update(ParkingApply entity);
+	int exist(String id);
+	ParkingApply get(String id);
+	int delete(String id);
+	List<ParkingApply> list();
+	List<ParkingApply> search(Map<String, Object> searchParams, List<Sort> sortList);
+}

+ 19 - 0
src/main/java/com/jpsoft/smart/modules/base/dao/ParkingInfoDAO.java

@@ -0,0 +1,19 @@
+package com.jpsoft.smart.modules.base.dao;
+
+import com.jpsoft.smart.modules.base.entity.ParkingInfo;
+import com.jpsoft.smart.modules.common.dto.Sort;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+import java.util.Map;
+
+@Repository
+public interface ParkingInfoDAO {
+	int insert(ParkingInfo entity);
+	int update(ParkingInfo entity);
+	int exist(String id);
+	ParkingInfo get(String id);
+	int delete(String id);
+	List<ParkingInfo> list();
+	List<ParkingInfo> search(Map<String, Object> searchParams, List<Sort> sortList);
+}

+ 157 - 0
src/main/java/com/jpsoft/smart/modules/base/entity/AlarmInfo.java

@@ -0,0 +1,157 @@
+package com.jpsoft.smart.modules.base.entity;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.util.Date;
+
+/**
+  描述:base_alarm_info的实体类
+ */
+public class AlarmInfo {
+	private String id;
+	private String createBy;
+	private Date createTime;
+	private String updateBy;
+	private Date updateTime;
+	private Boolean delFlag;
+	private String deviceNo;
+	private String channelName;
+	private String alertType;
+	private String type;
+	
+		/**
+	 *获取
+	 */
+	public String getId(){
+		return id;
+	}
+	
+	/**
+	 *设置
+	 */
+	public void setId(String id){
+		this.id = id;
+	}
+		/**
+	 *获取
+	 */
+	public String getCreateBy(){
+		return createBy;
+	}
+	
+	/**
+	 *设置
+	 */
+	public void setCreateBy(String createBy){
+		this.createBy = createBy;
+	}
+		@DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
+	@JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone ="GMT+8")
+		/**
+	 *获取
+	 */
+	public Date getCreateTime(){
+		return createTime;
+	}
+	
+	/**
+	 *设置
+	 */
+	public void setCreateTime(Date createTime){
+		this.createTime = createTime;
+	}
+		/**
+	 *获取
+	 */
+	public String getUpdateBy(){
+		return updateBy;
+	}
+	
+	/**
+	 *设置
+	 */
+	public void setUpdateBy(String updateBy){
+		this.updateBy = updateBy;
+	}
+		@DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
+	@JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone ="GMT+8")
+		/**
+	 *获取
+	 */
+	public Date getUpdateTime(){
+		return updateTime;
+	}
+	
+	/**
+	 *设置
+	 */
+	public void setUpdateTime(Date updateTime){
+		this.updateTime = updateTime;
+	}
+		/**
+	 *获取是否删除
+	 */
+	public Boolean getDelFlag(){
+		return delFlag;
+	}
+	
+	/**
+	 *设置是否删除
+	 */
+	public void setDelFlag(Boolean delFlag){
+		this.delFlag = delFlag;
+	}
+		/**
+	 *获取设备号
+	 */
+	public String getDeviceNo(){
+		return deviceNo;
+	}
+	
+	/**
+	 *设置设备号
+	 */
+	public void setDeviceNo(String deviceNo){
+		this.deviceNo = deviceNo;
+	}
+		/**
+	 *获取通道名称
+	 */
+	public String getChannelName(){
+		return channelName;
+	}
+	
+	/**
+	 *设置通道名称
+	 */
+	public void setChannelName(String channelName){
+		this.channelName = channelName;
+	}
+		/**
+	 *获取警报标识类型
+	 */
+	public String getAlertType(){
+		return alertType;
+	}
+	
+	/**
+	 *设置警报标识类型
+	 */
+	public void setAlertType(String alertType){
+		this.alertType = alertType;
+	}
+		/**
+	 *获取警报所属类型/1围墙/2警戒
+	 */
+	public String getType(){
+		return type;
+	}
+	
+	/**
+	 *设置警报所属类型/1围墙/2警戒
+	 */
+	public void setType(String type){
+		this.type = type;
+	}
+}

+ 203 - 0
src/main/java/com/jpsoft/smart/modules/base/entity/InformationInfo.java

@@ -0,0 +1,203 @@
+package com.jpsoft.smart.modules.base.entity;
+
+import java.io.Serializable;
+import java.util.Date;
+import java.text.SimpleDateFormat;
+import java.math.BigDecimal;
+import org.springframework.format.annotation.DateTimeFormat;
+import com.fasterxml.jackson.annotation.JsonFormat;
+
+/**
+  描述:base_information_info的实体类
+ */
+public class InformationInfo {
+	private String id;
+	private String createBy;
+	private Date createTime;
+	private String updateBy;
+	private Date updateTime;
+	private Boolean delFlag;
+	private String ownerId;
+	private String community;
+	private String content;
+	private String status;
+	private String returnContent;
+	private Date returnTime;
+	private String type;
+	
+		/**
+	 *获取
+	 */
+	public String getId(){
+		return id;
+	}
+	
+	/**
+	 *设置
+	 */
+	public void setId(String id){
+		this.id = id;
+	}
+		/**
+	 *获取
+	 */
+	public String getCreateBy(){
+		return createBy;
+	}
+	
+	/**
+	 *设置
+	 */
+	public void setCreateBy(String createBy){
+		this.createBy = createBy;
+	}
+		@DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
+	@JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone ="GMT+8")
+		/**
+	 *获取
+	 */
+	public Date getCreateTime(){
+		return createTime;
+	}
+	
+	/**
+	 *设置
+	 */
+	public void setCreateTime(Date createTime){
+		this.createTime = createTime;
+	}
+		/**
+	 *获取
+	 */
+	public String getUpdateBy(){
+		return updateBy;
+	}
+	
+	/**
+	 *设置
+	 */
+	public void setUpdateBy(String updateBy){
+		this.updateBy = updateBy;
+	}
+		@DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
+	@JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone ="GMT+8")
+		/**
+	 *获取
+	 */
+	public Date getUpdateTime(){
+		return updateTime;
+	}
+	
+	/**
+	 *设置
+	 */
+	public void setUpdateTime(Date updateTime){
+		this.updateTime = updateTime;
+	}
+		/**
+	 *获取是否删除
+	 */
+	public Boolean getDelFlag(){
+		return delFlag;
+	}
+	
+	/**
+	 *设置是否删除
+	 */
+	public void setDelFlag(Boolean delFlag){
+		this.delFlag = delFlag;
+	}
+		/**
+	 *获取提交人ID
+	 */
+	public String getOwnerId(){
+		return ownerId;
+	}
+	
+	/**
+	 *设置提交人ID
+	 */
+	public void setOwnerId(String ownerId){
+		this.ownerId = ownerId;
+	}
+		/**
+	 *获取所在小区
+	 */
+	public String getCommunity(){
+		return community;
+	}
+	
+	/**
+	 *设置所在小区
+	 */
+	public void setCommunity(String community){
+		this.community = community;
+	}
+		/**
+	 *获取提交内容
+	 */
+	public String getContent(){
+		return content;
+	}
+	
+	/**
+	 *设置提交内容
+	 */
+	public void setContent(String content){
+		this.content = content;
+	}
+		/**
+	 *获取提交状态
+	 */
+	public String getStatus(){
+		return status;
+	}
+	
+	/**
+	 *设置提交状态
+	 */
+	public void setStatus(String status){
+		this.status = status;
+	}
+		/**
+	 *获取回复内容
+	 */
+	public String getReturnContent(){
+		return returnContent;
+	}
+	
+	/**
+	 *设置回复内容
+	 */
+	public void setReturnContent(String returnContent){
+		this.returnContent = returnContent;
+	}
+		@DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
+	@JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone ="GMT+8")
+		/**
+	 *获取回复时间
+	 */
+	public Date getReturnTime(){
+		return returnTime;
+	}
+	
+	/**
+	 *设置回复时间
+	 */
+	public void setReturnTime(Date returnTime){
+		this.returnTime = returnTime;
+	}
+		/**
+	 *获取状态/1投诉/2报修
+	 */
+	public String getType(){
+		return type;
+	}
+	
+	/**
+	 *设置状态/1投诉/2报修
+	 */
+	public void setType(String type){
+		this.type = type;
+	}
+}

+ 272 - 0
src/main/java/com/jpsoft/smart/modules/base/entity/OwnerInfo.java

@@ -0,0 +1,272 @@
+package com.jpsoft.smart.modules.base.entity;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.math.BigDecimal;
+import java.util.Date;
+
+/**
+  描述:base_owner_info的实体类
+ */
+public class OwnerInfo {
+	private String id;
+	private String createBy;
+	private Date createTime;
+	private String updateBy;
+	private Date updateTime;
+	private Boolean delFlag;
+	private String name;
+	private String tel;
+	private String park;
+	private String building;
+	private String area;
+	private Date checkinTime;
+	private BigDecimal propertyCosts;
+	private String cardNo;
+	private String authority;
+	private String carNo;
+	private Boolean isAccessControl;
+	private Boolean isThePublic;
+	
+		/**
+	 *获取
+	 */
+	public String getId(){
+		return id;
+	}
+	
+	/**
+	 *设置
+	 */
+	public void setId(String id){
+		this.id = id;
+	}
+		/**
+	 *获取
+	 */
+	public String getCreateBy(){
+		return createBy;
+	}
+	
+	/**
+	 *设置
+	 */
+	public void setCreateBy(String createBy){
+		this.createBy = createBy;
+	}
+		@DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
+	@JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone ="GMT+8")
+		/**
+	 *获取
+	 */
+	public Date getCreateTime(){
+		return createTime;
+	}
+	
+	/**
+	 *设置
+	 */
+	public void setCreateTime(Date createTime){
+		this.createTime = createTime;
+	}
+		/**
+	 *获取
+	 */
+	public String getUpdateBy(){
+		return updateBy;
+	}
+	
+	/**
+	 *设置
+	 */
+	public void setUpdateBy(String updateBy){
+		this.updateBy = updateBy;
+	}
+		@DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
+	@JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone ="GMT+8")
+		/**
+	 *获取
+	 */
+	public Date getUpdateTime(){
+		return updateTime;
+	}
+	
+	/**
+	 *设置
+	 */
+	public void setUpdateTime(Date updateTime){
+		this.updateTime = updateTime;
+	}
+		/**
+	 *获取是否删除
+	 */
+	public Boolean getDelFlag(){
+		return delFlag;
+	}
+	
+	/**
+	 *设置是否删除
+	 */
+	public void setDelFlag(Boolean delFlag){
+		this.delFlag = delFlag;
+	}
+		/**
+	 *获取业主名称
+	 */
+	public String getName(){
+		return name;
+	}
+	
+	/**
+	 *设置业主名称
+	 */
+	public void setName(String name){
+		this.name = name;
+	}
+		/**
+	 *获取手机号码
+	 */
+	public String getTel(){
+		return tel;
+	}
+	
+	/**
+	 *设置手机号码
+	 */
+	public void setTel(String tel){
+		this.tel = tel;
+	}
+		/**
+	 *获取所在园区
+	 */
+	public String getPark(){
+		return park;
+	}
+	
+	/**
+	 *设置所在园区
+	 */
+	public void setPark(String park){
+		this.park = park;
+	}
+		/**
+	 *获取楼栋/单元/房号
+	 */
+	public String getBuilding(){
+		return building;
+	}
+	
+	/**
+	 *设置楼栋/单元/房号
+	 */
+	public void setBuilding(String building){
+		this.building = building;
+	}
+		/**
+	 *获取面积
+	 */
+	public String getArea(){
+		return area;
+	}
+	
+	/**
+	 *设置面积
+	 */
+	public void setArea(String area){
+		this.area = area;
+	}
+		@DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
+	@JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone ="GMT+8")
+		/**
+	 *获取入住时间
+	 */
+	public Date getCheckinTime(){
+		return checkinTime;
+	}
+	
+	/**
+	 *设置入住时间
+	 */
+	public void setCheckinTime(Date checkinTime){
+		this.checkinTime = checkinTime;
+	}
+		/**
+	 *获取应缴物业费
+	 */
+	public BigDecimal getPropertyCosts(){
+		return propertyCosts;
+	}
+	
+	/**
+	 *设置应缴物业费
+	 */
+	public void setPropertyCosts(BigDecimal propertyCosts){
+		this.propertyCosts = propertyCosts;
+	}
+		/**
+	 *获取卡号
+	 */
+	public String getCardNo(){
+		return cardNo;
+	}
+	
+	/**
+	 *设置卡号
+	 */
+	public void setCardNo(String cardNo){
+		this.cardNo = cardNo;
+	}
+		/**
+	 *获取权限
+	 */
+	public String getAuthority(){
+		return authority;
+	}
+	
+	/**
+	 *设置权限
+	 */
+	public void setAuthority(String authority){
+		this.authority = authority;
+	}
+		/**
+	 *获取车牌
+	 */
+	public String getCarNo(){
+		return carNo;
+	}
+	
+	/**
+	 *设置车牌
+	 */
+	public void setCarNo(String carNo){
+		this.carNo = carNo;
+	}
+		/**
+	 *获取是否绑定门禁
+	 */
+	public Boolean getIsAccessControl(){
+		return isAccessControl;
+	}
+	
+	/**
+	 *设置是否绑定门禁
+	 */
+	public void setIsAccessControl(Boolean isAccessControl){
+		this.isAccessControl = isAccessControl;
+	}
+		/**
+	 *获取是否绑定公众号
+	 */
+	public Boolean getIsThePublic(){
+		return isThePublic;
+	}
+	
+	/**
+	 *设置是否绑定公众号
+	 */
+	public void setIsThePublic(Boolean isThePublic){
+		this.isThePublic = isThePublic;
+	}
+}

+ 159 - 0
src/main/java/com/jpsoft/smart/modules/base/entity/ParkingApply.java

@@ -0,0 +1,159 @@
+package com.jpsoft.smart.modules.base.entity;
+
+import java.io.Serializable;
+import java.util.Date;
+import java.text.SimpleDateFormat;
+import java.math.BigDecimal;
+import org.springframework.format.annotation.DateTimeFormat;
+import com.fasterxml.jackson.annotation.JsonFormat;
+
+/**
+  描述:base_parking_apply的实体类
+ */
+public class ParkingApply {
+	private String id;
+	private String createBy;
+	private Date createTime;
+	private String updateBy;
+	private Date updateTime;
+	private Boolean delFlag;
+	private String parkingId;
+	private String ownerId;
+	private String contractType;
+	private Integer contractDuration;
+	
+		/**
+	 *获取
+	 */
+	public String getId(){
+		return id;
+	}
+	
+	/**
+	 *设置
+	 */
+	public void setId(String id){
+		this.id = id;
+	}
+		/**
+	 *获取
+	 */
+	public String getCreateBy(){
+		return createBy;
+	}
+	
+	/**
+	 *设置
+	 */
+	public void setCreateBy(String createBy){
+		this.createBy = createBy;
+	}
+		@DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
+	@JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone ="GMT+8")
+		/**
+	 *获取
+	 */
+	public Date getCreateTime(){
+		return createTime;
+	}
+	
+	/**
+	 *设置
+	 */
+	public void setCreateTime(Date createTime){
+		this.createTime = createTime;
+	}
+		/**
+	 *获取
+	 */
+	public String getUpdateBy(){
+		return updateBy;
+	}
+	
+	/**
+	 *设置
+	 */
+	public void setUpdateBy(String updateBy){
+		this.updateBy = updateBy;
+	}
+		@DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
+	@JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone ="GMT+8")
+		/**
+	 *获取
+	 */
+	public Date getUpdateTime(){
+		return updateTime;
+	}
+	
+	/**
+	 *设置
+	 */
+	public void setUpdateTime(Date updateTime){
+		this.updateTime = updateTime;
+	}
+		/**
+	 *获取是否删除
+	 */
+	public Boolean getDelFlag(){
+		return delFlag;
+	}
+	
+	/**
+	 *设置是否删除
+	 */
+	public void setDelFlag(Boolean delFlag){
+		this.delFlag = delFlag;
+	}
+		/**
+	 *获取申请车位ID
+	 */
+	public String getParkingId(){
+		return parkingId;
+	}
+	
+	/**
+	 *设置申请车位ID
+	 */
+	public void setParkingId(String parkingId){
+		this.parkingId = parkingId;
+	}
+		/**
+	 *获取申请人ID
+	 */
+	public String getOwnerId(){
+		return ownerId;
+	}
+	
+	/**
+	 *设置申请人ID
+	 */
+	public void setOwnerId(String ownerId){
+		this.ownerId = ownerId;
+	}
+		/**
+	 *获取申请类型
+	 */
+	public String getContractType(){
+		return contractType;
+	}
+	
+	/**
+	 *设置申请类型
+	 */
+	public void setContractType(String contractType){
+		this.contractType = contractType;
+	}
+		/**
+	 *获取租赁时长(月)
+	 */
+	public Integer getContractDuration(){
+		return contractDuration;
+	}
+	
+	/**
+	 *设置租赁时长(月)
+	 */
+	public void setContractDuration(Integer contractDuration){
+		this.contractDuration = contractDuration;
+	}
+}

+ 207 - 0
src/main/java/com/jpsoft/smart/modules/base/entity/ParkingInfo.java

@@ -0,0 +1,207 @@
+package com.jpsoft.smart.modules.base.entity;
+
+import java.io.Serializable;
+import java.util.Date;
+import java.text.SimpleDateFormat;
+import java.math.BigDecimal;
+import org.springframework.format.annotation.DateTimeFormat;
+import com.fasterxml.jackson.annotation.JsonFormat;
+
+/**
+  描述:base_parking_info的实体类
+ */
+public class ParkingInfo {
+	private String id;
+	private String createBy;
+	private Date createTime;
+	private String updateBy;
+	private Date updateTime;
+	private Boolean delFlag;
+	private String parkingNumber;
+	private BigDecimal parkingPrice;
+	private Integer rentPrice;
+	private String contractType;
+	private String ownerId;
+	private Date effectiveTime;
+	private Date expirationTime;
+	
+		/**
+	 *获取
+	 */
+	public String getId(){
+		return id;
+	}
+	
+	/**
+	 *设置
+	 */
+	public void setId(String id){
+		this.id = id;
+	}
+		/**
+	 *获取
+	 */
+	public String getCreateBy(){
+		return createBy;
+	}
+	
+	/**
+	 *设置
+	 */
+	public void setCreateBy(String createBy){
+		this.createBy = createBy;
+	}
+		@DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
+	@JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone ="GMT+8")
+		/**
+	 *获取
+	 */
+	public Date getCreateTime(){
+		return createTime;
+	}
+	
+	/**
+	 *设置
+	 */
+	public void setCreateTime(Date createTime){
+		this.createTime = createTime;
+	}
+		/**
+	 *获取
+	 */
+	public String getUpdateBy(){
+		return updateBy;
+	}
+	
+	/**
+	 *设置
+	 */
+	public void setUpdateBy(String updateBy){
+		this.updateBy = updateBy;
+	}
+		@DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
+	@JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone ="GMT+8")
+		/**
+	 *获取
+	 */
+	public Date getUpdateTime(){
+		return updateTime;
+	}
+	
+	/**
+	 *设置
+	 */
+	public void setUpdateTime(Date updateTime){
+		this.updateTime = updateTime;
+	}
+		/**
+	 *获取是否删除
+	 */
+	public Boolean getDelFlag(){
+		return delFlag;
+	}
+	
+	/**
+	 *设置是否删除
+	 */
+	public void setDelFlag(Boolean delFlag){
+		this.delFlag = delFlag;
+	}
+		/**
+	 *获取
+车位编号
+	 */
+	public String getParkingNumber(){
+		return parkingNumber;
+	}
+	
+	/**
+	 *设置
+车位编号
+	 */
+	public void setParkingNumber(String parkingNumber){
+		this.parkingNumber = parkingNumber;
+	}
+		/**
+	 *获取车位售价
+	 */
+	public BigDecimal getParkingPrice(){
+		return parkingPrice;
+	}
+	
+	/**
+	 *设置车位售价
+	 */
+	public void setParkingPrice(BigDecimal parkingPrice){
+		this.parkingPrice = parkingPrice;
+	}
+		/**
+	 *获取租赁价格(月)
+	 */
+	public Integer getRentPrice(){
+		return rentPrice;
+	}
+	
+	/**
+	 *设置租赁价格(月)
+	 */
+	public void setRentPrice(Integer rentPrice){
+		this.rentPrice = rentPrice;
+	}
+		/**
+	 *获取合约类型
+	 */
+	public String getContractType(){
+		return contractType;
+	}
+	
+	/**
+	 *设置合约类型
+	 */
+	public void setContractType(String contractType){
+		this.contractType = contractType;
+	}
+		/**
+	 *获取申请人ID
+	 */
+	public String getOwnerId(){
+		return ownerId;
+	}
+	
+	/**
+	 *设置申请人ID
+	 */
+	public void setOwnerId(String ownerId){
+		this.ownerId = ownerId;
+	}
+		@DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
+	@JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone ="GMT+8")
+		/**
+	 *获取生效日期
+	 */
+	public Date getEffectiveTime(){
+		return effectiveTime;
+	}
+	
+	/**
+	 *设置生效日期
+	 */
+	public void setEffectiveTime(Date effectiveTime){
+		this.effectiveTime = effectiveTime;
+	}
+		@DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
+	@JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone ="GMT+8")
+		/**
+	 *获取有效期
+	 */
+	public Date getExpirationTime(){
+		return expirationTime;
+	}
+	
+	/**
+	 *设置有效期
+	 */
+	public void setExpirationTime(Date expirationTime){
+		this.expirationTime = expirationTime;
+	}
+}

+ 18 - 0
src/main/java/com/jpsoft/smart/modules/base/service/AlarmInfoService.java

@@ -0,0 +1,18 @@
+package com.jpsoft.smart.modules.base.service;
+
+import com.github.pagehelper.Page;
+import com.jpsoft.smart.modules.base.entity.AlarmInfo;
+import com.jpsoft.smart.modules.common.dto.Sort;
+
+import java.util.List;
+import java.util.Map;
+
+public interface AlarmInfoService {
+	AlarmInfo get(String id);
+	boolean exist(String id);
+	int insert(AlarmInfo model);
+	int update(AlarmInfo model);
+	int delete(String id);
+	List<AlarmInfo> list();
+	Page<AlarmInfo> pageSearch(Map<String, Object> searchParams, int pageNum, int pageSize, List<Sort> sortList);
+}

+ 18 - 0
src/main/java/com/jpsoft/smart/modules/base/service/InformationInfoService.java

@@ -0,0 +1,18 @@
+package com.jpsoft.smart.modules.base.service;
+
+import com.github.pagehelper.Page;
+import com.jpsoft.smart.modules.base.entity.InformationInfo;
+import com.jpsoft.smart.modules.common.dto.Sort;
+
+import java.util.List;
+import java.util.Map;
+
+public interface InformationInfoService {
+	InformationInfo get(String id);
+	boolean exist(String id);
+	int insert(InformationInfo model);
+	int update(InformationInfo model);
+	int delete(String id);
+	List<InformationInfo> list();
+	Page<InformationInfo> pageSearch(Map<String, Object> searchParams, int pageNum, int pageSize, List<Sort> sortList);
+}

+ 18 - 0
src/main/java/com/jpsoft/smart/modules/base/service/OwnerInfoService.java

@@ -0,0 +1,18 @@
+package com.jpsoft.smart.modules.base.service;
+
+import com.github.pagehelper.Page;
+import com.jpsoft.smart.modules.base.entity.OwnerInfo;
+import com.jpsoft.smart.modules.common.dto.Sort;
+
+import java.util.List;
+import java.util.Map;
+
+public interface OwnerInfoService {
+	OwnerInfo get(String id);
+	boolean exist(String id);
+	int insert(OwnerInfo model);
+	int update(OwnerInfo model);
+	int delete(String id);
+	List<OwnerInfo> list();
+	Page<OwnerInfo> pageSearch(Map<String, Object> searchParams, int pageNum, int pageSize, List<Sort> sortList);
+}

+ 18 - 0
src/main/java/com/jpsoft/smart/modules/base/service/ParkingApplyService.java

@@ -0,0 +1,18 @@
+package com.jpsoft.smart.modules.base.service;
+
+import com.github.pagehelper.Page;
+import com.jpsoft.smart.modules.base.entity.ParkingApply;
+import com.jpsoft.smart.modules.common.dto.Sort;
+
+import java.util.List;
+import java.util.Map;
+
+public interface ParkingApplyService {
+	ParkingApply get(String id);
+	boolean exist(String id);
+	int insert(ParkingApply model);
+	int update(ParkingApply model);
+	int delete(String id);
+	List<ParkingApply> list();
+	Page<ParkingApply> pageSearch(Map<String, Object> searchParams, int pageNum, int pageSize, List<Sort> sortList);
+}

+ 18 - 0
src/main/java/com/jpsoft/smart/modules/base/service/ParkingInfoService.java

@@ -0,0 +1,18 @@
+package com.jpsoft.smart.modules.base.service;
+
+import com.github.pagehelper.Page;
+import com.jpsoft.smart.modules.base.entity.ParkingInfo;
+import com.jpsoft.smart.modules.common.dto.Sort;
+
+import java.util.List;
+import java.util.Map;
+
+public interface ParkingInfoService {
+	ParkingInfo get(String id);
+	boolean exist(String id);
+	int insert(ParkingInfo model);
+	int update(ParkingInfo model);
+	int delete(String id);
+	List<ParkingInfo> list();
+	Page<ParkingInfo> pageSearch(Map<String, Object> searchParams, int pageNum, int pageSize, List<Sort> sortList);
+}

+ 70 - 0
src/main/java/com/jpsoft/smart/modules/base/service/impl/AlarmInfoServiceImpl.java

@@ -0,0 +1,70 @@
+package com.jpsoft.smart.modules.base.service.impl;
+
+import com.github.pagehelper.Page;
+import com.github.pagehelper.PageHelper;
+import com.jpsoft.smart.modules.base.dao.AlarmInfoDAO;
+import com.jpsoft.smart.modules.base.entity.AlarmInfo;
+import com.jpsoft.smart.modules.base.service.AlarmInfoService;
+import com.jpsoft.smart.modules.common.dto.Sort;
+import org.springframework.stereotype.Component;
+import org.springframework.transaction.annotation.Transactional;
+
+import javax.annotation.Resource;
+import java.util.List;
+import java.util.Map;
+
+@Transactional
+@Component(value="alarmInfoService")
+public class AlarmInfoServiceImpl implements AlarmInfoService {
+	@Resource(name="alarmInfoDAO")
+	private AlarmInfoDAO alarmInfoDAO;
+
+	@Override
+	public AlarmInfo get(String id) {
+		// TODO Auto-generated method stub
+		return alarmInfoDAO.get(id);
+	}
+
+	@Override
+	public int insert(AlarmInfo model) {
+		// TODO Auto-generated method stub
+		//model.setId(UUID.randomUUID().toString());
+		
+		return alarmInfoDAO.insert(model);
+	}
+
+	@Override
+	public int update(AlarmInfo model) {
+		// TODO Auto-generated method stub
+		return alarmInfoDAO.update(model);		
+	}
+
+	@Override
+	public int delete(String id) {
+		// TODO Auto-generated method stub
+		return alarmInfoDAO.delete(id);
+	}
+
+	@Override
+	public boolean exist(String id) {
+		// TODO Auto-generated method stub
+		int count = alarmInfoDAO.exist(id);
+		
+		return count > 0 ? true : false;
+	}
+	
+	@Override
+	public List<AlarmInfo> list() {
+		// TODO Auto-generated method stub
+		return alarmInfoDAO.list();
+	}
+		
+	@Override
+	public Page<AlarmInfo> pageSearch(Map<String, Object> searchParams, int pageNumber, int pageSize,List<Sort> sortList) {
+        Page<AlarmInfo> page = PageHelper.startPage(1,10).doSelectPage(()->{
+            alarmInfoDAO.search(searchParams,sortList);
+        });
+        
+        return page;
+	}
+}

+ 70 - 0
src/main/java/com/jpsoft/smart/modules/base/service/impl/InformationInfoServiceImpl.java

@@ -0,0 +1,70 @@
+package com.jpsoft.smart.modules.base.service.impl;
+
+import com.github.pagehelper.Page;
+import com.github.pagehelper.PageHelper;
+import com.jpsoft.smart.modules.base.dao.InformationInfoDAO;
+import com.jpsoft.smart.modules.base.entity.InformationInfo;
+import com.jpsoft.smart.modules.base.service.InformationInfoService;
+import com.jpsoft.smart.modules.common.dto.Sort;
+import org.springframework.stereotype.Component;
+import org.springframework.transaction.annotation.Transactional;
+
+import javax.annotation.Resource;
+import java.util.List;
+import java.util.Map;
+
+@Transactional
+@Component(value="informationInfoService")
+public class InformationInfoServiceImpl implements InformationInfoService {
+	@Resource(name="informationInfoDAO")
+	private InformationInfoDAO informationInfoDAO;
+
+	@Override
+	public InformationInfo get(String id) {
+		// TODO Auto-generated method stub
+		return informationInfoDAO.get(id);
+	}
+
+	@Override
+	public int insert(InformationInfo model) {
+		// TODO Auto-generated method stub
+		//model.setId(UUID.randomUUID().toString());
+		
+		return informationInfoDAO.insert(model);
+	}
+
+	@Override
+	public int update(InformationInfo model) {
+		// TODO Auto-generated method stub
+		return informationInfoDAO.update(model);		
+	}
+
+	@Override
+	public int delete(String id) {
+		// TODO Auto-generated method stub
+		return informationInfoDAO.delete(id);
+	}
+
+	@Override
+	public boolean exist(String id) {
+		// TODO Auto-generated method stub
+		int count = informationInfoDAO.exist(id);
+		
+		return count > 0 ? true : false;
+	}
+	
+	@Override
+	public List<InformationInfo> list() {
+		// TODO Auto-generated method stub
+		return informationInfoDAO.list();
+	}
+		
+	@Override
+	public Page<InformationInfo> pageSearch(Map<String, Object> searchParams, int pageNumber, int pageSize,List<Sort> sortList) {
+        Page<InformationInfo> page = PageHelper.startPage(1,10).doSelectPage(()->{
+            informationInfoDAO.search(searchParams,sortList);
+        });
+        
+        return page;
+	}
+}

+ 70 - 0
src/main/java/com/jpsoft/smart/modules/base/service/impl/OwnerInfoServiceImpl.java

@@ -0,0 +1,70 @@
+package com.jpsoft.smart.modules.base.service.impl;
+
+import com.github.pagehelper.Page;
+import com.github.pagehelper.PageHelper;
+import com.jpsoft.smart.modules.base.dao.OwnerInfoDAO;
+import com.jpsoft.smart.modules.base.entity.OwnerInfo;
+import com.jpsoft.smart.modules.base.service.OwnerInfoService;
+import com.jpsoft.smart.modules.common.dto.Sort;
+import org.springframework.stereotype.Component;
+import org.springframework.transaction.annotation.Transactional;
+
+import javax.annotation.Resource;
+import java.util.List;
+import java.util.Map;
+
+@Transactional
+@Component(value="ownerInfoService")
+public class OwnerInfoServiceImpl implements OwnerInfoService {
+	@Resource(name="ownerInfoDAO")
+	private OwnerInfoDAO ownerInfoDAO;
+
+	@Override
+	public OwnerInfo get(String id) {
+		// TODO Auto-generated method stub
+		return ownerInfoDAO.get(id);
+	}
+
+	@Override
+	public int insert(OwnerInfo model) {
+		// TODO Auto-generated method stub
+		//model.setId(UUID.randomUUID().toString());
+		
+		return ownerInfoDAO.insert(model);
+	}
+
+	@Override
+	public int update(OwnerInfo model) {
+		// TODO Auto-generated method stub
+		return ownerInfoDAO.update(model);		
+	}
+
+	@Override
+	public int delete(String id) {
+		// TODO Auto-generated method stub
+		return ownerInfoDAO.delete(id);
+	}
+
+	@Override
+	public boolean exist(String id) {
+		// TODO Auto-generated method stub
+		int count = ownerInfoDAO.exist(id);
+		
+		return count > 0 ? true : false;
+	}
+	
+	@Override
+	public List<OwnerInfo> list() {
+		// TODO Auto-generated method stub
+		return ownerInfoDAO.list();
+	}
+		
+	@Override
+	public Page<OwnerInfo> pageSearch(Map<String, Object> searchParams, int pageNumber, int pageSize,List<Sort> sortList) {
+        Page<OwnerInfo> page = PageHelper.startPage(1,10).doSelectPage(()->{
+            ownerInfoDAO.search(searchParams,sortList);
+        });
+        
+        return page;
+	}
+}

+ 70 - 0
src/main/java/com/jpsoft/smart/modules/base/service/impl/ParkingApplyServiceImpl.java

@@ -0,0 +1,70 @@
+package com.jpsoft.smart.modules.base.service.impl;
+
+import com.github.pagehelper.Page;
+import com.github.pagehelper.PageHelper;
+import com.jpsoft.smart.modules.base.dao.ParkingApplyDAO;
+import com.jpsoft.smart.modules.base.entity.ParkingApply;
+import com.jpsoft.smart.modules.base.service.ParkingApplyService;
+import com.jpsoft.smart.modules.common.dto.Sort;
+import org.springframework.stereotype.Component;
+import org.springframework.transaction.annotation.Transactional;
+
+import javax.annotation.Resource;
+import java.util.List;
+import java.util.Map;
+
+@Transactional
+@Component(value="parkingApplyService")
+public class ParkingApplyServiceImpl implements ParkingApplyService {
+	@Resource(name="parkingApplyDAO")
+	private ParkingApplyDAO parkingApplyDAO;
+
+	@Override
+	public ParkingApply get(String id) {
+		// TODO Auto-generated method stub
+		return parkingApplyDAO.get(id);
+	}
+
+	@Override
+	public int insert(ParkingApply model) {
+		// TODO Auto-generated method stub
+		//model.setId(UUID.randomUUID().toString());
+		
+		return parkingApplyDAO.insert(model);
+	}
+
+	@Override
+	public int update(ParkingApply model) {
+		// TODO Auto-generated method stub
+		return parkingApplyDAO.update(model);		
+	}
+
+	@Override
+	public int delete(String id) {
+		// TODO Auto-generated method stub
+		return parkingApplyDAO.delete(id);
+	}
+
+	@Override
+	public boolean exist(String id) {
+		// TODO Auto-generated method stub
+		int count = parkingApplyDAO.exist(id);
+		
+		return count > 0 ? true : false;
+	}
+	
+	@Override
+	public List<ParkingApply> list() {
+		// TODO Auto-generated method stub
+		return parkingApplyDAO.list();
+	}
+		
+	@Override
+	public Page<ParkingApply> pageSearch(Map<String, Object> searchParams, int pageNumber, int pageSize,List<Sort> sortList) {
+        Page<ParkingApply> page = PageHelper.startPage(1,10).doSelectPage(()->{
+            parkingApplyDAO.search(searchParams,sortList);
+        });
+        
+        return page;
+	}
+}

+ 70 - 0
src/main/java/com/jpsoft/smart/modules/base/service/impl/ParkingInfoServiceImpl.java

@@ -0,0 +1,70 @@
+package com.jpsoft.smart.modules.base.service.impl;
+
+import com.github.pagehelper.Page;
+import com.github.pagehelper.PageHelper;
+import com.jpsoft.smart.modules.base.dao.ParkingInfoDAO;
+import com.jpsoft.smart.modules.base.entity.ParkingInfo;
+import com.jpsoft.smart.modules.base.service.ParkingInfoService;
+import com.jpsoft.smart.modules.common.dto.Sort;
+import org.springframework.stereotype.Component;
+import org.springframework.transaction.annotation.Transactional;
+
+import javax.annotation.Resource;
+import java.util.List;
+import java.util.Map;
+
+@Transactional
+@Component(value="parkingInfoService")
+public class ParkingInfoServiceImpl implements ParkingInfoService {
+	@Resource(name="parkingInfoDAO")
+	private ParkingInfoDAO parkingInfoDAO;
+
+	@Override
+	public ParkingInfo get(String id) {
+		// TODO Auto-generated method stub
+		return parkingInfoDAO.get(id);
+	}
+
+	@Override
+	public int insert(ParkingInfo model) {
+		// TODO Auto-generated method stub
+		//model.setId(UUID.randomUUID().toString());
+		
+		return parkingInfoDAO.insert(model);
+	}
+
+	@Override
+	public int update(ParkingInfo model) {
+		// TODO Auto-generated method stub
+		return parkingInfoDAO.update(model);		
+	}
+
+	@Override
+	public int delete(String id) {
+		// TODO Auto-generated method stub
+		return parkingInfoDAO.delete(id);
+	}
+
+	@Override
+	public boolean exist(String id) {
+		// TODO Auto-generated method stub
+		int count = parkingInfoDAO.exist(id);
+		
+		return count > 0 ? true : false;
+	}
+	
+	@Override
+	public List<ParkingInfo> list() {
+		// TODO Auto-generated method stub
+		return parkingInfoDAO.list();
+	}
+		
+	@Override
+	public Page<ParkingInfo> pageSearch(Map<String, Object> searchParams, int pageNumber, int pageSize,List<Sort> sortList) {
+        Page<ParkingInfo> page = PageHelper.startPage(1,10).doSelectPage(()->{
+            parkingInfoDAO.search(searchParams,sortList);
+        });
+        
+        return page;
+	}
+}

+ 101 - 0
src/main/resources/mapper/base/AlarmInfo.xml

@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!-- namespace必须指向DAO接口 -->
+<mapper namespace="com.jpsoft.smart.modules.base.dao.AlarmInfoDAO">
+	<resultMap id="AlarmInfoMap" type="AlarmInfo">
+		<id property="id" column="id_" />
+			<result property="createBy" column="create_by" />
+			<result property="createTime" column="create_time" />
+			<result property="updateBy" column="update_by" />
+			<result property="updateTime" column="update_time" />
+			<result property="delFlag" column="del_flag" />
+			<result property="deviceNo" column="device_no" />
+			<result property="channelName" column="channel_name" />
+			<result property="alertType" column="alert_type" />
+			<result property="type" column="type_" />
+			</resultMap>
+	<insert id="insert" parameterType="AlarmInfo">
+	<!--
+	<selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
+		select sys_guid() from dual
+	</selectKey>
+	-->
+	<![CDATA[
+		insert into base_alarm_info
+	    (id_,create_by,create_time,update_by,update_time,del_flag,device_no,channel_name,alert_type,type_)
+		values
+		(
+#{id,jdbcType=VARCHAR}
+,#{createBy,jdbcType=VARCHAR}
+,#{createTime,jdbcType= TIMESTAMP }
+,#{updateBy,jdbcType=VARCHAR}
+,#{updateTime,jdbcType= TIMESTAMP }
+,#{delFlag,jdbcType= NUMERIC }
+,#{deviceNo,jdbcType=VARCHAR}
+,#{channelName,jdbcType=VARCHAR}
+,#{alertType,jdbcType=VARCHAR}
+,#{type,jdbcType=VARCHAR}
+		)
+	]]>
+	</insert>
+	<delete id="delete" parameterType="string">
+		delete from base_alarm_info where id_=#{id,jdbcType=VARCHAR}
+	</delete>
+	<update id="update" parameterType="AlarmInfo">
+		update base_alarm_info
+		<set>
+				<if test="createBy!=null">
+		create_by=#{createBy,jdbcType=VARCHAR},
+		</if>
+				<if test="createTime!=null">
+		create_time=#{createTime,jdbcType= TIMESTAMP },
+		</if>
+				<if test="updateBy!=null">
+		update_by=#{updateBy,jdbcType=VARCHAR},
+		</if>
+				<if test="updateTime!=null">
+		update_time=#{updateTime,jdbcType= TIMESTAMP },
+		</if>
+				<if test="delFlag!=null">
+		del_flag=#{delFlag,jdbcType= NUMERIC },
+		</if>
+				<if test="deviceNo!=null">
+		device_no=#{deviceNo,jdbcType=VARCHAR},
+		</if>
+				<if test="channelName!=null">
+		channel_name=#{channelName,jdbcType=VARCHAR},
+		</if>
+				<if test="alertType!=null">
+		alert_type=#{alertType,jdbcType=VARCHAR},
+		</if>
+				<if test="type!=null">
+		type_=#{type,jdbcType=VARCHAR},
+		</if>
+		</set>
+	where id_=#{id}
+	</update>
+	<select id="get" parameterType="string" resultMap="AlarmInfoMap">
+		select 
+id_,create_by,create_time,update_by,update_time,del_flag,device_no,channel_name,alert_type,type_		from base_alarm_info where id_=#{0}
+	</select>
+	<select id="exist" parameterType="string" resultType="int">
+		select count(*) from base_alarm_info where id_=#{0}
+	</select>
+	<select id="list" resultMap="AlarmInfoMap">
+		select * from base_alarm_info
+	</select>
+	<select id="search" parameterType="hashmap" resultMap="AlarmInfoMap">
+		<![CDATA[
+			select * from base_alarm_info
+		]]>
+		<where>
+			<if test="searchParams.id != null">
+				and ID_ like #{searchParams.id}
+			</if>
+		</where>
+		<foreach item="sort" collection="sortList"  open="order by" separator=",">
+	        ${sort.name} ${sort.order}
+	 	</foreach>
+	</select>
+</mapper>

+ 116 - 0
src/main/resources/mapper/base/InformationInfo.xml

@@ -0,0 +1,116 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!-- namespace必须指向DAO接口 -->
+<mapper namespace="com.jpsoft.smart.modules.base.dao.InformationInfoDAO">
+	<resultMap id="InformationInfoMap" type="InformationInfo">
+		<id property="id" column="id_" />
+			<result property="createBy" column="create_by" />
+			<result property="createTime" column="create_time" />
+			<result property="updateBy" column="update_by" />
+			<result property="updateTime" column="update_time" />
+			<result property="delFlag" column="del_flag" />
+			<result property="ownerId" column="owner_id" />
+			<result property="community" column="community_" />
+			<result property="content" column="content_" />
+			<result property="status" column="status_" />
+			<result property="returnContent" column="return_content" />
+			<result property="returnTime" column="return_time" />
+			<result property="type" column="type_" />
+			</resultMap>
+	<insert id="insert" parameterType="InformationInfo">
+	<!--
+	<selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
+		select sys_guid() from dual
+	</selectKey>
+	-->
+	<![CDATA[
+		insert into base_information_info
+	    (id_,create_by,create_time,update_by,update_time,del_flag,owner_id,community_,content_,status_,return_content,return_time,type_)
+		values
+		(
+#{id,jdbcType=VARCHAR}
+,#{createBy,jdbcType=VARCHAR}
+,#{createTime,jdbcType= TIMESTAMP }
+,#{updateBy,jdbcType=VARCHAR}
+,#{updateTime,jdbcType= TIMESTAMP }
+,#{delFlag,jdbcType= NUMERIC }
+,#{ownerId,jdbcType=VARCHAR}
+,#{community,jdbcType=VARCHAR}
+,#{content,jdbcType=VARCHAR}
+,#{status,jdbcType=VARCHAR}
+,#{returnContent,jdbcType=VARCHAR}
+,#{returnTime,jdbcType= TIMESTAMP }
+,#{type,jdbcType=VARCHAR}
+		)
+	]]>
+	</insert>
+	<delete id="delete" parameterType="string">
+		delete from base_information_info where id_=#{id,jdbcType=VARCHAR}
+	</delete>
+	<update id="update" parameterType="InformationInfo">
+		update base_information_info
+		<set>
+				<if test="createBy!=null">
+		create_by=#{createBy,jdbcType=VARCHAR},
+		</if>
+				<if test="createTime!=null">
+		create_time=#{createTime,jdbcType= TIMESTAMP },
+		</if>
+				<if test="updateBy!=null">
+		update_by=#{updateBy,jdbcType=VARCHAR},
+		</if>
+				<if test="updateTime!=null">
+		update_time=#{updateTime,jdbcType= TIMESTAMP },
+		</if>
+				<if test="delFlag!=null">
+		del_flag=#{delFlag,jdbcType= NUMERIC },
+		</if>
+				<if test="ownerId!=null">
+		owner_id=#{ownerId,jdbcType=VARCHAR},
+		</if>
+				<if test="community!=null">
+		community_=#{community,jdbcType=VARCHAR},
+		</if>
+				<if test="content!=null">
+		content_=#{content,jdbcType=VARCHAR},
+		</if>
+				<if test="status!=null">
+		status_=#{status,jdbcType=VARCHAR},
+		</if>
+				<if test="returnContent!=null">
+		return_content=#{returnContent,jdbcType=VARCHAR},
+		</if>
+				<if test="returnTime!=null">
+		return_time=#{returnTime,jdbcType= TIMESTAMP },
+		</if>
+				<if test="type!=null">
+		type_=#{type,jdbcType=VARCHAR},
+		</if>
+		</set>
+	where id_=#{id}
+	</update>
+	<select id="get" parameterType="string" resultMap="InformationInfoMap">
+		select 
+id_,create_by,create_time,update_by,update_time,del_flag,owner_id,community_,content_,status_,return_content,return_time,type_		from base_information_info where id_=#{0}
+	</select>
+	<select id="exist" parameterType="string" resultType="int">
+		select count(*) from base_information_info where id_=#{0}
+	</select>
+	<select id="list" resultMap="InformationInfoMap">
+		select * from base_information_info
+	</select>
+	<select id="search" parameterType="hashmap" resultMap="InformationInfoMap">
+		<![CDATA[
+			select * from base_information_info
+		]]>
+		<where>
+			<if test="searchParams.id != null">
+				and ID_ like #{searchParams.id}
+			</if>
+		</where>
+		<foreach item="sort" collection="sortList"  open="order by" separator=",">
+	        ${sort.name} ${sort.order}
+	 	</foreach>
+	</select>
+</mapper>

+ 141 - 0
src/main/resources/mapper/base/OwnerInfo.xml

@@ -0,0 +1,141 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!-- namespace必须指向DAO接口 -->
+<mapper namespace="com.jpsoft.smart.modules.base.dao.OwnerInfoDAO">
+	<resultMap id="OwnerInfoMap" type="OwnerInfo">
+		<id property="id" column="id_" />
+			<result property="createBy" column="create_by" />
+			<result property="createTime" column="create_time" />
+			<result property="updateBy" column="update_by" />
+			<result property="updateTime" column="update_time" />
+			<result property="delFlag" column="del_flag" />
+			<result property="name" column="name_" />
+			<result property="tel" column="tel_" />
+			<result property="park" column="park_" />
+			<result property="building" column="building" />
+			<result property="area" column="area_" />
+			<result property="checkinTime" column="checkin_time" />
+			<result property="propertyCosts" column="property_costs" />
+			<result property="cardNo" column="card_no" />
+			<result property="authority" column="authority_" />
+			<result property="carNo" column="car_no" />
+			<result property="isAccessControl" column="is_access_control" />
+			<result property="isThePublic" column="is_the_public" />
+			</resultMap>
+	<insert id="insert" parameterType="OwnerInfo">
+	<!--
+	<selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
+		select sys_guid() from dual
+	</selectKey>
+	-->
+	<![CDATA[
+		insert into base_owner_info
+	    (id_,create_by,create_time,update_by,update_time,del_flag,name_,tel_,park_,building,area_,checkin_time,property_costs,card_no,authority_,car_no,is_access_control,is_the_public)
+		values
+		(
+#{id,jdbcType=VARCHAR}
+,#{createBy,jdbcType=VARCHAR}
+,#{createTime,jdbcType= TIMESTAMP }
+,#{updateBy,jdbcType=VARCHAR}
+,#{updateTime,jdbcType= TIMESTAMP }
+,#{delFlag,jdbcType= NUMERIC }
+,#{name,jdbcType=VARCHAR}
+,#{tel,jdbcType=VARCHAR}
+,#{park,jdbcType=VARCHAR}
+,#{building,jdbcType=VARCHAR}
+,#{area,jdbcType=VARCHAR}
+,#{checkinTime,jdbcType= TIMESTAMP }
+,#{propertyCosts,jdbcType= NUMERIC }
+,#{cardNo,jdbcType=VARCHAR}
+,#{authority,jdbcType=VARCHAR}
+,#{carNo,jdbcType=VARCHAR}
+,#{isAccessControl,jdbcType= NUMERIC }
+,#{isThePublic,jdbcType= NUMERIC }
+		)
+	]]>
+	</insert>
+	<delete id="delete" parameterType="string">
+		delete from base_owner_info where id_=#{id,jdbcType=VARCHAR}
+	</delete>
+	<update id="update" parameterType="OwnerInfo">
+		update base_owner_info
+		<set>
+				<if test="createBy!=null">
+		create_by=#{createBy,jdbcType=VARCHAR},
+		</if>
+				<if test="createTime!=null">
+		create_time=#{createTime,jdbcType= TIMESTAMP },
+		</if>
+				<if test="updateBy!=null">
+		update_by=#{updateBy,jdbcType=VARCHAR},
+		</if>
+				<if test="updateTime!=null">
+		update_time=#{updateTime,jdbcType= TIMESTAMP },
+		</if>
+				<if test="delFlag!=null">
+		del_flag=#{delFlag,jdbcType= NUMERIC },
+		</if>
+				<if test="name!=null">
+		name_=#{name,jdbcType=VARCHAR},
+		</if>
+				<if test="tel!=null">
+		tel_=#{tel,jdbcType=VARCHAR},
+		</if>
+				<if test="park!=null">
+		park_=#{park,jdbcType=VARCHAR},
+		</if>
+				<if test="building!=null">
+		building=#{building,jdbcType=VARCHAR},
+		</if>
+				<if test="area!=null">
+		area_=#{area,jdbcType=VARCHAR},
+		</if>
+				<if test="checkinTime!=null">
+		checkin_time=#{checkinTime,jdbcType= TIMESTAMP },
+		</if>
+				<if test="propertyCosts!=null">
+		property_costs=#{propertyCosts,jdbcType= NUMERIC },
+		</if>
+				<if test="cardNo!=null">
+		card_no=#{cardNo,jdbcType=VARCHAR},
+		</if>
+				<if test="authority!=null">
+		authority_=#{authority,jdbcType=VARCHAR},
+		</if>
+				<if test="carNo!=null">
+		car_no=#{carNo,jdbcType=VARCHAR},
+		</if>
+				<if test="isAccessControl!=null">
+		is_access_control=#{isAccessControl,jdbcType= NUMERIC },
+		</if>
+				<if test="isThePublic!=null">
+		is_the_public=#{isThePublic,jdbcType= NUMERIC },
+		</if>
+		</set>
+	where id_=#{id}
+	</update>
+	<select id="get" parameterType="string" resultMap="OwnerInfoMap">
+		select 
+id_,create_by,create_time,update_by,update_time,del_flag,name_,tel_,park_,building,area_,checkin_time,property_costs,card_no,authority_,car_no,is_access_control,is_the_public		from base_owner_info where id_=#{0}
+	</select>
+	<select id="exist" parameterType="string" resultType="int">
+		select count(*) from base_owner_info where id_=#{0}
+	</select>
+	<select id="list" resultMap="OwnerInfoMap">
+		select * from base_owner_info
+	</select>
+	<select id="search" parameterType="hashmap" resultMap="OwnerInfoMap">
+		<![CDATA[
+			select * from base_owner_info
+		]]>
+		<where>
+			<if test="searchParams.id != null">
+				and ID_ like #{searchParams.id}
+			</if>
+		</where>
+		<foreach item="sort" collection="sortList"  open="order by" separator=",">
+	        ${sort.name} ${sort.order}
+	 	</foreach>
+	</select>
+</mapper>

+ 101 - 0
src/main/resources/mapper/base/ParkingApply.xml

@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!-- namespace必须指向DAO接口 -->
+<mapper namespace="com.jpsoft.smart.modules.base.dao.ParkingApplyDAO">
+	<resultMap id="ParkingApplyMap" type="ParkingApply">
+		<id property="id" column="id_" />
+			<result property="createBy" column="create_by" />
+			<result property="createTime" column="create_time" />
+			<result property="updateBy" column="update_by" />
+			<result property="updateTime" column="update_time" />
+			<result property="delFlag" column="del_flag" />
+			<result property="parkingId" column="parking_id" />
+			<result property="ownerId" column="owner_id" />
+			<result property="contractType" column="contract_type" />
+			<result property="contractDuration" column="contract_duration" />
+			</resultMap>
+	<insert id="insert" parameterType="ParkingApply">
+	<!--
+	<selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
+		select sys_guid() from dual
+	</selectKey>
+	-->
+	<![CDATA[
+		insert into base_parking_apply
+	    (id_,create_by,create_time,update_by,update_time,del_flag,parking_id,owner_id,contract_type,contract_duration)
+		values
+		(
+#{id,jdbcType=VARCHAR}
+,#{createBy,jdbcType=VARCHAR}
+,#{createTime,jdbcType= TIMESTAMP }
+,#{updateBy,jdbcType=VARCHAR}
+,#{updateTime,jdbcType= TIMESTAMP }
+,#{delFlag,jdbcType= NUMERIC }
+,#{parkingId,jdbcType=VARCHAR}
+,#{ownerId,jdbcType=VARCHAR}
+,#{contractType,jdbcType=VARCHAR}
+,#{contractDuration,jdbcType= NUMERIC }
+		)
+	]]>
+	</insert>
+	<delete id="delete" parameterType="string">
+		delete from base_parking_apply where id_=#{id,jdbcType=VARCHAR}
+	</delete>
+	<update id="update" parameterType="ParkingApply">
+		update base_parking_apply
+		<set>
+				<if test="createBy!=null">
+		create_by=#{createBy,jdbcType=VARCHAR},
+		</if>
+				<if test="createTime!=null">
+		create_time=#{createTime,jdbcType= TIMESTAMP },
+		</if>
+				<if test="updateBy!=null">
+		update_by=#{updateBy,jdbcType=VARCHAR},
+		</if>
+				<if test="updateTime!=null">
+		update_time=#{updateTime,jdbcType= TIMESTAMP },
+		</if>
+				<if test="delFlag!=null">
+		del_flag=#{delFlag,jdbcType= NUMERIC },
+		</if>
+				<if test="parkingId!=null">
+		parking_id=#{parkingId,jdbcType=VARCHAR},
+		</if>
+				<if test="ownerId!=null">
+		owner_id=#{ownerId,jdbcType=VARCHAR},
+		</if>
+				<if test="contractType!=null">
+		contract_type=#{contractType,jdbcType=VARCHAR},
+		</if>
+				<if test="contractDuration!=null">
+		contract_duration=#{contractDuration,jdbcType= NUMERIC },
+		</if>
+		</set>
+	where id_=#{id}
+	</update>
+	<select id="get" parameterType="string" resultMap="ParkingApplyMap">
+		select 
+id_,create_by,create_time,update_by,update_time,del_flag,parking_id,owner_id,contract_type,contract_duration		from base_parking_apply where id_=#{0}
+	</select>
+	<select id="exist" parameterType="string" resultType="int">
+		select count(*) from base_parking_apply where id_=#{0}
+	</select>
+	<select id="list" resultMap="ParkingApplyMap">
+		select * from base_parking_apply
+	</select>
+	<select id="search" parameterType="hashmap" resultMap="ParkingApplyMap">
+		<![CDATA[
+			select * from base_parking_apply
+		]]>
+		<where>
+			<if test="searchParams.id != null">
+				and ID_ like #{searchParams.id}
+			</if>
+		</where>
+		<foreach item="sort" collection="sortList"  open="order by" separator=",">
+	        ${sort.name} ${sort.order}
+	 	</foreach>
+	</select>
+</mapper>

+ 116 - 0
src/main/resources/mapper/base/ParkingInfo.xml

@@ -0,0 +1,116 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!-- namespace必须指向DAO接口 -->
+<mapper namespace="com.jpsoft.smart.modules.base.dao.ParkingInfoDAO">
+	<resultMap id="ParkingInfoMap" type="ParkingInfo">
+		<id property="id" column="id_" />
+			<result property="createBy" column="create_by" />
+			<result property="createTime" column="create_time" />
+			<result property="updateBy" column="update_by" />
+			<result property="updateTime" column="update_time" />
+			<result property="delFlag" column="del_flag" />
+			<result property="parkingNumber" column="parking_number" />
+			<result property="parkingPrice" column="parking_price" />
+			<result property="rentPrice" column="rent_price" />
+			<result property="contractType" column="contract_type" />
+			<result property="ownerId" column="owner_id" />
+			<result property="effectiveTime" column="effective_time" />
+			<result property="expirationTime" column="expiration_time" />
+			</resultMap>
+	<insert id="insert" parameterType="ParkingInfo">
+	<!--
+	<selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
+		select sys_guid() from dual
+	</selectKey>
+	-->
+	<![CDATA[
+		insert into base_parking_info
+	    (id_,create_by,create_time,update_by,update_time,del_flag,parking_number,parking_price,rent_price,contract_type,owner_id,effective_time,expiration_time)
+		values
+		(
+#{id,jdbcType=VARCHAR}
+,#{createBy,jdbcType=VARCHAR}
+,#{createTime,jdbcType= TIMESTAMP }
+,#{updateBy,jdbcType=VARCHAR}
+,#{updateTime,jdbcType= TIMESTAMP }
+,#{delFlag,jdbcType= NUMERIC }
+,#{parkingNumber,jdbcType=VARCHAR}
+,#{parkingPrice,jdbcType= NUMERIC }
+,#{rentPrice,jdbcType= NUMERIC }
+,#{contractType,jdbcType=VARCHAR}
+,#{ownerId,jdbcType=VARCHAR}
+,#{effectiveTime,jdbcType= TIMESTAMP }
+,#{expirationTime,jdbcType= TIMESTAMP }
+		)
+	]]>
+	</insert>
+	<delete id="delete" parameterType="string">
+		delete from base_parking_info where id_=#{id,jdbcType=VARCHAR}
+	</delete>
+	<update id="update" parameterType="ParkingInfo">
+		update base_parking_info
+		<set>
+				<if test="createBy!=null">
+		create_by=#{createBy,jdbcType=VARCHAR},
+		</if>
+				<if test="createTime!=null">
+		create_time=#{createTime,jdbcType= TIMESTAMP },
+		</if>
+				<if test="updateBy!=null">
+		update_by=#{updateBy,jdbcType=VARCHAR},
+		</if>
+				<if test="updateTime!=null">
+		update_time=#{updateTime,jdbcType= TIMESTAMP },
+		</if>
+				<if test="delFlag!=null">
+		del_flag=#{delFlag,jdbcType= NUMERIC },
+		</if>
+				<if test="parkingNumber!=null">
+		parking_number=#{parkingNumber,jdbcType=VARCHAR},
+		</if>
+				<if test="parkingPrice!=null">
+		parking_price=#{parkingPrice,jdbcType= NUMERIC },
+		</if>
+				<if test="rentPrice!=null">
+		rent_price=#{rentPrice,jdbcType= NUMERIC },
+		</if>
+				<if test="contractType!=null">
+		contract_type=#{contractType,jdbcType=VARCHAR},
+		</if>
+				<if test="ownerId!=null">
+		owner_id=#{ownerId,jdbcType=VARCHAR},
+		</if>
+				<if test="effectiveTime!=null">
+		effective_time=#{effectiveTime,jdbcType= TIMESTAMP },
+		</if>
+				<if test="expirationTime!=null">
+		expiration_time=#{expirationTime,jdbcType= TIMESTAMP },
+		</if>
+		</set>
+	where id_=#{id}
+	</update>
+	<select id="get" parameterType="string" resultMap="ParkingInfoMap">
+		select 
+id_,create_by,create_time,update_by,update_time,del_flag,parking_number,parking_price,rent_price,contract_type,owner_id,effective_time,expiration_time		from base_parking_info where id_=#{0}
+	</select>
+	<select id="exist" parameterType="string" resultType="int">
+		select count(*) from base_parking_info where id_=#{0}
+	</select>
+	<select id="list" resultMap="ParkingInfoMap">
+		select * from base_parking_info
+	</select>
+	<select id="search" parameterType="hashmap" resultMap="ParkingInfoMap">
+		<![CDATA[
+			select * from base_parking_info
+		]]>
+		<where>
+			<if test="searchParams.id != null">
+				and ID_ like #{searchParams.id}
+			</if>
+		</where>
+		<foreach item="sort" collection="sortList"  open="order by" separator=",">
+	        ${sort.name} ${sort.order}
+	 	</foreach>
+	</select>
+</mapper>