收款二维码
@@ -102,8 +99,16 @@ export default {
created() {
this.getQRCodeInfo();
this.getStore();
+ this.getForm()
},
methods: {
+ getForm(data){
+ if (data != undefined){
+ this.form.lat = data.lat;
+ this.form.lng = data.lng;
+ this.form.address = data.address;
+ }
+ },
// 获取门店信息
getStore() {
ljStoreInfo().then(response => {
@@ -112,6 +117,7 @@ export default {
this.form.lng = this.store.longitude;
this.form.address = this.store.address;
this.welfare = this.store.welfare.split(",")
+ this.$refs.mapRef.initAMap();
})
},
@@ -120,6 +126,9 @@ export default {
},
submitStore(){
+ this.store.latitude = this.form.lat;
+ this.store.longitude = this.form.lng;
+ this.store.address = this.form.address;
updateStore(this.store).then(response => {
this.$modal.msgSuccess("修改成功");
this.getStore();
@@ -181,9 +190,11 @@ export default {
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/controller/ChainStoreConfigController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/controller/ChainStoreConfigController.java
new file mode 100644
index 000000000..e8b370abb
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/controller/ChainStoreConfigController.java
@@ -0,0 +1,39 @@
+package com.fuint.business.userManager.controller;
+
+import com.fuint.business.userManager.entity.ChainStoreConfig;
+import com.fuint.business.userManager.service.ChainStoreConfigService;
+import com.fuint.framework.web.BaseController;
+import com.fuint.framework.web.ResponseObject;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.*;
+
+/**
+ * 连锁店配置信息 controller层
+ */
+@RestController
+@RequestMapping("/business/userManager/chainStoreConfig")
+public class ChainStoreConfigController extends BaseController {
+ @Autowired
+ private ChainStoreConfigService chainStoreConfigService;
+
+ /**
+ * 根据id查询连锁店配置信息
+ * @return
+ */
+ @GetMapping
+ public ResponseObject chainStoreConfigInfo(){
+ ChainStoreConfig chainStoreConfig = chainStoreConfigService.selectChainStoreConfigById();
+ return getSuccessResult(chainStoreConfig);
+ }
+
+ /**
+ * 修改连锁店配置信息
+ * @param chainStoreConfig
+ * @return
+ */
+ @PutMapping
+ public ResponseObject edit(@Validated @RequestBody ChainStoreConfig chainStoreConfig){
+ return getSuccessResult(chainStoreConfigService.updateChainStoreConfig(chainStoreConfig));
+ }
+}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/controller/LJUserController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/controller/LJUserController.java
new file mode 100644
index 000000000..433609745
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/controller/LJUserController.java
@@ -0,0 +1,78 @@
+package com.fuint.business.userManager.controller;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.fuint.business.userManager.entity.LJUser;
+import com.fuint.business.userManager.service.LJUserService;
+import com.fuint.framework.web.BaseController;
+import com.fuint.framework.web.ResponseObject;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.*;
+
+/**
+ * 会员信息 controller层
+ */
+@RestController
+@RequestMapping("/business/userManager/user")
+public class LJUserController extends BaseController {
+ @Autowired
+ private LJUserService userService;
+
+ /**
+ * 根据条件分页查询会员信息
+ * @param user
+ * @param pageNo
+ * @param pageSize
+ * @return
+ */
+ @GetMapping("/list")
+ public ResponseObject list(LJUser user,
+ @RequestParam(value = "pageNo",defaultValue = "1") Integer pageNo,
+ @RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize){
+ Page page =new Page(pageNo,pageSize);
+ IPage list = userService.selectUserList(page,user);
+ return getSuccessResult(list);
+ }
+
+ /**
+ * 根据id查询会员信息
+ * @param id
+ * @return
+ */
+ @GetMapping("/{id}")
+ public ResponseObject userInfo(@PathVariable Integer id){
+ LJUser user = userService.selectUserById(id);
+ return getSuccessResult(user);
+ }
+
+ /**
+ * 批量删除会员信息
+ * @return
+ */
+ @DeleteMapping("/{id}")
+ public ResponseObject remove(@PathVariable Integer id){
+ userService.deleteUserById(id);
+ return getSuccessResult("操作成功");
+ }
+
+ /**
+ * 添加会员信息
+ * @param user
+ * @return
+ */
+ @PostMapping
+ public ResponseObject add(@Validated @RequestBody LJUser user){
+ return getSuccessResult(userService.insertUser(user));
+ }
+
+ /**
+ * 修改会员信息
+ * @param user
+ * @return
+ */
+ @PutMapping
+ public ResponseObject edit(@Validated @RequestBody LJUser user){
+ return getSuccessResult(userService.updateUser(user));
+ }
+}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/controller/LJUserGradeController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/controller/LJUserGradeController.java
new file mode 100644
index 000000000..1909521ce
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/controller/LJUserGradeController.java
@@ -0,0 +1,78 @@
+package com.fuint.business.userManager.controller;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.fuint.business.userManager.entity.LJUserGrade;
+import com.fuint.business.userManager.service.LJUserGradeService;
+import com.fuint.framework.web.BaseController;
+import com.fuint.framework.web.ResponseObject;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.*;
+
+/**
+ * 会员等级信息 controller层
+ */
+@RestController
+@RequestMapping("/business/userManager/userGrade")
+public class LJUserGradeController extends BaseController {
+ @Autowired
+ private LJUserGradeService userGradeService;
+
+ /**
+ * 根据条件分页查询会员等级信息
+ * @param userGrade
+ * @param pageNo
+ * @param pageSize
+ * @return
+ */
+ @GetMapping("/list")
+ public ResponseObject list(LJUserGrade userGrade,
+ @RequestParam(value = "pageNo",defaultValue = "1") Integer pageNo,
+ @RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize){
+ Page page =new Page(pageNo,pageSize);
+ IPage list = userGradeService.selectUserGradeList(page,userGrade);
+ return getSuccessResult(list);
+ }
+
+ /**
+ * 根据id查询会员等级信息
+ * @param id
+ * @return
+ */
+ @GetMapping("/{id}")
+ public ResponseObject staffInfo(@PathVariable Integer id){
+ LJUserGrade userGrade = userGradeService.selectUserGradeById(id);
+ return getSuccessResult(userGrade);
+ }
+
+ /**
+ * 批量删除会员等级信息
+ * @return
+ */
+ @DeleteMapping("/{id}")
+ public ResponseObject remove(@PathVariable Integer id){
+ userGradeService.deleteUserGradeById(id);
+ return getSuccessResult("操作成功");
+ }
+
+ /**
+ * 添加会员等级信息
+ * @param userGrade
+ * @return
+ */
+ @PostMapping
+ public ResponseObject add(@Validated @RequestBody LJUserGrade userGrade){
+ return getSuccessResult(userGradeService.insertUserGrade(userGrade));
+ }
+
+ /**
+ * 修改会员等级信息
+ * @param userGrade
+ * @return
+ */
+ @PutMapping
+ public ResponseObject edit(@Validated @RequestBody LJUserGrade userGrade){
+ return getSuccessResult(userGradeService.updateUserGrade(userGrade));
+ }
+}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/entity/ChainStoreConfig.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/entity/ChainStoreConfig.java
new file mode 100644
index 000000000..7333ed4f0
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/entity/ChainStoreConfig.java
@@ -0,0 +1,37 @@
+package com.fuint.business.userManager.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.fuint.framework.entity.BaseEntity;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Getter;
+import lombok.Setter;
+
+import java.io.Serializable;
+
+/**
+ * 连锁店配置信息
+ *
+ * Created by FSQ
+ * CopyRight https://www.fuint.cn
+ */
+@Getter
+@Setter
+@TableName("chain_store_config")
+@ApiModel(value = "ChainStoreConfig", description = "连锁店配置信息")
+public class ChainStoreConfig extends BaseEntity implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ @ApiModelProperty("连锁店配置类ID")
+ @TableId(value = "ID", type = IdType.AUTO)
+ private Integer id;
+
+ @ApiModelProperty("连锁店id")
+ private Integer chainStoreId;
+
+ @ApiModelProperty("等级清算规则")
+ private String levelClearRule;
+}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/entity/LJUser.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/entity/LJUser.java
new file mode 100644
index 000000000..57ff48a3d
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/entity/LJUser.java
@@ -0,0 +1,117 @@
+package com.fuint.business.userManager.entity;
+
+import com.baomidou.mybatisplus.annotation.*;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.fuint.framework.entity.BaseEntity;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Getter;
+import lombok.Setter;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.Date;
+
+/**
+ * 会员个人信息
+ *
+ * Created by FSQ
+ * CopyRight https://www.fuint.cn
+ */
+@Getter
+@Setter
+@TableName("mt_user")
+@ApiModel(value = "MtUser对象", description = "会员个人信息")
+public class LJUser extends BaseEntity implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ @ApiModelProperty("会员ID")
+ @TableId(value = "ID", type = IdType.AUTO)
+ private Integer id;
+
+ @ApiModelProperty("会员号")
+ private String userNo;
+
+ @ApiModelProperty("头像")
+ private String avatar;
+
+ @ApiModelProperty("称呼")
+ private String name;
+
+ @ApiModelProperty("微信open_id")
+ private String openId;
+
+ @ApiModelProperty("手机号码")
+ private String mobile;
+
+ @ApiModelProperty("证件号码")
+ private String idcard;
+
+ @ApiModelProperty("等级ID")
+ private String gradeId;
+
+ @ApiModelProperty("会员开始时间")
+ @TableField(strategy = FieldStrategy.IGNORED)
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
+ private Date startTime;
+
+ @ApiModelProperty("会员结束时间")
+ @TableField(strategy=FieldStrategy.IGNORED)
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
+ private Date endTime;
+
+ @ApiModelProperty("余额")
+ private BigDecimal balance;
+
+ @ApiModelProperty("积分")
+ private Integer point;
+
+ @ApiModelProperty("性别 1男;0女")
+ private Integer sex;
+
+ @ApiModelProperty("出生日期")
+ private String birthday;
+
+ @ApiModelProperty("车牌号")
+ private String carNo;
+
+ @ApiModelProperty("来源渠道")
+ private String source;
+
+ @ApiModelProperty("密码")
+ private String password;
+
+ @ApiModelProperty("salt")
+ private String salt;
+
+ @ApiModelProperty("地址")
+ private String address;
+
+ @ApiModelProperty("所属商户ID")
+ private Integer merchantId;
+
+ @ApiModelProperty("默认店铺")
+ private Integer storeId;
+
+ @ApiModelProperty("状态,A:激活;N:禁用;D:删除")
+ private String status;
+
+ @ApiModelProperty("备注信息")
+ private String description;
+
+ @ApiModelProperty("最后操作人")
+ private String operator;
+
+ @ApiModelProperty("升数卡")
+ private BigDecimal literCard;
+
+ @ApiModelProperty("公众号")
+ private String official;
+
+ @ApiModelProperty("加油金")
+ private BigDecimal refuelMoney;
+
+ @ApiModelProperty("加油次数")
+ private BigDecimal consumeNum;
+}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/entity/LJUserGrade.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/entity/LJUserGrade.java
new file mode 100644
index 000000000..880334b1d
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/entity/LJUserGrade.java
@@ -0,0 +1,89 @@
+package com.fuint.business.userManager.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.fuint.framework.entity.BaseEntity;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Getter;
+import lombok.Setter;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+
+/**
+ * 会员等级表
+ *
+ * Created by FSQ
+ * CopyRight https://www.fuint.cn
+ */
+@Getter
+@Setter
+@TableName("mt_user_grade")
+@ApiModel(value = "MtUserGrade对象", description = "")
+public class LJUserGrade extends BaseEntity implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ @ApiModelProperty("自增ID")
+ @TableId(value = "ID", type = IdType.AUTO)
+ private Integer id;
+
+ @ApiModelProperty("商户ID")
+ private Integer merchantId;
+
+ @ApiModelProperty("等级")
+ private Integer grade;
+
+ @ApiModelProperty("等级名称")
+ private String name;
+
+ @ApiModelProperty("升级会员等级条件描述")
+ private String catchCondition;
+
+ @ApiModelProperty("升级会员等级条件,init:默认获取;pay:付费升级;frequency:消费次数;amount:累积消费金额升级")
+ private String catchType;
+
+ @ApiModelProperty("达到升级条件的值")
+ private BigDecimal catchValue;
+
+ @ApiModelProperty("会员权益描述")
+ private String userPrivilege;
+
+ @ApiModelProperty("有效期")
+ private Integer validDay;
+
+ @ApiModelProperty("享受折扣")
+ private Float discount;
+
+ @ApiModelProperty("积分加速")
+ private Float speedPoint;
+
+ @ApiModelProperty("状态")
+ private String status;
+
+ @ApiModelProperty("汽油成长值")
+ private Integer gasoline;
+
+ @ApiModelProperty("柴油成长值")
+ private Integer dieselOil;
+
+ @ApiModelProperty("天然气成长值")
+ private Integer naturalGas;
+
+ @ApiModelProperty("优惠类型,自定义优惠,优惠活动组")
+ private String preferential;
+
+ @ApiModelProperty("汽油优惠,无优惠,满减优惠,每升优惠")
+ private String gasolineDiscount;
+
+ @ApiModelProperty("柴油优惠,无优惠,满减优惠,每升优惠")
+ private String dieselDiscount;
+
+ @ApiModelProperty("天然气优惠,无优惠,满减优惠,每单位优惠")
+ private String naturalGasDiscount;
+
+ @ApiModelProperty("优惠活动组")
+ private String promotionGroup;
+}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/ChainStoreConfigMapper.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/ChainStoreConfigMapper.java
new file mode 100644
index 000000000..30277ac64
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/ChainStoreConfigMapper.java
@@ -0,0 +1,10 @@
+package com.fuint.business.userManager.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.fuint.business.userManager.entity.ChainStoreConfig;
+
+/**
+ * 连锁店配置类 mapper层
+ */
+public interface ChainStoreConfigMapper extends BaseMapper {
+}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/LJUserGradeMapper.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/LJUserGradeMapper.java
new file mode 100644
index 000000000..9ba8f9a59
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/LJUserGradeMapper.java
@@ -0,0 +1,21 @@
+package com.fuint.business.userManager.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.fuint.business.userManager.entity.LJUser;
+import com.fuint.business.userManager.entity.LJUserGrade;
+import org.apache.ibatis.annotations.Param;
+
+/**
+ * 会员等级信息 mapper层
+ */
+public interface LJUserGradeMapper extends BaseMapper {
+ /**
+ * 根据条件分页查询会员等级信息
+ * @param page
+ * @param userGrade
+ * @return
+ */
+ public IPage selectUserGradeList(Page page, @Param("userGrade") LJUserGrade userGrade);
+}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/LJUserMapper.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/LJUserMapper.java
new file mode 100644
index 000000000..e705e7147
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/LJUserMapper.java
@@ -0,0 +1,20 @@
+package com.fuint.business.userManager.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.fuint.business.userManager.entity.LJUser;
+import org.apache.ibatis.annotations.Param;
+
+/**
+ * 会员信息 mapper层
+ */
+public interface LJUserMapper extends BaseMapper {
+ /**
+ * 根据条件分页查询会员信息
+ * @param page
+ * @param user
+ * @return
+ */
+ public IPage selectUserList(Page page, @Param("user") LJUser user);
+}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/xml/LJUserGradeMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/xml/LJUserGradeMapper.xml
new file mode 100644
index 000000000..7164a73cb
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/xml/LJUserGradeMapper.xml
@@ -0,0 +1,55 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ select id, merchant_id, grade, name, catch_condition, catch_type, catch_value, user_privilege, valid_day, discount,
+ speed_point, status, create_time, update_time, create_by, update_by, gasoline, diesel_oil, natural_gas,
+ preferential, gasoline_discount, diesel_discount, natural_gas_discount,promotion_group from mt_user_grade
+
+
+
+
\ No newline at end of file
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/xml/LJUserMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/xml/LJUserMapper.xml
new file mode 100644
index 000000000..fe040b6de
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/xml/LJUserMapper.xml
@@ -0,0 +1,63 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ select id, mobile, user_no, avatar, name, open_id, idcard, grade_id, start_time, end_time, balance, point,
+ sex, birthday, car_no, source, password, salt, address, merchant_id, store_id, create_time, update_time,
+ status, description, operator,official,liter_card,refuel_money,consume_num from mt_user
+
+
+
+
\ No newline at end of file
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/ChainStoreConfigService.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/ChainStoreConfigService.java
new file mode 100644
index 000000000..390786b7d
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/ChainStoreConfigService.java
@@ -0,0 +1,21 @@
+package com.fuint.business.userManager.service;
+
+import com.fuint.business.userManager.entity.ChainStoreConfig;
+
+/**
+ * 连锁店配置信息 业务层
+ */
+public interface ChainStoreConfigService {
+ /**
+ * 根据id查询连锁店配置信息
+ * @return
+ */
+ public ChainStoreConfig selectChainStoreConfigById();
+
+ /**
+ * 根据id修改连锁店配置信息
+ * @param chainStoreConfig
+ * @return
+ */
+ public int updateChainStoreConfig(ChainStoreConfig chainStoreConfig);
+}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/LJUserGradeService.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/LJUserGradeService.java
new file mode 100644
index 000000000..5ee72b589
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/LJUserGradeService.java
@@ -0,0 +1,44 @@
+package com.fuint.business.userManager.service;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.fuint.business.userManager.entity.LJUserGrade;
+
+/**
+ * 会员等级信息 业务层
+ */
+public interface LJUserGradeService {
+ /**
+ * 根据条件分页查询员工信息
+ * @param page
+ * @return
+ */
+ public IPage selectUserGradeList(Page page, LJUserGrade userGrade);
+
+ /**
+ * 根据id查询员工信息
+ * @param id
+ * @return
+ */
+ public LJUserGrade selectUserGradeById(int id);
+
+ /**
+ * 根据id删除员工信息
+ * @param id
+ */
+ public void deleteUserGradeById(Integer id);
+
+ /**
+ * 增加员工信息
+ * @param userGrade
+ * @return
+ */
+ public int insertUserGrade(LJUserGrade userGrade);
+
+ /**
+ * 修改员工信息
+ * @param userGrade
+ * @return
+ */
+ public int updateUserGrade(LJUserGrade userGrade);
+}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/LJUserService.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/LJUserService.java
new file mode 100644
index 000000000..c7a7df42a
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/LJUserService.java
@@ -0,0 +1,44 @@
+package com.fuint.business.userManager.service;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.fuint.business.userManager.entity.LJUser;
+
+/**
+ * 会员信息 业务层
+ */
+public interface LJUserService {
+ /**
+ * 根据条件分页查询员工信息
+ * @param page
+ * @return
+ */
+ public IPage selectUserList(Page page, LJUser user);
+
+ /**
+ * 根据id查询员工信息
+ * @param id
+ * @return
+ */
+ public LJUser selectUserById(int id);
+
+ /**
+ * 根据id删除员工信息
+ * @param id
+ */
+ public void deleteUserById(Integer id);
+
+ /**
+ * 增加员工信息
+ * @param user
+ * @return
+ */
+ public int insertUser(LJUser user);
+
+ /**
+ * 修改员工信息
+ * @param user
+ * @return
+ */
+ public int updateUser(LJUser user);
+}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/impl/ChainStoreConfigServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/impl/ChainStoreConfigServiceImpl.java
new file mode 100644
index 000000000..3e74567d4
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/impl/ChainStoreConfigServiceImpl.java
@@ -0,0 +1,44 @@
+package com.fuint.business.userManager.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.fuint.business.member.entity.LJStaff;
+import com.fuint.business.storeInformation.entity.LJStore;
+import com.fuint.business.storeInformation.service.ILJStoreService;
+import com.fuint.business.userManager.entity.ChainStoreConfig;
+import com.fuint.business.userManager.mapper.ChainStoreConfigMapper;
+import com.fuint.business.userManager.service.ChainStoreConfigService;
+import com.fuint.common.dto.AccountInfo;
+import com.fuint.common.util.TokenUtil;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class ChainStoreConfigServiceImpl extends ServiceImpl implements ChainStoreConfigService {
+ @Autowired
+ private ILJStoreService storeService;
+ /**
+ * 根据id查询连锁店配置信息
+ * @return
+ */
+ @Override
+ public ChainStoreConfig selectChainStoreConfigById() {
+ LJStore store = storeService.selectStoreById();
+ Integer id = store.getChainStoreId();
+ return baseMapper.selectById(id);
+ }
+
+ /**
+ * 根据id修改连锁店配置信息
+ * @param chainStoreConfig
+ * @return
+ */
+ @Override
+ public int updateChainStoreConfig(ChainStoreConfig chainStoreConfig) {
+ LJStore store = storeService.selectStoreById();
+ Integer id = store.getChainStoreId();
+ chainStoreConfig.setChainStoreId(id);
+ System.out.println(chainStoreConfig.getLevelClearRule());
+ int row = baseMapper.updateById(chainStoreConfig);
+ return row;
+ }
+}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/impl/LJUserGradeServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/impl/LJUserGradeServiceImpl.java
new file mode 100644
index 000000000..482cc0c1a
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/impl/LJUserGradeServiceImpl.java
@@ -0,0 +1,39 @@
+package com.fuint.business.userManager.service.impl;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.fuint.business.userManager.entity.LJUserGrade;
+import com.fuint.business.userManager.mapper.LJUserGradeMapper;
+import com.fuint.business.userManager.service.LJUserGradeService;
+import org.springframework.stereotype.Service;
+
+@Service
+public class LJUserGradeServiceImpl extends ServiceImpl implements LJUserGradeService {
+ @Override
+ public IPage selectUserGradeList(Page page, LJUserGrade userGrade) {
+ return baseMapper.selectUserGradeList(page,userGrade);
+ }
+
+ @Override
+ public LJUserGrade selectUserGradeById(int id) {
+ return baseMapper.selectById(id);
+ }
+
+ @Override
+ public void deleteUserGradeById(Integer id) {
+ baseMapper.deleteById(id);
+ }
+
+ @Override
+ public int insertUserGrade(LJUserGrade userGrade) {
+ int row = baseMapper.insert(userGrade);
+ return row;
+ }
+
+ @Override
+ public int updateUserGrade(LJUserGrade userGrade) {
+ int row = baseMapper.updateById(userGrade);
+ return row;
+ }
+}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/impl/LJUserServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/impl/LJUserServiceImpl.java
new file mode 100644
index 000000000..c78ae07b8
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/service/impl/LJUserServiceImpl.java
@@ -0,0 +1,75 @@
+package com.fuint.business.userManager.service.impl;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.fuint.business.userManager.entity.LJUser;
+import com.fuint.business.userManager.mapper.LJUserMapper;
+import com.fuint.business.userManager.service.LJUserService;
+import com.fuint.common.dto.AccountInfo;
+import com.fuint.common.util.TokenUtil;
+import org.springframework.stereotype.Service;
+
+/**
+ * 会员信息 业务层
+ */
+@Service
+public class LJUserServiceImpl extends ServiceImpl implements LJUserService {
+ /**
+ * 根据条件分页查询会员信息
+ * @param page
+ * @param user
+ * @return
+ */
+ @Override
+ public IPage selectUserList(Page page, LJUser user) {
+ AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
+ Integer storeId = nowAccountInfo.getStoreId();
+ user.setStoreId(storeId);
+ return baseMapper.selectUserList(page,user);
+ }
+
+ /**
+ * 根据id查询会员信息
+ * @param id
+ * @return
+ */
+ @Override
+ public LJUser selectUserById(int id) {
+ return baseMapper.selectById(id);
+ }
+
+ /**
+ * 根据id删除会员信息
+ * @param id
+ */
+ @Override
+ public void deleteUserById(Integer id) {
+ baseMapper.deleteById(id);
+ }
+
+ /**
+ * 添加会员信息
+ * @param user
+ * @return
+ */
+ @Override
+ public int insertUser(LJUser user) {
+ AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
+ Integer storeId = nowAccountInfo.getStoreId();
+ user.setStoreId(storeId);
+ int row = baseMapper.insert(user);
+ return row;
+ }
+
+ /**
+ * 修改会员信息
+ * @param user
+ * @return
+ */
+ @Override
+ public int updateUser(LJUser user) {
+ int row = baseMapper.updateById(user);
+ return row;
+ }
+}