浏览代码

吉农宝

hanfucheng 1 年之前
父节点
当前提交
fbc3e46a3f
共有 19 个文件被更改,包括 1756 次插入0 次删除
  1. 100 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/asking/JnbAskTypeController.java
  2. 91 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/my/JnbNameAuthenticationController.java
  3. 98 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/my/JnbOfficialAuthenticationController.java
  4. 118 0
      sooka-jnb/src/main/java/com/sooka/jnb/asking/domain/JnbQuestionType.java
  5. 77 0
      sooka-jnb/src/main/java/com/sooka/jnb/asking/mapper/JnbQuestionTypeMapper.java
  6. 62 0
      sooka-jnb/src/main/java/com/sooka/jnb/asking/service/IJnbQuestionTypeService.java
  7. 100 0
      sooka-jnb/src/main/java/com/sooka/jnb/asking/service/impl/JnbQuestionTypeServiceImpl.java
  8. 55 0
      sooka-jnb/src/main/java/com/sooka/jnb/my/domain/JnbAuthenticationImg.java
  9. 140 0
      sooka-jnb/src/main/java/com/sooka/jnb/my/domain/JnbNameAuthentication.java
  10. 122 0
      sooka-jnb/src/main/java/com/sooka/jnb/my/domain/JnbOfficialAuthentication.java
  11. 70 0
      sooka-jnb/src/main/java/com/sooka/jnb/my/mapper/JnbNameAuthenticationMapper.java
  12. 62 0
      sooka-jnb/src/main/java/com/sooka/jnb/my/mapper/JnbOfficialAuthenticationMapper.java
  13. 62 0
      sooka-jnb/src/main/java/com/sooka/jnb/my/service/IJnbNameAuthenticationService.java
  14. 61 0
      sooka-jnb/src/main/java/com/sooka/jnb/my/service/IJnbOfficialAuthenticationService.java
  15. 109 0
      sooka-jnb/src/main/java/com/sooka/jnb/my/service/impl/JnbNameAuthenticationServiceImpl.java
  16. 113 0
      sooka-jnb/src/main/java/com/sooka/jnb/my/service/impl/JnbOfficialAuthenticationServiceImpl.java
  17. 103 0
      sooka-jnb/src/main/resources/mapper/asking/JnbQuestionTypeMapper.xml
  18. 111 0
      sooka-jnb/src/main/resources/mapper/my/JnbNameAuthenticationMapper.xml
  19. 102 0
      sooka-jnb/src/main/resources/mapper/my/JnbOfficialAuthenticationMapper.xml

+ 100 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/asking/JnbAskTypeController.java

@@ -0,0 +1,100 @@
+package com.ruoyi.web.controller.asking;
+
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.R;
+import com.ruoyi.common.core.page.TableDataInfo;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.common.utils.StringUtils;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.sooka.jnb.asking.domain.JnbQuestionType;
+import com.sooka.jnb.asking.service.IJnbQuestionTypeService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletResponse;
+import java.util.List;
+
+/**
+ * 类型配置Controller
+ *
+ * @author 韩福成
+ * @date 2024-03-01
+ */
+@RestController
+@RequestMapping("/JnbQuestionType/type")
+public class JnbAskTypeController extends BaseController {
+    @Autowired
+    private IJnbQuestionTypeService jnbQuestionTypeService;
+
+    /**
+     * 查询类型配置列表
+     */
+    @PreAuthorize("@ss.hasPermi('JnbQuestionType:type:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(JnbQuestionType jnbQuestionType) {
+        startPage();
+        List<JnbQuestionType> list = jnbQuestionTypeService.selectJnbQuestionTypeList(jnbQuestionType);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出类型配置列表
+     */
+    @PreAuthorize("@ss.hasPermi('JnbQuestionType:type:export')")
+    @Log(title = "类型配置", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, JnbQuestionType jnbQuestionType) {
+        List<JnbQuestionType> list = jnbQuestionTypeService.selectJnbQuestionTypeList(jnbQuestionType);
+        ExcelUtil<JnbQuestionType> util = new ExcelUtil<JnbQuestionType>(JnbQuestionType.class);
+        util.exportExcel(response, list, "类型配置数据");
+    }
+
+    /**
+     * 获取类型配置详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('JnbQuestionType:type:query')")
+    @GetMapping(value = "/{id}")
+    public R getInfo(@PathVariable("id") String id) {
+        return R.ok(jnbQuestionTypeService.selectJnbQuestionTypeById(id));
+    }
+
+    /**
+     * 新增类型配置
+     */
+    @PreAuthorize("@ss.hasPermi('JnbQuestionType:type:add')")
+    @Log(title = "类型配置", businessType = BusinessType.INSERT)
+    @PostMapping
+    public R add(@RequestBody JnbQuestionType jnbQuestionType) {
+        List<JnbQuestionType> jnbQuestionTypes = jnbQuestionTypeService.selectJnbQuestionByType(jnbQuestionType);
+        if (StringUtils.isNotEmpty(jnbQuestionTypes)){
+            return R.fail("类型名称已存在");
+        }
+        return R.ok(jnbQuestionTypeService.insertJnbQuestionType(jnbQuestionType));
+    }
+
+    /**
+     * 修改类型配置
+     */
+    @PreAuthorize("@ss.hasPermi('JnbQuestionType:type:edit')")
+    @Log(title = "类型配置", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public R edit(@RequestBody JnbQuestionType jnbQuestionType) {
+        List<JnbQuestionType> jnbQuestionTypes = jnbQuestionTypeService.selectJnbQuestionByType(jnbQuestionType);
+        if (StringUtils.isNotEmpty(jnbQuestionTypes)){
+            return R.fail("类型名称已存在");
+        }
+        return R.ok(jnbQuestionTypeService.updateJnbQuestionType(jnbQuestionType));
+    }
+
+    /**
+     * 删除类型配置
+     */
+    @PreAuthorize("@ss.hasPermi('JnbQuestionType:type:remove')")
+    @Log(title = "类型配置", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{ids}")
+    public R remove(@PathVariable String[] ids) {
+        return R.ok(jnbQuestionTypeService.deleteJnbQuestionTypeByIds(ids));
+    }
+}

+ 91 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/my/JnbNameAuthenticationController.java

@@ -0,0 +1,91 @@
+package com.ruoyi.web.controller.my;
+
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.core.page.TableDataInfo;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.sooka.jnb.my.domain.JnbNameAuthentication;
+import com.sooka.jnb.my.service.IJnbNameAuthenticationService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletResponse;
+import java.util.List;
+
+/**
+ * 实名认证Controller
+ *
+ * @author 韩福成
+ * @date 2024-03-02
+ */
+@RestController
+@RequestMapping("/nameAuthentication")
+public class JnbNameAuthenticationController extends BaseController {
+    @Autowired
+    private IJnbNameAuthenticationService jnbNameAuthenticationService;
+
+    /**
+     * 查询实名认证列表
+     */
+    @PreAuthorize("@ss.hasPermi('nameAuthentication:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(JnbNameAuthentication jnbNameAuthentication) {
+        startPage();
+        List<JnbNameAuthentication> list = jnbNameAuthenticationService.selectJnbNameAuthenticationList(jnbNameAuthentication);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出实名认证列表
+     */
+    @PreAuthorize("@ss.hasPermi('nameAuthentication:export')")
+    @Log(title = "实名认证", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, JnbNameAuthentication jnbNameAuthentication) {
+        List<JnbNameAuthentication> list = jnbNameAuthenticationService.selectJnbNameAuthenticationList(jnbNameAuthentication);
+        ExcelUtil<JnbNameAuthentication> util = new ExcelUtil<JnbNameAuthentication>(JnbNameAuthentication.class);
+        util.exportExcel(response, list, "实名认证数据");
+    }
+
+    /**
+     * 获取实名认证详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('nameAuthentication:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") String id) {
+        return success(jnbNameAuthenticationService.selectJnbNameAuthenticationById(id));
+    }
+
+    /**
+     * 新增实名认证
+     */
+    @PreAuthorize("@ss.hasPermi('nameAuthentication:add')")
+    @Log(title = "实名认证", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody JnbNameAuthentication jnbNameAuthentication) {
+        return toAjax(jnbNameAuthenticationService.insertJnbNameAuthentication(jnbNameAuthentication));
+    }
+
+    /**
+     * 修改实名认证
+     */
+    @PreAuthorize("@ss.hasPermi('nameAuthentication:edit')")
+    @Log(title = "实名认证", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody JnbNameAuthentication jnbNameAuthentication) {
+        return toAjax(jnbNameAuthenticationService.updateJnbNameAuthentication(jnbNameAuthentication));
+    }
+
+    /**
+     * 删除实名认证
+     */
+    @PreAuthorize("@ss.hasPermi('nameAuthentication:remove')")
+    @Log(title = "实名认证", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable String[] ids) {
+        return toAjax(jnbNameAuthenticationService.deleteJnbNameAuthenticationByIds(ids));
+    }
+}

+ 98 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/my/JnbOfficialAuthenticationController.java

@@ -0,0 +1,98 @@
+package com.ruoyi.web.controller.my;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+
+import com.sooka.jnb.my.domain.JnbOfficialAuthentication;
+import com.sooka.jnb.my.service.IJnbOfficialAuthenticationService;
+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 com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 官方认证Controller
+ *
+ * @author 韩福成
+ * @date 2024-03-02
+ */
+@RestController
+@RequestMapping("/officialAuthentication")
+public class JnbOfficialAuthenticationController extends BaseController {
+    @Autowired
+    private IJnbOfficialAuthenticationService jnbOfficialAuthenticationService;
+
+    /**
+     * 查询官方认证列表
+     */
+    @PreAuthorize("@ss.hasPermi('officialAuthentication:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(JnbOfficialAuthentication jnbOfficialAuthentication) {
+        startPage();
+        List<JnbOfficialAuthentication> list = jnbOfficialAuthenticationService.selectJnbOfficialAuthenticationList(jnbOfficialAuthentication);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出官方认证列表
+     */
+    @PreAuthorize("@ss.hasPermi('officialAuthentication:export')")
+    @Log(title = "官方认证", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, JnbOfficialAuthentication jnbOfficialAuthentication) {
+        List<JnbOfficialAuthentication> list = jnbOfficialAuthenticationService.selectJnbOfficialAuthenticationList(jnbOfficialAuthentication);
+        ExcelUtil<JnbOfficialAuthentication> util = new ExcelUtil<JnbOfficialAuthentication>(JnbOfficialAuthentication.class);
+        util.exportExcel(response, list, "官方认证数据");
+    }
+
+    /**
+     * 获取官方认证详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('officialAuthentication:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") String id) {
+        return success(jnbOfficialAuthenticationService.selectJnbOfficialAuthenticationById(id));
+    }
+
+    /**
+     * 新增官方认证
+     */
+    @PreAuthorize("@ss.hasPermi('officialAuthentication:add')")
+    @Log(title = "官方认证", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody JnbOfficialAuthentication jnbOfficialAuthentication) {
+        return toAjax(jnbOfficialAuthenticationService.insertJnbOfficialAuthentication(jnbOfficialAuthentication));
+    }
+
+    /**
+     * 修改官方认证
+     */
+    @PreAuthorize("@ss.hasPermi('officialAuthentication:edit')")
+    @Log(title = "官方认证", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody JnbOfficialAuthentication jnbOfficialAuthentication) {
+        return toAjax(jnbOfficialAuthenticationService.updateJnbOfficialAuthentication(jnbOfficialAuthentication));
+    }
+
+    /**
+     * 删除官方认证
+     */
+    @PreAuthorize("@ss.hasPermi('officialAuthentication:remove')")
+    @Log(title = "官方认证", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable String[] ids) {
+        return toAjax(jnbOfficialAuthenticationService.deleteJnbOfficialAuthenticationByIds(ids));
+    }
+}

+ 118 - 0
sooka-jnb/src/main/java/com/sooka/jnb/asking/domain/JnbQuestionType.java

@@ -0,0 +1,118 @@
+package com.sooka.jnb.asking.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 类型配置对象 jnb_question_type
+ *
+ * @author 韩福成
+ * @date 2024-03-01
+ */
+public class JnbQuestionType extends BaseEntity {
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * id
+     */
+    private String id;
+
+    /*
+     *  图片id
+     */
+    private String imgId;
+
+    /*
+    * 图片关联id
+    */
+    private String typeId;
+
+    /**
+     * 类型名称
+     */
+    @Excel(name = "类型名称")
+    private String type;
+
+    /**
+     * 图片路径
+     */
+    private String path;
+
+    /**
+     * 是否首页展示
+     */
+    @Excel(name = "是否首页展示")
+    private String whetherShow;
+
+    /**
+     * 数据状态(1-可用 2-不可用 )
+     */
+    private String dataStatus;
+
+    public String getTypeId() {
+        return typeId;
+    }
+
+    public void setTypeId(String typeId) {
+        this.typeId = typeId;
+    }
+
+    public String getImgId() {
+        return imgId;
+    }
+
+    public void setImgId(String imgId) {
+        this.imgId = imgId;
+    }
+
+    public String getDataStatus() {
+        return dataStatus;
+    }
+
+    public void setDataStatus(String dataStatus) {
+        this.dataStatus = dataStatus;
+    }
+
+    public String getPath() {
+        return path;
+    }
+
+    public void setPath(String path) {
+        this.path = path;
+    }
+
+    public void setId(String id) {
+        this.id = id;
+    }
+
+    public String getId() {
+        return id;
+    }
+
+    public void setType(String type) {
+        this.type = type;
+    }
+
+    public String getType() {
+        return type;
+    }
+
+    public String getWhetherShow() {
+        return whetherShow;
+    }
+
+    public void setWhetherShow(String whetherShow) {
+        this.whetherShow = whetherShow;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
+                .append("id", getId())
+                .append("type", getType())
+                .append("show", getWhetherShow())
+                .toString();
+    }
+}

+ 77 - 0
sooka-jnb/src/main/java/com/sooka/jnb/asking/mapper/JnbQuestionTypeMapper.java

@@ -0,0 +1,77 @@
+package com.sooka.jnb.asking.mapper;
+
+import com.sooka.jnb.asking.domain.JnbQuestionType;
+
+import java.util.List;
+
+/**
+ * 类型配置Mapper接口
+ *
+ * @author 韩福成
+ * @date 2024-03-01
+ */
+public interface JnbQuestionTypeMapper {
+    /**
+     * 查询类型配置
+     *
+     * @param id 类型配置主键
+     * @return 类型配置
+     */
+    public JnbQuestionType selectJnbQuestionTypeById(String id);
+
+    /*
+    * 按类型查询
+    *
+    * @author 韩福成
+    * @date 2024/3/1 14:04
+    */
+    public List<JnbQuestionType> selectJnbQuestionByType(JnbQuestionType jnbQuestionType);
+
+    /**
+     * 查询类型配置列表
+     *
+     * @param jnbQuestionType 类型配置
+     * @return 类型配置集合
+     */
+    public List<JnbQuestionType> selectJnbQuestionTypeList(JnbQuestionType jnbQuestionType);
+
+    /**
+     * 新增类型配置
+     *
+     * @param jnbQuestionType 类型配置
+     * @return 结果
+     */
+    public int insertJnbQuestionType(JnbQuestionType jnbQuestionType);
+
+    /**
+     * 新增类型图片
+     *
+     * @param jnbQuestionType 类型配置
+     * @return 结果
+     */
+    public int insertJnbQuestionTypePath(JnbQuestionType jnbQuestionType);
+
+    /**
+     * 修改类型配置
+     *
+     * @param jnbQuestionType 类型配置
+     * @return 结果
+     */
+    public int updateJnbQuestionType(JnbQuestionType jnbQuestionType);
+
+    /*
+    * 修改图片
+    *
+    * @author 韩福成
+    * @date 2024/3/2 11:05
+    */
+    public int updateJnbQuestionTypeImg(JnbQuestionType jnbQuestionType);
+
+    /**
+     * 批量删除类型配置
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteJnbQuestionTypeByIds(String[] ids);
+}

+ 62 - 0
sooka-jnb/src/main/java/com/sooka/jnb/asking/service/IJnbQuestionTypeService.java

@@ -0,0 +1,62 @@
+package com.sooka.jnb.asking.service;
+
+import com.sooka.jnb.asking.domain.JnbQuestionType;
+
+import java.util.List;
+
+/**
+ * 类型配置Service接口
+ *
+ * @author 韩福成
+ * @date 2024-03-01
+ */
+public interface IJnbQuestionTypeService {
+    /**
+     * 查询类型配置
+     *
+     * @param id 类型配置主键
+     * @return 类型配置
+     */
+    public JnbQuestionType selectJnbQuestionTypeById(String id);
+
+    /**
+     * 查询类型配置列表
+     *
+     * @param jnbQuestionType 类型配置
+     * @return 类型配置集合
+     */
+    public List<JnbQuestionType> selectJnbQuestionTypeList(JnbQuestionType jnbQuestionType);
+
+    /**
+     * 新增类型配置
+     *
+     * @param jnbQuestionType 类型配置
+     * @return 结果
+     */
+    public int insertJnbQuestionType(JnbQuestionType jnbQuestionType);
+
+    /**
+     * 修改类型配置
+     *
+     * @param jnbQuestionType 类型配置
+     * @return 结果
+     */
+    public int updateJnbQuestionType(JnbQuestionType jnbQuestionType);
+
+    /**
+     * 批量删除类型配置
+     *
+     * @param ids 需要删除的类型配置主键集合
+     * @return 结果
+     */
+    public int deleteJnbQuestionTypeByIds(String[] ids);
+
+    /*
+    * 按类型查询
+    *
+    * @author 韩福成
+    * @date 2024/3/1 14:06
+    */
+    public List<JnbQuestionType> selectJnbQuestionByType(JnbQuestionType jnbQuestionType);
+
+}

+ 100 - 0
sooka-jnb/src/main/java/com/sooka/jnb/asking/service/impl/JnbQuestionTypeServiceImpl.java

@@ -0,0 +1,100 @@
+package com.sooka.jnb.asking.service.impl;
+
+import java.util.List;
+
+import com.ruoyi.common.utils.DateUtils;
+import com.ruoyi.common.utils.SecurityUtils;
+import com.ruoyi.common.utils.uuid.IdUtils;
+import com.sooka.jnb.asking.domain.JnbQuestionType;
+import com.sooka.jnb.asking.mapper.JnbQuestionTypeMapper;
+import com.sooka.jnb.asking.service.IJnbQuestionTypeService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+/**
+ * 类型配置Service业务层处理
+ *
+ * @author 韩福成
+ * @date 2024-03-01
+ */
+@Service
+public class JnbQuestionTypeServiceImpl implements IJnbQuestionTypeService {
+    @Autowired
+    private JnbQuestionTypeMapper jnbQuestionTypeMapper;
+
+    /**
+     * 查询类型配置
+     *
+     * @param id 类型配置主键
+     * @return 类型配置
+     */
+    @Override
+    public JnbQuestionType selectJnbQuestionTypeById(String id) {
+        return jnbQuestionTypeMapper.selectJnbQuestionTypeById(id);
+    }
+
+    /**
+     * 查询类型配置列表
+     *
+     * @param jnbQuestionType 类型配置
+     * @return 类型配置
+     */
+    @Override
+    public List<JnbQuestionType> selectJnbQuestionTypeList(JnbQuestionType jnbQuestionType) {
+        return jnbQuestionTypeMapper.selectJnbQuestionTypeList(jnbQuestionType);
+    }
+
+    /**
+     * 新增类型配置
+     *
+     * @param jnbQuestionType 类型配置
+     * @return 结果
+     */
+    @Override
+    public int insertJnbQuestionType(JnbQuestionType jnbQuestionType) {
+        jnbQuestionType.setId(IdUtils.simpleUUID());
+        jnbQuestionType.setCreateBy(SecurityUtils.getUserId().toString());
+        jnbQuestionType.setCreateTime(DateUtils.getNowDate());
+        jnbQuestionType.setDataStatus("1");
+        jnbQuestionTypeMapper.insertJnbQuestionType(jnbQuestionType);
+        jnbQuestionType.setTypeId(jnbQuestionType.getId());
+        jnbQuestionType.setId(IdUtils.simpleUUID());
+        return jnbQuestionTypeMapper.insertJnbQuestionTypePath(jnbQuestionType);
+    }
+
+    /**
+     * 修改类型配置
+     *
+     * @param jnbQuestionType 类型配置
+     * @return 结果
+     */
+    @Override
+    public int updateJnbQuestionType(JnbQuestionType jnbQuestionType) {
+        jnbQuestionType.setUpdateBy(SecurityUtils.getUserId().toString());
+        jnbQuestionType.setUpdateTime(DateUtils.getNowDate());
+        jnbQuestionTypeMapper.updateJnbQuestionTypeImg(jnbQuestionType);
+        return jnbQuestionTypeMapper.updateJnbQuestionType(jnbQuestionType);
+    }
+
+    /**
+     * 批量删除类型配置
+     *
+     * @param ids 需要删除的类型配置主键
+     * @return 结果
+     */
+    @Override
+    public int deleteJnbQuestionTypeByIds(String[] ids) {
+        return jnbQuestionTypeMapper.deleteJnbQuestionTypeByIds(ids);
+    }
+
+    /*
+    * 按类型查询
+    *
+    * @author 韩福成
+    * @date 2024/3/1 14:07
+    */
+    @Override
+    public List<JnbQuestionType> selectJnbQuestionByType(JnbQuestionType jnbQuestionType) {
+        return jnbQuestionTypeMapper.selectJnbQuestionByType(jnbQuestionType);
+    }
+}

+ 55 - 0
sooka-jnb/src/main/java/com/sooka/jnb/my/domain/JnbAuthenticationImg.java

@@ -0,0 +1,55 @@
+package com.sooka.jnb.my.domain;
+
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+
+/**
+ * 认证图片
+ *
+ * @author 韩福成
+ * @date 2024-03-02
+ */
+public class JnbAuthenticationImg extends BaseEntity {
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * id
+     */
+    private String id;
+
+    /**
+     * 关联id
+     */
+    private String authenticationId;
+
+    /**
+     * 图片
+     */
+    private String path;
+
+    public String getId() {
+        return id;
+    }
+
+    public void setId(String id) {
+        this.id = id;
+    }
+
+    public String getAuthenticationId() {
+        return authenticationId;
+    }
+
+    public void setAuthenticationId(String authenticationId) {
+        this.authenticationId = authenticationId;
+    }
+
+    public String getPath() {
+        return path;
+    }
+
+    public void setPath(String path) {
+        this.path = path;
+    }
+}

+ 140 - 0
sooka-jnb/src/main/java/com/sooka/jnb/my/domain/JnbNameAuthentication.java

@@ -0,0 +1,140 @@
+package com.sooka.jnb.my.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 实名认证对象 jnb_name_authentication
+ *
+ * @author 韩福成
+ * @date 2024-03-02
+ */
+public class JnbNameAuthentication extends BaseEntity {
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * id
+     */
+    private String id;
+
+    /**
+     * 姓名
+     */
+    @Excel(name = "姓名")
+    private String name;
+
+    /**
+     * 手机号
+     */
+    @Excel(name = "手机号")
+    private String phone;
+
+    /**
+     * 身份证号
+     */
+    @Excel(name = "身份证号")
+    private String idCard;
+
+    /**
+     * 审核状态(0-待审核;1-审核通过;2-审核未通过)
+     */
+    @Excel(name = "审核状态", readConverterExp = "0=-待审核;1-审核通过;2-审核未通过")
+    private String status;
+
+    /**
+     * 删除状态
+     */
+    private String delFlag;
+
+    /*
+    * 关联id
+    */
+    private String authenticationId;
+
+    /*
+    * 图片
+    */
+    private String path;
+
+    public String getAuthenticationId() {
+        return authenticationId;
+    }
+
+    public void setAuthenticationId(String authenticationId) {
+        this.authenticationId = authenticationId;
+    }
+
+    public String getPath() {
+        return path;
+    }
+
+    public void setPath(String path) {
+        this.path = path;
+    }
+
+    public void setId(String id) {
+        this.id = id;
+    }
+
+    public String getId() {
+        return id;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setPhone(String phone) {
+        this.phone = phone;
+    }
+
+    public String getPhone() {
+        return phone;
+    }
+
+    public void setIdCard(String idCard) {
+        this.idCard = idCard;
+    }
+
+    public String getIdCard() {
+        return idCard;
+    }
+
+    public void setStatus(String status) {
+        this.status = status;
+    }
+
+    public String getStatus() {
+        return status;
+    }
+
+    public void setDelFlag(String delFlag) {
+        this.delFlag = delFlag;
+    }
+
+    public String getDelFlag() {
+        return delFlag;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
+                .append("id", getId())
+                .append("name", getName())
+                .append("phone", getPhone())
+                .append("idCard", getIdCard())
+                .append("createBy", getCreateBy())
+                .append("createTime", getCreateTime())
+                .append("updateBy", getUpdateBy())
+                .append("updateTime", getUpdateTime())
+                .append("status", getStatus())
+                .append("delFlag", getDelFlag())
+                .toString();
+    }
+}

+ 122 - 0
sooka-jnb/src/main/java/com/sooka/jnb/my/domain/JnbOfficialAuthentication.java

@@ -0,0 +1,122 @@
+package com.sooka.jnb.my.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 官方认证对象 jnb_official_authentication
+ * 
+ * @author 韩福成
+ * @date 2024-03-02
+ */
+public class JnbOfficialAuthentication extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** id */
+    private String id;
+
+    /** 企业名称 */
+    @Excel(name = "企业名称")
+    private String enterpriseName;
+
+    /** 法人姓名 */
+    @Excel(name = "法人姓名")
+    private String legalName;
+
+    /** 手机号 */
+    @Excel(name = "手机号")
+    private String phone;
+
+    /** 审核状态(0-待审核;1-审核通过;2-审核未通过) */
+    @Excel(name = "审核状态", readConverterExp = "0=-待审核;1-审核通过;2-审核未通过")
+    private String status;
+
+    /** 删除状态 */
+    private String delFlag;
+
+    /*
+     * 图片
+     */
+    private String path;
+
+    public String getPath() {
+        return path;
+    }
+
+    public void setPath(String path) {
+        this.path = path;
+    }
+
+    public String getId() {
+        return id;
+    }
+
+    public void setId(String id) {
+        this.id = id;
+    }
+
+    public void setEnterpriseName(String enterpriseName)
+    {
+        this.enterpriseName = enterpriseName;
+    }
+
+    public String getEnterpriseName() 
+    {
+        return enterpriseName;
+    }
+    public void setLegalName(String legalName) 
+    {
+        this.legalName = legalName;
+    }
+
+    public String getLegalName() 
+    {
+        return legalName;
+    }
+    public void setPhone(String phone) 
+    {
+        this.phone = phone;
+    }
+
+    public String getPhone() 
+    {
+        return phone;
+    }
+    public void setStatus(String status) 
+    {
+        this.status = status;
+    }
+
+    public String getStatus() 
+    {
+        return status;
+    }
+    public void setDelFlag(String delFlag) 
+    {
+        this.delFlag = delFlag;
+    }
+
+    public String getDelFlag() 
+    {
+        return delFlag;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("enterpriseName", getEnterpriseName())
+            .append("legalName", getLegalName())
+            .append("phone", getPhone())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .append("status", getStatus())
+            .append("delFlag", getDelFlag())
+            .toString();
+    }
+}

+ 70 - 0
sooka-jnb/src/main/java/com/sooka/jnb/my/mapper/JnbNameAuthenticationMapper.java

@@ -0,0 +1,70 @@
+package com.sooka.jnb.my.mapper;
+
+import com.sooka.jnb.my.domain.JnbAuthenticationImg;
+import com.sooka.jnb.my.domain.JnbNameAuthentication;
+
+import java.util.List;
+
+/**
+ * 实名认证Mapper接口
+ *
+ * @author 韩福成
+ * @date 2024-03-02
+ */
+public interface JnbNameAuthenticationMapper {
+    /**
+     * 查询实名认证
+     *
+     * @param id 实名认证主键
+     * @return 实名认证
+     */
+    public JnbNameAuthentication selectJnbNameAuthenticationById(String id);
+
+    /**
+     * 查询实名认证列表
+     *
+     * @param jnbNameAuthentication 实名认证
+     * @return 实名认证集合
+     */
+    public List<JnbNameAuthentication> selectJnbNameAuthenticationList(JnbNameAuthentication jnbNameAuthentication);
+
+    /**
+     * 新增实名认证
+     *
+     * @param jnbNameAuthentication 实名认证
+     * @return 结果
+     */
+    public int insertJnbNameAuthentication(JnbNameAuthentication jnbNameAuthentication);
+
+    /*
+    * 新增图片
+    *
+    * @author 韩福成
+    * @date 2024/3/2 13:27
+    */
+    public int insertJnbAuthenticationImg(JnbAuthenticationImg jnbAuthenticationImg);
+
+    /**
+     * 修改实名认证
+     *
+     * @param jnbNameAuthentication 实名认证
+     * @return 结果
+     */
+    public int updateJnbNameAuthentication(JnbNameAuthentication jnbNameAuthentication);
+
+    /**
+     * 删除实名认证
+     *
+     * @param id 实名认证主键
+     * @return 结果
+     */
+    public int deleteJnbNameAuthenticationById(String id);
+
+    /**
+     * 批量删除实名认证
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteJnbNameAuthenticationByIds(String[] ids);
+}

+ 62 - 0
sooka-jnb/src/main/java/com/sooka/jnb/my/mapper/JnbOfficialAuthenticationMapper.java

@@ -0,0 +1,62 @@
+package com.sooka.jnb.my.mapper;
+
+import com.sooka.jnb.my.domain.JnbOfficialAuthentication;
+
+import java.util.List;
+
+
+/**
+ * 官方认证Mapper接口
+ *
+ * @author 韩福成
+ * @date 2024-03-02
+ */
+public interface JnbOfficialAuthenticationMapper {
+    /**
+     * 查询官方认证
+     *
+     * @param id 官方认证主键
+     * @return 官方认证
+     */
+    public JnbOfficialAuthentication selectJnbOfficialAuthenticationById(String id);
+
+    /**
+     * 查询官方认证列表
+     *
+     * @param jnbOfficialAuthentication 官方认证
+     * @return 官方认证集合
+     */
+    public List<JnbOfficialAuthentication> selectJnbOfficialAuthenticationList(JnbOfficialAuthentication jnbOfficialAuthentication);
+
+    /**
+     * 新增官方认证
+     *
+     * @param jnbOfficialAuthentication 官方认证
+     * @return 结果
+     */
+    public int insertJnbOfficialAuthentication(JnbOfficialAuthentication jnbOfficialAuthentication);
+
+    /**
+     * 修改官方认证
+     *
+     * @param jnbOfficialAuthentication 官方认证
+     * @return 结果
+     */
+    public int updateJnbOfficialAuthentication(JnbOfficialAuthentication jnbOfficialAuthentication);
+
+    /**
+     * 删除官方认证
+     *
+     * @param id 官方认证主键
+     * @return 结果
+     */
+    public int deleteJnbOfficialAuthenticationById(String id);
+
+    /**
+     * 批量删除官方认证
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteJnbOfficialAuthenticationByIds(String[] ids);
+}

+ 62 - 0
sooka-jnb/src/main/java/com/sooka/jnb/my/service/IJnbNameAuthenticationService.java

@@ -0,0 +1,62 @@
+package com.sooka.jnb.my.service;
+
+
+import com.sooka.jnb.my.domain.JnbNameAuthentication;
+
+import java.util.List;
+
+/**
+ * 实名认证Service接口
+ *
+ * @author 韩福成
+ * @date 2024-03-02
+ */
+public interface IJnbNameAuthenticationService {
+    /**
+     * 查询实名认证
+     *
+     * @param id 实名认证主键
+     * @return 实名认证
+     */
+    public JnbNameAuthentication selectJnbNameAuthenticationById(String id);
+
+    /**
+     * 查询实名认证列表
+     *
+     * @param jnbNameAuthentication 实名认证
+     * @return 实名认证集合
+     */
+    public List<JnbNameAuthentication> selectJnbNameAuthenticationList(JnbNameAuthentication jnbNameAuthentication);
+
+    /**
+     * 新增实名认证
+     *
+     * @param jnbNameAuthentication 实名认证
+     * @return 结果
+     */
+    public int insertJnbNameAuthentication(JnbNameAuthentication jnbNameAuthentication);
+
+    /**
+     * 修改实名认证
+     *
+     * @param jnbNameAuthentication 实名认证
+     * @return 结果
+     */
+    public int updateJnbNameAuthentication(JnbNameAuthentication jnbNameAuthentication);
+
+    /**
+     * 批量删除实名认证
+     *
+     * @param ids 需要删除的实名认证主键集合
+     * @return 结果
+     */
+    public int deleteJnbNameAuthenticationByIds(String[] ids);
+
+    /**
+     * 删除实名认证信息
+     *
+     * @param id 实名认证主键
+     * @return 结果
+     */
+    public int deleteJnbNameAuthenticationById(String id);
+}

+ 61 - 0
sooka-jnb/src/main/java/com/sooka/jnb/my/service/IJnbOfficialAuthenticationService.java

@@ -0,0 +1,61 @@
+package com.sooka.jnb.my.service;
+
+import com.sooka.jnb.my.domain.JnbOfficialAuthentication;
+
+import java.util.List;
+
+/**
+ * 官方认证Service接口
+ *
+ * @author 韩福成
+ * @date 2024-03-02
+ */
+public interface IJnbOfficialAuthenticationService {
+    /**
+     * 查询官方认证
+     *
+     * @param id 官方认证主键
+     * @return 官方认证
+     */
+    public JnbOfficialAuthentication selectJnbOfficialAuthenticationById(String id);
+
+    /**
+     * 查询官方认证列表
+     *
+     * @param jnbOfficialAuthentication 官方认证
+     * @return 官方认证集合
+     */
+    public List<JnbOfficialAuthentication> selectJnbOfficialAuthenticationList(JnbOfficialAuthentication jnbOfficialAuthentication);
+
+    /**
+     * 新增官方认证
+     *
+     * @param jnbOfficialAuthentication 官方认证
+     * @return 结果
+     */
+    public int insertJnbOfficialAuthentication(JnbOfficialAuthentication jnbOfficialAuthentication);
+
+    /**
+     * 修改官方认证
+     *
+     * @param jnbOfficialAuthentication 官方认证
+     * @return 结果
+     */
+    public int updateJnbOfficialAuthentication(JnbOfficialAuthentication jnbOfficialAuthentication);
+
+    /**
+     * 批量删除官方认证
+     *
+     * @param ids 需要删除的官方认证主键集合
+     * @return 结果
+     */
+    public int deleteJnbOfficialAuthenticationByIds(String[] ids);
+
+    /**
+     * 删除官方认证信息
+     *
+     * @param id 官方认证主键
+     * @return 结果
+     */
+    public int deleteJnbOfficialAuthenticationById(String id);
+}

+ 109 - 0
sooka-jnb/src/main/java/com/sooka/jnb/my/service/impl/JnbNameAuthenticationServiceImpl.java

@@ -0,0 +1,109 @@
+package com.sooka.jnb.my.service.impl;
+
+import com.ruoyi.common.utils.DateUtils;
+import com.ruoyi.common.utils.SecurityUtils;
+import com.ruoyi.common.utils.uuid.IdUtils;
+import com.sooka.jnb.my.domain.JnbAuthenticationImg;
+import com.sooka.jnb.my.domain.JnbNameAuthentication;
+import com.sooka.jnb.my.mapper.JnbNameAuthenticationMapper;
+import com.sooka.jnb.my.service.IJnbNameAuthenticationService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ * 实名认证Service业务层处理
+ *
+ * @author 韩福成
+ * @date 2024-03-02
+ */
+@Service
+public class JnbNameAuthenticationServiceImpl implements IJnbNameAuthenticationService {
+    @Autowired
+    private JnbNameAuthenticationMapper jnbNameAuthenticationMapper;
+
+    /**
+     * 查询实名认证
+     *
+     * @param id 实名认证主键
+     * @return 实名认证
+     */
+    @Override
+    public JnbNameAuthentication selectJnbNameAuthenticationById(String id) {
+        return jnbNameAuthenticationMapper.selectJnbNameAuthenticationById(id);
+    }
+
+    /**
+     * 查询实名认证列表
+     *
+     * @param jnbNameAuthentication 实名认证
+     * @return 实名认证
+     */
+    @Override
+    public List<JnbNameAuthentication> selectJnbNameAuthenticationList(JnbNameAuthentication jnbNameAuthentication) {
+        return jnbNameAuthenticationMapper.selectJnbNameAuthenticationList(jnbNameAuthentication);
+    }
+
+    /**
+     * 新增实名认证
+     *
+     * @param jnbNameAuthentication 实名认证
+     * @return 结果
+     */
+    @Override
+    public int insertJnbNameAuthentication(JnbNameAuthentication jnbNameAuthentication) {
+        jnbNameAuthentication.setId(IdUtils.simpleUUID());
+        jnbNameAuthentication.setCreateBy(SecurityUtils.getUserId().toString());
+        jnbNameAuthentication.setCreateTime(DateUtils.getNowDate());
+        jnbNameAuthentication.setDelFlag("1");
+        jnbNameAuthentication.setStatus("3");
+        if (jnbNameAuthentication.getPath()!=null){
+            String[] paths = jnbNameAuthentication.getPath().split(",");
+            for (String path : paths) {
+                JnbAuthenticationImg img = new JnbAuthenticationImg();
+                img.setId(IdUtils.simpleUUID());
+                img.setAuthenticationId(jnbNameAuthentication.getId());
+                img.setPath(path);
+                jnbNameAuthenticationMapper.insertJnbAuthenticationImg(img);
+            }
+        }
+
+        return jnbNameAuthenticationMapper.insertJnbNameAuthentication(jnbNameAuthentication);
+    }
+
+    /**
+     * 修改实名认证
+     *
+     * @param jnbNameAuthentication 实名认证
+     * @return 结果
+     */
+    @Override
+    public int updateJnbNameAuthentication(JnbNameAuthentication jnbNameAuthentication) {
+        jnbNameAuthentication.setUpdateTime(DateUtils.getNowDate());
+        jnbNameAuthentication.setUpdateBy(SecurityUtils.getUserId().toString());
+        return jnbNameAuthenticationMapper.updateJnbNameAuthentication(jnbNameAuthentication);
+    }
+
+    /**
+     * 批量删除实名认证
+     *
+     * @param ids 需要删除的实名认证主键
+     * @return 结果
+     */
+    @Override
+    public int deleteJnbNameAuthenticationByIds(String[] ids) {
+        return jnbNameAuthenticationMapper.deleteJnbNameAuthenticationByIds(ids);
+    }
+
+    /**
+     * 删除实名认证信息
+     *
+     * @param id 实名认证主键
+     * @return 结果
+     */
+    @Override
+    public int deleteJnbNameAuthenticationById(String id) {
+        return jnbNameAuthenticationMapper.deleteJnbNameAuthenticationById(id);
+    }
+}

+ 113 - 0
sooka-jnb/src/main/java/com/sooka/jnb/my/service/impl/JnbOfficialAuthenticationServiceImpl.java

@@ -0,0 +1,113 @@
+package com.sooka.jnb.my.service.impl;
+
+import java.util.List;
+
+import com.ruoyi.common.utils.DateUtils;
+import com.ruoyi.common.utils.SecurityUtils;
+import com.ruoyi.common.utils.uuid.IdUtils;
+import com.sooka.jnb.my.domain.JnbAuthenticationImg;
+import com.sooka.jnb.my.domain.JnbOfficialAuthentication;
+import com.sooka.jnb.my.mapper.JnbNameAuthenticationMapper;
+import com.sooka.jnb.my.mapper.JnbOfficialAuthenticationMapper;
+import com.sooka.jnb.my.service.IJnbOfficialAuthenticationService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+/**
+ * 官方认证Service业务层处理
+ *
+ * @author 韩福成
+ * @date 2024-03-02
+ */
+@Service
+public class JnbOfficialAuthenticationServiceImpl implements IJnbOfficialAuthenticationService {
+    @Autowired
+    private JnbOfficialAuthenticationMapper jnbOfficialAuthenticationMapper;
+
+    @Autowired
+    private JnbNameAuthenticationMapper jnbNameAuthenticationMapper;
+
+    /**
+     * 查询官方认证
+     *
+     * @param id 官方认证主键
+     * @return 官方认证
+     */
+    @Override
+    public JnbOfficialAuthentication selectJnbOfficialAuthenticationById(String id) {
+        return jnbOfficialAuthenticationMapper.selectJnbOfficialAuthenticationById(id);
+    }
+
+    /**
+     * 查询官方认证列表
+     *
+     * @param jnbOfficialAuthentication 官方认证
+     * @return 官方认证
+     */
+    @Override
+    public List<JnbOfficialAuthentication> selectJnbOfficialAuthenticationList(JnbOfficialAuthentication jnbOfficialAuthentication) {
+        return jnbOfficialAuthenticationMapper.selectJnbOfficialAuthenticationList(jnbOfficialAuthentication);
+    }
+
+    /**
+     * 新增官方认证
+     *
+     * @param jnbOfficialAuthentication 官方认证
+     * @return 结果
+     */
+    @Override
+    public int insertJnbOfficialAuthentication(JnbOfficialAuthentication jnbOfficialAuthentication) {
+        jnbOfficialAuthentication.setId(IdUtils.simpleUUID());
+        jnbOfficialAuthentication.setCreateBy(SecurityUtils.getUserId().toString());
+        jnbOfficialAuthentication.setCreateTime(DateUtils.getNowDate());
+        jnbOfficialAuthentication.setDelFlag("1");
+        jnbOfficialAuthentication.setStatus("3");
+        if (jnbOfficialAuthentication.getPath()!=null){
+            String[] paths = jnbOfficialAuthentication.getPath().split(",");
+            for (String path : paths) {
+                JnbAuthenticationImg img = new JnbAuthenticationImg();
+                img.setId(IdUtils.simpleUUID());
+                img.setAuthenticationId(jnbOfficialAuthentication.getId());
+                img.setPath(path);
+                jnbNameAuthenticationMapper.insertJnbAuthenticationImg(img);
+            }
+        }
+
+        return jnbOfficialAuthenticationMapper.insertJnbOfficialAuthentication(jnbOfficialAuthentication);
+    }
+
+    /**
+     * 修改官方认证
+     *
+     * @param jnbOfficialAuthentication 官方认证
+     * @return 结果
+     */
+    @Override
+    public int updateJnbOfficialAuthentication(JnbOfficialAuthentication jnbOfficialAuthentication) {
+        jnbOfficialAuthentication.setUpdateTime(DateUtils.getNowDate());
+        jnbOfficialAuthentication.setUpdateBy(SecurityUtils.getUserId().toString());
+        return jnbOfficialAuthenticationMapper.updateJnbOfficialAuthentication(jnbOfficialAuthentication);
+    }
+
+    /**
+     * 批量删除官方认证
+     *
+     * @param ids 需要删除的官方认证主键
+     * @return 结果
+     */
+    @Override
+    public int deleteJnbOfficialAuthenticationByIds(String[] ids) {
+        return jnbOfficialAuthenticationMapper.deleteJnbOfficialAuthenticationByIds(ids);
+    }
+
+    /**
+     * 删除官方认证信息
+     *
+     * @param id 官方认证主键
+     * @return 结果
+     */
+    @Override
+    public int deleteJnbOfficialAuthenticationById(String id) {
+        return jnbOfficialAuthenticationMapper.deleteJnbOfficialAuthenticationById(id);
+    }
+}

+ 103 - 0
sooka-jnb/src/main/resources/mapper/asking/JnbQuestionTypeMapper.xml

@@ -0,0 +1,103 @@
+<?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.sooka.jnb.asking.mapper.JnbQuestionTypeMapper">
+    
+    <resultMap type="JnbQuestionType" id="JnbQuestionTypeResult">
+        <result property="id"    column="id"    />
+        <result property="type"    column="type"    />
+        <result property="whetherShow"    column="whether_show"    />
+        <result property="path"    column="path"    />
+        <result property="imgId"    column="imgId"    />
+    </resultMap>
+
+    <sql id="selectJnbQuestionTypeVo">
+        select id, type, whether_show from jnb_question_type
+    </sql>
+
+    <select id="selectJnbQuestionTypeList" parameterType="JnbQuestionType" resultMap="JnbQuestionTypeResult">
+        select a.id, a.type, a.whether_show, b.path from jnb_question_type a
+        left join jnb_question_type_img b on a.id = b.type_id
+        where a.data_status =1
+            <if test="type != null  and type != ''"> and a.type like concat('%', #{type}, '%')</if>
+            <if test="whetherShow != null  and whetherShow != ''"> and a.whether_show = #{whetherShow}</if>
+        order by a.create_time desc
+    </select>
+    
+    <select id="selectJnbQuestionTypeById" parameterType="String" resultMap="JnbQuestionTypeResult">
+        select a.id, a.type, a.whether_show, b.path,b.id imgId from jnb_question_type a
+        left join jnb_question_type_img b on a.id = b.type_id
+        where a.id = #{id}
+    </select>
+
+    <select id="selectJnbQuestionByType" parameterType="JnbQuestionType" resultMap="JnbQuestionTypeResult">
+        select id, type, whether_show from jnb_question_type
+        where data_status =1
+            <if test="type != null  and type != ''"> and type = #{type}</if>
+            <if test="id != null  and id != ''"> and id != #{id}</if>
+    </select>
+
+    <insert id="insertJnbQuestionType" parameterType="JnbQuestionType">
+        insert into jnb_question_type
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">id,</if>
+            <if test="type != null">type,</if>
+            <if test="whetherShow != null">whether_show,</if>
+            <if test="dataStatus != null">data_status,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">#{id},</if>
+            <if test="type != null">#{type},</if>
+            <if test="whetherShow != null">#{whetherShow},</if>
+            <if test="dataStatus != null">#{dataStatus},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+         </trim>
+    </insert>
+
+    <insert id="insertJnbQuestionTypePath" parameterType="JnbQuestionType">
+        insert into jnb_question_type_img
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">id,</if>
+            <if test="typeId != null">type_id,</if>
+            <if test="path != null">path,</if>
+
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">#{id},</if>
+            <if test="typeId != null">#{typeId},</if>
+            <if test="path != null">#{path},</if>
+         </trim>
+    </insert>
+
+    <update id="updateJnbQuestionType" parameterType="JnbQuestionType">
+        update jnb_question_type
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="type != null">type = #{type},</if>
+            <if test="whetherShow != null">whether_show = #{whetherShow},</if>
+            <if test="dataStatus != null">data_status = #{dataStatus},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <update id="updateJnbQuestionTypeImg" parameterType="JnbQuestionType">
+        update jnb_question_type_img
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="path != null">path = #{path},</if>
+        </trim>
+        where id = #{imgId}
+    </update>
+
+    <update id="deleteJnbQuestionTypeByIds" parameterType="String">
+        update jnb_question_type set data_status = 2
+        where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </update>
+</mapper>

+ 111 - 0
sooka-jnb/src/main/resources/mapper/my/JnbNameAuthenticationMapper.xml

@@ -0,0 +1,111 @@
+<?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.sooka.jnb.my.mapper.JnbNameAuthenticationMapper">
+    
+    <resultMap type="JnbNameAuthentication" id="JnbNameAuthenticationResult">
+        <result property="id"    column="id"    />
+        <result property="name"    column="name"    />
+        <result property="phone"    column="phone"    />
+        <result property="idCard"    column="id_card"    />
+        <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="status"    column="status"    />
+        <result property="delFlag"    column="del_flag"    />
+        <result property="delFlag"    column="del_flag"    />
+        <result property="path"    column="path"    />
+    </resultMap>
+
+    <sql id="selectJnbNameAuthenticationVo">
+        select id, name, phone, id_card, create_by, create_time, update_by, update_time, status, del_flag from jnb_name_authentication
+    </sql>
+
+    <select id="selectJnbNameAuthenticationList" parameterType="JnbNameAuthentication" resultMap="JnbNameAuthenticationResult">
+        <include refid="selectJnbNameAuthenticationVo"/>
+        where del_flag = 1
+            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
+            <if test="phone != null  and phone != ''"> and phone = #{phone}</if>
+            <if test="idCard != null  and idCard != ''"> and id_card = #{idCard}</if>
+            <if test="status != null  and status != ''"> and status = #{status}</if>
+    </select>
+    
+    <select id="selectJnbNameAuthenticationById" parameterType="String" resultMap="JnbNameAuthenticationResult">
+        select a.id, a.name, a.phone, a.id_card, a.status,GROUP_CONCAT(b.path) path
+        from jnb_name_authentication a
+		left join jnb_authentication_img b on a.id = b.authentication_id
+        where a.id = #{id}
+    </select>
+        
+    <insert id="insertJnbNameAuthentication" parameterType="JnbNameAuthentication">
+        insert into jnb_name_authentication
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">id,</if>
+            <if test="name != null and name != ''">name,</if>
+            <if test="phone != null and phone != ''">phone,</if>
+            <if test="idCard != null and idCard != ''">id_card,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="status != null">status,</if>
+            <if test="delFlag != null">del_flag,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">#{id},</if>
+            <if test="name != null and name != ''">#{name},</if>
+            <if test="phone != null and phone != ''">#{phone},</if>
+            <if test="idCard != null and idCard != ''">#{idCard},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="status != null">#{status},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+         </trim>
+    </insert>
+
+    <insert id="insertJnbAuthenticationImg" parameterType="JnbAuthenticationImg">
+        insert into jnb_authentication_img
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">id,</if>
+            <if test="authenticationId != null and authenticationId != ''">authentication_id,</if>
+            <if test="path != null and path != ''">path,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">#{id},</if>
+            <if test="authenticationId != null and authenticationId != ''">#{authenticationId},</if>
+            <if test="path != null and path != ''">#{path},</if>
+        </trim>
+    </insert>
+
+    <update id="updateJnbNameAuthentication" parameterType="JnbNameAuthentication">
+        update jnb_name_authentication
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="name != null and name != ''">name = #{name},</if>
+            <if test="phone != null and phone != ''">phone = #{phone},</if>
+            <if test="idCard != null and idCard != ''">id_card = #{idCard},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="status != null">status = #{status},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteJnbNameAuthenticationById" parameterType="String">
+        delete from jnb_name_authentication where id = #{id}
+    </delete>
+
+    <delete id="deleteJnbNameAuthenticationByIds" parameterType="String">
+        update jnb_name_authentication set del_flag = 2
+        where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 102 - 0
sooka-jnb/src/main/resources/mapper/my/JnbOfficialAuthenticationMapper.xml

@@ -0,0 +1,102 @@
+<?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.sooka.jnb.my.mapper.JnbOfficialAuthenticationMapper">
+    
+    <resultMap type="JnbOfficialAuthentication" id="JnbOfficialAuthenticationResult">
+        <result property="id"    column="id"    />
+        <result property="enterpriseName"    column="enterprise_name"    />
+        <result property="legalName"    column="legal_name"    />
+        <result property="phone"    column="phone"    />
+        <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="status"    column="status"    />
+        <result property="delFlag"    column="del_flag"    />
+    </resultMap>
+
+    <sql id="selectJnbOfficialAuthenticationVo">
+        select id, enterprise_name, legal_name, phone, create_by, create_time, update_by, update_time, status, del_flag from jnb_official_authentication
+    </sql>
+
+    <select id="selectJnbOfficialAuthenticationList" parameterType="JnbOfficialAuthentication" resultMap="JnbOfficialAuthenticationResult">
+        <include refid="selectJnbOfficialAuthenticationVo"/>
+        where del_flag = 1
+            <if test="enterpriseName != null  and enterpriseName != ''"> and enterprise_name like concat('%', #{enterpriseName}, '%')</if>
+            <if test="legalName != null  and legalName != ''"> and legal_name like concat('%', #{legalName}, '%')</if>
+            <if test="phone != null  and phone != ''"> and phone = #{phone}</if>
+            <if test="status != null  and status != ''"> and status = #{status}</if>
+        order by create_time desc
+    </select>
+    
+    <select id="selectJnbOfficialAuthenticationById" parameterType="String" resultMap="JnbOfficialAuthenticationResult">
+        SELECT
+            a.id,
+            a.enterprise_name,
+            a.phone,
+            a.legal_name,
+            a.STATUS,
+            GROUP_CONCAT( b.path ) path
+        FROM
+            jnb_official_authentication a
+            LEFT JOIN jnb_authentication_img b ON a.id = b.authentication_id
+        where a.id = #{id}
+    </select>
+        
+    <insert id="insertJnbOfficialAuthentication" parameterType="JnbOfficialAuthentication">
+        insert into jnb_official_authentication
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">id,</if>
+            <if test="enterpriseName != null">enterprise_name,</if>
+            <if test="legalName != null">legal_name,</if>
+            <if test="phone != null">phone,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="status != null">status,</if>
+            <if test="delFlag != null">del_flag,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">#{id},</if>
+            <if test="enterpriseName != null">#{enterpriseName},</if>
+            <if test="legalName != null">#{legalName},</if>
+            <if test="phone != null">#{phone},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="status != null">#{status},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+         </trim>
+    </insert>
+
+    <update id="updateJnbOfficialAuthentication" parameterType="JnbOfficialAuthentication">
+        update jnb_official_authentication
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="enterpriseName != null">enterprise_name = #{enterpriseName},</if>
+            <if test="legalName != null">legal_name = #{legalName},</if>
+            <if test="phone != null">phone = #{phone},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="status != null">status = #{status},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteJnbOfficialAuthenticationById" parameterType="String">
+        delete from jnb_official_authentication where id = #{id}
+    </delete>
+
+    <delete id="deleteJnbOfficialAuthenticationByIds" parameterType="String">
+        delete from jnb_official_authentication where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>