Althars123 há 4 anos atrás
pai
commit
2370621e46

+ 0 - 115
hzgzpt-admin/src/main/java/com/miaxis/app/controller/test/TestTableController.java

@@ -1,115 +0,0 @@
-package com.miaxis.app.controller.test;
-
-import java.util.List;
-import io.swagger.annotations.*;
-import com.miaxis.common.core.domain.Response;
-import org.springframework.security.access.prepost.PreAuthorize;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.PutMapping;
-import org.springframework.web.bind.annotation.DeleteMapping;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
-import org.springframework.web.bind.annotation.ModelAttribute;
-import com.miaxis.common.annotation.Log;
-import com.miaxis.common.core.controller.BaseController;
-import com.miaxis.common.enums.BusinessTypeEnum;
-import com.miaxis.app.test.domain.TestTable;
-import com.miaxis.app.test.service.ITestTableService;
-import com.miaxis.common.utils.poi.ExcelUtil;
-import com.miaxis.common.core.page.ResponsePageInfo;
-
-/**
- * 【测试表】Controller
- *
- * @author miaxis
- * @date 2020-12-22
- */
-@RestController
-@RequestMapping("/test/table")
-@Api(tags={"【测试表】Controller"})
-public class TestTableController extends BaseController{
-    @Autowired
-    private ITestTableService testTableService;
-
-    /**
-     * 查询测试表列表
-     */
-    @PreAuthorize("@ss.hasPermi('test:table:list')")
-    @GetMapping("/list")
-    @ApiOperation("查询测试表列表")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "pageNum",value = "当前页码" ,dataType = "int", paramType = "query", required = false),
-            @ApiImplicitParam(name = "pageSize",value = "每页数据量" , dataType = "int", paramType = "query", required = false),
-    })
-    public ResponsePageInfo<TestTable> list(@ModelAttribute TestTable testTable){
-        startPage();
-        List<TestTable> list = testTableService.selectTestTableList(testTable);
-        return toResponsePageInfo(list);
-    }
-
-    /**
-     * 导出测试表列表
-     */
-    @PreAuthorize("@ss.hasPermi('test:table:export')")
-    @Log(title = "测试表", businessType = BusinessTypeEnum.EXPORT)
-    @GetMapping("/export")
-    @ApiOperation("导出测试表列表Excel")
-    public Response<String> export(@ModelAttribute TestTable testTable){
-        List<TestTable> list = testTableService.selectTestTableList(testTable);
-        ExcelUtil<TestTable> util = new ExcelUtil<TestTable>(TestTable.class);
-        return util.exportExcel(list, "table");
-    }
-
-    /**
-     * 获取测试表详细信息
-     */
-    @PreAuthorize("@ss.hasPermi('test:table:query')")
-    @GetMapping(value = "/{id}")
-    @ApiOperation("获取测试表详细信息")
-    public Response<TestTable> getInfo(
-            @ApiParam(name = "id", value = "测试表参数", required = true)
-            @PathVariable("id") Long id
-    ){
-        return Response.success(testTableService.selectTestTableById(id));
-    }
-
-    /**
-     * 新增测试表
-     */
-    @PreAuthorize("@ss.hasPermi('test:table:add')")
-    @Log(title = "测试表", businessType = BusinessTypeEnum.INSERT)
-    @PostMapping
-    @ApiOperation("新增测试表")
-    public Response<Integer> add(@RequestBody TestTable testTable){
-        return toResponse(testTableService.insertTestTable(testTable));
-    }
-
-    /**
-     * 修改测试表
-     */
-    @PreAuthorize("@ss.hasPermi('test:table:edit')")
-    @Log(title = "测试表", businessType = BusinessTypeEnum.UPDATE)
-    @PutMapping
-    @ApiOperation("修改测试表")
-    public Response<Integer> edit(@RequestBody TestTable testTable){
-        return toResponse(testTableService.updateTestTable(testTable));
-    }
-
-    /**
-     * 删除测试表
-     */
-    @PreAuthorize("@ss.hasPermi('test:table:remove')")
-    @Log(title = "测试表", businessType = BusinessTypeEnum.DELETE)
-	@DeleteMapping("/{ids}")
-    @ApiOperation("删除测试表")
-    public  Response<Integer> remove(
-            @ApiParam(name = "ids", value = "测试表ids参数", required = true)
-            @PathVariable Long[] ids
-    ){
-        return toResponse(testTableService.deleteTestTableByIds(ids));
-    }
-}

+ 8 - 7
hzgzpt-generator/src/main/resources/vm/java/serviceImpl.java.vm

@@ -1,6 +1,7 @@
 package ${packageName}.service.impl;
 
 import java.util.List;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 #foreach ($column in $columns)
 #if($column.javaField == 'createTime' || $column.javaField == 'updateTime')
 import com.miaxis.common.utils.DateUtils;
@@ -15,7 +16,7 @@ import ${packageName}.service.I${ClassName}Service;
 
 /**
  * ${functionName}Service业务层处理
- * 
+ *
  * @author ${author}
  * @date ${datetime}
  */
@@ -26,7 +27,7 @@ public class ${ClassName}ServiceImpl extends ServiceImpl<${ClassName}Mapper, ${C
 
     /**
      * 查询${functionName}
-     * 
+     *
      * @param ${pkColumn.javaField} ${functionName}ID
      * @return ${functionName}
      */
@@ -37,7 +38,7 @@ public class ${ClassName}ServiceImpl extends ServiceImpl<${ClassName}Mapper, ${C
 
     /**
      * 查询${functionName}列表
-     * 
+     *
      * @param ${className} ${functionName}
      * @return ${functionName}
      */
@@ -48,7 +49,7 @@ public class ${ClassName}ServiceImpl extends ServiceImpl<${ClassName}Mapper, ${C
 
     /**
      * 新增${functionName}
-     * 
+     *
      * @param ${className} ${functionName}
      * @return 结果
      */
@@ -64,7 +65,7 @@ public class ${ClassName}ServiceImpl extends ServiceImpl<${ClassName}Mapper, ${C
 
     /**
      * 修改${functionName}
-     * 
+     *
      * @param ${className} ${functionName}
      * @return 结果
      */
@@ -80,7 +81,7 @@ public class ${ClassName}ServiceImpl extends ServiceImpl<${ClassName}Mapper, ${C
 
     /**
      * 批量删除${functionName}
-     * 
+     *
      * @param ${pkColumn.javaField}s 需要删除的${functionName}ID
      * @return 结果
      */
@@ -91,7 +92,7 @@ public class ${ClassName}ServiceImpl extends ServiceImpl<${ClassName}Mapper, ${C
 
     /**
      * 删除${functionName}信息
-     * 
+     *
      * @param ${pkColumn.javaField} ${functionName}ID
      * @return 结果
      */

+ 0 - 61
hzgzpt-service-app/src/main/java/com/miaxis/app/test/domain/TestTable.java

@@ -1,61 +0,0 @@
-package com.miaxis.app.test.domain;
-
-import com.baomidou.mybatisplus.annotation.TableField;
-import org.apache.commons.lang3.builder.ToStringBuilder;
-import org.apache.commons.lang3.builder.ToStringStyle;
-import com.miaxis.common.annotation.Excel;
-import com.miaxis.common.core.domain.BaseEntity;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
-import com.baomidou.mybatisplus.annotation.IdType;
-import lombok.Data;
-/**
- * 测试表对象 test_table
- *
- * @author miaxis
- * @date 2020-12-22
- */
-@Data
-@TableName("test_table")
-@ApiModel(value = "TestTable", description = "测试表对象 test_table")
-public class TestTable extends BaseEntity{
-    private static final long serialVersionUID = 1L;
-
-    /**  我是id */
-    @TableId(value = "id")
-    @ApiModelProperty(value = " 我是id")
-    private Long id;
-
-    /** 名称 */
-    @Excel(name = "名称")
-    @TableField("name")
-    @ApiModelProperty(value = "名称")
-    private String name;
-
-    public void setId(Long id){
-        this.id = id;
-    }
-
-    public Long getId(){
-        return id;
-    }
-    public void setName(String name){
-        this.name = name;
-    }
-
-    public String getName(){
-        return name;
-    }
-
-    @Override
-    public String toString() {
-        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
-            .append("id", getId())
-            .append("name", getName())
-            .append("createTime", getCreateTime())
-            .append("updateTime", getUpdateTime())
-            .toString();
-    }
-}

+ 0 - 62
hzgzpt-service-app/src/main/java/com/miaxis/app/test/mapper/TestTableMapper.java

@@ -1,62 +0,0 @@
-package com.miaxis.app.test.mapper;
-
-import java.util.List;
-
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.miaxis.app.test.domain.TestTable;
-
-/**
- * 测试表Mapper接口
- *
- * @author miaxis
- * @date 2020-12-22
- */
-public interface TestTableMapper extends BaseMapper<TestTable> {
-    /**
-     * 查询测试表1
-     *
-     * @param id 测试表ID
-     * @return 测试表
-     */
-    public TestTable selectTestTableById(Long id);
-
-    /**
-     * 查询测试表列表
-     *
-     * @param testTable 测试表
-     * @return 测试表集合
-     */
-    public List<TestTable> selectTestTableList(TestTable testTable);
-
-    /**
-     * 新增测试表
-     *
-     * @param testTable 测试表
-     * @return 结果
-     */
-    public int insertTestTable(TestTable testTable);
-
-    /**
-     * 修改测试表
-     *
-     * @param testTable 测试表
-     * @return 结果
-     */
-    public int updateTestTable(TestTable testTable);
-
-    /**
-     * 删除测试表
-     *
-     * @param id 测试表ID
-     * @return 结果
-     */
-    public int deleteTestTableById(Long id);
-
-    /**
-     * 批量删除测试表
-     *
-     * @param ids 需要删除的数据ID
-     * @return 结果
-     */
-    public int deleteTestTableByIds(Long[] ids);
-}

+ 0 - 61
hzgzpt-service-app/src/main/java/com/miaxis/app/test/service/ITestTableService.java

@@ -1,61 +0,0 @@
-package com.miaxis.app.test.service;
-
-import java.util.List;
-import com.miaxis.app.test.domain.TestTable;
-import com.baomidou.mybatisplus.extension.service.IService;
-
-/**
- * 测试表Service接口
- * 
- * @author miaxis
- * @date 2020-12-22
- */
-public interface ITestTableService extends IService<TestTable>{
-    /**
-     * 查询测试表
-     * 
-     * @param id 测试表ID
-     * @return 测试表
-     */
-    public TestTable selectTestTableById(Long id);
-
-    /**
-     * 查询测试表列表
-     * 
-     * @param testTable 测试表
-     * @return 测试表集合
-     */
-    public List<TestTable> selectTestTableList(TestTable testTable);
-
-    /**
-     * 新增测试表
-     * 
-     * @param testTable 测试表
-     * @return 结果
-     */
-    public int insertTestTable(TestTable testTable);
-
-    /**
-     * 修改测试表
-     * 
-     * @param testTable 测试表
-     * @return 结果
-     */
-    public int updateTestTable(TestTable testTable);
-
-    /**
-     * 批量删除测试表
-     * 
-     * @param ids 需要删除的测试表ID
-     * @return 结果
-     */
-    public int deleteTestTableByIds(Long[] ids);
-
-    /**
-     * 删除测试表信息
-     * 
-     * @param id 测试表ID
-     * @return 结果
-     */
-    public int deleteTestTableById(Long id);
-}

+ 0 - 92
hzgzpt-service-app/src/main/java/com/miaxis/app/test/service/impl/TestTableServiceImpl.java

@@ -1,92 +0,0 @@
-package com.miaxis.app.test.service.impl;
-
-import java.util.List;
-
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.miaxis.common.utils.DateUtils;
-import com.miaxis.common.utils.SecurityUtils;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
-import com.miaxis.app.test.mapper.TestTableMapper;
-import com.miaxis.app.test.domain.TestTable;
-import com.miaxis.app.test.service.ITestTableService;
-
-/**
- * 测试表Service业务层处理
- *
- * @author miaxis
- * @date 2020-12-22
- */
-@Service
-public class TestTableServiceImpl extends ServiceImpl<TestTableMapper, TestTable> implements ITestTableService {
-    @Autowired
-    private TestTableMapper testTableMapper;
-
-    /**
-     * 查询测试表
-     *
-     * @param id 测试表ID
-     * @return 测试表
-     */
-    @Override
-    public TestTable selectTestTableById(Long id){
-        return testTableMapper.selectTestTableById(id);
-    }
-
-    /**
-     * 查询测试表列表
-     *
-     * @param testTable 测试表
-     * @return 测试表
-     */
-    @Override
-    public List<TestTable> selectTestTableList(TestTable testTable){
-        return testTableMapper.selectTestTableList(testTable);
-    }
-
-    /**
-     * 新增测试表
-     *
-     * @param testTable 测试表
-     * @return 结果
-     */
-    @Override
-    public int insertTestTable(TestTable testTable){
-        testTable.setCreateTime(DateUtils.getNowDate());
-        return testTableMapper.insertTestTable(testTable);
-    }
-
-    /**
-     * 修改测试表
-     *
-     * @param testTable 测试表
-     * @return 结果
-     */
-    @Override
-    public int updateTestTable(TestTable testTable){
-        testTable.setUpdateTime(DateUtils.getNowDate());
-        return testTableMapper.updateTestTable(testTable);
-    }
-
-    /**
-     * 批量删除测试表
-     *
-     * @param ids 需要删除的测试表ID
-     * @return 结果
-     */
-    @Override
-    public int deleteTestTableByIds(Long[] ids){
-        return testTableMapper.deleteTestTableByIds(ids);
-    }
-
-    /**
-     * 删除测试表信息
-     *
-     * @param id 测试表ID
-     * @return 结果
-     */
-    @Override
-    public int deleteTestTableById(Long id){
-        return testTableMapper.deleteTestTableById(id);
-    }
-}

+ 115 - 0
hzgzpt-service-app/src/main/java/com/miaxis/app/user/controller/UserInfoController.java

@@ -0,0 +1,115 @@
+package com.miaxis.app.user.controller;
+
+import java.util.List;
+import io.swagger.annotations.*;
+import com.miaxis.common.core.domain.Response;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.ModelAttribute;
+import com.miaxis.common.annotation.Log;
+import com.miaxis.common.core.controller.BaseController;
+import com.miaxis.common.enums.BusinessTypeEnum;
+import com.miaxis.app.user.domain.UserInfo;
+import com.miaxis.app.user.service.IUserInfoService;
+import com.miaxis.common.utils.poi.ExcelUtil;
+import com.miaxis.common.core.page.ResponsePageInfo;
+
+/**
+ * 【用户信息】Controller
+ *
+ * @author miaxis
+ * @date 2020-12-22
+ */
+@RestController
+@RequestMapping("/user/info")
+@Api(tags={"【用户信息】Controller"})
+public class UserInfoController extends BaseController{
+    @Autowired
+    private IUserInfoService userInfoService;
+
+    /**
+     * 查询用户信息列表
+     */
+    @PreAuthorize("@ss.hasPermi('user:info:list')")
+    @GetMapping("/list")
+    @ApiOperation("查询用户信息列表")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "pageNum",value = "当前页码" ,dataType = "int", paramType = "query", required = false),
+            @ApiImplicitParam(name = "pageSize",value = "每页数据量" , dataType = "int", paramType = "query", required = false),
+    })
+    public ResponsePageInfo<UserInfo> list(@ModelAttribute UserInfo userInfo){
+        startPage();
+        List<UserInfo> list = userInfoService.selectUserInfoList(userInfo);
+        return toResponsePageInfo(list);
+    }
+
+    /**
+     * 导出用户信息列表
+     */
+    @PreAuthorize("@ss.hasPermi('user:info:export')")
+    @Log(title = "用户信息", businessType = BusinessTypeEnum.EXPORT)
+    @GetMapping("/export")
+    @ApiOperation("导出用户信息列表Excel")
+    public Response<String> export(@ModelAttribute UserInfo userInfo){
+        List<UserInfo> list = userInfoService.selectUserInfoList(userInfo);
+        ExcelUtil<UserInfo> util = new ExcelUtil<UserInfo>(UserInfo.class);
+        return util.exportExcel(list, "info");
+    }
+
+    /**
+     * 获取用户信息详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('user:info:query')")
+    @GetMapping(value = "/{id}")
+    @ApiOperation("获取用户信息详细信息")
+    public Response<UserInfo> getInfo(
+            @ApiParam(name = "id", value = "用户信息参数", required = true)
+            @PathVariable("id") Long id
+    ){
+        return Response.success(userInfoService.selectUserInfoById(id));
+    }
+
+    /**
+     * 新增用户信息
+     */
+    @PreAuthorize("@ss.hasPermi('user:info:add')")
+    @Log(title = "用户信息", businessType = BusinessTypeEnum.INSERT)
+    @PostMapping
+    @ApiOperation("新增用户信息")
+    public Response<Integer> add(@RequestBody UserInfo userInfo){
+        return toResponse(userInfoService.insertUserInfo(userInfo));
+    }
+
+    /**
+     * 修改用户信息
+     */
+    @PreAuthorize("@ss.hasPermi('user:info:edit')")
+    @Log(title = "用户信息", businessType = BusinessTypeEnum.UPDATE)
+    @PutMapping
+    @ApiOperation("修改用户信息")
+    public Response<Integer> edit(@RequestBody UserInfo userInfo){
+        return toResponse(userInfoService.updateUserInfo(userInfo));
+    }
+
+    /**
+     * 删除用户信息
+     */
+    @PreAuthorize("@ss.hasPermi('user:info:remove')")
+    @Log(title = "用户信息", businessType = BusinessTypeEnum.DELETE)
+	@DeleteMapping("/{ids}")
+    @ApiOperation("删除用户信息")
+    public  Response<Integer> remove(
+            @ApiParam(name = "ids", value = "用户信息ids参数", required = true)
+            @PathVariable Long[] ids
+    ){
+        return toResponse(userInfoService.deleteUserInfoByIds(ids));
+    }
+}

+ 220 - 0
hzgzpt-service-app/src/main/java/com/miaxis/app/user/domain/UserInfo.java

@@ -0,0 +1,220 @@
+package com.miaxis.app.user.domain;
+
+import java.util.Date;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.miaxis.common.annotation.Excel;
+import com.miaxis.common.core.domain.BaseEntity;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import lombok.Data;
+/**
+ * 用户信息对象 user_info
+ *
+ * @author miaxis
+ * @date 2020-12-22
+ */
+@Data
+@TableName("user_info")
+@ApiModel(value = "UserInfo", description = "用户信息对象 user_info")
+public class UserInfo extends BaseEntity{
+    private static final long serialVersionUID = 1L;
+
+    /** $column.columnComment */
+    @TableId(value = "id")
+    @ApiModelProperty(value = "$column.columnComment")
+    private Long id;
+
+    /** 姓名 */
+    @Excel(name = "姓名")
+    @TableField("name")
+    @ApiModelProperty(value = "姓名")
+    private String name;
+
+    /** 性别 */
+    @Excel(name = "性别")
+    @TableField("sex")
+    @ApiModelProperty(value = "性别")
+    private Long sex;
+
+    /** 身份证明号码 1:身份证号,2:警官证,3:军官证,4:护照等 */
+    @Excel(name = "身份证明号码 1:身份证号,2:警官证,3:军官证,4:护照等")
+    @TableField("sfzmlx")
+    @ApiModelProperty(value = "身份证明号码 1:身份证号,2:警官证,3:军官证,4:护照等")
+    private Long sfzmlx;
+
+    /** 身份证明号码 */
+    @Excel(name = "身份证明号码")
+    @TableField("sfzmhm")
+    @ApiModelProperty(value = "身份证明号码")
+    private String sfzmhm;
+
+    /** 注册日期 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "注册日期", width = 30, dateFormat = "yyyy-MM-dd")
+    @TableField("crdate")
+    @ApiModelProperty(value = "注册日期")
+    private Date crdate;
+
+    /** 出生日期 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
+    @TableField("birthday")
+    @ApiModelProperty(value = "出生日期")
+    private Date birthday;
+
+    /** 手机号码 */
+    @Excel(name = "手机号码")
+    @TableField("mobile")
+    @ApiModelProperty(value = "手机号码")
+    private String mobile;
+
+    /** 登录密码 MD5加密 */
+    @Excel(name = "登录密码 MD5加密")
+    @TableField("password")
+    @ApiModelProperty(value = "登录密码 MD5加密")
+    private String password;
+
+    /** 微信号码 */
+    @Excel(name = "微信号码")
+    @TableField("wechar")
+    @ApiModelProperty(value = "微信号码")
+    private String wechar;
+
+    /** 微信openid */
+    @Excel(name = "微信openid")
+    @TableField("openid")
+    @ApiModelProperty(value = "微信openid")
+    private String openid;
+
+    /** 驾校全国统一编号 */
+    @Excel(name = "驾校全国统一编号")
+    @TableField("inscode")
+    @ApiModelProperty(value = "驾校全国统一编号")
+    private String inscode;
+
+    /** 培训车型 */
+    @Excel(name = "培训车型")
+    @TableField("pxcx")
+    @ApiModelProperty(value = "培训车型")
+    private String pxcx;
+
+    public void setId(Long id){
+        this.id = id;
+    }
+
+    public Long getId(){
+        return id;
+    }
+    public void setName(String name){
+        this.name = name;
+    }
+
+    public String getName(){
+        return name;
+    }
+    public void setSex(Long sex){
+        this.sex = sex;
+    }
+
+    public Long getSex(){
+        return sex;
+    }
+    public void setSfzmlx(Long sfzmlx){
+        this.sfzmlx = sfzmlx;
+    }
+
+    public Long getSfzmlx(){
+        return sfzmlx;
+    }
+    public void setSfzmhm(String sfzmhm){
+        this.sfzmhm = sfzmhm;
+    }
+
+    public String getSfzmhm(){
+        return sfzmhm;
+    }
+    public void setCrdate(Date crdate){
+        this.crdate = crdate;
+    }
+
+    public Date getCrdate(){
+        return crdate;
+    }
+    public void setBirthday(Date birthday){
+        this.birthday = birthday;
+    }
+
+    public Date getBirthday(){
+        return birthday;
+    }
+    public void setMobile(String mobile){
+        this.mobile = mobile;
+    }
+
+    public String getMobile(){
+        return mobile;
+    }
+    public void setPassword(String password){
+        this.password = password;
+    }
+
+    public String getPassword(){
+        return password;
+    }
+    public void setWechar(String wechar){
+        this.wechar = wechar;
+    }
+
+    public String getWechar(){
+        return wechar;
+    }
+    public void setOpenid(String openid){
+        this.openid = openid;
+    }
+
+    public String getOpenid(){
+        return openid;
+    }
+    public void setInscode(String inscode){
+        this.inscode = inscode;
+    }
+
+    public String getInscode(){
+        return inscode;
+    }
+    public void setPxcx(String pxcx){
+        this.pxcx = pxcx;
+    }
+
+    public String getPxcx(){
+        return pxcx;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("name", getName())
+            .append("sex", getSex())
+            .append("sfzmlx", getSfzmlx())
+            .append("sfzmhm", getSfzmhm())
+            .append("crdate", getCrdate())
+            .append("birthday", getBirthday())
+            .append("mobile", getMobile())
+            .append("password", getPassword())
+            .append("wechar", getWechar())
+            .append("openid", getOpenid())
+            .append("inscode", getInscode())
+            .append("createTime", getCreateTime())
+            .append("updateTime", getUpdateTime())
+            .append("pxcx", getPxcx())
+            .toString();
+    }
+}

+ 61 - 0
hzgzpt-service-app/src/main/java/com/miaxis/app/user/mapper/UserInfoMapper.java

@@ -0,0 +1,61 @@
+package com.miaxis.app.user.mapper;
+
+import java.util.List;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.miaxis.app.user.domain.UserInfo;
+
+/**
+ * 用户信息Mapper接口
+ *
+ * @author miaxis
+ * @date 2020-12-22
+ */
+public interface UserInfoMapper extends BaseMapper<UserInfo> {
+    /**
+     * 查询用户信息
+     *
+     * @param id 用户信息ID
+     * @return 用户信息
+     */
+    public UserInfo selectUserInfoById(Long id);
+
+    /**
+     * 查询用户信息列表
+     *
+     * @param userInfo 用户信息
+     * @return 用户信息集合
+     */
+    public List<UserInfo> selectUserInfoList(UserInfo userInfo);
+
+    /**
+     * 新增用户信息
+     *
+     * @param userInfo 用户信息
+     * @return 结果
+     */
+    public int insertUserInfo(UserInfo userInfo);
+
+    /**
+     * 修改用户信息
+     *
+     * @param userInfo 用户信息
+     * @return 结果
+     */
+    public int updateUserInfo(UserInfo userInfo);
+
+    /**
+     * 删除用户信息
+     *
+     * @param id 用户信息ID
+     * @return 结果
+     */
+    public int deleteUserInfoById(Long id);
+
+    /**
+     * 批量删除用户信息
+     *
+     * @param ids 需要删除的数据ID
+     * @return 结果
+     */
+    public int deleteUserInfoByIds(Long[] ids);
+}

+ 61 - 0
hzgzpt-service-app/src/main/java/com/miaxis/app/user/service/IUserInfoService.java

@@ -0,0 +1,61 @@
+package com.miaxis.app.user.service;
+
+import java.util.List;
+import com.miaxis.app.user.domain.UserInfo;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * 用户信息Service接口
+ * 
+ * @author miaxis
+ * @date 2020-12-22
+ */
+public interface IUserInfoService extends IService<UserInfo>{
+    /**
+     * 查询用户信息
+     * 
+     * @param id 用户信息ID
+     * @return 用户信息
+     */
+    public UserInfo selectUserInfoById(Long id);
+
+    /**
+     * 查询用户信息列表
+     * 
+     * @param userInfo 用户信息
+     * @return 用户信息集合
+     */
+    public List<UserInfo> selectUserInfoList(UserInfo userInfo);
+
+    /**
+     * 新增用户信息
+     * 
+     * @param userInfo 用户信息
+     * @return 结果
+     */
+    public int insertUserInfo(UserInfo userInfo);
+
+    /**
+     * 修改用户信息
+     * 
+     * @param userInfo 用户信息
+     * @return 结果
+     */
+    public int updateUserInfo(UserInfo userInfo);
+
+    /**
+     * 批量删除用户信息
+     * 
+     * @param ids 需要删除的用户信息ID
+     * @return 结果
+     */
+    public int deleteUserInfoByIds(Long[] ids);
+
+    /**
+     * 删除用户信息信息
+     * 
+     * @param id 用户信息ID
+     * @return 结果
+     */
+    public int deleteUserInfoById(Long id);
+}

+ 91 - 0
hzgzpt-service-app/src/main/java/com/miaxis/app/user/service/impl/UserInfoServiceImpl.java

@@ -0,0 +1,91 @@
+package com.miaxis.app.user.service.impl;
+
+import java.util.List;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.miaxis.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.miaxis.app.user.mapper.UserInfoMapper;
+import com.miaxis.app.user.domain.UserInfo;
+import com.miaxis.app.user.service.IUserInfoService;
+
+/**
+ * 用户信息Service业务层处理
+ *
+ * @author miaxis
+ * @date 2020-12-22
+ */
+@Service
+public class UserInfoServiceImpl extends ServiceImpl<UserInfoMapper, UserInfo> implements IUserInfoService {
+    @Autowired
+    private UserInfoMapper userInfoMapper;
+
+    /**
+     * 查询用户信息
+     *
+     * @param id 用户信息ID
+     * @return 用户信息
+     */
+    @Override
+    public UserInfo selectUserInfoById(Long id){
+        return userInfoMapper.selectUserInfoById(id);
+    }
+
+    /**
+     * 查询用户信息列表
+     *
+     * @param userInfo 用户信息
+     * @return 用户信息
+     */
+    @Override
+    public List<UserInfo> selectUserInfoList(UserInfo userInfo){
+        return userInfoMapper.selectUserInfoList(userInfo);
+    }
+
+    /**
+     * 新增用户信息
+     *
+     * @param userInfo 用户信息
+     * @return 结果
+     */
+    @Override
+    public int insertUserInfo(UserInfo userInfo){
+        userInfo.setCreateTime(DateUtils.getNowDate());
+        return userInfoMapper.insertUserInfo(userInfo);
+    }
+
+    /**
+     * 修改用户信息
+     *
+     * @param userInfo 用户信息
+     * @return 结果
+     */
+    @Override
+    public int updateUserInfo(UserInfo userInfo){
+        userInfo.setUpdateTime(DateUtils.getNowDate());
+        return userInfoMapper.updateUserInfo(userInfo);
+    }
+
+    /**
+     * 批量删除用户信息
+     *
+     * @param ids 需要删除的用户信息ID
+     * @return 结果
+     */
+    @Override
+    public int deleteUserInfoByIds(Long[] ids){
+        return userInfoMapper.deleteUserInfoByIds(ids);
+    }
+
+    /**
+     * 删除用户信息信息
+     *
+     * @param id 用户信息ID
+     * @return 结果
+     */
+    @Override
+    public int deleteUserInfoById(Long id){
+        return userInfoMapper.deleteUserInfoById(id);
+    }
+}

+ 0 - 65
hzgzpt-service-app/src/main/resources/mapper/test/TestTableMapper.xml

@@ -1,65 +0,0 @@
-<?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">
-<mapper namespace="com.miaxis.app.test.mapper.TestTableMapper">
-    
-    <resultMap type="TestTable" id="TestTableResult">
-        <result property="id"    column="id"    />
-        <result property="name"    column="name"    />
-        <result property="createTime"    column="create_time"    />
-        <result property="updateTime"    column="update_time"    />
-    </resultMap>
-
-    <sql id="selectTestTableVo">
-        select id, name, create_time, update_time from test_table
-    </sql>
-
-    <select id="selectTestTableList" parameterType="TestTable" resultMap="TestTableResult">
-        <include refid="selectTestTableVo"/>
-        <where>  
-            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
-        </where>
-    </select>
-    
-    <select id="selectTestTableById" parameterType="Long" resultMap="TestTableResult">
-        <include refid="selectTestTableVo"/>
-        where id = #{id}
-    </select>
-        
-    <insert id="insertTestTable" parameterType="TestTable" useGeneratedKeys="true" keyProperty="id">
-        insert into test_table
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="name != null">name,</if>
-            <if test="createTime != null">create_time,</if>
-            <if test="updateTime != null">update_time,</if>
-         </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="name != null">#{name},</if>
-            <if test="createTime != null">#{createTime},</if>
-            <if test="updateTime != null">#{updateTime},</if>
-         </trim>
-    </insert>
-
-    <update id="updateTestTable" parameterType="TestTable">
-        update test_table
-        <trim prefix="SET" suffixOverrides=",">
-            <if test="name != null">name = #{name},</if>
-            <if test="createTime != null">create_time = #{createTime},</if>
-            <if test="updateTime != null">update_time = #{updateTime},</if>
-        </trim>
-        where id = #{id}
-    </update>
-
-    <delete id="deleteTestTableById" parameterType="Long">
-        delete from test_table where id = #{id}
-    </delete>
-
-    <delete id="deleteTestTableByIds" parameterType="String">
-        delete from test_table where id in 
-        <foreach item="id" collection="array" open="(" separator="," close=")">
-            #{id}
-        </foreach>
-    </delete>
-    
-</mapper>

+ 122 - 0
hzgzpt-service-app/src/main/resources/mapper/user/UserInfoMapper.xml

@@ -0,0 +1,122 @@
+<?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">
+<mapper namespace="com.miaxis.app.user.mapper.UserInfoMapper">
+    
+    <resultMap type="UserInfo" id="UserInfoResult">
+        <result property="id"    column="id"    />
+        <result property="name"    column="name"    />
+        <result property="sex"    column="sex"    />
+        <result property="sfzmlx"    column="sfzmlx"    />
+        <result property="sfzmhm"    column="sfzmhm"    />
+        <result property="crdate"    column="crdate"    />
+        <result property="birthday"    column="birthday"    />
+        <result property="mobile"    column="mobile"    />
+        <result property="password"    column="password"    />
+        <result property="wechar"    column="wechar"    />
+        <result property="openid"    column="openid"    />
+        <result property="inscode"    column="inscode"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="pxcx"    column="pxcx"    />
+    </resultMap>
+
+    <sql id="selectUserInfoVo">
+        select id, name, sex, sfzmlx, sfzmhm, crdate, birthday, mobile, password, wechar, openid, inscode, create_time, update_time, pxcx from user_info
+    </sql>
+
+    <select id="selectUserInfoList" parameterType="UserInfo" resultMap="UserInfoResult">
+        <include refid="selectUserInfoVo"/>
+        <where>  
+            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
+            <if test="sex != null "> and sex = #{sex}</if>
+            <if test="sfzmlx != null "> and sfzmlx = #{sfzmlx}</if>
+            <if test="sfzmhm != null  and sfzmhm != ''"> and sfzmhm = #{sfzmhm}</if>
+            <if test="crdate != null "> and crdate = #{crdate}</if>
+            <if test="birthday != null "> and birthday = #{birthday}</if>
+            <if test="mobile != null  and mobile != ''"> and mobile = #{mobile}</if>
+            <if test="password != null  and password != ''"> and password = #{password}</if>
+            <if test="wechar != null  and wechar != ''"> and wechar = #{wechar}</if>
+            <if test="openid != null  and openid != ''"> and openid = #{openid}</if>
+            <if test="inscode != null  and inscode != ''"> and inscode = #{inscode}</if>
+            <if test="pxcx != null  and pxcx != ''"> and pxcx = #{pxcx}</if>
+        </where>
+    </select>
+    
+    <select id="selectUserInfoById" parameterType="Long" resultMap="UserInfoResult">
+        <include refid="selectUserInfoVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertUserInfo" parameterType="UserInfo">
+        insert into user_info
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">id,</if>
+            <if test="name != null">name,</if>
+            <if test="sex != null">sex,</if>
+            <if test="sfzmlx != null">sfzmlx,</if>
+            <if test="sfzmhm != null">sfzmhm,</if>
+            <if test="crdate != null">crdate,</if>
+            <if test="birthday != null">birthday,</if>
+            <if test="mobile != null">mobile,</if>
+            <if test="password != null">password,</if>
+            <if test="wechar != null">wechar,</if>
+            <if test="openid != null">openid,</if>
+            <if test="inscode != null">inscode,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="pxcx != null">pxcx,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">#{id},</if>
+            <if test="name != null">#{name},</if>
+            <if test="sex != null">#{sex},</if>
+            <if test="sfzmlx != null">#{sfzmlx},</if>
+            <if test="sfzmhm != null">#{sfzmhm},</if>
+            <if test="crdate != null">#{crdate},</if>
+            <if test="birthday != null">#{birthday},</if>
+            <if test="mobile != null">#{mobile},</if>
+            <if test="password != null">#{password},</if>
+            <if test="wechar != null">#{wechar},</if>
+            <if test="openid != null">#{openid},</if>
+            <if test="inscode != null">#{inscode},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="pxcx != null">#{pxcx},</if>
+         </trim>
+    </insert>
+
+    <update id="updateUserInfo" parameterType="UserInfo">
+        update user_info
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="name != null">name = #{name},</if>
+            <if test="sex != null">sex = #{sex},</if>
+            <if test="sfzmlx != null">sfzmlx = #{sfzmlx},</if>
+            <if test="sfzmhm != null">sfzmhm = #{sfzmhm},</if>
+            <if test="crdate != null">crdate = #{crdate},</if>
+            <if test="birthday != null">birthday = #{birthday},</if>
+            <if test="mobile != null">mobile = #{mobile},</if>
+            <if test="password != null">password = #{password},</if>
+            <if test="wechar != null">wechar = #{wechar},</if>
+            <if test="openid != null">openid = #{openid},</if>
+            <if test="inscode != null">inscode = #{inscode},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="pxcx != null">pxcx = #{pxcx},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteUserInfoById" parameterType="Long">
+        delete from user_info where id = #{id}
+    </delete>
+
+    <delete id="deleteUserInfoByIds" parameterType="String">
+        delete from user_info where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+    
+</mapper>