Pre Merge pull request !227 from git_drc/dev

This commit is contained in:
git_drc 2020-11-08 09:34:45 +08:00 committed by Gitee
commit 92ece53697
421 changed files with 23516 additions and 20 deletions

View File

@ -215,6 +215,12 @@
<version>${ruoyi.version}</version> <version>${ruoyi.version}</version>
</dependency> </dependency>
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-front</artifactId>
<version>${ruoyi.version}</version>
</dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>
@ -225,6 +231,8 @@
<module>ruoyi-quartz</module> <module>ruoyi-quartz</module>
<module>ruoyi-generator</module> <module>ruoyi-generator</module>
<module>ruoyi-common</module> <module>ruoyi-common</module>
<module>ruoyi-front</module>
<module>ruoyi-web</module>
</modules> </modules>
<packaging>pom</packaging> <packaging>pom</packaging>

View File

@ -79,6 +79,11 @@
<artifactId>ruoyi-generator</artifactId> <artifactId>ruoyi-generator</artifactId>
</dependency> </dependency>
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-front</artifactId>
</dependency>
</dependencies> </dependencies>
<build> <build>

View File

@ -81,6 +81,7 @@ public class CommonController
String url = serverConfig.getUrl() + fileName; String url = serverConfig.getUrl() + fileName;
AjaxResult ajax = AjaxResult.success(); AjaxResult ajax = AjaxResult.success();
ajax.put("fileName", fileName); ajax.put("fileName", fileName);
ajax.put("originalFilename", file.getOriginalFilename());
ajax.put("url", url); ajax.put("url", url);
return ajax; return ajax;
} }
@ -109,4 +110,40 @@ public class CommonController
FileUtils.writeBytes(downloadPath, response.getOutputStream()); FileUtils.writeBytes(downloadPath, response.getOutputStream());
} }
/**
* 通用下载请求
*
* @param filePath 文件路径
* @param realFileName 文件名称
* @param delete 是否删除
*/
@GetMapping("common/download2")
public void fileDownload(String filePath, String realFileName, Boolean delete, HttpServletResponse response, HttpServletRequest request)
{
try
{
if (!FileUtils.isValidFilename(realFileName))
{
throw new Exception(StringUtils.format("文件名称({})非法,不允许下载。 ", realFileName));
}
response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE);
FileUtils.setAttachmentResponseHeader(response, realFileName);
// 本地资源路径
String localPath = Global.getProfile();
// 数据库资源地址
String downloadPath = localPath + StringUtils.substringAfter(filePath, Constants.RESOURCE_PREFIX);
FileUtils.writeBytes(downloadPath, response.getOutputStream());
if (delete)
{
FileUtils.deleteFile(filePath);
}
}
catch (Exception e)
{
log.error("下载文件失败", e);
}
}
} }

View File

@ -0,0 +1,126 @@
package com.ruoyi.web.controller.front;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.front.domain.ClasssicCases;
import com.ruoyi.front.service.IClasssicCasesService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 典型案例Controller
*
* @author ruoyi
* @date 2020-10-21
*/
@Controller
@RequestMapping("/front/cases")
public class ClasssicCasesController extends BaseController
{
private String prefix = "front/cases";
@Autowired
private IClasssicCasesService classsicCasesService;
@RequiresPermissions("front:cases:view")
@GetMapping()
public String cases()
{
return prefix + "/cases";
}
/**
* 查询典型案例列表
*/
@RequiresPermissions("front:cases:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(ClasssicCases classsicCases)
{
startPage();
List<ClasssicCases> list = classsicCasesService.selectClasssicCasesList(classsicCases);
return getDataTable(list);
}
/**
* 导出典型案例列表
*/
@RequiresPermissions("front:cases:export")
@Log(title = "典型案例", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(ClasssicCases classsicCases)
{
List<ClasssicCases> list = classsicCasesService.selectClasssicCasesList(classsicCases);
ExcelUtil<ClasssicCases> util = new ExcelUtil<ClasssicCases>(ClasssicCases.class);
return util.exportExcel(list, "cases");
}
/**
* 新增典型案例
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存典型案例
*/
@RequiresPermissions("front:cases:add")
@Log(title = "典型案例", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(ClasssicCases classsicCases)
{
return toAjax(classsicCasesService.insertClasssicCases(classsicCases));
}
/**
* 修改典型案例
*/
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
ClasssicCases classsicCases = classsicCasesService.selectClasssicCasesById(id);
mmap.put("classsicCases", classsicCases);
return prefix + "/edit";
}
/**
* 修改保存典型案例
*/
@RequiresPermissions("front:cases:edit")
@Log(title = "典型案例", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(ClasssicCases classsicCases)
{
return toAjax(classsicCasesService.updateClasssicCases(classsicCases));
}
/**
* 删除典型案例
*/
@RequiresPermissions("front:cases:remove")
@Log(title = "典型案例", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(classsicCasesService.deleteClasssicCasesByIds(ids));
}
}

View File

@ -0,0 +1,126 @@
package com.ruoyi.web.controller.front;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.front.domain.CommonProblem;
import com.ruoyi.front.service.ICommonProblemService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 常见问题Controller
*
* @author ruoyi
* @date 2020-10-21
*/
@Controller
@RequestMapping("/front/problem")
public class CommonProblemController extends BaseController
{
private String prefix = "front/problem";
@Autowired
private ICommonProblemService commonProblemService;
@RequiresPermissions("front:problem:view")
@GetMapping()
public String problem()
{
return prefix + "/problem";
}
/**
* 查询常见问题列表
*/
@RequiresPermissions("front:problem:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(CommonProblem commonProblem)
{
startPage();
List<CommonProblem> list = commonProblemService.selectCommonProblemList(commonProblem);
return getDataTable(list);
}
/**
* 导出常见问题列表
*/
@RequiresPermissions("front:problem:export")
@Log(title = "常见问题", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(CommonProblem commonProblem)
{
List<CommonProblem> list = commonProblemService.selectCommonProblemList(commonProblem);
ExcelUtil<CommonProblem> util = new ExcelUtil<CommonProblem>(CommonProblem.class);
return util.exportExcel(list, "problem");
}
/**
* 新增常见问题
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存常见问题
*/
@RequiresPermissions("front:problem:add")
@Log(title = "常见问题", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(CommonProblem commonProblem)
{
return toAjax(commonProblemService.insertCommonProblem(commonProblem));
}
/**
* 修改常见问题
*/
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
CommonProblem commonProblem = commonProblemService.selectCommonProblemById(id);
mmap.put("commonProblem", commonProblem);
return prefix + "/edit";
}
/**
* 修改保存常见问题
*/
@RequiresPermissions("front:problem:edit")
@Log(title = "常见问题", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(CommonProblem commonProblem)
{
return toAjax(commonProblemService.updateCommonProblem(commonProblem));
}
/**
* 删除常见问题
*/
@RequiresPermissions("front:problem:remove")
@Log(title = "常见问题", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(commonProblemService.deleteCommonProblemByIds(ids));
}
}

View File

@ -0,0 +1,126 @@
package com.ruoyi.web.controller.front;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.front.domain.ContactInformation;
import com.ruoyi.front.service.IContactInformationService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 联系方式Controller
*
* @author ruoyi
* @date 2020-10-22
*/
@Controller
@RequestMapping("/front/contactInformation")
public class ContactInformationController extends BaseController
{
private String prefix = "front/contactInformation";
@Autowired
private IContactInformationService contactInformationService;
@RequiresPermissions("front:contactInformation:view")
@GetMapping()
public String contactInformation()
{
return prefix + "/contactInformation";
}
/**
* 查询联系方式列表
*/
@RequiresPermissions("front:contactInformation:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(ContactInformation contactInformation)
{
startPage();
List<ContactInformation> list = contactInformationService.selectContactInformationList(contactInformation);
return getDataTable(list);
}
/**
* 导出联系方式列表
*/
@RequiresPermissions("front:contactInformation:export")
@Log(title = "联系方式", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(ContactInformation contactInformation)
{
List<ContactInformation> list = contactInformationService.selectContactInformationList(contactInformation);
ExcelUtil<ContactInformation> util = new ExcelUtil<ContactInformation>(ContactInformation.class);
return util.exportExcel(list, "contactInformation");
}
/**
* 新增联系方式
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存联系方式
*/
@RequiresPermissions("front:contactInformation:add")
@Log(title = "联系方式", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(ContactInformation contactInformation)
{
return toAjax(contactInformationService.insertContactInformation(contactInformation));
}
/**
* 修改联系方式
*/
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
ContactInformation contactInformation = contactInformationService.selectContactInformationById(id);
mmap.put("contactInformation", contactInformation);
return prefix + "/edit";
}
/**
* 修改保存联系方式
*/
@RequiresPermissions("front:contactInformation:edit")
@Log(title = "联系方式", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(ContactInformation contactInformation)
{
return toAjax(contactInformationService.updateContactInformation(contactInformation));
}
/**
* 删除联系方式
*/
@RequiresPermissions("front:contactInformation:remove")
@Log(title = "联系方式", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(contactInformationService.deleteContactInformationByIds(ids));
}
}

View File

@ -0,0 +1,135 @@
package com.ruoyi.web.controller.front;
import java.util.List;
import java.util.stream.Collectors;
import com.ruoyi.front.service.IContractTypeService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.front.domain.ContractTemplate;
import com.ruoyi.front.service.IContractTemplateService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 合同模板Controller
*
* @author ruoyi
* @date 2020-10-21
*/
@Controller
@RequestMapping("/front/contractTemplate")
public class ContractTemplateController extends BaseController
{
private String prefix = "front/contract_template";
@Autowired
private IContractTemplateService contractTemplateService;
@Autowired
private IContractTypeService contractTypeService;
@RequiresPermissions("front:contract_template:view")
@GetMapping()
public String template(ModelMap mmap)
{
mmap.put("contractTypes", contractTypeService.getNormalContractTypeList());
return prefix + "/template";
}
/**
* 查询合同模板列表
*/
@RequiresPermissions("front:contractTemplate:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(ContractTemplate contractTemplate)
{
startPage();
List<ContractTemplate> list = contractTemplateService.selectContractTemplateList(contractTemplate);
return getDataTable(list);
}
/**
* 导出合同模板列表
*/
@RequiresPermissions("front:contractTemplate:export")
@Log(title = "合同模板", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(ContractTemplate contractTemplate)
{
List<ContractTemplate> list = contractTemplateService.selectContractTemplateList(contractTemplate);
ExcelUtil<ContractTemplate> util = new ExcelUtil<ContractTemplate>(ContractTemplate.class);
return util.exportExcel(list, "template");
}
/**
* 新增合同模板
*/
@GetMapping("/add")
public String add(ModelMap mmap)
{
mmap.put("contractTypes", contractTypeService.getNormalContractTypeList());
return prefix + "/add";
}
/**
* 新增保存合同模板
*/
@RequiresPermissions("front:contractTemplate:add")
@Log(title = "合同模板", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(ContractTemplate contractTemplate)
{
return toAjax(contractTemplateService.insertContractTemplate(contractTemplate));
}
/**
* 修改合同模板
*/
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
ContractTemplate contractTemplate = contractTemplateService.selectContractTemplateById(id);
mmap.put("contractTemplate", contractTemplate);
mmap.put("contractTypes", contractTypeService.getNormalContractTypeList());
return prefix + "/edit";
}
/**
* 修改保存合同模板
*/
@RequiresPermissions("front:contract_template:edit")
@Log(title = "合同模板", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(ContractTemplate contractTemplate)
{
return toAjax(contractTemplateService.updateContractTemplate(contractTemplate));
}
/**
* 删除合同模板
*/
@RequiresPermissions("front:contractTemplate:remove")
@Log(title = "合同模板", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(contractTemplateService.deleteContractTemplateByIds(ids));
}
}

View File

@ -0,0 +1,126 @@
package com.ruoyi.web.controller.front;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.front.domain.ContractType;
import com.ruoyi.front.service.IContractTypeService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 合同分类Controller
*
* @author ruoyi
* @date 2020-10-21
*/
@Controller
@RequestMapping("/front/contractType")
public class ContractTypeController extends BaseController
{
private String prefix = "front/contract_type";
@Autowired
private IContractTypeService contractTypeService;
@RequiresPermissions("front:contractType:view")
@GetMapping()
public String contract()
{
return prefix + "/type";
}
/**
* 查询合同分类列表
*/
@RequiresPermissions("front:contractType:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(ContractType contractType)
{
startPage();
List<ContractType> list = contractTypeService.selectContractTypeList(contractType);
return getDataTable(list);
}
/**
* 导出合同分类列表
*/
@RequiresPermissions("front:contractType:export")
@Log(title = "合同分类", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(ContractType contractType)
{
List<ContractType> list = contractTypeService.selectContractTypeList(contractType);
ExcelUtil<ContractType> util = new ExcelUtil<ContractType>(ContractType.class);
return util.exportExcel(list, "contract");
}
/**
* 新增合同分类
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存合同分类
*/
@RequiresPermissions("front:contractType:add")
@Log(title = "合同分类", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(ContractType contractType)
{
return toAjax(contractTypeService.insertContractType(contractType));
}
/**
* 修改合同分类
*/
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
ContractType contractType = contractTypeService.selectContractTypeById(id);
mmap.put("contractType", contractType);
return prefix + "/edit";
}
/**
* 修改保存合同分类
*/
@RequiresPermissions("front:contractType:edit")
@Log(title = "合同分类", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(ContractType contractType)
{
return toAjax(contractTypeService.updateContractType(contractType));
}
/**
* 删除合同分类
*/
@RequiresPermissions("front:contractType:remove")
@Log(title = "合同分类", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(contractTypeService.deleteContractTypeByIds(ids));
}
}

View File

@ -0,0 +1,126 @@
package com.ruoyi.web.controller.front;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.front.domain.EventRecruitment;
import com.ruoyi.front.service.IEventRecruitmentService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 活动招募Controller
*
* @author ruoyi
* @date 2020-10-21
*/
@Controller
@RequestMapping("/front/recruitment")
public class EventRecruitmentController extends BaseController
{
private String prefix = "front/recruitment";
@Autowired
private IEventRecruitmentService eventRecruitmentService;
@RequiresPermissions("front:recruitment:view")
@GetMapping()
public String recruitment()
{
return prefix + "/recruitment";
}
/**
* 查询活动招募列表
*/
@RequiresPermissions("front:recruitment:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(EventRecruitment eventRecruitment)
{
startPage();
List<EventRecruitment> list = eventRecruitmentService.selectEventRecruitmentList(eventRecruitment);
return getDataTable(list);
}
/**
* 导出活动招募列表
*/
@RequiresPermissions("front:recruitment:export")
@Log(title = "活动招募", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(EventRecruitment eventRecruitment)
{
List<EventRecruitment> list = eventRecruitmentService.selectEventRecruitmentList(eventRecruitment);
ExcelUtil<EventRecruitment> util = new ExcelUtil<EventRecruitment>(EventRecruitment.class);
return util.exportExcel(list, "recruitment");
}
/**
* 新增活动招募
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存活动招募
*/
@RequiresPermissions("front:recruitment:add")
@Log(title = "活动招募", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(EventRecruitment eventRecruitment)
{
return toAjax(eventRecruitmentService.insertEventRecruitment(eventRecruitment));
}
/**
* 修改活动招募
*/
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
EventRecruitment eventRecruitment = eventRecruitmentService.selectEventRecruitmentById(id);
mmap.put("eventRecruitment", eventRecruitment);
return prefix + "/edit";
}
/**
* 修改保存活动招募
*/
@RequiresPermissions("front:recruitment:edit")
@Log(title = "活动招募", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(EventRecruitment eventRecruitment)
{
return toAjax(eventRecruitmentService.updateEventRecruitment(eventRecruitment));
}
/**
* 删除活动招募
*/
@RequiresPermissions("front:recruitment:remove")
@Log(title = "活动招募", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(eventRecruitmentService.deleteEventRecruitmentByIds(ids));
}
}

View File

@ -0,0 +1,126 @@
package com.ruoyi.web.controller.front;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.front.domain.HomePageCarousel;
import com.ruoyi.front.service.IHomePageCarouselService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 首页轮播图Controller
*
* @author ruoyi
* @date 2020-10-21
*/
@Controller
@RequestMapping("/front/carousel")
public class HomePageCarouselController extends BaseController
{
private String prefix = "front/carousel";
@Autowired
private IHomePageCarouselService homePageCarouselService;
@RequiresPermissions("front:carousel:view")
@GetMapping()
public String carousel()
{
return prefix + "/carousel";
}
/**
* 查询首页轮播图列表
*/
@RequiresPermissions("front:carousel:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(HomePageCarousel homePageCarousel)
{
startPage();
List<HomePageCarousel> list = homePageCarouselService.selectHomePageCarouselList(homePageCarousel);
return getDataTable(list);
}
/**
* 导出首页轮播图列表
*/
@RequiresPermissions("front:carousel:export")
@Log(title = "首页轮播图", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(HomePageCarousel homePageCarousel)
{
List<HomePageCarousel> list = homePageCarouselService.selectHomePageCarouselList(homePageCarousel);
ExcelUtil<HomePageCarousel> util = new ExcelUtil<HomePageCarousel>(HomePageCarousel.class);
return util.exportExcel(list, "carousel");
}
/**
* 新增首页轮播图
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存首页轮播图
*/
@RequiresPermissions("front:carousel:add")
@Log(title = "首页轮播图", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(HomePageCarousel homePageCarousel)
{
return toAjax(homePageCarouselService.insertHomePageCarousel(homePageCarousel));
}
/**
* 修改首页轮播图
*/
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
HomePageCarousel homePageCarousel = homePageCarouselService.selectHomePageCarouselById(id);
mmap.put("homePageCarousel", homePageCarousel);
return prefix + "/edit";
}
/**
* 修改保存首页轮播图
*/
@RequiresPermissions("front:carousel:edit")
@Log(title = "首页轮播图", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(HomePageCarousel homePageCarousel)
{
return toAjax(homePageCarouselService.updateHomePageCarousel(homePageCarousel));
}
/**
* 删除首页轮播图
*/
@RequiresPermissions("front:carousel:remove")
@Log(title = "首页轮播图", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(homePageCarouselService.deleteHomePageCarouselByIds(ids));
}
}

View File

@ -0,0 +1,126 @@
package com.ruoyi.web.controller.front;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.front.domain.LegalServices;
import com.ruoyi.front.service.ILegalServicesService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 法律服务Controller
*
* @author ruoyi
* @date 2020-10-21
*/
@Controller
@RequestMapping("/front/services")
public class LegalServicesController extends BaseController
{
private String prefix = "front/services";
@Autowired
private ILegalServicesService legalServicesService;
@RequiresPermissions("front:services:view")
@GetMapping()
public String services()
{
return prefix + "/services";
}
/**
* 查询法律服务列表
*/
@RequiresPermissions("front:services:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(LegalServices legalServices)
{
startPage();
List<LegalServices> list = legalServicesService.selectLegalServicesList(legalServices);
return getDataTable(list);
}
/**
* 导出法律服务列表
*/
@RequiresPermissions("front:services:export")
@Log(title = "法律服务", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(LegalServices legalServices)
{
List<LegalServices> list = legalServicesService.selectLegalServicesList(legalServices);
ExcelUtil<LegalServices> util = new ExcelUtil<LegalServices>(LegalServices.class);
return util.exportExcel(list, "services");
}
/**
* 新增法律服务
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存法律服务
*/
@RequiresPermissions("front:services:add")
@Log(title = "法律服务", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(LegalServices legalServices)
{
return toAjax(legalServicesService.insertLegalServices(legalServices));
}
/**
* 修改法律服务
*/
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
LegalServices legalServices = legalServicesService.selectLegalServicesById(id);
mmap.put("legalServices", legalServices);
return prefix + "/edit";
}
/**
* 修改保存法律服务
*/
@RequiresPermissions("front:services:edit")
@Log(title = "法律服务", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(LegalServices legalServices)
{
return toAjax(legalServicesService.updateLegalServices(legalServices));
}
/**
* 删除法律服务
*/
@RequiresPermissions("front:services:remove")
@Log(title = "法律服务", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(legalServicesService.deleteLegalServicesByIds(ids));
}
}

View File

@ -0,0 +1,126 @@
package com.ruoyi.web.controller.front;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.front.domain.NewsInformation;
import com.ruoyi.front.service.INewsInformationService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 新闻动态Controller
*
* @author ruoyi
* @date 2020-10-21
*/
@Controller
@RequestMapping("/front/information")
public class NewsInformationController extends BaseController
{
private String prefix = "front/information";
@Autowired
private INewsInformationService newsInformationService;
@RequiresPermissions("front:information:view")
@GetMapping()
public String information()
{
return prefix + "/information";
}
/**
* 查询新闻动态列表
*/
@RequiresPermissions("front:information:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(NewsInformation newsInformation)
{
startPage();
List<NewsInformation> list = newsInformationService.selectNewsInformationList(newsInformation);
return getDataTable(list);
}
/**
* 导出新闻动态列表
*/
@RequiresPermissions("front:information:export")
@Log(title = "新闻动态", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(NewsInformation newsInformation)
{
List<NewsInformation> list = newsInformationService.selectNewsInformationList(newsInformation);
ExcelUtil<NewsInformation> util = new ExcelUtil<NewsInformation>(NewsInformation.class);
return util.exportExcel(list, "information");
}
/**
* 新增新闻动态
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存新闻动态
*/
@RequiresPermissions("front:information:add")
@Log(title = "新闻动态", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(NewsInformation newsInformation)
{
return toAjax(newsInformationService.insertNewsInformation(newsInformation));
}
/**
* 修改新闻动态
*/
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
NewsInformation newsInformation = newsInformationService.selectNewsInformationById(id);
mmap.put("newsInformation", newsInformation);
return prefix + "/edit";
}
/**
* 修改保存新闻动态
*/
@RequiresPermissions("front:information:edit")
@Log(title = "新闻动态", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(NewsInformation newsInformation)
{
return toAjax(newsInformationService.updateNewsInformation(newsInformation));
}
/**
* 删除新闻动态
*/
@RequiresPermissions("front:information:remove")
@Log(title = "新闻动态", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(newsInformationService.deleteNewsInformationByIds(ids));
}
}

View File

@ -0,0 +1,126 @@
package com.ruoyi.web.controller.front;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.front.domain.OnlineCourses;
import com.ruoyi.front.service.IOnlineCoursesService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 线上课程Controller
*
* @author ruoyi
* @date 2020-10-21
*/
@Controller
@RequestMapping("/front/courses")
public class OnlineCoursesController extends BaseController
{
private String prefix = "front/courses";
@Autowired
private IOnlineCoursesService onlineCoursesService;
@RequiresPermissions("front:courses:view")
@GetMapping()
public String courses()
{
return prefix + "/courses";
}
/**
* 查询线上课程列表
*/
@RequiresPermissions("front:courses:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(OnlineCourses onlineCourses)
{
startPage();
List<OnlineCourses> list = onlineCoursesService.selectOnlineCoursesList(onlineCourses);
return getDataTable(list);
}
/**
* 导出线上课程列表
*/
@RequiresPermissions("front:courses:export")
@Log(title = "线上课程", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(OnlineCourses onlineCourses)
{
List<OnlineCourses> list = onlineCoursesService.selectOnlineCoursesList(onlineCourses);
ExcelUtil<OnlineCourses> util = new ExcelUtil<OnlineCourses>(OnlineCourses.class);
return util.exportExcel(list, "courses");
}
/**
* 新增线上课程
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存线上课程
*/
@RequiresPermissions("front:courses:add")
@Log(title = "线上课程", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(OnlineCourses onlineCourses)
{
return toAjax(onlineCoursesService.insertOnlineCourses(onlineCourses));
}
/**
* 修改线上课程
*/
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
OnlineCourses onlineCourses = onlineCoursesService.selectOnlineCoursesById(id);
mmap.put("onlineCourses", onlineCourses);
return prefix + "/edit";
}
/**
* 修改保存线上课程
*/
@RequiresPermissions("front:courses:edit")
@Log(title = "线上课程", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(OnlineCourses onlineCourses)
{
return toAjax(onlineCoursesService.updateOnlineCourses(onlineCourses));
}
/**
* 删除线上课程
*/
@RequiresPermissions("front:courses:remove")
@Log(title = "线上课程", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(onlineCoursesService.deleteOnlineCoursesByIds(ids));
}
}

View File

@ -0,0 +1,149 @@
package com.ruoyi.front.controller;
import java.util.List;
import com.ruoyi.common.constant.Constants;
import com.ruoyi.common.utils.StringUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.front.domain.OnlineCoursesEvaluate;
import com.ruoyi.front.service.IOnlineCoursesEvaluateService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 线上课程评价Controller
*
* @author ruoyi
* @date 2020-11-05
*/
@Controller
@RequestMapping("/front/evaluate")
public class OnlineCoursesEvaluateController extends BaseController
{
private String prefix = "front/evaluate";
@Autowired
private IOnlineCoursesEvaluateService onlineCoursesEvaluateService;
@RequiresPermissions("front:evaluate:view")
@GetMapping()
public String evaluate()
{
return prefix + "/evaluate";
}
/**
* 查询线上课程评价列表
*/
@RequiresPermissions("front:evaluate:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(OnlineCoursesEvaluate onlineCoursesEvaluate)
{
startPage();
List<OnlineCoursesEvaluate> list = onlineCoursesEvaluateService.selectOnlineCoursesEvaluateList(onlineCoursesEvaluate);
return getDataTable(list);
}
/**
* 导出线上课程评价列表
*/
@RequiresPermissions("front:evaluate:export")
@Log(title = "线上课程评价", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(OnlineCoursesEvaluate onlineCoursesEvaluate)
{
List<OnlineCoursesEvaluate> list = onlineCoursesEvaluateService.selectOnlineCoursesEvaluateList(onlineCoursesEvaluate);
ExcelUtil<OnlineCoursesEvaluate> util = new ExcelUtil<OnlineCoursesEvaluate>(OnlineCoursesEvaluate.class);
return util.exportExcel(list, "evaluate");
}
/**
* 新增线上课程评价
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存线上课程评价
*/
@RequiresPermissions("front:evaluate:add")
@Log(title = "线上课程评价", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(OnlineCoursesEvaluate onlineCoursesEvaluate)
{
return toAjax(onlineCoursesEvaluateService.insertOnlineCoursesEvaluate(onlineCoursesEvaluate));
}
/**
* 修改线上课程评价
*/
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
OnlineCoursesEvaluate onlineCoursesEvaluate = onlineCoursesEvaluateService.selectOnlineCoursesEvaluateById(id);
mmap.put("onlineCoursesEvaluate", onlineCoursesEvaluate);
return prefix + "/edit";
}
/**
* 修改保存线上课程评价
*/
@RequiresPermissions("front:evaluate:edit")
@Log(title = "线上课程评价", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(OnlineCoursesEvaluate onlineCoursesEvaluate)
{
return toAjax(onlineCoursesEvaluateService.updateOnlineCoursesEvaluate(onlineCoursesEvaluate));
}
/**
* 删除线上课程评价
*/
@RequiresPermissions("front:evaluate:remove")
@Log(title = "线上课程评价", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(onlineCoursesEvaluateService.deleteOnlineCoursesEvaluateByIds(ids));
}
/**
* 评论批量审核
*/
@GetMapping("/audit")
public String audit(@RequestParam String ids, ModelMap mmap)
{
mmap.put("ids", ids);
return prefix + "/audit";
}
/**
* 评论批量审核
*/
@PostMapping("/audit")
@ResponseBody
public AjaxResult audit(@RequestParam() String ids, @RequestParam String auditStatus,@RequestParam String remark)
{
// 未审核通过则备注不能为空
if (StringUtils.isEmpty(remark) && auditStatus.equals(Constants.NO_PASS_AUDIT)) {
return error("备注不能为空");
}
return toAjax(onlineCoursesEvaluateService.audit(ids, auditStatus,remark));
}
}

View File

@ -0,0 +1,126 @@
package com.ruoyi.web.controller.front;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.front.domain.OnlineMessage;
import com.ruoyi.front.service.IOnlineMessageService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 在线留言Controller
*
* @author ruoyi
* @date 2020-10-21
*/
@Controller
@RequestMapping("/front/message")
public class OnlineMessageController extends BaseController
{
private String prefix = "front/message";
@Autowired
private IOnlineMessageService onlineMessageService;
@RequiresPermissions("front:message:view")
@GetMapping()
public String message()
{
return prefix + "/message";
}
/**
* 查询在线留言列表
*/
@RequiresPermissions("front:message:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(OnlineMessage onlineMessage)
{
startPage();
List<OnlineMessage> list = onlineMessageService.selectOnlineMessageList(onlineMessage);
return getDataTable(list);
}
/**
* 导出在线留言列表
*/
@RequiresPermissions("front:message:export")
@Log(title = "在线留言", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(OnlineMessage onlineMessage)
{
List<OnlineMessage> list = onlineMessageService.selectOnlineMessageList(onlineMessage);
ExcelUtil<OnlineMessage> util = new ExcelUtil<OnlineMessage>(OnlineMessage.class);
return util.exportExcel(list, "message");
}
/**
* 新增在线留言
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存在线留言
*/
@RequiresPermissions("front:message:add")
@Log(title = "在线留言", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(OnlineMessage onlineMessage)
{
return toAjax(onlineMessageService.insertOnlineMessage(onlineMessage));
}
/**
* 修改在线留言
*/
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
OnlineMessage onlineMessage = onlineMessageService.selectOnlineMessageById(id);
mmap.put("onlineMessage", onlineMessage);
return prefix + "/edit";
}
/**
* 修改保存在线留言
*/
@RequiresPermissions("front:message:edit")
@Log(title = "在线留言", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(OnlineMessage onlineMessage)
{
return toAjax(onlineMessageService.updateOnlineMessage(onlineMessage));
}
/**
* 删除在线留言
*/
@RequiresPermissions("front:message:remove")
@Log(title = "在线留言", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(onlineMessageService.deleteOnlineMessageByIds(ids));
}
}

View File

@ -0,0 +1,162 @@
package com.ruoyi.web.controller.front;
import java.util.List;
import com.ruoyi.common.constant.Constants;
import com.ruoyi.common.utils.StringUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.front.domain.ServiceOrganization;
import com.ruoyi.front.service.IServiceOrganizationService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 服务组织Controller
*
* @author ruoyi
* @date 2020-10-21
*/
@Controller
@RequestMapping("/front/organization")
public class ServiceOrganizationController extends BaseController
{
private String prefix = "front/organization";
@Autowired
private IServiceOrganizationService serviceOrganizationService;
@RequiresPermissions("front:organization:view")
@GetMapping()
public String organization()
{
return prefix + "/organization";
}
/**
* 查询服务组织列表
*/
@RequiresPermissions("front:organization:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(ServiceOrganization serviceOrganization)
{
startPage();
List<ServiceOrganization> list = serviceOrganizationService.selectServiceOrganizationList(serviceOrganization);
return getDataTable(list);
}
/**
* 导出服务组织列表
*/
@RequiresPermissions("front:organization:export")
@Log(title = "服务组织", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(ServiceOrganization serviceOrganization)
{
List<ServiceOrganization> list = serviceOrganizationService.selectServiceOrganizationList(serviceOrganization);
ExcelUtil<ServiceOrganization> util = new ExcelUtil<ServiceOrganization>(ServiceOrganization.class);
return util.exportExcel(list, "organization");
}
/**
* 新增服务组织
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存服务组织
*/
@RequiresPermissions("front:organization:add")
@Log(title = "服务组织", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(ServiceOrganization serviceOrganization)
{
return toAjax(serviceOrganizationService.insertServiceOrganization(serviceOrganization));
}
/**
* 修改服务组织
*/
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
ServiceOrganization serviceOrganization = serviceOrganizationService.selectServiceOrganizationById(id);
mmap.put("serviceOrganization", serviceOrganization);
return prefix + "/edit";
}
/**
* 修改保存服务组织
*/
@RequiresPermissions("front:organization:edit")
@Log(title = "服务组织", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(ServiceOrganization serviceOrganization)
{
return toAjax(serviceOrganizationService.updateServiceOrganization(serviceOrganization));
}
/**
* 删除服务组织
*/
@RequiresPermissions("front:organization:remove")
@Log(title = "服务组织", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(serviceOrganizationService.deleteServiceOrganizationByIds(ids));
}
/**
* 新增服务组织
*/
@GetMapping("/audit")
public String audit(@RequestParam String ids, ModelMap mmap)
{
mmap.put("ids", ids);
return prefix + "/audit";
}
/**
* 审核服务组织
*/
@RequiresPermissions("front:organization:audit")
@PostMapping("/audit")
@ResponseBody
public AjaxResult audit(@RequestParam() String ids, @RequestParam String auditStatus, String remark)
{
// 未审核通过则备注不能为空
if (StringUtils.isEmpty(remark) && auditStatus.equals(Constants.NO_PASS_AUDIT)) {
return error("备注不能为空");
}
return toAjax(serviceOrganizationService.audit(ids, auditStatus, remark));
}
/**
* 停用或者启用
*/
@RequiresPermissions("front:organization:updateStatus")
@PostMapping("/updateStatus")
@ResponseBody
public AjaxResult updateStatus(@RequestParam() String ids, @RequestParam String status)
{
return toAjax(serviceOrganizationService.updateStatus(ids, status));
}
}

View File

@ -0,0 +1,9 @@
package com.ruoyi.web.controller.front;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("/web")
public class WebController {
}

View File

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

View File

@ -19,7 +19,7 @@ server:
port: 80 port: 80
servlet: servlet:
# 应用的访问路径 # 应用的访问路径
context-path: / context-path: /manager
tomcat: tomcat:
# tomcat的URI编码 # tomcat的URI编码
uri-encoding: UTF-8 uri-encoding: UTF-8
@ -96,9 +96,9 @@ shiro:
# 首页地址 # 首页地址
indexUrl: /index indexUrl: /index
# 验证码开关 # 验证码开关
captchaEnabled: true captchaEnabled: false
# 验证码类型 math 数组计算 char 字符 # 验证码类型 math 数组计算 char 字符
captchaType: math captchaType: char
cookie: cookie:
# 设置Cookie的域名 默认空,即当前访问的域名 # 设置Cookie的域名 默认空,即当前访问的域名
domain: domain:

View File

@ -474,3 +474,93 @@ $.ajaxSetup({
} }
} }
}); });
//上传文件
function uploadFile(async, filePathId, fileNameId, absolutePAthId) {
let res = -1;
var formData = new FormData();
if ($('#filePath')[0].files[0] == null) {
$.modal.alertWarning("请先选择文件路径");
return res;
}
formData.append('fileName', $("#fileName").val());
formData.append('file', $('#filePath')[0].files[0]);
$.ajax({
url: ctx + "/common/upload",
type: 'post',
cache: false,
data: formData,
processData: false,
contentType: false,
dataType: "json",
async: async,
success: function(result) {
if (result.code == web_status.SUCCESS) {
if (filePathId) {
$('#' + filePathId).val(result.url);
}
if (fileNameId) {
$('#' + fileNameId).val(result.originalFilename);
}
if (absolutePAthId) {
$('#' + absolutePAthId).val(result.fileName);
}
} else {
$.modal.alertError(result.msg);
}
res = result.code;
},
error: function(error) {
$.modal.alertWarning("图片上传失败。");
}
});
return res;
}
//上传文件
function uploadMoreFile(async, filePathId,formNameId, fileNameId, absolutePAthId) {
let res = -1;
var formData = new FormData();
if ($('#'+formNameId)[0].files[0] == null) {
$.modal.alertWarning("请先选择文件路径");
return res;
}
formData.append('fileName', $("#fileName").val());
formData.append('file', $('#'+formNameId)[0].files[0]);
$.ajax({
url: ctx + "/common/upload",
type: 'post',
cache: false,
data: formData,
processData: false,
contentType: false,
dataType: "json",
async: async,
success: function(result) {
if (result.code == web_status.SUCCESS) {
if (filePathId) {
$('#' + filePathId).val(result.url);
}
if (fileNameId) {
$('#' + fileNameId).val(result.originalFilename);
}
if (absolutePAthId) {
$('#' + absolutePAthId).val(result.fileName);
}
} else {
$.modal.alertError(result.msg);
}
res = result.code;
},
error: function(error) {
$.modal.alertWarning("文件上传失败。");
}
});
return res;
}

View File

@ -328,14 +328,32 @@ var table = {
if ($.common.isEmpty(height)) { if ($.common.isEmpty(height)) {
height = 'auto'; height = 'auto';
} }
// blank or self // blank or self
var _target = $.common.isEmpty(target) ? 'self' : target; var _target = $.common.isEmpty(target) ? 'self' : target;
if ($.common.isNotEmpty(value)) { if ($.common.isNotEmpty(value)) {
return $.common.sprintf("<img class='img-circle img-xs' data-height='%s' data-width='%s' data-target='%s' src='%s'/>", height, width, _target, value); return $.common.sprintf("<img class='img-circle img-xs' data-height='%s' data-width='%s' data-target='%s' src='%s'/>", height, width, _target, value);
} else { } else {
return $.common.nullToStr(value); return $.common.nullToStr(value);
} }
},
// 图片预览
videoView: function (value, height, width, target) {
if ($.common.isEmpty(width)) {
width = 'auto';
}
if ($.common.isEmpty(height)) {
height = 'auto';
}
// blank or self
var _target = $.common.isEmpty(target) ? 'self' : target;
if ($.common.isNotEmpty(value)) {
return $.common.sprintf("<video controls data-height='%s' data-width='%s' data-target='%s'><source src='%s' type='video/mp4'></video>", height, width, _target, value);
} else {
return $.common.nullToStr(value);
}
}, },
// 搜索-默认第一个form // 搜索-默认第一个form
search: function(formId, tableId) { search: function(formId, tableId) {
table.set(tableId); table.set(tableId);
@ -1231,7 +1249,34 @@ var table = {
$.modal.alertError(result.msg); $.modal.alertError(result.msg);
} }
$.modal.closeLoading(); $.modal.closeLoading();
} },
// 审核信息
auditAll: function() {
table.set();
let rows = $.common.isEmpty(table.options.uniqueId) ? $.table.selectFirstColumns() : $.table.selectColumns(table.options.uniqueId);
if (rows.length == 0) {
$.modal.alertWarning("请至少选择一条记录");
return;
}
let url = table.options.auditUrl.concat("?ids=" + rows.join());
$.modal.open("审核" + table.options.modalName, url);
},
//启用or停用
updateStatusAll: function(status) {
table.set();
let rows = $.common.isEmpty(table.options.uniqueId) ? $.table.selectFirstColumns() : $.table.selectColumns(table.options.uniqueId);
if (rows.length == 0) {
$.modal.alertWarning("请至少选择一条记录");
return;
}
var url = table.options.updateStatusUrl;
var data = { "ids": rows.join(), "status": status};
$.operate.submit(url, "post", "json", data);
}
}, },
// 校验封装处理 // 校验封装处理
validate: { validate: {

View File

@ -4,7 +4,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="renderer" content="webkit"> <meta name="renderer" content="webkit">
<title>若依系统首页</title> <title>企业法律服务平台系统首页</title>
<!-- 避免IE使用兼容模式 --> <!-- 避免IE使用兼容模式 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<link th:href="@{favicon.ico}" rel="shortcut icon"/> <link th:href="@{favicon.ico}" rel="shortcut icon"/>

View File

@ -3,8 +3,8 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<title>登录若依系统</title> <title>企业法律服务平台管理系统</title>
<meta name="description" content="若依后台管理框架"> <meta name="description" content="企业法律服务平台管理系统">
<link href="../static/css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/> <link href="../static/css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
<link href="../static/css/font-awesome.min.css" th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/> <link href="../static/css/font-awesome.min.css" th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>
<link href="../static/css/style.css" th:href="@{/css/style.css}" rel="stylesheet"/> <link href="../static/css/style.css" th:href="@{/css/style.css}" rel="stylesheet"/>
@ -29,7 +29,7 @@
<h1><img alt="[ 若依 ]" src="../static/ruoyi.png" th:src="@{/ruoyi.png}"></h1> <h1><img alt="[ 若依 ]" src="../static/ruoyi.png" th:src="@{/ruoyi.png}"></h1>
</div> </div>
<div class="m-b"></div> <div class="m-b"></div>
<h4>欢迎使用 <strong>若依 后台管理系统</strong></h4> <h4>欢迎使用 <strong>企业法律服务平台管理系统</strong></h4>
<ul class="m-b"> <ul class="m-b">
<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> SpringBoot</li> <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> SpringBoot</li>
<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> Mybatis</li> <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> Mybatis</li>
@ -43,7 +43,7 @@
<div class="col-sm-5"> <div class="col-sm-5">
<form id="signupForm" autocomplete="off"> <form id="signupForm" autocomplete="off">
<h4 class="no-margins">登录:</h4> <h4 class="no-margins">登录:</h4>
<p class="m-t-md">你若不离不弃,我必生死相依</p> <p class="m-t-md"></p>
<input type="text" name="username" class="form-control uname" placeholder="用户名" value="admin" /> <input type="text" name="username" class="form-control uname" placeholder="用户名" value="admin" />
<input type="password" name="password" class="form-control pword" placeholder="密码" value="admin123" /> <input type="password" name="password" class="form-control pword" placeholder="密码" value="admin123" />
<div class="row m-t" th:if="${captchaEnabled==true}"> <div class="row m-t" th:if="${captchaEnabled==true}">
@ -65,7 +65,7 @@
</div> </div>
<div class="signup-footer"> <div class="signup-footer">
<div class="pull-left"> <div class="pull-left">
&copy; 2019 All Rights Reserved. RuoYi <br> &copy; 上海市黄浦区司法局 | 黄浦区商务委 <br>
</div> </div>
</div> </div>
</div> </div>

View File

@ -64,7 +64,7 @@
</div> </div>
<div class="signup-footer"> <div class="signup-footer">
<div class="pull-left"> <div class="pull-left">
&copy; 2019 All Rights Reserved. RuoYi <br> &copy; 上海市黄浦区司法局 | 黄浦区商务委 <br>
</div> </div>
</div> </div>
</div> </div>

View File

@ -91,4 +91,34 @@ public class Constants
* 资源映射路径 前缀 * 资源映射路径 前缀
*/ */
public static final String RESOURCE_PREFIX = "/profile"; public static final String RESOURCE_PREFIX = "/profile";
/**
* 正常.
*/
public static final String NORMAL = "0";
/**
* 停用
*/
public static final String DISABLE = "1";
/**
* 未删除
*/
public static final String NO_DELETE = "0";
/**
* 待审核
*/
public static final String WAIT_AUDIT = "0";
/**
* 审核不通过
*/
public static final String NO_PASS_AUDIT = "1";
/**
* 审核通过
*/
public static final String PASS_AUDIT = "2";
} }

View File

@ -6,6 +6,7 @@ import java.io.InputStream;
import java.util.LinkedHashMap; import java.util.LinkedHashMap;
import java.util.Map; import java.util.Map;
import javax.servlet.Filter; import javax.servlet.Filter;
import com.ruoyi.common.constant.Constants;
import org.apache.commons.io.IOUtils; import org.apache.commons.io.IOUtils;
import org.apache.shiro.cache.ehcache.EhCacheManager; import org.apache.shiro.cache.ehcache.EhCacheManager;
import org.apache.shiro.codec.Base64; import org.apache.shiro.codec.Base64;
@ -34,6 +35,7 @@ import com.ruoyi.framework.shiro.web.filter.sync.SyncOnlineSessionFilter;
import com.ruoyi.framework.shiro.web.session.OnlineWebSessionManager; import com.ruoyi.framework.shiro.web.session.OnlineWebSessionManager;
import com.ruoyi.framework.shiro.web.session.SpringSessionValidationScheduler; import com.ruoyi.framework.shiro.web.session.SpringSessionValidationScheduler;
import at.pollux.thymeleaf.shiro.dialect.ShiroDialect; import at.pollux.thymeleaf.shiro.dialect.ShiroDialect;
import org.springframework.core.annotation.Order;
/** /**
* 权限配置加载 * 权限配置加载
@ -278,6 +280,14 @@ public class ShiroConfig
filterChainDefinitionMap.put("/ajax/**", "anon"); filterChainDefinitionMap.put("/ajax/**", "anon");
filterChainDefinitionMap.put("/js/**", "anon"); filterChainDefinitionMap.put("/js/**", "anon");
filterChainDefinitionMap.put("/ruoyi/**", "anon"); filterChainDefinitionMap.put("/ruoyi/**", "anon");
//上传到本地的图片允许匿名访问
filterChainDefinitionMap.put(Constants.RESOURCE_PREFIX + "/**", "anon");
//网站允许匿名访问
filterChainDefinitionMap.put("/home/**", "anon");
filterChainDefinitionMap.put("/images/**", "anon");
filterChainDefinitionMap.put("/captcha/captchaImage**", "anon"); filterChainDefinitionMap.put("/captcha/captchaImage**", "anon");
// 退出 logout地址shiro去清除session // 退出 logout地址shiro去清除session
filterChainDefinitionMap.put("/logout", "logout"); filterChainDefinitionMap.put("/logout", "logout");

27
ruoyi-front/pom.xml Normal file
View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>ruoyi</artifactId>
<groupId>com.ruoyi</groupId>
<version>4.4.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ruoyi-front</artifactId>
<dependencies>
<!-- 通用工具-->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-common</artifactId>
</dependency>
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-framework</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,151 @@
package com.ruoyi.front.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;
/**
* 典型案例对象 classsic_cases
*
* @author ruoyi
* @date 2020-10-21
*/
public class ClasssicCases extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** ID */
private Long id;
/** 标题 */
@Excel(name = "标题")
private String title;
/** 简介 */
@Excel(name = "简介")
private String introduction;
/** 详情内容 */
@Excel(name = "详情内容")
private String content;
/** 案例类型(来至于字典表) */
@Excel(name = "案例类型(来至于字典表)")
private String type;
/** 点击量 */
@Excel(name = "点击量")
private Integer hits;
/** 图片地址(多个地址用,分隔) */
private String pictureUrl;
/** 状态0正常 1停用 */
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
private String status;
/** 删除标志0代表存在 2代表删除 */
private String delFlag;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setTitle(String title)
{
this.title = title;
}
public String getTitle()
{
return title;
}
public void setIntroduction(String introduction)
{
this.introduction = introduction;
}
public String getIntroduction()
{
return introduction;
}
public void setContent(String content)
{
this.content = content;
}
public String getContent()
{
return content;
}
public void setType(String type)
{
this.type = type;
}
public String getType()
{
return type;
}
public void setHits(Integer hits)
{
this.hits = hits;
}
public Integer getHits()
{
return hits;
}
public void setPictureUrl(String pictureUrl)
{
this.pictureUrl = pictureUrl;
}
public String getPictureUrl()
{
return pictureUrl;
}
public void setStatus(String status)
{
this.status = status;
}
public String getStatus()
{
return status;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("title", getTitle())
.append("introduction", getIntroduction())
.append("content", getContent())
.append("type", getType())
.append("hits", getHits())
.append("pictureUrl", getPictureUrl())
.append("status", getStatus())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,108 @@
package com.ruoyi.front.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;
/**
* 常见问题对象 common_problem
*
* @author ruoyi
* @date 2020-10-21
*/
public class CommonProblem extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** ID */
private Long id;
/** 标题 */
@Excel(name = "标题")
private String title;
/** 内容 */
@Excel(name = "内容")
private String content;
/** 内容 */
@Excel(name = "解析")
private String explains;
/** 点击量 */
@Excel(name = "点击量")
private Integer hits;
/** 删除标志0代表存在 2代表删除 */
private String delFlag;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setTitle(String title)
{
this.title = title;
}
public String getTitle()
{
return title;
}
public void setContent(String content)
{
this.content = content;
}
public String getContent()
{
return content;
}
public void setHits(Integer hits)
{
this.hits = hits;
}
public Integer getHits()
{
return hits;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
public String getExplains() {
return explains;
}
public void setExplains(String explains) {
this.explains = explains;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("title", getTitle())
.append("content", getContent())
.append("hits", getHits())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,152 @@
package com.ruoyi.front.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;
/**
* 联系方式对象 contact_information
*
* @author ruoyi
* @date 2020-10-22
*/
public class ContactInformation extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** ID */
private Long id;
/** 机构地址 */
@Excel(name = "机构地址")
private String address;
/** 服务电话 */
@Excel(name = "服务电话")
private String servicePhone;
/** 监督电话 */
@Excel(name = "监督电话")
private String supervisePhone;
/** 监督部门 */
@Excel(name = "监督部门")
private String superviseDept;
/** 邮箱 */
@Excel(name = "邮箱")
private String email;
/** 服务时间 */
@Excel(name = "服务时间")
private String serviceDate;
/** 版权所有 */
@Excel(name = "版权所有")
private String copyright;
/** 删除标志0代表存在 2代表删除 */
private String delFlag;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setAddress(String address)
{
this.address = address;
}
public String getAddress()
{
return address;
}
public void setServicePhone(String servicePhone)
{
this.servicePhone = servicePhone;
}
public String getServicePhone()
{
return servicePhone;
}
public void setSupervisePhone(String supervisePhone)
{
this.supervisePhone = supervisePhone;
}
public String getSupervisePhone()
{
return supervisePhone;
}
public void setSuperviseDept(String superviseDept)
{
this.superviseDept = superviseDept;
}
public String getSuperviseDept()
{
return superviseDept;
}
public void setEmail(String email)
{
this.email = email;
}
public String getEmail()
{
return email;
}
public void setServiceDate(String serviceDate)
{
this.serviceDate = serviceDate;
}
public String getServiceDate()
{
return serviceDate;
}
public void setCopyright(String copyright)
{
this.copyright = copyright;
}
public String getCopyright()
{
return copyright;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("address", getAddress())
.append("servicePhone", getServicePhone())
.append("supervisePhone", getSupervisePhone())
.append("superviseDept", getSuperviseDept())
.append("email", getEmail())
.append("serviceDate", getServiceDate())
.append("copyright", getCopyright())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,164 @@
package com.ruoyi.front.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;
/**
* 合同模板对象 contract_template
*
* @author ruoyi
* @date 2020-10-21
*/
public class ContractTemplate extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** ID */
private Long id;
/** 合同分类id(contract_type表主键id) */
@Excel(name = "合同分类id(contract_type表主键id)")
private String type;
/** 标题 */
@Excel(name = "标题")
private String title;
/** 简介 */
@Excel(name = "简介")
private String introduction;
/** 详情内容 */
@Excel(name = "详情内容")
private String content;
/** 点击量 */
@Excel(name = "点击量")
private Integer hits;
/** 附件下载(多个地址用,分隔) */
@Excel(name = "附件地址")
private String enclosureUrl;
@Excel(name = "附件名称")
private String enclosureName;
/** 状态0正常 1停用 */
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
private String status;
/** 删除标志0代表存在 2代表删除 */
private String delFlag;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setType(String type)
{
this.type = type;
}
public String getType()
{
return type;
}
public void setTitle(String title)
{
this.title = title;
}
public String getTitle()
{
return title;
}
public void setIntroduction(String introduction)
{
this.introduction = introduction;
}
public String getIntroduction()
{
return introduction;
}
public void setContent(String content)
{
this.content = content;
}
public String getContent()
{
return content;
}
public void setHits(Integer hits)
{
this.hits = hits;
}
public Integer getHits()
{
return hits;
}
public void setEnclosureUrl(String enclosureUrl)
{
this.enclosureUrl = enclosureUrl;
}
public String getEnclosureUrl()
{
return enclosureUrl;
}
public void setStatus(String status)
{
this.status = status;
}
public String getStatus()
{
return status;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
public String getEnclosureName() {
return enclosureName;
}
public void setEnclosureName(String enclosureName) {
this.enclosureName = enclosureName;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("type", getType())
.append("title", getTitle())
.append("introduction", getIntroduction())
.append("content", getContent())
.append("hits", getHits())
.append("enclosureUrl", getEnclosureUrl())
.append("status", getStatus())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.toString();
}
}

View File

@ -0,0 +1,83 @@
package com.ruoyi.front.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;
/**
* 合同分类对象 contract_type
*
* @author ruoyi
* @date 2020-10-21
*/
public class ContractType extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** ID */
private Long id;
/** 分类名称 */
@Excel(name = "分类名称")
private String name;
/** */
@Excel(name = "")
private String englishName;
/** 删除标志0代表存在 2代表删除 */
private String delFlag;
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 setEnglishName(String englishName)
{
this.englishName = englishName;
}
public String getEnglishName()
{
return englishName;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("englishName", getEnglishName())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.toString();
}
}

View File

@ -0,0 +1,138 @@
package com.ruoyi.front.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;
/**
* 活动招募对象 event_recruitment
*
* @author ruoyi
* @date 2020-10-21
*/
public class EventRecruitment extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** ID */
private Long id;
/** 标题 */
@Excel(name = "标题")
private String title;
/** 简介 */
@Excel(name = "简介")
private String introduction;
/** 活动时间 */
@Excel(name = "活动时间")
private String activityTime;
/** 地址 */
@Excel(name = "地址")
private String address;
/** 主办单位 */
@Excel(name = "主办单位")
private String organizer;
/** 图片地址 */
@Excel(name = "图片地址")
private String pictureUrl;
/** 删除标志0代表存在 2代表删除 */
private String delFlag;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setTitle(String title)
{
this.title = title;
}
public String getTitle()
{
return title;
}
public void setIntroduction(String introduction)
{
this.introduction = introduction;
}
public String getIntroduction()
{
return introduction;
}
public void setActivityTime(String activityTime)
{
this.activityTime = activityTime;
}
public String getActivityTime()
{
return activityTime;
}
public void setAddress(String address)
{
this.address = address;
}
public String getAddress()
{
return address;
}
public void setOrganizer(String organizer)
{
this.organizer = organizer;
}
public String getOrganizer()
{
return organizer;
}
public void setPictureUrl(String pictureUrl)
{
this.pictureUrl = pictureUrl;
}
public String getPictureUrl()
{
return pictureUrl;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("title", getTitle())
.append("introduction", getIntroduction())
.append("activityTime", getActivityTime())
.append("address", getAddress())
.append("organizer", getOrganizer())
.append("pictureUrl", getPictureUrl())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,68 @@
package com.ruoyi.front.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;
/**
* 首页轮播图对象 home_page_carousel
*
* @author ruoyi
* @date 2020-10-21
*/
public class HomePageCarousel extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** ID */
private Long id;
/** 图片地址 */
@Excel(name = "图片地址")
private String pictureUrl;
/** 删除标志0代表存在 2代表删除 */
private String delFlag;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setPictureUrl(String pictureUrl)
{
this.pictureUrl = pictureUrl;
}
public String getPictureUrl()
{
return pictureUrl;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("pictureUrl", getPictureUrl())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,82 @@
package com.ruoyi.front.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;
/**
* 法律服务对象 legal_services
*
* @author ruoyi
* @date 2020-10-21
*/
public class LegalServices extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** ID */
private Long id;
/** 服务名称 */
@Excel(name = "服务名称")
private String name;
/** 地址 */
@Excel(name = "地址")
private String address;
/** 删除标志0代表存在 2代表删除 */
private String delFlag;
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 setAddress(String address)
{
this.address = address;
}
public String getAddress()
{
return address;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("address", getAddress())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,124 @@
package com.ruoyi.front.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;
/**
* 新闻动态对象 news_information
*
* @author ruoyi
* @date 2020-10-21
*/
public class NewsInformation extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** ID */
private Long id;
/** 标题 */
@Excel(name = "标题")
private String title;
/** 简介 */
@Excel(name = "简介")
private String introduction;
/** 详情内容 */
@Excel(name = "详情内容")
private String content;
/** 点击量 */
@Excel(name = "点击量")
private Integer hits;
/** 状态0正常 1停用 */
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
private String status;
/** 删除标志0代表存在 2代表删除 */
private String delFlag;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setTitle(String title)
{
this.title = title;
}
public String getTitle()
{
return title;
}
public void setIntroduction(String introduction)
{
this.introduction = introduction;
}
public String getIntroduction()
{
return introduction;
}
public void setContent(String content)
{
this.content = content;
}
public String getContent()
{
return content;
}
public void setHits(Integer hits)
{
this.hits = hits;
}
public Integer getHits()
{
return hits;
}
public void setStatus(String status)
{
this.status = status;
}
public String getStatus()
{
return status;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("title", getTitle())
.append("introduction", getIntroduction())
.append("content", getContent())
.append("hits", getHits())
.append("status", getStatus())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,180 @@
package com.ruoyi.front.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;
/**
* 线上课程对象 online_courses
*
* @author ruoyi
* @date 2020-10-21
*/
public class OnlineCourses extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** ID */
private Long id;
/** 标题 */
@Excel(name = "标题")
private String title;
/** 简介 */
@Excel(name = "简介")
private String introduction;
/** 点击量 */
@Excel(name = "点击量")
private Integer hits;
/** 针对人群 */
@Excel(name = "针对人群")
private String targetPeople;
/** 视频课程时长 */
@Excel(name = "视频课程时长")
private String coursesDuration;
/** 课程难度等级 */
@Excel(name = "课程难度等级")
private Integer coursesLevel;
/** 图片地址(多个地址用,分隔) */
@Excel(name = "图片地址", readConverterExp = "多=个地址用,分隔")
private String pictureUrl;
/** 视频地址(多个地址用,分隔) */
@Excel(name = "视频地址", readConverterExp = "多=个地址用,分隔")
private String videoUrl;
/** 状态0正常 1停用 */
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
private String status;
/** 删除标志0代表存在 2代表删除 */
private String delFlag;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setTitle(String title)
{
this.title = title;
}
public String getTitle()
{
return title;
}
public void setIntroduction(String introduction)
{
this.introduction = introduction;
}
public String getIntroduction()
{
return introduction;
}
public void setHits(Integer hits)
{
this.hits = hits;
}
public Integer getHits()
{
return hits;
}
public void setTargetPeople(String targetPeople)
{
this.targetPeople = targetPeople;
}
public String getTargetPeople()
{
return targetPeople;
}
public void setCoursesDuration(String coursesDuration)
{
this.coursesDuration = coursesDuration;
}
public String getCoursesDuration()
{
return coursesDuration;
}
public void setCoursesLevel(Integer coursesLevel)
{
this.coursesLevel = coursesLevel;
}
public Integer getCoursesLevel()
{
return coursesLevel;
}
public void setPictureUrl(String pictureUrl)
{
this.pictureUrl = pictureUrl;
}
public String getPictureUrl()
{
return pictureUrl;
}
public void setVideoUrl(String videoUrl)
{
this.videoUrl = videoUrl;
}
public String getVideoUrl()
{
return videoUrl;
}
public void setStatus(String status)
{
this.status = status;
}
public String getStatus()
{
return status;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("title", getTitle())
.append("introduction", getIntroduction())
.append("hits", getHits())
.append("targetPeople", getTargetPeople())
.append("coursesDuration", getCoursesDuration())
.append("coursesLevel", getCoursesLevel())
.append("pictureUrl", getPictureUrl())
.append("videoUrl", getVideoUrl())
.append("status", getStatus())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,153 @@
package com.ruoyi.front.domain;
import java.util.Date;
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;
/**
* 线上课程评价对象 online_courses_evaluate
*
* @author ruoyi
* @date 2020-11-05
*/
public class OnlineCoursesEvaluate extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** ID */
private Long id;
/** 线上课程ID */
@Excel(name = "线上课程ID")
private Long onlineCoursesId;
//线上课程标题
private String onlineCoursesName;
/** 评价内容 */
@Excel(name = "评价内容")
private String evaluateContent;
/** 匿名标志0匿名 1用户 */
@Excel(name = "匿名标志", readConverterExp = "0=匿名,1=用户")
private String anonymousFlag;
/** 删除标志0代表存在 2代表删除 */
private String delFlag;
/** 状态0:待审核1审核不通过2审核通过 */
@Excel(name = "状态", readConverterExp = "0=:待审核1审核不通过2审核通过")
private String auditStatus;
/** 审核者 */
@Excel(name = "审核者")
private String checkBy;
/** 审核时间 */
@Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date checkTime;
public void setId(Long id)
{
this.id = id;
}
public String getOnlineCoursesName()
{
return onlineCoursesName;
}
public void setOnlineCoursesName(String onlineCoursesName)
{
this.onlineCoursesName = onlineCoursesName;
}
public Long getId()
{
return id;
}
public void setOnlineCoursesId(Long onlineCoursesId)
{
this.onlineCoursesId = onlineCoursesId;
}
public Long getOnlineCoursesId()
{
return onlineCoursesId;
}
public void setEvaluateContent(String evaluateContent)
{
this.evaluateContent = evaluateContent;
}
public String getEvaluateContent()
{
return evaluateContent;
}
public void setAnonymousFlag(String anonymousFlag)
{
this.anonymousFlag = anonymousFlag;
}
public String getAnonymousFlag()
{
return anonymousFlag;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
public void setAuditStatus(String auditStatus)
{
this.auditStatus = auditStatus;
}
public String getAuditStatus()
{
return auditStatus;
}
public void setCheckBy(String checkBy)
{
this.checkBy = checkBy;
}
public String getCheckBy()
{
return checkBy;
}
public void setCheckTime(Date checkTime)
{
this.checkTime = checkTime;
}
public Date getCheckTime()
{
return checkTime;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("onlineCoursesId", getOnlineCoursesId())
.append("onlineCoursesName", getOnlineCoursesName())
.append("evaluateContent", getEvaluateContent())
.append("anonymousFlag", getAnonymousFlag())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("auditStatus", getAuditStatus())
.append("checkBy", getCheckBy())
.append("checkTime", getCheckTime())
.append("remark", getRemark())
.toString();
}
}

View File

@ -0,0 +1,110 @@
package com.ruoyi.front.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;
/**
* 在线留言对象 online_message
*
* @author ruoyi
* @date 2020-10-21
*/
public class OnlineMessage extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** ID */
private Long id;
/** 姓名 */
@Excel(name = "姓名")
private String name;
/** 邮箱 */
@Excel(name = "邮箱")
private String email;
/** 联系方式 */
@Excel(name = "联系方式")
private String contactInformation;
/** 留言内容 */
@Excel(name = "留言内容")
private String messageContent;
/** 删除标志0代表存在 2代表删除 */
private String delFlag;
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 setEmail(String email)
{
this.email = email;
}
public String getEmail()
{
return email;
}
public void setContactInformation(String contactInformation)
{
this.contactInformation = contactInformation;
}
public String getContactInformation()
{
return contactInformation;
}
public void setMessageContent(String messageContent)
{
this.messageContent = messageContent;
}
public String getMessageContent()
{
return messageContent;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("email", getEmail())
.append("contactInformation", getContactInformation())
.append("messageContent", getMessageContent())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,238 @@
package com.ruoyi.front.domain;
import java.util.Date;
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;
/**
* 服务组织对象 service_organization
*
* @author ruoyi
* @date 2020-10-21
*/
public class ServiceOrganization extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** ID */
private Long id;
/** 企业名称 */
@Excel(name = "企业名称")
private String name;
/** 联系人 */
@Excel(name = "联系人")
private String contacts;
/** 联系电话 */
@Excel(name = "联系电话")
private String phone;
/** 营业执照图片地址(多个地址用,分隔) */
@Excel(name = "营业执照图片地址", readConverterExp = "多=个地址用,分隔")
private String licenseUrl;
/** 标题 */
@Excel(name = "标题")
private String title;
/** 简介 */
@Excel(name = "简介")
private String introduction;
/** 机构详情内容 */
@Excel(name = "机构详情内容")
private String content;
/** 点击量 */
@Excel(name = "点击量")
private Integer hits;
/** 状态0:待审核1审核不通过2审核通过 */
@Excel(name = "状态", readConverterExp = "0=:待审核1审核不通过2审核通过")
private String auditStatus;
/** 图片地址(多个地址用,分隔) */
@Excel(name = "图片地址", readConverterExp = "多=个地址用,分隔")
private String pictureUrl;
/** 状态0正常 1停用 */
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
private String status;
/** 删除标志0代表存在 2代表删除 */
private String delFlag;
/** 审核者 */
@Excel(name = "审核者")
private String checkBy;
/** 审核时间 */
@Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date checkTime;
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 setContacts(String contacts)
{
this.contacts = contacts;
}
public String getContacts()
{
return contacts;
}
public void setPhone(String phone)
{
this.phone = phone;
}
public String getPhone()
{
return phone;
}
public void setLicenseUrl(String licenseUrl)
{
this.licenseUrl = licenseUrl;
}
public String getLicenseUrl()
{
return licenseUrl;
}
public void setTitle(String title)
{
this.title = title;
}
public String getTitle()
{
return title;
}
public void setIntroduction(String introduction)
{
this.introduction = introduction;
}
public String getIntroduction()
{
return introduction;
}
public void setContent(String content)
{
this.content = content;
}
public String getContent()
{
return content;
}
public void setHits(Integer hits)
{
this.hits = hits;
}
public Integer getHits()
{
return hits;
}
public void setAuditStatus(String auditStatus)
{
this.auditStatus = auditStatus;
}
public String getAuditStatus()
{
return auditStatus;
}
public void setPictureUrl(String pictureUrl)
{
this.pictureUrl = pictureUrl;
}
public String getPictureUrl()
{
return pictureUrl;
}
public void setStatus(String status)
{
this.status = status;
}
public String getStatus()
{
return status;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
public void setCheckBy(String checkBy)
{
this.checkBy = checkBy;
}
public String getCheckBy()
{
return checkBy;
}
public void setCheckTime(Date checkTime)
{
this.checkTime = checkTime;
}
public Date getCheckTime()
{
return checkTime;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("contacts", getContacts())
.append("phone", getPhone())
.append("licenseUrl", getLicenseUrl())
.append("title", getTitle())
.append("introduction", getIntroduction())
.append("content", getContent())
.append("hits", getHits())
.append("auditStatus", getAuditStatus())
.append("pictureUrl", getPictureUrl())
.append("status", getStatus())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("checkBy", getCheckBy())
.append("checkTime", getCheckTime())
.append("remark", getRemark())
.toString();
}
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.front.mapper;
import java.util.List;
import com.ruoyi.front.domain.ClasssicCases;
/**
* 典型案例Mapper接口
*
* @author ruoyi
* @date 2020-10-21
*/
public interface ClasssicCasesMapper
{
/**
* 查询典型案例
*
* @param id 典型案例ID
* @return 典型案例
*/
public ClasssicCases selectClasssicCasesById(Long id);
/**
* 查询典型案例列表
*
* @param classsicCases 典型案例
* @return 典型案例集合
*/
public List<ClasssicCases> selectClasssicCasesList(ClasssicCases classsicCases);
/**
* 新增典型案例
*
* @param classsicCases 典型案例
* @return 结果
*/
public int insertClasssicCases(ClasssicCases classsicCases);
/**
* 修改典型案例
*
* @param classsicCases 典型案例
* @return 结果
*/
public int updateClasssicCases(ClasssicCases classsicCases);
/**
* 删除典型案例
*
* @param id 典型案例ID
* @return 结果
*/
public int deleteClasssicCasesById(Long id);
/**
* 批量删除典型案例
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteClasssicCasesByIds(String[] ids);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.front.mapper;
import java.util.List;
import com.ruoyi.front.domain.CommonProblem;
/**
* 常见问题Mapper接口
*
* @author ruoyi
* @date 2020-10-21
*/
public interface CommonProblemMapper
{
/**
* 查询常见问题
*
* @param id 常见问题ID
* @return 常见问题
*/
public CommonProblem selectCommonProblemById(Long id);
/**
* 查询常见问题列表
*
* @param commonProblem 常见问题
* @return 常见问题集合
*/
public List<CommonProblem> selectCommonProblemList(CommonProblem commonProblem);
/**
* 新增常见问题
*
* @param commonProblem 常见问题
* @return 结果
*/
public int insertCommonProblem(CommonProblem commonProblem);
/**
* 修改常见问题
*
* @param commonProblem 常见问题
* @return 结果
*/
public int updateCommonProblem(CommonProblem commonProblem);
/**
* 删除常见问题
*
* @param id 常见问题ID
* @return 结果
*/
public int deleteCommonProblemById(Long id);
/**
* 批量删除常见问题
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteCommonProblemByIds(String[] ids);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.front.mapper;
import java.util.List;
import com.ruoyi.front.domain.ContactInformation;
/**
* 联系方式Mapper接口
*
* @author ruoyi
* @date 2020-10-22
*/
public interface ContactInformationMapper
{
/**
* 查询联系方式
*
* @param id 联系方式ID
* @return 联系方式
*/
public ContactInformation selectContactInformationById(Long id);
/**
* 查询联系方式列表
*
* @param contactInformation 联系方式
* @return 联系方式集合
*/
public List<ContactInformation> selectContactInformationList(ContactInformation contactInformation);
/**
* 新增联系方式
*
* @param contactInformation 联系方式
* @return 结果
*/
public int insertContactInformation(ContactInformation contactInformation);
/**
* 修改联系方式
*
* @param contactInformation 联系方式
* @return 结果
*/
public int updateContactInformation(ContactInformation contactInformation);
/**
* 删除联系方式
*
* @param id 联系方式ID
* @return 结果
*/
public int deleteContactInformationById(Long id);
/**
* 批量删除联系方式
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteContactInformationByIds(String[] ids);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.front.mapper;
import java.util.List;
import com.ruoyi.front.domain.ContractTemplate;
/**
* 合同模板Mapper接口
*
* @author ruoyi
* @date 2020-10-21
*/
public interface ContractTemplateMapper
{
/**
* 查询合同模板
*
* @param id 合同模板ID
* @return 合同模板
*/
public ContractTemplate selectContractTemplateById(Long id);
/**
* 查询合同模板列表
*
* @param contractTemplate 合同模板
* @return 合同模板集合
*/
public List<ContractTemplate> selectContractTemplateList(ContractTemplate contractTemplate);
/**
* 新增合同模板
*
* @param contractTemplate 合同模板
* @return 结果
*/
public int insertContractTemplate(ContractTemplate contractTemplate);
/**
* 修改合同模板
*
* @param contractTemplate 合同模板
* @return 结果
*/
public int updateContractTemplate(ContractTemplate contractTemplate);
/**
* 删除合同模板
*
* @param id 合同模板ID
* @return 结果
*/
public int deleteContractTemplateById(Long id);
/**
* 批量删除合同模板
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteContractTemplateByIds(String[] ids);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.front.mapper;
import java.util.List;
import com.ruoyi.front.domain.ContractType;
/**
* 合同分类Mapper接口
*
* @author ruoyi
* @date 2020-10-21
*/
public interface ContractTypeMapper
{
/**
* 查询合同分类
*
* @param id 合同分类ID
* @return 合同分类
*/
public ContractType selectContractTypeById(Long id);
/**
* 查询合同分类列表
*
* @param contractType 合同分类
* @return 合同分类集合
*/
public List<ContractType> selectContractTypeList(ContractType contractType);
/**
* 新增合同分类
*
* @param contractType 合同分类
* @return 结果
*/
public int insertContractType(ContractType contractType);
/**
* 修改合同分类
*
* @param contractType 合同分类
* @return 结果
*/
public int updateContractType(ContractType contractType);
/**
* 删除合同分类
*
* @param id 合同分类ID
* @return 结果
*/
public int deleteContractTypeById(Long id);
/**
* 批量删除合同分类
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteContractTypeByIds(String[] ids);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.front.mapper;
import java.util.List;
import com.ruoyi.front.domain.EventRecruitment;
/**
* 活动招募Mapper接口
*
* @author ruoyi
* @date 2020-10-21
*/
public interface EventRecruitmentMapper
{
/**
* 查询活动招募
*
* @param id 活动招募ID
* @return 活动招募
*/
public EventRecruitment selectEventRecruitmentById(Long id);
/**
* 查询活动招募列表
*
* @param eventRecruitment 活动招募
* @return 活动招募集合
*/
public List<EventRecruitment> selectEventRecruitmentList(EventRecruitment eventRecruitment);
/**
* 新增活动招募
*
* @param eventRecruitment 活动招募
* @return 结果
*/
public int insertEventRecruitment(EventRecruitment eventRecruitment);
/**
* 修改活动招募
*
* @param eventRecruitment 活动招募
* @return 结果
*/
public int updateEventRecruitment(EventRecruitment eventRecruitment);
/**
* 删除活动招募
*
* @param id 活动招募ID
* @return 结果
*/
public int deleteEventRecruitmentById(Long id);
/**
* 批量删除活动招募
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteEventRecruitmentByIds(String[] ids);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.front.mapper;
import java.util.List;
import com.ruoyi.front.domain.HomePageCarousel;
/**
* 首页轮播图Mapper接口
*
* @author ruoyi
* @date 2020-10-21
*/
public interface HomePageCarouselMapper
{
/**
* 查询首页轮播图
*
* @param id 首页轮播图ID
* @return 首页轮播图
*/
public HomePageCarousel selectHomePageCarouselById(Long id);
/**
* 查询首页轮播图列表
*
* @param homePageCarousel 首页轮播图
* @return 首页轮播图集合
*/
public List<HomePageCarousel> selectHomePageCarouselList(HomePageCarousel homePageCarousel);
/**
* 新增首页轮播图
*
* @param homePageCarousel 首页轮播图
* @return 结果
*/
public int insertHomePageCarousel(HomePageCarousel homePageCarousel);
/**
* 修改首页轮播图
*
* @param homePageCarousel 首页轮播图
* @return 结果
*/
public int updateHomePageCarousel(HomePageCarousel homePageCarousel);
/**
* 删除首页轮播图
*
* @param id 首页轮播图ID
* @return 结果
*/
public int deleteHomePageCarouselById(Long id);
/**
* 批量删除首页轮播图
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteHomePageCarouselByIds(String[] ids);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.front.mapper;
import java.util.List;
import com.ruoyi.front.domain.LegalServices;
/**
* 法律服务Mapper接口
*
* @author ruoyi
* @date 2020-10-21
*/
public interface LegalServicesMapper
{
/**
* 查询法律服务
*
* @param id 法律服务ID
* @return 法律服务
*/
public LegalServices selectLegalServicesById(Long id);
/**
* 查询法律服务列表
*
* @param legalServices 法律服务
* @return 法律服务集合
*/
public List<LegalServices> selectLegalServicesList(LegalServices legalServices);
/**
* 新增法律服务
*
* @param legalServices 法律服务
* @return 结果
*/
public int insertLegalServices(LegalServices legalServices);
/**
* 修改法律服务
*
* @param legalServices 法律服务
* @return 结果
*/
public int updateLegalServices(LegalServices legalServices);
/**
* 删除法律服务
*
* @param id 法律服务ID
* @return 结果
*/
public int deleteLegalServicesById(Long id);
/**
* 批量删除法律服务
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteLegalServicesByIds(String[] ids);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.front.mapper;
import java.util.List;
import com.ruoyi.front.domain.NewsInformation;
/**
* 新闻动态Mapper接口
*
* @author ruoyi
* @date 2020-10-21
*/
public interface NewsInformationMapper
{
/**
* 查询新闻动态
*
* @param id 新闻动态ID
* @return 新闻动态
*/
public NewsInformation selectNewsInformationById(Long id);
/**
* 查询新闻动态列表
*
* @param newsInformation 新闻动态
* @return 新闻动态集合
*/
public List<NewsInformation> selectNewsInformationList(NewsInformation newsInformation);
/**
* 新增新闻动态
*
* @param newsInformation 新闻动态
* @return 结果
*/
public int insertNewsInformation(NewsInformation newsInformation);
/**
* 修改新闻动态
*
* @param newsInformation 新闻动态
* @return 结果
*/
public int updateNewsInformation(NewsInformation newsInformation);
/**
* 删除新闻动态
*
* @param id 新闻动态ID
* @return 结果
*/
public int deleteNewsInformationById(Long id);
/**
* 批量删除新闻动态
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteNewsInformationByIds(String[] ids);
}

View File

@ -0,0 +1,70 @@
package com.ruoyi.front.mapper;
import java.util.List;
import com.ruoyi.front.domain.OnlineCoursesEvaluate;
import org.apache.ibatis.annotations.Param;
/**
* 线上课程评价Mapper接口
*
* @author ruoyi
* @date 2020-11-05
*/
public interface OnlineCoursesEvaluateMapper
{
/**
* 查询线上课程评价
*
* @param id 线上课程评价ID
* @return 线上课程评价
*/
public OnlineCoursesEvaluate selectOnlineCoursesEvaluateById(Long id);
/**
* 查询线上课程评价列表
*
* @param onlineCoursesEvaluate 线上课程评价
* @return 线上课程评价集合
*/
public List<OnlineCoursesEvaluate> selectOnlineCoursesEvaluateList(OnlineCoursesEvaluate onlineCoursesEvaluate);
/**
* 新增线上课程评价
*
* @param onlineCoursesEvaluate 线上课程评价
* @return 结果
*/
public int insertOnlineCoursesEvaluate(OnlineCoursesEvaluate onlineCoursesEvaluate);
/**
* 修改线上课程评价
*
* @param onlineCoursesEvaluate 线上课程评价
* @return 结果
*/
public int updateOnlineCoursesEvaluate(OnlineCoursesEvaluate onlineCoursesEvaluate);
/**
* 删除线上课程评价
*
* @param id 线上课程评价ID
* @return 结果
*/
public int deleteOnlineCoursesEvaluateById(Long id);
/**
* 批量删除线上课程评价
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteOnlineCoursesEvaluateByIds(String[] ids);
/**
* 审核评论
* @param ids
* @param auditStatus
* @return
*/
public int auditOnlineCoursesEvaluateByIds(@Param("ids") String[] ids, @Param("auditStatus")String auditStatus, @Param("checkBy")String checkBy,@Param("remark")String remark);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.front.mapper;
import java.util.List;
import com.ruoyi.front.domain.OnlineCourses;
/**
* 线上课程Mapper接口
*
* @author ruoyi
* @date 2020-10-21
*/
public interface OnlineCoursesMapper
{
/**
* 查询线上课程
*
* @param id 线上课程ID
* @return 线上课程
*/
public OnlineCourses selectOnlineCoursesById(Long id);
/**
* 查询线上课程列表
*
* @param onlineCourses 线上课程
* @return 线上课程集合
*/
public List<OnlineCourses> selectOnlineCoursesList(OnlineCourses onlineCourses);
/**
* 新增线上课程
*
* @param onlineCourses 线上课程
* @return 结果
*/
public int insertOnlineCourses(OnlineCourses onlineCourses);
/**
* 修改线上课程
*
* @param onlineCourses 线上课程
* @return 结果
*/
public int updateOnlineCourses(OnlineCourses onlineCourses);
/**
* 删除线上课程
*
* @param id 线上课程ID
* @return 结果
*/
public int deleteOnlineCoursesById(Long id);
/**
* 批量删除线上课程
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteOnlineCoursesByIds(String[] ids);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.front.mapper;
import java.util.List;
import com.ruoyi.front.domain.OnlineMessage;
/**
* 在线留言Mapper接口
*
* @author ruoyi
* @date 2020-10-21
*/
public interface OnlineMessageMapper
{
/**
* 查询在线留言
*
* @param id 在线留言ID
* @return 在线留言
*/
public OnlineMessage selectOnlineMessageById(Long id);
/**
* 查询在线留言列表
*
* @param onlineMessage 在线留言
* @return 在线留言集合
*/
public List<OnlineMessage> selectOnlineMessageList(OnlineMessage onlineMessage);
/**
* 新增在线留言
*
* @param onlineMessage 在线留言
* @return 结果
*/
public int insertOnlineMessage(OnlineMessage onlineMessage);
/**
* 修改在线留言
*
* @param onlineMessage 在线留言
* @return 结果
*/
public int updateOnlineMessage(OnlineMessage onlineMessage);
/**
* 删除在线留言
*
* @param id 在线留言ID
* @return 结果
*/
public int deleteOnlineMessageById(Long id);
/**
* 批量删除在线留言
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteOnlineMessageByIds(String[] ids);
}

View File

@ -0,0 +1,79 @@
package com.ruoyi.front.mapper;
import java.util.List;
import com.ruoyi.front.domain.ServiceOrganization;
import org.apache.ibatis.annotations.Param;
/**
* 服务组织Mapper接口
*
* @author ruoyi
* @date 2020-10-21
*/
public interface ServiceOrganizationMapper
{
/**
* 查询服务组织
*
* @param id 服务组织ID
* @return 服务组织
*/
public ServiceOrganization selectServiceOrganizationById(Long id);
/**
* 查询服务组织列表
*
* @param serviceOrganization 服务组织
* @return 服务组织集合
*/
public List<ServiceOrganization> selectServiceOrganizationList(ServiceOrganization serviceOrganization);
/**
* 新增服务组织
*
* @param serviceOrganization 服务组织
* @return 结果
*/
public int insertServiceOrganization(ServiceOrganization serviceOrganization);
/**
* 修改服务组织
*
* @param serviceOrganization 服务组织
* @return 结果
*/
public int updateServiceOrganization(ServiceOrganization serviceOrganization);
/**
* 删除服务组织
*
* @param id 服务组织ID
* @return 结果
*/
public int deleteServiceOrganizationById(Long id);
/**
* 批量删除服务组织
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteServiceOrganizationByIds(String[] ids);
/**
* 审核组织
* @param ids
* @param auditStatus
* @param remark
* @return
*/
public int auditServiceOrganization(@Param("ids") String[] ids, @Param("auditStatus")String auditStatus, @Param("remark")String remark, @Param("checkBy")String checkBy);
/**
* 变更状态
* @param ids 组织机构id
* @param status 状态
* @return
*/
public int updateStatus(@Param("ids") String[] ids, @Param("status")String status, @Param("updateBy")String updateBy);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.front.service;
import java.util.List;
import com.ruoyi.front.domain.ClasssicCases;
/**
* 典型案例Service接口
*
* @author ruoyi
* @date 2020-10-21
*/
public interface IClasssicCasesService
{
/**
* 查询典型案例
*
* @param id 典型案例ID
* @return 典型案例
*/
public ClasssicCases selectClasssicCasesById(Long id);
/**
* 查询典型案例列表
*
* @param classsicCases 典型案例
* @return 典型案例集合
*/
public List<ClasssicCases> selectClasssicCasesList(ClasssicCases classsicCases);
/**
* 新增典型案例
*
* @param classsicCases 典型案例
* @return 结果
*/
public int insertClasssicCases(ClasssicCases classsicCases);
/**
* 修改典型案例
*
* @param classsicCases 典型案例
* @return 结果
*/
public int updateClasssicCases(ClasssicCases classsicCases);
/**
* 批量删除典型案例
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteClasssicCasesByIds(String ids);
/**
* 删除典型案例信息
*
* @param id 典型案例ID
* @return 结果
*/
public int deleteClasssicCasesById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.front.service;
import java.util.List;
import com.ruoyi.front.domain.CommonProblem;
/**
* 常见问题Service接口
*
* @author ruoyi
* @date 2020-10-21
*/
public interface ICommonProblemService
{
/**
* 查询常见问题
*
* @param id 常见问题ID
* @return 常见问题
*/
public CommonProblem selectCommonProblemById(Long id);
/**
* 查询常见问题列表
*
* @param commonProblem 常见问题
* @return 常见问题集合
*/
public List<CommonProblem> selectCommonProblemList(CommonProblem commonProblem);
/**
* 新增常见问题
*
* @param commonProblem 常见问题
* @return 结果
*/
public int insertCommonProblem(CommonProblem commonProblem);
/**
* 修改常见问题
*
* @param commonProblem 常见问题
* @return 结果
*/
public int updateCommonProblem(CommonProblem commonProblem);
/**
* 批量删除常见问题
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteCommonProblemByIds(String ids);
/**
* 删除常见问题信息
*
* @param id 常见问题ID
* @return 结果
*/
public int deleteCommonProblemById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.front.service;
import java.util.List;
import com.ruoyi.front.domain.ContactInformation;
/**
* 联系方式Service接口
*
* @author ruoyi
* @date 2020-10-22
*/
public interface IContactInformationService
{
/**
* 查询联系方式
*
* @param id 联系方式ID
* @return 联系方式
*/
public ContactInformation selectContactInformationById(Long id);
/**
* 查询联系方式列表
*
* @param contactInformation 联系方式
* @return 联系方式集合
*/
public List<ContactInformation> selectContactInformationList(ContactInformation contactInformation);
/**
* 新增联系方式
*
* @param contactInformation 联系方式
* @return 结果
*/
public int insertContactInformation(ContactInformation contactInformation);
/**
* 修改联系方式
*
* @param contactInformation 联系方式
* @return 结果
*/
public int updateContactInformation(ContactInformation contactInformation);
/**
* 批量删除联系方式
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteContactInformationByIds(String ids);
/**
* 删除联系方式信息
*
* @param id 联系方式ID
* @return 结果
*/
public int deleteContactInformationById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.front.service;
import java.util.List;
import com.ruoyi.front.domain.ContractTemplate;
/**
* 合同模板Service接口
*
* @author ruoyi
* @date 2020-10-21
*/
public interface IContractTemplateService
{
/**
* 查询合同模板
*
* @param id 合同模板ID
* @return 合同模板
*/
public ContractTemplate selectContractTemplateById(Long id);
/**
* 查询合同模板列表
*
* @param contractTemplate 合同模板
* @return 合同模板集合
*/
public List<ContractTemplate> selectContractTemplateList(ContractTemplate contractTemplate);
/**
* 新增合同模板
*
* @param contractTemplate 合同模板
* @return 结果
*/
public int insertContractTemplate(ContractTemplate contractTemplate);
/**
* 修改合同模板
*
* @param contractTemplate 合同模板
* @return 结果
*/
public int updateContractTemplate(ContractTemplate contractTemplate);
/**
* 批量删除合同模板
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteContractTemplateByIds(String ids);
/**
* 删除合同模板信息
*
* @param id 合同模板ID
* @return 结果
*/
public int deleteContractTemplateById(Long id);
}

View File

@ -0,0 +1,69 @@
package com.ruoyi.front.service;
import java.util.List;
import com.ruoyi.front.domain.ContractType;
/**
* 合同分类Service接口
*
* @author ruoyi
* @date 2020-10-21
*/
public interface IContractTypeService
{
/**
* 查询合同分类
*
* @param id 合同分类ID
* @return 合同分类
*/
public ContractType selectContractTypeById(Long id);
/**
* 查询合同分类列表
*
* @param contractType 合同分类
* @return 合同分类集合
*/
public List<ContractType> selectContractTypeList(ContractType contractType);
/**
* 新增合同分类
*
* @param contractType 合同分类
* @return 结果
*/
public int insertContractType(ContractType contractType);
/**
* 修改合同分类
*
* @param contractType 合同分类
* @return 结果
*/
public int updateContractType(ContractType contractType);
/**
* 批量删除合同分类
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteContractTypeByIds(String ids);
/**
* 删除合同分类信息
*
* @param id 合同分类ID
* @return 结果
*/
public int deleteContractTypeById(Long id);
/**
* 查询 正常的合同分类列表
*
* @return 合同分类
*/
public List<ContractType> getNormalContractTypeList();
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.front.service;
import java.util.List;
import com.ruoyi.front.domain.EventRecruitment;
/**
* 活动招募Service接口
*
* @author ruoyi
* @date 2020-10-21
*/
public interface IEventRecruitmentService
{
/**
* 查询活动招募
*
* @param id 活动招募ID
* @return 活动招募
*/
public EventRecruitment selectEventRecruitmentById(Long id);
/**
* 查询活动招募列表
*
* @param eventRecruitment 活动招募
* @return 活动招募集合
*/
public List<EventRecruitment> selectEventRecruitmentList(EventRecruitment eventRecruitment);
/**
* 新增活动招募
*
* @param eventRecruitment 活动招募
* @return 结果
*/
public int insertEventRecruitment(EventRecruitment eventRecruitment);
/**
* 修改活动招募
*
* @param eventRecruitment 活动招募
* @return 结果
*/
public int updateEventRecruitment(EventRecruitment eventRecruitment);
/**
* 批量删除活动招募
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteEventRecruitmentByIds(String ids);
/**
* 删除活动招募信息
*
* @param id 活动招募ID
* @return 结果
*/
public int deleteEventRecruitmentById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.front.service;
import java.util.List;
import com.ruoyi.front.domain.HomePageCarousel;
/**
* 首页轮播图Service接口
*
* @author ruoyi
* @date 2020-10-21
*/
public interface IHomePageCarouselService
{
/**
* 查询首页轮播图
*
* @param id 首页轮播图ID
* @return 首页轮播图
*/
public HomePageCarousel selectHomePageCarouselById(Long id);
/**
* 查询首页轮播图列表
*
* @param homePageCarousel 首页轮播图
* @return 首页轮播图集合
*/
public List<HomePageCarousel> selectHomePageCarouselList(HomePageCarousel homePageCarousel);
/**
* 新增首页轮播图
*
* @param homePageCarousel 首页轮播图
* @return 结果
*/
public int insertHomePageCarousel(HomePageCarousel homePageCarousel);
/**
* 修改首页轮播图
*
* @param homePageCarousel 首页轮播图
* @return 结果
*/
public int updateHomePageCarousel(HomePageCarousel homePageCarousel);
/**
* 批量删除首页轮播图
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteHomePageCarouselByIds(String ids);
/**
* 删除首页轮播图信息
*
* @param id 首页轮播图ID
* @return 结果
*/
public int deleteHomePageCarouselById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.front.service;
import java.util.List;
import com.ruoyi.front.domain.LegalServices;
/**
* 法律服务Service接口
*
* @author ruoyi
* @date 2020-10-21
*/
public interface ILegalServicesService
{
/**
* 查询法律服务
*
* @param id 法律服务ID
* @return 法律服务
*/
public LegalServices selectLegalServicesById(Long id);
/**
* 查询法律服务列表
*
* @param legalServices 法律服务
* @return 法律服务集合
*/
public List<LegalServices> selectLegalServicesList(LegalServices legalServices);
/**
* 新增法律服务
*
* @param legalServices 法律服务
* @return 结果
*/
public int insertLegalServices(LegalServices legalServices);
/**
* 修改法律服务
*
* @param legalServices 法律服务
* @return 结果
*/
public int updateLegalServices(LegalServices legalServices);
/**
* 批量删除法律服务
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteLegalServicesByIds(String ids);
/**
* 删除法律服务信息
*
* @param id 法律服务ID
* @return 结果
*/
public int deleteLegalServicesById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.front.service;
import java.util.List;
import com.ruoyi.front.domain.NewsInformation;
/**
* 新闻动态Service接口
*
* @author ruoyi
* @date 2020-10-21
*/
public interface INewsInformationService
{
/**
* 查询新闻动态
*
* @param id 新闻动态ID
* @return 新闻动态
*/
public NewsInformation selectNewsInformationById(Long id);
/**
* 查询新闻动态列表
*
* @param newsInformation 新闻动态
* @return 新闻动态集合
*/
public List<NewsInformation> selectNewsInformationList(NewsInformation newsInformation);
/**
* 新增新闻动态
*
* @param newsInformation 新闻动态
* @return 结果
*/
public int insertNewsInformation(NewsInformation newsInformation);
/**
* 修改新闻动态
*
* @param newsInformation 新闻动态
* @return 结果
*/
public int updateNewsInformation(NewsInformation newsInformation);
/**
* 批量删除新闻动态
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteNewsInformationByIds(String ids);
/**
* 删除新闻动态信息
*
* @param id 新闻动态ID
* @return 结果
*/
public int deleteNewsInformationById(Long id);
}

View File

@ -0,0 +1,69 @@
package com.ruoyi.front.service;
import java.util.List;
import com.ruoyi.front.domain.OnlineCoursesEvaluate;
import org.apache.ibatis.annotations.Param;
/**
* 线上课程评价Service接口
*
* @author ruoyi
* @date 2020-11-05
*/
public interface IOnlineCoursesEvaluateService
{
/**
* 查询线上课程评价
*
* @param id 线上课程评价ID
* @return 线上课程评价
*/
public OnlineCoursesEvaluate selectOnlineCoursesEvaluateById(Long id);
/**
* 查询线上课程评价列表
*
* @param onlineCoursesEvaluate 线上课程评价
* @return 线上课程评价集合
*/
public List<OnlineCoursesEvaluate> selectOnlineCoursesEvaluateList(OnlineCoursesEvaluate onlineCoursesEvaluate);
/**
* 新增线上课程评价
*
* @param onlineCoursesEvaluate 线上课程评价
* @return 结果
*/
public int insertOnlineCoursesEvaluate(OnlineCoursesEvaluate onlineCoursesEvaluate);
/**
* 修改线上课程评价
*
* @param onlineCoursesEvaluate 线上课程评价
* @return 结果
*/
public int updateOnlineCoursesEvaluate(OnlineCoursesEvaluate onlineCoursesEvaluate);
/**
* 批量删除线上课程评价
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteOnlineCoursesEvaluateByIds(String ids);
/**
* 删除线上课程评价信息
*
* @param id 线上课程评价ID
* @return 结果
*/
public int deleteOnlineCoursesEvaluateById(Long id);
/**
* 审核评论
* @param ids
* @param auditStatus
* @return
*/
public int audit(String ids, String auditStatus, String remark);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.front.service;
import java.util.List;
import com.ruoyi.front.domain.OnlineCourses;
/**
* 线上课程Service接口
*
* @author ruoyi
* @date 2020-10-21
*/
public interface IOnlineCoursesService
{
/**
* 查询线上课程
*
* @param id 线上课程ID
* @return 线上课程
*/
public OnlineCourses selectOnlineCoursesById(Long id);
/**
* 查询线上课程列表
*
* @param onlineCourses 线上课程
* @return 线上课程集合
*/
public List<OnlineCourses> selectOnlineCoursesList(OnlineCourses onlineCourses);
/**
* 新增线上课程
*
* @param onlineCourses 线上课程
* @return 结果
*/
public int insertOnlineCourses(OnlineCourses onlineCourses);
/**
* 修改线上课程
*
* @param onlineCourses 线上课程
* @return 结果
*/
public int updateOnlineCourses(OnlineCourses onlineCourses);
/**
* 批量删除线上课程
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteOnlineCoursesByIds(String ids);
/**
* 删除线上课程信息
*
* @param id 线上课程ID
* @return 结果
*/
public int deleteOnlineCoursesById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.front.service;
import java.util.List;
import com.ruoyi.front.domain.OnlineMessage;
/**
* 在线留言Service接口
*
* @author ruoyi
* @date 2020-10-21
*/
public interface IOnlineMessageService
{
/**
* 查询在线留言
*
* @param id 在线留言ID
* @return 在线留言
*/
public OnlineMessage selectOnlineMessageById(Long id);
/**
* 查询在线留言列表
*
* @param onlineMessage 在线留言
* @return 在线留言集合
*/
public List<OnlineMessage> selectOnlineMessageList(OnlineMessage onlineMessage);
/**
* 新增在线留言
*
* @param onlineMessage 在线留言
* @return 结果
*/
public int insertOnlineMessage(OnlineMessage onlineMessage);
/**
* 修改在线留言
*
* @param onlineMessage 在线留言
* @return 结果
*/
public int updateOnlineMessage(OnlineMessage onlineMessage);
/**
* 批量删除在线留言
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteOnlineMessageByIds(String ids);
/**
* 删除在线留言信息
*
* @param id 在线留言ID
* @return 结果
*/
public int deleteOnlineMessageById(Long id);
}

View File

@ -0,0 +1,78 @@
package com.ruoyi.front.service;
import java.util.List;
import com.ruoyi.front.domain.ServiceOrganization;
/**
* 服务组织Service接口
*
* @author ruoyi
* @date 2020-10-21
*/
public interface IServiceOrganizationService
{
/**
* 查询服务组织
*
* @param id 服务组织ID
* @return 服务组织
*/
public ServiceOrganization selectServiceOrganizationById(Long id);
/**
* 查询服务组织列表
*
* @param serviceOrganization 服务组织
* @return 服务组织集合
*/
public List<ServiceOrganization> selectServiceOrganizationList(ServiceOrganization serviceOrganization);
/**
* 新增服务组织
*
* @param serviceOrganization 服务组织
* @return 结果
*/
public int insertServiceOrganization(ServiceOrganization serviceOrganization);
/**
* 修改服务组织
*
* @param serviceOrganization 服务组织
* @return 结果
*/
public int updateServiceOrganization(ServiceOrganization serviceOrganization);
/**
* 批量删除服务组织
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteServiceOrganizationByIds(String ids);
/**
* 删除服务组织信息
*
* @param id 服务组织ID
* @return 结果
*/
public int deleteServiceOrganizationById(Long id);
/**
* 审核服务组织对象
* @param ids 服务组织IDs
* @param auditStatus 审核状态
* @param remark 审核备注
* @return
*/
public int audit(String ids, String auditStatus, String remark);
/**
* 停用或者启用服务组织对象
* @param ids 服务组织IDs
* @param status 状态
* @return
*/
public int updateStatus(String ids, String status);
}

View File

@ -0,0 +1,97 @@
package com.ruoyi.front.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.front.mapper.ClasssicCasesMapper;
import com.ruoyi.front.domain.ClasssicCases;
import com.ruoyi.front.service.IClasssicCasesService;
import com.ruoyi.common.core.text.Convert;
/**
* 典型案例Service业务层处理
*
* @author ruoyi
* @date 2020-10-21
*/
@Service
public class ClasssicCasesServiceImpl implements IClasssicCasesService
{
@Autowired
private ClasssicCasesMapper classsicCasesMapper;
/**
* 查询典型案例
*
* @param id 典型案例ID
* @return 典型案例
*/
@Override
public ClasssicCases selectClasssicCasesById(Long id)
{
return classsicCasesMapper.selectClasssicCasesById(id);
}
/**
* 查询典型案例列表
*
* @param classsicCases 典型案例
* @return 典型案例
*/
@Override
public List<ClasssicCases> selectClasssicCasesList(ClasssicCases classsicCases)
{
return classsicCasesMapper.selectClasssicCasesList(classsicCases);
}
/**
* 新增典型案例
*
* @param classsicCases 典型案例
* @return 结果
*/
@Override
public int insertClasssicCases(ClasssicCases classsicCases)
{
classsicCases.setCreateTime(DateUtils.getNowDate());
return classsicCasesMapper.insertClasssicCases(classsicCases);
}
/**
* 修改典型案例
*
* @param classsicCases 典型案例
* @return 结果
*/
@Override
public int updateClasssicCases(ClasssicCases classsicCases)
{
classsicCases.setUpdateTime(DateUtils.getNowDate());
return classsicCasesMapper.updateClasssicCases(classsicCases);
}
/**
* 删除典型案例对象
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@Override
public int deleteClasssicCasesByIds(String ids)
{
return classsicCasesMapper.deleteClasssicCasesByIds(Convert.toStrArray(ids));
}
/**
* 删除典型案例信息
*
* @param id 典型案例ID
* @return 结果
*/
@Override
public int deleteClasssicCasesById(Long id)
{
return classsicCasesMapper.deleteClasssicCasesById(id);
}
}

View File

@ -0,0 +1,97 @@
package com.ruoyi.front.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.front.mapper.CommonProblemMapper;
import com.ruoyi.front.domain.CommonProblem;
import com.ruoyi.front.service.ICommonProblemService;
import com.ruoyi.common.core.text.Convert;
/**
* 常见问题Service业务层处理
*
* @author ruoyi
* @date 2020-10-21
*/
@Service
public class CommonProblemServiceImpl implements ICommonProblemService
{
@Autowired
private CommonProblemMapper commonProblemMapper;
/**
* 查询常见问题
*
* @param id 常见问题ID
* @return 常见问题
*/
@Override
public CommonProblem selectCommonProblemById(Long id)
{
return commonProblemMapper.selectCommonProblemById(id);
}
/**
* 查询常见问题列表
*
* @param commonProblem 常见问题
* @return 常见问题
*/
@Override
public List<CommonProblem> selectCommonProblemList(CommonProblem commonProblem)
{
return commonProblemMapper.selectCommonProblemList(commonProblem);
}
/**
* 新增常见问题
*
* @param commonProblem 常见问题
* @return 结果
*/
@Override
public int insertCommonProblem(CommonProblem commonProblem)
{
commonProblem.setCreateTime(DateUtils.getNowDate());
return commonProblemMapper.insertCommonProblem(commonProblem);
}
/**
* 修改常见问题
*
* @param commonProblem 常见问题
* @return 结果
*/
@Override
public int updateCommonProblem(CommonProblem commonProblem)
{
commonProblem.setUpdateTime(DateUtils.getNowDate());
return commonProblemMapper.updateCommonProblem(commonProblem);
}
/**
* 删除常见问题对象
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@Override
public int deleteCommonProblemByIds(String ids)
{
return commonProblemMapper.deleteCommonProblemByIds(Convert.toStrArray(ids));
}
/**
* 删除常见问题信息
*
* @param id 常见问题ID
* @return 结果
*/
@Override
public int deleteCommonProblemById(Long id)
{
return commonProblemMapper.deleteCommonProblemById(id);
}
}

View File

@ -0,0 +1,97 @@
package com.ruoyi.front.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.front.mapper.ContactInformationMapper;
import com.ruoyi.front.domain.ContactInformation;
import com.ruoyi.front.service.IContactInformationService;
import com.ruoyi.common.core.text.Convert;
/**
* 联系方式Service业务层处理
*
* @author ruoyi
* @date 2020-10-22
*/
@Service
public class ContactInformationServiceImpl implements IContactInformationService
{
@Autowired
private ContactInformationMapper contactInformationMapper;
/**
* 查询联系方式
*
* @param id 联系方式ID
* @return 联系方式
*/
@Override
public ContactInformation selectContactInformationById(Long id)
{
return contactInformationMapper.selectContactInformationById(id);
}
/**
* 查询联系方式列表
*
* @param contactInformation 联系方式
* @return 联系方式
*/
@Override
public List<ContactInformation> selectContactInformationList(ContactInformation contactInformation)
{
return contactInformationMapper.selectContactInformationList(contactInformation);
}
/**
* 新增联系方式
*
* @param contactInformation 联系方式
* @return 结果
*/
@Override
public int insertContactInformation(ContactInformation contactInformation)
{
contactInformation.setCreateTime(DateUtils.getNowDate());
return contactInformationMapper.insertContactInformation(contactInformation);
}
/**
* 修改联系方式
*
* @param contactInformation 联系方式
* @return 结果
*/
@Override
public int updateContactInformation(ContactInformation contactInformation)
{
contactInformation.setUpdateTime(DateUtils.getNowDate());
return contactInformationMapper.updateContactInformation(contactInformation);
}
/**
* 删除联系方式对象
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@Override
public int deleteContactInformationByIds(String ids)
{
return contactInformationMapper.deleteContactInformationByIds(Convert.toStrArray(ids));
}
/**
* 删除联系方式信息
*
* @param id 联系方式ID
* @return 结果
*/
@Override
public int deleteContactInformationById(Long id)
{
return contactInformationMapper.deleteContactInformationById(id);
}
}

View File

@ -0,0 +1,97 @@
package com.ruoyi.front.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.front.mapper.ContractTemplateMapper;
import com.ruoyi.front.domain.ContractTemplate;
import com.ruoyi.front.service.IContractTemplateService;
import com.ruoyi.common.core.text.Convert;
/**
* 合同模板Service业务层处理
*
* @author ruoyi
* @date 2020-10-21
*/
@Service
public class ContractTemplateServiceImpl implements IContractTemplateService
{
@Autowired
private ContractTemplateMapper contractTemplateMapper;
/**
* 查询合同模板
*
* @param id 合同模板ID
* @return 合同模板
*/
@Override
public ContractTemplate selectContractTemplateById(Long id)
{
return contractTemplateMapper.selectContractTemplateById(id);
}
/**
* 查询合同模板列表
*
* @param contractTemplate 合同模板
* @return 合同模板
*/
@Override
public List<ContractTemplate> selectContractTemplateList(ContractTemplate contractTemplate)
{
return contractTemplateMapper.selectContractTemplateList(contractTemplate);
}
/**
* 新增合同模板
*
* @param contractTemplate 合同模板
* @return 结果
*/
@Override
public int insertContractTemplate(ContractTemplate contractTemplate)
{
contractTemplate.setCreateTime(DateUtils.getNowDate());
return contractTemplateMapper.insertContractTemplate(contractTemplate);
}
/**
* 修改合同模板
*
* @param contractTemplate 合同模板
* @return 结果
*/
@Override
public int updateContractTemplate(ContractTemplate contractTemplate)
{
contractTemplate.setUpdateTime(DateUtils.getNowDate());
return contractTemplateMapper.updateContractTemplate(contractTemplate);
}
/**
* 删除合同模板对象
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@Override
public int deleteContractTemplateByIds(String ids)
{
return contractTemplateMapper.deleteContractTemplateByIds(Convert.toStrArray(ids));
}
/**
* 删除合同模板信息
*
* @param id 合同模板ID
* @return 结果
*/
@Override
public int deleteContractTemplateById(Long id)
{
return contractTemplateMapper.deleteContractTemplateById(id);
}
}

View File

@ -0,0 +1,112 @@
package com.ruoyi.front.service.impl;
import java.util.List;
import com.ruoyi.common.constant.Constants;
import com.ruoyi.common.enums.UserStatus;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.front.mapper.ContractTypeMapper;
import com.ruoyi.front.domain.ContractType;
import com.ruoyi.front.service.IContractTypeService;
import com.ruoyi.common.core.text.Convert;
/**
* 合同分类Service业务层处理
*
* @author ruoyi
* @date 2020-10-21
*/
@Service
public class ContractTypeServiceImpl implements IContractTypeService
{
@Autowired
private ContractTypeMapper contractTypeMapper;
/**
* 查询 正常的合同分类列表
*
* @return 合同分类
*/
@Override
public List<ContractType> getNormalContractTypeList() {
ContractType contractType = new ContractType();
contractType.setDelFlag(Constants.NO_DELETE);
return this.selectContractTypeList(contractType);
}
/**
* 查询合同分类
*
* @param id 合同分类ID
* @return 合同分类
*/
@Override
public ContractType selectContractTypeById(Long id)
{
return contractTypeMapper.selectContractTypeById(id);
}
/**
* 查询合同分类列表
*
* @param contractType 合同分类
* @return 合同分类
*/
@Override
public List<ContractType> selectContractTypeList(ContractType contractType)
{
return contractTypeMapper.selectContractTypeList(contractType);
}
/**
* 新增合同分类
*
* @param contractType 合同分类
* @return 结果
*/
@Override
public int insertContractType(ContractType contractType)
{
contractType.setCreateTime(DateUtils.getNowDate());
return contractTypeMapper.insertContractType(contractType);
}
/**
* 修改合同分类
*
* @param contractType 合同分类
* @return 结果
*/
@Override
public int updateContractType(ContractType contractType)
{
contractType.setUpdateTime(DateUtils.getNowDate());
return contractTypeMapper.updateContractType(contractType);
}
/**
* 删除合同分类对象
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@Override
public int deleteContractTypeByIds(String ids)
{
return contractTypeMapper.deleteContractTypeByIds(Convert.toStrArray(ids));
}
/**
* 删除合同分类信息
*
* @param id 合同分类ID
* @return 结果
*/
@Override
public int deleteContractTypeById(Long id)
{
return contractTypeMapper.deleteContractTypeById(id);
}
}

View File

@ -0,0 +1,97 @@
package com.ruoyi.front.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.front.mapper.EventRecruitmentMapper;
import com.ruoyi.front.domain.EventRecruitment;
import com.ruoyi.front.service.IEventRecruitmentService;
import com.ruoyi.common.core.text.Convert;
/**
* 活动招募Service业务层处理
*
* @author ruoyi
* @date 2020-10-21
*/
@Service
public class EventRecruitmentServiceImpl implements IEventRecruitmentService
{
@Autowired
private EventRecruitmentMapper eventRecruitmentMapper;
/**
* 查询活动招募
*
* @param id 活动招募ID
* @return 活动招募
*/
@Override
public EventRecruitment selectEventRecruitmentById(Long id)
{
return eventRecruitmentMapper.selectEventRecruitmentById(id);
}
/**
* 查询活动招募列表
*
* @param eventRecruitment 活动招募
* @return 活动招募
*/
@Override
public List<EventRecruitment> selectEventRecruitmentList(EventRecruitment eventRecruitment)
{
return eventRecruitmentMapper.selectEventRecruitmentList(eventRecruitment);
}
/**
* 新增活动招募
*
* @param eventRecruitment 活动招募
* @return 结果
*/
@Override
public int insertEventRecruitment(EventRecruitment eventRecruitment)
{
eventRecruitment.setCreateTime(DateUtils.getNowDate());
return eventRecruitmentMapper.insertEventRecruitment(eventRecruitment);
}
/**
* 修改活动招募
*
* @param eventRecruitment 活动招募
* @return 结果
*/
@Override
public int updateEventRecruitment(EventRecruitment eventRecruitment)
{
eventRecruitment.setUpdateTime(DateUtils.getNowDate());
return eventRecruitmentMapper.updateEventRecruitment(eventRecruitment);
}
/**
* 删除活动招募对象
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@Override
public int deleteEventRecruitmentByIds(String ids)
{
return eventRecruitmentMapper.deleteEventRecruitmentByIds(Convert.toStrArray(ids));
}
/**
* 删除活动招募信息
*
* @param id 活动招募ID
* @return 结果
*/
@Override
public int deleteEventRecruitmentById(Long id)
{
return eventRecruitmentMapper.deleteEventRecruitmentById(id);
}
}

View File

@ -0,0 +1,97 @@
package com.ruoyi.front.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.front.mapper.HomePageCarouselMapper;
import com.ruoyi.front.domain.HomePageCarousel;
import com.ruoyi.front.service.IHomePageCarouselService;
import com.ruoyi.common.core.text.Convert;
/**
* 首页轮播图Service业务层处理
*
* @author ruoyi
* @date 2020-10-21
*/
@Service
public class HomePageCarouselServiceImpl implements IHomePageCarouselService
{
@Autowired
private HomePageCarouselMapper homePageCarouselMapper;
/**
* 查询首页轮播图
*
* @param id 首页轮播图ID
* @return 首页轮播图
*/
@Override
public HomePageCarousel selectHomePageCarouselById(Long id)
{
return homePageCarouselMapper.selectHomePageCarouselById(id);
}
/**
* 查询首页轮播图列表
*
* @param homePageCarousel 首页轮播图
* @return 首页轮播图
*/
@Override
public List<HomePageCarousel> selectHomePageCarouselList(HomePageCarousel homePageCarousel)
{
return homePageCarouselMapper.selectHomePageCarouselList(homePageCarousel);
}
/**
* 新增首页轮播图
*
* @param homePageCarousel 首页轮播图
* @return 结果
*/
@Override
public int insertHomePageCarousel(HomePageCarousel homePageCarousel)
{
homePageCarousel.setCreateTime(DateUtils.getNowDate());
return homePageCarouselMapper.insertHomePageCarousel(homePageCarousel);
}
/**
* 修改首页轮播图
*
* @param homePageCarousel 首页轮播图
* @return 结果
*/
@Override
public int updateHomePageCarousel(HomePageCarousel homePageCarousel)
{
homePageCarousel.setUpdateTime(DateUtils.getNowDate());
return homePageCarouselMapper.updateHomePageCarousel(homePageCarousel);
}
/**
* 删除首页轮播图对象
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@Override
public int deleteHomePageCarouselByIds(String ids)
{
return homePageCarouselMapper.deleteHomePageCarouselByIds(Convert.toStrArray(ids));
}
/**
* 删除首页轮播图信息
*
* @param id 首页轮播图ID
* @return 结果
*/
@Override
public int deleteHomePageCarouselById(Long id)
{
return homePageCarouselMapper.deleteHomePageCarouselById(id);
}
}

View File

@ -0,0 +1,97 @@
package com.ruoyi.front.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.front.mapper.LegalServicesMapper;
import com.ruoyi.front.domain.LegalServices;
import com.ruoyi.front.service.ILegalServicesService;
import com.ruoyi.common.core.text.Convert;
/**
* 法律服务Service业务层处理
*
* @author ruoyi
* @date 2020-10-21
*/
@Service
public class LegalServicesServiceImpl implements ILegalServicesService
{
@Autowired
private LegalServicesMapper legalServicesMapper;
/**
* 查询法律服务
*
* @param id 法律服务ID
* @return 法律服务
*/
@Override
public LegalServices selectLegalServicesById(Long id)
{
return legalServicesMapper.selectLegalServicesById(id);
}
/**
* 查询法律服务列表
*
* @param legalServices 法律服务
* @return 法律服务
*/
@Override
public List<LegalServices> selectLegalServicesList(LegalServices legalServices)
{
return legalServicesMapper.selectLegalServicesList(legalServices);
}
/**
* 新增法律服务
*
* @param legalServices 法律服务
* @return 结果
*/
@Override
public int insertLegalServices(LegalServices legalServices)
{
legalServices.setCreateTime(DateUtils.getNowDate());
return legalServicesMapper.insertLegalServices(legalServices);
}
/**
* 修改法律服务
*
* @param legalServices 法律服务
* @return 结果
*/
@Override
public int updateLegalServices(LegalServices legalServices)
{
legalServices.setUpdateTime(DateUtils.getNowDate());
return legalServicesMapper.updateLegalServices(legalServices);
}
/**
* 删除法律服务对象
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@Override
public int deleteLegalServicesByIds(String ids)
{
return legalServicesMapper.deleteLegalServicesByIds(Convert.toStrArray(ids));
}
/**
* 删除法律服务信息
*
* @param id 法律服务ID
* @return 结果
*/
@Override
public int deleteLegalServicesById(Long id)
{
return legalServicesMapper.deleteLegalServicesById(id);
}
}

View File

@ -0,0 +1,97 @@
package com.ruoyi.front.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.front.mapper.NewsInformationMapper;
import com.ruoyi.front.domain.NewsInformation;
import com.ruoyi.front.service.INewsInformationService;
import com.ruoyi.common.core.text.Convert;
/**
* 新闻动态Service业务层处理
*
* @author ruoyi
* @date 2020-10-21
*/
@Service
public class NewsInformationServiceImpl implements INewsInformationService
{
@Autowired
private NewsInformationMapper newsInformationMapper;
/**
* 查询新闻动态
*
* @param id 新闻动态ID
* @return 新闻动态
*/
@Override
public NewsInformation selectNewsInformationById(Long id)
{
return newsInformationMapper.selectNewsInformationById(id);
}
/**
* 查询新闻动态列表
*
* @param newsInformation 新闻动态
* @return 新闻动态
*/
@Override
public List<NewsInformation> selectNewsInformationList(NewsInformation newsInformation)
{
return newsInformationMapper.selectNewsInformationList(newsInformation);
}
/**
* 新增新闻动态
*
* @param newsInformation 新闻动态
* @return 结果
*/
@Override
public int insertNewsInformation(NewsInformation newsInformation)
{
newsInformation.setCreateTime(DateUtils.getNowDate());
return newsInformationMapper.insertNewsInformation(newsInformation);
}
/**
* 修改新闻动态
*
* @param newsInformation 新闻动态
* @return 结果
*/
@Override
public int updateNewsInformation(NewsInformation newsInformation)
{
newsInformation.setUpdateTime(DateUtils.getNowDate());
return newsInformationMapper.updateNewsInformation(newsInformation);
}
/**
* 删除新闻动态对象
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@Override
public int deleteNewsInformationByIds(String ids)
{
return newsInformationMapper.deleteNewsInformationByIds(Convert.toStrArray(ids));
}
/**
* 删除新闻动态信息
*
* @param id 新闻动态ID
* @return 结果
*/
@Override
public int deleteNewsInformationById(Long id)
{
return newsInformationMapper.deleteNewsInformationById(id);
}
}

View File

@ -0,0 +1,112 @@
package com.ruoyi.front.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.framework.util.ShiroUtils;
import com.ruoyi.system.domain.SysUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.front.mapper.OnlineCoursesEvaluateMapper;
import com.ruoyi.front.domain.OnlineCoursesEvaluate;
import com.ruoyi.front.service.IOnlineCoursesEvaluateService;
import com.ruoyi.common.core.text.Convert;
/**
* 线上课程评价Service业务层处理
*
* @author ruoyi
* @date 2020-11-05
*/
@Service
public class OnlineCoursesEvaluateServiceImpl implements IOnlineCoursesEvaluateService
{
@Autowired
private OnlineCoursesEvaluateMapper onlineCoursesEvaluateMapper;
/**
* 查询线上课程评价
*
* @param id 线上课程评价ID
* @return 线上课程评价
*/
@Override
public OnlineCoursesEvaluate selectOnlineCoursesEvaluateById(Long id)
{
return onlineCoursesEvaluateMapper.selectOnlineCoursesEvaluateById(id);
}
/**
* 查询线上课程评价列表
*
* @param onlineCoursesEvaluate 线上课程评价
* @return 线上课程评价
*/
@Override
public List<OnlineCoursesEvaluate> selectOnlineCoursesEvaluateList(OnlineCoursesEvaluate onlineCoursesEvaluate)
{
return onlineCoursesEvaluateMapper.selectOnlineCoursesEvaluateList(onlineCoursesEvaluate);
}
/**
* 新增线上课程评价
*
* @param onlineCoursesEvaluate 线上课程评价
* @return 结果
*/
@Override
public int insertOnlineCoursesEvaluate(OnlineCoursesEvaluate onlineCoursesEvaluate)
{
onlineCoursesEvaluate.setCreateTime(DateUtils.getNowDate());
return onlineCoursesEvaluateMapper.insertOnlineCoursesEvaluate(onlineCoursesEvaluate);
}
/**
* 修改线上课程评价
*
* @param onlineCoursesEvaluate 线上课程评价
* @return 结果
*/
@Override
public int updateOnlineCoursesEvaluate(OnlineCoursesEvaluate onlineCoursesEvaluate)
{
onlineCoursesEvaluate.setUpdateTime(DateUtils.getNowDate());
return onlineCoursesEvaluateMapper.updateOnlineCoursesEvaluate(onlineCoursesEvaluate);
}
/**
* 删除线上课程评价对象
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@Override
public int deleteOnlineCoursesEvaluateByIds(String ids)
{
return onlineCoursesEvaluateMapper.deleteOnlineCoursesEvaluateByIds(Convert.toStrArray(ids));
}
/**
* 删除线上课程评价信息
*
* @param id 线上课程评价ID
* @return 结果
*/
@Override
public int deleteOnlineCoursesEvaluateById(Long id)
{
return onlineCoursesEvaluateMapper.deleteOnlineCoursesEvaluateById(id);
}
/**
* 评论批量审核
* @param ids IDs
* @param auditStatus 审核状态
* @return
*/
@Override
public int audit(String ids, String auditStatus, String remark)
{
SysUser user = ShiroUtils.getSysUser();
return onlineCoursesEvaluateMapper.auditOnlineCoursesEvaluateByIds(Convert.toStrArray(ids), auditStatus, user.getUserId().toString(),remark);
}
}

View File

@ -0,0 +1,97 @@
package com.ruoyi.front.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.front.mapper.OnlineCoursesMapper;
import com.ruoyi.front.domain.OnlineCourses;
import com.ruoyi.front.service.IOnlineCoursesService;
import com.ruoyi.common.core.text.Convert;
/**
* 线上课程Service业务层处理
*
* @author ruoyi
* @date 2020-10-21
*/
@Service
public class OnlineCoursesServiceImpl implements IOnlineCoursesService
{
@Autowired
private OnlineCoursesMapper onlineCoursesMapper;
/**
* 查询线上课程
*
* @param id 线上课程ID
* @return 线上课程
*/
@Override
public OnlineCourses selectOnlineCoursesById(Long id)
{
return onlineCoursesMapper.selectOnlineCoursesById(id);
}
/**
* 查询线上课程列表
*
* @param onlineCourses 线上课程
* @return 线上课程
*/
@Override
public List<OnlineCourses> selectOnlineCoursesList(OnlineCourses onlineCourses)
{
return onlineCoursesMapper.selectOnlineCoursesList(onlineCourses);
}
/**
* 新增线上课程
*
* @param onlineCourses 线上课程
* @return 结果
*/
@Override
public int insertOnlineCourses(OnlineCourses onlineCourses)
{
onlineCourses.setCreateTime(DateUtils.getNowDate());
return onlineCoursesMapper.insertOnlineCourses(onlineCourses);
}
/**
* 修改线上课程
*
* @param onlineCourses 线上课程
* @return 结果
*/
@Override
public int updateOnlineCourses(OnlineCourses onlineCourses)
{
onlineCourses.setUpdateTime(DateUtils.getNowDate());
return onlineCoursesMapper.updateOnlineCourses(onlineCourses);
}
/**
* 删除线上课程对象
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@Override
public int deleteOnlineCoursesByIds(String ids)
{
return onlineCoursesMapper.deleteOnlineCoursesByIds(Convert.toStrArray(ids));
}
/**
* 删除线上课程信息
*
* @param id 线上课程ID
* @return 结果
*/
@Override
public int deleteOnlineCoursesById(Long id)
{
return onlineCoursesMapper.deleteOnlineCoursesById(id);
}
}

View File

@ -0,0 +1,97 @@
package com.ruoyi.front.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.front.mapper.OnlineMessageMapper;
import com.ruoyi.front.domain.OnlineMessage;
import com.ruoyi.front.service.IOnlineMessageService;
import com.ruoyi.common.core.text.Convert;
/**
* 在线留言Service业务层处理
*
* @author ruoyi
* @date 2020-10-21
*/
@Service
public class OnlineMessageServiceImpl implements IOnlineMessageService
{
@Autowired
private OnlineMessageMapper onlineMessageMapper;
/**
* 查询在线留言
*
* @param id 在线留言ID
* @return 在线留言
*/
@Override
public OnlineMessage selectOnlineMessageById(Long id)
{
return onlineMessageMapper.selectOnlineMessageById(id);
}
/**
* 查询在线留言列表
*
* @param onlineMessage 在线留言
* @return 在线留言
*/
@Override
public List<OnlineMessage> selectOnlineMessageList(OnlineMessage onlineMessage)
{
return onlineMessageMapper.selectOnlineMessageList(onlineMessage);
}
/**
* 新增在线留言
*
* @param onlineMessage 在线留言
* @return 结果
*/
@Override
public int insertOnlineMessage(OnlineMessage onlineMessage)
{
onlineMessage.setCreateTime(DateUtils.getNowDate());
return onlineMessageMapper.insertOnlineMessage(onlineMessage);
}
/**
* 修改在线留言
*
* @param onlineMessage 在线留言
* @return 结果
*/
@Override
public int updateOnlineMessage(OnlineMessage onlineMessage)
{
onlineMessage.setUpdateTime(DateUtils.getNowDate());
return onlineMessageMapper.updateOnlineMessage(onlineMessage);
}
/**
* 删除在线留言对象
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@Override
public int deleteOnlineMessageByIds(String ids)
{
return onlineMessageMapper.deleteOnlineMessageByIds(Convert.toStrArray(ids));
}
/**
* 删除在线留言信息
*
* @param id 在线留言ID
* @return 结果
*/
@Override
public int deleteOnlineMessageById(Long id)
{
return onlineMessageMapper.deleteOnlineMessageById(id);
}
}

View File

@ -0,0 +1,128 @@
package com.ruoyi.front.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.framework.util.ShiroUtils;
import com.ruoyi.system.domain.SysUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.front.mapper.ServiceOrganizationMapper;
import com.ruoyi.front.domain.ServiceOrganization;
import com.ruoyi.front.service.IServiceOrganizationService;
import com.ruoyi.common.core.text.Convert;
import org.springframework.transaction.annotation.Transactional;
/**
* 服务组织Service业务层处理
*
* @author ruoyi
* @date 2020-10-21
*/
@Service
public class ServiceOrganizationServiceImpl implements IServiceOrganizationService
{
@Autowired
private ServiceOrganizationMapper serviceOrganizationMapper;
/**
* 查询服务组织
*
* @param id 服务组织ID
* @return 服务组织
*/
@Override
public ServiceOrganization selectServiceOrganizationById(Long id)
{
return serviceOrganizationMapper.selectServiceOrganizationById(id);
}
/**
* 查询服务组织列表
*
* @param serviceOrganization 服务组织
* @return 服务组织
*/
@Override
public List<ServiceOrganization> selectServiceOrganizationList(ServiceOrganization serviceOrganization)
{
return serviceOrganizationMapper.selectServiceOrganizationList(serviceOrganization);
}
/**
* 新增服务组织
*
* @param serviceOrganization 服务组织
* @return 结果
*/
@Override
public int insertServiceOrganization(ServiceOrganization serviceOrganization)
{
serviceOrganization.setCreateTime(DateUtils.getNowDate());
return serviceOrganizationMapper.insertServiceOrganization(serviceOrganization);
}
/**
* 修改服务组织
*
* @param serviceOrganization 服务组织
* @return 结果
*/
@Override
public int updateServiceOrganization(ServiceOrganization serviceOrganization)
{
serviceOrganization.setUpdateTime(DateUtils.getNowDate());
return serviceOrganizationMapper.updateServiceOrganization(serviceOrganization);
}
/**
* 删除服务组织对象
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@Override
public int deleteServiceOrganizationByIds(String ids)
{
return serviceOrganizationMapper.deleteServiceOrganizationByIds(Convert.toStrArray(ids));
}
/**
* 删除服务组织信息
*
* @param id 服务组织ID
* @return 结果
*/
@Override
public int deleteServiceOrganizationById(Long id)
{
return serviceOrganizationMapper.deleteServiceOrganizationById(id);
}
/**
* 审核服务组织对象
* @param ids 服务组织IDs
* @param auditStatus 审核状态
* @param remark 审核备注
* @return
*/
@Transactional
@Override
public int audit(String ids, String auditStatus, String remark)
{
SysUser user = ShiroUtils.getSysUser();
return serviceOrganizationMapper.auditServiceOrganization(Convert.toStrArray(ids), auditStatus, remark, user.getUserId().toString());
}
/**
* 停用或者启用服务组织对象
* @param ids 服务组织IDs
* @param status 状态
* @return
*/
@Transactional
@Override
public int updateStatus(String ids, String status) {
SysUser user = ShiroUtils.getSysUser();
return serviceOrganizationMapper.updateStatus(Convert.toStrArray(ids), status, user.getUserId().toString());
}
}

View File

@ -0,0 +1,107 @@
<?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.front.mapper.ClasssicCasesMapper">
<resultMap type="ClasssicCases" id="ClasssicCasesResult">
<result property="id" column="id" />
<result property="title" column="title" />
<result property="introduction" column="introduction" />
<result property="content" column="content" />
<result property="type" column="type" />
<result property="hits" column="hits" />
<result property="pictureUrl" column="picture_url" />
<result property="status" column="status" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectClasssicCasesVo">
select id, title, introduction, content, type, hits, picture_url, status, del_flag, create_by, create_time, update_by, update_time from classsic_cases
</sql>
<select id="selectClasssicCasesList" parameterType="ClasssicCases" resultMap="ClasssicCasesResult">
<include refid="selectClasssicCasesVo"/>
<where>
<if test="title != null and title != ''"> and title like concat('%', #{title}, '%')</if>
<if test="introduction != null and introduction != ''"> and introduction like concat('%', #{introduction}, '%')</if>
<if test="content != null and content != ''"> and content = #{content}</if>
<if test="type != null and type != ''"> and type = #{type}</if>
<if test="hits != null "> and hits = #{hits}</if>
<if test="pictureUrl != null and pictureUrl != ''"> and picture_url = #{pictureUrl}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
</where>
</select>
<select id="selectClasssicCasesById" parameterType="Long" resultMap="ClasssicCasesResult">
<include refid="selectClasssicCasesVo"/>
where id = #{id}
</select>
<insert id="insertClasssicCases" parameterType="ClasssicCases" useGeneratedKeys="true" keyProperty="id">
insert into classsic_cases
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="title != null and title != ''">title,</if>
<if test="introduction != null and introduction != ''">introduction,</if>
<if test="content != null and content != ''">content,</if>
<if test="type != null and type != ''">type,</if>
<if test="hits != null">hits,</if>
<if test="pictureUrl != null and pictureUrl != ''">picture_url,</if>
<if test="status != null">status,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="title != null and title != ''">#{title},</if>
<if test="introduction != null and introduction != ''">#{introduction},</if>
<if test="content != null and content != ''">#{content},</if>
<if test="type != null and type != ''">#{type},</if>
<if test="hits != null">#{hits},</if>
<if test="pictureUrl != null and pictureUrl != ''">#{pictureUrl},</if>
<if test="status != null">#{status},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateClasssicCases" parameterType="ClasssicCases">
update classsic_cases
<trim prefix="SET" suffixOverrides=",">
<if test="title != null and title != ''">title = #{title},</if>
<if test="introduction != null and introduction != ''">introduction = #{introduction},</if>
<if test="content != null and content != ''">content = #{content},</if>
<if test="type != null and type != ''">type = #{type},</if>
<if test="hits != null">hits = #{hits},</if>
<if test="pictureUrl != null and pictureUrl != ''">picture_url = #{pictureUrl},</if>
<if test="status != null">status = #{status},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteClasssicCasesById" parameterType="Long">
delete from classsic_cases where id = #{id}
</delete>
<delete id="deleteClasssicCasesByIds" parameterType="String">
delete from classsic_cases where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,91 @@
<?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.front.mapper.CommonProblemMapper">
<resultMap type="CommonProblem" id="CommonProblemResult">
<result property="id" column="id" />
<result property="title" column="title" />
<result property="content" column="content" />
<result property="explains" column="explains" />
<result property="hits" column="hits" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectCommonProblemVo">
select id, title, content, explains, hits, del_flag, create_by, create_time, update_by, update_time from common_problem
</sql>
<select id="selectCommonProblemList" parameterType="CommonProblem" resultMap="CommonProblemResult">
<include refid="selectCommonProblemVo"/>
<where>
<if test="title != null and title != ''"> and title = #{title}</if>
<if test="content != null and content != ''"> and content = #{content}</if>
<if test="hits != null "> and hits = #{hits}</if>
</where>
</select>
<select id="selectCommonProblemById" parameterType="Long" resultMap="CommonProblemResult">
<include refid="selectCommonProblemVo"/>
where id = #{id}
</select>
<insert id="insertCommonProblem" parameterType="CommonProblem" useGeneratedKeys="true" keyProperty="id">
insert into common_problem
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="title != null and title != ''">title,</if>
<if test="content != null and content != ''">content,</if>
<if test="explains != null and explains != ''">explains,</if>
<if test="hits != null">hits,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="title != null and title != ''">#{title},</if>
<if test="content != null and content != ''">#{content},</if>
<if test="explains != null and explains != ''">#{explains},</if>
<if test="hits != null">#{hits},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateCommonProblem" parameterType="CommonProblem">
update common_problem
<trim prefix="SET" suffixOverrides=",">
<if test="title != null and title != ''">title = #{title},</if>
<if test="content != null and content != ''">content = #{content},</if>
<if test="explains != null and explains != ''">explains = #{explains},</if>
<if test="hits != null">hits = #{hits},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteCommonProblemById" parameterType="Long">
delete from common_problem where id = #{id}
</delete>
<delete id="deleteCommonProblemByIds" parameterType="String">
delete from common_problem where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,107 @@
<?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.front.mapper.ContactInformationMapper">
<resultMap type="ContactInformation" id="ContactInformationResult">
<result property="id" column="id" />
<result property="address" column="address" />
<result property="servicePhone" column="service_phone" />
<result property="supervisePhone" column="supervise_phone" />
<result property="superviseDept" column="supervise_dept" />
<result property="email" column="email" />
<result property="serviceDate" column="service_date" />
<result property="copyright" column="copyright" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectContactInformationVo">
select id, address, service_phone, supervise_phone, supervise_dept, email, service_date, copyright, del_flag, create_by, create_time, update_by, update_time from contact_information
</sql>
<select id="selectContactInformationList" parameterType="ContactInformation" resultMap="ContactInformationResult">
<include refid="selectContactInformationVo"/>
<where>
<if test="address != null and address != ''"> and address like concat('%', #{address}, '%')</if>
<if test="servicePhone != null and servicePhone != ''"> and service_phone like concat('%', #{servicePhone}, '%')</if>
<if test="supervisePhone != null and supervisePhone != ''"> and supervise_phone like concat('%', #{supervisePhone}, '%')</if>
<if test="superviseDept != null and superviseDept != ''"> and supervise_dept like concat('%', #{superviseDept}, '%')</if>
<if test="email != null and email != ''"> and email like concat('%', #{email}, '%')</if>
<if test="serviceDate != null and serviceDate != ''"> and service_date = #{serviceDate}</if>
<if test="copyright != null and copyright != ''"> and copyright like concat('%', #{copyright}, '%')</if>
</where>
</select>
<select id="selectContactInformationById" parameterType="Long" resultMap="ContactInformationResult">
<include refid="selectContactInformationVo"/>
where id = #{id}
</select>
<insert id="insertContactInformation" parameterType="ContactInformation" useGeneratedKeys="true" keyProperty="id">
insert into contact_information
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="address != null and address != ''">address,</if>
<if test="servicePhone != null and servicePhone != ''">service_phone,</if>
<if test="supervisePhone != null and supervisePhone != ''">supervise_phone,</if>
<if test="superviseDept != null and superviseDept != ''">supervise_dept,</if>
<if test="email != null and email != ''">email,</if>
<if test="serviceDate != null and serviceDate != ''">service_date,</if>
<if test="copyright != null and copyright != ''">copyright,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="address != null and address != ''">#{address},</if>
<if test="servicePhone != null and servicePhone != ''">#{servicePhone},</if>
<if test="supervisePhone != null and supervisePhone != ''">#{supervisePhone},</if>
<if test="superviseDept != null and superviseDept != ''">#{superviseDept},</if>
<if test="email != null and email != ''">#{email},</if>
<if test="serviceDate != null and serviceDate != ''">#{serviceDate},</if>
<if test="copyright != null and copyright != ''">#{copyright},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateContactInformation" parameterType="ContactInformation">
update contact_information
<trim prefix="SET" suffixOverrides=",">
<if test="address != null and address != ''">address = #{address},</if>
<if test="servicePhone != null and servicePhone != ''">service_phone = #{servicePhone},</if>
<if test="supervisePhone != null and supervisePhone != ''">supervise_phone = #{supervisePhone},</if>
<if test="superviseDept != null and superviseDept != ''">supervise_dept = #{superviseDept},</if>
<if test="email != null and email != ''">email = #{email},</if>
<if test="serviceDate != null and serviceDate != ''">service_date = #{serviceDate},</if>
<if test="copyright != null and copyright != ''">copyright = #{copyright},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteContactInformationById" parameterType="Long">
delete from contact_information where id = #{id}
</delete>
<delete id="deleteContactInformationByIds" parameterType="String">
delete from contact_information where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,115 @@
<?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.front.mapper.ContractTemplateMapper">
<resultMap type="ContractTemplate" id="ContractTemplateResult">
<result property="id" column="id" />
<result property="type" column="type" />
<result property="title" column="title" />
<result property="introduction" column="introduction" />
<result property="content" column="content" />
<result property="hits" column="hits" />
<result property="enclosureUrl" column="enclosure_url" />
<result property="enclosureName" column="enclosure_name" />
<result property="status" column="status" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectContractTemplateVo">
select id, type, title, introduction, content, hits,enclosure_name, enclosure_url, status, del_flag, create_by, create_time, update_by, update_time, remark from contract_template
</sql>
<select id="selectContractTemplateList" parameterType="ContractTemplate" resultMap="ContractTemplateResult">
<include refid="selectContractTemplateVo"/>
<where>
<if test="type != null and type != ''"> and type = #{type}</if>
<if test="title != null and title != ''"> and title like concat('%', #{title}, '%')</if>
<if test="introduction != null and introduction != ''"> and introduction = #{introduction}</if>
<if test="content != null and content != ''"> and content like concat('%', #{content}, '%') </if>
<if test="hits != null "> and hits = #{hits}</if>
<if test="enclosureUrl != null and enclosureUrl != ''"> and enclosure_url = #{enclosureUrl}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
</where>
</select>
<select id="selectContractTemplateById" parameterType="Long" resultMap="ContractTemplateResult">
<include refid="selectContractTemplateVo"/>
where id = #{id}
</select>
<insert id="insertContractTemplate" parameterType="ContractTemplate" useGeneratedKeys="true" keyProperty="id">
insert into contract_template
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="type != null and type != ''">type,</if>
<if test="title != null and title != ''">title,</if>
<if test="introduction != null and introduction != ''">introduction,</if>
<if test="content != null and content != ''">content,</if>
<if test="hits != null">hits,</if>
<if test="enclosureUrl != null and enclosureUrl != ''">enclosure_url,</if>
<if test="enclosureName != null and enclosureName != ''">enclosure_name,</if>
<if test="status != null">status,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="type != null and type != ''">#{type},</if>
<if test="title != null and title != ''">#{title},</if>
<if test="introduction != null and introduction != ''">#{introduction},</if>
<if test="content != null and content != ''">#{content},</if>
<if test="hits != null">#{hits},</if>
<if test="enclosureUrl != null and enclosureUrl != ''">#{enclosureUrl},</if>
<if test="enclosureName != null and enclosureName != ''">#{enclosureName},</if>
<if test="status != null">#{status},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateContractTemplate" parameterType="ContractTemplate">
update contract_template
<trim prefix="SET" suffixOverrides=",">
<if test="type != null and type != ''">type = #{type},</if>
<if test="title != null and title != ''">title = #{title},</if>
<if test="introduction != null and introduction != ''">introduction = #{introduction},</if>
<if test="content != null and content != ''">content = #{content},</if>
<if test="hits != null">hits = #{hits},</if>
<if test="enclosureUrl != null and enclosureUrl != ''">enclosure_url = #{enclosureUrl},</if>
<if test="enclosureName != null and enclosureName != ''">enclosure_name = #{enclosureName},</if>
<if test="status != null">status = #{status},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteContractTemplateById" parameterType="Long">
delete from contract_template where id = #{id}
</delete>
<delete id="deleteContractTemplateByIds" parameterType="String">
delete from contract_template where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,86 @@
<?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.front.mapper.ContractTypeMapper">
<resultMap type="ContractType" id="ContractTypeResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="englishName" column="english_name" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectContractTypeVo">
select id, name, english_name, del_flag, create_by, create_time, update_by, update_time, remark from contract_type
</sql>
<select id="selectContractTypeList" parameterType="ContractType" resultMap="ContractTypeResult">
<include refid="selectContractTypeVo"/>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="englishName != null and englishName != ''"> and english_name like concat('%', #{englishName}, '%')</if>
</where>
</select>
<select id="selectContractTypeById" parameterType="Long" resultMap="ContractTypeResult">
<include refid="selectContractTypeVo"/>
where id = #{id}
</select>
<insert id="insertContractType" parameterType="ContractType" useGeneratedKeys="true" keyProperty="id">
insert into contract_type
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null and name != ''">name,</if>
<if test="englishName != null and englishName != ''">english_name,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null and name != ''">#{name},</if>
<if test="englishName != null and englishName != ''">#{englishName},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateContractType" parameterType="ContractType">
update contract_type
<trim prefix="SET" suffixOverrides=",">
<if test="name != null and name != ''">name = #{name},</if>
<if test="englishName != null and englishName != ''">english_name = #{englishName},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteContractTypeById" parameterType="Long">
delete from contract_type where id = #{id}
</delete>
<delete id="deleteContractTypeByIds" parameterType="String">
delete from contract_type where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,102 @@
<?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.front.mapper.EventRecruitmentMapper">
<resultMap type="EventRecruitment" id="EventRecruitmentResult">
<result property="id" column="id" />
<result property="title" column="title" />
<result property="introduction" column="introduction" />
<result property="activityTime" column="activity_time" />
<result property="address" column="address" />
<result property="organizer" column="organizer" />
<result property="pictureUrl" column="picture_url" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectEventRecruitmentVo">
select id, title, introduction, activity_time, address, organizer, picture_url, del_flag, create_by, create_time, update_by, update_time from event_recruitment
</sql>
<select id="selectEventRecruitmentList" parameterType="EventRecruitment" resultMap="EventRecruitmentResult">
<include refid="selectEventRecruitmentVo"/>
<where>
<if test="title != null and title != ''"> and title like concat('%',#{title},'%')</if>
<if test="introduction != null and introduction != ''"> and introduction like concat('%',#{introduction},'%')</if>
<if test="activityTime != null and activityTime != ''"> and activity_time like concat('%',#{activityTime},'%') </if>
<if test="address != null and address != ''"> and address like concat('%',#{address},'%') </if>
<if test="organizer != null and organizer != ''"> and organizer like concat('%',#{organizer},'%') </if>
<if test="pictureUrl != null and pictureUrl != ''"> and picture_url like concat('%',#{pictureUrl},'%') </if>
</where>
</select>
<select id="selectEventRecruitmentById" parameterType="Long" resultMap="EventRecruitmentResult">
<include refid="selectEventRecruitmentVo"/>
where id = #{id}
</select>
<insert id="insertEventRecruitment" parameterType="EventRecruitment" useGeneratedKeys="true" keyProperty="id">
insert into event_recruitment
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="title != null and title != ''">title,</if>
<if test="introduction != null and introduction != ''">introduction,</if>
<if test="activityTime != null">activity_time,</if>
<if test="address != null and address != ''">address,</if>
<if test="organizer != null and organizer != ''">organizer,</if>
<if test="pictureUrl != null and pictureUrl != ''">picture_url,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="title != null and title != ''">#{title},</if>
<if test="introduction != null and introduction != ''">#{introduction},</if>
<if test="activityTime != null">#{activityTime},</if>
<if test="address != null and address != ''">#{address},</if>
<if test="organizer != null and organizer != ''">#{organizer},</if>
<if test="pictureUrl != null and pictureUrl != ''">#{pictureUrl},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateEventRecruitment" parameterType="EventRecruitment">
update event_recruitment
<trim prefix="SET" suffixOverrides=",">
<if test="title != null and title != ''">title = #{title},</if>
<if test="introduction != null and introduction != ''">introduction = #{introduction},</if>
<if test="activityTime != null">activity_time = #{activityTime},</if>
<if test="address != null and address != ''">address = #{address},</if>
<if test="organizer != null and organizer != ''">organizer = #{organizer},</if>
<if test="pictureUrl != null and pictureUrl != ''">picture_url = #{pictureUrl},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteEventRecruitmentById" parameterType="Long">
delete from event_recruitment where id = #{id}
</delete>
<delete id="deleteEventRecruitmentByIds" parameterType="String">
delete from event_recruitment where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,77 @@
<?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.front.mapper.HomePageCarouselMapper">
<resultMap type="HomePageCarousel" id="HomePageCarouselResult">
<result property="id" column="id" />
<result property="pictureUrl" column="picture_url" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectHomePageCarouselVo">
select id, picture_url, del_flag, create_by, create_time, update_by, update_time from home_page_carousel
</sql>
<select id="selectHomePageCarouselList" parameterType="HomePageCarousel" resultMap="HomePageCarouselResult">
<include refid="selectHomePageCarouselVo"/>
<where>
<if test="pictureUrl != null and pictureUrl != ''"> and picture_url = #{pictureUrl}</if>
</where>
</select>
<select id="selectHomePageCarouselById" parameterType="Long" resultMap="HomePageCarouselResult">
<include refid="selectHomePageCarouselVo"/>
where id = #{id}
</select>
<insert id="insertHomePageCarousel" parameterType="HomePageCarousel" useGeneratedKeys="true" keyProperty="id">
insert into home_page_carousel
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="pictureUrl != null and pictureUrl != ''">picture_url,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="pictureUrl != null and pictureUrl != ''">#{pictureUrl},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateHomePageCarousel" parameterType="HomePageCarousel">
update home_page_carousel
<trim prefix="SET" suffixOverrides=",">
<if test="pictureUrl != null and pictureUrl != ''">picture_url = #{pictureUrl},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteHomePageCarouselById" parameterType="Long">
delete from home_page_carousel where id = #{id}
</delete>
<delete id="deleteHomePageCarouselByIds" parameterType="String">
delete from home_page_carousel where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,82 @@
<?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.front.mapper.LegalServicesMapper">
<resultMap type="LegalServices" id="LegalServicesResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="address" column="address" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectLegalServicesVo">
select id, name, address, del_flag, create_by, create_time, update_by, update_time from legal_services
</sql>
<select id="selectLegalServicesList" parameterType="LegalServices" resultMap="LegalServicesResult">
<include refid="selectLegalServicesVo"/>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="address != null and address != ''"> and address = #{address}</if>
</where>
</select>
<select id="selectLegalServicesById" parameterType="Long" resultMap="LegalServicesResult">
<include refid="selectLegalServicesVo"/>
where id = #{id}
</select>
<insert id="insertLegalServices" parameterType="LegalServices" useGeneratedKeys="true" keyProperty="id">
insert into legal_services
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null and name != ''">name,</if>
<if test="address != null and address != ''">address,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null and name != ''">#{name},</if>
<if test="address != null and address != ''">#{address},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateLegalServices" parameterType="LegalServices">
update legal_services
<trim prefix="SET" suffixOverrides=",">
<if test="name != null and name != ''">name = #{name},</if>
<if test="address != null and address != ''">address = #{address},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteLegalServicesById" parameterType="Long">
delete from legal_services where id = #{id}
</delete>
<delete id="deleteLegalServicesByIds" parameterType="String">
delete from legal_services where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,97 @@
<?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.front.mapper.NewsInformationMapper">
<resultMap type="NewsInformation" id="NewsInformationResult">
<result property="id" column="id" />
<result property="title" column="title" />
<result property="introduction" column="introduction" />
<result property="content" column="content" />
<result property="hits" column="hits" />
<result property="status" column="status" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectNewsInformationVo">
select id, title, introduction, content, hits, status, del_flag, create_by, create_time, update_by, update_time from news_information
</sql>
<select id="selectNewsInformationList" parameterType="NewsInformation" resultMap="NewsInformationResult">
<include refid="selectNewsInformationVo"/>
<where>
<if test="title != null and title != ''"> and title = #{title}</if>
<if test="introduction != null and introduction != ''"> and introduction = #{introduction}</if>
<if test="content != null and content != ''"> and content = #{content}</if>
<if test="hits != null "> and hits = #{hits}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
</where>
</select>
<select id="selectNewsInformationById" parameterType="Long" resultMap="NewsInformationResult">
<include refid="selectNewsInformationVo"/>
where id = #{id}
</select>
<insert id="insertNewsInformation" parameterType="NewsInformation" useGeneratedKeys="true" keyProperty="id">
insert into news_information
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="title != null and title != ''">title,</if>
<if test="introduction != null and introduction != ''">introduction,</if>
<if test="content != null and content != ''">content,</if>
<if test="hits != null">hits,</if>
<if test="status != null">status,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="title != null and title != ''">#{title},</if>
<if test="introduction != null and introduction != ''">#{introduction},</if>
<if test="content != null and content != ''">#{content},</if>
<if test="hits != null">#{hits},</if>
<if test="status != null">#{status},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateNewsInformation" parameterType="NewsInformation">
update news_information
<trim prefix="SET" suffixOverrides=",">
<if test="title != null and title != ''">title = #{title},</if>
<if test="introduction != null and introduction != ''">introduction = #{introduction},</if>
<if test="content != null and content != ''">content = #{content},</if>
<if test="hits != null">hits = #{hits},</if>
<if test="status != null">status = #{status},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteNewsInformationById" parameterType="Long">
delete from news_information where id = #{id}
</delete>
<delete id="deleteNewsInformationByIds" parameterType="String">
delete from news_information where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,115 @@
<?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.front.mapper.OnlineCoursesEvaluateMapper">
<resultMap type="OnlineCoursesEvaluate" id="OnlineCoursesEvaluateResult">
<result property="id" column="id" />
<result property="onlineCoursesId" column="online_courses_id" />
<result property="onlineCoursesName" column="online_courses_name" />
<result property="evaluateContent" column="evaluate_content" />
<result property="anonymousFlag" column="anonymous_flag" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="auditStatus" column="audit_status" />
<result property="checkBy" column="check_by" />
<result property="checkTime" column="check_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectOnlineCoursesEvaluateVo">
select ce.id, ce.online_courses_id,oc.title online_courses_name, ce.evaluate_content, ce.anonymous_flag, ce.create_by, ce.create_time, ce.update_by, ce.update_time, ce.audit_status, su.user_name check_by, ce.remark,ce.check_time from online_courses_evaluate ce join online_courses oc on ce.online_courses_id=oc.id left join sys_user su on ce.check_by=su.user_id
</sql>
<select id="selectOnlineCoursesEvaluateList" parameterType="OnlineCoursesEvaluate" resultMap="OnlineCoursesEvaluateResult">
<include refid="selectOnlineCoursesEvaluateVo"/>
<where>
<if test="onlineCoursesId != null "> and ce.online_courses_id = #{onlineCoursesId}</if>
<if test="evaluateContent != null and evaluateContent != ''"> and ce.evaluate_content = #{evaluateContent}</if>
<if test="anonymousFlag != null and anonymousFlag != ''"> and ce.anonymous_flag = #{anonymousFlag}</if>
<if test="auditStatus != null and auditStatus != ''"> and ce.audit_status = #{auditStatus}</if>
<if test="checkBy != null and checkBy != ''"> and su.login_name = #{checkBy}</if>
<if test="checkTime != null "> and ce.check_time = #{checkTime}</if>
and ce.del_flag='0'
</where>
</select>
<select id="selectOnlineCoursesEvaluateById" parameterType="Long" resultMap="OnlineCoursesEvaluateResult">
<include refid="selectOnlineCoursesEvaluateVo"/>
where ce.id = #{id} and ce.del_flag='0'
</select>
<insert id="insertOnlineCoursesEvaluate" parameterType="OnlineCoursesEvaluate" useGeneratedKeys="true" keyProperty="id">
insert into online_courses_evaluate
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="onlineCoursesId != null">online_courses_id,</if>
<if test="evaluateContent != null and evaluateContent != ''">evaluate_content,</if>
<if test="anonymousFlag != null and anonymousFlag != ''">anonymous_flag,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="auditStatus != null">audit_status,</if>
<if test="checkBy != null">check_by,</if>
<if test="checkTime != null">check_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="onlineCoursesId != null">#{onlineCoursesId},</if>
<if test="evaluateContent != null and evaluateContent != ''">#{evaluateContent},</if>
<if test="anonymousFlag != null and anonymousFlag != ''">#{anonymousFlag},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="auditStatus != null">#{auditStatus},</if>
<if test="checkBy != null">#{checkBy},</if>
<if test="checkTime != null">#{checkTime},</if>
</trim>
</insert>
<update id="updateOnlineCoursesEvaluate" parameterType="OnlineCoursesEvaluate">
update online_courses_evaluate
<trim prefix="SET" suffixOverrides=",">
<if test="onlineCoursesId != null">online_courses_id = #{onlineCoursesId},</if>
<if test="evaluateContent != null and evaluateContent != ''">evaluate_content = #{evaluateContent},</if>
<if test="anonymousFlag != null and anonymousFlag != ''">anonymous_flag = #{anonymousFlag},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="auditStatus != null">audit_status = #{auditStatus},</if>
<if test="checkBy != null">check_by = #{checkBy},</if>
<if test="checkTime != null">check_time = #{checkTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteOnlineCoursesEvaluateById" parameterType="Long">
update online_courses_evaluate set del_flag='1' where id = #{id}
</delete>
<delete id="deleteOnlineCoursesEvaluateByIds" parameterType="String">
update online_courses_evaluate set del_flag='1' where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<update id="auditOnlineCoursesEvaluateByIds">
update online_courses_evaluate
set check_by = #{checkBy},
remark = #{remark},
check_time = now(),
audit_status = #{auditStatus}
where id in
<foreach item="id" collection="ids" open="(" separator="," close=")">
#{id}
</foreach>
</update>
</mapper>

View File

@ -0,0 +1,117 @@
<?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.front.mapper.OnlineCoursesMapper">
<resultMap type="OnlineCourses" id="OnlineCoursesResult">
<result property="id" column="id" />
<result property="title" column="title" />
<result property="introduction" column="introduction" />
<result property="hits" column="hits" />
<result property="targetPeople" column="target_people" />
<result property="coursesDuration" column="courses_duration" />
<result property="coursesLevel" column="courses_level" />
<result property="pictureUrl" column="picture_url" />
<result property="videoUrl" column="video_url" />
<result property="status" column="status" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectOnlineCoursesVo">
select id, title, introduction, hits, target_people, courses_duration, courses_level, picture_url, video_url, status, del_flag, create_by, create_time, update_by, update_time from online_courses
</sql>
<select id="selectOnlineCoursesList" parameterType="OnlineCourses" resultMap="OnlineCoursesResult">
<include refid="selectOnlineCoursesVo"/>
<where>
<if test="title != null and title != ''"> and title = #{title}</if>
<if test="introduction != null and introduction != ''"> and introduction = #{introduction}</if>
<if test="hits != null "> and hits = #{hits}</if>
<if test="targetPeople != null and targetPeople != ''"> and target_people = #{targetPeople}</if>
<if test="coursesDuration != null and coursesDuration != ''"> and courses_duration = #{coursesDuration}</if>
<if test="coursesLevel != null "> and courses_level = #{coursesLevel}</if>
<if test="pictureUrl != null and pictureUrl != ''"> and picture_url = #{pictureUrl}</if>
<if test="videoUrl != null and videoUrl != ''"> and video_url = #{videoUrl}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
</where>
</select>
<select id="selectOnlineCoursesById" parameterType="Long" resultMap="OnlineCoursesResult">
<include refid="selectOnlineCoursesVo"/>
where id = #{id}
</select>
<insert id="insertOnlineCourses" parameterType="OnlineCourses" useGeneratedKeys="true" keyProperty="id">
insert into online_courses
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="title != null and title != ''">title,</if>
<if test="introduction != null and introduction != ''">introduction,</if>
<if test="hits != null">hits,</if>
<if test="targetPeople != null and targetPeople != ''">target_people,</if>
<if test="coursesDuration != null and coursesDuration != ''">courses_duration,</if>
<if test="coursesLevel != null">courses_level,</if>
<if test="pictureUrl != null and pictureUrl != ''">picture_url,</if>
<if test="videoUrl != null and videoUrl != ''">video_url,</if>
<if test="status != null">status,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="title != null and title != ''">#{title},</if>
<if test="introduction != null and introduction != ''">#{introduction},</if>
<if test="hits != null">#{hits},</if>
<if test="targetPeople != null and targetPeople != ''">#{targetPeople},</if>
<if test="coursesDuration != null and coursesDuration != ''">#{coursesDuration},</if>
<if test="coursesLevel != null">#{coursesLevel},</if>
<if test="pictureUrl != null and pictureUrl != ''">#{pictureUrl},</if>
<if test="videoUrl != null and videoUrl != ''">#{videoUrl},</if>
<if test="status != null">#{status},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateOnlineCourses" parameterType="OnlineCourses">
update online_courses
<trim prefix="SET" suffixOverrides=",">
<if test="title != null and title != ''">title = #{title},</if>
<if test="introduction != null and introduction != ''">introduction = #{introduction},</if>
<if test="hits != null">hits = #{hits},</if>
<if test="targetPeople != null and targetPeople != ''">target_people = #{targetPeople},</if>
<if test="coursesDuration != null and coursesDuration != ''">courses_duration = #{coursesDuration},</if>
<if test="coursesLevel != null">courses_level = #{coursesLevel},</if>
<if test="pictureUrl != null and pictureUrl != ''">picture_url = #{pictureUrl},</if>
<if test="videoUrl != null and videoUrl != ''">video_url = #{videoUrl},</if>
<if test="status != null">status = #{status},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteOnlineCoursesById" parameterType="Long">
delete from online_courses where id = #{id}
</delete>
<delete id="deleteOnlineCoursesByIds" parameterType="String">
delete from online_courses where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,92 @@
<?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.front.mapper.OnlineMessageMapper">
<resultMap type="OnlineMessage" id="OnlineMessageResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="email" column="email" />
<result property="contactInformation" column="contact_information" />
<result property="messageContent" column="message_content" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectOnlineMessageVo">
select id, name, email, contact_information, message_content, del_flag, create_by, create_time, update_by, update_time from online_message
</sql>
<select id="selectOnlineMessageList" parameterType="OnlineMessage" resultMap="OnlineMessageResult">
<include refid="selectOnlineMessageVo"/>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="email != null and email != ''"> and email = #{email}</if>
<if test="contactInformation != null and contactInformation != ''"> and contact_information = #{contactInformation}</if>
<if test="messageContent != null and messageContent != ''"> and message_content = #{messageContent}</if>
</where>
</select>
<select id="selectOnlineMessageById" parameterType="Long" resultMap="OnlineMessageResult">
<include refid="selectOnlineMessageVo"/>
where id = #{id}
</select>
<insert id="insertOnlineMessage" parameterType="OnlineMessage" useGeneratedKeys="true" keyProperty="id">
insert into online_message
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null and name != ''">name,</if>
<if test="email != null and email != ''">email,</if>
<if test="contactInformation != null and contactInformation != ''">contact_information,</if>
<if test="messageContent != null and messageContent != ''">message_content,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null and name != ''">#{name},</if>
<if test="email != null and email != ''">#{email},</if>
<if test="contactInformation != null and contactInformation != ''">#{contactInformation},</if>
<if test="messageContent != null and messageContent != ''">#{messageContent},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateOnlineMessage" parameterType="OnlineMessage">
update online_message
<trim prefix="SET" suffixOverrides=",">
<if test="name != null and name != ''">name = #{name},</if>
<if test="email != null and email != ''">email = #{email},</if>
<if test="contactInformation != null and contactInformation != ''">contact_information = #{contactInformation},</if>
<if test="messageContent != null and messageContent != ''">message_content = #{messageContent},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteOnlineMessageById" parameterType="Long">
delete from online_message where id = #{id}
</delete>
<delete id="deleteOnlineMessageByIds" parameterType="String">
delete from online_message where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,165 @@
<?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.front.mapper.ServiceOrganizationMapper">
<resultMap type="ServiceOrganization" id="ServiceOrganizationResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="contacts" column="contacts" />
<result property="phone" column="phone" />
<result property="licenseUrl" column="license_url" />
<result property="title" column="title" />
<result property="introduction" column="introduction" />
<result property="content" column="content" />
<result property="hits" column="hits" />
<result property="auditStatus" column="audit_status" />
<result property="pictureUrl" column="picture_url" />
<result property="status" column="status" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="checkBy" column="check_by" />
<result property="checkTime" column="check_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectServiceOrganizationVo">
select so.id, so.name, so.contacts, so.phone, so.license_url, so.title, so.introduction, so.content, so.hits, so.audit_status, so.picture_url, so.status,
so.del_flag, so.create_by, so.create_time, so.update_by, so.update_time, su.user_name check_by, so.check_time, so.remark from service_organization so
</sql>
<select id="selectServiceOrganizationList" parameterType="ServiceOrganization" resultMap="ServiceOrganizationResult">
<include refid="selectServiceOrganizationVo"/>
left join sys_user su on su.user_id = so.check_by
<where>
<if test="name != null and name != ''"> and so.name like concat('%', #{name}, '%')</if>
<if test="contacts != null and contacts != ''"> and so.contacts = #{contacts}</if>
<if test="phone != null and phone != ''"> and so.phone = #{phone}</if>
<if test="licenseUrl != null and licenseUrl != ''"> and so.license_url = #{licenseUrl}</if>
<if test="title != null and title != ''"> and so.title = #{title}</if>
<if test="introduction != null and introduction != ''"> and so.introduction = #{introduction}</if>
<if test="content != null and content != ''"> and so.content = #{content}</if>
<if test="hits != null "> and so.hits = #{hits}</if>
<if test="auditStatus != null and auditStatus != ''"> and so.audit_status = #{auditStatus}</if>
<if test="pictureUrl != null and pictureUrl != ''"> and so.picture_url = #{pictureUrl}</if>
<if test="status != null and status != ''"> and so.status = #{status}</if>
<if test="checkBy != null and checkBy != ''"> and so.check_by = #{checkBy}</if>
<if test="checkTime != null "> and so.check_time = #{checkTime}</if>
</where>
</select>
<select id="selectServiceOrganizationById" parameterType="Long" resultMap="ServiceOrganizationResult">
<include refid="selectServiceOrganizationVo"/>
where id = #{id}
</select>
<insert id="insertServiceOrganization" parameterType="ServiceOrganization" useGeneratedKeys="true" keyProperty="id">
insert into service_organization
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null and name != ''">name,</if>
<if test="contacts != null and contacts != ''">contacts,</if>
<if test="phone != null and phone != ''">phone,</if>
<if test="licenseUrl != null and licenseUrl != ''">license_url,</if>
<if test="title != null and title != ''">title,</if>
<if test="introduction != null and introduction != ''">introduction,</if>
<if test="content != null and content != ''">content,</if>
<if test="hits != null">hits,</if>
<if test="auditStatus != null">audit_status,</if>
<if test="pictureUrl != null and pictureUrl != ''">picture_url,</if>
<if test="status != null">status,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="checkBy != null">check_by,</if>
<if test="checkTime != null">check_time,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null and name != ''">#{name},</if>
<if test="contacts != null and contacts != ''">#{contacts},</if>
<if test="phone != null and phone != ''">#{phone},</if>
<if test="licenseUrl != null and licenseUrl != ''">#{licenseUrl},</if>
<if test="title != null and title != ''">#{title},</if>
<if test="introduction != null and introduction != ''">#{introduction},</if>
<if test="content != null and content != ''">#{content},</if>
<if test="hits != null">#{hits},</if>
<if test="auditStatus != null">#{auditStatus},</if>
<if test="pictureUrl != null and pictureUrl != ''">#{pictureUrl},</if>
<if test="status != null">#{status},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="checkBy != null">#{checkBy},</if>
<if test="checkTime != null">#{checkTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateServiceOrganization" parameterType="ServiceOrganization">
update service_organization
<trim prefix="SET" suffixOverrides=",">
<if test="name != null and name != ''">name = #{name},</if>
<if test="contacts != null and contacts != ''">contacts = #{contacts},</if>
<if test="phone != null and phone != ''">phone = #{phone},</if>
<if test="licenseUrl != null and licenseUrl != ''">license_url = #{licenseUrl},</if>
<if test="title != null and title != ''">title = #{title},</if>
<if test="introduction != null and introduction != ''">introduction = #{introduction},</if>
<if test="content != null and content != ''">content = #{content},</if>
<if test="hits != null">hits = #{hits},</if>
<if test="auditStatus != null">audit_status = #{auditStatus},</if>
<if test="pictureUrl != null and pictureUrl != ''">picture_url = #{pictureUrl},</if>
<if test="status != null">status = #{status},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="checkBy != null">check_by = #{checkBy},</if>
<if test="checkTime != null">check_time = #{checkTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteServiceOrganizationById" parameterType="Long">
delete from service_organization where id = #{id}
</delete>
<delete id="deleteServiceOrganizationByIds" parameterType="String">
delete from service_organization where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<update id="auditServiceOrganization">
update service_organization
set check_by = #{checkBy},
check_time = now(),
remark = #{remark},
audit_status = #{auditStatus}
where id in
<foreach item="id" collection="ids" open="(" separator="," close=")">
#{id}
</foreach>
</update>
<update id="updateStatus">
update service_organization
set update_by = #{updateBy},
update_time = now(),
status = #{status}
where id in
<foreach item="id" collection="ids" open="(" separator="," close=")">
#{id}
</foreach>
</update>
</mapper>

View File

@ -0,0 +1,80 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增首页轮播图')" />
<th:block th:include="include :: summernote-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-carousel-add">
<div class="form-group">
<label class="col-sm-3 control-label is-required">图片:</label>
<div class="col-sm-8">
<input id="filePath" name="filePath" class="form-control" type="file">
<input id="pictureUrl" name="pictureUrl" type="text" hidden>
</div>
</div>
<!--<div class="form-group">
<label class="col-sm-3 control-label">删除标志:</label>
<div class="col-sm-8">
<input name="delFlag" class="form-control" type="text">
</div>
</div>-->
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: summernote-js" />
<script th:inline="javascript">
var prefix = ctx + "front/carousel"
$("#form-carousel-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
//同步上传图片并且将上传图片返回的地址赋值到pictureUrl对应的隐藏域上
let result = uploadFile(false, "pictureUrl");
if (result != web_status.SUCCESS) {
return;
}
$.operate.save(prefix + "/add", $('#form-carousel-add').serialize());
}
}
$(function() {
$('.summernote').summernote({
lang: 'zh-CN',
callbacks: {
onChange: function(contents, $edittable) {
$("input[name='" + this.id + "']").val(contents);
},
onImageUpload: function(files) {
var obj = this;
var data = new FormData();
data.append("file", files[0]);
$.ajax({
type: "post",
url: ctx + "common/upload",
data: data,
cache: false,
contentType: false,
processData: false,
dataType: 'json',
success: function(result) {
if (result.code == web_status.SUCCESS) {
$('#' + obj.id).summernote('insertImage', result.url);
} else {
$.modal.alertError(result.msg);
}
},
error: function(error) {
$.modal.alertWarning("图片上传失败。");
}
});
}
}
});
});
</script>
</body>
</html>

View File

@ -0,0 +1,89 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('首页轮播图列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<!--<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>图片地址:</label>
<input type="text" name="pictureUrl"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>-->
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="front:carousel:add">
<i class="fa fa-plus"></i> 添加
</a>
<!--<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="front:carousel:edit">
<i class="fa fa-edit"></i> 修改
</a>-->
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="front:carousel:remove">
<i class="fa fa-remove"></i> 删除
</a>
<!--<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="front:carousel:export">
<i class="fa fa-download"></i> 导出
</a>-->
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('front:carousel:edit')}]];
var removeFlag = [[${@permission.hasPermi('front:carousel:remove')}]];
var prefix = ctx + "front/carousel";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "首页轮播图",
columns: [{
checkbox: true
},
{
field: 'id',
title: 'ID',
visible: false
},
{
field: 'pictureUrl',
title: '图片地址',
formatter: function(value, row, index) {
return $.table.imageView(value);
}
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

View File

@ -0,0 +1,79 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改首页轮播图')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-carousel-edit" th:object="${homePageCarousel}">
<input name="id" th:field="*{id}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label is-required">图片:<!--<img th:src="*{pictureUrl}" class="img-circle" height="25px" width="25px"> --></label>
<div class="col-sm-8">
<input id="filePath" name="filePath" class="form-control" type="file">
<input id="pictureUrl" name="pictureUrl" th:field="*{pictureUrl}" type="text" hidden>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: summernote-js" />
<script th:inline="javascript">
var prefix = ctx + "front/carousel";
$("#form-carousel-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
if ($('#filePath')[0].files[0] != null) {
let result = uploadFile(false, "pictureUrl");
if (result != web_status.SUCCESS) {
return;
}
}
$.operate.save(prefix + "/edit", $('#form-carousel-edit').serialize());
}
}
$(function() {
$('.summernote').each(function(i) {
$('#' + this.id).summernote({
lang: 'zh-CN',
callbacks: {
onChange: function(contents, $edittable) {
$("input[name='" + this.id + "']").val(contents);
},
onImageUpload: function(files) {
var obj = this;
var data = new FormData();
data.append("file", files[0]);
$.ajax({
type: "post",
url: ctx + "common/upload",
data: data,
cache: false,
contentType: false,
processData: false,
dataType: 'json',
success: function(result) {
if (result.code == web_status.SUCCESS) {
$('#' + obj.id).summernote('insertImage', result.url);
} else {
$.modal.alertError(result.msg);
}
},
error: function(error) {
$.modal.alertWarning("图片上传失败。");
}
});
}
}
});
var content = $("input[name='" + this.id + "']").val();
$('#' + this.id).summernote('code', content);
})
});
</script>
</body>
</html>

View File

@ -0,0 +1,112 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增典型案例')" />
<th:block th:include="include :: summernote-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-cases-add">
<div class="form-group">
<label class="col-sm-3 control-label is-required">标题:</label>
<div class="col-sm-8">
<input name="title" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">简介:</label>
<div class="col-sm-8">
<input name="introduction" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">详情内容:</label>
<div class="col-sm-8">
<input type="hidden" class="form-control" name="content">
<div class="summernote" id="content"></div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">案例类型:</label>
<div class="col-sm-8">
<div class="input-group" style="width: 100%">
<select name="type" class="form-control m-b" th:with="type=${@dict.getType('classsic_cases_type')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">图片:</label>
<div class="col-sm-8">
<input id="filePath" name="filePath" class="form-control" type="file">
<input id="pictureUrl" name="pictureUrl" type="text" hidden>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">状态:</label>
<div class="col-sm-8">
<div class="radio-box" th:each="dict : ${@dict.getType('sys_normal_disable')}">
<input type="radio" th:id="${dict.dictCode}" name="status" th:value="${dict.dictValue}" th:checked="${dict.default}">
<label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: summernote-js" />
<script th:inline="javascript">
var prefix = ctx + "front/cases"
$("#form-cases-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
//同步上传图片并且将上传图片返回的地址赋值到pictureUrl对应的隐藏域上
let result = uploadFile(false, "pictureUrl");
if (result != web_status.SUCCESS) {
return;
}
$.operate.save(prefix + "/add", $("#form-cases-add").serialize());
}
}
$(function() {
$('.summernote').summernote({
lang: 'zh-CN',
callbacks: {
onChange: function(contents, $edittable) {
$("input[name='" + this.id + "']").val(contents);
},
onImageUpload: function(files) {
var obj = this;
var data = new FormData();
data.append("file", files[0]);
$.ajax({
type: "post",
url: ctx + "common/upload",
data: data,
cache: false,
contentType: false,
processData: false,
dataType: 'json',
success: function(result) {
if (result.code == web_status.SUCCESS) {
$('#' + obj.id).summernote('insertImage', result.url);
} else {
$.modal.alertError(result.msg);
}
},
error: function(error) {
$.modal.alertWarning("图片上传失败。");
}
});
}
}
});
});
</script>
</body>
</html>

View File

@ -0,0 +1,144 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('典型案例列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>标题:</label>
<input type="text" name="title"/>
</li>
<!--<li>
<label>简介:</label>
<input type="text" name="introduction"/>
</li>-->
<li>
<label>案例类型:</label>
<select name="type" class="form-control m-b" th:with="type=${@dict.getType('classsic_cases_type')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<!-- <li>
<label>点击量:</label>
<input type="text" name="hits"/>
</li>-->
<li>
<label>状态:</label>
<select name="status" th:with="type=${@dict.getType('sys_normal_disable')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.addFull()" shiro:hasPermission="front:cases:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="front:cases:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="front:cases:remove">
<i class="fa fa-remove"></i> 删除
</a>
<!--<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="front:cases:export">
<i class="fa fa-download"></i> 导出
</a>-->
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('front:cases:edit')}]];
var removeFlag = [[${@permission.hasPermi('front:cases:remove')}]];
var dictStatus = [[${@dict.getType('sys_normal_disable')}]];
var dictCasesTypes = [[${@dict.getType('classsic_cases_type')}]];
var prefix = ctx + "front/cases";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "典型案例",
columns: [{
checkbox: true
},
{
field: 'id',
title: 'ID',
visible: false
},
{
field: 'title',
title: '标题'
},
{
field: 'introduction',
title: '简介'
},
/*{
field: 'content',
title: '详情内容',
hidden : true
},*/
{
field: 'type',
title: '案例类型',
formatter: function(value, item, index) {
return $.table.selectDictLabel(dictCasesTypes, item.type);
}
},
{
field: 'hits',
title: '点击量'
},
{
field: 'pictureUrl',
title: '图片',
formatter: function(value, row, index) {
return $.table.imageView(value);
}
},
{
field: 'status',
title: '状态',
formatter: function(value, item, index) {
return $.table.selectDictLabel(dictStatus, item.status);
}
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.editFull(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

View File

@ -0,0 +1,119 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改典型案例')" />
<th:block th:include="include :: summernote-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-cases-edit" th:object="${classsicCases}">
<input name="id" th:field="*{id}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label is-required">标题:</label>
<div class="col-sm-8">
<input name="title" th:field="*{title}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">简介:</label>
<div class="col-sm-8">
<input name="introduction" th:field="*{introduction}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">详情内容:</label>
<div class="col-sm-8">
<input type="hidden" class="form-control" th:field="*{content}">
<div class="summernote" id="content"></div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">案例类型:</label>
<div class="col-sm-8">
<div class="input-group" style="width: 100%">
<select name="type" class="form-control m-b" th:with="type=${@dict.getType('classsic_cases_type')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">图片:</label>
<div class="col-sm-8">
<input id="filePath" name="filePath" class="form-control" type="file">
<input id="pictureUrl" name="pictureUrl" th:field="*{pictureUrl}" type="text" hidden>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">状态:</label>
<div class="col-sm-8">
<div class="radio-box" th:each="dict : ${@dict.getType('sys_normal_disable')}">
<input type="radio" th:id="${dict.dictCode}" name="status" th:value="${dict.dictValue}" th:checked="${dict.default}">
<label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: summernote-js" />
<script th:inline="javascript">
var prefix = ctx + "front/cases";
$("#form-cases-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
//同步上传图片并且将上传图片返回的地址赋值到pictureUrl对应的隐藏域上
if ($('#filePath')[0].files[0] != null) {
let result = uploadFile(false, "pictureUrl");
if (result != web_status.SUCCESS) {
return;
}
}
$.operate.save(prefix + "/edit", $('#form-cases-edit').serialize());
}
}
$(function() {
$('.summernote').each(function(i) {
$('#' + this.id).summernote({
lang: 'zh-CN',
callbacks: {
onChange: function(contents, $edittable) {
$("input[name='" + this.id + "']").val(contents);
},
onImageUpload: function(files) {
var obj = this;
var data = new FormData();
data.append("file", files[0]);
$.ajax({
type: "post",
url: ctx + "common/upload",
data: data,
cache: false,
contentType: false,
processData: false,
dataType: 'json',
success: function(result) {
if (result.code == web_status.SUCCESS) {
$('#' + obj.id).summernote('insertImage', result.url);
} else {
$.modal.alertError(result.msg);
}
},
error: function(error) {
$.modal.alertWarning("图片上传失败。");
}
});
}
}
});
var content = $("input[name='" + this.id + "']").val();
$('#' + this.id).summernote('code', content);
})
});
</script>
</body>
</html>

View File

@ -0,0 +1,73 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增联系方式')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-contactInformation-add">
<div class="form-group">
<label class="col-sm-3 control-label is-required">机构地址:</label>
<div class="col-sm-8">
<input name="address" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">服务电话:</label>
<div class="col-sm-8">
<input name="servicePhone" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">监督电话:</label>
<div class="col-sm-8">
<input name="supervisePhone" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">监督部门:</label>
<div class="col-sm-8">
<input name="superviseDept" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">邮箱:</label>
<div class="col-sm-8">
<input name="email" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">服务时间:</label>
<div class="col-sm-8">
<input name="serviceDate" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">版权所有:</label>
<div class="col-sm-8">
<input name="copyright" class="form-control" type="text" required>
</div>
</div>
<!--<div class="form-group">
<label class="col-sm-3 control-label">删除标志:</label>
<div class="col-sm-8">
<input name="delFlag" class="form-control" type="text">
</div>
</div>-->
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "front/contactInformation"
$("#form-contactInformation-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-contactInformation-add').serialize());
}
}
</script>
</body>
</html>

View File

@ -0,0 +1,134 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('联系方式列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>机构地址:</label>
<input type="text" name="address"/>
</li>
<li>
<label>服务电话:</label>
<input type="text" name="servicePhone"/>
</li>
<li>
<label>监督电话:</label>
<input type="text" name="supervisePhone"/>
</li>
<li>
<label>监督部门:</label>
<input type="text" name="superviseDept"/>
</li>
<li>
<label>邮箱:</label>
<input type="text" name="email"/>
</li>
<li>
<label>服务时间:</label>
<input type="text" name="serviceDate"/>
</li>
<li>
<label>版权所有:</label>
<input type="text" name="copyright"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="front:contactInformation:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="front:contactInformation:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="front:contactInformation:remove">
<i class="fa fa-remove"></i> 删除
</a>
<!-- <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="front:contactInformation:export">
<i class="fa fa-download"></i> 导出
</a>-->
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('front:contactInformation:edit')}]];
var removeFlag = [[${@permission.hasPermi('front:contactInformation:remove')}]];
var prefix = ctx + "front/contactInformation";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "联系方式",
columns: [{
checkbox: true
},
{
field: 'id',
title: 'ID',
visible: false
},
{
field: 'address',
title: '机构地址'
},
{
field: 'servicePhone',
title: '服务电话'
},
{
field: 'supervisePhone',
title: '监督电话'
},
{
field: 'superviseDept',
title: '监督部门'
},
{
field: 'email',
title: '邮箱'
},
{
field: 'serviceDate',
title: '服务时间'
},
{
field: 'copyright',
title: '版权所有'
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More