第二次提交

dongdingding
dongdingding 2 years ago
parent daea0bb505
commit cf373589a5

@ -0,0 +1,106 @@
package com.ruoyi.zhiyuanzhe.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.zhiyuanzhe.domain.BActivity;
import com.ruoyi.zhiyuanzhe.service.IBActivityService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-09-18
*/
@RestController
@RequestMapping("/system/activity")
public class BActivityController extends BaseController
{
@Autowired
private IBActivityService bActivityService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:activity:list')")
@GetMapping("/list")
public TableDataInfo list(BActivity bActivity)
{
startPage();
List<BActivity> list = bActivityService.selectBActivityList(bActivity);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:activity:export')")
@Log(title = "活动管理", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BActivity bActivity)
{
List<BActivity> list = bActivityService.selectBActivityList(bActivity);
ExcelUtil<BActivity> util = new ExcelUtil<BActivity>(BActivity.class);
util.exportExcel(response, list, "活动管理数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:activity:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(bActivityService.selectBActivityById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:activity:add')")
@Log(title = "活动管理", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BActivity bActivity)
{
return toAjax(bActivityService.insertBActivity(bActivity));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:activity:edit')")
@Log(title = "活动管理", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BActivity bActivity)
{
return toAjax(bActivityService.updateBActivity(bActivity));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:activity:remove')")
@Log(title = "活动管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(bActivityService.deleteBActivityByIds(ids));
}
}

@ -0,0 +1,106 @@
package com.ruoyi.zhiyuanzhe.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.zhiyuanzhe.domain.BActivityPoints;
import com.ruoyi.zhiyuanzhe.service.IBActivityPointsService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-09-19
*/
@RestController
@RequestMapping("/system/points")
public class BActivityPointsController extends BaseController
{
@Autowired
private IBActivityPointsService bActivityPointsService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:points:list')")
@GetMapping("/list")
public TableDataInfo list(BActivityPoints bActivityPoints)
{
startPage();
List<BActivityPoints> list = bActivityPointsService.selectBActivityPointsList(bActivityPoints);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:points:export')")
@Log(title = "活动积分", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BActivityPoints bActivityPoints)
{
List<BActivityPoints> list = bActivityPointsService.selectBActivityPointsList(bActivityPoints);
ExcelUtil<BActivityPoints> util = new ExcelUtil<BActivityPoints>(BActivityPoints.class);
util.exportExcel(response, list, "活动积分数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:points:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(bActivityPointsService.selectBActivityPointsById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:points:add')")
@Log(title = "活动积分", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BActivityPoints bActivityPoints)
{
return toAjax(bActivityPointsService.insertBActivityPoints(bActivityPoints));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:points:edit')")
@Log(title = "活动积分", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BActivityPoints bActivityPoints)
{
return toAjax(bActivityPointsService.updateBActivityPoints(bActivityPoints));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:points:remove')")
@Log(title = "活动积分", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(bActivityPointsService.deleteBActivityPointsByIds(ids));
}
}

@ -0,0 +1,106 @@
package com.ruoyi.zhiyuanzhe.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.zhiyuanzhe.domain.BCertificates;
import com.ruoyi.zhiyuanzhe.service.IBCertificatesService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-09-19
*/
@RestController
@RequestMapping("/system/certificates")
public class BCertificatesController extends BaseController
{
@Autowired
private IBCertificatesService bCertificatesService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:certificates:list')")
@GetMapping("/list")
public TableDataInfo list(BCertificates bCertificates)
{
startPage();
List<BCertificates> list = bCertificatesService.selectBCertificatesList(bCertificates);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:certificates:export')")
@Log(title = "证书管理", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BCertificates bCertificates)
{
List<BCertificates> list = bCertificatesService.selectBCertificatesList(bCertificates);
ExcelUtil<BCertificates> util = new ExcelUtil<BCertificates>(BCertificates.class);
util.exportExcel(response, list, "证书管理数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:certificates:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(bCertificatesService.selectBCertificatesById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:certificates:add')")
@Log(title = "证书管理", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BCertificates bCertificates)
{
return toAjax(bCertificatesService.insertBCertificates(bCertificates));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:certificates:edit')")
@Log(title = "证书管理", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BCertificates bCertificates)
{
return toAjax(bCertificatesService.updateBCertificates(bCertificates));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:certificates:remove')")
@Log(title = "证书管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(bCertificatesService.deleteBCertificatesByIds(ids));
}
}

@ -0,0 +1,106 @@
package com.ruoyi.zhiyuanzhe.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.zhiyuanzhe.domain.BCheckRecords;
import com.ruoyi.zhiyuanzhe.service.IBCheckRecordsService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-09-19
*/
@RestController
@RequestMapping("/system/checkrecords")
public class BCheckRecordsController extends BaseController
{
@Autowired
private IBCheckRecordsService bCheckRecordsService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:records:list')")
@GetMapping("/list")
public TableDataInfo list(BCheckRecords bCheckRecords)
{
startPage();
List<BCheckRecords> list = bCheckRecordsService.selectBCheckRecordsList(bCheckRecords);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:records:export')")
@Log(title = "物流记录", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BCheckRecords bCheckRecords)
{
List<BCheckRecords> list = bCheckRecordsService.selectBCheckRecordsList(bCheckRecords);
ExcelUtil<BCheckRecords> util = new ExcelUtil<BCheckRecords>(BCheckRecords.class);
util.exportExcel(response, list, "物流记录数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:records:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(bCheckRecordsService.selectBCheckRecordsById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:records:add')")
@Log(title = "物流记录", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BCheckRecords bCheckRecords)
{
return toAjax(bCheckRecordsService.insertBCheckRecords(bCheckRecords));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:records:edit')")
@Log(title = "物流记录", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BCheckRecords bCheckRecords)
{
return toAjax(bCheckRecordsService.updateBCheckRecords(bCheckRecords));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:records:remove')")
@Log(title = "物流记录", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(bCheckRecordsService.deleteBCheckRecordsByIds(ids));
}
}

@ -0,0 +1,106 @@
package com.ruoyi.zhiyuanzhe.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.zhiyuanzhe.domain.BDistributionRecords;
import com.ruoyi.zhiyuanzhe.service.IBDistributionRecordsService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-09-19
*/
@RestController
@RequestMapping("/system/dsbrecords")
public class BDistributionRecordsController extends BaseController
{
@Autowired
private IBDistributionRecordsService bDistributionRecordsService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:records:list')")
@GetMapping("/list")
public TableDataInfo list(BDistributionRecords bDistributionRecords)
{
startPage();
List<BDistributionRecords> list = bDistributionRecordsService.selectBDistributionRecordsList(bDistributionRecords);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:records:export')")
@Log(title = "发放记录", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BDistributionRecords bDistributionRecords)
{
List<BDistributionRecords> list = bDistributionRecordsService.selectBDistributionRecordsList(bDistributionRecords);
ExcelUtil<BDistributionRecords> util = new ExcelUtil<BDistributionRecords>(BDistributionRecords.class);
util.exportExcel(response, list, "发放记录数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:records:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(bDistributionRecordsService.selectBDistributionRecordsById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:records:add')")
@Log(title = "发放记录", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BDistributionRecords bDistributionRecords)
{
return toAjax(bDistributionRecordsService.insertBDistributionRecords(bDistributionRecords));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:records:edit')")
@Log(title = "发放记录", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BDistributionRecords bDistributionRecords)
{
return toAjax(bDistributionRecordsService.updateBDistributionRecords(bDistributionRecords));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:records:remove')")
@Log(title = "发放记录", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(bDistributionRecordsService.deleteBDistributionRecordsByIds(ids));
}
}

@ -0,0 +1,106 @@
package com.ruoyi.zhiyuanzhe.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.zhiyuanzhe.domain.BExchangeRecords;
import com.ruoyi.zhiyuanzhe.service.IBExchangeRecordsService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-09-19
*/
@RestController
@RequestMapping("/system/records")
public class BExchangeRecordsController extends BaseController
{
@Autowired
private IBExchangeRecordsService bExchangeRecordsService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:records:list')")
@GetMapping("/list")
public TableDataInfo list(BExchangeRecords bExchangeRecords)
{
startPage();
List<BExchangeRecords> list = bExchangeRecordsService.selectBExchangeRecordsList(bExchangeRecords);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:records:export')")
@Log(title = "兑换记录", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BExchangeRecords bExchangeRecords)
{
List<BExchangeRecords> list = bExchangeRecordsService.selectBExchangeRecordsList(bExchangeRecords);
ExcelUtil<BExchangeRecords> util = new ExcelUtil<BExchangeRecords>(BExchangeRecords.class);
util.exportExcel(response, list, "兑换记录数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:records:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(bExchangeRecordsService.selectBExchangeRecordsById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:records:add')")
@Log(title = "兑换记录", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BExchangeRecords bExchangeRecords)
{
return toAjax(bExchangeRecordsService.insertBExchangeRecords(bExchangeRecords));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:records:edit')")
@Log(title = "兑换记录", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BExchangeRecords bExchangeRecords)
{
return toAjax(bExchangeRecordsService.updateBExchangeRecords(bExchangeRecords));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:records:remove')")
@Log(title = "兑换记录", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(bExchangeRecordsService.deleteBExchangeRecordsByIds(ids));
}
}

@ -0,0 +1,106 @@
package com.ruoyi.zhiyuanzhe.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.zhiyuanzhe.domain.BInvite;
import com.ruoyi.zhiyuanzhe.service.IBInviteService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-09-19
*/
@RestController
@RequestMapping("/system/invite")
public class BInviteController extends BaseController
{
@Autowired
private IBInviteService bInviteService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:invite:list')")
@GetMapping("/list")
public TableDataInfo list(BInvite bInvite)
{
startPage();
List<BInvite> list = bInviteService.selectBInviteList(bInvite);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:invite:export')")
@Log(title = "邀请", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BInvite bInvite)
{
List<BInvite> list = bInviteService.selectBInviteList(bInvite);
ExcelUtil<BInvite> util = new ExcelUtil<BInvite>(BInvite.class);
util.exportExcel(response, list, "邀请数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:invite:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(bInviteService.selectBInviteById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:invite:add')")
@Log(title = "邀请", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BInvite bInvite)
{
return toAjax(bInviteService.insertBInvite(bInvite));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:invite:edit')")
@Log(title = "邀请", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BInvite bInvite)
{
return toAjax(bInviteService.updateBInvite(bInvite));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:invite:remove')")
@Log(title = "邀请", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(bInviteService.deleteBInviteByIds(ids));
}
}

@ -0,0 +1,106 @@
package com.ruoyi.zhiyuanzhe.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.zhiyuanzhe.domain.BPersonTags;
import com.ruoyi.zhiyuanzhe.service.IBPersonTagsService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-09-18
*/
@RestController
@RequestMapping("/system/tags")
public class BPersonTagsController extends BaseController
{
@Autowired
private IBPersonTagsService bPersonTagsService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:tags:list')")
@GetMapping("/list")
public TableDataInfo list(BPersonTags bPersonTags)
{
startPage();
List<BPersonTags> list = bPersonTagsService.selectBPersonTagsList(bPersonTags);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:tags:export')")
@Log(title = "人标签", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BPersonTags bPersonTags)
{
List<BPersonTags> list = bPersonTagsService.selectBPersonTagsList(bPersonTags);
ExcelUtil<BPersonTags> util = new ExcelUtil<BPersonTags>(BPersonTags.class);
util.exportExcel(response, list, "人标签数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:tags:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(bPersonTagsService.selectBPersonTagsById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:tags:add')")
@Log(title = "人标签", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BPersonTags bPersonTags)
{
return toAjax(bPersonTagsService.insertBPersonTags(bPersonTags));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:tags:edit')")
@Log(title = "人标签", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BPersonTags bPersonTags)
{
return toAjax(bPersonTagsService.updateBPersonTags(bPersonTags));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:tags:remove')")
@Log(title = "人标签", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(bPersonTagsService.deleteBPersonTagsByIds(ids));
}
}

@ -0,0 +1,311 @@
package com.ruoyi.zhiyuanzhe.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* b_activity
*
* @author ruoyi
* @date 2023-09-18
*/
public class BActivity extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 编号 */
private Long id;
/** 活动名称 */
@Excel(name = "活动名称")
private String name;
/** 活动内容 */
@Excel(name = "活动内容")
private String content;
/** 活动举办方 */
@Excel(name = "活动举办方")
private String publisher;
/** 活动时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "活动时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date activityTime;
/** 活动地址 */
@Excel(name = "活动地址")
private String address;
/** 年龄 */
@Excel(name = "年龄")
private String ageRange;
/** 小区 */
@Excel(name = "小区")
private String housingRange;
/** 文化程度 */
@Excel(name = "文化程度")
private String educationRange;
/** 兴趣爱好 */
@Excel(name = "兴趣爱好")
private String interestRange;
/** 政治面貌 */
@Excel(name = "政治面貌")
private String politicalRange;
/** 性别 */
@Excel(name = "性别")
private String sexRange;
/** 国籍 */
@Excel(name = "国籍")
private String nationalityRange;
/** 专业类型 */
@Excel(name = "专业类型")
private String professionalRange;
/** 行业类型 */
@Excel(name = "行业类型")
private String industryRange;
/** 院校 */
@Excel(name = "院校")
private String schoolRange;
/** 创建者ID */
@Excel(name = "创建者ID")
private Long createId;
/** 更新者ID */
@Excel(name = "更新者ID")
private Long updateId;
/** 用户权限id */
@Excel(name = "用户权限id")
private Long userId;
/** 部门权限id */
@Excel(name = "部门权限id")
private Long deptId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setContent(String content)
{
this.content = content;
}
public String getContent()
{
return content;
}
public void setPublisher(String publisher)
{
this.publisher = publisher;
}
public String getPublisher()
{
return publisher;
}
public void setActivityTime(Date activityTime)
{
this.activityTime = activityTime;
}
public Date getActivityTime()
{
return activityTime;
}
public void setAddress(String address)
{
this.address = address;
}
public String getAddress()
{
return address;
}
public void setAgeRange(String ageRange)
{
this.ageRange = ageRange;
}
public String getAgeRange()
{
return ageRange;
}
public void setHousingRange(String housingRange)
{
this.housingRange = housingRange;
}
public String getHousingRange()
{
return housingRange;
}
public void setEducationRange(String educationRange)
{
this.educationRange = educationRange;
}
public String getEducationRange()
{
return educationRange;
}
public void setInterestRange(String interestRange)
{
this.interestRange = interestRange;
}
public String getInterestRange()
{
return interestRange;
}
public void setPoliticalRange(String politicalRange)
{
this.politicalRange = politicalRange;
}
public String getPoliticalRange()
{
return politicalRange;
}
public void setSexRange(String sexRange)
{
this.sexRange = sexRange;
}
public String getSexRange()
{
return sexRange;
}
public void setNationalityRange(String nationalityRange)
{
this.nationalityRange = nationalityRange;
}
public String getNationalityRange()
{
return nationalityRange;
}
public void setProfessionalRange(String professionalRange)
{
this.professionalRange = professionalRange;
}
public String getProfessionalRange()
{
return professionalRange;
}
public void setIndustryRange(String industryRange)
{
this.industryRange = industryRange;
}
public String getIndustryRange()
{
return industryRange;
}
public void setSchoolRange(String schoolRange)
{
this.schoolRange = schoolRange;
}
public String getSchoolRange()
{
return schoolRange;
}
public void setCreateId(Long createId)
{
this.createId = createId;
}
public Long getCreateId()
{
return createId;
}
public void setUpdateId(Long updateId)
{
this.updateId = updateId;
}
public Long getUpdateId()
{
return updateId;
}
public void setUserId(Long userId)
{
this.userId = userId;
}
public Long getUserId()
{
return userId;
}
public void setDeptId(Long deptId)
{
this.deptId = deptId;
}
public Long getDeptId()
{
return deptId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("content", getContent())
.append("publisher", getPublisher())
.append("activityTime", getActivityTime())
.append("address", getAddress())
.append("ageRange", getAgeRange())
.append("housingRange", getHousingRange())
.append("educationRange", getEducationRange())
.append("interestRange", getInterestRange())
.append("politicalRange", getPoliticalRange())
.append("sexRange", getSexRange())
.append("nationalityRange", getNationalityRange())
.append("professionalRange", getProfessionalRange())
.append("industryRange", getIndustryRange())
.append("schoolRange", getSchoolRange())
.append("createId", getCreateId())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateId", getUpdateId())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.append("userId", getUserId())
.append("deptId", getDeptId())
.toString();
}
}

@ -0,0 +1,140 @@
package com.ruoyi.zhiyuanzhe.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* b_activity_points
*
* @author ruoyi
* @date 2023-09-19
*/
public class BActivityPoints extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 编号 */
private Long id;
/** 活动id */
@Excel(name = "活动id")
private Long activityId;
/** 用户id */
@Excel(name = "用户id")
private Long uId;
/** 积分 */
@Excel(name = "积分")
private String points;
/** 创建者ID */
@Excel(name = "创建者ID")
private Long createId;
/** 更新者ID */
@Excel(name = "更新者ID")
private Long updateId;
/** 用户权限id */
@Excel(name = "用户权限id")
private Long userId;
/** 部门权限id */
@Excel(name = "部门权限id")
private Long deptId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setActivityId(Long activityId)
{
this.activityId = activityId;
}
public Long getActivityId()
{
return activityId;
}
public void setuId(Long uId)
{
this.uId = uId;
}
public Long getuId()
{
return uId;
}
public void setPoints(String points)
{
this.points = points;
}
public String getPoints()
{
return points;
}
public void setCreateId(Long createId)
{
this.createId = createId;
}
public Long getCreateId()
{
return createId;
}
public void setUpdateId(Long updateId)
{
this.updateId = updateId;
}
public Long getUpdateId()
{
return updateId;
}
public void setUserId(Long userId)
{
this.userId = userId;
}
public Long getUserId()
{
return userId;
}
public void setDeptId(Long deptId)
{
this.deptId = deptId;
}
public Long getDeptId()
{
return deptId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("activityId", getActivityId())
.append("uId", getuId())
.append("points", getPoints())
.append("createId", getCreateId())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateId", getUpdateId())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.append("userId", getUserId())
.append("deptId", getDeptId())
.toString();
}
}

@ -0,0 +1,185 @@
package com.ruoyi.zhiyuanzhe.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* b_certificates
*
* @author ruoyi
* @date 2023-09-19
*/
public class BCertificates extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 编号 */
private Long id;
/** 证书名称 */
@Excel(name = "证书名称")
private String name;
/** 证书类型0个性化证书 0一次性证书 */
@Excel(name = "证书类型", readConverterExp = "0=个性化证书,0=一次性证书")
private String type;
/** 证书封面 */
@Excel(name = "证书封面")
private String cover;
/** 证书内容 */
@Excel(name = "证书内容")
private String content;
/** 证书时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "证书时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date datetime;
/** 服务时长 */
@Excel(name = "服务时长")
private Long serviceDuration;
/** 创建者ID */
@Excel(name = "创建者ID")
private Long createId;
/** 更新者ID */
@Excel(name = "更新者ID")
private Long updateId;
/** 用户权限id */
@Excel(name = "用户权限id")
private Long userId;
/** 部门权限id */
@Excel(name = "部门权限id")
private Long deptId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setType(String type)
{
this.type = type;
}
public String getType()
{
return type;
}
public void setCover(String cover)
{
this.cover = cover;
}
public String getCover()
{
return cover;
}
public void setContent(String content)
{
this.content = content;
}
public String getContent()
{
return content;
}
public void setDatetime(Date datetime)
{
this.datetime = datetime;
}
public Date getDatetime()
{
return datetime;
}
public void setServiceDuration(Long serviceDuration)
{
this.serviceDuration = serviceDuration;
}
public Long getServiceDuration()
{
return serviceDuration;
}
public void setCreateId(Long createId)
{
this.createId = createId;
}
public Long getCreateId()
{
return createId;
}
public void setUpdateId(Long updateId)
{
this.updateId = updateId;
}
public Long getUpdateId()
{
return updateId;
}
public void setUserId(Long userId)
{
this.userId = userId;
}
public Long getUserId()
{
return userId;
}
public void setDeptId(Long deptId)
{
this.deptId = deptId;
}
public Long getDeptId()
{
return deptId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("type", getType())
.append("cover", getCover())
.append("content", getContent())
.append("datetime", getDatetime())
.append("serviceDuration", getServiceDuration())
.append("createId", getCreateId())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateId", getUpdateId())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.append("userId", getUserId())
.append("deptId", getDeptId())
.toString();
}
}

@ -0,0 +1,154 @@
package com.ruoyi.zhiyuanzhe.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* b_check_records
*
* @author ruoyi
* @date 2023-09-19
*/
public class BCheckRecords extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 编号 */
private Long id;
/** 证书id */
@Excel(name = "证书id")
private Long certificateId;
/** 收件人 */
@Excel(name = "收件人")
private String recipient;
/** 收件地址 */
@Excel(name = "收件地址")
private String shippingAddress;
/** 收件电话 */
@Excel(name = "收件电话")
private String receivingPhone;
/** 创建者ID */
@Excel(name = "创建者ID")
private Long createId;
/** 更新者ID */
@Excel(name = "更新者ID")
private Long updateId;
/** 用户权限id */
@Excel(name = "用户权限id")
private Long userId;
/** 部门权限id */
@Excel(name = "部门权限id")
private Long deptId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCertificateId(Long certificateId)
{
this.certificateId = certificateId;
}
public Long getCertificateId()
{
return certificateId;
}
public void setRecipient(String recipient)
{
this.recipient = recipient;
}
public String getRecipient()
{
return recipient;
}
public void setShippingAddress(String shippingAddress)
{
this.shippingAddress = shippingAddress;
}
public String getShippingAddress()
{
return shippingAddress;
}
public void setReceivingPhone(String receivingPhone)
{
this.receivingPhone = receivingPhone;
}
public String getReceivingPhone()
{
return receivingPhone;
}
public void setCreateId(Long createId)
{
this.createId = createId;
}
public Long getCreateId()
{
return createId;
}
public void setUpdateId(Long updateId)
{
this.updateId = updateId;
}
public Long getUpdateId()
{
return updateId;
}
public void setUserId(Long userId)
{
this.userId = userId;
}
public Long getUserId()
{
return userId;
}
public void setDeptId(Long deptId)
{
this.deptId = deptId;
}
public Long getDeptId()
{
return deptId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("certificateId", getCertificateId())
.append("recipient", getRecipient())
.append("shippingAddress", getShippingAddress())
.append("receivingPhone", getReceivingPhone())
.append("createId", getCreateId())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateId", getUpdateId())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.append("userId", getUserId())
.append("deptId", getDeptId())
.toString();
}
}

@ -0,0 +1,154 @@
package com.ruoyi.zhiyuanzhe.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* b_distribution_records
*
* @author ruoyi
* @date 2023-09-19
*/
public class BDistributionRecords extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 编号 */
private Long id;
/** 活动id */
@Excel(name = "活动id")
private Long activityId;
/** 证书id */
@Excel(name = "证书id")
private Long certificateId;
/** 用户id */
@Excel(name = "用户id")
private Long uId;
/** 证书内容 */
@Excel(name = "证书内容")
private String content;
/** 创建者ID */
@Excel(name = "创建者ID")
private Long createId;
/** 更新者ID */
@Excel(name = "更新者ID")
private Long updateId;
/** 用户权限id */
@Excel(name = "用户权限id")
private Long userId;
/** 部门权限id */
@Excel(name = "部门权限id")
private Long deptId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setActivityId(Long activityId)
{
this.activityId = activityId;
}
public Long getActivityId()
{
return activityId;
}
public void setCertificateId(Long certificateId)
{
this.certificateId = certificateId;
}
public Long getCertificateId()
{
return certificateId;
}
public void setuId(Long uId)
{
this.uId = uId;
}
public Long getuId()
{
return uId;
}
public void setContent(String content)
{
this.content = content;
}
public String getContent()
{
return content;
}
public void setCreateId(Long createId)
{
this.createId = createId;
}
public Long getCreateId()
{
return createId;
}
public void setUpdateId(Long updateId)
{
this.updateId = updateId;
}
public Long getUpdateId()
{
return updateId;
}
public void setUserId(Long userId)
{
this.userId = userId;
}
public Long getUserId()
{
return userId;
}
public void setDeptId(Long deptId)
{
this.deptId = deptId;
}
public Long getDeptId()
{
return deptId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("activityId", getActivityId())
.append("certificateId", getCertificateId())
.append("uId", getuId())
.append("content", getContent())
.append("createId", getCreateId())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateId", getUpdateId())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.append("userId", getUserId())
.append("deptId", getDeptId())
.toString();
}
}

@ -0,0 +1,140 @@
package com.ruoyi.zhiyuanzhe.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* b_exchange_records
*
* @author ruoyi
* @date 2023-09-19
*/
public class BExchangeRecords extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 编号 */
private Long id;
/** 活动id */
@Excel(name = "活动id")
private Long activityId;
/** 证书id */
@Excel(name = "证书id")
private Long certificateId;
/** 用户id */
@Excel(name = "用户id")
private Long uId;
/** 创建者ID */
@Excel(name = "创建者ID")
private Long createId;
/** 更新者ID */
@Excel(name = "更新者ID")
private Long updateId;
/** 用户权限id */
@Excel(name = "用户权限id")
private Long userId;
/** 部门权限id */
@Excel(name = "部门权限id")
private Long deptId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setActivityId(Long activityId)
{
this.activityId = activityId;
}
public Long getActivityId()
{
return activityId;
}
public void setCertificateId(Long certificateId)
{
this.certificateId = certificateId;
}
public Long getCertificateId()
{
return certificateId;
}
public void setuId(Long uId)
{
this.uId = uId;
}
public Long getuId()
{
return uId;
}
public void setCreateId(Long createId)
{
this.createId = createId;
}
public Long getCreateId()
{
return createId;
}
public void setUpdateId(Long updateId)
{
this.updateId = updateId;
}
public Long getUpdateId()
{
return updateId;
}
public void setUserId(Long userId)
{
this.userId = userId;
}
public Long getUserId()
{
return userId;
}
public void setDeptId(Long deptId)
{
this.deptId = deptId;
}
public Long getDeptId()
{
return deptId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("activityId", getActivityId())
.append("certificateId", getCertificateId())
.append("uId", getuId())
.append("createId", getCreateId())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateId", getUpdateId())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.append("userId", getUserId())
.append("deptId", getDeptId())
.toString();
}
}

@ -0,0 +1,126 @@
package com.ruoyi.zhiyuanzhe.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* b_invite
*
* @author ruoyi
* @date 2023-09-19
*/
public class BInvite extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 编号 */
private Long id;
/** 用户id */
@Excel(name = "用户id")
private Long uId;
/** 活动id */
@Excel(name = "活动id")
private Long activityId;
/** 创建者ID */
@Excel(name = "创建者ID")
private Long createId;
/** 更新者ID */
@Excel(name = "更新者ID")
private Long updateId;
/** 用户权限id */
@Excel(name = "用户权限id")
private Long userId;
/** 部门权限id */
@Excel(name = "部门权限id")
private Long deptId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setuId(Long uId)
{
this.uId = uId;
}
public Long getuId()
{
return uId;
}
public void setActivityId(Long activityId)
{
this.activityId = activityId;
}
public Long getActivityId()
{
return activityId;
}
public void setCreateId(Long createId)
{
this.createId = createId;
}
public Long getCreateId()
{
return createId;
}
public void setUpdateId(Long updateId)
{
this.updateId = updateId;
}
public Long getUpdateId()
{
return updateId;
}
public void setUserId(Long userId)
{
this.userId = userId;
}
public Long getUserId()
{
return userId;
}
public void setDeptId(Long deptId)
{
this.deptId = deptId;
}
public Long getDeptId()
{
return deptId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("uId", getuId())
.append("activityId", getActivityId())
.append("createId", getCreateId())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateId", getUpdateId())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.append("userId", getUserId())
.append("deptId", getDeptId())
.toString();
}
}

@ -0,0 +1,252 @@
package com.ruoyi.zhiyuanzhe.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* b_person_tags
*
* @author ruoyi
* @date 2023-09-18
*/
public class BPersonTags extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 编号 */
private Long id;
/** 用户id */
@Excel(name = "用户id")
private Long uId;
/** 年龄 */
@Excel(name = "年龄")
private String ageRange;
/** 小区 */
@Excel(name = "小区")
private String housingRange;
/** 文化程度 */
@Excel(name = "文化程度")
private String educationRange;
/** 兴趣爱好 */
@Excel(name = "兴趣爱好")
private String interestRange;
/** 政治面貌 */
@Excel(name = "政治面貌")
private String politicalRange;
/** 性别 */
@Excel(name = "性别")
private String sexRange;
/** 国籍 */
@Excel(name = "国籍")
private String nationalityRange;
/** 专业类型 */
@Excel(name = "专业类型")
private String professionalRange;
/** 行业类型 */
@Excel(name = "行业类型")
private String industryRange;
/** 院校 */
@Excel(name = "院校")
private String schoolRange;
/** 创建者ID */
@Excel(name = "创建者ID")
private Long createId;
/** 更新者ID */
@Excel(name = "更新者ID")
private Long updateId;
/** 用户权限id */
@Excel(name = "用户权限id")
private Long userId;
/** 部门权限id */
@Excel(name = "部门权限id")
private Long deptId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setuId(Long uId)
{
this.uId = uId;
}
public Long getuId()
{
return uId;
}
public void setAgeRange(String ageRange)
{
this.ageRange = ageRange;
}
public String getAgeRange()
{
return ageRange;
}
public void setHousingRange(String housingRange)
{
this.housingRange = housingRange;
}
public String getHousingRange()
{
return housingRange;
}
public void setEducationRange(String educationRange)
{
this.educationRange = educationRange;
}
public String getEducationRange()
{
return educationRange;
}
public void setInterestRange(String interestRange)
{
this.interestRange = interestRange;
}
public String getInterestRange()
{
return interestRange;
}
public void setPoliticalRange(String politicalRange)
{
this.politicalRange = politicalRange;
}
public String getPoliticalRange()
{
return politicalRange;
}
public void setSexRange(String sexRange)
{
this.sexRange = sexRange;
}
public String getSexRange()
{
return sexRange;
}
public void setNationalityRange(String nationalityRange)
{
this.nationalityRange = nationalityRange;
}
public String getNationalityRange()
{
return nationalityRange;
}
public void setProfessionalRange(String professionalRange)
{
this.professionalRange = professionalRange;
}
public String getProfessionalRange()
{
return professionalRange;
}
public void setIndustryRange(String industryRange)
{
this.industryRange = industryRange;
}
public String getIndustryRange()
{
return industryRange;
}
public void setSchoolRange(String schoolRange)
{
this.schoolRange = schoolRange;
}
public String getSchoolRange()
{
return schoolRange;
}
public void setCreateId(Long createId)
{
this.createId = createId;
}
public Long getCreateId()
{
return createId;
}
public void setUpdateId(Long updateId)
{
this.updateId = updateId;
}
public Long getUpdateId()
{
return updateId;
}
public void setUserId(Long userId)
{
this.userId = userId;
}
public Long getUserId()
{
return userId;
}
public void setDeptId(Long deptId)
{
this.deptId = deptId;
}
public Long getDeptId()
{
return deptId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("uId", getuId())
.append("ageRange", getAgeRange())
.append("housingRange", getHousingRange())
.append("educationRange", getEducationRange())
.append("interestRange", getInterestRange())
.append("politicalRange", getPoliticalRange())
.append("sexRange", getSexRange())
.append("nationalityRange", getNationalityRange())
.append("professionalRange", getProfessionalRange())
.append("industryRange", getIndustryRange())
.append("schoolRange", getSchoolRange())
.append("createId", getCreateId())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateId", getUpdateId())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.append("userId", getUserId())
.append("deptId", getDeptId())
.toString();
}
}

@ -0,0 +1,63 @@
package com.ruoyi.zhiyuanzhe.mapper;
import com.ruoyi.zhiyuanzhe.domain.BActivity;
import java.util.List;
/**
* Mapper
*
* @author ruoyi
* @date 2023-09-18
*/
public interface BActivityMapper
{
/**
*
*
* @param id
* @return
*/
public BActivity selectBActivityById(Long id);
/**
*
*
* @param bActivity
* @return
*/
public List<BActivity> selectBActivityList(BActivity bActivity);
/**
*
*
* @param bActivity
* @return
*/
public int insertBActivity(BActivity bActivity);
/**
*
*
* @param bActivity
* @return
*/
public int updateBActivity(BActivity bActivity);
/**
*
*
* @param id
* @return
*/
public int deleteBActivityById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteBActivityByIds(Long[] ids);
}

@ -0,0 +1,63 @@
package com.ruoyi.zhiyuanzhe.mapper;
import com.ruoyi.zhiyuanzhe.domain.BActivityPoints;
import java.util.List;
/**
* Mapper
*
* @author ruoyi
* @date 2023-09-19
*/
public interface BActivityPointsMapper
{
/**
*
*
* @param id
* @return
*/
public BActivityPoints selectBActivityPointsById(Long id);
/**
*
*
* @param bActivityPoints
* @return
*/
public List<BActivityPoints> selectBActivityPointsList(BActivityPoints bActivityPoints);
/**
*
*
* @param bActivityPoints
* @return
*/
public int insertBActivityPoints(BActivityPoints bActivityPoints);
/**
*
*
* @param bActivityPoints
* @return
*/
public int updateBActivityPoints(BActivityPoints bActivityPoints);
/**
*
*
* @param id
* @return
*/
public int deleteBActivityPointsById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteBActivityPointsByIds(Long[] ids);
}

@ -0,0 +1,63 @@
package com.ruoyi.zhiyuanzhe.mapper;
import com.ruoyi.zhiyuanzhe.domain.BCertificates;
import java.util.List;
/**
* Mapper
*
* @author ruoyi
* @date 2023-09-19
*/
public interface BCertificatesMapper
{
/**
*
*
* @param id
* @return
*/
public BCertificates selectBCertificatesById(Long id);
/**
*
*
* @param bCertificates
* @return
*/
public List<BCertificates> selectBCertificatesList(BCertificates bCertificates);
/**
*
*
* @param bCertificates
* @return
*/
public int insertBCertificates(BCertificates bCertificates);
/**
*
*
* @param bCertificates
* @return
*/
public int updateBCertificates(BCertificates bCertificates);
/**
*
*
* @param id
* @return
*/
public int deleteBCertificatesById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteBCertificatesByIds(Long[] ids);
}

@ -0,0 +1,63 @@
package com.ruoyi.zhiyuanzhe.mapper;
import com.ruoyi.zhiyuanzhe.domain.BCheckRecords;
import java.util.List;
/**
* Mapper
*
* @author ruoyi
* @date 2023-09-19
*/
public interface BCheckRecordsMapper
{
/**
*
*
* @param id
* @return
*/
public BCheckRecords selectBCheckRecordsById(Long id);
/**
*
*
* @param bCheckRecords
* @return
*/
public List<BCheckRecords> selectBCheckRecordsList(BCheckRecords bCheckRecords);
/**
*
*
* @param bCheckRecords
* @return
*/
public int insertBCheckRecords(BCheckRecords bCheckRecords);
/**
*
*
* @param bCheckRecords
* @return
*/
public int updateBCheckRecords(BCheckRecords bCheckRecords);
/**
*
*
* @param id
* @return
*/
public int deleteBCheckRecordsById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteBCheckRecordsByIds(Long[] ids);
}

@ -0,0 +1,63 @@
package com.ruoyi.zhiyuanzhe.mapper;
import com.ruoyi.zhiyuanzhe.domain.BDistributionRecords;
import java.util.List;
/**
* Mapper
*
* @author ruoyi
* @date 2023-09-19
*/
public interface BDistributionRecordsMapper
{
/**
*
*
* @param id
* @return
*/
public BDistributionRecords selectBDistributionRecordsById(Long id);
/**
*
*
* @param bDistributionRecords
* @return
*/
public List<BDistributionRecords> selectBDistributionRecordsList(BDistributionRecords bDistributionRecords);
/**
*
*
* @param bDistributionRecords
* @return
*/
public int insertBDistributionRecords(BDistributionRecords bDistributionRecords);
/**
*
*
* @param bDistributionRecords
* @return
*/
public int updateBDistributionRecords(BDistributionRecords bDistributionRecords);
/**
*
*
* @param id
* @return
*/
public int deleteBDistributionRecordsById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteBDistributionRecordsByIds(Long[] ids);
}

@ -0,0 +1,63 @@
package com.ruoyi.zhiyuanzhe.mapper;
import com.ruoyi.zhiyuanzhe.domain.BExchangeRecords;
import java.util.List;
/**
* Mapper
*
* @author ruoyi
* @date 2023-09-19
*/
public interface BExchangeRecordsMapper
{
/**
*
*
* @param id
* @return
*/
public BExchangeRecords selectBExchangeRecordsById(Long id);
/**
*
*
* @param bExchangeRecords
* @return
*/
public List<BExchangeRecords> selectBExchangeRecordsList(BExchangeRecords bExchangeRecords);
/**
*
*
* @param bExchangeRecords
* @return
*/
public int insertBExchangeRecords(BExchangeRecords bExchangeRecords);
/**
*
*
* @param bExchangeRecords
* @return
*/
public int updateBExchangeRecords(BExchangeRecords bExchangeRecords);
/**
*
*
* @param id
* @return
*/
public int deleteBExchangeRecordsById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteBExchangeRecordsByIds(Long[] ids);
}

@ -0,0 +1,63 @@
package com.ruoyi.zhiyuanzhe.mapper;
import com.ruoyi.zhiyuanzhe.domain.BInvite;
import java.util.List;
/**
* Mapper
*
* @author ruoyi
* @date 2023-09-19
*/
public interface BInviteMapper
{
/**
*
*
* @param id
* @return
*/
public BInvite selectBInviteById(Long id);
/**
*
*
* @param bInvite
* @return
*/
public List<BInvite> selectBInviteList(BInvite bInvite);
/**
*
*
* @param bInvite
* @return
*/
public int insertBInvite(BInvite bInvite);
/**
*
*
* @param bInvite
* @return
*/
public int updateBInvite(BInvite bInvite);
/**
*
*
* @param id
* @return
*/
public int deleteBInviteById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteBInviteByIds(Long[] ids);
}

@ -0,0 +1,63 @@
package com.ruoyi.zhiyuanzhe.mapper;
import com.ruoyi.zhiyuanzhe.domain.BPersonTags;
import java.util.List;
/**
* Mapper
*
* @author ruoyi
* @date 2023-09-18
*/
public interface BPersonTagsMapper
{
/**
*
*
* @param id
* @return
*/
public BPersonTags selectBPersonTagsById(Long id);
/**
*
*
* @param bPersonTags
* @return
*/
public List<BPersonTags> selectBPersonTagsList(BPersonTags bPersonTags);
/**
*
*
* @param bPersonTags
* @return
*/
public int insertBPersonTags(BPersonTags bPersonTags);
/**
*
*
* @param bPersonTags
* @return
*/
public int updateBPersonTags(BPersonTags bPersonTags);
/**
*
*
* @param id
* @return
*/
public int deleteBPersonTagsById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteBPersonTagsByIds(Long[] ids);
}

@ -0,0 +1,63 @@
package com.ruoyi.zhiyuanzhe.service;
import com.ruoyi.zhiyuanzhe.domain.BActivityPoints;
import java.util.List;
/**
* Service
*
* @author ruoyi
* @date 2023-09-19
*/
public interface IBActivityPointsService
{
/**
*
*
* @param id
* @return
*/
public BActivityPoints selectBActivityPointsById(Long id);
/**
*
*
* @param bActivityPoints
* @return
*/
public List<BActivityPoints> selectBActivityPointsList(BActivityPoints bActivityPoints);
/**
*
*
* @param bActivityPoints
* @return
*/
public int insertBActivityPoints(BActivityPoints bActivityPoints);
/**
*
*
* @param bActivityPoints
* @return
*/
public int updateBActivityPoints(BActivityPoints bActivityPoints);
/**
*
*
* @param ids
* @return
*/
public int deleteBActivityPointsByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteBActivityPointsById(Long id);
}

@ -0,0 +1,63 @@
package com.ruoyi.zhiyuanzhe.service;
import com.ruoyi.zhiyuanzhe.domain.BActivity;
import java.util.List;
/**
* Service
*
* @author ruoyi
* @date 2023-09-18
*/
public interface IBActivityService
{
/**
*
*
* @param id
* @return
*/
public BActivity selectBActivityById(Long id);
/**
*
*
* @param bActivity
* @return
*/
public List<BActivity> selectBActivityList(BActivity bActivity);
/**
*
*
* @param bActivity
* @return
*/
public int insertBActivity(BActivity bActivity);
/**
*
*
* @param bActivity
* @return
*/
public int updateBActivity(BActivity bActivity);
/**
*
*
* @param ids
* @return
*/
public int deleteBActivityByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteBActivityById(Long id);
}

@ -0,0 +1,63 @@
package com.ruoyi.zhiyuanzhe.service;
import com.ruoyi.zhiyuanzhe.domain.BCertificates;
import java.util.List;
/**
* Service
*
* @author ruoyi
* @date 2023-09-19
*/
public interface IBCertificatesService
{
/**
*
*
* @param id
* @return
*/
public BCertificates selectBCertificatesById(Long id);
/**
*
*
* @param bCertificates
* @return
*/
public List<BCertificates> selectBCertificatesList(BCertificates bCertificates);
/**
*
*
* @param bCertificates
* @return
*/
public int insertBCertificates(BCertificates bCertificates);
/**
*
*
* @param bCertificates
* @return
*/
public int updateBCertificates(BCertificates bCertificates);
/**
*
*
* @param ids
* @return
*/
public int deleteBCertificatesByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteBCertificatesById(Long id);
}

@ -0,0 +1,63 @@
package com.ruoyi.zhiyuanzhe.service;
import com.ruoyi.zhiyuanzhe.domain.BCheckRecords;
import java.util.List;
/**
* Service
*
* @author ruoyi
* @date 2023-09-19
*/
public interface IBCheckRecordsService
{
/**
*
*
* @param id
* @return
*/
public BCheckRecords selectBCheckRecordsById(Long id);
/**
*
*
* @param bCheckRecords
* @return
*/
public List<BCheckRecords> selectBCheckRecordsList(BCheckRecords bCheckRecords);
/**
*
*
* @param bCheckRecords
* @return
*/
public int insertBCheckRecords(BCheckRecords bCheckRecords);
/**
*
*
* @param bCheckRecords
* @return
*/
public int updateBCheckRecords(BCheckRecords bCheckRecords);
/**
*
*
* @param ids
* @return
*/
public int deleteBCheckRecordsByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteBCheckRecordsById(Long id);
}

@ -0,0 +1,63 @@
package com.ruoyi.zhiyuanzhe.service;
import com.ruoyi.zhiyuanzhe.domain.BDistributionRecords;
import java.util.List;
/**
* Service
*
* @author ruoyi
* @date 2023-09-19
*/
public interface IBDistributionRecordsService
{
/**
*
*
* @param id
* @return
*/
public BDistributionRecords selectBDistributionRecordsById(Long id);
/**
*
*
* @param bDistributionRecords
* @return
*/
public List<BDistributionRecords> selectBDistributionRecordsList(BDistributionRecords bDistributionRecords);
/**
*
*
* @param bDistributionRecords
* @return
*/
public int insertBDistributionRecords(BDistributionRecords bDistributionRecords);
/**
*
*
* @param bDistributionRecords
* @return
*/
public int updateBDistributionRecords(BDistributionRecords bDistributionRecords);
/**
*
*
* @param ids
* @return
*/
public int deleteBDistributionRecordsByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteBDistributionRecordsById(Long id);
}

@ -0,0 +1,63 @@
package com.ruoyi.zhiyuanzhe.service;
import com.ruoyi.zhiyuanzhe.domain.BExchangeRecords;
import java.util.List;
/**
* Service
*
* @author ruoyi
* @date 2023-09-19
*/
public interface IBExchangeRecordsService
{
/**
*
*
* @param id
* @return
*/
public BExchangeRecords selectBExchangeRecordsById(Long id);
/**
*
*
* @param bExchangeRecords
* @return
*/
public List<BExchangeRecords> selectBExchangeRecordsList(BExchangeRecords bExchangeRecords);
/**
*
*
* @param bExchangeRecords
* @return
*/
public int insertBExchangeRecords(BExchangeRecords bExchangeRecords);
/**
*
*
* @param bExchangeRecords
* @return
*/
public int updateBExchangeRecords(BExchangeRecords bExchangeRecords);
/**
*
*
* @param ids
* @return
*/
public int deleteBExchangeRecordsByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteBExchangeRecordsById(Long id);
}

@ -0,0 +1,63 @@
package com.ruoyi.zhiyuanzhe.service;
import com.ruoyi.zhiyuanzhe.domain.BInvite;
import java.util.List;
/**
* Service
*
* @author ruoyi
* @date 2023-09-19
*/
public interface IBInviteService
{
/**
*
*
* @param id
* @return
*/
public BInvite selectBInviteById(Long id);
/**
*
*
* @param bInvite
* @return
*/
public List<BInvite> selectBInviteList(BInvite bInvite);
/**
*
*
* @param bInvite
* @return
*/
public int insertBInvite(BInvite bInvite);
/**
*
*
* @param bInvite
* @return
*/
public int updateBInvite(BInvite bInvite);
/**
*
*
* @param ids
* @return
*/
public int deleteBInviteByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteBInviteById(Long id);
}

@ -0,0 +1,63 @@
package com.ruoyi.zhiyuanzhe.service;
import com.ruoyi.zhiyuanzhe.domain.BPersonTags;
import java.util.List;
/**
* Service
*
* @author ruoyi
* @date 2023-09-18
*/
public interface IBPersonTagsService
{
/**
*
*
* @param id
* @return
*/
public BPersonTags selectBPersonTagsById(Long id);
/**
*
*
* @param bPersonTags
* @return
*/
public List<BPersonTags> selectBPersonTagsList(BPersonTags bPersonTags);
/**
*
*
* @param bPersonTags
* @return
*/
public int insertBPersonTags(BPersonTags bPersonTags);
/**
*
*
* @param bPersonTags
* @return
*/
public int updateBPersonTags(BPersonTags bPersonTags);
/**
*
*
* @param ids
* @return
*/
public int deleteBPersonTagsByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteBPersonTagsById(Long id);
}

@ -0,0 +1,97 @@
package com.ruoyi.zhiyuanzhe.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.zhiyuanzhe.domain.BActivityPoints;
import com.ruoyi.zhiyuanzhe.mapper.BActivityPointsMapper;
import com.ruoyi.zhiyuanzhe.service.IBActivityPointsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* Service
*
* @author ruoyi
* @date 2023-09-19
*/
@Service
public class BActivityPointsServiceImpl implements IBActivityPointsService
{
@Autowired
private BActivityPointsMapper bActivityPointsMapper;
/**
*
*
* @param id
* @return
*/
@Override
public BActivityPoints selectBActivityPointsById(Long id)
{
return bActivityPointsMapper.selectBActivityPointsById(id);
}
/**
*
*
* @param bActivityPoints
* @return
*/
@Override
public List<BActivityPoints> selectBActivityPointsList(BActivityPoints bActivityPoints)
{
return bActivityPointsMapper.selectBActivityPointsList(bActivityPoints);
}
/**
*
*
* @param bActivityPoints
* @return
*/
@Override
public int insertBActivityPoints(BActivityPoints bActivityPoints)
{
bActivityPoints.setCreateTime(DateUtils.getNowDate());
return bActivityPointsMapper.insertBActivityPoints(bActivityPoints);
}
/**
*
*
* @param bActivityPoints
* @return
*/
@Override
public int updateBActivityPoints(BActivityPoints bActivityPoints)
{
bActivityPoints.setUpdateTime(DateUtils.getNowDate());
return bActivityPointsMapper.updateBActivityPoints(bActivityPoints);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteBActivityPointsByIds(Long[] ids)
{
return bActivityPointsMapper.deleteBActivityPointsByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteBActivityPointsById(Long id)
{
return bActivityPointsMapper.deleteBActivityPointsById(id);
}
}

@ -0,0 +1,96 @@
package com.ruoyi.zhiyuanzhe.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.zhiyuanzhe.domain.BActivity;
import com.ruoyi.zhiyuanzhe.mapper.BActivityMapper;
import com.ruoyi.zhiyuanzhe.service.IBActivityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* Service
*
* @author ruoyi
* @date 2023-09-18
*/
@Service("bActivityService")
public class BActivityServiceImpl implements IBActivityService
{
@Autowired
private BActivityMapper bActivityMapper;
/**
*
*
* @param id
* @return
*/
@Override
public BActivity selectBActivityById(Long id)
{
return bActivityMapper.selectBActivityById(id);
}
/**
*
*
* @param bActivity
* @return
*/
@Override
public List<BActivity> selectBActivityList(BActivity bActivity)
{
return bActivityMapper.selectBActivityList(bActivity);
}
/**
*
*
* @param bActivity
* @return
*/
@Override
public int insertBActivity(BActivity bActivity)
{
bActivity.setCreateTime(DateUtils.getNowDate());
return bActivityMapper.insertBActivity(bActivity);
}
/**
*
*
* @param bActivity
* @return
*/
@Override
public int updateBActivity(BActivity bActivity)
{
bActivity.setUpdateTime(DateUtils.getNowDate());
return bActivityMapper.updateBActivity(bActivity);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteBActivityByIds(Long[] ids)
{
return bActivityMapper.deleteBActivityByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteBActivityById(Long id)
{
return bActivityMapper.deleteBActivityById(id);
}
}

@ -0,0 +1,97 @@
package com.ruoyi.zhiyuanzhe.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.zhiyuanzhe.domain.BCertificates;
import com.ruoyi.zhiyuanzhe.mapper.BCertificatesMapper;
import com.ruoyi.zhiyuanzhe.service.IBCertificatesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* Service
*
* @author ruoyi
* @date 2023-09-19
*/
@Service
public class BCertificatesServiceImpl implements IBCertificatesService
{
@Autowired
private BCertificatesMapper bCertificatesMapper;
/**
*
*
* @param id
* @return
*/
@Override
public BCertificates selectBCertificatesById(Long id)
{
return bCertificatesMapper.selectBCertificatesById(id);
}
/**
*
*
* @param bCertificates
* @return
*/
@Override
public List<BCertificates> selectBCertificatesList(BCertificates bCertificates)
{
return bCertificatesMapper.selectBCertificatesList(bCertificates);
}
/**
*
*
* @param bCertificates
* @return
*/
@Override
public int insertBCertificates(BCertificates bCertificates)
{
bCertificates.setCreateTime(DateUtils.getNowDate());
return bCertificatesMapper.insertBCertificates(bCertificates);
}
/**
*
*
* @param bCertificates
* @return
*/
@Override
public int updateBCertificates(BCertificates bCertificates)
{
bCertificates.setUpdateTime(DateUtils.getNowDate());
return bCertificatesMapper.updateBCertificates(bCertificates);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteBCertificatesByIds(Long[] ids)
{
return bCertificatesMapper.deleteBCertificatesByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteBCertificatesById(Long id)
{
return bCertificatesMapper.deleteBCertificatesById(id);
}
}

@ -0,0 +1,97 @@
package com.ruoyi.zhiyuanzhe.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.zhiyuanzhe.domain.BCheckRecords;
import com.ruoyi.zhiyuanzhe.mapper.BCheckRecordsMapper;
import com.ruoyi.zhiyuanzhe.service.IBCheckRecordsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* Service
*
* @author ruoyi
* @date 2023-09-19
*/
@Service
public class BCheckRecordsServiceImpl implements IBCheckRecordsService
{
@Autowired
private BCheckRecordsMapper bCheckRecordsMapper;
/**
*
*
* @param id
* @return
*/
@Override
public BCheckRecords selectBCheckRecordsById(Long id)
{
return bCheckRecordsMapper.selectBCheckRecordsById(id);
}
/**
*
*
* @param bCheckRecords
* @return
*/
@Override
public List<BCheckRecords> selectBCheckRecordsList(BCheckRecords bCheckRecords)
{
return bCheckRecordsMapper.selectBCheckRecordsList(bCheckRecords);
}
/**
*
*
* @param bCheckRecords
* @return
*/
@Override
public int insertBCheckRecords(BCheckRecords bCheckRecords)
{
bCheckRecords.setCreateTime(DateUtils.getNowDate());
return bCheckRecordsMapper.insertBCheckRecords(bCheckRecords);
}
/**
*
*
* @param bCheckRecords
* @return
*/
@Override
public int updateBCheckRecords(BCheckRecords bCheckRecords)
{
bCheckRecords.setUpdateTime(DateUtils.getNowDate());
return bCheckRecordsMapper.updateBCheckRecords(bCheckRecords);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteBCheckRecordsByIds(Long[] ids)
{
return bCheckRecordsMapper.deleteBCheckRecordsByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteBCheckRecordsById(Long id)
{
return bCheckRecordsMapper.deleteBCheckRecordsById(id);
}
}

@ -0,0 +1,97 @@
package com.ruoyi.zhiyuanzhe.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.zhiyuanzhe.domain.BDistributionRecords;
import com.ruoyi.zhiyuanzhe.mapper.BDistributionRecordsMapper;
import com.ruoyi.zhiyuanzhe.service.IBDistributionRecordsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* Service
*
* @author ruoyi
* @date 2023-09-19
*/
@Service
public class BDistributionRecordsServiceImpl implements IBDistributionRecordsService
{
@Autowired
private BDistributionRecordsMapper bDistributionRecordsMapper;
/**
*
*
* @param id
* @return
*/
@Override
public BDistributionRecords selectBDistributionRecordsById(Long id)
{
return bDistributionRecordsMapper.selectBDistributionRecordsById(id);
}
/**
*
*
* @param bDistributionRecords
* @return
*/
@Override
public List<BDistributionRecords> selectBDistributionRecordsList(BDistributionRecords bDistributionRecords)
{
return bDistributionRecordsMapper.selectBDistributionRecordsList(bDistributionRecords);
}
/**
*
*
* @param bDistributionRecords
* @return
*/
@Override
public int insertBDistributionRecords(BDistributionRecords bDistributionRecords)
{
bDistributionRecords.setCreateTime(DateUtils.getNowDate());
return bDistributionRecordsMapper.insertBDistributionRecords(bDistributionRecords);
}
/**
*
*
* @param bDistributionRecords
* @return
*/
@Override
public int updateBDistributionRecords(BDistributionRecords bDistributionRecords)
{
bDistributionRecords.setUpdateTime(DateUtils.getNowDate());
return bDistributionRecordsMapper.updateBDistributionRecords(bDistributionRecords);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteBDistributionRecordsByIds(Long[] ids)
{
return bDistributionRecordsMapper.deleteBDistributionRecordsByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteBDistributionRecordsById(Long id)
{
return bDistributionRecordsMapper.deleteBDistributionRecordsById(id);
}
}

@ -0,0 +1,97 @@
package com.ruoyi.zhiyuanzhe.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.zhiyuanzhe.domain.BExchangeRecords;
import com.ruoyi.zhiyuanzhe.mapper.BExchangeRecordsMapper;
import com.ruoyi.zhiyuanzhe.service.IBExchangeRecordsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* Service
*
* @author ruoyi
* @date 2023-09-19
*/
@Service
public class BExchangeRecordsServiceImpl implements IBExchangeRecordsService
{
@Autowired
private BExchangeRecordsMapper bExchangeRecordsMapper;
/**
*
*
* @param id
* @return
*/
@Override
public BExchangeRecords selectBExchangeRecordsById(Long id)
{
return bExchangeRecordsMapper.selectBExchangeRecordsById(id);
}
/**
*
*
* @param bExchangeRecords
* @return
*/
@Override
public List<BExchangeRecords> selectBExchangeRecordsList(BExchangeRecords bExchangeRecords)
{
return bExchangeRecordsMapper.selectBExchangeRecordsList(bExchangeRecords);
}
/**
*
*
* @param bExchangeRecords
* @return
*/
@Override
public int insertBExchangeRecords(BExchangeRecords bExchangeRecords)
{
bExchangeRecords.setCreateTime(DateUtils.getNowDate());
return bExchangeRecordsMapper.insertBExchangeRecords(bExchangeRecords);
}
/**
*
*
* @param bExchangeRecords
* @return
*/
@Override
public int updateBExchangeRecords(BExchangeRecords bExchangeRecords)
{
bExchangeRecords.setUpdateTime(DateUtils.getNowDate());
return bExchangeRecordsMapper.updateBExchangeRecords(bExchangeRecords);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteBExchangeRecordsByIds(Long[] ids)
{
return bExchangeRecordsMapper.deleteBExchangeRecordsByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteBExchangeRecordsById(Long id)
{
return bExchangeRecordsMapper.deleteBExchangeRecordsById(id);
}
}

@ -0,0 +1,97 @@
package com.ruoyi.zhiyuanzhe.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.zhiyuanzhe.domain.BInvite;
import com.ruoyi.zhiyuanzhe.mapper.BInviteMapper;
import com.ruoyi.zhiyuanzhe.service.IBInviteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* Service
*
* @author ruoyi
* @date 2023-09-19
*/
@Service
public class BInviteServiceImpl implements IBInviteService
{
@Autowired
private BInviteMapper bInviteMapper;
/**
*
*
* @param id
* @return
*/
@Override
public BInvite selectBInviteById(Long id)
{
return bInviteMapper.selectBInviteById(id);
}
/**
*
*
* @param bInvite
* @return
*/
@Override
public List<BInvite> selectBInviteList(BInvite bInvite)
{
return bInviteMapper.selectBInviteList(bInvite);
}
/**
*
*
* @param bInvite
* @return
*/
@Override
public int insertBInvite(BInvite bInvite)
{
bInvite.setCreateTime(DateUtils.getNowDate());
return bInviteMapper.insertBInvite(bInvite);
}
/**
*
*
* @param bInvite
* @return
*/
@Override
public int updateBInvite(BInvite bInvite)
{
bInvite.setUpdateTime(DateUtils.getNowDate());
return bInviteMapper.updateBInvite(bInvite);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteBInviteByIds(Long[] ids)
{
return bInviteMapper.deleteBInviteByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteBInviteById(Long id)
{
return bInviteMapper.deleteBInviteById(id);
}
}

@ -0,0 +1,97 @@
package com.ruoyi.zhiyuanzhe.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.zhiyuanzhe.domain.BPersonTags;
import com.ruoyi.zhiyuanzhe.mapper.BPersonTagsMapper;
import com.ruoyi.zhiyuanzhe.service.IBPersonTagsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* Service
*
* @author ruoyi
* @date 2023-09-18
*/
@Service("bPersonTagsService")
public class BPersonTagsServiceImpl implements IBPersonTagsService
{
@Autowired
private BPersonTagsMapper bPersonTagsMapper;
/**
*
*
* @param id
* @return
*/
@Override
public BPersonTags selectBPersonTagsById(Long id)
{
return bPersonTagsMapper.selectBPersonTagsById(id);
}
/**
*
*
* @param bPersonTags
* @return
*/
@Override
public List<BPersonTags> selectBPersonTagsList(BPersonTags bPersonTags)
{
return bPersonTagsMapper.selectBPersonTagsList(bPersonTags);
}
/**
*
*
* @param bPersonTags
* @return
*/
@Override
public int insertBPersonTags(BPersonTags bPersonTags)
{
bPersonTags.setCreateTime(DateUtils.getNowDate());
return bPersonTagsMapper.insertBPersonTags(bPersonTags);
}
/**
*
*
* @param bPersonTags
* @return
*/
@Override
public int updateBPersonTags(BPersonTags bPersonTags)
{
bPersonTags.setUpdateTime(DateUtils.getNowDate());
return bPersonTagsMapper.updateBPersonTags(bPersonTags);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteBPersonTagsByIds(Long[] ids)
{
return bPersonTagsMapper.deleteBPersonTagsByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteBPersonTagsById(Long id)
{
return bPersonTagsMapper.deleteBPersonTagsById(id);
}
}

@ -6,9 +6,9 @@ spring:
druid:
# 主库数据源
master:
url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
url: jdbc:mysql://39.101.188.84:3307/zhi_yuan_zhe?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: password
password: Admin123@
# 从库数据源
slave:
# 从数据源开关/默认关闭

@ -18,7 +18,7 @@ ruoyi:
# 开发环境配置
server:
# 服务器的HTTP端口默认为8080
port: 8080
port: 9034
servlet:
# 应用的访问路径
context-path: /
@ -49,6 +49,8 @@ user:
# Spring配置
spring:
application:
name: zhiyuanzhe
# 资源信息
messages:
# 国际化资源文件路径
@ -129,3 +131,18 @@ xss:
excludes: /system/notice
# 匹配链接
urlPatterns: /system/*,/monitor/*,/tool/*
knife4j:
enable: true
openapi:
title: 志愿者
description: 志愿者
url: https://docs.xiaominfo.com
version: v4.0.0
group:
demo:
group-name: ${spring.application.name}
api-rule: package
api-rule-resources:
- com

@ -0,0 +1,166 @@
<?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.ruoyi.system.mapper.BActivityMapper">
<resultMap type="BActivity" id="BActivityResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="content" column="content" />
<result property="publisher" column="publisher" />
<result property="activityTime" column="activity_time" />
<result property="address" column="address" />
<result property="ageRange" column="age_range" />
<result property="housingRange" column="housing_range" />
<result property="educationRange" column="education_range" />
<result property="interestRange" column="interest_range" />
<result property="politicalRange" column="political_range" />
<result property="sexRange" column="sex_range" />
<result property="nationalityRange" column="nationality_range" />
<result property="professionalRange" column="professional_range" />
<result property="industryRange" column="industry_range" />
<result property="schoolRange" column="school_range" />
<result property="createId" column="create_id" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateId" column="update_id" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="userId" column="user_id" />
<result property="deptId" column="dept_id" />
</resultMap>
<sql id="selectBActivityVo">
select id, name, content, publisher, activity_time, address, age_range, housing_range, education_range, interest_range, political_range, sex_range, nationality_range, professional_range, industry_range, school_range, create_id, create_by, create_time, update_id, update_by, update_time, remark, user_id, dept_id from b_activity
</sql>
<select id="selectBActivityList" parameterType="BActivity" resultMap="BActivityResult">
<include refid="selectBActivityVo"/>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="content != null and content != ''"> and content = #{content}</if>
<if test="publisher != null and publisher != ''"> and publisher = #{publisher}</if>
<if test="activityTime != null "> and activity_time = #{activityTime}</if>
<if test="address != null and address != ''"> and address = #{address}</if>
<if test="ageRange != null and ageRange != ''"> and age_range = #{ageRange}</if>
<if test="housingRange != null and housingRange != ''"> and housing_range = #{housingRange}</if>
<if test="educationRange != null and educationRange != ''"> and education_range = #{educationRange}</if>
<if test="interestRange != null and interestRange != ''"> and interest_range = #{interestRange}</if>
<if test="politicalRange != null and politicalRange != ''"> and political_range = #{politicalRange}</if>
<if test="sexRange != null and sexRange != ''"> and sex_range = #{sexRange}</if>
<if test="nationalityRange != null and nationalityRange != ''"> and nationality_range = #{nationalityRange}</if>
<if test="professionalRange != null and professionalRange != ''"> and professional_range = #{professionalRange}</if>
<if test="industryRange != null and industryRange != ''"> and industry_range = #{industryRange}</if>
<if test="schoolRange != null and schoolRange != ''"> and school_range = #{schoolRange}</if>
<if test="createId != null "> and create_id = #{createId}</if>
<if test="updateId != null "> and update_id = #{updateId}</if>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if>
</where>
</select>
<select id="selectBActivityById" parameterType="Long" resultMap="BActivityResult">
<include refid="selectBActivityVo"/>
where id = #{id}
</select>
<insert id="insertBActivity" parameterType="BActivity" useGeneratedKeys="true" keyProperty="id">
insert into b_activity
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">name,</if>
<if test="content != null">content,</if>
<if test="publisher != null">publisher,</if>
<if test="activityTime != null">activity_time,</if>
<if test="address != null">address,</if>
<if test="ageRange != null">age_range,</if>
<if test="housingRange != null">housing_range,</if>
<if test="educationRange != null">education_range,</if>
<if test="interestRange != null">interest_range,</if>
<if test="politicalRange != null">political_range,</if>
<if test="sexRange != null">sex_range,</if>
<if test="nationalityRange != null">nationality_range,</if>
<if test="professionalRange != null">professional_range,</if>
<if test="industryRange != null">industry_range,</if>
<if test="schoolRange != null">school_range,</if>
<if test="createId != null">create_id,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateId != null">update_id,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
<if test="userId != null">user_id,</if>
<if test="deptId != null">dept_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">#{name},</if>
<if test="content != null">#{content},</if>
<if test="publisher != null">#{publisher},</if>
<if test="activityTime != null">#{activityTime},</if>
<if test="address != null">#{address},</if>
<if test="ageRange != null">#{ageRange},</if>
<if test="housingRange != null">#{housingRange},</if>
<if test="educationRange != null">#{educationRange},</if>
<if test="interestRange != null">#{interestRange},</if>
<if test="politicalRange != null">#{politicalRange},</if>
<if test="sexRange != null">#{sexRange},</if>
<if test="nationalityRange != null">#{nationalityRange},</if>
<if test="professionalRange != null">#{professionalRange},</if>
<if test="industryRange != null">#{industryRange},</if>
<if test="schoolRange != null">#{schoolRange},</if>
<if test="createId != null">#{createId},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateId != null">#{updateId},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
<if test="userId != null">#{userId},</if>
<if test="deptId != null">#{deptId},</if>
</trim>
</insert>
<update id="updateBActivity" parameterType="BActivity">
update b_activity
<trim prefix="SET" suffixOverrides=",">
<if test="name != null">name = #{name},</if>
<if test="content != null">content = #{content},</if>
<if test="publisher != null">publisher = #{publisher},</if>
<if test="activityTime != null">activity_time = #{activityTime},</if>
<if test="address != null">address = #{address},</if>
<if test="ageRange != null">age_range = #{ageRange},</if>
<if test="housingRange != null">housing_range = #{housingRange},</if>
<if test="educationRange != null">education_range = #{educationRange},</if>
<if test="interestRange != null">interest_range = #{interestRange},</if>
<if test="politicalRange != null">political_range = #{politicalRange},</if>
<if test="sexRange != null">sex_range = #{sexRange},</if>
<if test="nationalityRange != null">nationality_range = #{nationalityRange},</if>
<if test="professionalRange != null">professional_range = #{professionalRange},</if>
<if test="industryRange != null">industry_range = #{industryRange},</if>
<if test="schoolRange != null">school_range = #{schoolRange},</if>
<if test="createId != null">create_id = #{createId},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateId != null">update_id = #{updateId},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="userId != null">user_id = #{userId},</if>
<if test="deptId != null">dept_id = #{deptId},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBActivityById" parameterType="Long">
delete from b_activity where id = #{id}
</delete>
<delete id="deleteBActivityByIds" parameterType="String">
delete from b_activity where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

@ -0,0 +1,106 @@
<?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.ruoyi.system.mapper.BActivityPointsMapper">
<resultMap type="BActivityPoints" id="BActivityPointsResult">
<result property="id" column="id" />
<result property="activityId" column="activity_id" />
<result property="uId" column="u_id" />
<result property="points" column="points" />
<result property="createId" column="create_id" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateId" column="update_id" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="userId" column="user_id" />
<result property="deptId" column="dept_id" />
</resultMap>
<sql id="selectBActivityPointsVo">
select id, activity_id, u_id, points, create_id, create_by, create_time, update_id, update_by, update_time, remark, user_id, dept_id from b_activity_points
</sql>
<select id="selectBActivityPointsList" parameterType="BActivityPoints" resultMap="BActivityPointsResult">
<include refid="selectBActivityPointsVo"/>
<where>
<if test="activityId != null "> and activity_id = #{activityId}</if>
<if test="uId != null "> and u_id = #{uId}</if>
<if test="points != null and points != ''"> and points = #{points}</if>
<if test="createId != null "> and create_id = #{createId}</if>
<if test="updateId != null "> and update_id = #{updateId}</if>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if>
</where>
</select>
<select id="selectBActivityPointsById" parameterType="Long" resultMap="BActivityPointsResult">
<include refid="selectBActivityPointsVo"/>
where id = #{id}
</select>
<insert id="insertBActivityPoints" parameterType="BActivityPoints" useGeneratedKeys="true" keyProperty="id">
insert into b_activity_points
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="activityId != null">activity_id,</if>
<if test="uId != null">u_id,</if>
<if test="points != null">points,</if>
<if test="createId != null">create_id,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateId != null">update_id,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
<if test="userId != null">user_id,</if>
<if test="deptId != null">dept_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="activityId != null">#{activityId},</if>
<if test="uId != null">#{uId},</if>
<if test="points != null">#{points},</if>
<if test="createId != null">#{createId},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateId != null">#{updateId},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
<if test="userId != null">#{userId},</if>
<if test="deptId != null">#{deptId},</if>
</trim>
</insert>
<update id="updateBActivityPoints" parameterType="BActivityPoints">
update b_activity_points
<trim prefix="SET" suffixOverrides=",">
<if test="activityId != null">activity_id = #{activityId},</if>
<if test="uId != null">u_id = #{uId},</if>
<if test="points != null">points = #{points},</if>
<if test="createId != null">create_id = #{createId},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateId != null">update_id = #{updateId},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="userId != null">user_id = #{userId},</if>
<if test="deptId != null">dept_id = #{deptId},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBActivityPointsById" parameterType="Long">
delete from b_activity_points where id = #{id}
</delete>
<delete id="deleteBActivityPointsByIds" parameterType="String">
delete from b_activity_points where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

@ -0,0 +1,121 @@
<?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.ruoyi.system.mapper.BCertificatesMapper">
<resultMap type="BCertificates" id="BCertificatesResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="type" column="type" />
<result property="cover" column="cover" />
<result property="content" column="content" />
<result property="datetime" column="datetime" />
<result property="serviceDuration" column="service_duration" />
<result property="createId" column="create_id" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateId" column="update_id" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="userId" column="user_id" />
<result property="deptId" column="dept_id" />
</resultMap>
<sql id="selectBCertificatesVo">
select id, name, type, cover, content, datetime, service_duration, create_id, create_by, create_time, update_id, update_by, update_time, remark, user_id, dept_id from b_certificates
</sql>
<select id="selectBCertificatesList" parameterType="BCertificates" resultMap="BCertificatesResult">
<include refid="selectBCertificatesVo"/>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="type != null and type != ''"> and type = #{type}</if>
<if test="cover != null and cover != ''"> and cover = #{cover}</if>
<if test="content != null and content != ''"> and content = #{content}</if>
<if test="datetime != null "> and datetime = #{datetime}</if>
<if test="serviceDuration != null "> and service_duration = #{serviceDuration}</if>
<if test="createId != null "> and create_id = #{createId}</if>
<if test="updateId != null "> and update_id = #{updateId}</if>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if>
</where>
</select>
<select id="selectBCertificatesById" parameterType="Long" resultMap="BCertificatesResult">
<include refid="selectBCertificatesVo"/>
where id = #{id}
</select>
<insert id="insertBCertificates" parameterType="BCertificates" useGeneratedKeys="true" keyProperty="id">
insert into b_certificates
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">name,</if>
<if test="type != null">type,</if>
<if test="cover != null">cover,</if>
<if test="content != null">content,</if>
<if test="datetime != null">datetime,</if>
<if test="serviceDuration != null">service_duration,</if>
<if test="createId != null">create_id,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateId != null">update_id,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
<if test="userId != null">user_id,</if>
<if test="deptId != null">dept_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">#{name},</if>
<if test="type != null">#{type},</if>
<if test="cover != null">#{cover},</if>
<if test="content != null">#{content},</if>
<if test="datetime != null">#{datetime},</if>
<if test="serviceDuration != null">#{serviceDuration},</if>
<if test="createId != null">#{createId},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateId != null">#{updateId},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
<if test="userId != null">#{userId},</if>
<if test="deptId != null">#{deptId},</if>
</trim>
</insert>
<update id="updateBCertificates" parameterType="BCertificates">
update b_certificates
<trim prefix="SET" suffixOverrides=",">
<if test="name != null">name = #{name},</if>
<if test="type != null">type = #{type},</if>
<if test="cover != null">cover = #{cover},</if>
<if test="content != null">content = #{content},</if>
<if test="datetime != null">datetime = #{datetime},</if>
<if test="serviceDuration != null">service_duration = #{serviceDuration},</if>
<if test="createId != null">create_id = #{createId},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateId != null">update_id = #{updateId},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="userId != null">user_id = #{userId},</if>
<if test="deptId != null">dept_id = #{deptId},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBCertificatesById" parameterType="Long">
delete from b_certificates where id = #{id}
</delete>
<delete id="deleteBCertificatesByIds" parameterType="String">
delete from b_certificates where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

@ -0,0 +1,111 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper.BCheckRecordsMapper">
<resultMap type="BCheckRecords" id="BCheckRecordsResult">
<result property="id" column="id" />
<result property="certificateId" column="certificate_id" />
<result property="recipient" column="recipient" />
<result property="shippingAddress" column="shipping_address" />
<result property="receivingPhone" column="receiving_phone" />
<result property="createId" column="create_id" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateId" column="update_id" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="userId" column="user_id" />
<result property="deptId" column="dept_id" />
</resultMap>
<sql id="selectBCheckRecordsVo">
select id, certificate_id, recipient, shipping_address, receiving_phone, create_id, create_by, create_time, update_id, update_by, update_time, remark, user_id, dept_id from b_check_records
</sql>
<select id="selectBCheckRecordsList" parameterType="BCheckRecords" resultMap="BCheckRecordsResult">
<include refid="selectBCheckRecordsVo"/>
<where>
<if test="certificateId != null "> and certificate_id = #{certificateId}</if>
<if test="recipient != null and recipient != ''"> and recipient = #{recipient}</if>
<if test="shippingAddress != null and shippingAddress != ''"> and shipping_address = #{shippingAddress}</if>
<if test="receivingPhone != null and receivingPhone != ''"> and receiving_phone = #{receivingPhone}</if>
<if test="createId != null "> and create_id = #{createId}</if>
<if test="updateId != null "> and update_id = #{updateId}</if>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if>
</where>
</select>
<select id="selectBCheckRecordsById" parameterType="Long" resultMap="BCheckRecordsResult">
<include refid="selectBCheckRecordsVo"/>
where id = #{id}
</select>
<insert id="insertBCheckRecords" parameterType="BCheckRecords" useGeneratedKeys="true" keyProperty="id">
insert into b_check_records
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="certificateId != null">certificate_id,</if>
<if test="recipient != null">recipient,</if>
<if test="shippingAddress != null">shipping_address,</if>
<if test="receivingPhone != null">receiving_phone,</if>
<if test="createId != null">create_id,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateId != null">update_id,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
<if test="userId != null">user_id,</if>
<if test="deptId != null">dept_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="certificateId != null">#{certificateId},</if>
<if test="recipient != null">#{recipient},</if>
<if test="shippingAddress != null">#{shippingAddress},</if>
<if test="receivingPhone != null">#{receivingPhone},</if>
<if test="createId != null">#{createId},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateId != null">#{updateId},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
<if test="userId != null">#{userId},</if>
<if test="deptId != null">#{deptId},</if>
</trim>
</insert>
<update id="updateBCheckRecords" parameterType="BCheckRecords">
update b_check_records
<trim prefix="SET" suffixOverrides=",">
<if test="certificateId != null">certificate_id = #{certificateId},</if>
<if test="recipient != null">recipient = #{recipient},</if>
<if test="shippingAddress != null">shipping_address = #{shippingAddress},</if>
<if test="receivingPhone != null">receiving_phone = #{receivingPhone},</if>
<if test="createId != null">create_id = #{createId},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateId != null">update_id = #{updateId},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="userId != null">user_id = #{userId},</if>
<if test="deptId != null">dept_id = #{deptId},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBCheckRecordsById" parameterType="Long">
delete from b_check_records where id = #{id}
</delete>
<delete id="deleteBCheckRecordsByIds" parameterType="String">
delete from b_check_records where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

@ -0,0 +1,111 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper.BDistributionRecordsMapper">
<resultMap type="BDistributionRecords" id="BDistributionRecordsResult">
<result property="id" column="id" />
<result property="activityId" column="activity_id" />
<result property="certificateId" column="certificate_id" />
<result property="uId" column="u_id" />
<result property="content" column="content" />
<result property="createId" column="create_id" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateId" column="update_id" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="userId" column="user_id" />
<result property="deptId" column="dept_id" />
</resultMap>
<sql id="selectBDistributionRecordsVo">
select id, activity_id, certificate_id, u_id, content, create_id, create_by, create_time, update_id, update_by, update_time, remark, user_id, dept_id from b_distribution_records
</sql>
<select id="selectBDistributionRecordsList" parameterType="BDistributionRecords" resultMap="BDistributionRecordsResult">
<include refid="selectBDistributionRecordsVo"/>
<where>
<if test="activityId != null "> and activity_id = #{activityId}</if>
<if test="certificateId != null "> and certificate_id = #{certificateId}</if>
<if test="uId != null "> and u_id = #{uId}</if>
<if test="content != null and content != ''"> and content = #{content}</if>
<if test="createId != null "> and create_id = #{createId}</if>
<if test="updateId != null "> and update_id = #{updateId}</if>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if>
</where>
</select>
<select id="selectBDistributionRecordsById" parameterType="Long" resultMap="BDistributionRecordsResult">
<include refid="selectBDistributionRecordsVo"/>
where id = #{id}
</select>
<insert id="insertBDistributionRecords" parameterType="BDistributionRecords" useGeneratedKeys="true" keyProperty="id">
insert into b_distribution_records
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="activityId != null">activity_id,</if>
<if test="certificateId != null">certificate_id,</if>
<if test="uId != null">u_id,</if>
<if test="content != null">content,</if>
<if test="createId != null">create_id,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateId != null">update_id,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
<if test="userId != null">user_id,</if>
<if test="deptId != null">dept_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="activityId != null">#{activityId},</if>
<if test="certificateId != null">#{certificateId},</if>
<if test="uId != null">#{uId},</if>
<if test="content != null">#{content},</if>
<if test="createId != null">#{createId},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateId != null">#{updateId},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
<if test="userId != null">#{userId},</if>
<if test="deptId != null">#{deptId},</if>
</trim>
</insert>
<update id="updateBDistributionRecords" parameterType="BDistributionRecords">
update b_distribution_records
<trim prefix="SET" suffixOverrides=",">
<if test="activityId != null">activity_id = #{activityId},</if>
<if test="certificateId != null">certificate_id = #{certificateId},</if>
<if test="uId != null">u_id = #{uId},</if>
<if test="content != null">content = #{content},</if>
<if test="createId != null">create_id = #{createId},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateId != null">update_id = #{updateId},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="userId != null">user_id = #{userId},</if>
<if test="deptId != null">dept_id = #{deptId},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBDistributionRecordsById" parameterType="Long">
delete from b_distribution_records where id = #{id}
</delete>
<delete id="deleteBDistributionRecordsByIds" parameterType="String">
delete from b_distribution_records where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

@ -0,0 +1,106 @@
<?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.ruoyi.system.mapper.BExchangeRecordsMapper">
<resultMap type="BExchangeRecords" id="BExchangeRecordsResult">
<result property="id" column="id" />
<result property="activityId" column="activity_id" />
<result property="certificateId" column="certificate_id" />
<result property="uId" column="u_id" />
<result property="createId" column="create_id" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateId" column="update_id" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="userId" column="user_id" />
<result property="deptId" column="dept_id" />
</resultMap>
<sql id="selectBExchangeRecordsVo">
select id, activity_id, certificate_id, u_id, create_id, create_by, create_time, update_id, update_by, update_time, remark, user_id, dept_id from b_exchange_records
</sql>
<select id="selectBExchangeRecordsList" parameterType="BExchangeRecords" resultMap="BExchangeRecordsResult">
<include refid="selectBExchangeRecordsVo"/>
<where>
<if test="activityId != null "> and activity_id = #{activityId}</if>
<if test="certificateId != null "> and certificate_id = #{certificateId}</if>
<if test="uId != null "> and u_id = #{uId}</if>
<if test="createId != null "> and create_id = #{createId}</if>
<if test="updateId != null "> and update_id = #{updateId}</if>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if>
</where>
</select>
<select id="selectBExchangeRecordsById" parameterType="Long" resultMap="BExchangeRecordsResult">
<include refid="selectBExchangeRecordsVo"/>
where id = #{id}
</select>
<insert id="insertBExchangeRecords" parameterType="BExchangeRecords" useGeneratedKeys="true" keyProperty="id">
insert into b_exchange_records
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="activityId != null">activity_id,</if>
<if test="certificateId != null">certificate_id,</if>
<if test="uId != null">u_id,</if>
<if test="createId != null">create_id,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateId != null">update_id,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
<if test="userId != null">user_id,</if>
<if test="deptId != null">dept_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="activityId != null">#{activityId},</if>
<if test="certificateId != null">#{certificateId},</if>
<if test="uId != null">#{uId},</if>
<if test="createId != null">#{createId},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateId != null">#{updateId},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
<if test="userId != null">#{userId},</if>
<if test="deptId != null">#{deptId},</if>
</trim>
</insert>
<update id="updateBExchangeRecords" parameterType="BExchangeRecords">
update b_exchange_records
<trim prefix="SET" suffixOverrides=",">
<if test="activityId != null">activity_id = #{activityId},</if>
<if test="certificateId != null">certificate_id = #{certificateId},</if>
<if test="uId != null">u_id = #{uId},</if>
<if test="createId != null">create_id = #{createId},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateId != null">update_id = #{updateId},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="userId != null">user_id = #{userId},</if>
<if test="deptId != null">dept_id = #{deptId},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBExchangeRecordsById" parameterType="Long">
delete from b_exchange_records where id = #{id}
</delete>
<delete id="deleteBExchangeRecordsByIds" parameterType="String">
delete from b_exchange_records where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

@ -0,0 +1,101 @@
<?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.ruoyi.system.mapper.BInviteMapper">
<resultMap type="BInvite" id="BInviteResult">
<result property="id" column="id" />
<result property="uId" column="u_id" />
<result property="activityId" column="activity_id" />
<result property="createId" column="create_id" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateId" column="update_id" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="userId" column="user_id" />
<result property="deptId" column="dept_id" />
</resultMap>
<sql id="selectBInviteVo">
select id, u_id, activity_id, create_id, create_by, create_time, update_id, update_by, update_time, remark, user_id, dept_id from b_invite
</sql>
<select id="selectBInviteList" parameterType="BInvite" resultMap="BInviteResult">
<include refid="selectBInviteVo"/>
<where>
<if test="uId != null "> and u_id = #{uId}</if>
<if test="activityId != null "> and activity_id = #{activityId}</if>
<if test="createId != null "> and create_id = #{createId}</if>
<if test="updateId != null "> and update_id = #{updateId}</if>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if>
</where>
</select>
<select id="selectBInviteById" parameterType="Long" resultMap="BInviteResult">
<include refid="selectBInviteVo"/>
where id = #{id}
</select>
<insert id="insertBInvite" parameterType="BInvite" useGeneratedKeys="true" keyProperty="id">
insert into b_invite
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="uId != null">u_id,</if>
<if test="activityId != null">activity_id,</if>
<if test="createId != null">create_id,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateId != null">update_id,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
<if test="userId != null">user_id,</if>
<if test="deptId != null">dept_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="uId != null">#{uId},</if>
<if test="activityId != null">#{activityId},</if>
<if test="createId != null">#{createId},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateId != null">#{updateId},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
<if test="userId != null">#{userId},</if>
<if test="deptId != null">#{deptId},</if>
</trim>
</insert>
<update id="updateBInvite" parameterType="BInvite">
update b_invite
<trim prefix="SET" suffixOverrides=",">
<if test="uId != null">u_id = #{uId},</if>
<if test="activityId != null">activity_id = #{activityId},</if>
<if test="createId != null">create_id = #{createId},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateId != null">update_id = #{updateId},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="userId != null">user_id = #{userId},</if>
<if test="deptId != null">dept_id = #{deptId},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBInviteById" parameterType="Long">
delete from b_invite where id = #{id}
</delete>
<delete id="deleteBInviteByIds" parameterType="String">
delete from b_invite where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

@ -0,0 +1,146 @@
<?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.ruoyi.system.mapper.BPersonTagsMapper">
<resultMap type="BPersonTags" id="BPersonTagsResult">
<result property="id" column="id" />
<result property="uId" column="u_id" />
<result property="ageRange" column="age_range" />
<result property="housingRange" column="housing_range" />
<result property="educationRange" column="education_range" />
<result property="interestRange" column="interest_range" />
<result property="politicalRange" column="political_range" />
<result property="sexRange" column="sex_range" />
<result property="nationalityRange" column="nationality_range" />
<result property="professionalRange" column="professional_range" />
<result property="industryRange" column="industry_range" />
<result property="schoolRange" column="school_range" />
<result property="createId" column="create_id" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateId" column="update_id" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="userId" column="user_id" />
<result property="deptId" column="dept_id" />
</resultMap>
<sql id="selectBPersonTagsVo">
select id, u_id, age_range, housing_range, education_range, interest_range, political_range, sex_range, nationality_range, professional_range, industry_range, school_range, create_id, create_by, create_time, update_id, update_by, update_time, remark, user_id, dept_id from b_person_tags
</sql>
<select id="selectBPersonTagsList" parameterType="BPersonTags" resultMap="BPersonTagsResult">
<include refid="selectBPersonTagsVo"/>
<where>
<if test="uId != null "> and u_id = #{uId}</if>
<if test="ageRange != null and ageRange != ''"> and age_range = #{ageRange}</if>
<if test="housingRange != null and housingRange != ''"> and housing_range = #{housingRange}</if>
<if test="educationRange != null and educationRange != ''"> and education_range = #{educationRange}</if>
<if test="interestRange != null and interestRange != ''"> and interest_range = #{interestRange}</if>
<if test="politicalRange != null and politicalRange != ''"> and political_range = #{politicalRange}</if>
<if test="sexRange != null and sexRange != ''"> and sex_range = #{sexRange}</if>
<if test="nationalityRange != null and nationalityRange != ''"> and nationality_range = #{nationalityRange}</if>
<if test="professionalRange != null and professionalRange != ''"> and professional_range = #{professionalRange}</if>
<if test="industryRange != null and industryRange != ''"> and industry_range = #{industryRange}</if>
<if test="schoolRange != null and schoolRange != ''"> and school_range = #{schoolRange}</if>
<if test="createId != null "> and create_id = #{createId}</if>
<if test="updateId != null "> and update_id = #{updateId}</if>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if>
</where>
</select>
<select id="selectBPersonTagsById" parameterType="Long" resultMap="BPersonTagsResult">
<include refid="selectBPersonTagsVo"/>
where id = #{id}
</select>
<insert id="insertBPersonTags" parameterType="BPersonTags" useGeneratedKeys="true" keyProperty="id">
insert into b_person_tags
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="uId != null">u_id,</if>
<if test="ageRange != null">age_range,</if>
<if test="housingRange != null">housing_range,</if>
<if test="educationRange != null">education_range,</if>
<if test="interestRange != null">interest_range,</if>
<if test="politicalRange != null">political_range,</if>
<if test="sexRange != null">sex_range,</if>
<if test="nationalityRange != null">nationality_range,</if>
<if test="professionalRange != null">professional_range,</if>
<if test="industryRange != null">industry_range,</if>
<if test="schoolRange != null">school_range,</if>
<if test="createId != null">create_id,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateId != null">update_id,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
<if test="userId != null">user_id,</if>
<if test="deptId != null">dept_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="uId != null">#{uId},</if>
<if test="ageRange != null">#{ageRange},</if>
<if test="housingRange != null">#{housingRange},</if>
<if test="educationRange != null">#{educationRange},</if>
<if test="interestRange != null">#{interestRange},</if>
<if test="politicalRange != null">#{politicalRange},</if>
<if test="sexRange != null">#{sexRange},</if>
<if test="nationalityRange != null">#{nationalityRange},</if>
<if test="professionalRange != null">#{professionalRange},</if>
<if test="industryRange != null">#{industryRange},</if>
<if test="schoolRange != null">#{schoolRange},</if>
<if test="createId != null">#{createId},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateId != null">#{updateId},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
<if test="userId != null">#{userId},</if>
<if test="deptId != null">#{deptId},</if>
</trim>
</insert>
<update id="updateBPersonTags" parameterType="BPersonTags">
update b_person_tags
<trim prefix="SET" suffixOverrides=",">
<if test="uId != null">u_id = #{uId},</if>
<if test="ageRange != null">age_range = #{ageRange},</if>
<if test="housingRange != null">housing_range = #{housingRange},</if>
<if test="educationRange != null">education_range = #{educationRange},</if>
<if test="interestRange != null">interest_range = #{interestRange},</if>
<if test="politicalRange != null">political_range = #{politicalRange},</if>
<if test="sexRange != null">sex_range = #{sexRange},</if>
<if test="nationalityRange != null">nationality_range = #{nationalityRange},</if>
<if test="professionalRange != null">professional_range = #{professionalRange},</if>
<if test="industryRange != null">industry_range = #{industryRange},</if>
<if test="schoolRange != null">school_range = #{schoolRange},</if>
<if test="createId != null">create_id = #{createId},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateId != null">update_id = #{updateId},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="userId != null">user_id = #{userId},</if>
<if test="deptId != null">dept_id = #{deptId},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBPersonTagsById" parameterType="Long">
delete from b_person_tags where id = #{id}
</delete>
<delete id="deleteBPersonTagsByIds" parameterType="String">
delete from b_person_tags where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
Loading…
Cancel
Save