huwhois 5 jaren geleden
bovenliggende
commit
904e2cb562

+ 11 - 3
src/main/java/io/renren/modules/admin/entity/MeetingEntity.java

72
	/**
72
	/**
73
	 * 会议负责人
73
	 * 会议负责人
74
	 */
74
	 */
75
	private String serviceEmp;
75
	private String serviceName;
76
	/**
76
	/**
77
	 * 会议负责人ids
77
	 * 会议负责人id
78
	 */
78
	 */
79
	private String serviceIds;
79
	private String serviceId;
80
	/**
81
	 * 会议联系人id
82
	 */
83
	private String contactIds;
84
	/**
85
	 * 会议联系人
86
	 */
87
	private String contactNames;
80
	/**
88
	/**
81
	 * 线上报名截止时间
89
	 * 线上报名截止时间
82
	 */
90
	 */

+ 2 - 2
src/main/java/io/renren/modules/app/controller/AppMeetingController.java

53
    @GetMapping("/contact/{id}")
53
    @GetMapping("/contact/{id}")
54
    public R contact(@PathVariable("id") Long id) {
54
    public R contact(@PathVariable("id") Long id) {
55
        MeetingEntity meeting = meetingService.getById(id);
55
        MeetingEntity meeting = meetingService.getById(id);
56
        String serviceIds = meeting.getServiceIds();
56
        String contactIds = meeting.getContactIds();
57
57
58
        List<Map<String, Object>> list = employeeService.getContact(serviceIds);
58
        List<Map<String, Object>> list = employeeService.getContact(contactIds);
59
        return R.ok().put("list", list);
59
        return R.ok().put("list", list);
60
    }
60
    }
61
61

+ 1 - 1
src/main/java/io/renren/modules/app/controller/OrderController.java

37
 */
37
 */
38
@RestController
38
@RestController
39
@RequestMapping("app/order")
39
@RequestMapping("app/order")
40
public class OrderController {
40
public class AppOrderController {
41
    @Autowired
41
    @Autowired
42
    private AttendersService attendersService;
42
    private AttendersService attendersService;
43
    @Autowired
43
    @Autowired

+ 2 - 2
src/main/java/io/renren/modules/app/dao/UserDao.java

24
 */
24
 */
25
@Mapper
25
@Mapper
26
public interface UserDao extends BaseMapper<UserEntity> {
26
public interface UserDao extends BaseMapper<UserEntity> {
27
    @Select("select p.order_id, p.attenders_id as attendersId, (select a.name from attenders as a where a.id=p.attenders_id) as attendersName,  (select a.organization from attenders as a where a.id=p.attenders_id) as organization, (select tf.name from types_of_fee as tf where tf.id=p.pay_type) as typeName, p.pay_time, (select m.name_cn from meeting as m where m.id=p.meeting_id) as meetingName from payment as p where p.attenders_id in  (select a.id from attenders as a where a.member_id=#{member_id});")
27
    @Select("select p.id, p.order_id orderId, mem.truename, mem.organization, p.pay_time payTime,p.is_pay isPay,(select m.name_cn from meeting as m where m.id=p.meeting_id) as meetingName from attenders join payment p on attenders.id=p.attenders_id join member mem on mem.id=attenders.member_id where attenders.member_id=#{memberId};")
28
    List<Map<String, Object>> queryOrderList(Long memberId);
28
    List<Map<String, Object>> queryOrderList(Long memberId);
29
29
30
    @Select("select a.name as attendersName,a.meeting_id as meetingId,a.position_id as position,(select m.name_cn from meeting as m where m.id=a.meeting_id) as meetingName ,(select m.start_time from meeting as m where m.id=a.meeting_id) as startTime,(select m.end_time from meeting as m where m.id=a.meeting_id) as endTime,(select p.is_pay from payment as p where p.attenders_id = a.id) as isCheck from attenders as a where a.id = #{attendersId};")
30
    @Select("select mem.truename, mem.organization, mem.position, (select m.name_cn from meeting as m where m.id=a.meeting_id) as meetingName, (select m.start_time from meeting as m where m.id=a.meeting_id) as startTime,(select m.end_time from meeting as m where m.id=a.meeting_id) as endTime,(select p.is_pay from payment as p where p.attenders_id = a.id) as IsPay from attenders a join member mem on mem.id=a.member_id where a.id = #{attendersId};")
31
    Map<String, Object> queryOrderInfoByAttendersId(Long attendersId);
31
    Map<String, Object> queryOrderInfoByAttendersId(Long attendersId);
32
32
33
    @Update("UPDATE member SET `password`=#{password}, `salt`=#{salt} WHERE `id`=#{id}")
33
    @Update("UPDATE member SET `password`=#{password}, `salt`=#{salt} WHERE `id`=#{id}")