瀏覽代碼

fix 引入国家、货币、菜品配料、版本模块

pengzhenggao 1 月之前
父節點
當前提交
5f57df5d21
共有 24 個文件被更改,包括 1991 次插入0 次删除
  1. 71 0
      fuintBackend/fuint-application/src/main/java/com/fuint/common/service/CountryService.java
  2. 71 0
      fuintBackend/fuint-application/src/main/java/com/fuint/common/service/CurrencyService.java
  3. 71 0
      fuintBackend/fuint-application/src/main/java/com/fuint/common/service/IngredientService.java
  4. 71 0
      fuintBackend/fuint-application/src/main/java/com/fuint/common/service/VersionService.java
  5. 153 0
      fuintBackend/fuint-application/src/main/java/com/fuint/common/service/impl/CountryServiceImpl.java
  6. 155 0
      fuintBackend/fuint-application/src/main/java/com/fuint/common/service/impl/CurrencyServiceImpl.java
  7. 154 0
      fuintBackend/fuint-application/src/main/java/com/fuint/common/service/impl/IngredientServiceImpl.java
  8. 159 0
      fuintBackend/fuint-application/src/main/java/com/fuint/common/service/impl/VersionServiceImpl.java
  9. 185 0
      fuintBackend/fuint-application/src/main/java/com/fuint/module/backendApi/controller/BackendCountryController.java
  10. 187 0
      fuintBackend/fuint-application/src/main/java/com/fuint/module/backendApi/controller/BackendCurrencyController.java
  11. 187 0
      fuintBackend/fuint-application/src/main/java/com/fuint/module/backendApi/controller/BackendIngredientController.java
  12. 185 0
      fuintBackend/fuint-application/src/main/java/com/fuint/module/backendApi/controller/BackendVersionController.java
  13. 14 0
      fuintBackend/fuint-repository/src/main/java/com/fuint/repository/mapper/MtCountryMapper.java
  14. 14 0
      fuintBackend/fuint-repository/src/main/java/com/fuint/repository/mapper/MtCurrencyMapper.java
  15. 14 0
      fuintBackend/fuint-repository/src/main/java/com/fuint/repository/mapper/MtIngredientMapper.java
  16. 14 0
      fuintBackend/fuint-repository/src/main/java/com/fuint/repository/mapper/MtVersionMapper.java
  17. 80 0
      fuintBackend/fuint-repository/src/main/java/com/fuint/repository/model/MtCountry.java
  18. 52 0
      fuintBackend/fuint-repository/src/main/java/com/fuint/repository/model/MtCurrency.java
  19. 58 0
      fuintBackend/fuint-repository/src/main/java/com/fuint/repository/model/MtIngredient.java
  20. 76 0
      fuintBackend/fuint-repository/src/main/java/com/fuint/repository/model/MtVersion.java
  21. 5 0
      fuintBackend/fuint-repository/src/main/resources/mapper/MtCountryMapper.xml
  22. 5 0
      fuintBackend/fuint-repository/src/main/resources/mapper/MtCurrencyMapper.xml
  23. 5 0
      fuintBackend/fuint-repository/src/main/resources/mapper/MtIngredientMapper.xml
  24. 5 0
      fuintBackend/fuint-repository/src/main/resources/mapper/MtVersionMapper.xml

+ 71 - 0
fuintBackend/fuint-application/src/main/java/com/fuint/common/service/CountryService.java

@@ -0,0 +1,71 @@
+package com.fuint.common.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.fuint.framework.pagination.PaginationRequest;
+import com.fuint.framework.pagination.PaginationResponse;
+import com.fuint.repository.model.MtCountry;
+import com.fuint.framework.exception.BusinessCheckException;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 国家表业务接口
+ *
+ * Created by pzg
+ * CopyRight https://www.fuint.cn
+ */
+public interface CountryService extends IService<MtCountry> {
+
+    /**
+     * 分页查询列表
+     *
+     * @param paginationRequest
+     * @return
+     */
+    PaginationResponse<MtCountry> queryCountryListByPagination(PaginationRequest paginationRequest) throws BusinessCheckException;
+
+    /**
+     * 添加国家表
+     *
+     * @param  mtCountry
+     * @throws BusinessCheckException
+     * @return
+     */
+    MtCountry addCountry(MtCountry mtCountry) throws BusinessCheckException;
+
+    /**
+     * 根据ID获取国家表信息
+     *
+     * @param id ID
+     * @throws BusinessCheckException
+     * @return
+     */
+    MtCountry queryCountryById(Long id) throws BusinessCheckException;
+
+    /**
+     * 根据ID删除国家表
+     *
+     * @param id ID
+     * @param operator 操作人
+     * @throws BusinessCheckException
+     * @return
+     */
+    void deleteCountry(Long id, String operator) throws BusinessCheckException;
+
+    /**
+     * 更新国家表
+     * @param  mtCountry
+     * @throws BusinessCheckException
+     * @return
+     * */
+    MtCountry updateCountry(MtCountry mtCountry) throws BusinessCheckException;
+
+    /**
+     * 根据条件搜索国家表
+     *
+     * @param params 查询参数
+     * @throws BusinessCheckException
+     * @return
+     * */
+    List<MtCountry> queryCountryListByParams(Map<String, Object> params) throws BusinessCheckException;
+}

+ 71 - 0
fuintBackend/fuint-application/src/main/java/com/fuint/common/service/CurrencyService.java

@@ -0,0 +1,71 @@
+package com.fuint.common.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.fuint.framework.pagination.PaginationRequest;
+import com.fuint.framework.pagination.PaginationResponse;
+import com.fuint.repository.model.MtCurrency;
+import com.fuint.framework.exception.BusinessCheckException;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 货币表业务接口
+ *
+ * Created by pzg
+ * CopyRight https://www.fuint.cn
+ */
+public interface CurrencyService extends IService<MtCurrency> {
+
+    /**
+     * 分页查询列表
+     *
+     * @param paginationRequest
+     * @return
+     */
+    PaginationResponse<MtCurrency> queryCurrencyListByPagination(PaginationRequest paginationRequest) throws BusinessCheckException;
+
+    /**
+     * 添加货币表
+     *
+     * @param  mtCurrency
+     * @throws BusinessCheckException
+     * @return
+     */
+    MtCurrency addCurrency(MtCurrency mtCurrency) throws BusinessCheckException;
+
+    /**
+     * 根据ID获取货币表信息
+     *
+     * @param id ID
+     * @throws BusinessCheckException
+     * @return
+     */
+    MtCurrency queryCurrencyById(Long id) throws BusinessCheckException;
+
+    /**
+     * 根据ID删除货币表
+     *
+     * @param id ID
+     * @param operator 操作人
+     * @throws BusinessCheckException
+     * @return
+     */
+    void deleteCurrency(Long id, String operator) throws BusinessCheckException;
+
+    /**
+     * 更新货币表
+     * @param  mtCurrency
+     * @throws BusinessCheckException
+     * @return
+     * */
+    MtCurrency updateCurrency(MtCurrency mtCurrency) throws BusinessCheckException;
+
+    /**
+     * 根据条件搜索货币表
+     *
+     * @param params 查询参数
+     * @throws BusinessCheckException
+     * @return
+     * */
+    List<MtCurrency> queryCurrencyListByParams(Map<String, Object> params) throws BusinessCheckException;
+}

+ 71 - 0
fuintBackend/fuint-application/src/main/java/com/fuint/common/service/IngredientService.java

@@ -0,0 +1,71 @@
+package com.fuint.common.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.fuint.framework.pagination.PaginationRequest;
+import com.fuint.framework.pagination.PaginationResponse;
+import com.fuint.repository.model.MtIngredient;
+import com.fuint.framework.exception.BusinessCheckException;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 菜品配料表业务接口
+ *
+ * Created by pzg
+ * CopyRight https://www.fuint.cn
+ */
+public interface IngredientService extends IService<MtIngredient> {
+
+    /**
+     * 分页查询列表
+     *
+     * @param paginationRequest
+     * @return
+     */
+    PaginationResponse<MtIngredient> queryIngredientListByPagination(PaginationRequest paginationRequest) throws BusinessCheckException;
+
+    /**
+     * 添加菜品配料表
+     *
+     * @param  mtIngredient
+     * @throws BusinessCheckException
+     * @return
+     */
+    MtIngredient addIngredient(MtIngredient mtIngredient) throws BusinessCheckException;
+
+    /**
+     * 根据ID获取菜品配料表信息
+     *
+     * @param id ID
+     * @throws BusinessCheckException
+     * @return
+     */
+    MtIngredient queryIngredientById(Long id) throws BusinessCheckException;
+
+    /**
+     * 根据ID删除菜品配料表
+     *
+     * @param id ID
+     * @param operator 操作人
+     * @throws BusinessCheckException
+     * @return
+     */
+    void deleteIngredient(Long id, String operator) throws BusinessCheckException;
+
+    /**
+     * 更新菜品配料表
+     * @param  mtIngredient
+     * @throws BusinessCheckException
+     * @return
+     * */
+    MtIngredient updateIngredient(MtIngredient mtIngredient) throws BusinessCheckException;
+
+    /**
+     * 根据条件搜索菜品配料表
+     *
+     * @param params 查询参数
+     * @throws BusinessCheckException
+     * @return
+     * */
+    List<MtIngredient> queryIngredientListByParams(Map<String, Object> params) throws BusinessCheckException;
+}

+ 71 - 0
fuintBackend/fuint-application/src/main/java/com/fuint/common/service/VersionService.java

@@ -0,0 +1,71 @@
+package com.fuint.common.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.fuint.framework.pagination.PaginationRequest;
+import com.fuint.framework.pagination.PaginationResponse;
+import com.fuint.repository.model.MtVersion;
+import com.fuint.framework.exception.BusinessCheckException;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 版本控制表业务接口
+ *
+ * Created by pzg
+ * CopyRight https://www.fuint.cn
+ */
+public interface VersionService extends IService<MtVersion> {
+
+    /**
+     * 分页查询列表
+     *
+     * @param paginationRequest
+     * @return
+     */
+    PaginationResponse<MtVersion> queryVersionListByPagination(PaginationRequest paginationRequest) throws BusinessCheckException;
+
+    /**
+     * 添加版本控制表
+     *
+     * @param  mtVersion
+     * @throws BusinessCheckException
+     * @return
+     */
+    MtVersion addVersion(MtVersion mtVersion) throws BusinessCheckException;
+
+    /**
+     * 根据ID获取版本控制表信息
+     *
+     * @param id ID
+     * @throws BusinessCheckException
+     * @return
+     */
+    MtVersion queryVersionById(Long id) throws BusinessCheckException;
+
+    /**
+     * 根据ID删除版本控制表
+     *
+     * @param id ID
+     * @param operator 操作人
+     * @throws BusinessCheckException
+     * @return
+     */
+    void deleteVersion(Long id, String operator) throws BusinessCheckException;
+
+    /**
+     * 更新版本控制表
+     * @param  mtVersion
+     * @throws BusinessCheckException
+     * @return
+     * */
+    MtVersion updateVersion(MtVersion mtVersion) throws BusinessCheckException;
+
+    /**
+     * 根据条件搜索版本控制表
+     *
+     * @param params 查询参数
+     * @throws BusinessCheckException
+     * @return
+     * */
+    List<MtVersion> queryVersionListByParams(Map<String, Object> params) throws BusinessCheckException;
+}

+ 153 - 0
fuintBackend/fuint-application/src/main/java/com/fuint/common/service/impl/CountryServiceImpl.java

@@ -0,0 +1,153 @@
+package com.fuint.common.service.impl;
+
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.baomidou.mybatisplus.core.toolkit.Wrappers;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.fuint.framework.annoation.OperationServiceLog;
+import com.fuint.framework.exception.BusinessCheckException;
+import com.fuint.framework.pagination.PaginationRequest;
+import com.fuint.framework.pagination.PaginationResponse;
+import com.fuint.repository.model.MtCountry;
+import com.fuint.common.service.CountryService;
+import com.fuint.common.enums.StatusEnum;
+import com.fuint.repository.mapper.MtCountryMapper;
+import com.github.pagehelper.PageHelper;
+import lombok.AllArgsConstructor;
+import org.apache.commons.lang.StringUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import com.github.pagehelper.Page;
+import org.springframework.data.domain.PageImpl;
+import org.springframework.data.domain.PageRequest;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+import java.util.*;
+
+/**
+ * 国家表服务接口
+ *
+ * Created by pzg
+ * CopyRight https://www.fuint.cn
+ */
+@Service
+@AllArgsConstructor
+public class CountryServiceImpl extends ServiceImpl<MtCountryMapper, MtCountry> implements CountryService {
+
+    private static final Logger logger = LoggerFactory.getLogger(CountryServiceImpl.class);
+
+    private MtCountryMapper mtCountryMapper;
+
+    /**
+     * 分页查询数据列表
+     *
+     * @param paginationRequest
+     * @return
+     */
+    @Override
+    public PaginationResponse<MtCountry> queryCountryListByPagination(PaginationRequest paginationRequest) {
+        Page<MtCountry> pageHelper = PageHelper.startPage(paginationRequest.getCurrentPage(), paginationRequest.getPageSize());
+        LambdaQueryWrapper<MtCountry> lambdaQueryWrapper = Wrappers.lambdaQuery();
+        lambdaQueryWrapper.ne(MtCountry::getDeleteFlag, 0);
+
+        lambdaQueryWrapper.orderByAsc(MtCountry::getId);
+        List<MtCountry> dataList = mtCountryMapper.selectList(lambdaQueryWrapper);
+
+        PageRequest pageRequest = PageRequest.of(paginationRequest.getCurrentPage(), paginationRequest.getPageSize());
+        PageImpl pageImpl = new PageImpl(dataList, pageRequest, pageHelper.getTotal());
+        PaginationResponse<MtCountry> paginationResponse = new PaginationResponse(pageImpl, MtCountry.class);
+        paginationResponse.setTotalPages(pageHelper.getPages());
+        paginationResponse.setTotalElements(pageHelper.getTotal());
+        paginationResponse.setContent(dataList);
+
+        return paginationResponse;
+    }
+
+    /**
+     * 添加国家表
+     *
+     * @param mtCountry 国家表信息
+     * @return
+     */
+    @Override
+    @OperationServiceLog(description = "新增国家表")
+    public MtCountry addCountry(MtCountry mtCountry) throws BusinessCheckException {
+        mtCountry.setUpdateTime(new Date());
+        mtCountry.setCreateTime(new Date());
+        Integer id = mtCountryMapper.insert(mtCountry);
+        if (id > 0) {
+            return mtCountry;
+        } else {
+            throw new BusinessCheckException("新增国家表数据失败");
+        }
+    }
+
+    /**
+     * 根据ID获国家表取息
+     *
+     * @param id 国家表ID
+     * @return
+     */
+    @Override
+    public MtCountry queryCountryById(Long id) {
+        return mtCountryMapper.selectById(id);
+    }
+
+    /**
+     * 根据ID删除国家表
+     *
+     * @param id 国家表ID
+     * @param operator 操作人
+     * @return
+     */
+    @Override
+    @Transactional(rollbackFor = Exception.class)
+    @OperationServiceLog(description = "删除国家表")
+    public void deleteCountry(Long id, String operator) {
+        MtCountry mtCountry = queryCountryById(id);
+        if (null == mtCountry) {
+            return;
+        }
+        mtCountry.setUpdateTime(new Date());
+        mtCountryMapper.updateById(mtCountry);
+    }
+
+    /**
+     * 修改国家表数据
+     *
+     * @param mtCountry
+     * @throws BusinessCheckException
+     * @return
+     */
+    @Override
+    @Transactional(rollbackFor = Exception.class)
+    @OperationServiceLog(description = "更新国家表")
+    public MtCountry updateCountry(MtCountry mtCountry) throws BusinessCheckException {
+        mtCountry = queryCountryById(mtCountry.getId());
+        if (mtCountry == null) {
+            throw new BusinessCheckException("该国家表状态异常");
+        }
+        mtCountry.setUpdateTime(new Date());
+        mtCountryMapper.updateById(mtCountry);
+        return mtCountry;
+    }
+
+   /**
+    * 根据条件搜索国家表
+    *
+    * @param  params 查询参数
+    * @throws BusinessCheckException
+    * @return
+    * */
+    @Override
+    public List<MtCountry> queryCountryListByParams(Map<String, Object> params) {
+        String status =  params.get("status") == null ? StatusEnum.ENABLED.getKey(): params.get("status").toString();
+        String storeId =  params.get("storeId") == null ? "" : params.get("storeId").toString();
+        String merchantId =  params.get("merchantId") == null ? "" : params.get("merchantId").toString();
+
+        LambdaQueryWrapper<MtCountry> lambdaQueryWrapper = Wrappers.lambdaQuery();
+
+        lambdaQueryWrapper.orderByAsc(MtCountry::getId);
+        List<MtCountry> dataList = mtCountryMapper.selectList(lambdaQueryWrapper);
+        return dataList;
+    }
+}

+ 155 - 0
fuintBackend/fuint-application/src/main/java/com/fuint/common/service/impl/CurrencyServiceImpl.java

@@ -0,0 +1,155 @@
+package com.fuint.common.service.impl;
+
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.baomidou.mybatisplus.core.toolkit.Wrappers;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.fuint.framework.annoation.OperationServiceLog;
+import com.fuint.framework.exception.BusinessCheckException;
+import com.fuint.framework.pagination.PaginationRequest;
+import com.fuint.framework.pagination.PaginationResponse;
+import com.fuint.repository.model.MtCurrency;
+import com.fuint.common.service.CurrencyService;
+import com.fuint.common.enums.StatusEnum;
+import com.fuint.repository.mapper.MtCurrencyMapper;
+import com.github.pagehelper.PageHelper;
+import lombok.AllArgsConstructor;
+import org.apache.commons.lang.StringUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import com.github.pagehelper.Page;
+import org.springframework.data.domain.PageImpl;
+import org.springframework.data.domain.PageRequest;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+import java.util.*;
+
+/**
+ * 货币表服务接口
+ *
+ * Created by pzg
+ * CopyRight https://www.fuint.cn
+ */
+@Service
+@AllArgsConstructor
+public class CurrencyServiceImpl extends ServiceImpl<MtCurrencyMapper, MtCurrency> implements CurrencyService {
+
+    private static final Logger logger = LoggerFactory.getLogger(CurrencyServiceImpl.class);
+
+    private MtCurrencyMapper mtCurrencyMapper;
+
+    /**
+     * 分页查询数据列表
+     *
+     * @param paginationRequest
+     * @return
+     */
+    @Override
+    public PaginationResponse<MtCurrency> queryCurrencyListByPagination(PaginationRequest paginationRequest) {
+        Page<MtCurrency> pageHelper = PageHelper.startPage(paginationRequest.getCurrentPage(), paginationRequest.getPageSize());
+        LambdaQueryWrapper<MtCurrency> lambdaQueryWrapper = Wrappers.lambdaQuery();
+
+        lambdaQueryWrapper.orderByAsc(MtCurrency::getId);
+        List<MtCurrency> dataList = mtCurrencyMapper.selectList(lambdaQueryWrapper);
+
+        PageRequest pageRequest = PageRequest.of(paginationRequest.getCurrentPage(), paginationRequest.getPageSize());
+        PageImpl pageImpl = new PageImpl(dataList, pageRequest, pageHelper.getTotal());
+        PaginationResponse<MtCurrency> paginationResponse = new PaginationResponse(pageImpl, MtCurrency.class);
+        paginationResponse.setTotalPages(pageHelper.getPages());
+        paginationResponse.setTotalElements(pageHelper.getTotal());
+        paginationResponse.setContent(dataList);
+
+        return paginationResponse;
+    }
+
+    /**
+     * 添加货币表
+     *
+     * @param mtCurrency 货币表信息
+     * @return
+     */
+    @Override
+    @OperationServiceLog(description = "新增货币表")
+    public MtCurrency addCurrency(MtCurrency mtCurrency) throws BusinessCheckException {
+
+        mtCurrency.setUpdateTime(new Date());
+        mtCurrency.setCreateTime(new Date());
+        Integer id = mtCurrencyMapper.insert(mtCurrency);
+        if (id > 0) {
+            return mtCurrency;
+        } else {
+            throw new BusinessCheckException("新增货币表数据失败");
+        }
+    }
+
+    /**
+     * 根据ID获货币表取息
+     *
+     * @param id 货币表ID
+     * @return
+     */
+    @Override
+    public MtCurrency queryCurrencyById(Long id) {
+        return mtCurrencyMapper.selectById(id);
+    }
+
+    /**
+     * 根据ID删除货币表
+     *
+     * @param id 货币表ID
+     * @param operator 操作人
+     * @return
+     */
+    @Override
+    @Transactional(rollbackFor = Exception.class)
+    @OperationServiceLog(description = "删除货币表")
+    public void deleteCurrency(Long id, String operator) {
+        MtCurrency mtCurrency = queryCurrencyById(id);
+        if (null == mtCurrency) {
+            return;
+        }
+
+        mtCurrency.setUpdateTime(new Date());
+        mtCurrencyMapper.updateById(mtCurrency);
+    }
+
+    /**
+     * 修改货币表数据
+     *
+     * @param mtCurrency
+     * @throws BusinessCheckException
+     * @return
+     */
+    @Override
+    @Transactional(rollbackFor = Exception.class)
+    @OperationServiceLog(description = "更新货币表")
+    public MtCurrency updateCurrency(MtCurrency mtCurrency) throws BusinessCheckException {
+        mtCurrency = queryCurrencyById(mtCurrency.getId());
+        if (mtCurrency == null) {
+            throw new BusinessCheckException("该货币表状态异常");
+        }
+        mtCurrency.setUpdateTime(new Date());
+        mtCurrencyMapper.updateById(mtCurrency);
+        return mtCurrency;
+    }
+
+   /**
+    * 根据条件搜索货币表
+    *
+    * @param  params 查询参数
+    * @throws BusinessCheckException
+    * @return
+    * */
+    @Override
+    public List<MtCurrency> queryCurrencyListByParams(Map<String, Object> params) {
+        String status =  params.get("status") == null ? StatusEnum.ENABLED.getKey(): params.get("status").toString();
+        String storeId =  params.get("storeId") == null ? "" : params.get("storeId").toString();
+        String merchantId =  params.get("merchantId") == null ? "" : params.get("merchantId").toString();
+
+        LambdaQueryWrapper<MtCurrency> lambdaQueryWrapper = Wrappers.lambdaQuery();
+
+
+        lambdaQueryWrapper.orderByAsc(MtCurrency::getId);
+        List<MtCurrency> dataList = mtCurrencyMapper.selectList(lambdaQueryWrapper);
+        return dataList;
+    }
+}

+ 154 - 0
fuintBackend/fuint-application/src/main/java/com/fuint/common/service/impl/IngredientServiceImpl.java

@@ -0,0 +1,154 @@
+package com.fuint.common.service.impl;
+
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.baomidou.mybatisplus.core.toolkit.Wrappers;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.fuint.framework.annoation.OperationServiceLog;
+import com.fuint.framework.exception.BusinessCheckException;
+import com.fuint.framework.pagination.PaginationRequest;
+import com.fuint.framework.pagination.PaginationResponse;
+import com.fuint.repository.model.MtIngredient;
+import com.fuint.common.service.IngredientService;
+import com.fuint.common.enums.StatusEnum;
+import com.fuint.repository.mapper.MtIngredientMapper;
+import com.github.pagehelper.PageHelper;
+import lombok.AllArgsConstructor;
+import org.apache.commons.lang.StringUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import com.github.pagehelper.Page;
+import org.springframework.data.domain.PageImpl;
+import org.springframework.data.domain.PageRequest;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+import java.util.*;
+
+/**
+ * 菜品配料表服务接口
+ *
+ * Created by pzg
+ * CopyRight https://www.fuint.cn
+ */
+@Service
+@AllArgsConstructor
+public class IngredientServiceImpl extends ServiceImpl<MtIngredientMapper, MtIngredient> implements IngredientService {
+
+    private static final Logger logger = LoggerFactory.getLogger(IngredientServiceImpl.class);
+
+    private MtIngredientMapper mtIngredientMapper;
+
+    /**
+     * 分页查询数据列表
+     *
+     * @param paginationRequest
+     * @return
+     */
+    @Override
+    public PaginationResponse<MtIngredient> queryIngredientListByPagination(PaginationRequest paginationRequest) {
+        Page<MtIngredient> pageHelper = PageHelper.startPage(paginationRequest.getCurrentPage(), paginationRequest.getPageSize());
+        LambdaQueryWrapper<MtIngredient> lambdaQueryWrapper = Wrappers.lambdaQuery();
+
+        lambdaQueryWrapper.orderByAsc(MtIngredient::getId);
+        List<MtIngredient> dataList = mtIngredientMapper.selectList(lambdaQueryWrapper);
+
+        PageRequest pageRequest = PageRequest.of(paginationRequest.getCurrentPage(), paginationRequest.getPageSize());
+        PageImpl pageImpl = new PageImpl(dataList, pageRequest, pageHelper.getTotal());
+        PaginationResponse<MtIngredient> paginationResponse = new PaginationResponse(pageImpl, MtIngredient.class);
+        paginationResponse.setTotalPages(pageHelper.getPages());
+        paginationResponse.setTotalElements(pageHelper.getTotal());
+        paginationResponse.setContent(dataList);
+
+        return paginationResponse;
+    }
+
+    /**
+     * 添加菜品配料表
+     *
+     * @param mtIngredient 菜品配料表信息
+     * @return
+     */
+    @Override
+    @OperationServiceLog(description = "新增菜品配料表")
+    public MtIngredient addIngredient(MtIngredient mtIngredient) throws BusinessCheckException {
+
+        mtIngredient.setUpdateTime(new Date());
+        mtIngredient.setCreateTime(new Date());
+        Integer id = mtIngredientMapper.insert(mtIngredient);
+        if (id > 0) {
+            return mtIngredient;
+        } else {
+            throw new BusinessCheckException("新增菜品配料表数据失败");
+        }
+    }
+
+    /**
+     * 根据ID获菜品配料表取息
+     *
+     * @param id 菜品配料表ID
+     * @return
+     */
+    @Override
+    public MtIngredient queryIngredientById(Long id) {
+        return mtIngredientMapper.selectById(id);
+    }
+
+    /**
+     * 根据ID删除菜品配料表
+     *
+     * @param id 菜品配料表ID
+     * @param operator 操作人
+     * @return
+     */
+    @Override
+    @Transactional(rollbackFor = Exception.class)
+    @OperationServiceLog(description = "删除菜品配料表")
+    public void deleteIngredient(Long id, String operator) {
+        MtIngredient mtIngredient = queryIngredientById(id);
+        if (null == mtIngredient) {
+            return;
+        }
+
+        mtIngredient.setUpdateTime(new Date());
+        mtIngredientMapper.updateById(mtIngredient);
+    }
+
+    /**
+     * 修改菜品配料表数据
+     *
+     * @param mtIngredient
+     * @throws BusinessCheckException
+     * @return
+     */
+    @Override
+    @Transactional(rollbackFor = Exception.class)
+    @OperationServiceLog(description = "更新菜品配料表")
+    public MtIngredient updateIngredient(MtIngredient mtIngredient) throws BusinessCheckException {
+        mtIngredient = queryIngredientById(mtIngredient.getId());
+        if (mtIngredient == null) {
+            throw new BusinessCheckException("该菜品配料表状态异常");
+        }
+        mtIngredient.setUpdateTime(new Date());
+        mtIngredientMapper.updateById(mtIngredient);
+        return mtIngredient;
+    }
+
+   /**
+    * 根据条件搜索菜品配料表
+    *
+    * @param  params 查询参数
+    * @throws BusinessCheckException
+    * @return
+    * */
+    @Override
+    public List<MtIngredient> queryIngredientListByParams(Map<String, Object> params) {
+        String status =  params.get("status") == null ? StatusEnum.ENABLED.getKey(): params.get("status").toString();
+        String storeId =  params.get("storeId") == null ? "" : params.get("storeId").toString();
+        String merchantId =  params.get("merchantId") == null ? "" : params.get("merchantId").toString();
+
+        LambdaQueryWrapper<MtIngredient> lambdaQueryWrapper = Wrappers.lambdaQuery();
+
+        lambdaQueryWrapper.orderByAsc(MtIngredient::getId);
+        List<MtIngredient> dataList = mtIngredientMapper.selectList(lambdaQueryWrapper);
+        return dataList;
+    }
+}

+ 159 - 0
fuintBackend/fuint-application/src/main/java/com/fuint/common/service/impl/VersionServiceImpl.java

@@ -0,0 +1,159 @@
+package com.fuint.common.service.impl;
+
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.baomidou.mybatisplus.core.toolkit.Wrappers;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.fuint.framework.annoation.OperationServiceLog;
+import com.fuint.framework.exception.BusinessCheckException;
+import com.fuint.framework.pagination.PaginationRequest;
+import com.fuint.framework.pagination.PaginationResponse;
+import com.fuint.repository.model.MtVersion;
+import com.fuint.common.service.VersionService;
+import com.fuint.common.enums.StatusEnum;
+import com.fuint.repository.mapper.MtVersionMapper;
+import com.github.pagehelper.PageHelper;
+import lombok.AllArgsConstructor;
+import org.apache.commons.lang.StringUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import com.github.pagehelper.Page;
+import org.springframework.data.domain.PageImpl;
+import org.springframework.data.domain.PageRequest;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+import java.util.*;
+
+/**
+ * 版本控制表服务接口
+ *
+ * Created by pzg
+ * CopyRight https://www.fuint.cn
+ */
+@Service
+@AllArgsConstructor
+public class VersionServiceImpl extends ServiceImpl<MtVersionMapper, MtVersion> implements VersionService {
+
+    private static final Logger logger = LoggerFactory.getLogger(VersionServiceImpl.class);
+
+    private MtVersionMapper mtVersionMapper;
+
+    /**
+     * 分页查询数据列表
+     *
+     * @param paginationRequest
+     * @return
+     */
+    @Override
+    public PaginationResponse<MtVersion> queryVersionListByPagination(PaginationRequest paginationRequest) {
+        Page<MtVersion> pageHelper = PageHelper.startPage(paginationRequest.getCurrentPage(), paginationRequest.getPageSize());
+        LambdaQueryWrapper<MtVersion> lambdaQueryWrapper = Wrappers.lambdaQuery();
+        lambdaQueryWrapper.ne(MtVersion::getStatus, StatusEnum.DISABLE.getKey());
+
+        lambdaQueryWrapper.orderByAsc(MtVersion::getId);
+        List<MtVersion> dataList = mtVersionMapper.selectList(lambdaQueryWrapper);
+
+        PageRequest pageRequest = PageRequest.of(paginationRequest.getCurrentPage(), paginationRequest.getPageSize());
+        PageImpl pageImpl = new PageImpl(dataList, pageRequest, pageHelper.getTotal());
+        PaginationResponse<MtVersion> paginationResponse = new PaginationResponse(pageImpl, MtVersion.class);
+        paginationResponse.setTotalPages(pageHelper.getPages());
+        paginationResponse.setTotalElements(pageHelper.getTotal());
+        paginationResponse.setContent(dataList);
+
+        return paginationResponse;
+    }
+
+    /**
+     * 添加版本控制表
+     *
+     * @param mtVersion 版本控制表信息
+     * @return
+     */
+    @Override
+    @OperationServiceLog(description = "新增版本控制表")
+    public MtVersion addVersion(MtVersion mtVersion) throws BusinessCheckException {
+
+        mtVersion.setUpdateTime(new Date());
+        mtVersion.setCreateTime(new Date());
+        Integer id = mtVersionMapper.insert(mtVersion);
+        if (id > 0) {
+            return mtVersion;
+        } else {
+            throw new BusinessCheckException("新增版本控制表数据失败");
+        }
+    }
+
+    /**
+     * 根据ID获版本控制表取息
+     *
+     * @param id 版本控制表ID
+     * @return
+     */
+    @Override
+    public MtVersion queryVersionById(Long id) {
+        return mtVersionMapper.selectById(id);
+    }
+
+    /**
+     * 根据ID删除版本控制表
+     *
+     * @param id 版本控制表ID
+     * @param operator 操作人
+     * @return
+     */
+    @Override
+    @Transactional(rollbackFor = Exception.class)
+    @OperationServiceLog(description = "删除版本控制表")
+    public void deleteVersion(Long id, String operator) {
+        MtVersion mtVersion = queryVersionById(id);
+        if (null == mtVersion) {
+            return;
+        }
+
+        mtVersion.setUpdateTime(new Date());
+        mtVersionMapper.updateById(mtVersion);
+    }
+
+    /**
+     * 修改版本控制表数据
+     *
+     * @param mtVersion
+     * @throws BusinessCheckException
+     * @return
+     */
+    @Override
+    @Transactional(rollbackFor = Exception.class)
+    @OperationServiceLog(description = "更新版本控制表")
+    public MtVersion updateVersion(MtVersion mtVersion) throws BusinessCheckException {
+        mtVersion = queryVersionById(mtVersion.getId());
+        if (mtVersion == null) {
+            throw new BusinessCheckException("该版本控制表状态异常");
+        }
+        mtVersion.setUpdateTime(new Date());
+        mtVersionMapper.updateById(mtVersion);
+        return mtVersion;
+    }
+
+   /**
+    * 根据条件搜索版本控制表
+    *
+    * @param  params 查询参数
+    * @throws BusinessCheckException
+    * @return
+    * */
+    @Override
+    public List<MtVersion> queryVersionListByParams(Map<String, Object> params) {
+        String status =  params.get("status") == null ? StatusEnum.ENABLED.getKey(): params.get("status").toString();
+        String storeId =  params.get("storeId") == null ? "" : params.get("storeId").toString();
+        String merchantId =  params.get("merchantId") == null ? "" : params.get("merchantId").toString();
+
+        LambdaQueryWrapper<MtVersion> lambdaQueryWrapper = Wrappers.lambdaQuery();
+        if (StringUtils.isNotBlank(status)) {
+            lambdaQueryWrapper.eq(MtVersion::getStatus, status);
+        }
+
+
+        lambdaQueryWrapper.orderByAsc(MtVersion::getId);
+        List<MtVersion> dataList = mtVersionMapper.selectList(lambdaQueryWrapper);
+        return dataList;
+    }
+}

+ 185 - 0
fuintBackend/fuint-application/src/main/java/com/fuint/module/backendApi/controller/BackendCountryController.java

@@ -0,0 +1,185 @@
+package com.fuint.module.backendApi.controller;
+
+import com.fuint.common.dto.AccountInfo;
+import com.fuint.common.util.TokenUtil;
+import com.fuint.framework.web.BaseController;
+import com.fuint.framework.web.ResponseObject;
+import com.fuint.common.Constants;
+import com.fuint.common.enums.StatusEnum;
+import com.fuint.common.service.CountryService;
+import com.fuint.framework.pagination.PaginationRequest;
+import com.fuint.framework.pagination.PaginationResponse;
+import com.fuint.framework.exception.BusinessCheckException;
+import com.fuint.repository.model.MtCountry;
+import com.fuint.utils.StringUtil;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.AllArgsConstructor;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.*;
+import javax.servlet.http.HttpServletRequest;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * 国家表管理类controller
+ *
+ * Created by pzg
+ * CopyRight https://www.fuint.cn
+ */
+@Api(tags="管理端-国家表相关接口")
+@RestController
+@AllArgsConstructor
+@RequestMapping(value = "/backendApi/country")
+public class BackendCountryController extends BaseController {
+
+    /**
+     * 国家表服务接口
+     */
+    private CountryService countryService;
+
+    /**
+     * 国家表列表查询
+     *
+     * @param  request HttpServletRequest对象
+     * @return 国家表列表
+     */
+    @ApiOperation(value = "国家表列表查询")
+    @RequestMapping(value = "/list", method = RequestMethod.GET)
+    @CrossOrigin
+    @PreAuthorize("@pms.hasPermission('country:list')")
+    public ResponseObject list(HttpServletRequest request) throws BusinessCheckException {
+        String token = request.getHeader("Access-Token");
+        Integer page = request.getParameter("page") == null ? Constants.PAGE_NUMBER : Integer.parseInt(request.getParameter("page"));
+        Integer pageSize = request.getParameter("pageSize") == null ? Constants.PAGE_SIZE : Integer.parseInt(request.getParameter("pageSize"));
+        String title = request.getParameter("title");
+        String status = request.getParameter("status");
+        String searchStoreId = request.getParameter("storeId");
+
+        AccountInfo accountInfo = TokenUtil.getAccountInfoByToken(token);
+        Long storeId;
+        if (accountInfo == null) {
+            return getFailureResult(1001, "请先登录");
+        } else {
+            storeId = accountInfo.getStoreId();
+        }
+
+        PaginationRequest paginationRequest = new PaginationRequest();
+        paginationRequest.setCurrentPage(page);
+        paginationRequest.setPageSize(pageSize);
+
+        Map<String, Object> params = new HashMap<>();
+        if (accountInfo.getMerchantId() != null && accountInfo.getMerchantId() > 0) {
+            params.put("merchantId", accountInfo.getMerchantId());
+        }
+        if (StringUtil.isNotEmpty(title)) {
+            params.put("title", title);
+        }
+        if (StringUtil.isNotEmpty(status)) {
+            params.put("status", status);
+        }
+        if (StringUtil.isNotEmpty(searchStoreId)) {
+            params.put("storeId", searchStoreId);
+        }
+        if (storeId != null && storeId > 0) {
+            params.put("storeId", storeId);
+        }
+        paginationRequest.setSearchParams(params);
+        PaginationResponse<MtCountry> paginationResponse = countryService.queryCountryListByPagination(paginationRequest);
+
+        Map<String, Object> paramsStore = new HashMap<>();
+        paramsStore.put("status", StatusEnum.ENABLED.getKey());
+        if (accountInfo.getStoreId() != null && accountInfo.getStoreId() > 0) {
+            paramsStore.put("storeId", accountInfo.getStoreId().toString());
+        }
+        if (accountInfo.getMerchantId() != null && accountInfo.getMerchantId() > 0) {
+            paramsStore.put("merchantId", accountInfo.getMerchantId());
+        }
+
+        Map<String, Object> result = new HashMap<>();
+        result.put("paginationResponse", paginationResponse);
+
+        return getSuccessResult(result);
+    }
+
+    /**
+     * 更新国家表状态
+     *
+     * @return
+     */
+    @ApiOperation(value = "更新国家表状态")
+    @RequestMapping(value = "/updateStatus", method = RequestMethod.POST)
+    @CrossOrigin
+    @PreAuthorize("@pms.hasPermission('country:edit')")
+    public ResponseObject updateStatus(HttpServletRequest request, @RequestBody Map<String, Object> params) throws BusinessCheckException {
+        String token = request.getHeader("Access-Token");
+        String status = params.get("status") != null ? params.get("status").toString() : StatusEnum.ENABLED.getKey();
+        Long id = params.get("id") == null ? 0 : Long.parseLong(params.get("id").toString());
+
+        AccountInfo accountInfo = TokenUtil.getAccountInfoByToken(token);
+        if (accountInfo == null) {
+            return getFailureResult(1001, "请先登录");
+        }
+
+        MtCountry mtCountry = countryService.queryCountryById(id);
+        if (mtCountry == null) {
+            return getFailureResult(201);
+        }
+
+        String operator = accountInfo.getAccountName();
+        countryService.updateCountry(mtCountry);
+
+        return getSuccessResult(true);
+    }
+
+    /**
+     * 保存国家表
+     *
+     * @param request HttpServletRequest对象
+     * @return
+     */
+    @ApiOperation(value = "保存国家表")
+    @RequestMapping(value = "/save", method = RequestMethod.POST)
+    @CrossOrigin
+    @PreAuthorize("@pms.hasPermission('country:add')")
+    public ResponseObject saveHandler(HttpServletRequest request, @RequestBody Map<String, Object> params) throws BusinessCheckException {
+        String token = request.getHeader("Access-Token");
+        String id = params.get("id") == null ? "" : params.get("id").toString();
+        String status = params.get("status") == null ? "" : params.get("status").toString();
+        String storeId = params.get("storeId") == null ? "0" : params.get("storeId").toString();
+
+        AccountInfo accountInfo = TokenUtil.getAccountInfoByToken(token);
+        if (accountInfo == null) {
+            return getFailureResult(1001, "请先登录");
+        }
+
+        MtCountry info = new MtCountry();
+
+        return getSuccessResult(true);
+    }
+
+    /**
+     * 获取国家表详情
+     *
+     * @param id
+     * @return
+     */
+    @ApiOperation(value = "获取国家表详情")
+    @RequestMapping(value = "/info/{id}", method = RequestMethod.GET)
+    @CrossOrigin
+    @PreAuthorize("@pms.hasPermission('country:list')")
+    public ResponseObject info(HttpServletRequest request, @PathVariable("id") Integer id) throws BusinessCheckException {
+        String token = request.getHeader("Access-Token");
+        AccountInfo accountInfo = TokenUtil.getAccountInfoByToken(token);
+        if (accountInfo == null) {
+            return getFailureResult(1001, "请先登录");
+        }
+
+        MtCountry countryInfo = countryService.queryCountryById(Long.valueOf(id));
+
+        Map<String, Object> result = new HashMap<>();
+        result.put("countryInfo", countryInfo);
+
+        return getSuccessResult(result);
+    }
+}

+ 187 - 0
fuintBackend/fuint-application/src/main/java/com/fuint/module/backendApi/controller/BackendCurrencyController.java

@@ -0,0 +1,187 @@
+package com.fuint.module.backendApi.controller;
+
+import com.fuint.common.dto.AccountInfo;
+import com.fuint.common.util.TokenUtil;
+import com.fuint.framework.web.BaseController;
+import com.fuint.framework.web.ResponseObject;
+import com.fuint.common.Constants;
+import com.fuint.common.enums.StatusEnum;
+import com.fuint.common.service.CurrencyService;
+import com.fuint.framework.pagination.PaginationRequest;
+import com.fuint.framework.pagination.PaginationResponse;
+import com.fuint.framework.exception.BusinessCheckException;
+import com.fuint.repository.model.MtCurrency;
+import com.fuint.utils.StringUtil;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.AllArgsConstructor;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.*;
+import javax.servlet.http.HttpServletRequest;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * 货币表管理类controller
+ *
+ * Created by pzg
+ * CopyRight https://www.fuint.cn
+ */
+@Api(tags="管理端-货币表相关接口")
+@RestController
+@AllArgsConstructor
+@RequestMapping(value = "/backendApi/currency")
+public class BackendCurrencyController extends BaseController {
+
+    /**
+     * 货币表服务接口
+     */
+    private CurrencyService currencyService;
+
+    /**
+     * 货币表列表查询
+     *
+     * @param  request HttpServletRequest对象
+     * @return 货币表列表
+     */
+    @ApiOperation(value = "货币表列表查询")
+    @RequestMapping(value = "/list", method = RequestMethod.GET)
+    @CrossOrigin
+    @PreAuthorize("@pms.hasPermission('currency:list')")
+    public ResponseObject list(HttpServletRequest request) throws BusinessCheckException {
+        String token = request.getHeader("Access-Token");
+        Integer page = request.getParameter("page") == null ? Constants.PAGE_NUMBER : Integer.parseInt(request.getParameter("page"));
+        Integer pageSize = request.getParameter("pageSize") == null ? Constants.PAGE_SIZE : Integer.parseInt(request.getParameter("pageSize"));
+        String title = request.getParameter("title");
+        String status = request.getParameter("status");
+        String searchStoreId = request.getParameter("storeId");
+
+        AccountInfo accountInfo = TokenUtil.getAccountInfoByToken(token);
+        Long storeId;
+        if (accountInfo == null) {
+            return getFailureResult(1001, "请先登录");
+        } else {
+            storeId = accountInfo.getStoreId();
+        }
+
+        PaginationRequest paginationRequest = new PaginationRequest();
+        paginationRequest.setCurrentPage(page);
+        paginationRequest.setPageSize(pageSize);
+
+        Map<String, Object> params = new HashMap<>();
+        if (accountInfo.getMerchantId() != null && accountInfo.getMerchantId() > 0) {
+            params.put("merchantId", accountInfo.getMerchantId());
+        }
+        if (StringUtil.isNotEmpty(title)) {
+            params.put("title", title);
+        }
+        if (StringUtil.isNotEmpty(status)) {
+            params.put("status", status);
+        }
+        if (StringUtil.isNotEmpty(searchStoreId)) {
+            params.put("storeId", searchStoreId);
+        }
+        if (storeId != null && storeId > 0) {
+            params.put("storeId", storeId);
+        }
+        paginationRequest.setSearchParams(params);
+        PaginationResponse<MtCurrency> paginationResponse = currencyService.queryCurrencyListByPagination(paginationRequest);
+
+        Map<String, Object> paramsStore = new HashMap<>();
+        paramsStore.put("status", StatusEnum.ENABLED.getKey());
+        if (accountInfo.getStoreId() != null && accountInfo.getStoreId() > 0) {
+            paramsStore.put("storeId", accountInfo.getStoreId().toString());
+        }
+        if (accountInfo.getMerchantId() != null && accountInfo.getMerchantId() > 0) {
+            paramsStore.put("merchantId", accountInfo.getMerchantId());
+        }
+
+        Map<String, Object> result = new HashMap<>();
+        result.put("paginationResponse", paginationResponse);
+
+        return getSuccessResult(result);
+    }
+
+    /**
+     * 更新货币表状态
+     *
+     * @return
+     */
+    @ApiOperation(value = "更新货币表状态")
+    @RequestMapping(value = "/updateStatus", method = RequestMethod.POST)
+    @CrossOrigin
+    @PreAuthorize("@pms.hasPermission('currency:edit')")
+    public ResponseObject updateStatus(HttpServletRequest request, @RequestBody Map<String, Object> params) throws BusinessCheckException {
+        String token = request.getHeader("Access-Token");
+        String status = params.get("status") != null ? params.get("status").toString() : StatusEnum.ENABLED.getKey();
+        Long id = params.get("id") == null ? 0 : Long.parseLong(params.get("id").toString());
+
+        AccountInfo accountInfo = TokenUtil.getAccountInfoByToken(token);
+        if (accountInfo == null) {
+            return getFailureResult(1001, "请先登录");
+        }
+
+        MtCurrency mtCurrency = currencyService.queryCurrencyById(id);
+        if (mtCurrency == null) {
+            return getFailureResult(201);
+        }
+
+        String operator = accountInfo.getAccountName();
+
+        currencyService.updateCurrency(mtCurrency);
+
+        return getSuccessResult(true);
+    }
+
+    /**
+     * 保存货币表
+     *
+     * @param request HttpServletRequest对象
+     * @return
+     */
+    @ApiOperation(value = "保存货币表")
+    @RequestMapping(value = "/save", method = RequestMethod.POST)
+    @CrossOrigin
+    @PreAuthorize("@pms.hasPermission('currency:add')")
+    public ResponseObject saveHandler(HttpServletRequest request, @RequestBody Map<String, Object> params) throws BusinessCheckException {
+        String token = request.getHeader("Access-Token");
+        String id = params.get("id") == null ? "" : params.get("id").toString();
+        String status = params.get("status") == null ? "" : params.get("status").toString();
+        String storeId = params.get("storeId") == null ? "0" : params.get("storeId").toString();
+
+        AccountInfo accountInfo = TokenUtil.getAccountInfoByToken(token);
+        if (accountInfo == null) {
+            return getFailureResult(1001, "请先登录");
+        }
+
+        MtCurrency info = new MtCurrency();
+
+
+        return getSuccessResult(true);
+    }
+
+    /**
+     * 获取货币表详情
+     *
+     * @param id
+     * @return
+     */
+    @ApiOperation(value = "获取货币表详情")
+    @RequestMapping(value = "/info/{id}", method = RequestMethod.GET)
+    @CrossOrigin
+    @PreAuthorize("@pms.hasPermission('currency:list')")
+    public ResponseObject info(HttpServletRequest request, @PathVariable("id") Integer id) throws BusinessCheckException {
+        String token = request.getHeader("Access-Token");
+        AccountInfo accountInfo = TokenUtil.getAccountInfoByToken(token);
+        if (accountInfo == null) {
+            return getFailureResult(1001, "请先登录");
+        }
+
+        MtCurrency currencyInfo = currencyService.queryCurrencyById(Long.valueOf(id));
+
+        Map<String, Object> result = new HashMap<>();
+        result.put("currencyInfo", currencyInfo);
+
+        return getSuccessResult(result);
+    }
+}

+ 187 - 0
fuintBackend/fuint-application/src/main/java/com/fuint/module/backendApi/controller/BackendIngredientController.java

@@ -0,0 +1,187 @@
+package com.fuint.module.backendApi.controller;
+
+import com.fuint.common.dto.AccountInfo;
+import com.fuint.common.util.TokenUtil;
+import com.fuint.framework.web.BaseController;
+import com.fuint.framework.web.ResponseObject;
+import com.fuint.common.Constants;
+import com.fuint.common.enums.StatusEnum;
+import com.fuint.common.service.IngredientService;
+import com.fuint.framework.pagination.PaginationRequest;
+import com.fuint.framework.pagination.PaginationResponse;
+import com.fuint.framework.exception.BusinessCheckException;
+import com.fuint.repository.model.MtIngredient;
+import com.fuint.utils.StringUtil;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.AllArgsConstructor;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.*;
+import javax.servlet.http.HttpServletRequest;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * 菜品配料表管理类controller
+ *
+ * Created by pzg
+ * CopyRight https://www.fuint.cn
+ */
+@Api(tags="管理端-菜品配料表相关接口")
+@RestController
+@AllArgsConstructor
+@RequestMapping(value = "/backendApi/ingredient")
+public class BackendIngredientController extends BaseController {
+
+    /**
+     * 菜品配料表服务接口
+     */
+    private IngredientService ingredientService;
+
+    /**
+     * 菜品配料表列表查询
+     *
+     * @param  request HttpServletRequest对象
+     * @return 菜品配料表列表
+     */
+    @ApiOperation(value = "菜品配料表列表查询")
+    @RequestMapping(value = "/list", method = RequestMethod.GET)
+    @CrossOrigin
+    @PreAuthorize("@pms.hasPermission('ingredient:list')")
+    public ResponseObject list(HttpServletRequest request) throws BusinessCheckException {
+        String token = request.getHeader("Access-Token");
+        Integer page = request.getParameter("page") == null ? Constants.PAGE_NUMBER : Integer.parseInt(request.getParameter("page"));
+        Integer pageSize = request.getParameter("pageSize") == null ? Constants.PAGE_SIZE : Integer.parseInt(request.getParameter("pageSize"));
+        String title = request.getParameter("title");
+        String status = request.getParameter("status");
+        String searchStoreId = request.getParameter("storeId");
+
+        AccountInfo accountInfo = TokenUtil.getAccountInfoByToken(token);
+        Long storeId;
+        if (accountInfo == null) {
+            return getFailureResult(1001, "请先登录");
+        } else {
+            storeId = accountInfo.getStoreId();
+        }
+
+        PaginationRequest paginationRequest = new PaginationRequest();
+        paginationRequest.setCurrentPage(page);
+        paginationRequest.setPageSize(pageSize);
+
+        Map<String, Object> params = new HashMap<>();
+        if (accountInfo.getMerchantId() != null && accountInfo.getMerchantId() > 0) {
+            params.put("merchantId", accountInfo.getMerchantId());
+        }
+        if (StringUtil.isNotEmpty(title)) {
+            params.put("title", title);
+        }
+        if (StringUtil.isNotEmpty(status)) {
+            params.put("status", status);
+        }
+        if (StringUtil.isNotEmpty(searchStoreId)) {
+            params.put("storeId", searchStoreId);
+        }
+        if (storeId != null && storeId > 0) {
+            params.put("storeId", storeId);
+        }
+        paginationRequest.setSearchParams(params);
+        PaginationResponse<MtIngredient> paginationResponse = ingredientService.queryIngredientListByPagination(paginationRequest);
+
+        Map<String, Object> paramsStore = new HashMap<>();
+        paramsStore.put("status", StatusEnum.ENABLED.getKey());
+        if (accountInfo.getStoreId() != null && accountInfo.getStoreId() > 0) {
+            paramsStore.put("storeId", accountInfo.getStoreId().toString());
+        }
+        if (accountInfo.getMerchantId() != null && accountInfo.getMerchantId() > 0) {
+            paramsStore.put("merchantId", accountInfo.getMerchantId());
+        }
+
+        Map<String, Object> result = new HashMap<>();
+        result.put("paginationResponse", paginationResponse);
+
+        return getSuccessResult(result);
+    }
+
+    /**
+     * 更新菜品配料表状态
+     *
+     * @return
+     */
+    @ApiOperation(value = "更新菜品配料表状态")
+    @RequestMapping(value = "/updateStatus", method = RequestMethod.POST)
+    @CrossOrigin
+    @PreAuthorize("@pms.hasPermission('ingredient:edit')")
+    public ResponseObject updateStatus(HttpServletRequest request, @RequestBody Map<String, Object> params) throws BusinessCheckException {
+        String token = request.getHeader("Access-Token");
+        String status = params.get("status") != null ? params.get("status").toString() : StatusEnum.ENABLED.getKey();
+        Long id = params.get("id") == null ? 0 : Long.parseLong(params.get("id").toString());
+
+        AccountInfo accountInfo = TokenUtil.getAccountInfoByToken(token);
+        if (accountInfo == null) {
+            return getFailureResult(1001, "请先登录");
+        }
+
+        MtIngredient mtIngredient = ingredientService.queryIngredientById(id);
+        if (mtIngredient == null) {
+            return getFailureResult(201);
+        }
+
+        String operator = accountInfo.getAccountName();
+
+        ingredientService.updateIngredient(mtIngredient);
+
+        return getSuccessResult(true);
+    }
+
+    /**
+     * 保存菜品配料表
+     *
+     * @param request HttpServletRequest对象
+     * @return
+     */
+    @ApiOperation(value = "保存菜品配料表")
+    @RequestMapping(value = "/save", method = RequestMethod.POST)
+    @CrossOrigin
+    @PreAuthorize("@pms.hasPermission('ingredient:add')")
+    public ResponseObject saveHandler(HttpServletRequest request, @RequestBody Map<String, Object> params) throws BusinessCheckException {
+        String token = request.getHeader("Access-Token");
+        String id = params.get("id") == null ? "" : params.get("id").toString();
+        String status = params.get("status") == null ? "" : params.get("status").toString();
+        String storeId = params.get("storeId") == null ? "0" : params.get("storeId").toString();
+
+        AccountInfo accountInfo = TokenUtil.getAccountInfoByToken(token);
+        if (accountInfo == null) {
+            return getFailureResult(1001, "请先登录");
+        }
+
+        MtIngredient info = new MtIngredient();
+
+
+        return getSuccessResult(true);
+    }
+
+    /**
+     * 获取菜品配料表详情
+     *
+     * @param id
+     * @return
+     */
+    @ApiOperation(value = "获取菜品配料表详情")
+    @RequestMapping(value = "/info/{id}", method = RequestMethod.GET)
+    @CrossOrigin
+    @PreAuthorize("@pms.hasPermission('ingredient:list')")
+    public ResponseObject info(HttpServletRequest request, @PathVariable("id") Integer id) throws BusinessCheckException {
+        String token = request.getHeader("Access-Token");
+        AccountInfo accountInfo = TokenUtil.getAccountInfoByToken(token);
+        if (accountInfo == null) {
+            return getFailureResult(1001, "请先登录");
+        }
+
+        MtIngredient ingredientInfo = ingredientService.queryIngredientById(Long.valueOf(id));
+
+        Map<String, Object> result = new HashMap<>();
+        result.put("ingredientInfo", ingredientInfo);
+
+        return getSuccessResult(result);
+    }
+}

+ 185 - 0
fuintBackend/fuint-application/src/main/java/com/fuint/module/backendApi/controller/BackendVersionController.java

@@ -0,0 +1,185 @@
+package com.fuint.module.backendApi.controller;
+
+import com.fuint.common.dto.AccountInfo;
+import com.fuint.common.util.TokenUtil;
+import com.fuint.framework.web.BaseController;
+import com.fuint.framework.web.ResponseObject;
+import com.fuint.common.Constants;
+import com.fuint.common.enums.StatusEnum;
+import com.fuint.common.service.VersionService;
+import com.fuint.framework.pagination.PaginationRequest;
+import com.fuint.framework.pagination.PaginationResponse;
+import com.fuint.framework.exception.BusinessCheckException;
+import com.fuint.repository.model.MtVersion;
+import com.fuint.utils.StringUtil;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.AllArgsConstructor;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.*;
+import javax.servlet.http.HttpServletRequest;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * 版本控制表管理类controller
+ *
+ * Created by pzg
+ * CopyRight https://www.fuint.cn
+ */
+@Api(tags="管理端-版本控制表相关接口")
+@RestController
+@AllArgsConstructor
+@RequestMapping(value = "/backendApi/version")
+public class BackendVersionController extends BaseController {
+
+    /**
+     * 版本控制表服务接口
+     */
+    private VersionService versionService;
+
+    /**
+     * 版本控制表列表查询
+     *
+     * @param  request HttpServletRequest对象
+     * @return 版本控制表列表
+     */
+    @ApiOperation(value = "版本控制表列表查询")
+    @RequestMapping(value = "/list", method = RequestMethod.GET)
+    @CrossOrigin
+    @PreAuthorize("@pms.hasPermission('version:list')")
+    public ResponseObject list(HttpServletRequest request) throws BusinessCheckException {
+        String token = request.getHeader("Access-Token");
+        Integer page = request.getParameter("page") == null ? Constants.PAGE_NUMBER : Integer.parseInt(request.getParameter("page"));
+        Integer pageSize = request.getParameter("pageSize") == null ? Constants.PAGE_SIZE : Integer.parseInt(request.getParameter("pageSize"));
+        String title = request.getParameter("title");
+        String status = request.getParameter("status");
+        String searchStoreId = request.getParameter("storeId");
+
+        AccountInfo accountInfo = TokenUtil.getAccountInfoByToken(token);
+        Long storeId;
+        if (accountInfo == null) {
+            return getFailureResult(1001, "请先登录");
+        } else {
+            storeId = accountInfo.getStoreId();
+        }
+
+        PaginationRequest paginationRequest = new PaginationRequest();
+        paginationRequest.setCurrentPage(page);
+        paginationRequest.setPageSize(pageSize);
+
+        Map<String, Object> params = new HashMap<>();
+        if (accountInfo.getMerchantId() != null && accountInfo.getMerchantId() > 0) {
+            params.put("merchantId", accountInfo.getMerchantId());
+        }
+        if (StringUtil.isNotEmpty(title)) {
+            params.put("title", title);
+        }
+        if (StringUtil.isNotEmpty(status)) {
+            params.put("status", status);
+        }
+        if (StringUtil.isNotEmpty(searchStoreId)) {
+            params.put("storeId", searchStoreId);
+        }
+        if (storeId != null && storeId > 0) {
+            params.put("storeId", storeId);
+        }
+        paginationRequest.setSearchParams(params);
+        PaginationResponse<MtVersion> paginationResponse = versionService.queryVersionListByPagination(paginationRequest);
+
+        Map<String, Object> paramsStore = new HashMap<>();
+        paramsStore.put("status", StatusEnum.ENABLED.getKey());
+        if (accountInfo.getStoreId() != null && accountInfo.getStoreId() > 0) {
+            paramsStore.put("storeId", accountInfo.getStoreId().toString());
+        }
+        if (accountInfo.getMerchantId() != null && accountInfo.getMerchantId() > 0) {
+            paramsStore.put("merchantId", accountInfo.getMerchantId());
+        }
+
+        Map<String, Object> result = new HashMap<>();
+        result.put("paginationResponse", paginationResponse);
+
+        return getSuccessResult(result);
+    }
+
+    /**
+     * 更新版本控制表状态
+     *
+     * @return
+     */
+    @ApiOperation(value = "更新版本控制表状态")
+    @RequestMapping(value = "/updateStatus", method = RequestMethod.POST)
+    @CrossOrigin
+    @PreAuthorize("@pms.hasPermission('version:edit')")
+    public ResponseObject updateStatus(HttpServletRequest request, @RequestBody Map<String, Object> params) throws BusinessCheckException {
+        String token = request.getHeader("Access-Token");
+        String status = params.get("status") != null ? params.get("status").toString() : StatusEnum.ENABLED.getKey();
+        Long id = params.get("id") == null ? 0 : Long.parseLong(params.get("id").toString());
+
+        AccountInfo accountInfo = TokenUtil.getAccountInfoByToken(token);
+        if (accountInfo == null) {
+            return getFailureResult(1001, "请先登录");
+        }
+
+        MtVersion mtVersion = versionService.queryVersionById(id);
+        if (mtVersion == null) {
+            return getFailureResult(201);
+        }
+
+        String operator = accountInfo.getAccountName();
+
+        versionService.updateVersion(mtVersion);
+
+        return getSuccessResult(true);
+    }
+
+    /**
+     * 保存版本控制表
+     *
+     * @param request HttpServletRequest对象
+     * @return
+     */
+    @ApiOperation(value = "保存版本控制表")
+    @RequestMapping(value = "/save", method = RequestMethod.POST)
+    @CrossOrigin
+    @PreAuthorize("@pms.hasPermission('version:add')")
+    public ResponseObject saveHandler(HttpServletRequest request, @RequestBody Map<String, Object> params) throws BusinessCheckException {
+        String token = request.getHeader("Access-Token");
+        String id = params.get("id") == null ? "" : params.get("id").toString();
+        String status = params.get("status") == null ? "" : params.get("status").toString();
+        String storeId = params.get("storeId") == null ? "0" : params.get("storeId").toString();
+
+        AccountInfo accountInfo = TokenUtil.getAccountInfoByToken(token);
+        if (accountInfo == null) {
+            return getFailureResult(1001, "请先登录");
+        }
+
+        MtVersion info = new MtVersion();
+        return getSuccessResult(true);
+    }
+
+    /**
+     * 获取版本控制表详情
+     *
+     * @param id
+     * @return
+     */
+    @ApiOperation(value = "获取版本控制表详情")
+    @RequestMapping(value = "/info/{id}", method = RequestMethod.GET)
+    @CrossOrigin
+    @PreAuthorize("@pms.hasPermission('version:list')")
+    public ResponseObject info(HttpServletRequest request, @PathVariable("id") Integer id) throws BusinessCheckException {
+        String token = request.getHeader("Access-Token");
+        AccountInfo accountInfo = TokenUtil.getAccountInfoByToken(token);
+        if (accountInfo == null) {
+            return getFailureResult(1001, "请先登录");
+        }
+
+        MtVersion versionInfo = versionService.queryVersionById(Long.valueOf(id));
+
+        Map<String, Object> result = new HashMap<>();
+        result.put("versionInfo", versionInfo);
+
+        return getSuccessResult(result);
+    }
+}

+ 14 - 0
fuintBackend/fuint-repository/src/main/java/com/fuint/repository/mapper/MtCountryMapper.java

@@ -0,0 +1,14 @@
+package com.fuint.repository.mapper;
+
+import com.fuint.repository.model.MtCountry;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * 国家表 Mapper 接口
+ *
+ * Created by pzg
+ * CopyRight https://www.fuint.cn
+ */
+public interface MtCountryMapper extends BaseMapper<MtCountry> {
+
+}

+ 14 - 0
fuintBackend/fuint-repository/src/main/java/com/fuint/repository/mapper/MtCurrencyMapper.java

@@ -0,0 +1,14 @@
+package com.fuint.repository.mapper;
+
+import com.fuint.repository.model.MtCurrency;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * 货币表 Mapper 接口
+ *
+ * Created by pzg
+ * CopyRight https://www.fuint.cn
+ */
+public interface MtCurrencyMapper extends BaseMapper<MtCurrency> {
+
+}

+ 14 - 0
fuintBackend/fuint-repository/src/main/java/com/fuint/repository/mapper/MtIngredientMapper.java

@@ -0,0 +1,14 @@
+package com.fuint.repository.mapper;
+
+import com.fuint.repository.model.MtIngredient;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * 菜品配料表 Mapper 接口
+ *
+ * Created by pzg
+ * CopyRight https://www.fuint.cn
+ */
+public interface MtIngredientMapper extends BaseMapper<MtIngredient> {
+
+}

+ 14 - 0
fuintBackend/fuint-repository/src/main/java/com/fuint/repository/mapper/MtVersionMapper.java

@@ -0,0 +1,14 @@
+package com.fuint.repository.mapper;
+
+import com.fuint.repository.model.MtVersion;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * 版本控制表 Mapper 接口
+ *
+ * Created by pzg
+ * CopyRight https://www.fuint.cn
+ */
+public interface MtVersionMapper extends BaseMapper<MtVersion> {
+
+}

+ 80 - 0
fuintBackend/fuint-repository/src/main/java/com/fuint/repository/model/MtCountry.java

@@ -0,0 +1,80 @@
+package com.fuint.repository.model;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.Date;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * 国家表实体
+ *
+ * @Created by pzg
+ * CopyRight https://www.fuint.cn
+ */
+@Getter
+@Setter
+@TableName("mt_country")
+@ApiModel(value = "country表对象", description = "country表对象")
+public class MtCountry implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @ApiModelProperty("区号")
+    private String areaCode;
+
+    @ApiModelProperty("国家代码")
+    private String countryCode;
+
+    @ApiModelProperty("国家/洲名称")
+    private String countryName;
+
+    @ApiModelProperty("创建时间")
+    private Date createTime;
+
+    @ApiModelProperty("创建用户id")
+    private String createUserId;
+
+    @ApiModelProperty("是否删除 0否 1是")
+    private Integer deleteFlag;
+
+    @ApiModelProperty("英文名称")
+    private String englishName;
+
+    @ApiModelProperty("文件/图片id")
+    private String fileId;
+
+    @ApiModelProperty("拼音首字母")
+    private String firstCode;
+
+    @ApiModelProperty("主键")
+    @TableId(value = "ID", type = IdType.AUTO)
+    private Long id;
+
+    @ApiModelProperty("所属洲")
+    private Long parentId;
+
+    @ApiModelProperty("拼音")
+    private String pinYin;
+
+    @ApiModelProperty("项目标识")
+    private String project;
+
+    @ApiModelProperty("服务状态,默认0,-0未开通,-1开通")
+    private Integer serveState;
+
+    @ApiModelProperty("服务费比率")
+    private BigDecimal serviceChargeValue;
+
+    @ApiModelProperty("更新时间")
+    private Date updateTime;
+
+    @ApiModelProperty("修改用户id")
+    private String updateUserId;
+
+}

+ 52 - 0
fuintBackend/fuint-repository/src/main/java/com/fuint/repository/model/MtCurrency.java

@@ -0,0 +1,52 @@
+package com.fuint.repository.model;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import java.io.Serializable;
+import java.util.Date;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * 货币表实体
+ *
+ * @Created by pzg
+ * CopyRight https://www.fuint.cn
+ */
+@Getter
+@Setter
+@TableName("mt_currency")
+@ApiModel(value = "currency表对象", description = "currency表对象")
+public class MtCurrency implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @ApiModelProperty("创建时间")
+    private Date createTime;
+
+    @ApiModelProperty("创建用户id")
+    private String createUserId;
+
+    @ApiModelProperty("是否删除 0否 1是")
+    private Integer deleteFlag;
+
+    @ApiModelProperty("id")
+    @TableId(value = "ID", type = IdType.AUTO)
+    private Long id;
+
+    @ApiModelProperty("货币名称")
+    private String name;
+
+    @ApiModelProperty("项目标识")
+    private String project;
+
+    @ApiModelProperty("更新时间")
+    private Date updateTime;
+
+    @ApiModelProperty("修改用户id")
+    private String updateUserId;
+
+}

+ 58 - 0
fuintBackend/fuint-repository/src/main/java/com/fuint/repository/model/MtIngredient.java

@@ -0,0 +1,58 @@
+package com.fuint.repository.model;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import java.io.Serializable;
+import java.util.Date;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * 菜品配料表实体
+ *
+ * @Created by pzg
+ * CopyRight https://www.fuint.cn
+ */
+@Getter
+@Setter
+@TableName("mt_ingredient")
+@ApiModel(value = "ingredient表对象", description = "ingredient表对象")
+public class MtIngredient implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @ApiModelProperty("创建时间")
+    private Date createTime;
+
+    @ApiModelProperty("创建用户id")
+    private String createUserId;
+
+    @ApiModelProperty("是否删除 0否 1是")
+    private Integer deleteFlag;
+
+    @ApiModelProperty("用量")
+    private Integer dosage;
+
+    @ApiModelProperty("菜品id")
+    private String goodsId;
+
+    @ApiModelProperty("id")
+    @TableId(value = "ID", type = IdType.AUTO)
+    private Long id;
+
+    @ApiModelProperty("材料id")
+    private Integer materialId;
+
+    @ApiModelProperty("项目标识")
+    private String project;
+
+    @ApiModelProperty("更新时间")
+    private Date updateTime;
+
+    @ApiModelProperty("修改用户id")
+    private String updateUserId;
+
+}

+ 76 - 0
fuintBackend/fuint-repository/src/main/java/com/fuint/repository/model/MtVersion.java

@@ -0,0 +1,76 @@
+package com.fuint.repository.model;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import java.io.Serializable;
+import java.util.Date;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * 版本控制表实体
+ *
+ * @Created by pzg
+ * CopyRight https://www.fuint.cn
+ */
+@Getter
+@Setter
+@TableName("mt_version")
+@ApiModel(value = "version表对象", description = "version表对象")
+public class MtVersion implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @ApiModelProperty("创建时间")
+    private Date createTime;
+
+    @ApiModelProperty("创建用户id")
+    private String createUserId;
+
+    @ApiModelProperty("是否删除 0否 1是")
+    private Integer deleteFlag;
+
+    @ApiModelProperty("版本描述")
+    private String description;
+
+    @ApiModelProperty("下载地址")
+    private String downloadUrl;
+
+    @ApiModelProperty("生效日期")
+    private Date effectiveDate;
+
+    @ApiModelProperty("版本id")
+    @TableId(value = "ID", type = IdType.AUTO)
+    private Long id;
+
+    @ApiModelProperty("是否强制更新 0否 1是")
+    private Integer isMandatory;
+
+    @ApiModelProperty("版本名称")
+    private String name;
+
+    @ApiModelProperty("支持的平台列表")
+    private String platforms;
+
+    @ApiModelProperty("项目标识")
+    private String project;
+
+    @ApiModelProperty("发布日期")
+    private Date releaseDate;
+
+    @ApiModelProperty("0不更新1更新")
+    private Integer status;
+
+    @ApiModelProperty("版本类型")
+    private String type;
+
+    @ApiModelProperty("更新时间")
+    private Date updateTime;
+
+    @ApiModelProperty("修改用户id")
+    private String updateUserId;
+
+}

+ 5 - 0
fuintBackend/fuint-repository/src/main/resources/mapper/MtCountryMapper.xml

@@ -0,0 +1,5 @@
+<?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.fuint.repository.mapper.MtCountryMapper}">
+
+</mapper>

+ 5 - 0
fuintBackend/fuint-repository/src/main/resources/mapper/MtCurrencyMapper.xml

@@ -0,0 +1,5 @@
+<?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.fuint.repository.mapper.MtCurrencyMapper}">
+
+</mapper>

+ 5 - 0
fuintBackend/fuint-repository/src/main/resources/mapper/MtIngredientMapper.xml

@@ -0,0 +1,5 @@
+<?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.fuint.repository.mapper.MtIngredientMapper}">
+
+</mapper>

+ 5 - 0
fuintBackend/fuint-repository/src/main/resources/mapper/MtVersionMapper.xml

@@ -0,0 +1,5 @@
+<?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.fuint.repository.mapper.MtVersionMapper}">
+
+</mapper>