Sfoglia il codice sorgente

attender payment moneyaccout

huwhois 5 anni fa
parent
commit
9d40bfd08d

+ 90 - 0
src/main/java/io/renren/modules/admin/attenders/controller/AttendersController.java

@ -0,0 +1,90 @@
1
package io.renren.modules.admin.attenders.controller;
2
3
import java.util.Arrays;
4
import java.util.Map;
5
6
import org.apache.shiro.authz.annotation.RequiresPermissions;
7
import org.springframework.beans.factory.annotation.Autowired;
8
import org.springframework.web.bind.annotation.PathVariable;
9
import org.springframework.web.bind.annotation.RequestBody;
10
import org.springframework.web.bind.annotation.RequestMapping;
11
import org.springframework.web.bind.annotation.RequestParam;
12
import org.springframework.web.bind.annotation.RestController;
13
14
import io.renren.modules.admin.attenders.entity.AttendersEntity;
15
import io.renren.modules.admin.attenders.service.AttendersService;
16
import io.renren.common.utils.PageUtils;
17
import io.renren.common.utils.R;
18
19
20
21
/**
22
 * 
23
 *
24
 * @author chenshun
25
 * @email sunlightcs@gmail.com
26
 * @date 2020-02-14 14:51:30
27
 */
28
@RestController
29
@RequestMapping("admin/attenders")
30
public class AttendersController {
31
    @Autowired
32
    private AttendersService attendersService;
33
34
    /**
35
     * 列表
36
     */
37
    @RequestMapping("/list")
38
    @RequiresPermissions("admin:attenders:list")
39
    public R list(@RequestParam Map<String, Object> params){
40
        PageUtils page = attendersService.queryPage(params);
41
42
        return R.ok().put("page", page);
43
    }
44
45
46
    /**
47
     * 信息
48
     */
49
    @RequestMapping("/info/{id}")
50
    @RequiresPermissions("admin:attenders:info")
51
    public R info(@PathVariable("id") Long id){
52
		AttendersEntity attenders = attendersService.getById(id);
53
54
        return R.ok().put("attenders", attenders);
55
    }
56
57
    /**
58
     * 保存
59
     */
60
    @RequestMapping("/save")
61
    @RequiresPermissions("admin:attenders:save")
62
    public R save(@RequestBody AttendersEntity attenders){
63
		attendersService.save(attenders);
64
65
        return R.ok();
66
    }
67
68
    /**
69
     * 修改
70
     */
71
    @RequestMapping("/update")
72
    @RequiresPermissions("admin:attenders:update")
73
    public R update(@RequestBody AttendersEntity attenders){
74
		attendersService.updateById(attenders);
75
76
        return R.ok();
77
    }
78
79
    /**
80
     * 删除
81
     */
82
    @RequestMapping("/delete")
83
    @RequiresPermissions("admin:attenders:delete")
84
    public R delete(@RequestBody Long[] ids){
85
		attendersService.removeByIds(Arrays.asList(ids));
86
87
        return R.ok();
88
    }
89
90
}

+ 17 - 0
src/main/java/io/renren/modules/admin/attenders/dao/AttendersDao.java

@ -0,0 +1,17 @@
1
package io.renren.modules.admin.attenders.dao;
2
3
import io.renren.modules.admin.attenders.entity.AttendersEntity;
4
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
import org.apache.ibatis.annotations.Mapper;
6
7
/**
8
 * 
9
 * 
10
 * @author chenshun
11
 * @email sunlightcs@gmail.com
12
 * @date 2020-02-14 14:51:30
13
 */
14
@Mapper
15
public interface AttendersDao extends BaseMapper<AttendersEntity> {
16
	
17
}

+ 116 - 0
src/main/java/io/renren/modules/admin/attenders/entity/AttendersEntity.java

@ -0,0 +1,116 @@
1
package io.renren.modules.admin.attenders.entity;
2
3
import com.baomidou.mybatisplus.annotation.TableId;
4
import com.baomidou.mybatisplus.annotation.TableName;
5
6
import java.io.Serializable;
7
import java.util.Date;
8
import lombok.Data;
9
10
/**
11
 * 
12
 * 
13
 * @author chenshun
14
 * @email sunlightcs@gmail.com
15
 * @date 2020-02-14 14:51:30
16
 */
17
@Data
18
@TableName("attenders")
19
public class AttendersEntity implements Serializable {
20
	private static final long serialVersionUID = 1L;
21
22
	/**
23
	 * 参会人员id
24
	 */
25
	@TableId
26
	private Long id;
27
	/**
28
	 * 会议id
29
	 */
30
	private Long meetingId;
31
	/**
32
	 * 会员id
33
	 */
34
	private Long memberId;
35
	/**
36
	 * 姓名
37
	 */
38
	private String name;
39
	/**
40
	 * 所属机构(单位名称、公司名称)
41
	 */
42
	private String organization;
43
	/**
44
	 * 职位
45
	 */
46
	private Long positionId;
47
	/**
48
	 * 职称
49
	 */
50
	private Long jobTitle;
51
	/**
52
	 * 电话
53
	 */
54
	private String phone;
55
	/**
56
	 * 邮箱
57
	 */
58
	private String email;
59
	/**
60
	 * 办公电话
61
	 */
62
	private String officephone;
63
	/**
64
	 * 参会人员类型id
65
	 */
66
	private Long typeId;
67
	/**
68
	 * 参会意向
69
	 */
70
	private Integer intention;
71
	/**
72
	 * 住宿要求
73
	 */
74
	private Integer room;
75
	/**
76
	 * 接送要求
77
	 */
78
	private Integer transfer;
79
	/**
80
	 * 负责人(员工id)
81
	 */
82
	private Long servicer;
83
	/**
84
	 * 备注
85
	 */
86
	private String note;
87
	/**
88
	 * 联系电话
89
	 */
90
	private Integer account;
91
	/**
92
	 * 联系邮箱
93
	 */
94
	private String emailLx;
95
	/**
96
	 * 创建时间
97
	 */
98
	private Date createTime;
99
	/**
100
	 * 修改时间
101
	 */
102
	private Date modifyTime;
103
	/**
104
	 * 创建者
105
	 */
106
	private Long creater;
107
	/**
108
	 * 修改者
109
	 */
110
	private Long modifier;
111
	/**
112
	 * 是否被删除 状态  0:正常   1:删除
113
	 */
114
	private Integer isDel;
115
116
}

+ 20 - 0
src/main/java/io/renren/modules/admin/attenders/service/AttendersService.java

@ -0,0 +1,20 @@
1
package io.renren.modules.admin.attenders.service;
2
3
import com.baomidou.mybatisplus.extension.service.IService;
4
import io.renren.common.utils.PageUtils;
5
import io.renren.modules.admin.attenders.entity.AttendersEntity;
6
7
import java.util.Map;
8
9
/**
10
 * 
11
 *
12
 * @author chenshun
13
 * @email sunlightcs@gmail.com
14
 * @date 2020-02-14 14:51:30
15
 */
16
public interface AttendersService extends IService<AttendersEntity> {
17
18
    PageUtils queryPage(Map<String, Object> params);
19
}
20

+ 29 - 0
src/main/java/io/renren/modules/admin/attenders/service/impl/AttendersServiceImpl.java

@ -0,0 +1,29 @@
1
package io.renren.modules.admin.attenders.service.impl;
2
3
import org.springframework.stereotype.Service;
4
import java.util.Map;
5
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
6
import com.baomidou.mybatisplus.core.metadata.IPage;
7
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
8
import io.renren.common.utils.PageUtils;
9
import io.renren.common.utils.Query;
10
11
import io.renren.modules.admin.attenders.dao.AttendersDao;
12
import io.renren.modules.admin.attenders.entity.AttendersEntity;
13
import io.renren.modules.admin.attenders.service.AttendersService;
14
15
16
@Service("attendersService")
17
public class AttendersServiceImpl extends ServiceImpl<AttendersDao, AttendersEntity> implements AttendersService {
18
19
    @Override
20
    public PageUtils queryPage(Map<String, Object> params) {
21
        IPage<AttendersEntity> page = this.page(
22
                new Query<AttendersEntity>().getPage(params),
23
                new QueryWrapper<AttendersEntity>()
24
        );
25
26
        return new PageUtils(page);
27
    }
28
29
}

+ 90 - 0
src/main/java/io/renren/modules/admin/payment/controller/PaymentController.java

@ -0,0 +1,90 @@
1
package io.renren.modules.admin.payment.controller;
2
3
import java.util.Arrays;
4
import java.util.Map;
5
6
import org.apache.shiro.authz.annotation.RequiresPermissions;
7
import org.springframework.beans.factory.annotation.Autowired;
8
import org.springframework.web.bind.annotation.PathVariable;
9
import org.springframework.web.bind.annotation.RequestBody;
10
import org.springframework.web.bind.annotation.RequestMapping;
11
import org.springframework.web.bind.annotation.RequestParam;
12
import org.springframework.web.bind.annotation.RestController;
13
14
import io.renren.modules.admin.payment.entity.PaymentEntity;
15
import io.renren.modules.admin.payment.service.PaymentService;
16
import io.renren.common.utils.PageUtils;
17
import io.renren.common.utils.R;
18
19
20
21
/**
22
 * 
23
 *
24
 * @author chenshun
25
 * @email sunlightcs@gmail.com
26
 * @date 2020-02-14 14:51:30
27
 */
28
@RestController
29
@RequestMapping("admin/payment")
30
public class PaymentController {
31
    @Autowired
32
    private PaymentService paymentService;
33
34
    /**
35
     * 列表
36
     */
37
    @RequestMapping("/list")
38
    @RequiresPermissions("admin:payment:list")
39
    public R list(@RequestParam Map<String, Object> params){
40
        PageUtils page = paymentService.queryPage(params);
41
42
        return R.ok().put("page", page);
43
    }
44
45
46
    /**
47
     * 信息
48
     */
49
    @RequestMapping("/info/{id}")
50
    @RequiresPermissions("admin:payment:info")
51
    public R info(@PathVariable("id") Long id){
52
		PaymentEntity payment = paymentService.getById(id);
53
54
        return R.ok().put("payment", payment);
55
    }
56
57
    /**
58
     * 保存
59
     */
60
    @RequestMapping("/save")
61
    @RequiresPermissions("admin:payment:save")
62
    public R save(@RequestBody PaymentEntity payment){
63
		paymentService.save(payment);
64
65
        return R.ok();
66
    }
67
68
    /**
69
     * 修改
70
     */
71
    @RequestMapping("/update")
72
    @RequiresPermissions("admin:payment:update")
73
    public R update(@RequestBody PaymentEntity payment){
74
		paymentService.updateById(payment);
75
76
        return R.ok();
77
    }
78
79
    /**
80
     * 删除
81
     */
82
    @RequestMapping("/delete")
83
    @RequiresPermissions("admin:payment:delete")
84
    public R delete(@RequestBody Long[] ids){
85
		paymentService.removeByIds(Arrays.asList(ids));
86
87
        return R.ok();
88
    }
89
90
}

+ 17 - 0
src/main/java/io/renren/modules/admin/payment/dao/PaymentDao.java

@ -0,0 +1,17 @@
1
package io.renren.modules.admin.payment.dao;
2
3
import io.renren.modules.admin.payment.entity.PaymentEntity;
4
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
import org.apache.ibatis.annotations.Mapper;
6
7
/**
8
 * 
9
 * 
10
 * @author chenshun
11
 * @email sunlightcs@gmail.com
12
 * @date 2020-02-14 14:51:30
13
 */
14
@Mapper
15
public interface PaymentDao extends BaseMapper<PaymentEntity> {
16
	
17
}

+ 85 - 0
src/main/java/io/renren/modules/admin/payment/entity/PaymentEntity.java

@ -0,0 +1,85 @@
1
package io.renren.modules.admin.payment.entity;
2
3
import com.baomidou.mybatisplus.annotation.TableId;
4
import com.baomidou.mybatisplus.annotation.TableName;
5
6
import java.math.BigDecimal;
7
import java.io.Serializable;
8
import java.util.Date;
9
import lombok.Data;
10
11
/**
12
 * 
13
 * 
14
 * @author chenshun
15
 * @email sunlightcs@gmail.com
16
 * @date 2020-02-14 14:51:30
17
 */
18
@Data
19
@TableName("payment")
20
public class PaymentEntity implements Serializable {
21
	private static final long serialVersionUID = 1L;
22
23
	/**
24
	 * 缴费信息id
25
	 */
26
	@TableId
27
	private Long id;
28
	/**
29
	 * 订单编号
30
	 */
31
	private Long orderId;
32
	/**
33
	 * 公司id
34
	 */
35
	private Long companyId;
36
	/**
37
	 * 参会人员id
38
	 */
39
	private Long attenders;
40
	/**
41
	 * 缴费时间
42
	 */
43
	private Date payTime;
44
	/**
45
	 * 缴费方式
46
	 */
47
	private Integer payType;
48
	/**
49
	 * 缴费项目
50
	 */
51
	private String payOption;
52
	/**
53
	 * 金额
54
	 */
55
	private BigDecimal money;
56
	/**
57
	 * 发票抬头
58
	 */
59
	private String taxTitle;
60
	/**
61
	 * 纳税人税号
62
	 */
63
	private String taxNumber;
64
	/**
65
	 * 地址 电话
66
	 */
67
	private String addrPhone;
68
	/**
69
	 * 开户行及账号
70
	 */
71
	private String bankAddrAccount;
72
	/**
73
	 * 邮寄地址
74
	 */
75
	private String taxAddress;
76
	/**
77
	 * 创建时间
78
	 */
79
	private Date createTime;
80
	/**
81
	 * 是否被删除 状态  0:正常   1:删除
82
	 */
83
	private Integer isDel;
84
85
}

+ 20 - 0
src/main/java/io/renren/modules/admin/payment/service/PaymentService.java

@ -0,0 +1,20 @@
1
package io.renren.modules.admin.payment.service;
2
3
import com.baomidou.mybatisplus.extension.service.IService;
4
import io.renren.common.utils.PageUtils;
5
import io.renren.modules.admin.payment.entity.PaymentEntity;
6
7
import java.util.Map;
8
9
/**
10
 * 
11
 *
12
 * @author chenshun
13
 * @email sunlightcs@gmail.com
14
 * @date 2020-02-14 14:51:30
15
 */
16
public interface PaymentService extends IService<PaymentEntity> {
17
18
    PageUtils queryPage(Map<String, Object> params);
19
}
20

+ 29 - 0
src/main/java/io/renren/modules/admin/payment/service/impl/PaymentServiceImpl.java

@ -0,0 +1,29 @@
1
package io.renren.modules.admin.payment.service.impl;
2
3
import org.springframework.stereotype.Service;
4
import java.util.Map;
5
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
6
import com.baomidou.mybatisplus.core.metadata.IPage;
7
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
8
import io.renren.common.utils.PageUtils;
9
import io.renren.common.utils.Query;
10
11
import io.renren.modules.admin.payment.dao.PaymentDao;
12
import io.renren.modules.admin.payment.entity.PaymentEntity;
13
import io.renren.modules.admin.payment.service.PaymentService;
14
15
16
@Service("paymentService")
17
public class PaymentServiceImpl extends ServiceImpl<PaymentDao, PaymentEntity> implements PaymentService {
18
19
    @Override
20
    public PageUtils queryPage(Map<String, Object> params) {
21
        IPage<PaymentEntity> page = this.page(
22
                new Query<PaymentEntity>().getPage(params),
23
                new QueryWrapper<PaymentEntity>()
24
        );
25
26
        return new PageUtils(page);
27
    }
28
29
}