Merge remote-tracking branch 'origin/huacheng_test' into local_20221010
# Conflicts:
# springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java
20个文件已删除
144个文件已修改
381个文件已添加
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <project version="4"> |
| | | <component name="VcsDirectoryMappings"> |
| | | <mapping directory="$PROJECT_DIR$" vcs="Git" /> |
| | | <mapping directory="" vcs="Git" /> |
| | | </component> |
| | | </project> |
| | |
| | | # 花城e+自公告系统 后端 |
| | | # 花城e+自公告系统 后端 |
| | | # 不参与花城后台 完全独立 |
| | | # 只是用户表只做查询花城数据 |
| | |
| | | <version>2.3.30</version> |
| | | </dependency> |
| | | |
| | | <!-- 阿里短信 --> |
| | | <dependency> |
| | | <groupId>com.aliyun</groupId> |
| | | <artifactId>aliyun-java-sdk-core</artifactId> |
| | | <version>4.5.3</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>com.alibaba</groupId> |
| | | <artifactId>fastjson</artifactId> |
| | | <version>1.2.74</version> |
| | | </dependency> |
| | | |
| | | <!-- okhttp --> |
| | | <dependency> |
| | | <groupId>com.squareup.okhttp</groupId> |
| | | <artifactId>okhttp</artifactId> |
| | | <version>2.7.1</version> |
| | | </dependency> |
| | | |
| | | |
| | | <dependency> |
| | | <groupId>cn.afterturn</groupId> |
| | | <artifactId>easypoi-annotation</artifactId> |
| | |
| | | </dependency> |
| | | |
| | | |
| | | <!-- 文件上传工具类 --> |
| | | <dependency> |
| | | <groupId>commons-fileupload</groupId> |
| | | <artifactId>commons-fileupload</artifactId> |
| | | <version>1.4</version> |
| | | </dependency> |
| | | |
| | | |
| | | <!-- io常用工具类 --> |
| | | <dependency> |
| | | <groupId>commons-io</groupId> |
| | |
| | | </dependency> |
| | | |
| | | |
| | | <dependency> |
| | | <groupId>com.jcraft</groupId> |
| | | <artifactId>jsch</artifactId> |
| | | <version>0.1.53</version> |
| | | </dependency> |
| | | |
| | | |
| | | <dependency> |
| | | <groupId>io.jsonwebtoken</groupId> |
| | | <artifactId>jjwt</artifactId> |
| | | <version>0.9.1</version> |
| | | </dependency> |
| | | |
| | | |
| | | </dependencies> |
| | | |
| | | |
New file |
| | |
| | | package com.dg.core; |
| | | |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.context.annotation.PropertySource; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | /** |
| | | * 阿里云短信配置 |
| | | */ |
| | | @Component |
| | | @PropertySource(value = "classpath:application-sms.properties",encoding = "UTF-8") |
| | | public class AliyunConfig { |
| | | |
| | | @Value("${aliyun.key}") |
| | | private String key; |
| | | |
| | | @Value("${aliyun.screct}") |
| | | |
| | | private String screct; |
| | | @Value("${aliyun.SignName}") |
| | | private String SignName; |
| | | |
| | | @Value("${aliyun.TemplateCode}") |
| | | private String TemplateCode; |
| | | |
| | | @Value("${aliyun.TemplateCodeOvertime}") |
| | | private String TemplateCodeOvertime; |
| | | |
| | | @Value("${aliyun.TemplateCodeComplete}") |
| | | private String TemplateCodeComplete; |
| | | |
| | | |
| | | public String getKey() { |
| | | return key; |
| | | } |
| | | |
| | | public String getTemplateCodeComplete() { |
| | | return TemplateCodeComplete; |
| | | } |
| | | |
| | | public void setTemplateCodeComplete(String templateCodeComplete) { |
| | | TemplateCodeComplete = templateCodeComplete; |
| | | } |
| | | |
| | | public void setKey(String key) { |
| | | this.key = key; |
| | | } |
| | | |
| | | public String getTemplateCodeOvertime() { |
| | | return TemplateCodeOvertime; |
| | | } |
| | | |
| | | public void setTemplateCodeOvertime(String templateCodeOvertime) { |
| | | TemplateCodeOvertime = templateCodeOvertime; |
| | | } |
| | | |
| | | public String getScrect() { |
| | | return screct; |
| | | } |
| | | |
| | | public void setScrect(String screct) { |
| | | this.screct = screct; |
| | | } |
| | | |
| | | public String getSignName() { |
| | | return SignName; |
| | | } |
| | | |
| | | public void setSignName(String signName) { |
| | | SignName = signName; |
| | | } |
| | | |
| | | public String getTemplateCode() { |
| | | return TemplateCode; |
| | | } |
| | | |
| | | public void setTemplateCode(String templateCode) { |
| | | TemplateCode = templateCode; |
| | | } |
| | | } |
| | |
| | | /** |
| | | * token有效期(小时) |
| | | */ |
| | | public static final int TOKEN_EXPIRES_HOUR = 1; |
| | | public static final int TOKEN_EXPIRES_HOUR = 10; |
| | | |
| | | /** |
| | | * redis存储手机验证码过期时间(10分钟) |
| | |
| | | */ |
| | | public static final String AUTHORIZATION = "Authorization"; |
| | | |
| | | /** |
| | | * 小程序 花城e+token |
| | | */ |
| | | public static final String HCAUTHORIZATION = "HCAuthorization"; |
| | | |
| | | } |
| | |
| | | package com.dg.core; |
| | | |
| | | import com.dg.core.util.ServletUtils; |
| | | import org.springframework.context.annotation.Configuration; |
| | | import org.springframework.web.servlet.config.annotation.CorsRegistry; |
| | | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; |
| | |
| | | // 跨域允许时间 |
| | | .maxAge(3600); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 获取完整的请求路径,包括:域名,端口,上下文访问路径 |
| | | * |
| | | * @return 服务地址 |
| | | */ |
| | | public String getUrl() |
| | | { |
| | | HttpServletRequest request = ServletUtils.getRequest(); |
| | | return getDomain(request); |
| | | } |
| | | |
| | | public static String getDomain(HttpServletRequest request) |
| | | { |
| | | StringBuffer url = request.getRequestURL(); |
| | | String contextPath = request.getServletContext().getContextPath(); |
| | | return url.delete(url.length() - request.getRequestURI().length(), url.length()).append(contextPath).toString(); |
| | | } |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.dg.core.api; |
| | | |
| | | |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.annotation.Authorization; |
| | | import com.dg.core.annotation.CurrentUser; |
| | | import com.dg.core.db.gen.entity.Agreement; |
| | | import com.dg.core.db.gen.entity.SysUser; |
| | | import com.dg.core.service.IAgreementService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | @Api(tags = {"相关协议小程序接口"}) |
| | | @RestController |
| | | @RequestMapping("/applets/agreement") |
| | | public class AgreementAppletsController { |
| | | |
| | | @Resource |
| | | private IAgreementService agreementService; |
| | | |
| | | /** |
| | | * 通过协议名获取相关协议 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "通过协议名获取相关协议",response = Agreement.class) |
| | | @GetMapping(value = "/queryByAgreement") |
| | | public ResultData queryByAgreement(@RequestParam("agreement") String agreement) { |
| | | return ResultData.success(agreementService.queryByAgreement(agreement)); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.dg.core.api; |
| | | |
| | | import com.dg.core.controller.BaseController; |
| | | import com.dg.core.db.gen.entity.AreaCode2022; |
| | | import com.dg.core.service.IAreaCodeService; |
| | | import com.dg.core.util.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | @Api(tags = {"所属地区小程序接口"}) |
| | | @RestController |
| | | @RequestMapping("/applet/areaCode") |
| | | public class AreaCodeAppletsController extends BaseController { |
| | | |
| | | @Resource |
| | | private IAreaCodeService iAreaCodeService; |
| | | |
| | | /** |
| | | * 根据指南id获取所属地区 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "根据指南id获取所属地区",response = AreaCode2022.class) |
| | | @GetMapping("/getAreaCodeByTransactionId") |
| | | public TableDataInfo getAreaCodeByTransactionId(@RequestParam("transactionId") Integer transactionId){ |
| | | return getDataTable(iAreaCodeService.getAreaCodeByTransactionId(transactionId)); |
| | | } |
| | | } |
New file |
| | |
| | | package com.dg.core.api; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.annotation.Authorization; |
| | | import com.dg.core.annotation.CurrentUser; |
| | | import com.dg.core.controller.BaseController; |
| | | import com.dg.core.db.gen.entity.AutomessageCommonProblem; |
| | | import com.dg.core.db.gen.entity.SysUser; |
| | | import com.dg.core.service.IAutomessageCommonProblemService; |
| | | import com.dg.core.util.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | @Api(tags = {"常见问题小程序接口"}) |
| | | @RestController |
| | | @RequestMapping("/applets/automessageCommonProblem") |
| | | public class AutomessageCommonProblemAppletsController extends BaseController { |
| | | |
| | | @Resource |
| | | private IAutomessageCommonProblemService iAutomessageCommonProblemService; |
| | | |
| | | |
| | | /** |
| | | * 获取常见问题列表(不分页) |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "获取常见问题列表(不分页)",response = AutomessageCommonProblem.class) |
| | | @GetMapping("/selectList") |
| | | public ResultData selectList(){ |
| | | return ResultData.success(iAutomessageCommonProblemService.selectList()); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取常见问题列表(不分页查找) |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "获取常见问题列表(不分页查找)",response = AutomessageCommonProblem.class) |
| | | @GetMapping("/queryList") |
| | | public ResultData queryList(@RequestParam(value = "title",required = false) String title){ |
| | | return ResultData.success(iAutomessageCommonProblemService.selectConfigList(title,null)); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.dg.core.api; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.annotation.Authorization; |
| | | import com.dg.core.controller.BaseController; |
| | | import com.dg.core.db.gen.entity.ClassifyAdministration; |
| | | import com.dg.core.service.IClassifyAdministrationService; |
| | | import com.dg.core.util.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.Assert; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | |
| | | /** |
| | | * 分类管理 |
| | | */ |
| | | @Api(tags = {"分类管理小程序接口"}) |
| | | @RestController |
| | | @RequestMapping("/applets/classify") |
| | | public class ClassifyAdministrationAppletsController extends BaseController |
| | | { |
| | | |
| | | @Autowired(required = true) |
| | | IClassifyAdministrationService iClassifyAdministrationService; |
| | | |
| | | |
| | | /** |
| | | * 获取管理菜单列表(无分页已分级) |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = " 获取管理菜单列表(无分页已分级))",response = ClassifyAdministration.class) |
| | | @GetMapping("/selectListByParentId") |
| | | public TableDataInfo selectListByParentId(@RequestParam(value = "parentId",required = false) String parentId, |
| | | @RequestParam(value = "departmentId",required = false) Integer departmentId){ |
| | | int num=iClassifyAdministrationService.countNum("",null); |
| | | if (parentId==null) |
| | | parentId="0"; |
| | | return getDataTable(iClassifyAdministrationService.selectConfigListByParentId(parentId, departmentId),num); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 获取分类根据id 如果是二级id则获取的是办事指南 |
| | | * @return |
| | | */ |
| | | @ApiOperation("获取分类根据id 如果是二级id则获取的是办事指南,不传参默认是0") |
| | | @GetMapping("/queryListById") |
| | | ResultData queryListById(@RequestParam(value = "id",required = false) Integer id){ |
| | | if(id==null) |
| | | id=0; |
| | | return iClassifyAdministrationService.queryListById(id); |
| | | } |
| | | } |
New file |
| | |
| | | package com.dg.core.api; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.annotation.Authorization; |
| | | import com.dg.core.annotation.CurrentUser; |
| | | import com.dg.core.controller.BaseController; |
| | | import com.dg.core.db.gen.entity.ElseAccessoryEntity; |
| | | import com.dg.core.db.gen.entity.GuideRepairOrder; |
| | | import com.dg.core.db.gen.entity.SysUser; |
| | | import com.dg.core.service.IElseAccessoryService; |
| | | import com.dg.core.service.IOrganizationChartService; |
| | | import com.dg.core.util.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Api(tags = {"其他附件小程序接口"}) |
| | | @RestController |
| | | @RequestMapping("/applets/else") |
| | | public class ElseAccessoryAppletsController extends BaseController |
| | | { |
| | | |
| | | @Autowired |
| | | IElseAccessoryService iElseAccessoryService; |
| | | |
| | | @Autowired |
| | | IOrganizationChartService iOrganizationChartService; |
| | | |
| | | /** |
| | | * 获取附件列表 |
| | | * @param Name |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "获取附件列表接口(全部)",response = ElseAccessoryEntity.class) |
| | | @GetMapping(path = "/getAllList") |
| | | @Authorization |
| | | public TableDataInfo selectConfigListAll(@RequestParam(value = "Name",required = false) String Name, |
| | | @CurrentUser SysUser sysUser) |
| | | { |
| | | List<String> ids=iOrganizationChartService.getIds(sysUser.getDepartmentId()); |
| | | List<ElseAccessoryEntity> list = iElseAccessoryService.selectConfigList(Name,ids); |
| | | int num=iElseAccessoryService.countNum(Name,ids); |
| | | return getDataTable(list,num); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 新增列表 |
| | | * @param entity |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "新增附件",response = ElseAccessoryEntity.class) |
| | | @PostMapping(path = "/add") |
| | | @Authorization |
| | | public ResultData insertConfig(@RequestBody ElseAccessoryEntity entity) |
| | | { |
| | | if(entity==null) |
| | | { |
| | | return ResultData.error("参数不能为空"); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(entity.getName())) |
| | | { |
| | | return ResultData.error("事项名称不能为空"); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(entity.getUrl())) |
| | | { |
| | | return ResultData.error("文件url不能为空"); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(entity.getDepartmentId())) |
| | | { |
| | | return ResultData.error("部门不能为空"); |
| | | } |
| | | |
| | | return toAjax(iElseAccessoryService.insertConfig(entity)); |
| | | } |
| | | |
| | | /** |
| | | * 更新附件 |
| | | * @param entity |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "更新附件",response = ElseAccessoryEntity.class) |
| | | @PostMapping(path = "/update") |
| | | @Authorization |
| | | public ResultData updateConfig(@RequestBody ElseAccessoryEntity entity) |
| | | { |
| | | return toAjax(iElseAccessoryService.updateConfig(entity)); |
| | | } |
| | | |
| | | /** |
| | | * 删除 |
| | | * @param Id |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "删除附件",response = ElseAccessoryEntity.class) |
| | | @DeleteMapping(path = "/delete") |
| | | @Authorization |
| | | public ResultData deleteConfigById(@RequestParam(value = "Id",required = false) String Id) |
| | | { |
| | | return toAjax(iElseAccessoryService.deleteConfigById(Id)); |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.dg.core.api; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.annotation.Authorization; |
| | | import com.dg.core.controller.BaseController; |
| | | import com.dg.core.db.gen.entity.SysUser; |
| | | import com.dg.core.service.ISysUserService; |
| | | import com.dg.core.util.Snowflake; |
| | | import com.dg.core.util.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.Assert; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | |
| | | @Api(tags = {"导办用户小程序接口"}) |
| | | @RestController |
| | | @RequestMapping("/applets/guidedo") |
| | | public class GuideDoAppletsController extends BaseController |
| | | { |
| | | |
| | | @Autowired |
| | | ISysUserService IUserService; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据部门id及分类id获取导办用户 |
| | | * |
| | | * @return 结果 |
| | | */ |
| | | @ApiOperation(value = "根据部门id及分类id获取导办用户",response = SysUser.class) |
| | | @GetMapping("/selectListByDepartmentId") |
| | | @Authorization |
| | | public ResultData selectListByDepartmentId(@RequestParam("departmentId") String departmentId, |
| | | @RequestParam(value = "classifyId",required = false) String classifyId){ |
| | | return ResultData.success(IUserService.selectListByDepartmentId(departmentId,classifyId)); |
| | | } |
| | | |
| | | /** |
| | | * 查询导办用户列表(不分页) |
| | | * @return 结果 |
| | | */ |
| | | @ApiOperation(value = " 查询导办用户列表(不分页)",response = SysUser.class) |
| | | @GetMapping("/queryList") |
| | | public ResultData queryList(){ |
| | | return ResultData.success(IUserService.queryList(2)); |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.dg.core.api; |
| | | |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.annotation.Authorization; |
| | | import com.dg.core.annotation.CurrentUser; |
| | | import com.dg.core.controller.BaseController; |
| | | import com.dg.core.db.gen.entity.GuideEvolveEntity; |
| | | import com.dg.core.db.gen.entity.GuideRepairOrder; |
| | | import com.dg.core.db.gen.entity.SysUser; |
| | | import com.dg.core.db.manual.mapper.util.ConstantPropertiesUtil; |
| | | import com.dg.core.service.IGuideEvolveService; |
| | | import com.dg.core.service.IGuideRepairOrderService; |
| | | import com.dg.core.util.SmsUtil; |
| | | import com.dg.core.util.WxUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.io.IOException; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Map; |
| | | |
| | | import static com.dg.core.util.WxUtil.httpGet; |
| | | |
| | | |
| | | /** |
| | | * 工单管理 |
| | | */ |
| | | @Api(tags = {"工单管理小程序接口"}) |
| | | @RestController |
| | | @RequestMapping("/applets/guideRepairOrder") |
| | | public class GuideRepairOrderAppletsController extends BaseController { |
| | | |
| | | @Resource |
| | | private IGuideRepairOrderService iGuideRepairOrderService; |
| | | |
| | | @Autowired |
| | | private IGuideEvolveService iGuideEvolveService; |
| | | |
| | | private static String guideRepairOrderCompleteTemplateId = "7ZCHHii87rWPwVkdhZnvNiYbYi_Buq0NXO10cmUhAFk"; |
| | | |
| | | @Resource |
| | | SmsUtil smsUtil; |
| | | |
| | | /** |
| | | * 提交导办订单 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "提交导办订单",response = GuideRepairOrder.class) |
| | | @PostMapping("/addOrder") |
| | | @Authorization |
| | | public ResultData addOrder(@RequestBody GuideRepairOrder guideRepairOrder,@CurrentUser SysUser sysUser) { |
| | | guideRepairOrder.setSubmitUserId(sysUser.getUserId().toString()); |
| | | guideRepairOrder.setSubmitUserPhone(sysUser.getPhonenumber()); |
| | | guideRepairOrder.setSubmitType(1); |
| | | int i = iGuideRepairOrderService.addOrder(guideRepairOrder); |
| | | if (i>0){ |
| | | iGuideEvolveService.updateGuid(); |
| | | return ResultData.success(); |
| | | } |
| | | else |
| | | return ResultData.error("提交失败,请检查你是否有相同的咨询内容在处理中"); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取详情 |
| | | * @param Id |
| | | * @param orderNum |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "获取订单详情",response = GuideRepairOrder.class) |
| | | @GetMapping("/orderdata") |
| | | @Authorization |
| | | public ResultData selectConfigData(@RequestParam(value = "Id",required = false) String Id, |
| | | @RequestParam(value = "orderNum",required = false) String orderNum) |
| | | { |
| | | if(StringUtils.isEmpty(Id) && StringUtils.isEmpty(orderNum)) |
| | | { |
| | | return ResultData.error("id或者订单号不能都为空"); |
| | | } |
| | | |
| | | GuideRepairOrder order=iGuideRepairOrderService.selectConfigData(Id,orderNum); |
| | | order.setGuideEvolveEntities(iGuideEvolveService.selectConfigList(Id)); |
| | | |
| | | return ResultData.success(order); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 转派人员 |
| | | * @param order |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "转派人员",response = GuideRepairOrder.class) |
| | | @PostMapping("/redeploy") |
| | | @Authorization |
| | | public ResultData redeploy(@RequestBody GuideRepairOrder order, @CurrentUser SysUser sysUser) |
| | | { |
| | | if(order==null) |
| | | { |
| | | return ResultData.error("参数不能为空"); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(order.getGuideDepartmentId())) |
| | | { |
| | | return ResultData.error("导办部门id不能为空"); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(order.getGuideUserId())) |
| | | { |
| | | return ResultData.error("导办人员id不能为空"); |
| | | } |
| | | |
| | | |
| | | //已分配 |
| | | order.setState("2"); |
| | | |
| | | //新增转派记录 |
| | | GuideEvolveEntity entity=new GuideEvolveEntity(); |
| | | entity.setCreateTime(LocalDateTime.now()); |
| | | entity.setUpdateTime(LocalDateTime.now()); |
| | | entity.setState("12"); |
| | | entity.setDepartmentalId(order.getGuideDepartmentId()); |
| | | entity.setToUserId(order.getGuideUserId()); |
| | | entity.setFromUserId(sysUser.getUserId()+""); |
| | | entity.setFromDepartmentalId(sysUser.getDepartmentId()); |
| | | |
| | | iGuideEvolveService.insertConfig(entity); |
| | | iGuideRepairOrderService.updateSysUserOrderNum(entity); |
| | | |
| | | return toAjax(iGuideRepairOrderService.updateConfig(order)); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 去处理 |
| | | * @param entity |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "去处理",response = GuideRepairOrder.class) |
| | | @PostMapping("/dispose") |
| | | @Authorization |
| | | public ResultData dispose(@RequestBody GuideEvolveEntity entity, @CurrentUser SysUser sysUser) |
| | | { |
| | | if(entity==null) |
| | | { |
| | | return ResultData.error("参数不能为空"); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(entity.getGuideId())) |
| | | { |
| | | return ResultData.error("工单id不能为空"); |
| | | } |
| | | |
| | | GuideRepairOrder order=iGuideRepairOrderService.selectConfigData(entity.getGuideId(),""); |
| | | if(order==null) |
| | | { |
| | | return ResultData.error("该工单不存在!"); |
| | | } |
| | | |
| | | if(StringUtils.equals(order.getState(),"3")) |
| | | { |
| | | return ResultData.error("该工单已办结!"); |
| | | } |
| | | if(StringUtils.equals(entity.getState(),"2")){//如果用户选择未解决则状态改为待办 |
| | | order.setState("2"); |
| | | entity.setState("8"); |
| | | } |
| | | else if(StringUtils.equals(entity.getState(),"4")){ |
| | | if (order.getSubmitType().equals(1))//小程序提交 |
| | | { |
| | | WxUtil wxUtil=new WxUtil(); |
| | | String accessToken="0"; |
| | | try { |
| | | accessToken= wxUtil.getBatteryCarAccessToken(); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | SysUser submitUser = iGuideRepairOrderService.getSubmitUser(order); |
| | | wxUtil.sendGuideRepairOrderComplete(submitUser.getOpenid(),accessToken,guideRepairOrderCompleteTemplateId,order); |
| | | } |
| | | else if (order.getSubmitType().equals(2)){ |
| | | smsUtil.sendSmsComplete(order.getSubmitUserPhone(),order.getMatterName()); |
| | | } |
| | | //待评价 |
| | | order.setState("4"); |
| | | entity.setState("9"); |
| | | } |
| | | //新增已办结记录 |
| | | entity.setCreateTime(LocalDateTime.now()); |
| | | entity.setUpdateTime(LocalDateTime.now()); |
| | | entity.setDepartmentalId(order.getGuideDepartmentId()); |
| | | entity.setToUserId(order.getGuideUserId()); |
| | | entity.setGuideId(order.getId().toString()); |
| | | iGuideEvolveService.insertConfig(entity); |
| | | return toAjax(iGuideRepairOrderService.updateConfig(order)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 取消导办工单 |
| | | * @param entity |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "取消导办工单",response = GuideRepairOrder.class) |
| | | @PostMapping("/cancel") |
| | | @Authorization |
| | | public ResultData cancel(@RequestBody GuideEvolveEntity entity, @CurrentUser SysUser sysUser) |
| | | { |
| | | if(entity==null) |
| | | { |
| | | return ResultData.error("参数不能为空"); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(entity.getGuideId())) |
| | | { |
| | | return ResultData.error("工单id不能为空"); |
| | | } |
| | | |
| | | GuideRepairOrder order=iGuideRepairOrderService.selectConfigData(entity.getGuideId(),""); |
| | | if(order==null) |
| | | { |
| | | return ResultData.error("该工单不存在!"); |
| | | } |
| | | |
| | | if(!StringUtils.equals(order.getState(),"1")) |
| | | { |
| | | return ResultData.error("该工单不能取消!"); |
| | | } |
| | | //取消状态 |
| | | order.setState("5"); |
| | | |
| | | //新增已取消记录 |
| | | entity.setCreateTime(LocalDateTime.now()); |
| | | entity.setUpdateTime(LocalDateTime.now()); |
| | | entity.setState("5"); |
| | | entity.setDepartmentalId(sysUser.getDepartmentId()); |
| | | entity.setToUserId(sysUser.getUserId()+""); |
| | | iGuideEvolveService.insertConfig(entity); |
| | | return toAjax(iGuideRepairOrderService.updateConfig(order)); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 工单评价 |
| | | * @param entity |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "工单评价",response = GuideRepairOrder.class) |
| | | @PostMapping("/evaluate") |
| | | @Authorization |
| | | public ResultData evaluate(@RequestBody GuideRepairOrder entity, @CurrentUser SysUser sysUser) |
| | | { |
| | | if(entity==null) |
| | | { |
| | | return ResultData.error("参数不能为空"); |
| | | } |
| | | |
| | | if(entity.getId()<=0) |
| | | { |
| | | return ResultData.error("工单id不能为空"); |
| | | } |
| | | |
| | | if(!StringUtils.equals(entity.getState(),"4")) |
| | | { |
| | | return ResultData.error("该工单不能评价!"); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(entity.getEvaluateState())) |
| | | { |
| | | return ResultData.error("满意程度不能为空!"); |
| | | } |
| | | |
| | | //已办结 |
| | | entity.setState("3"); |
| | | //新增已办结记录 |
| | | GuideEvolveEntity guideEvolveEntity=new GuideEvolveEntity(); |
| | | guideEvolveEntity.setCreateTime(LocalDateTime.now()); |
| | | guideEvolveEntity.setUpdateTime(LocalDateTime.now()); |
| | | guideEvolveEntity.setState("3"); |
| | | guideEvolveEntity.setDepartmentalId(sysUser.getDepartmentId()); |
| | | guideEvolveEntity.setToUserId(sysUser.getUserId()+""); |
| | | int i = iGuideRepairOrderService.updateConfig(entity); |
| | | if (i>0) |
| | | return toAjax( iGuideEvolveService.insertConfig(guideEvolveEntity)); |
| | | else |
| | | return ResultData.error(); |
| | | } |
| | | |
| | | /** |
| | | * 获取个人中心工单数据 |
| | | * @param sysUser 当前登录人员信息 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "获取个人中心工单数据",response = GuideRepairOrder.class) |
| | | @GetMapping("/personalCenter") |
| | | @Authorization |
| | | public ResultData selectBySubmitId(@CurrentUser SysUser sysUser){ |
| | | return ResultData.success(iGuideRepairOrderService.selectBySubmitId(sysUser.getUserId().toString())); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.dg.core.api; |
| | | |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.annotation.Authorization; |
| | | import com.dg.core.controller.BaseController; |
| | | import com.dg.core.db.gen.entity.OrganizationChartEntity; |
| | | import com.dg.core.service.IOrganizationChartService; |
| | | import com.dg.core.util.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | |
| | | @Api(tags = {"组织架构小程序接口"}) |
| | | @RestController |
| | | @RequestMapping("/applets/organization") |
| | | public class OrganizationAppletsController extends BaseController |
| | | { |
| | | |
| | | @Autowired(required = true) |
| | | IOrganizationChartService iOrganizationChartService; |
| | | |
| | | /** |
| | | * 查询机构列表 |
| | | */ |
| | | @ApiOperation("查询机构列表") |
| | | @GetMapping("/getList") |
| | | public TableDataInfo selectConfigList() |
| | | { |
| | | return getDataTable(iOrganizationChartService.selectConfigList("","")); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 查询机构列表(不分级不分页按等级排序) |
| | | */ |
| | | @ApiOperation(value = "查询机构列表(不分级不分页按等级排序)",response = OrganizationChartEntity.class) |
| | | @GetMapping("/selectList") |
| | | public TableDataInfo selectList(){ |
| | | return getDataTable(iOrganizationChartService.selectList()); |
| | | } |
| | | |
| | | /** |
| | | * 根据id查组织机构 |
| | | */ |
| | | @ApiOperation(value = "根据id查取消组织机构",response = OrganizationChartEntity.class) |
| | | @GetMapping("/selectById") |
| | | ResultData selectConfigById(@RequestParam("id") String id){ |
| | | return ResultData.success(iOrganizationChartService.selectConfigById(id)); |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.dg.core.api; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.annotation.Authorization; |
| | | import com.dg.core.annotation.CurrentUser; |
| | | import com.dg.core.controller.BaseController; |
| | | import com.dg.core.db.gen.entity.ReplyTemplateEntity; |
| | | import com.dg.core.db.gen.entity.SysUser; |
| | | import com.dg.core.service.IOrganizationChartService; |
| | | import com.dg.core.service.IReplyTemplateService; |
| | | import com.dg.core.util.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Api(tags = {"回复模板小程序接口"}) |
| | | @RestController |
| | | @RequestMapping("/applets/reply") |
| | | public class ReplyTemplateAppletsController extends BaseController |
| | | { |
| | | |
| | | @Autowired |
| | | IReplyTemplateService iReplyTemplateService; |
| | | |
| | | @Autowired |
| | | IOrganizationChartService iOrganizationChartService; |
| | | |
| | | |
| | | /** |
| | | * 获取模板列表 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "获取模板列表",response = ReplyTemplateEntity.class) |
| | | @GetMapping("/getlist") |
| | | @Authorization |
| | | public TableDataInfo selectConfigList(@RequestParam(value = "pageNum",required = false) Integer pageNum, |
| | | @RequestParam(value = "pageSize",required = false) Integer pageSize, |
| | | @RequestParam(value = "Name",required = false) String Name, |
| | | @CurrentUser SysUser sysUser) |
| | | { |
| | | Page<ReplyTemplateEntity> pageParam = new Page<>(pageNum,pageSize); |
| | | List<String> ids=iOrganizationChartService.getIds(sysUser.getDepartmentId()); |
| | | List<ReplyTemplateEntity> list = iReplyTemplateService.selectConfigList(pageParam,pageSize,Name,ids); |
| | | int num=iReplyTemplateService.countNum(Name,ids); |
| | | return getDataTable(list,num); |
| | | } |
| | | |
| | | /** |
| | | * 获取详情 |
| | | * @param Id |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "获取详情",response = ReplyTemplateEntity.class) |
| | | @GetMapping("/getdata") |
| | | @Authorization |
| | | public ResultData selectConfigData(@RequestParam(value = "Id",required = false) String Id) |
| | | { |
| | | if(StringUtils.isEmpty(Id)) |
| | | { |
| | | return ResultData.error("Id不能为空"); |
| | | } |
| | | return ResultData.success(iReplyTemplateService.selectConfigData(Id)); |
| | | } |
| | | |
| | | /** |
| | | * 新增模板 |
| | | * @param entity |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "新增模板",response = ReplyTemplateEntity.class) |
| | | @PostMapping("/add") |
| | | @Authorization |
| | | public ResultData insertConfig(@RequestBody ReplyTemplateEntity entity,@CurrentUser SysUser sysUser) |
| | | { |
| | | if(entity==null) |
| | | { |
| | | return ResultData.error("参数不能为空"); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(entity.getName())) |
| | | { |
| | | return ResultData.error("模板名称不能为空"); |
| | | } |
| | | |
| | | entity.setId(null); |
| | | entity.setDepartmentId(sysUser.getDepartmentId()); |
| | | entity.setCreateUserId(sysUser.getUserId()+""); |
| | | |
| | | return toAjax(iReplyTemplateService.insertConfig(entity)); |
| | | } |
| | | |
| | | /** |
| | | * 更新模板 |
| | | * @param entity |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "更新模板",response = ReplyTemplateEntity.class) |
| | | @PostMapping("/update") |
| | | @Authorization |
| | | public ResultData updateConfig(@RequestBody ReplyTemplateEntity entity) |
| | | { |
| | | if(entity==null) |
| | | { |
| | | return ResultData.error("参数不能为空"); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(entity.getName())) |
| | | { |
| | | return ResultData.error("模板名称不能为空"); |
| | | } |
| | | return toAjax(iReplyTemplateService.updateConfig(entity)); |
| | | } |
| | | |
| | | /** |
| | | * 删除模板 |
| | | * @param Id |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "删除模板",response = ReplyTemplateEntity.class) |
| | | @DeleteMapping("/delete") |
| | | @Authorization |
| | | public ResultData deleteConfigById(@RequestParam(value = "Id",required = false) String Id) |
| | | { |
| | | return toAjax(iReplyTemplateService.deleteConfigById(Id)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 复制模板 |
| | | * @param Id |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "复制模板",response = ReplyTemplateEntity.class) |
| | | @PostMapping("/copy") |
| | | @Authorization |
| | | public ResultData copy(@RequestParam(value = "Id",required = false) String Id) |
| | | { |
| | | if(StringUtils.isEmpty(Id)) |
| | | { |
| | | return ResultData.error("Id不能为空"); |
| | | } |
| | | |
| | | ReplyTemplateEntity entity=iReplyTemplateService.selectConfigData(Id); |
| | | |
| | | if(entity==null) |
| | | { |
| | | return ResultData.error("模板不存在!"); |
| | | } |
| | | entity.setId(null); |
| | | return toAjax(iReplyTemplateService.insertConfig(entity)); |
| | | } |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.dg.core.api; |
| | | |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.controller.BaseController; |
| | | import com.dg.core.db.gen.entity.Slideshow; |
| | | import com.dg.core.service.ISlideshowService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | @Api(tags = {"轮播图小程序接口"}) |
| | | @RestController |
| | | @RequestMapping("/applets/slideshow") |
| | | public class SlideshowAppletsController extends BaseController { |
| | | |
| | | @Autowired(required = true) |
| | | ISlideshowService iSlideshowService; |
| | | |
| | | /** |
| | | * 查询轮播图列表(不分页) |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "查询轮播图列表(不分页)",response = Slideshow.class) |
| | | @GetMapping("/selectList") |
| | | public ResultData selectList(){ |
| | | return ResultData.success(iSlideshowService.selectList()); |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 根据id 查询轮播图数据 |
| | | * |
| | | * @return 参数配置信息 |
| | | */ |
| | | @ApiOperation(value = "根据id 查询轮播图数据",response = Slideshow.class) |
| | | @GetMapping("/selectById") |
| | | public ResultData queryById(Integer id){ |
| | | return ResultData.success(iSlideshowService.queryById(id)); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.dg.core.api; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.annotation.Authorization; |
| | | import com.dg.core.annotation.CurrentUser; |
| | | import com.dg.core.controller.BaseController; |
| | | import com.dg.core.db.gen.entity.SysUser; |
| | | import com.dg.core.db.gen.entity.TransactionEvent; |
| | | import com.dg.core.db.manual.pojo.QueryResults; |
| | | import com.dg.core.db.manual.pojo.RecommendResult; |
| | | import com.dg.core.db.manual.pojo.Search; |
| | | import com.dg.core.service.ITransactionEventService; |
| | | import com.dg.core.util.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.Assert; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Api(tags = {"导办事项管理(及办事指南)小程序接口"}) |
| | | @RestController |
| | | @RequestMapping("/applets/transaction") |
| | | public class TransactionEventAppletsController extends BaseController |
| | | { |
| | | |
| | | @Autowired(required = true) |
| | | ITransactionEventService iTransactionEventService; |
| | | |
| | | /** |
| | | * 查询导办事务详情 |
| | | * @param Id |
| | | * @return |
| | | */ |
| | | @ApiOperation("查询导办事务详情") |
| | | @GetMapping("/getData") |
| | | public ResultData selectConfigData(@RequestParam("Id") String Id,@CurrentUser SysUser sysUser) |
| | | { |
| | | Assert.notNull(Id, "Id 不能为空"); |
| | | return ResultData.success(iTransactionEventService.selectConfigData(Id,sysUser)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导办事物列表(不分页) |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "导办事物列表(不分页)",response = TransactionEvent.class) |
| | | @GetMapping("/selectList") |
| | | public TableDataInfo selectList() |
| | | { |
| | | return getDataTable(iTransactionEventService.selectList()); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 导办事务搜索(无分页用于小程序) |
| | | * @param keyWord |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "导办事务搜索(无分页用于小程序)",response = QueryResults.class) |
| | | @GetMapping("/queryKeyWord") |
| | | public QueryResults queryKeyWord(@RequestParam(value = "keyWord",required = false) String keyWord) |
| | | { |
| | | QueryResults queryResults = iTransactionEventService.queryMatterNameList(keyWord); |
| | | return queryResults; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据分类查询导办事务 |
| | | * @param classifyId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "根据分类查询导办事务",response = TransactionEvent.class) |
| | | @GetMapping("/queryByClassifyIdList") |
| | | public TableDataInfo queryByClassifyIdList(@RequestParam("classifyId") String classifyId,@RequestParam(required = false,name="departmentId") Integer departmentId){ |
| | | return getDataTable(iTransactionEventService.queryByClassifyIdList(classifyId,departmentId),iTransactionEventService.countNumByClassifyIdList(classifyId,departmentId)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询导办事务求和 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "查询导办事务求和",response = TransactionEvent.class) |
| | | @GetMapping("/sumTransactionNum") |
| | | public ResultData sumTransactionNum(){ |
| | | return ResultData.success(iTransactionEventService.sumTransactionNum()); |
| | | } |
| | | |
| | | /** |
| | | * 智能咨询 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "智能咨询",response = RecommendResult.class) |
| | | @GetMapping("/smartConsulting") |
| | | public RecommendResult smartConsulting(@RequestParam("keyWord") String keyWord){ |
| | | return iTransactionEventService.smartConsulting(keyWord); |
| | | |
| | | } |
| | | |
| | | } |
| | |
| | | */ |
| | | @ApiOperation(value = "获取相关附件列表(不分页)",response = Agreement.class) |
| | | @GetMapping(value = "/getList") |
| | | @Authorization |
| | | public ResultData selectConfigList(){ |
| | | return ResultData.success(agreementService.selectConfigList()); |
| | | } |
| | |
| | | |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.db.gen.entity.AreaCode2022; |
| | | import com.dg.core.db.gen.entity.OrganizationChartEntity; |
| | | import com.dg.core.service.IAreaCodeService; |
| | | import com.dg.core.util.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | @Api(tags = {"所属地区接口"}) |
| | | @RestController |
| | |
| | | public TableDataInfo getAreaCodeByTransactionId(@RequestParam("transactionId") Integer transactionId){ |
| | | return getDataTable(iAreaCodeService.getAreaCodeByTransactionId(transactionId)); |
| | | } |
| | | |
| | | /** |
| | | * 获取攀枝花所有所属地区 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "获取攀枝花所有所属地区",response = AreaCode2022.class) |
| | | @GetMapping("/getListByPCode") |
| | | public TableDataInfo getListByPCode(){ |
| | | return getDataTable(iAreaCodeService.getListByPCode("510400000000")); |
| | | } |
| | | } |
New file |
| | |
| | | package com.dg.core.controller; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.annotation.Authorization; |
| | | import com.dg.core.annotation.CurrentUser; |
| | | import com.dg.core.db.gen.entity.AreaCode2022; |
| | | import com.dg.core.db.gen.entity.AutomessageCommonProblem; |
| | | import com.dg.core.db.gen.entity.ElseAccessoryEntity; |
| | | import com.dg.core.db.gen.entity.SysUser; |
| | | import com.dg.core.service.IAutomessageCommonProblemService; |
| | | import com.dg.core.util.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | @Api(tags = {"常见问题接口"}) |
| | | @RestController |
| | | @RequestMapping("/automessageCommonProblem") |
| | | public class AutomessageCommonProblemController extends BaseController{ |
| | | |
| | | @Resource |
| | | private IAutomessageCommonProblemService iAutomessageCommonProblemService; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 获取常见问题列表(分页) |
| | | * @param title |
| | | * @param content |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "获取常见问题列表(分页)",response = AutomessageCommonProblem.class) |
| | | @GetMapping("/selectConfigList") |
| | | @Authorization |
| | | public TableDataInfo selectConfigList(@RequestParam(value = "pageNum",required = false) Integer pageNum, |
| | | @RequestParam(value = "pageSize",required = false) Integer pageSize, |
| | | @RequestParam(value = "title",required = false) String title, |
| | | @RequestParam(value = "content",required = false) String content){ |
| | | Page<AutomessageCommonProblem> pageParam = new Page<>(pageNum,pageSize); |
| | | List<AutomessageCommonProblem> list = iAutomessageCommonProblemService.selectConfigList(pageParam,pageSize,title,content); |
| | | int num=iAutomessageCommonProblemService.countAutomessageCommonProblem(title,content); |
| | | return getDataTable(list,num); |
| | | } |
| | | |
| | | /** |
| | | * 添加常见问题数据 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "添加常见问题数据)",response = AutomessageCommonProblem.class) |
| | | @PostMapping("/add") |
| | | @Authorization |
| | | ResultData add(@RequestBody AutomessageCommonProblem automessageCommonProblem,@CurrentUser SysUser sysUser){ |
| | | automessageCommonProblem.setCreateUserId(sysUser.getUserId().toString()); |
| | | automessageCommonProblem.setUpdateUserId(sysUser.getUserId().toString()); |
| | | return iAutomessageCommonProblemService.add(automessageCommonProblem); |
| | | } |
| | | |
| | | /** |
| | | * 修改常见问题数据 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "修改常见问题数据)",response = AutomessageCommonProblem.class) |
| | | @PostMapping("/update") |
| | | @Authorization |
| | | ResultData update(@RequestBody AutomessageCommonProblem automessageCommonProblem,@CurrentUser SysUser sysUser){ |
| | | automessageCommonProblem.setUpdateUserId(sysUser.getUserId().toString()); |
| | | return iAutomessageCommonProblemService.update(automessageCommonProblem); |
| | | } |
| | | |
| | | /** |
| | | * 删除常见问题数据 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "删除常见问题数据)",response = AutomessageCommonProblem.class) |
| | | @GetMapping("/delete") |
| | | @Authorization |
| | | ResultData delete( @RequestParam(value = "id") Integer id){ |
| | | return iAutomessageCommonProblemService.delete(id); |
| | | } |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.annotation.Authorization; |
| | | import com.dg.core.db.gen.entity.ClassifyAdministration; |
| | | import com.dg.core.db.gen.entity.TransactionEvent; |
| | | import com.dg.core.service.IClassifyAdministrationService; |
| | | import com.dg.core.service.ITransactionEventService; |
| | | import com.dg.core.util.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | |
| | | @Autowired(required = true) |
| | | IClassifyAdministrationService iClassifyAdministrationService; |
| | | |
| | | @Autowired(required = true) |
| | | ITransactionEventService iTransactionEventService; |
| | | |
| | | /** |
| | | * 获取管理菜单列表 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "获取管理菜单列表(无分页)",response = ClassifyAdministration.class) |
| | | @GetMapping("/getList") |
| | | @Authorization |
| | | public TableDataInfo selectConfigList(@RequestParam(value = "classifyGrade",required = false) String classifyGrade) |
| | | { |
| | | int num=iClassifyAdministrationService.countNum("",classifyGrade); |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 获取管理菜单列表 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "获取管理菜单列表",response = ClassifyAdministration.class) |
| | | @GetMapping("/getListPage") |
| | | @Authorization |
| | | public TableDataInfo selectConfigList(@RequestParam(value = "pageNum",required = false) Integer pageNum, |
| | | @RequestParam(value = "pageSize",required = false) Integer pageSize, |
| | | @RequestParam(value = "name",required = false) String name) |
| | |
| | | */ |
| | | @ApiOperation(value = "新增分类",response = ClassifyAdministration.class) |
| | | @PostMapping("/add") |
| | | @Authorization |
| | | public ResultData insertConfig(@RequestBody ClassifyAdministration entity) { |
| | | Assert.notNull(entity, "参数不能为空"); |
| | | Assert.notNull(entity.getClassifyName(), "分类名称不能为空"); |
| | |
| | | */ |
| | | @ApiOperation("编辑分类") |
| | | @PostMapping("/update") |
| | | @Authorization |
| | | public ResultData updateConfig(@RequestBody ClassifyAdministration entity) |
| | | { |
| | | return toAjax(iClassifyAdministrationService.updateConfig(entity)); |
| | |
| | | */ |
| | | @ApiOperation("删除分类") |
| | | @DeleteMapping("/delete/{Id}") |
| | | @Authorization |
| | | public ResultData deleteConfigById(@PathVariable("Id") String Id) |
| | | { |
| | | if(StringUtils.isEmpty(Id)) |
| | | { |
| | | return ResultData.error("id 不能为空"); |
| | | } |
| | | |
| | | /** |
| | | * 根据上级id查询子分类 |
| | | * @param parentId |
| | | * @return |
| | | */ |
| | | List<String> list=iClassifyAdministrationService.selectParent(Id); |
| | | if(list!=null && list.size()>0) |
| | | { |
| | | return ResultData.error("请先删除其下的二级分类"); |
| | | } |
| | | |
| | | List<String> listIds=iTransactionEventService.selectclassifyId(Id); |
| | | if(listIds!=null && listIds.size()>0) |
| | | { |
| | | return ResultData.error("分类下有办事指南!不能删除"); |
| | | } |
| | | |
| | | return toAjax(iClassifyAdministrationService.deleteConfigById(Id)); |
| | | } |
| | | |
| | | /** |
| | | * 获取分类根据id 如果是二级id则获取的是办事指南 |
| | | * @return |
| | | */ |
| | | @ApiOperation("获取分类根据id 如果是二级id则获取的是办事指南,不传参默认是0") |
| | | @GetMapping("/queryListById") |
| | | ResultData queryListById(@RequestParam(value = "id",required = false) Integer id){ |
| | | if(id==null) |
| | | id=0; |
| | | return iClassifyAdministrationService.queryListById(id); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | import com.dg.core.CorsConfig; |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.db.gen.AjaxResult; |
| | | import com.dg.core.file.FileUploadUtils; |
| | | import com.dg.core.file.FileUtils; |
| | | import com.dg.core.file.FtpConstants; |
| | | import com.dg.core.file.MimeTypeUtils; |
| | | import com.dg.core.file.SFTPUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | |
| | | import org.apache.commons.io.FilenameUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.io.InputStream; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.UUID; |
| | | |
| | | import static com.dg.core.file.FileTypeUploadUtils.assertAllowed; |
| | | |
| | | |
| | | @Api(tags = {"通用接口"}) |
| | | @RestController |
| | | @RequestMapping("/common") |
| | | public class CommonController extends BaseController |
| | | { |
| | | public class CommonController extends BaseController { |
| | | |
| | | private static final String FILE_DELIMETER = ","; |
| | | |
| | | @Autowired |
| | | private CorsConfig corsConfig; |
| | | |
| | | |
| | | // FTP 登录用户名 |
| | | @Value("${ftp.username}") |
| | | private String userName; |
| | | // FTP 登录密码 |
| | | @Value("${ftp.password}") |
| | | private String password; |
| | | // FTP 服务器地址IP地址 |
| | | @Value("${ftp.host}") |
| | | private String host; |
| | | // FTP 端口 |
| | | @Value("${ftp.port}") |
| | | private int port; |
| | | @Value("${ftp.url}") |
| | | private String url; |
| | | |
| | | |
| | | @RequestMapping("/hello") |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 通用上传请求(多个) |
| | | */ |
| | | @ApiOperation("文件上传接口(通用)") |
| | | @PostMapping("/uploads") |
| | | public ResultData uploadFiles(List<MultipartFile> files) throws Exception { |
| | | try { |
| | | // 上传文件路径 |
| | | String filePath = FileUploadUtils.defaultBaseDir; |
| | | // String filePath = "D:/tupianshuju"; |
| | | public ResultData uploadFiles(List<MultipartFile> files) throws Exception |
| | | { |
| | | List<String> urls = new ArrayList<String>(); |
| | | List<String> fileNames = new ArrayList<String>(); |
| | | List<String> originalFilenames = new ArrayList<String>(); |
| | | for (MultipartFile file : files) { |
| | | String extension = FilenameUtils.getExtension(file.getOriginalFilename()); |
| | | String name = UUID.randomUUID().toString().replaceAll("-", "") + "." + extension; |
| | | try { |
| | | assertAllowed(file, MimeTypeUtils.DEFAULT_ALLOWED_EXTENSION); |
| | | SFTPUtil sftp = new SFTPUtil(userName, password, host, port); |
| | | sftp.login(); |
| | | InputStream is = file.getInputStream(); |
| | | sftp.uploadMore(FtpConstants.FTPFILEPATH_IDCARD, name, is); |
| | | sftp.logout(); |
| | | |
| | | System.out.println("上传文件路径"+filePath); |
| | | |
| | | List<String> urls = new ArrayList<String>(); |
| | | List<String> fileNames = new ArrayList<String>(); |
| | | List<String> newFileNames = new ArrayList<String>(); |
| | | List<String> originalFilenames = new ArrayList<String>(); |
| | | for (MultipartFile file : files) { |
| | | // 上传并返回新文件名称 |
| | | String fileName = FileUploadUtils.upload(filePath, file); |
| | | String url = corsConfig.getUrl() + fileName; |
| | | urls.add(url); |
| | | fileNames.add(fileName); |
| | | newFileNames.add(FileUtils.getName(fileName)); |
| | | urls.add(url + "/idcard/" + name); |
| | | fileNames.add(name); |
| | | originalFilenames.add(file.getOriginalFilename()); |
| | | |
| | | } catch (Exception e) { |
| | | return ResultData.error("上传文件失败 "+e.getMessage()); |
| | | } |
| | | AjaxResult ajax = new AjaxResult(); |
| | | ajax.put("urls", StringUtils.join(urls, FILE_DELIMETER)); |
| | | ajax.put("fileNames", StringUtils.join(fileNames, FILE_DELIMETER)); |
| | | ajax.put("newFileNames", StringUtils.join(newFileNames, FILE_DELIMETER)); |
| | | ajax.put("originalFilenames", StringUtils.join(originalFilenames, FILE_DELIMETER)); |
| | | return ResultData.success(ajax); |
| | | } catch (Exception e) { |
| | | return ResultData.error(e.getMessage()); |
| | | } |
| | | AjaxResult ajax = new AjaxResult(); |
| | | ajax.put("urls", StringUtils.join(urls, FILE_DELIMETER)); |
| | | ajax.put("fileNames", StringUtils.join(fileNames, FILE_DELIMETER)); |
| | | ajax.put("originalFilenames", StringUtils.join(originalFilenames, FILE_DELIMETER)); |
| | | return ResultData.success(ajax); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 通用上传请求(多个) |
| | | */ |
| | | @ApiOperation("文件上传接口(通用)") |
| | | @PostMapping("/upload") |
| | | public ResultData uploadFile(MultipartFile file) throws Exception |
| | | { |
| | | List<String> urls = new ArrayList<String>(); |
| | | List<String> fileNames = new ArrayList<String>(); |
| | | List<String> originalFilenames = new ArrayList<String>(); |
| | | |
| | | String extension = FilenameUtils.getExtension(file.getOriginalFilename()); |
| | | String name = UUID.randomUUID().toString().replaceAll("-", "") + "." + extension; |
| | | try { |
| | | assertAllowed(file, MimeTypeUtils.DEFAULT_ALLOWED_EXTENSION); |
| | | SFTPUtil sftp = new SFTPUtil(userName, password, host, port); |
| | | sftp.login(); |
| | | InputStream is = file.getInputStream(); |
| | | sftp.uploadMore(FtpConstants.FTPFILEPATH_IDCARD, name, is); |
| | | sftp.logout(); |
| | | |
| | | // urls.add(url + "/idcard/" + name); |
| | | // fileNames.add(name); |
| | | // originalFilenames.add(file.getOriginalFilename()); |
| | | return ResultData.success(url + "/idcard/" + name); |
| | | } catch (Exception e) { |
| | | return ResultData.error("上传文件失败 "+e.getMessage()); |
| | | } |
| | | |
| | | |
| | | // AjaxResult ajax = new AjaxResult(); |
| | | // ajax.put("urls", StringUtils.join(urls, FILE_DELIMETER)); |
| | | // ajax.put("fileNames", StringUtils.join(fileNames, FILE_DELIMETER)); |
| | | // ajax.put("originalFilenames", StringUtils.join(originalFilenames, FILE_DELIMETER)); |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.annotation.Authorization; |
| | | import com.dg.core.annotation.CurrentUser; |
| | | import com.dg.core.db.gen.entity.ElseAccessoryEntity; |
| | | import com.dg.core.db.gen.entity.SysUser; |
| | | import com.dg.core.service.IElseAccessoryService; |
| | | import com.dg.core.util.StringUtils; |
| | | import com.dg.core.service.IOrganizationChartService; |
| | | import com.dg.core.util.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | @Autowired |
| | | IElseAccessoryService iElseAccessoryService; |
| | | |
| | | @Autowired |
| | | IOrganizationChartService iOrganizationChartService; |
| | | |
| | | /** |
| | | * 获取附件列表 |
| | |
| | | */ |
| | | @ApiOperation("获取附件列表接口") |
| | | @GetMapping(path = "/getList") |
| | | @Authorization |
| | | public TableDataInfo selectConfigList(@RequestParam(value = "pageNum",required = false) Integer pageNum, |
| | | @RequestParam(value = "pageSize",required = false) Integer pageSize, |
| | | @RequestParam(value = "Name",required = false) String Name) |
| | | @RequestParam(value = "Name",required = false) String Name, |
| | | @CurrentUser SysUser sysUser) |
| | | { |
| | | Page<ElseAccessoryEntity> pageParam = new Page<>(pageNum,pageSize); |
| | | List<ElseAccessoryEntity> list = iElseAccessoryService.selectConfigList(pageParam,pageSize,Name); |
| | | int num=iElseAccessoryService.countNum(Name); |
| | | List<String> ids=iOrganizationChartService.getIds(sysUser.getDepartmentId()); |
| | | List<ElseAccessoryEntity> list = iElseAccessoryService.selectConfigList(pageParam,pageSize,Name,ids); |
| | | int num=iElseAccessoryService.countNum(Name,ids); |
| | | return getDataTable(list,num); |
| | | } |
| | | |
| | |
| | | */ |
| | | @ApiOperation("获取附件列表接口(全部)") |
| | | @GetMapping(path = "/getAllList") |
| | | public TableDataInfo selectConfigListAll(@RequestParam(value = "Name",required = false) String Name) |
| | | @Authorization |
| | | public TableDataInfo selectConfigListAll(@RequestParam(value = "Name",required = false) String Name, |
| | | @CurrentUser SysUser sysUser) |
| | | { |
| | | List<ElseAccessoryEntity> list = iElseAccessoryService.selectConfigList(Name); |
| | | int num=iElseAccessoryService.countNum(Name); |
| | | List<String> ids=iOrganizationChartService.getIds(sysUser.getDepartmentId()); |
| | | List<ElseAccessoryEntity> list = iElseAccessoryService.selectConfigList(Name,ids); |
| | | int num=iElseAccessoryService.countNum(Name,ids); |
| | | return getDataTable(list,num); |
| | | } |
| | | |
| | |
| | | */ |
| | | @ApiOperation("新增附件") |
| | | @PostMapping(path = "/add") |
| | | @Authorization |
| | | public ResultData insertConfig(@RequestBody ElseAccessoryEntity entity) |
| | | { |
| | | if(entity==null) |
| | |
| | | */ |
| | | @ApiOperation("更新附件") |
| | | @PostMapping(path = "/update") |
| | | @Authorization |
| | | public ResultData updateConfig(@RequestBody ElseAccessoryEntity entity) |
| | | { |
| | | return toAjax(iElseAccessoryService.updateConfig(entity)); |
| | |
| | | */ |
| | | @ApiOperation("删除附件") |
| | | @DeleteMapping(path = "/delete") |
| | | @Authorization |
| | | public ResultData deleteConfigById(@RequestParam(value = "Id",required = false) String Id) |
| | | { |
| | | return toAjax(iElseAccessoryService.deleteConfigById(Id)); |
| | |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.annotation.Authorization; |
| | | import com.dg.core.db.gen.entity.SysUser; |
| | | import com.dg.core.service.IGuideRepairOrderService; |
| | | import com.dg.core.service.ISysUserService; |
| | | import com.dg.core.util.Snowflake; |
| | | import com.dg.core.util.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.data.repository.query.Param; |
| | | import org.springframework.util.Assert; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | ISysUserService IUserService; |
| | | |
| | | |
| | | @Autowired |
| | | IGuideRepairOrderService iGuideRepairOrderService; |
| | | |
| | | /** |
| | | * 查询列表 |
| | | * |
| | |
| | | */ |
| | | @ApiOperation("用户列表接口") |
| | | @GetMapping("/getlist") |
| | | @Authorization |
| | | public TableDataInfo selectConfigList(@RequestParam(value = "pageNum",required = false) Integer pageNum, |
| | | @RequestParam(value = "pageSize",required = false) Integer pageSize) |
| | | { |
| | |
| | | return error("密码不能为空"); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(config.getPhonenumber())) |
| | | { |
| | | return error("手机号不能为空"); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(config.getUserName())) |
| | | { |
| | | return error("昵称不能为空"); |
| | | } |
| | | |
| | | SysUser user = IUserService.getUserByAccount(config.getLoginName()); |
| | | if (user != null) { |
| | | //提示用户名或密码错误 |
| | | return error("该账户已存在!"); |
| | | if(StringUtils.isEmpty(config.getDepartmentId())) |
| | | { |
| | | return error("部门不能为空"); |
| | | } |
| | | |
| | | ResultData data = IUserService.loginByPhonenumber(config.getPhonenumber()); |
| | | if (data != null) |
| | | { |
| | | SysUser user= (SysUser) data.getData(); |
| | | user.setUserType("2"); |
| | | //提示用户名或密码错误 |
| | | return toAjax(IUserService.updateConfig(user)); |
| | | } |
| | | config.setUserType("2"); |
| | | |
| | | config.setCreateTime(LocalDateTime.now()); |
| | | config.setUpdateTime(LocalDateTime.now()); |
| | | |
| | | config.setUserId(Snowflake.getId()); |
| | | return toAjax(IUserService.insertConfig(config)); |
| | | } |
| | | |
| | |
| | | return error("userId不能为空"); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(config.getPhonenumber())) |
| | | { |
| | | return error("手机号不能为空"); |
| | | } |
| | | |
| | | |
| | | if(StringUtils.isEmpty(config.getLoginName())) |
| | | { |
| | | return error("账户不能为空"); |
| | |
| | | } |
| | | |
| | | /** |
| | | * 删除聊天记录 |
| | | * 删除导办用户接口 |
| | | * |
| | | * @return 结果 |
| | | */ |
| | |
| | | { |
| | | return error("userId不能为空"); |
| | | } |
| | | |
| | | int a=iGuideRepairOrderService.countUser(userId,"2"); |
| | | if(a>0) |
| | | { |
| | | return error("该人员有工单未处理完不能删除"); |
| | | } |
| | | |
| | | return toAjax(IUserService.deleteConfigById(userId)); |
| | | } |
| | | |
| | | /** |
| | | * 修改空闲状态 |
| | | * 修改导办用户空闲状态接口 |
| | | * |
| | | * @param config 参数配置信息 |
| | | * @return 结果 |
| | |
| | | return toAjax(IUserService.updateConfig(config)); |
| | | } |
| | | |
| | | /** |
| | | * 根据部门id及分类id获取导办用户 |
| | | * |
| | | * @return 结果 |
| | | */ |
| | | @ApiOperation("根据部门id及分类id获取导办用户") |
| | | @GetMapping("/selectListByDepartmentId") |
| | | @Authorization |
| | | public ResultData selectListByDepartmentId(@RequestParam("departmentId") String departmentId, |
| | | @RequestParam(value = "classifyId",required = false) String classifyId){ |
| | | return ResultData.success(IUserService.selectListByDepartmentId(departmentId,classifyId)); |
| | | } |
| | | |
| | | /** |
| | | * 查询导办用户列表(不分页) |
| | | * @return 结果 |
| | | */ |
| | | @ApiOperation(" 查询导办用户列表(不分页)") |
| | | @GetMapping("/queryList") |
| | | @Authorization |
| | | public ResultData queryList(){ |
| | | return ResultData.success(IUserService.queryList(2)); |
| | | } |
| | | |
| | | } |
| | |
| | | package com.dg.core.controller; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.annotation.Authorization; |
| | | import com.dg.core.annotation.CurrentUser; |
| | | import com.dg.core.db.gen.entity.GuideEvolveEntity; |
| | | import com.dg.core.db.gen.entity.GuideRepairOrder; |
| | | import com.dg.core.db.gen.entity.SysUser; |
| | | import com.dg.core.db.gen.entity.*; |
| | | import com.dg.core.service.IGuideEvolveService; |
| | | import com.dg.core.service.IGuideRepairOrderService; |
| | | import com.dg.core.util.StringUtils; |
| | | import com.dg.core.service.IOrganizationChartService; |
| | | import com.dg.core.util.SmsUtil; |
| | | import com.dg.core.util.TableDataInfo; |
| | | import com.dg.core.util.WxUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.Assert; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 工单管理 |
| | |
| | | @Autowired |
| | | private IGuideEvolveService iGuideEvolveService; |
| | | |
| | | @Autowired |
| | | IOrganizationChartService iOrganizationChartService; |
| | | |
| | | private static String guideRepairOrderCompleteTemplateId = "7ZCHHii87rWPwVkdhZnvNiYbYi_Buq0NXO10cmUhAFk"; |
| | | |
| | | |
| | | @Resource |
| | | SmsUtil smsUtil; |
| | | |
| | | |
| | | /** |
| | | * 提交导办订单 |
| | | * @return |
| | |
| | | public ResultData addOrder(@RequestBody GuideRepairOrder guideRepairOrder,@CurrentUser SysUser sysUser) { |
| | | guideRepairOrder.setSubmitUserId(sysUser.getUserId().toString()); |
| | | guideRepairOrder.setSubmitUserPhone(sysUser.getPhonenumber()); |
| | | return toAjax(iGuideRepairOrderService.addOrder(guideRepairOrder)); |
| | | guideRepairOrder.setSubmitUserPhone(sysUser.getPhonenumber()); |
| | | guideRepairOrder.setSubmitType(2); |
| | | int i = iGuideRepairOrderService.addOrder(guideRepairOrder); |
| | | if (i>0){ |
| | | iGuideEvolveService.updateGuid(); |
| | | return ResultData.success(); |
| | | } |
| | | else |
| | | return ResultData.error("提交失败,请检查你是否有相同的咨询内容在处理中"); |
| | | } |
| | | |
| | | |
| | |
| | | return ResultData.error("导办人员id不能为空"); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(order.getGuideUserPhone())) |
| | | { |
| | | return ResultData.error("导办人员电话不能为空"); |
| | | } |
| | | |
| | | |
| | | //已分配 |
| | | order.setState("2"); |
| | |
| | | entity.setToUserId(sysUser.getUserId()+""); |
| | | entity.setFromUserId(order.getGuideUserId()); |
| | | entity.setFromDepartmentalId(order.getGuideDepartmentId()); |
| | | entity.setGuideId(order.getId().toString()); |
| | | |
| | | iGuideEvolveService.insertConfig(entity); |
| | | |
| | |
| | | return ResultData.error("导办人员id不能为空"); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(order.getGuideUserPhone())) |
| | | { |
| | | return ResultData.error("导办人员电话不能为空"); |
| | | } |
| | | |
| | | //已分配 |
| | | order.setState("2"); |
| | | |
| | |
| | | entity.setCreateTime(LocalDateTime.now()); |
| | | entity.setUpdateTime(LocalDateTime.now()); |
| | | entity.setState("12"); |
| | | entity.setDepartmentalId(sysUser.getDepartmentId()); |
| | | entity.setToUserId(sysUser.getUserId()+""); |
| | | entity.setFromUserId(order.getGuideUserId()); |
| | | entity.setFromDepartmentalId(order.getGuideDepartmentId()); |
| | | entity.setDepartmentalId(order.getGuideDepartmentId()); |
| | | entity.setToUserId(order.getGuideUserId()); |
| | | entity.setFromUserId(sysUser.getUserId()+""); |
| | | entity.setFromDepartmentalId(sysUser.getDepartmentId()); |
| | | entity.setGuideId(order.getId().toString()); |
| | | |
| | | iGuideEvolveService.insertConfig(entity); |
| | | |
| | |
| | | { |
| | | return ResultData.error("该工单已办结!"); |
| | | } |
| | | |
| | | if(!StringUtils.equals(order.getState(),"2")) |
| | | { |
| | | return ResultData.error("该工单非是待办状态!"); |
| | | if(StringUtils.equals(entity.getState(),"2")){//如果用户选择未解决则状态改为待办 |
| | | order.setState("2"); |
| | | entity.setState("8"); |
| | | } |
| | | //待评价 |
| | | order.setState("4"); |
| | | else if(StringUtils.equals(entity.getState(),"4")){ |
| | | //待评价 |
| | | if (order.getSubmitType().equals(1))//小程序提交 |
| | | { |
| | | WxUtil wxUtil=new WxUtil(); |
| | | String accessToken="0"; |
| | | try { |
| | | accessToken= wxUtil.getBatteryCarAccessToken(); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | SysUser submitUser = iGuideRepairOrderService.getSubmitUser(order); |
| | | wxUtil.sendGuideRepairOrderComplete(submitUser.getOpenid(),accessToken,guideRepairOrderCompleteTemplateId,order); |
| | | } |
| | | else if (order.getSubmitType().equals(2)){ |
| | | smsUtil.sendSmsComplete(order.getSubmitUserPhone(),order.getMatterName()); |
| | | } |
| | | order.setState("4"); |
| | | entity.setState("9"); |
| | | } |
| | | //新增已办结记录 |
| | | entity.setCreateTime(LocalDateTime.now()); |
| | | entity.setUpdateTime(LocalDateTime.now()); |
| | | entity.setState("4"); |
| | | entity.setFromDepartmentalId(sysUser.getDepartmentId()); |
| | | entity.setFromUserId(sysUser.getUserId()+""); |
| | | entity.setGuideId(order.getId().toString()); |
| | | iGuideEvolveService.insertConfig(entity); |
| | | return toAjax(iGuideRepairOrderService.updateConfig(order)); |
| | | } |
| | |
| | | entity.setState("5"); |
| | | entity.setFromDepartmentalId(sysUser.getDepartmentId()); |
| | | entity.setFromUserId(sysUser.getUserId()+""); |
| | | entity.setGuideId(order.getId().toString()); |
| | | iGuideEvolveService.insertConfig(entity); |
| | | return toAjax(iGuideRepairOrderService.updateConfig(order)); |
| | | } |
| | |
| | | guideEvolveEntity.setState("3"); |
| | | guideEvolveEntity.setFromDepartmentalId(sysUser.getDepartmentId()); |
| | | guideEvolveEntity.setFromUserId(sysUser.getUserId()+""); |
| | | iGuideEvolveService.insertConfig(guideEvolveEntity); |
| | | |
| | | return toAjax(iGuideRepairOrderService.updateConfig(entity)); |
| | | guideEvolveEntity.setGuideId(entity.getId().toString()); |
| | | int i = iGuideRepairOrderService.updateConfig(entity); |
| | | if (i>0) |
| | | return toAjax( iGuideEvolveService.insertConfig(guideEvolveEntity)); |
| | | else |
| | | return ResultData.error(); |
| | | } |
| | | |
| | | /** |
| | | * 获取个人中心工单数据 |
| | | * @param sysUser 当前登录人员信息 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "获取个人中心工单数据",response = GuideRepairOrder.class) |
| | | @GetMapping("/personalCenter") |
| | | @Authorization |
| | | public ResultData selectBySubmitId(@CurrentUser SysUser sysUser){ |
| | | return ResultData.success(iGuideRepairOrderService.selectBySubmitId(sysUser.getUserId().toString())); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取工单列表(分页) |
| | | * @param matterName |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "获取工单列表(分页)",response = GuideRepairOrder.class) |
| | | @GetMapping("/getList") |
| | | @Authorization |
| | | public TableDataInfo selectConfigList(@RequestParam(value = "pageNum",required = false) Integer pageNum, |
| | | @RequestParam(value = "pageSize",required = false) Integer pageSize, |
| | | @RequestParam(value = "matterName",required = false) String matterName, |
| | | @CurrentUser SysUser sysUser) |
| | | { |
| | | Assert.notNull(pageNum, "pageNum 不能为空"); |
| | | Assert.notNull(pageSize, "pageSize 不能为空"); |
| | | Page<GuideRepairOrder> pageParam = new Page<>(pageNum,pageSize); |
| | | |
| | | List<String> ids=iOrganizationChartService.getIds(sysUser.getDepartmentId()); |
| | | List<GuideRepairOrder> list = iGuideRepairOrderService.selectConfigList(pageParam,pageSize,matterName,ids); |
| | | int num=iGuideRepairOrderService.countConfigList(matterName,ids); |
| | | return getDataTable(list,num); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("导办工单统计不同状态工单数") |
| | | @GetMapping("/getWorkOrder") |
| | | @Authorization |
| | | public ResultData getWorkOrder(@CurrentUser SysUser sysUser) |
| | | { |
| | | WorkOrder workOrder=new WorkOrder(); |
| | | List<String> ids=iOrganizationChartService.getIds(sysUser.getDepartmentId()); |
| | | //状态(1待分配 2 待办结 3 已办结 4 待评价 5 已取消 8未解决 9已解决) |
| | | workOrder.setAllNum(iGuideRepairOrderService.countStatisticsNum("",ids,null,null,null,null)); |
| | | workOrder.setWaitDistribution(iGuideRepairOrderService.countStatisticsNum("1",ids,null,null,null,null)); |
| | | workOrder.setWaitDealWith(iGuideRepairOrderService.countStatisticsNum("2",ids,null,null,null,null)); |
| | | workOrder.setHaveDealWith(iGuideRepairOrderService.countStatisticsNum("3",ids,null,null,null,null)); |
| | | workOrder.setRemainEvaluated(iGuideRepairOrderService.countStatisticsNum("4",ids,null,null,null,null)); |
| | | workOrder.setCanceled(iGuideRepairOrderService.countStatisticsNum("5",ids,null,null,null,null)); |
| | | workOrder.setUnsolved(iGuideRepairOrderService.countStatisticsNum("6",ids,null,null,null,null)); |
| | | workOrder.setResolved(iGuideRepairOrderService.countStatisticsNum("7",ids,null,null,null,null)); |
| | | |
| | | |
| | | //是否超时 (1 未超时 2已超时) 超时未办结 |
| | | workOrder.setOvertime(iGuideRepairOrderService.countStatisticsNum(null,ids,null,"2",null,null)); |
| | | workOrder.setOvertimeWaitDealWith(iGuideRepairOrderService.countStatisticsNum("2",ids,null,"2",null,null)); |
| | | return ResultData.success(workOrder); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.dg.core.controller; |
| | | |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.db.gen.entity.*; |
| | | import com.dg.core.service.*; |
| | | import com.dg.core.util.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.*; |
| | | |
| | | @Api(tags = {"首页统计接口"}) |
| | | @RestController |
| | | @RequestMapping("/Home") |
| | | public class HomeStatisticsController extends BaseController |
| | | { |
| | | //导办工单接口 |
| | | @Autowired |
| | | IGuideRepairOrderService iGuideRepairOrderService; |
| | | |
| | | //导办进展 |
| | | @Autowired |
| | | IGuideEvolveService iGuideEvolveService; |
| | | |
| | | |
| | | @Autowired |
| | | HomeStatisticsService homeStatisticsService; |
| | | |
| | | |
| | | @Autowired |
| | | com.dg.core.service.ISysUserService IUserService; |
| | | |
| | | |
| | | @Autowired |
| | | IOrganizationChartService iOrganizationChartService; |
| | | |
| | | |
| | | @ApiOperation("首页统计不同状态工单数") |
| | | @GetMapping("/getWorkOrder") |
| | | public ResultData getWorkOrder() |
| | | { |
| | | WorkOrder workOrder=new WorkOrder(); |
| | | //状态(1待分配 2 待办结 3 已办结 4 待评价 5 已取消 6未解决 7已解决) |
| | | workOrder.setAllNum(iGuideRepairOrderService.countStatisticsNum("",null,null,null,null,null)); |
| | | workOrder.setWaitDistribution(iGuideRepairOrderService.countStatisticsNum("1",null,null,null,null,null)); |
| | | workOrder.setWaitDealWith(iGuideRepairOrderService.countStatisticsNum("2",null,null,null,null,null)); |
| | | workOrder.setHaveDealWith(iGuideRepairOrderService.countStatisticsNum("3",null,null,null,null,null)); |
| | | workOrder.setRemainEvaluated(iGuideRepairOrderService.countStatisticsNum("4",null,null,null,null,null)); |
| | | workOrder.setCanceled(iGuideRepairOrderService.countStatisticsNum("5",null,null,null,null,null)); |
| | | workOrder.setUnsolved(iGuideRepairOrderService.countStatisticsNum("6",null,null,null,null,null)); |
| | | workOrder.setResolved(iGuideRepairOrderService.countStatisticsNum("7",null,null,null,null,null)); |
| | | |
| | | //是否超时 (1 未超时 2已超时) 超时未办结 |
| | | workOrder.setOvertime(iGuideRepairOrderService.countStatisticsNum(null,null,null,"2",null,null)); |
| | | // 超时未办结 |
| | | workOrder.setOvertimeWaitDealWith(iGuideRepairOrderService.countStatisticsNum("2",null,null,"2",null,null)); |
| | | return ResultData.success(workOrder); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("首页统计不同时间段的工单数量") |
| | | @GetMapping("/getTimeWorkOrder") |
| | | public ResultData getTimeWorkOrder() |
| | | { |
| | | //1 今天 2昨天 3本月 4本年度 |
| | | //累计全部 本年 本月 今日 昨日 |
| | | TimeWorkOrder timeWorkOrder=new TimeWorkOrder(); |
| | | timeWorkOrder.setAllNum(iGuideRepairOrderService.countStatisticsNum(null,null,null,null,null,null)); |
| | | timeWorkOrder.setYearNum(iGuideRepairOrderService.countStatisticsNum(null,null,"4",null,null,null)); |
| | | timeWorkOrder.setMonthNum(iGuideRepairOrderService.countStatisticsNum(null,null,"3",null,null,null)); |
| | | timeWorkOrder.setTodayNum(iGuideRepairOrderService.countStatisticsNum(null,null,"1",null,null,null)); |
| | | timeWorkOrder.setYesterdayNum(iGuideRepairOrderService.countStatisticsNum(null,null,"2",null,null,null)); |
| | | return ResultData.success(timeWorkOrder); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("根据选择的时间段 筛选导办工单数 timeType:1 本年度 15 近15天的 30 近30天的") |
| | | @GetMapping("/getSelectionTimeOrder") |
| | | public ResultData getSelectionTimeOrder(@RequestParam("timeType") Integer timeType) |
| | | { |
| | | if(timeType<1) |
| | | { |
| | | return ResultData.error("请输入时间"); |
| | | } |
| | | |
| | | if(timeType==1) |
| | | { |
| | | Calendar calendar=Calendar.getInstance(); |
| | | timeType=calendar.get(Calendar.DAY_OF_YEAR); |
| | | } |
| | | // System.out.println(timeType); |
| | | //1 本年度 15 近15天的 30 近30天的 |
| | | List<CountListNum> listOne=iGuideRepairOrderService.countListNum("2",null,timeType); |
| | | List<CountListNum> listTwo=iGuideRepairOrderService.countListNum("3",null,timeType); |
| | | CountList countList=new CountList(); |
| | | countList.setWaitDealWithList(listOne); |
| | | countList.setHaveDealWith(listTwo); |
| | | return ResultData.success(countList); |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation("获取效率比值") |
| | | @GetMapping("/getEfficiency") |
| | | public ResultData getEfficiency() |
| | | { |
| | | EfficiencyEntity entity=new EfficiencyEntity(); |
| | | //总工单数 |
| | | int allNum=iGuideRepairOrderService.countStatisticsNum("",null,null,null,null,null); |
| | | |
| | | java.text.DecimalFormat weekDf=new java.text.DecimalFormat("##.##%");//传入格式模板 |
| | | |
| | | int bj=iGuideRepairOrderService.countStatisticsNum("3",null,null,null,null,null); |
| | | if(bj!=0) |
| | | { |
| | | // 好评率=评价为满意的导办工单数量/已办结状态工单数量 |
| | | String goodReputationEfficiency=weekDf.format((float)(iGuideRepairOrderService.countStatisticsNum(null,null,null,null,"1",null) |
| | | /bj)); |
| | | entity.setGoodReputationEfficiency(goodReputationEfficiency); |
| | | |
| | | // 解决率=已解决状态的导办工单数量/已办结状态工单数量 |
| | | String resolveEfficiency=weekDf.format((float)(iGuideRepairOrderService.countStatisticsNum("7",null,null,null,null,null) |
| | | /bj)); |
| | | entity.setResolveEfficiency(resolveEfficiency); |
| | | |
| | | if(allNum!=0) |
| | | { |
| | | // 办结率=待评价+已办结状态的导办工单数量/总工单数量 |
| | | String workEfficiency=weekDf.format((float)((iGuideRepairOrderService.countStatisticsNum("4",null,null,null,null,null) |
| | | +bj)/allNum)); |
| | | entity.setWorkEfficiency(workEfficiency); |
| | | } |
| | | } |
| | | |
| | | int cs=iGuideRepairOrderService.countStatisticsNum(null,null,null,"2",null,null); |
| | | if(cs!=0) |
| | | { |
| | | // 超时办结率=超时状态下的待评价+已办结状态的导办工单数量/超时状态的导办工单数量 |
| | | String timeoutEfficiency=weekDf.format((float)((iGuideRepairOrderService.countStatisticsNum("4",null,null,"2",null,null) |
| | | +iGuideRepairOrderService.countStatisticsNum("3",null,null,null,null,null)) |
| | | /cs)); |
| | | entity.setTimeoutEfficiency(timeoutEfficiency); |
| | | |
| | | } |
| | | |
| | | if(allNum!=0) |
| | | { |
| | | // 回复率=最新进展里0条回复的导办工单数量/总工单数量 |
| | | //状态(1待分配 2 待办结 3 已办结 4 待评价 5 已取消 6未解决 7已解决 8 系统自动分配 9 回复 10转派 11手动分配) |
| | | String reversionRate=weekDf.format((float)(iGuideEvolveService.countStatisticsNum("9",null)/allNum)); |
| | | entity.setReversionRate(reversionRate); |
| | | } |
| | | |
| | | return ResultData.success(entity); |
| | | } |
| | | |
| | | @ApiOperation("工单 办事指南饼状图数据") |
| | | @GetMapping("/getPieChart") |
| | | public ResultData getPieChart() |
| | | { |
| | | PieChartAll pieChartAll=new PieChartAll(); |
| | | pieChartAll.setWorkOrderNum(iGuideRepairOrderService.countStatisticsNum("",null,null,null,null,null)+""); |
| | | pieChartAll.setFingerpostNum(homeStatisticsService.countStatisticsNum(null)+""); |
| | | List<PieChart> workOrderList=new ArrayList<>(); |
| | | List<PieChart> fingerpostList=new ArrayList<>(); |
| | | List<ClassifyAdministration> oneIds=homeStatisticsService.getClassify(null,"1"); |
| | | for (ClassifyAdministration oneClassify:oneIds) |
| | | { |
| | | PieChart workOrder=new PieChart(); |
| | | PieChart fingerpost=new PieChart(); |
| | | workOrder.setName(oneClassify.getClassifyName()); |
| | | fingerpost.setName(oneClassify.getClassifyName()); |
| | | List<ClassifyAdministration> twoIds = homeStatisticsService.getClassify(oneClassify.getId()+"",null); |
| | | |
| | | List clasIds=new ArrayList(); |
| | | |
| | | clasIds.add(oneClassify.getId()); |
| | | for (ClassifyAdministration classify:twoIds) |
| | | { |
| | | clasIds.add(classify.getId()); |
| | | } |
| | | int workOrderNum=0; |
| | | int fingerpostNum=0; |
| | | if(clasIds.size()>0) |
| | | { |
| | | workOrderNum=iGuideRepairOrderService.countStatisticsNum(null,null,null,null,null,clasIds); |
| | | fingerpostNum=homeStatisticsService.countStatisticsNum(clasIds); |
| | | } |
| | | workOrder.setNum(workOrderNum+""); |
| | | fingerpost.setNum(fingerpostNum+""); |
| | | workOrderList.add(workOrder); |
| | | fingerpostList.add(fingerpost); |
| | | } |
| | | |
| | | pieChartAll.setWorkOrderList(workOrderList); |
| | | pieChartAll.setFingerpostList(fingerpostList); |
| | | |
| | | return ResultData.success(pieChartAll); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | @ApiOperation("组织排行榜 type 1 安评价 2 按办结量") |
| | | @GetMapping("/getOrganization") |
| | | public TableDataInfo getOrganization(@RequestParam("type") String type) |
| | | { |
| | | List<OrganizationEntity> guidePlates=homeStatisticsService.getDepartment(); |
| | | |
| | | if(StringUtils.equals("1",type)) |
| | | { |
| | | for (OrganizationEntity bean:guidePlates) |
| | | { |
| | | bean.setNum(0+""); |
| | | List<String> ids=iOrganizationChartService.getIds(bean.getId()+""); |
| | | |
| | | //总评分 |
| | | String scoreNum=homeStatisticsService.organizationScore(ids)+""; |
| | | int score=0; |
| | | if(!StringUtils.isEmpty(scoreNum) && !StringUtils.equals("null",scoreNum)) |
| | | { |
| | | score=Integer.valueOf(scoreNum); |
| | | } |
| | | |
| | | //总数量 |
| | | int allNum=homeStatisticsService.organizationNum(ids); |
| | | |
| | | if(allNum>0 && score>0) |
| | | { |
| | | java.text.DecimalFormat weekDf=new java.text.DecimalFormat("##.##");//传入格式模板 |
| | | String workEfficiency=weekDf.format((float)(score/allNum)); |
| | | bean.setNum(workEfficiency); |
| | | } |
| | | } |
| | | } |
| | | else |
| | | { |
| | | for (OrganizationEntity bean:guidePlates) |
| | | { |
| | | bean.setNum(0+""); |
| | | List<String> ids=iOrganizationChartService.getIds(bean.getId()+""); |
| | | //总数量 |
| | | int allNum=homeStatisticsService.organizationNum(ids); |
| | | if(allNum>0) |
| | | { |
| | | bean.setNum(allNum+""); |
| | | } |
| | | } |
| | | } |
| | | |
| | | OrganizationEntity entity=null; |
| | | for(int i = 0 ;i< guidePlates.size() -1; i++) { |
| | | for (int j = 0; j < guidePlates.size() - 1 - i; j++) { |
| | | |
| | | if(Float.valueOf(guidePlates.get(j).getNum())>Float.valueOf(guidePlates.get(j+1).getNum())) |
| | | { |
| | | entity=guidePlates.get(j); |
| | | guidePlates.set(j,guidePlates.get(j+1)); |
| | | guidePlates.set(j+1,entity); |
| | | } |
| | | } |
| | | } |
| | | |
| | | Collections.reverse(guidePlates); |
| | | |
| | | return getDataTable(guidePlates,guidePlates.size()); |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation("导办人员排行榜 type 1 安评价 2 按办结量 3 按超时") |
| | | @GetMapping("/getGuidePlate") |
| | | public TableDataInfo getGuidePlate(@RequestParam("type") String type) |
| | | { |
| | | int allNum=homeStatisticsService.staffNum(); |
| | | |
| | | if(StringUtils.equals("1",type)) |
| | | { |
| | | //安评价 |
| | | return getDataTable(homeStatisticsService.score(),allNum); |
| | | } |
| | | else if(StringUtils.equals("2",type)) |
| | | { |
| | | //2 按办结量 |
| | | return getDataTable(homeStatisticsService.guidePlatePeople(),allNum); |
| | | } |
| | | else |
| | | { |
| | | //3 按超时 |
| | | return getDataTable(homeStatisticsService.timeout(),allNum); |
| | | } |
| | | } |
| | | |
| | | |
| | | @ApiOperation("办事指南排行榜 type 1 按浏览量 2 按办结量") |
| | | @GetMapping("/getGuidance") |
| | | public TableDataInfo getGuidance(@RequestParam("type") String type) |
| | | { |
| | | int allNum=homeStatisticsService.countWork(); |
| | | if(StringUtils.equals("1",type)) |
| | | { |
| | | return getDataTable(homeStatisticsService.guidanceBrowse(),allNum); |
| | | } |
| | | else |
| | | { |
| | | return getDataTable(homeStatisticsService.guidanceTransaction(),allNum); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.annotation.Authorization; |
| | | import com.dg.core.db.gen.entity.KeywordEntity; |
| | | import com.dg.core.service.IKeywordService; |
| | | import com.dg.core.util.TableDataInfo; |
| | |
| | | */ |
| | | @ApiOperation("关键词列表接口") |
| | | @GetMapping("/getlist") |
| | | @Authorization |
| | | public TableDataInfo selectConfigList(@RequestParam(value = "pageNum",required = false) Integer pageNum, |
| | | @RequestParam(value = "pageSize",required = false) Integer pageSize) |
| | | { |
| | |
| | | */ |
| | | @ApiOperation("关键词详情接口") |
| | | @GetMapping("/getData") |
| | | @Authorization |
| | | public ResultData selectConfigData(@RequestParam(value = "id",required = false) String id, |
| | | @RequestParam(value = "name",required = false) String name) |
| | | { |
| | |
| | | */ |
| | | @ApiOperation("关键词添加接口") |
| | | @PostMapping("/add") |
| | | @Authorization |
| | | public ResultData insertConfig(@RequestBody KeywordEntity entity) |
| | | { |
| | | KeywordEntity enti=iKeywordService.selectConfigData("",entity.getName()); |
| | |
| | | */ |
| | | @ApiOperation("关键词编辑接口") |
| | | @PostMapping("/update") |
| | | @Authorization |
| | | public ResultData updateConfig(@RequestBody KeywordEntity entity) |
| | | { |
| | | return toAjax(iKeywordService.updateConfig(entity)); |
| | |
| | | */ |
| | | @ApiOperation("关键词删除接口") |
| | | @DeleteMapping("/delete") |
| | | @Authorization |
| | | public ResultData deleteConfigById(String Id) |
| | | { |
| | | return toAjax(iKeywordService.deleteConfigById(Id)); |
| | |
| | | package com.dg.core.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.db.gen.entity.ClassifyAdministration; |
| | | import com.dg.core.annotation.Authorization; |
| | | import com.dg.core.annotation.CurrentUser; |
| | | import com.dg.core.db.gen.entity.OrganizationChartEntity; |
| | | import com.dg.core.db.gen.entity.SysUser; |
| | | import com.dg.core.service.IOrganizationChartService; |
| | | import com.dg.core.util.StringUtils; |
| | | import com.dg.core.util.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.Assert; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | |
| | |
| | | /** |
| | | * 查询机构列表 |
| | | */ |
| | | @ApiOperation("查询机构列表") |
| | | @ApiOperation(value = "查询机构列表",response = OrganizationChartEntity.class) |
| | | @GetMapping("/getList") |
| | | public TableDataInfo selectConfigList() |
| | | { |
| | |
| | | /** |
| | | * 新增机构 |
| | | */ |
| | | @ApiOperation("新增机构") |
| | | @ApiOperation(value = "新增机构",response = OrganizationChartEntity.class) |
| | | @PostMapping("/add") |
| | | @Authorization |
| | | public ResultData insertConfig(@RequestBody OrganizationChartEntity entity) |
| | | { |
| | | Assert.notNull(entity.getGrade(), "等级 grade 不能为空"); |
| | |
| | | /** |
| | | * 更新机构 |
| | | */ |
| | | @ApiOperation("更新机构") |
| | | @ApiOperation(value = "更新机构",response = OrganizationChartEntity.class) |
| | | @PostMapping("/update") |
| | | public ResultData updateConfig(@RequestBody OrganizationChartEntity entity) |
| | | @Authorization |
| | | public ResultData updateConfig(@RequestBody OrganizationChartEntity entity,@CurrentUser SysUser sysUser) |
| | | { |
| | | entity.setUpdateTime(LocalDateTime.now()); |
| | | entity.setUpdateUserId(Integer.parseInt(String.valueOf(sysUser.getUserId()))); |
| | | return toAjax(iOrganizationChartService.updateConfig(entity)); |
| | | } |
| | | |
| | |
| | | */ |
| | | @ApiOperation("删除机构") |
| | | @DeleteMapping("/delete") |
| | | @Authorization |
| | | public ResultData deleteConfigById(@RequestParam(value = "Id",required = false) String Id) |
| | | { |
| | | Assert.notNull(Id, "Id 不能为空"); |
| | | List<OrganizationChartEntity> list=iOrganizationChartService.selectParentList(Id,""); |
| | | |
| | | if(list!=null && list.size()>0) |
| | | { |
| | | return ResultData.error("该机构下存在其他部门!请先删除子部门"); |
| | | } |
| | | return toAjax(iOrganizationChartService.deleteConfigById(Id)); |
| | | } |
| | | |
| | |
| | | return ResultData.success(iOrganizationChartService.selectConfigById(id)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询机构列表(分页) |
| | | */ |
| | | @ApiOperation(value = "查询机构列表(分页)(部门应用)",response = OrganizationChartEntity.class) |
| | | @GetMapping("/queryList") |
| | | @Authorization |
| | | public TableDataInfo queryList(@RequestParam(value = "pageNum",required = false) Integer pageNum, |
| | | @RequestParam(value = "pageSize",required = false) Integer pageSize, |
| | | @RequestParam(value = "organizationName",required = false)String organizationName){ |
| | | Assert.notNull(pageNum, "pageNum can not be empty"); |
| | | Assert.notNull(pageSize, "pageSize can not be empty"); |
| | | Page<OrganizationChartEntity> pageParam = new Page<>(pageNum,pageSize); |
| | | return getDataTable(iOrganizationChartService.queryList(pageParam,pageSize,organizationName),iOrganizationChartService.countList(organizationName)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 通过父级id查询对应机构下的全部部门id |
| | | * @param departmentId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "通过父级id查询对应机构下的全部部门",response = OrganizationChartEntity.class) |
| | | @GetMapping("/getdepartment") |
| | | public TableDataInfo getOrganizations(@RequestParam(value = "department",required = false) String departmentId) |
| | | { |
| | | List<OrganizationChartEntity> ids=new ArrayList<>(); |
| | | List<OrganizationChartEntity> lists = iOrganizationChartService.selectParentList(departmentId,""); |
| | | if(lists.size()<1) |
| | | { |
| | | lists.add(iOrganizationChartService.selectConfigById(departmentId)); |
| | | } |
| | | ids=disposestreet(lists); |
| | | if(ids.size()<1) |
| | | { |
| | | return null; |
| | | } |
| | | ids.add(iOrganizationChartService.selectConfigById(departmentId)); |
| | | return getDataTable(ids); |
| | | } |
| | | |
| | | //递归取id |
| | | private List<OrganizationChartEntity> disposestreet(List<OrganizationChartEntity> lists) |
| | | { |
| | | List<OrganizationChartEntity> ids=new ArrayList<>(); |
| | | for (OrganizationChartEntity sysStreet:lists) |
| | | { |
| | | ids.add(sysStreet); |
| | | if(sysStreet.getChild()!=null && sysStreet.getChild().size()>0) |
| | | { |
| | | ids.addAll(disposestreet(sysStreet.getChild())); |
| | | } |
| | | else |
| | | { |
| | | ids.add(sysStreet); |
| | | } |
| | | } |
| | | return ids; |
| | | } |
| | | |
| | | } |
| | |
| | | import com.dg.core.annotation.CurrentUser; |
| | | import com.dg.core.db.gen.entity.ReplyTemplateEntity; |
| | | import com.dg.core.db.gen.entity.SysUser; |
| | | import com.dg.core.service.IOrganizationChartService; |
| | | import com.dg.core.service.IReplyTemplateService; |
| | | import com.dg.core.util.StringUtils; |
| | | import com.dg.core.util.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | @Autowired |
| | | IReplyTemplateService iReplyTemplateService; |
| | | |
| | | @Autowired |
| | | IOrganizationChartService iOrganizationChartService; |
| | | |
| | | |
| | | /** |
| | | * 获取模板列表 |
| | | * @return |
| | | */ |
| | | @ApiOperation("获取模板列表") |
| | | @GetMapping("/getlist") |
| | | @Authorization |
| | | public TableDataInfo selectConfigList(@RequestParam(value = "pageNum",required = false) Integer pageNum, |
| | | @RequestParam(value = "pageSize",required = false) Integer pageSize, |
| | | @RequestParam(value = "Name",required = false) String Name) |
| | | @RequestParam(value = "Name",required = false) String Name, |
| | | @CurrentUser SysUser sysUser) |
| | | { |
| | | Page<ReplyTemplateEntity> pageParam = new Page<>(pageNum,pageSize); |
| | | List<ReplyTemplateEntity> list = iReplyTemplateService.selectConfigList(pageParam,pageSize,Name); |
| | | int num=iReplyTemplateService.countNum(Name); |
| | | List<String> ids=iOrganizationChartService.getIds(sysUser.getDepartmentId()); |
| | | List<ReplyTemplateEntity> list = iReplyTemplateService.selectConfigList(pageParam,pageSize,Name,ids); |
| | | int num=iReplyTemplateService.countNum(Name,ids); |
| | | return getDataTable(list,num); |
| | | } |
| | | |
| | |
| | | */ |
| | | @ApiOperation("获取详情") |
| | | @GetMapping("/getdata") |
| | | @Authorization |
| | | public ResultData selectConfigData(@RequestParam(value = "Id",required = false) String Id) |
| | | { |
| | | if(StringUtils.isEmpty(Id)) |
| | |
| | | { |
| | | return ResultData.error("模板名称不能为空"); |
| | | } |
| | | |
| | | entity.setId(null); |
| | | entity.setDepartmentId(sysUser.getDepartmentId()); |
| | | entity.setCreateUserId(sysUser.getUserId()+""); |
| | |
| | | */ |
| | | @ApiOperation("更新模板") |
| | | @PostMapping("/update") |
| | | @Authorization |
| | | public ResultData updateConfig(@RequestBody ReplyTemplateEntity entity) |
| | | { |
| | | if(entity==null) |
| | |
| | | */ |
| | | @ApiOperation("删除模板") |
| | | @DeleteMapping("/delete") |
| | | @Authorization |
| | | public ResultData deleteConfigById(@RequestParam(value = "Id",required = false) String Id) |
| | | { |
| | | return toAjax(iReplyTemplateService.deleteConfigById(Id)); |
| | |
| | | */ |
| | | @ApiOperation("复制模板") |
| | | @PostMapping("/copy") |
| | | @Authorization |
| | | public ResultData copy(@RequestParam(value = "Id",required = false) String Id) |
| | | { |
| | | if(StringUtils.isEmpty(Id)) |
| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.annotation.CurrentUser; |
| | | import com.dg.core.annotation.Authorization; |
| | | import com.dg.core.db.gen.entity.RoleManagementEntity; |
| | | import com.dg.core.db.gen.entity.SysUser; |
| | | import com.dg.core.service.IRoleManagementService; |
| | | import com.dg.core.util.StringUtils; |
| | | import com.dg.core.util.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | */ |
| | | @ApiOperation("查询角色列表") |
| | | @GetMapping("/getList") |
| | | @Authorization |
| | | public TableDataInfo selectConfigList(@RequestParam(value = "pageNum",required = false) Integer pageNum, |
| | | @RequestParam(value = "pageSize",required = false) Integer pageSize) |
| | | { |
| | |
| | | */ |
| | | @ApiOperation("新增角色") |
| | | @PostMapping("/add") |
| | | @Authorization |
| | | public ResultData insertConfig(@RequestBody RoleManagementEntity entity) |
| | | { |
| | | // entity.setCreateUserId(sysUser.getUserId()+""); |
| | |
| | | */ |
| | | @ApiOperation("编辑角色") |
| | | @PostMapping("/update") |
| | | @Authorization |
| | | public ResultData updateConfig(@RequestBody RoleManagementEntity entity) |
| | | { |
| | | // entity.setUpdateUserId(sysUser.getUserId()+""); |
| | |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/delete") |
| | | @Authorization |
| | | public ResultData deleteConfigById(@RequestParam(value = "Id",required = false) String Id) |
| | | { |
| | | if(StringUtils.isEmpty(Id)) |
| | |
| | | package com.dg.core.controller; |
| | | |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.annotation.Authorization; |
| | | import com.dg.core.db.gen.entity.Agreement; |
| | | import com.dg.core.db.gen.entity.OrganizationChartEntity; |
| | | import com.dg.core.db.gen.entity.Slideshow; |
| | |
| | | */ |
| | | @ApiOperation(value = "修改轮播图数据",response = Slideshow.class) |
| | | @PostMapping("/update") |
| | | @Authorization |
| | | public ResultData update(@RequestBody Slideshow slideshow){ |
| | | return iSlideshowService.update(slideshow); |
| | | } |
| | |
| | | */ |
| | | @ApiOperation(value = "删除轮播图数据",response = Slideshow.class) |
| | | @GetMapping("/delete") |
| | | @Authorization |
| | | public ResultData delete(@RequestParam("id") Integer id){ |
| | | return iSlideshowService.delete(id); |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.annotation.Authorization; |
| | | import com.dg.core.annotation.CurrentUser; |
| | | import com.dg.core.db.gen.entity.Slideshow; |
| | | import com.dg.core.db.gen.entity.SysUser; |
| | | import com.dg.core.db.gen.entity.TransactionEvent; |
| | | import com.dg.core.db.manual.pojo.QueryResults; |
| | | import com.dg.core.db.manual.pojo.RecommendResult; |
| | | import com.dg.core.db.manual.pojo.Search; |
| | | import com.dg.core.service.IOrganizationChartService; |
| | | import com.dg.core.service.ITransactionEventService; |
| | | import com.dg.core.util.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.Assert; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | @Autowired(required = true) |
| | | ITransactionEventService iTransactionEventService; |
| | | |
| | | |
| | | @Autowired(required = true) |
| | | IOrganizationChartService iOrganizationChartService; |
| | | |
| | | /** |
| | | * 查询导办事务详情 |
| | | * @param Id |
| | |
| | | */ |
| | | @ApiOperation("查询导办事务详情") |
| | | @GetMapping("/getData") |
| | | public ResultData selectConfigData(@RequestParam("Id") String Id) |
| | | |
| | | public ResultData selectConfigData(@RequestParam("Id") String Id,@CurrentUser SysUser sysUser) |
| | | { |
| | | Assert.notNull(Id, "Id 不能为空"); |
| | | return ResultData.success(iTransactionEventService.selectConfigData(Id)); |
| | | return ResultData.success(iTransactionEventService.selectConfigData(Id,sysUser)); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiOperation("导办事物列表") |
| | | @GetMapping("/getList") |
| | | @Authorization |
| | | public TableDataInfo selectConfigList(@RequestParam(value = "pageNum",required = false) Integer pageNum, |
| | | @RequestParam(value = "pageSize",required = false) Integer pageSize, |
| | | @RequestParam(value = "matterAndUser",required = false) String matterAndUser, |
| | | @RequestParam(value = "classifyGrade",required = false) String classifyGrade) |
| | | @RequestParam(value = "classifyGrade",required = false) String classifyGrade, |
| | | @CurrentUser SysUser sysUser) |
| | | { |
| | | Assert.notNull(pageNum, "pageNum 不能为空"); |
| | | Assert.notNull(pageSize, "pageSize 不能为空"); |
| | | Page<TransactionEvent> pageParam = new Page<>(pageNum,pageSize); |
| | | List<TransactionEvent> list = iTransactionEventService.selectConfigList(pageParam,pageSize,matterAndUser,classifyGrade); |
| | | int num=iTransactionEventService.countNum(matterAndUser,classifyGrade); |
| | | List<String> ids=iOrganizationChartService.getIds(sysUser.getDepartmentId()); |
| | | List<TransactionEvent> list = iTransactionEventService.selectConfigList(pageParam,pageSize,matterAndUser, |
| | | classifyGrade,ids); |
| | | int num=iTransactionEventService.countNum(matterAndUser,classifyGrade,ids); |
| | | return getDataTable(list,num); |
| | | } |
| | | |
| | |
| | | */ |
| | | @ApiOperation("新增导办事务") |
| | | @PostMapping("/add") |
| | | @Authorization |
| | | public ResultData insertConfig(@RequestBody TransactionEvent entity) |
| | | { |
| | | if(StringUtils.isEmpty(entity.getDepartmentId())) |
| | | { |
| | | return ResultData.error("部门id不能为空"); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(entity.getMatterName())) |
| | | { |
| | | return ResultData.error("事件名称不能为空"); |
| | | } |
| | | |
| | | String id=iTransactionEventService.selectDataIfExist(entity.getDepartmentId(),entity.getMatterName()); |
| | | if(!StringUtils.isEmpty(id)) |
| | | { |
| | | return ResultData.error("事件名称已存在"); |
| | | } |
| | | |
| | | return toAjax(iTransactionEventService.insertConfig(entity)); |
| | | } |
| | | |
| | |
| | | */ |
| | | @ApiOperation("修改导办事务") |
| | | @PostMapping("/update") |
| | | @Authorization |
| | | public ResultData updateConfig(@RequestBody TransactionEvent entity) |
| | | { |
| | | if(StringUtils.isEmpty(entity.getDepartmentId())) |
| | | { |
| | | return ResultData.error("部门id不能为空"); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(entity.getMatterName())) |
| | | { |
| | | return ResultData.error("事件名称不能为空"); |
| | | } |
| | | |
| | | return toAjax(iTransactionEventService.updateConfig(entity)); |
| | | } |
| | | |
| | |
| | | */ |
| | | @ApiOperation("删除导办事务") |
| | | @DeleteMapping("/delete") |
| | | @Authorization |
| | | public ResultData deleteConfigById(@RequestParam(value = "Id",required = false) String Id) |
| | | { |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据分离查询导办事务 |
| | | * 根据分类id查询导办事务(分页) |
| | | * @param classifyId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "根据分类查询导办事务",response = TransactionEvent.class) |
| | | @GetMapping("/queryByClassifyIdList") |
| | | public TableDataInfo queryByClassifyIdList(@RequestParam("classifyId") String classifyId,@RequestParam(required = false,name="departmentId") Integer departmentId){ |
| | | return getDataTable(iTransactionEventService.queryByClassifyIdList(classifyId,departmentId),iTransactionEventService.countNumByClassifyIdList(classifyId,departmentId)); |
| | | @ApiOperation(value = "根据分类id查询导办事务(分页)",response = TransactionEvent.class) |
| | | @GetMapping("/queryByClassifyIdConfigList") |
| | | public TableDataInfo queryByClassifyIdConfigList(@RequestParam(value = "pageNum",required = false) Integer pageNum, |
| | | @RequestParam(value = "pageSize",required = false) Integer pageSize, |
| | | @RequestParam("classifyId") String classifyId, |
| | | @RequestParam(required = false,name="departmentId") Integer departmentId){ |
| | | Assert.notNull(pageNum, "pageNum 不能为空"); |
| | | Assert.notNull(pageSize, "pageSize 不能为空"); |
| | | Page<TransactionEvent> pageParam = new Page<>(pageNum,pageSize); |
| | | return getDataTable(iTransactionEventService.queryByClassifyIdList(pageParam,pageSize,classifyId,departmentId),iTransactionEventService.countNumByClassifyIdList(classifyId,departmentId)); |
| | | } |
| | | |
| | | /** |
| | |
| | | import com.dg.core.HttpStatus; |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.annotation.Authorization; |
| | | import com.dg.core.db.gen.entity.HuaChengSysUser; |
| | | import com.dg.core.db.gen.entity.SysUser; |
| | | import com.dg.core.manager.TokenManager; |
| | | import com.dg.core.service.IHuaChengSysUserService; |
| | | import com.dg.core.util.SmsUtil; |
| | | import com.dg.core.util.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | @Api(tags = {"用户接口"}) |
| | | @RestController |
| | | @RequestMapping("/user") |
| | | public class UserController extends BaseController{ |
| | | public class UserController extends BaseController { |
| | | @Autowired |
| | | com.dg.core.service.ISysUserService IUserService; |
| | | |
| | | @Autowired |
| | | SmsUtil smsUtil; |
| | | |
| | | @Autowired |
| | | TokenManager tokenManager; |
| | | |
| | | /** |
| | | * 花城e+用户接口 |
| | | */ |
| | | @Autowired |
| | | IHuaChengSysUserService iHuaChengSysUserService; |
| | | |
| | | @ApiOperation("登录接口") |
| | | @PostMapping(path = "/login") |
| | |
| | | Assert.notNull(account, "username can not be empty"); |
| | | Assert.notNull(password, "password can not be empty"); |
| | | |
| | | SysUser user = IUserService.getUserByAccount(account); |
| | | if (user == null || !password.equals(user.getPassword())) { |
| | | //提示用户名或密码错误 |
| | | return ResultData.fail(HttpStatus.UNAUTHORIZED, "用户名或密码错误"); |
| | | SysUser user=null; |
| | | //管理员登录 |
| | | user= IUserService.getUserByAccount(account); |
| | | |
| | | if(user==null) |
| | | { |
| | | HuaChengSysUser huaChengSysUser=iHuaChengSysUserService.selectData("",account,""); |
| | | if(huaChengSysUser==null || !password.equals(huaChengSysUser.getPassword())) |
| | | { |
| | | //提示用户名或密码错误 |
| | | return ResultData.fail(HttpStatus.UNAUTHORIZED, "用户名或密码错误"); |
| | | } |
| | | |
| | | //本地表查询用户 |
| | | user = IUserService.selectData(huaChengSysUser.getUserId()+""); |
| | | if (user == null) { |
| | | //本地没有此用户 新用户 |
| | | SysUser newSysUser=new SysUser(); |
| | | //默认 1系统后台用户 |
| | | newSysUser.setUserType("3"); |
| | | newSysUser.setPhonenumber(huaChengSysUser.getPhone()); |
| | | newSysUser.setUserId(huaChengSysUser.getUserId()); |
| | | newSysUser.setUserName(huaChengSysUser.getNickName()); |
| | | newSysUser.setSex(huaChengSysUser.getSex()); |
| | | newSysUser.setAvatar(huaChengSysUser.getImageUrl()); |
| | | newSysUser.setCreateTime(LocalDateTime.now()); |
| | | newSysUser.setUpdateTime(LocalDateTime.now()); |
| | | newSysUser.setOpenid(huaChengSysUser.getOpenid()); |
| | | IUserService.insertConfig(newSysUser); |
| | | } |
| | | |
| | | user = IUserService.selectData(huaChengSysUser.getUserId()+""); |
| | | |
| | | if (user == null) { |
| | | return ResultData.error("用户不存在!请联系管理员"); |
| | | } |
| | | |
| | | String token = tokenManager.getTokenByUserId(user.getUserId()); |
| | | System.out.println("token "+token); |
| | | if (token == null) { |
| | | //生成一个token,保存用户登录状态 |
| | | token = tokenManager.createToken(user.getUserId(), user.getUserId()); |
| | | } |
| | | |
| | | user.setLoginDate(LocalDateTime.now()); |
| | | //更新登录时间 |
| | | IUserService.updateConfig(user); |
| | | |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("token", token); |
| | | map.put("userId", user.getUserId()); |
| | | map.put("userName", user.getUserName()); |
| | | |
| | | return ResultData.success(map); |
| | | } |
| | | else |
| | | { |
| | | if(!password.equals(user.getPassword())) |
| | | { |
| | | //提示用户名或密码错误 |
| | | return ResultData.fail(HttpStatus.UNAUTHORIZED, "用户名或密码错误"); |
| | | } |
| | | String token = tokenManager.getTokenByUserId(user.getUserId()); |
| | | System.out.println("token "+token); |
| | | if (token == null) { |
| | | //生成一个token,保存用户登录状态 |
| | | token = tokenManager.createToken(user.getUserId(), user.getUserId()); |
| | | } |
| | | |
| | | user.setLoginDate(LocalDateTime.now()); |
| | | //更新登录时间 |
| | | IUserService.updateConfig(user); |
| | | |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("token", token); |
| | | map.put("userId", user.getUserId()); |
| | | map.put("userName", user.getUserName()); |
| | | |
| | | return ResultData.success(map); |
| | | } |
| | | |
| | | String token = tokenManager.getTokenByUserId(user.getUserId()); |
| | | // String token = tokenManager.createToken(user.getUserId(), user.getRoleId()); |
| | | System.out.println("token "+token); |
| | | if (token == null) { |
| | | //生成一个token,保存用户登录状态 |
| | | token = tokenManager.createToken(user.getUserId(), user.getUserId()); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("发送登录短信验证码") |
| | | @PostMapping(value = "/sendSms", consumes = "application/json") |
| | | public ResultData smsSend(@RequestBody SysUser user) { |
| | | return IUserService.smsSend(user); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("账号密码验证登录") |
| | | @GetMapping(value = "/loginByAccount") |
| | | public ResultData loginByAccount(@RequestParam String phonenumber,@RequestParam String code) { |
| | | return IUserService.loginByAccount(phonenumber,code); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("通过手机号获取用户信息 登录") |
| | | @PostMapping(value = "/loginPhionne") |
| | | public ResultData loginPhionne(@RequestParam String phonenumber) |
| | | { |
| | | if(StringUtils.isEmpty(phonenumber)) |
| | | { |
| | | return ResultData.error("请输入手机号"); |
| | | } |
| | | |
| | | user.setLoginDate(LocalDateTime.now()); |
| | | //更新登录时间 |
| | | IUserService.updateConfig(user); |
| | | |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("token", token); |
| | | map.put("userId", user.getUserId()); |
| | | map.put("userName", user.getUserName()); |
| | | |
| | | return ResultData.success(map); |
| | | return IUserService.loginByPhonenumber(phonenumber); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiOperation("用户列表接口") |
| | | @GetMapping("/getlist") |
| | | @Authorization |
| | | public TableDataInfo selectConfigList(@RequestParam(value = "pageNum",required = false) Integer pageNum, |
| | | @RequestParam(value = "pageSize",required = false) Integer pageSize) |
| | | { |
| | |
| | | return error("该账户已存在!"); |
| | | } |
| | | |
| | | config.setUserType("1"); |
| | | config.setUserType("3"); |
| | | |
| | | config.setCreateTime(LocalDateTime.now()); |
| | | config.setUpdateTime(LocalDateTime.now()); |
| | |
| | | return error("账户不能为空"); |
| | | } |
| | | |
| | | config.setUserType("1"); |
| | | config.setUserType("3"); |
| | | |
| | | return toAjax(IUserService.updateConfig(config)); |
| | | } |
| | |
| | | return error("userId不能为空"); |
| | | } |
| | | |
| | | SysUser sysUser=IUserService.getUserById(Long.valueOf(userId)); |
| | | SysUser sysUser=IUserService.selectData(userId); |
| | | //删除标志(0代表存在 2代表删除) |
| | | sysUser.setDelFlag("2"); |
| | | return toAjax(IUserService.updateConfig(sysUser)); |
| | |
| | | return error("密码不能为空"); |
| | | } |
| | | |
| | | SysUser sysUser=IUserService.getUserById(config.getUserId()); |
| | | SysUser sysUser=IUserService.selectData(config.getUserId()+""); |
| | | if(sysUser==null) |
| | | { |
| | | return error("用户不存在"); |
| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | * @author fengjin |
| | | * @since 2022-09-22 |
| | | */ |
| | | @TableName("agreement") |
| | | @TableName("automessage_agreement") |
| | | @Data |
| | | @ApiModel("相关协议实体类") |
| | | public class Agreement implements Serializable { |
| | |
| | | package com.dg.core.db.gen.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * @author fengjin |
| | | * @since 2022-09-20 |
| | | */ |
| | | @TableName("area_code_2022") |
| | | @TableName("automessage_area_code_2022") |
| | | @Data |
| | | @ApiModel("所属地区实体类") |
| | | public class AreaCode2022 implements Serializable { |
| | |
| | | * 区划代码 |
| | | */ |
| | | @ApiModelProperty("区划代码") |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private Long code; |
| | | |
| | | /** |
| | |
| | | * 级别1-5,省市县镇村 |
| | | */ |
| | | @ApiModelProperty("级别1-5,省市县镇村") |
| | | private Boolean level; |
| | | private Integer level; |
| | | |
| | | /** |
| | | * 父级区划代码 |
| | | */ |
| | | @ApiModelProperty("父级区划代码") |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private Long pcode; |
| | | |
| | | /** |
| | | * 子节点 |
| | | */ |
| | | @TableField(exist = false) |
| | | @ApiModelProperty("子节点") |
| | | private List<AreaCode2022> child; |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.dg.core.db.gen.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * 常见问题表 |
| | | * </p> |
| | | * |
| | | * @author fengjin |
| | | * @since 2022-09-23 |
| | | */ |
| | | @TableName("automessage_common_problem") |
| | | @Data |
| | | @ApiModel("常见问题实体类") |
| | | public class AutomessageCommonProblem implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 主键 |
| | | */ |
| | | @ApiModelProperty("主键") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | /** |
| | | * 常见问题标题 |
| | | */ |
| | | @ApiModelProperty("常见问题标题") |
| | | private String title; |
| | | |
| | | /** |
| | | * 常见问题解答内容 |
| | | */ |
| | | @ApiModelProperty("常见问题解答内容") |
| | | private String content; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @ApiModelProperty("创建时间") |
| | | private LocalDateTime createTime; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty("修改时间") |
| | | private LocalDateTime updateTime; |
| | | |
| | | /** |
| | | * 修改人id |
| | | */ |
| | | @ApiModelProperty("修改人id") |
| | | private String updateUserId; |
| | | |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty("创建人id") |
| | | private String createUserId; |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(name = "updateUserName", value = "上次修改人") |
| | | private String updateUserName; |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(name = "createUserName", value = "创建人") |
| | | private String createUserName; |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.dg.core.db.gen.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * 办事指南访问表 |
| | | * </p> |
| | | * |
| | | * @author fengjin |
| | | * @since 2022-09-26 |
| | | */ |
| | | @TableName("automessage_transaction_event_interview") |
| | | @Data |
| | | @ApiModel("办事指南访问表实体类") |
| | | public class AutomessageTransactionEventInterview implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty("主键") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | /** |
| | | * 办事指南id |
| | | */ |
| | | @ApiModelProperty("办事指南id") |
| | | private Integer transactionEventId; |
| | | |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty("用户id") |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private Long userId; |
| | | |
| | | /** |
| | | * 访问时间 |
| | | */ |
| | | @ApiModelProperty("访问时间") |
| | | private LocalDateTime interviewTime; |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | |
| | | |
| | | @ApiModel("分类管理实体类") |
| | | @Data |
| | | @TableName("automessage_classify_administration") |
| | | public class ClassifyAdministration implements Serializable |
| | | { |
| | | /** |
New file |
| | |
| | | package com.dg.core.db.gen.entity; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | |
| | | @ApiModel("时间筛选列表实体类") |
| | | @Data |
| | | public class CountList implements Serializable |
| | | { |
| | | |
| | | @ApiModelProperty("待办结列表") |
| | | private List<CountListNum> waitDealWithList; |
| | | |
| | | @ApiModelProperty("已办结列表") |
| | | private List<CountListNum> haveDealWith; |
| | | } |
New file |
| | |
| | | package com.dg.core.db.gen.entity; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | @ApiModel("时间筛选实体类") |
| | | @Data |
| | | public class CountListNum implements Serializable |
| | | { |
| | | @ApiModelProperty("时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty("数量") |
| | | private Integer num; |
| | | } |
New file |
| | |
| | | package com.dg.core.db.gen.entity; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | @Data |
| | | @ApiModel("首页效率实体类") |
| | | public class EfficiencyEntity implements Serializable |
| | | { |
| | | /** |
| | | * 回复率 |
| | | */ |
| | | @ApiModelProperty("回复率") |
| | | private String reversionRate="0%"; |
| | | |
| | | /** |
| | | * 办结率 |
| | | */ |
| | | @ApiModelProperty("办结率") |
| | | private String workEfficiency="0%"; |
| | | |
| | | /** |
| | | * 解决率 |
| | | */ |
| | | @ApiModelProperty("解决率") |
| | | private String resolveEfficiency="0%"; |
| | | |
| | | /** |
| | | * 好评率 |
| | | */ |
| | | @ApiModelProperty("好评率") |
| | | private String goodReputationEfficiency="0%"; |
| | | |
| | | |
| | | /** |
| | | * 超时办结率 |
| | | */ |
| | | @ApiModelProperty("超时办结率") |
| | | private String timeoutEfficiency="0%"; |
| | | |
| | | |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | |
| | | |
| | | @Data |
| | | @ApiModel("其他附件管理实体类") |
| | | @TableName("automessage_else_accessory") |
| | | public class ElseAccessoryEntity implements Serializable |
| | | { |
| | | /** |
New file |
| | |
| | | package com.dg.core.db.gen.entity; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | @ApiModel("办事指南表") |
| | | @Data |
| | | public class Guidance implements Serializable |
| | | { |
| | | |
| | | @ApiModelProperty(name = "name", value = "名称") |
| | | private String name; |
| | | |
| | | @ApiModelProperty(name = "num", value = "内容") |
| | | private String num; |
| | | } |
| | |
| | | package com.dg.core.db.gen.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | @ApiModel("导办工单进展记录表") |
| | | @TableName("automessage_guide_evolve") |
| | | public class GuideEvolveEntity implements Serializable |
| | | { |
| | | /** |
| | |
| | | private String fromUserId; |
| | | |
| | | /** |
| | | * 状态(1待分配 2 待办结 3 已办结 4 待评价 5 已取消6 已超时 7超时未办结 8未解决 9已解决 10 系统自动分配 11 回复 12转派 13手动分配) |
| | | * 状态(1待分配 2 待办结 3 已办结 4 待评价 5 已取消 7未解决 8已解决 9 系统自动分配 10 回复 11转派 12手动分配) |
| | | */ |
| | | @ApiModelProperty(name = "state", value = "状态(1待分配 2 待办结 3 已办结 4 待评价 5 已取消6 已超时 7超时未办结 8未解决 9已解决 10 系统自动分配 11 回复 12转派 13手动分配)") |
| | | @ApiModelProperty(name = "state", value = "状态(1待分配 2 待办结 3 已办结 4 待评价 5 已取消 6未解决 7已解决 8 系统自动分配 9 回复 10转派 11手动分配)") |
| | | private String state; |
| | | |
| | | |
| | | /** |
| | | * 工单号 |
| | | */ |
| | | @ApiModelProperty(name = "guideOrderNum", value = "工单号") |
| | | private String guideOrderNum; |
| | | /** |
| | | * 超时状态 是否超时 (1未超时 2超时) |
| | | */ |
| | | @ApiModelProperty(name = "isTimeout", value = "超时状态 是否超时 (1未超时 2超时)") |
| | | private String isTimeout; |
| | | |
| | | /** |
| | | * 备注内容 |
| | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | |
| | | /** |
| | | * 更新时间 |
| | | */ |
| | | @ApiModelProperty(name = "guidOrderNum", value = "工单号") |
| | | private String guidOrderNum; |
| | | |
| | | |
| | | /** |
| | | * 视频url |
| | | */ |
| | | @ApiModelProperty(name = "videoUrl", value = "视频url") |
| | | private String videoUrl; |
| | | |
| | | /** |
| | | * 图片url |
| | | */ |
| | | @ApiModelProperty(name = "pictureUrl", value = "图片url") |
| | | private String pictureUrl; |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(name = "toUserName", value = "发起人名字") |
| | | private String toUserName; |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(name = "toUserName", value = "接收人名字") |
| | | private String fromUserName; |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(name = "elseAccessoryEntities", value = "其他附件列表") |
| | | private List<ElseAccessoryEntity> elseAccessoryEntities; |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(name = "transactionEvents", value = "推荐办事指南列表") |
| | | private List<TransactionEvent> transactionEvents; |
| | | |
| | | } |
New file |
| | |
| | | package com.dg.core.db.gen.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | @ApiModel("导办工单进展记录表") |
| | | @Data |
| | | public class GuidePlate implements Serializable |
| | | { |
| | | |
| | | @ApiModelProperty(name = "userName", value = "用户名") |
| | | private String userName; |
| | | |
| | | @ApiModelProperty(name = "departmentNmae", value = "部门") |
| | | private String departmentNmae; |
| | | |
| | | @ApiModelProperty(name = "num", value = "内容") |
| | | private String num; |
| | | } |
| | |
| | | * @author fengjin |
| | | * @since 2022-09-19 |
| | | */ |
| | | @TableName("guide_repair_order") |
| | | @TableName("automessage_guide_repair_order") |
| | | @Data |
| | | @ApiModel("导办工单管理实体类") |
| | | public class GuideRepairOrder implements Serializable { |
| | |
| | | private String detailedAddress; |
| | | |
| | | /** |
| | | * 提交方式(1 小程序 2.门户网) |
| | | */ |
| | | @ApiModelProperty("提交方式(1 小程序 2.门户网)") |
| | | private Integer submitType; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @ApiModelProperty("创建时间") |
| | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(name = "images", value = "图片地址(用逗号分隔)") |
| | | private String images; |
| | | |
| | | @ApiModelProperty(name = "video", value = "视频地址") |
| | | private String video; |
| | | |
| | | @ApiModelProperty(name = "isTimeout", value = "是否超时 (1 未超时 2已超时)") |
| | | private String isTimeout; |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(name = "guideRepairOrderList", value = "工单处理进度") |
| | |
| | | @ApiModelProperty(name = "suggest", value = "建议") |
| | | private String suggest; |
| | | |
| | | @ApiModelProperty(name = "evaluateState", value = "评价状态") |
| | | @ApiModelProperty(name = "evaluateState", value = "评价状态(1 满意 2不满意)") |
| | | private String evaluateState; |
| | | |
| | | @ApiModelProperty(name = "serviceState", value = "服务状态(1.已解决 2.未解决)") |
| | | private Integer serviceState; |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(name = "sumClassifyName", value = "完整分类名称") |
| | | private String sumClassifyName; |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(name = "consultUser", value = "咨询人姓名+电话") |
| | | private String consultUser; |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(name = "submitUser", value = "提交人姓名+电话") |
| | | private String submitUser; |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(name = "guideUser", value = "导办人姓名+电话") |
| | | private String guideUser; |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(name = "organizationName", value = "创建部门") |
| | | private String organizationName; |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(name = "guideDepartmentName", value = "导办部门") |
| | | private String guideDepartmentName; |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(name = "areaName", value = "所属地区名字") |
| | | private String areaName; |
| | | |
| | | @Override |
| | | public String toString() { |
| | |
| | | package com.dg.core.db.gen.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * @author fengjin |
| | | * @since 2022-09-19 |
| | | */ |
| | | @TableName("guide_repair_order_image") |
| | | @TableName("automessage_guide_repair_order_image") |
| | | @ApiModel("导办工单图片管理实体类") |
| | | @Data |
| | | public class GuideRepairOrderImage implements Serializable { |
| | |
| | | * 主键 |
| | | */ |
| | | @ApiModelProperty("主键id") |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private Long id; |
| | | |
| | | /** |
| | |
| | | private String url; |
| | | |
| | | |
| | | /** |
| | | * 路径 |
| | | */ |
| | | @ApiModelProperty("类型1,视频 2.图片") |
| | | private Integer type; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @ApiModelProperty("创建时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | |
| | | |
| | | |
| | | @Override |
New file |
| | |
| | | package com.dg.core.db.gen.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | |
| | | /** |
| | | * 此类为花城e+主体类 |
| | | * 不可修改 切记!!!!!!!!!!!!!!!!!! |
| | | * 不可修改 切记!!!!!!!!!!!!!!!!!! |
| | | * 不可修改 切记!!!!!!!!!!!!!!!!!! |
| | | * 不可修改 切记!!!!!!!!!!!!!!!!!! |
| | | * 不可修改 切记!!!!!!!!!!!!!!!!!! |
| | | * 不可修改 切记!!!!!!!!!!!!!!!!!! |
| | | */ |
| | | @ApiModel("花城用户信息实体类") |
| | | @Data |
| | | @TableName("sys_user") |
| | | public class HuaChengSysUser implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 用户ID |
| | | */ |
| | | @ApiModelProperty(name = "userId", value = "主键用户id") |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | @TableId(value = "user_id", type = IdType.AUTO) |
| | | private Long userId; |
| | | |
| | | /** |
| | | * 登录账户 |
| | | */ |
| | | @ApiModelProperty(name = "account", value = "登录账户") |
| | | private String account; |
| | | |
| | | /** |
| | | * 登录密码 |
| | | */ |
| | | @ApiModelProperty(name = "password", value = "登录密码") |
| | | private String password; |
| | | |
| | | /** |
| | | * 微信小程序唯一标识 |
| | | */ |
| | | @ApiModelProperty(name = "openid", value = "微信小程序唯一标识") |
| | | private String openid; |
| | | |
| | | /** |
| | | * 会话密钥 |
| | | */ |
| | | @ApiModelProperty(name = "sessionKey", value = "会话密钥") |
| | | private String sessionKey; |
| | | |
| | | /** |
| | | * 用户在开放平台的唯一标识符 |
| | | */ |
| | | @ApiModelProperty(name = "unionid", value = "用户在开放平台的唯一标识符") |
| | | private String unionid; |
| | | |
| | | /** |
| | | * 手机号 |
| | | */ |
| | | @ApiModelProperty(name = "phone", value = "手机号") |
| | | private String phone; |
| | | |
| | | /** |
| | | * 昵称 |
| | | */ |
| | | @ApiModelProperty(name = "nickName", value = "昵称") |
| | | private String nickName; |
| | | |
| | | /** |
| | | * 真实名字 |
| | | */ |
| | | @ApiModelProperty(name = "name", value = "真实名字") |
| | | private String name; |
| | | |
| | | /** |
| | | * 社区ID |
| | | */ |
| | | @ApiModelProperty(name = "communityId", value = "社区ID") |
| | | private String communityId; |
| | | |
| | | /** |
| | | * 性别 1 男 2 女 |
| | | */ |
| | | @ApiModelProperty(name = "sex", value = "性别 1 男 2 女") |
| | | private String sex; |
| | | |
| | | /** |
| | | * 身份证号 |
| | | */ |
| | | @ApiModelProperty(name = "idCard", value = "身份证号") |
| | | private String idCard; |
| | | |
| | | /** |
| | | * 生日 |
| | | */ |
| | | @ApiModelProperty(name = "birthday", value = "生日") |
| | | private String birthday; |
| | | |
| | | /** |
| | | * 头像 |
| | | */ |
| | | @ApiModelProperty(name = "imageUrl", value = "头像") |
| | | private String imageUrl; |
| | | |
| | | /** |
| | | * 用户类型 1 小程序 2 运营平台 3 社区平台 5 商家后台 6 网格综治APP 7 网格综治后台 8大屏 9城管后台 10 便民服务商家后台 11三说会堂后台 12行业分中心后台 |
| | | */ |
| | | @ApiModelProperty(name = "type", value = "用户类型 1 小程序 2 运营平台 3 社区平台 5 商家后台 6 网格综治APP 7 网格综治后台 8大屏 9城管后台 10 便民服务商家后台 11三说会堂后台 12行业分中心后台") |
| | | private String type; |
| | | |
| | | /** |
| | | * 职业 |
| | | */ |
| | | @ApiModelProperty(name = "job", value = "职业") |
| | | private String job; |
| | | |
| | | /** |
| | | * 是否志愿者 0 否 1 是 |
| | | */ |
| | | @ApiModelProperty(name = "isVolunteer", value = "是否志愿者 0 否 1 是") |
| | | private String isVolunteer; |
| | | |
| | | /** |
| | | * 是否党员 0 否 1 是 |
| | | */ |
| | | @ApiModelProperty(name = "isPartymember", value = "是否党员 0 否 1 是") |
| | | private String isPartymember; |
| | | |
| | | /** |
| | | * 1 启用 2 禁用 |
| | | */ |
| | | @ApiModelProperty(name = "status", value = "1 启用 2 禁用") |
| | | private String status; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @ApiModelProperty(name = "createAt", value = "创建时间") |
| | | private String createAt; |
| | | |
| | | /** |
| | | * 最后登录时间 |
| | | */ |
| | | @ApiModelProperty(name = "lastLoginTime", value = "最后登录时间") |
| | | private String lastLoginTime; |
| | | |
| | | /** |
| | | * 标签多个用,隔开 |
| | | */ |
| | | @ApiModelProperty(name = "tags", value = "标签多个用,隔开") |
| | | private String tags; |
| | | |
| | | /** |
| | | * 家庭id |
| | | */ |
| | | @ApiModelProperty(name = "familyId", value = "家庭id") |
| | | private String familyId; |
| | | |
| | | /** |
| | | * 人脸采集照片url |
| | | */ |
| | | @ApiModelProperty(name = "faceUrl", value = "人脸采集照片url") |
| | | private String faceUrl; |
| | | |
| | | /** |
| | | * 人脸采集审核状态 0 待审核 1 审核通过 2驳回 |
| | | */ |
| | | @ApiModelProperty(name = "faceState", value = "人脸采集审核状态 0 待审核 1 审核通过 2驳回") |
| | | private String faceState; |
| | | |
| | | /** |
| | | * 驳回原因 |
| | | */ |
| | | @ApiModelProperty(name = "rejectReson", value = "驳回原因") |
| | | private String rejectReson; |
| | | |
| | | /** |
| | | * 小区id |
| | | */ |
| | | @ApiModelProperty(name = "areaId", value = "小区id") |
| | | private String areaId; |
| | | |
| | | /** |
| | | * 证件照(人相面)照片 |
| | | */ |
| | | @ApiModelProperty(name = "cardPhotoFront", value = "证件照(人相面)照片") |
| | | private String cardPhotoFront; |
| | | |
| | | /** |
| | | * 证件照(国徽面)照片 |
| | | */ |
| | | @ApiModelProperty(name = "cardPhotoBack", value = "证件照(国徽面)照片") |
| | | private String cardPhotoBack; |
| | | |
| | | /** |
| | | * 户口本 |
| | | */ |
| | | @ApiModelProperty(name = "familyBook", value = "户口本") |
| | | private String familyBook; |
| | | |
| | | /** |
| | | * 连续登陆天数 每天凌晨定时任务更新 |
| | | */ |
| | | @ApiModelProperty(name = "continuousLandingDays", value = "连续登陆天数 每天凌晨定时任务更新") |
| | | private String continuousLandingDays; |
| | | |
| | | /** |
| | | * 小程序首页是否显示公告(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(name = "isTips", value = "小程序首页是否显示公告(1.是 2.否)") |
| | | private String isTips; |
| | | |
| | | /** |
| | | * 网格员工作状态(1.在岗 2.脱岗 3.已下班) |
| | | */ |
| | | @ApiModelProperty(name = "workStatus", value = "网格员工作状态(1.在岗 2.脱岗 3.已下班)") |
| | | private String workStatus; |
| | | |
| | | /** |
| | | * 网格员上班开始时间 |
| | | */ |
| | | @ApiModelProperty(name = "workStartTime", value = "网格员上班开始时间") |
| | | private String workStartTime; |
| | | |
| | | /** |
| | | * 网格员上班结束时间 |
| | | */ |
| | | @ApiModelProperty(name = "workEndTime", value = "网格员上班结束时间") |
| | | private String workEndTime; |
| | | |
| | | /** |
| | | * 高龄认证显示提示(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(name = "bigAgeTips", value = "高龄认证显示提示(1.是 2.否)") |
| | | private String bigAgeTips; |
| | | |
| | | /** |
| | | * 明文密码 |
| | | */ |
| | | @ApiModelProperty(name = "plaintextPassword", value = "明文密码") |
| | | private String plaintextPassword; |
| | | |
| | | /** |
| | | * 街道id |
| | | */ |
| | | @ApiModelProperty(name = "streetId", value = "街道id") |
| | | private String streetId; |
| | | |
| | | /** |
| | | * 绑定单位 |
| | | */ |
| | | @ApiModelProperty(name = "relationName", value = "绑定单位") |
| | | private String relationName; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(name = "appId", value = "") |
| | | private String appId; |
| | | |
| | | /** |
| | | * 是否接收推送 |
| | | */ |
| | | @ApiModelProperty(name = "isAccept", value = "是否接收推送") |
| | | private String isAccept; |
| | | |
| | | /** |
| | | * 报到单位id |
| | | */ |
| | | @ApiModelProperty(name = "bindingCheckUnitId", value = "报到单位id") |
| | | private String bindingCheckUnitId; |
| | | |
| | | } |
| | |
| | | |
| | | @ApiModel("关键词实体类") |
| | | @Data |
| | | @TableName("keyword") |
| | | @TableName("automessage_keyword") |
| | | public class KeywordEntity implements Serializable |
| | | { |
| | | @ApiModelProperty("主键id") |
| | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | |
| | | |
| | | @ApiModel("菜单实体类") |
| | | @Data |
| | | @TableName("automessage_menu") |
| | | public class MenuEntity implements Serializable |
| | | { |
| | | |
| | |
| | | * 父节点id |
| | | */ |
| | | @ApiModelProperty("父节点id") |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private Long parentId; |
| | | |
| | | } |
| | |
| | | |
| | | @ApiModel("组织架构实体类") |
| | | @Data |
| | | @TableName("organization_chart") |
| | | @TableName("automessage_organization_chart") |
| | | public class OrganizationChartEntity implements Serializable |
| | | { |
| | | /** |
| | |
| | | private String contactNumber; |
| | | |
| | | /** |
| | | * areaList |
| | | */ |
| | | @ApiModelProperty("areaList") |
| | | private String areaList; |
| | | |
| | | /** |
| | | * 机构等级 |
| | | */ |
| | | @ApiModelProperty("部门应用") |
| | | private String departmentalApplication; |
| | | |
| | | /** |
| | | * 修改人 |
| | | */ |
| | | @ApiModelProperty("修改人") |
| | | private Integer updateUserId; |
| | | |
| | | /** |
| | | * 修改人 |
| | | */ |
| | | @TableField(exist = false) |
| | | @ApiModelProperty("修改人姓名") |
| | | private String updateUserName; |
| | | |
| | | |
| | | /** |
| | | * 下属机构 |
| | | */ |
| | | @TableField(exist = false) |
New file |
| | |
| | | package com.dg.core.db.gen.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | @ApiModel("组织排行榜") |
| | | @Data |
| | | public class OrganizationEntity implements Serializable { |
| | | @ApiModelProperty("id") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | |
| | | @ApiModelProperty(name = "departmentNmae", value = "部门") |
| | | private String departmentNmae; |
| | | |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(name = "num", value = "内容") |
| | | private String num="0"; |
| | | } |
New file |
| | |
| | | package com.dg.core.db.gen.entity; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | @ApiModel("饼状图子类实体类") |
| | | @Data |
| | | public class PieChart implements Serializable |
| | | { |
| | | @ApiModelProperty("一级分类名称") |
| | | private String name; |
| | | |
| | | |
| | | @ApiModelProperty("一级分类数量") |
| | | private String num; |
| | | } |
New file |
| | |
| | | package com.dg.core.db.gen.entity; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | |
| | | @ApiModel("饼状图实体类") |
| | | @Data |
| | | public class PieChartAll implements Serializable |
| | | { |
| | | @ApiModelProperty("工单总数") |
| | | private String workOrderNum; |
| | | |
| | | @ApiModelProperty("办事指南总数") |
| | | private String fingerpostNum; |
| | | |
| | | @ApiModelProperty("工单统计图数据") |
| | | private List<PieChart> workOrderList; |
| | | |
| | | @ApiModelProperty("办事指南统计图数据") |
| | | private List<PieChart> fingerpostList; |
| | | |
| | | |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | @ApiModel("回复模板实体类") |
| | | @Data |
| | | @TableName |
| | | public class ReplyTemplateEntity implements Serializable |
| | | { |
| | | /** |
| | |
| | | @ApiModelProperty("附件id") |
| | | private String accessoryId; |
| | | |
| | | /** |
| | | * 附件列表 |
| | | */ |
| | | @TableField(exist = false) |
| | | @ApiModelProperty("附件列表") |
| | | private List<ElseAccessoryEntity> elseAccessoryEntityList; |
| | | |
| | | /** |
| | | * 推荐办事指南列表 |
| | | */ |
| | | @TableField(exist = false) |
| | | @ApiModelProperty("推荐办事指南列表") |
| | | private List<TransactionEvent> transactionEventList; |
| | | |
| | | } |
| | |
| | | |
| | | @ApiModel("角色管理实体类") |
| | | @Data |
| | | @TableName("role_management") |
| | | @TableName("automessage_role_management") |
| | | public class RoleManagementEntity implements Serializable |
| | | { |
| | | /** |
New file |
| | |
| | | package com.dg.core.db.gen.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | |
| | | @ApiModel("角色菜单关系实体类") |
| | | @Data |
| | | @TableName("automessage_role_menu") |
| | | public class RoleMenuEntity implements Serializable |
| | | { |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty("主键id") |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 角色id |
| | | */ |
| | | @ApiModelProperty("角色id") |
| | | private String roleId; |
| | | |
| | | /** |
| | | * 菜单id |
| | | */ |
| | | @ApiModelProperty("菜单id") |
| | | private String menuId; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty("创建时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty("修改时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | */ |
| | | @ApiModel("轮播图实体类") |
| | | @Data |
| | | @TableName("slideshow") |
| | | @TableName("automessage_slideshow") |
| | | public class Slideshow implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | |
| | | */ |
| | | @ApiModel("用户信息实体类") |
| | | @Data |
| | | @TableName("sys_user") |
| | | @TableName("automessage_sys_user") |
| | | public class SysUser implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | /** |
| | | * 用户ID |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty("主键id") |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | @TableId(value = "user_id", type = IdType.AUTO) |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty("用户id") |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private Long userId; |
| | | |
| | | |
| | |
| | | private String phonenumber; |
| | | |
| | | /** |
| | | * 用户性别(0男 1女 2未知) |
| | | * 性别 1 男 2 女 |
| | | */ |
| | | @ApiModelProperty("用户性别(0男 1女 2未知)") |
| | | @ApiModelProperty("性别 1 男 2 女") |
| | | private String sex; |
| | | |
| | | /** |
| | |
| | | @ApiModelProperty("办结事项名称") |
| | | private String transactionNames; |
| | | |
| | | /** |
| | | * 微信小程序id |
| | | */ |
| | | @ApiModelProperty("微信小程序id") |
| | | private String openid; |
| | | |
| | | /** |
| | | * 待处理办事指南数量 |
| | | */ |
| | | @ApiModelProperty("待处理办事指南数量") |
| | | private Integer transactionNum; |
| | | |
| | | |
| | | |
| | | |
New file |
| | |
| | | package com.dg.core.db.gen.entity; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * 导办工单统计类 |
| | | */ |
| | | @ApiModel("不同时间段的工单数量") |
| | | @Data |
| | | public class TimeWorkOrder implements Serializable |
| | | { |
| | | //累计全部 本年 本月 今日 昨日 |
| | | /** |
| | | * 总数量 |
| | | */ |
| | | @ApiModelProperty("累计总数量") |
| | | private Integer allNum=0; |
| | | |
| | | @ApiModelProperty("本年") |
| | | private Integer yearNum; |
| | | |
| | | @ApiModelProperty("本月") |
| | | private Integer monthNum; |
| | | |
| | | @ApiModelProperty("今天") |
| | | private Integer todayNum; |
| | | |
| | | @ApiModelProperty("昨天") |
| | | private Integer yesterdayNum; |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | |
| | | |
| | | @ApiModel("导办事项管理实体类") |
| | | @Data |
| | | @TableName("automessage_transaction_event") |
| | | public class TransactionEvent implements Serializable |
| | | { |
| | | /** |
| | |
| | | @ApiModelProperty("分类id") |
| | | private String classifyId; |
| | | |
| | | /** |
| | | * 所属分类等级 |
| | | */ |
| | | @TableField(exist = false) |
| | | @ApiModelProperty("所属分类等级") |
| | | private String classifyName; |
| | | |
| | | /** |
| | | * 部门名称 |
| | | */ |
| | | @TableField(exist = false) |
| | | @ApiModelProperty("部门名称") |
| | | private String departmentName; |
| | | /** |
| | | * 事项名称 |
| | | */ |
| | |
| | | |
| | | |
| | | |
| | | @ApiModelProperty(name = "operationalGuidelineVideoName", value = "操作指南视频名称") |
| | | private String operationalGuidelineVideoName; |
| | | |
| | | @ApiModelProperty(name = "operationalGuidelineName", value = "操作指南名称") |
| | | private String operationalGuidelineName; |
| | | |
| | | |
| | | |
New file |
| | |
| | | package com.dg.core.db.gen.entity; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * 导办工单统计类 |
| | | */ |
| | | @ApiModel("导办工单统计类") |
| | | @Data |
| | | public class WorkOrder implements Serializable |
| | | { |
| | | |
| | | |
| | | /** |
| | | * 总数量 |
| | | */ |
| | | @ApiModelProperty("总数量") |
| | | private Integer allNum=0; |
| | | |
| | | |
| | | /** |
| | | * 待分配 |
| | | */ |
| | | @ApiModelProperty("待分配数量") |
| | | private Integer waitDistribution=0; |
| | | |
| | | /** |
| | | * 待办结 |
| | | */ |
| | | @ApiModelProperty("待办结") |
| | | private Integer waitDealWith=0; |
| | | |
| | | /** |
| | | * 已办结 |
| | | */ |
| | | @ApiModelProperty("已办结") |
| | | private Integer haveDealWith=0; |
| | | |
| | | |
| | | /** |
| | | * 待评价 |
| | | */ |
| | | @ApiModelProperty("待评价") |
| | | private Integer remainEvaluated=0; |
| | | |
| | | /** |
| | | * 已取消 |
| | | */ |
| | | @ApiModelProperty("已取消") |
| | | private Integer canceled=0; |
| | | |
| | | /** |
| | | * 已超时 |
| | | */ |
| | | @ApiModelProperty("已超时") |
| | | private Integer overtime=0; |
| | | |
| | | /** |
| | | * 超时未办结 |
| | | */ |
| | | @ApiModelProperty("超时未办结") |
| | | private Integer overtimeWaitDealWith=0; |
| | | |
| | | /** |
| | | * 未解决 |
| | | */ |
| | | @ApiModelProperty("未解决") |
| | | private Integer unsolved=0; |
| | | |
| | | /** |
| | | * 已解决 |
| | | */ |
| | | @ApiModelProperty("已解决") |
| | | private Integer resolved=0; |
| | | |
| | | } |
New file |
| | |
| | | package com.dg.core.db.gen.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.dg.core.db.gen.entity.AutomessageCommonProblem; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 常见问题表 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author fengjin |
| | | * @since 2022-09-23 |
| | | */ |
| | | public interface AutomessageCommonProblemMapper extends BaseMapper<AutomessageCommonProblem> { |
| | | |
| | | /** |
| | | * 获取常见问题列表(分页) |
| | | * @param page |
| | | * @param state |
| | | * @return |
| | | */ |
| | | List<AutomessageCommonProblem> selectConfigList(IPage<AutomessageCommonProblem> page, Integer state, @Param("title") String title, @Param("content") String content); |
| | | |
| | | /** |
| | | * 获取常见问题列表(不分页查找) |
| | | * @return |
| | | */ |
| | | List<AutomessageCommonProblem> selectConfigList(@Param("title") String title, @Param("content") String content); |
| | | |
| | | /** |
| | | * 获取常见问题列表统计数量 |
| | | * @return |
| | | */ |
| | | Integer countConfigList(@Param("title") String title, @Param("content") String content); |
| | | |
| | | } |
New file |
| | |
| | | package com.dg.core.db.gen.mapper; |
| | | |
| | | import com.dg.core.db.gen.entity.AutomessageTransactionEventInterview; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 办事指南访问表 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author fengjin |
| | | * @since 2022-09-26 |
| | | */ |
| | | public interface AutomessageTransactionEventInterviewMapper extends BaseMapper<AutomessageTransactionEventInterview> { |
| | | |
| | | } |
| | |
| | | List<ClassifyAdministration> selectRootList (@Param("parentId")String parentId,@Param("departmentId")Integer departmentId); |
| | | |
| | | |
| | | /** |
| | | * 根据上级id查询子分类 |
| | | * @param parentId |
| | | * @return |
| | | */ |
| | | List<String> selectParent(String parentId); |
| | | |
| | | |
| | | |
| | | |
| | |
| | | * @param Name |
| | | * @return |
| | | */ |
| | | public List<ElseAccessoryEntity> selectConfigList(IPage<ElseAccessoryEntity> page, Integer state, @Param("Name") String Name); |
| | | public List<ElseAccessoryEntity> selectConfigList(IPage<ElseAccessoryEntity> page, Integer state, |
| | | @Param("Name") String Name, |
| | | @Param("ids") List<String> ids); |
| | | |
| | | /** |
| | | * 获取附件列表全部 |
| | | * @param Name |
| | | * @return |
| | | */ |
| | | public List<ElseAccessoryEntity> selectConfigList(@Param("Name") String Name); |
| | | public List<ElseAccessoryEntity> selectConfigList(@Param("Name") String Name, |
| | | @Param("ids") List<String> ids); |
| | | |
| | | |
| | | /** |
| | |
| | | * @param Name |
| | | * @return |
| | | */ |
| | | public int countNum(String Name); |
| | | public int countNum(@Param("Name") String Name,@Param("ids") List<String> ids); |
| | | |
| | | /** |
| | | * 按ids查找相关附件列表 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | List<ElseAccessoryEntity> selectListByIds(String[] list); |
| | | |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.dg.core.db.gen.entity.GuideEvolveEntity; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | */ |
| | | public int countNum(); |
| | | |
| | | /** |
| | | * 更新工单id为空的脏数据 |
| | | * @return |
| | | */ |
| | | int updateGuid(); |
| | | |
| | | |
| | | /** |
| | | * 首页统计用 |
| | | * @return |
| | | */ |
| | | int countStatisticsNum(@Param("state") String state,@Param("isTimeout") String isTimeout); |
| | | |
| | | } |
| | |
| | | package com.dg.core.db.gen.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.dg.core.db.gen.entity.AutomessageCommonProblem; |
| | | import com.dg.core.db.gen.entity.CountListNum; |
| | | import com.dg.core.db.gen.entity.GuideRepairOrder; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | public int updateConfig(GuideRepairOrder order); |
| | | |
| | | |
| | | /** |
| | | * 获取个人中心工单数据 |
| | | * @param submitUserId |
| | | * @return |
| | | */ |
| | | List<GuideRepairOrder> selectBySubmitId(String submitUserId); |
| | | |
| | | /** |
| | | * 获取工单列表(分页) |
| | | * @param matterName |
| | | * @return |
| | | */ |
| | | List<GuideRepairOrder> selectConfigList(IPage<GuideRepairOrder> page, Integer state,@Param("matterName") String matterName, |
| | | @Param("ids") List<String> ids); |
| | | |
| | | /** |
| | | * 获取工单列表(求和) |
| | | * @param matterName |
| | | * @return |
| | | */ |
| | | int countConfigList(@Param("matterName") String matterName,@Param("ids") List<String> ids); |
| | | |
| | | |
| | | /** |
| | | * 很具用户id查询是否有对应工单 |
| | | * @return |
| | | */ |
| | | int countUser(@Param("userId") String userId,@Param("state") String state); |
| | | |
| | | /** |
| | | * 统计工单用 1 今天 2昨天 3本月 4本年度 |
| | | * @return |
| | | */ |
| | | int countStatisticsNum(@Param("state") String state, |
| | | @Param("ids") List<String> ids, |
| | | @Param("time") String time, |
| | | @Param("isTimeout") String isTimeout, |
| | | @Param("evaluateState") String evaluateState, |
| | | @Param("classifyIds") List<String> classifyIds); |
| | | |
| | | /** |
| | | * 统计工单用 |
| | | * @return |
| | | */ |
| | | List<CountListNum> countListNum(@Param("state") String state, |
| | | @Param("ids") List<String> ids, |
| | | @Param("time") Integer time); |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.dg.core.db.gen.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.dg.core.db.gen.entity.ClassifyAdministration; |
| | | import com.dg.core.db.gen.entity.Guidance; |
| | | import com.dg.core.db.gen.entity.GuidePlate; |
| | | import com.dg.core.db.gen.entity.OrganizationEntity; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | public interface HomeStatisticsMapper extends BaseMapper<GuidePlate> |
| | | { |
| | | /** |
| | | * 按办结量排序 |
| | | * @return |
| | | */ |
| | | List<GuidePlate> guidePlatePeople(); |
| | | |
| | | /** |
| | | *按评分排序 |
| | | * @return |
| | | */ |
| | | List<GuidePlate> score(); |
| | | |
| | | /** |
| | | * 按超时 |
| | | * @return |
| | | */ |
| | | List<GuidePlate> timeout(); |
| | | |
| | | /** |
| | | * 导办人员统计数 |
| | | * @return |
| | | */ |
| | | Integer staffNum(); |
| | | |
| | | /** |
| | | * 办事指南数量统计 |
| | | * @return |
| | | */ |
| | | Integer countWork(); |
| | | |
| | | /** |
| | | * 获取一级部门 |
| | | * @return |
| | | */ |
| | | List<OrganizationEntity> getDepartment(); |
| | | |
| | | /** |
| | | * 评分 |
| | | * @return |
| | | */ |
| | | Integer organizationScore(List<String> ids); |
| | | |
| | | /** |
| | | * 办结量 |
| | | * @return |
| | | */ |
| | | Integer organizationNum(List<String> ids); |
| | | |
| | | /** |
| | | * 办事指南根据导办数量排序 |
| | | * @return |
| | | */ |
| | | List<Guidance> guidanceTransaction(); |
| | | |
| | | /** |
| | | * 办事指南根据浏览数量排序 |
| | | * @return |
| | | */ |
| | | List<Guidance> guidanceBrowse(); |
| | | |
| | | /** |
| | | * 获取统计数据 首页用 勿动 |
| | | */ |
| | | int countStatisticsNum(List<String> classifyIds); |
| | | |
| | | |
| | | /** |
| | | * 首页统计用 |
| | | * @param parentId |
| | | * @param classifyGrade |
| | | * @return |
| | | */ |
| | | public List<ClassifyAdministration> getClassify(@Param("parentId") String parentId, |
| | | @Param("classifyGrade") String classifyGrade); |
| | | |
| | | } |
New file |
| | |
| | | package com.dg.core.db.gen.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.dg.core.db.gen.entity.HuaChengSysUser; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 用户信息表 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author xiang |
| | | * @since 2022-07-11 |
| | | */ |
| | | public interface HuaChengSysUserMapper extends BaseMapper<HuaChengSysUser> |
| | | { |
| | | public List<HuaChengSysUser> selectConfigList(); |
| | | |
| | | public HuaChengSysUser selectData(@Param("userId") String userId,@Param("account") String account,@Param("phone") String phone); |
| | | |
| | | public int selectNum(); |
| | | } |
| | |
| | | package com.dg.core.db.gen.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.dg.core.db.gen.entity.OrganizationChartEntity; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | |
| | | OrganizationChartEntity selectConfigById(@Param("id") String id); |
| | | |
| | | |
| | | /** |
| | | * 查询机构列表(分页) |
| | | */ |
| | | List<OrganizationChartEntity> queryList(IPage<OrganizationChartEntity> page, Integer state, String organizationName); |
| | | |
| | | |
| | | /** |
| | | * 统计数量(部门应用) |
| | | */ |
| | | int countList(String organizationName); |
| | | |
| | | |
| | | /** |
| | | * 根据所属地区查找部门 |
| | | */ |
| | | List<OrganizationChartEntity> selectByCode(@Param("areaCode") String areaCode); |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | * 获取模板列表 |
| | | * @return |
| | | */ |
| | | public List<ReplyTemplateEntity> selectConfigList(IPage<ReplyTemplateEntity> page, Integer state, @Param("Name") String Name); |
| | | public List<ReplyTemplateEntity> selectConfigList(IPage<ReplyTemplateEntity> page, Integer state, |
| | | @Param("Name") String Name, |
| | | @Param("ids") List<String> ids); |
| | | |
| | | |
| | | /** |
| | |
| | | * 获取数量 |
| | | * @return |
| | | */ |
| | | public int countNum(String Name); |
| | | public int countNum(@Param("Name") String Name,@Param("ids") List<String> ids); |
| | | |
| | | |
| | | |
New file |
| | |
| | | package com.dg.core.db.gen.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.dg.core.db.gen.entity.RoleMenuEntity; |
| | | |
| | | import java.util.List; |
| | | |
| | | public interface RoleMenuEntityMapper extends BaseMapper<RoleMenuEntity> |
| | | { |
| | | /** |
| | | * 根据角色获取菜单id |
| | | * @param roleId |
| | | * @return |
| | | */ |
| | | public List<RoleMenuEntity> selectConfigList(String roleId); |
| | | |
| | | /** |
| | | * 新增 |
| | | * @param entity |
| | | * @return |
| | | */ |
| | | public int insertConfig(RoleMenuEntity entity); |
| | | |
| | | /** |
| | | * 编辑 |
| | | * @param entity |
| | | * @return |
| | | */ |
| | | public int updateConfig(RoleMenuEntity entity); |
| | | |
| | | |
| | | /** |
| | | * 删除 |
| | | * @param Id |
| | | * @return |
| | | */ |
| | | public int deleteConfigById(String Id); |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | public List<SysUser> selectConfigList(IPage<SysUser> page, Integer state,@Param("userType") String userType); |
| | | |
| | | |
| | | |
| | | SysUser selectData(String userId); |
| | | |
| | | |
| | | /** |
| | | * 新增聊天记录 |
| | | * |
| | |
| | | * @return 结果 |
| | | */ |
| | | public int selectNum(String userType); |
| | | |
| | | /** |
| | | * 根据部门id及分类id获取导办用户 |
| | | * |
| | | * @return 结果 |
| | | */ |
| | | List<SysUser> selectListByDepartmentId(@Param("list") List<String> list,@Param("classifyIdFront") String classifyIdFront,@Param("classifyIdAfter") String classifyIdAfter); |
| | | |
| | | |
| | | /** |
| | | * 查询用户列表(不分页) |
| | | * @param userType 用户类型 |
| | | * @return 结果 |
| | | */ |
| | | List<SysUser> queryList(@Param("userType") Integer userType); |
| | | } |
| | |
| | | */ |
| | | public List<TransactionEvent> selectConfigList(IPage<TransactionEvent> page, Integer state, |
| | | @Param("matterAndUser") String matterAndUser, |
| | | @Param("classifyGrade") String classifyGrade); |
| | | @Param("classifyGrade") String classifyGrade, |
| | | @Param("ids") List<String> ids); |
| | | |
| | | /** |
| | | * 新增导办事务 |
| | |
| | | * @return |
| | | */ |
| | | public int countNum(@Param("matterAndUser") String matterAndUser, |
| | | @Param("classifyGrade") String classifyGrade); |
| | | @Param("classifyGrade") String classifyGrade, |
| | | @Param("ids") List<String> ids); |
| | | |
| | | /** |
| | | * 导办事务搜索 |
| | |
| | | * @param matterName |
| | | * @return |
| | | */ |
| | | List<TransactionEvent> queryMatterNameList(String matterName); |
| | | List<TransactionEvent> queryMatterNameList(@Param("matterName") String matterName,@Param("classifyId") String classifyId); |
| | | |
| | | /** |
| | | * 导办事务搜索统计数量 |
| | |
| | | */ |
| | | List<TransactionEvent> queryByClassifyIdList(@Param("classifyId") String classifyId,@Param("departmentId") Integer departmentId); |
| | | |
| | | |
| | | /** |
| | | * 根据分离查询导办事务(分页) |
| | | * @param classifyId |
| | | * @return |
| | | * |
| | | */ |
| | | List<TransactionEvent> queryByClassifyIdList(IPage<TransactionEvent> page, Integer state,@Param("classifyId") String classifyId,@Param("departmentId") Integer departmentId); |
| | | |
| | | /** |
| | | * 查询导办事务求和 |
| | | * @return |
| | |
| | | * @return |
| | | */ |
| | | List<Search> selectSearch(IPage<Search> page, Integer state, String keyWord); |
| | | |
| | | |
| | | /** |
| | | * 根据关键词导办事务(部门也会统计进去)搜索(分页)(小程序) |
| | | * @param keyWord |
| | | * @return |
| | | */ |
| | | List<Search> selectSearchList(String keyWord); |
| | | |
| | | /** |
| | | * 根据关键词导办事务(部门也会统计进去)搜索(不分页) |
| | |
| | | * @return |
| | | */ |
| | | List<Search> selectSearchAssociate( String keyWord); |
| | | |
| | | /** |
| | | * 按ids查找导办事务列表 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | List<TransactionEvent> selectListByIds(String[] list); |
| | | |
| | | /** |
| | | * 根据部门判断是否有事项名称重复 |
| | | */ |
| | | String selectDataIfExist(@Param("departmentId") String departmentId, |
| | | @Param("matterName") String matterName); |
| | | |
| | | /** |
| | | * 根据办事分类获取办事指南 |
| | | */ |
| | | List<String> selectclassifyId(String classifyId); |
| | | |
| | | |
| | | /** |
| | | * 根据关联词导办事务搜索搜索(不分页)(去重用于小程序) |
| | | * @param keyWord |
| | | * @return |
| | | */ |
| | | List<Search> selectSearchAssociateDistinct( String keyWord); |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | package com.dg.core.db.manual.mapper.util; |
| | | |
| | | import com.dg.core.util.StringUtils; |
| | | import io.netty.channel.ConnectTimeoutException; |
| | | import org.apache.commons.io.IOUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.http.Consts; |
| | | import org.apache.http.HttpEntity; |
| | | import org.apache.http.HttpResponse; |
| | |
| | | |
| | | public class MapperGenerator { |
| | | @Value("spring.datasource.url") |
| | | String url = "jdbc:mysql://10.8.0.74:3306/flower_city_automessage?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&allowMultiQueries=true&serverTimezone=GMT%2B8"; |
| | | String url = "jdbc:mysql://10.8.0.74:3306/huacheng_smart_life?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&allowMultiQueries=true&serverTimezone=GMT%2B8"; |
| | | @Value("spring.datasource.username") |
| | | String username = "root"; |
| | | @Value("spring.datasource.password") |
| | |
| | | }) |
| | | .strategyConfig(builder -> { |
| | | // builder.addInclude(""); |
| | | builder.addInclude("agreement") // 设置需要生成的表名 |
| | | builder.addInclude("automessage_transaction_event_interview") // 设置需要生成的表名 |
| | | .addTablePrefix("t_", "c_"); // 设置过滤表前缀 |
| | | }) |
| | | .templateConfig(builder -> { |
| | |
| | | package com.dg.core.db.manual.pojo; |
| | | |
| | | import com.dg.core.db.gen.entity.TransactionEvent; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @ApiModel("自公告门户网搜索数据") |
| | | @Data |
| | | public class Search { |
| | | |
| | | @ApiModelProperty("id") |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("搜索结果标题") |
| | | private String title; |
| | |
| | | |
| | | @ApiModelProperty("浏览次数") |
| | | private Integer views; |
| | | |
| | | @ApiModelProperty("分类id") |
| | | private Integer classifyId; |
| | | |
| | | @ApiModelProperty("搜索数据类型1.办事部门2.办事指南 3.推荐办事指南4.分类") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty("办事指南") |
| | | private List<TransactionEvent> transactionEventList; |
| | | |
| | | } |
New file |
| | |
| | | package com.dg.core.exception.file; |
| | | |
| | | import org.apache.commons.lang3.StringUtils; |
| | | |
| | | /** |
| | | * 基础异常 |
| | | * |
| | | * @author |
| | | */ |
| | | public class BaseException extends RuntimeException { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 所属模块 |
| | | */ |
| | | private String module; |
| | | |
| | | /** |
| | | * 错误码 |
| | | */ |
| | | private String code; |
| | | |
| | | /** |
| | | * 错误码对应的参数 |
| | | */ |
| | | private Object[] args; |
| | | |
| | | /** |
| | | * 错误消息 |
| | | */ |
| | | private String defaultMessage; |
| | | |
| | | public BaseException(String module, String code, Object[] args, String defaultMessage) { |
| | | this.module = module; |
| | | this.code = code; |
| | | this.args = args; |
| | | this.defaultMessage = defaultMessage; |
| | | } |
| | | |
| | | public BaseException(String module, String code, Object[] args) { |
| | | this(module, code, args, null); |
| | | } |
| | | |
| | | public BaseException(String module, String defaultMessage) { |
| | | this(module, null, null, defaultMessage); |
| | | } |
| | | |
| | | public BaseException(String code, Object[] args) { |
| | | this(null, code, args, null); |
| | | } |
| | | |
| | | public BaseException(String defaultMessage) { |
| | | this(null, null, null, defaultMessage); |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | String message = null; |
| | | if (!StringUtils.isEmpty(code)) { |
| | | message = MessageUtils.message(code, args); |
| | | } |
| | | if (message == null) { |
| | | message = defaultMessage; |
| | | } |
| | | return message; |
| | | } |
| | | |
| | | public String getModule() { |
| | | return module; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public Object[] getArgs() { |
| | | return args; |
| | | } |
| | | |
| | | public String getDefaultMessage() { |
| | | return defaultMessage; |
| | | } |
| | | } |
| | |
| | | package com.dg.core.exception.file; |
| | | |
| | | |
| | | import com.dg.core.exception.base.BaseException; |
| | | |
| | | /** |
| | | * 文件信息异常类 |
| | |
| | | package com.dg.core.exception.file; |
| | | |
| | | import org.apache.commons.fileupload.FileUploadException; |
| | | |
| | | |
| | | import org.apache.tomcat.util.http.fileupload.FileUploadException; |
| | | |
| | | import java.util.Arrays; |
| | | |
New file |
| | |
| | | package com.dg.core.exception.file; |
| | | |
| | | import org.springframework.context.MessageSource; |
| | | import org.springframework.context.i18n.LocaleContextHolder; |
| | | |
| | | /** |
| | | * 获取i18n资源文件 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class MessageUtils { |
| | | /** |
| | | * 根据消息键和参数 获取消息 委托给spring messageSource |
| | | * |
| | | * @param code |
| | | * 消息键 |
| | | * @param args |
| | | * 参数 |
| | | * @return 获取国际化翻译值 |
| | | */ |
| | | public static String message(String code, Object... args) { |
| | | MessageSource messageSource = SpringUtils.getBean(MessageSource.class); |
| | | return messageSource.getMessage(code, args, LocaleContextHolder.getLocale()); |
| | | } |
| | | } |
New file |
| | |
| | | package com.dg.core.exception.file; |
| | | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.aop.framework.AopContext; |
| | | import org.springframework.beans.BeansException; |
| | | import org.springframework.beans.factory.NoSuchBeanDefinitionException; |
| | | import org.springframework.beans.factory.config.BeanFactoryPostProcessor; |
| | | import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; |
| | | import org.springframework.context.ApplicationContext; |
| | | import org.springframework.context.ApplicationContextAware; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.util.ObjectUtils; |
| | | |
| | | /** |
| | | * spring工具类 方便在非spring管理环境中获取bean |
| | | * |
| | | * @author huanghongfa |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public final class SpringUtils implements BeanFactoryPostProcessor, ApplicationContextAware { |
| | | /** Spring应用上下文环境 */ |
| | | private static ConfigurableListableBeanFactory beanFactory; |
| | | |
| | | private static ApplicationContext applicationContext; |
| | | |
| | | /** |
| | | * 获取对象 |
| | | * |
| | | * @param name |
| | | * @return Object 一个以所给名字注册的bean的实例 |
| | | * @throws BeansException |
| | | * |
| | | */ |
| | | @SuppressWarnings("unchecked") |
| | | public static <T> T getBean(String name) throws BeansException { |
| | | return (T)beanFactory.getBean(name); |
| | | } |
| | | |
| | | /** |
| | | * 获取类型为requiredType的对象 |
| | | * |
| | | * @param clz |
| | | * @return |
| | | * @throws BeansException |
| | | * |
| | | */ |
| | | public static <T> T getBean(Class<T> clz) throws BeansException { |
| | | T result = beanFactory.getBean(clz); |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * 如果BeanFactory包含一个与所给名称匹配的bean定义,则返回true |
| | | * |
| | | * @param name |
| | | * @return boolean |
| | | */ |
| | | public static boolean containsBean(String name) { |
| | | return beanFactory.containsBean(name); |
| | | } |
| | | |
| | | /** |
| | | * 判断以给定名字注册的bean定义是一个singleton还是一个prototype。 如果与给定名字相应的bean定义没有被找到,将会抛出一个异常(NoSuchBeanDefinitionException) |
| | | * |
| | | * @param name |
| | | * @return boolean |
| | | * @throws NoSuchBeanDefinitionException |
| | | * |
| | | */ |
| | | public static boolean isSingleton(String name) throws NoSuchBeanDefinitionException { |
| | | return beanFactory.isSingleton(name); |
| | | } |
| | | |
| | | /** |
| | | * @param name |
| | | * @return Class 注册对象的类型 |
| | | * @throws NoSuchBeanDefinitionException |
| | | * |
| | | */ |
| | | public static Class<?> getType(String name) throws NoSuchBeanDefinitionException { |
| | | return beanFactory.getType(name); |
| | | } |
| | | |
| | | /** |
| | | * 如果给定的bean名字在bean定义中有别名,则返回这些别名 |
| | | * |
| | | * @param name |
| | | * @return |
| | | * @throws NoSuchBeanDefinitionException |
| | | * |
| | | */ |
| | | public static String[] getAliases(String name) throws NoSuchBeanDefinitionException { |
| | | return beanFactory.getAliases(name); |
| | | } |
| | | |
| | | /** |
| | | * 获取aop代理对象 |
| | | * |
| | | * @param invoker |
| | | * @return |
| | | */ |
| | | @SuppressWarnings("unchecked") |
| | | public static <T> T getAopProxy(T invoker) { |
| | | return (T)AopContext.currentProxy(); |
| | | } |
| | | |
| | | /** |
| | | * 获取当前的环境配置,无配置返回null |
| | | * |
| | | * @return 当前的环境配置 |
| | | */ |
| | | public static String[] getActiveProfiles() { |
| | | return applicationContext.getEnvironment().getActiveProfiles(); |
| | | } |
| | | |
| | | /** |
| | | * 获取当前的环境配置,当有多个环境配置时,只获取第一个 |
| | | * |
| | | * @return 当前的环境配置 |
| | | */ |
| | | public static String getActiveProfile() { |
| | | final String[] activeProfiles = getActiveProfiles(); |
| | | return !ObjectUtils.isEmpty(activeProfiles) ? activeProfiles[0] : null; |
| | | } |
| | | |
| | | @Override |
| | | public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException { |
| | | SpringUtils.beanFactory = beanFactory; |
| | | } |
| | | |
| | | @Override |
| | | public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { |
| | | SpringUtils.applicationContext = applicationContext; |
| | | } |
| | | } |
New file |
| | |
| | | package com.dg.core.file; |
| | | |
| | | import com.dg.core.exception.file.FileSizeLimitExceededException; |
| | | import com.dg.core.exception.file.InvalidExtensionException; |
| | | import org.apache.commons.io.FilenameUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * 文件上传工具类 |
| | | * |
| | | * @author |
| | | */ |
| | | public class FileTypeUploadUtils { |
| | | /** |
| | | * 默认大小 50M |
| | | */ |
| | | public static final long DEFAULT_MAX_SIZE = 50 * 1024 * 1024; |
| | | |
| | | /** |
| | | * 默认的文件名最大长度 100 |
| | | */ |
| | | public static final int DEFAULT_FILE_NAME_LENGTH = 100; |
| | | |
| | | |
| | | /** |
| | | * 文件大小校验 |
| | | * |
| | | * @param file 上传的文件 |
| | | * @return |
| | | * @throws FileSizeLimitExceededException 如果超出最大大小 |
| | | * @throws InvalidExtensionException |
| | | */ |
| | | public static final void assertAllowed(MultipartFile file, String[] allowedExtension) |
| | | throws FileSizeLimitExceededException, InvalidExtensionException { |
| | | long size = file.getSize(); |
| | | if (size > DEFAULT_MAX_SIZE) { |
| | | throw new FileSizeLimitExceededException(DEFAULT_MAX_SIZE / 1024 / 1024); |
| | | } |
| | | |
| | | String fileName = file.getOriginalFilename(); |
| | | String extension = getExtension(file); |
| | | if (allowedExtension != null && !isAllowedExtension(extension, allowedExtension)) { |
| | | if (allowedExtension == MimeTypeUtils.IMAGE_EXTENSION) { |
| | | throw new InvalidExtensionException.InvalidImageExtensionException(allowedExtension, extension, |
| | | fileName); |
| | | } else if (allowedExtension == MimeTypeUtils.FLASH_EXTENSION) { |
| | | throw new InvalidExtensionException.InvalidFlashExtensionException(allowedExtension, extension, |
| | | fileName); |
| | | } else if (allowedExtension == MimeTypeUtils.MEDIA_EXTENSION) { |
| | | throw new InvalidExtensionException.InvalidMediaExtensionException(allowedExtension, extension, |
| | | fileName); |
| | | } else if (allowedExtension == MimeTypeUtils.VIDEO_EXTENSION) { |
| | | throw new InvalidExtensionException.InvalidVideoExtensionException(allowedExtension, extension, |
| | | fileName); |
| | | } else { |
| | | throw new InvalidExtensionException(allowedExtension, extension, fileName); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 判断MIME类型是否是允许的MIME类型 |
| | | * |
| | | * @param extension |
| | | * @param allowedExtension |
| | | * @return |
| | | */ |
| | | public static final boolean isAllowedExtension(String extension, String[] allowedExtension) { |
| | | for (String str : allowedExtension) { |
| | | if (str.equalsIgnoreCase(extension)) { |
| | | return true; |
| | | } |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | | * 获取文件名的后缀 |
| | | * |
| | | * @param file 表单文件 |
| | | * @return 后缀名 |
| | | */ |
| | | public static final String getExtension(MultipartFile file) { |
| | | String extension = FilenameUtils.getExtension(file.getOriginalFilename()); |
| | | if (StringUtils.isEmpty(extension)) { |
| | | extension = MimeTypeUtils.getExtension(Objects.requireNonNull(file.getContentType())); |
| | | } |
| | | return extension; |
| | | } |
| | | } |
New file |
| | |
| | | package com.dg.core.file; |
| | | |
| | | /** |
| | | * @program: springcloud_k8s_panzhihuazhihuishequ |
| | | * @description: ftp |
| | | * @author: huang.hongfa weixin hhf9596 qq 959656820 |
| | | * @create: 2020-11-30 13:39 |
| | | **/ |
| | | public class FtpConstants { |
| | | /** |
| | | * ftp站点 |
| | | */ |
| | | public static final String FTPHOST = "47.104.148.185"; |
| | | /** |
| | | * 端口号 |
| | | */ |
| | | public static final Integer FTPPORT = 22; |
| | | /** |
| | | * ftp访问用户名 |
| | | */ |
| | | public static final String FTPUSERNAME = "root"; |
| | | /** |
| | | * ftp访问密码 |
| | | */ |
| | | public static final String FTPPASSWORD = "evanN7F2K5M6"; |
| | | /** |
| | | * excel模板 |
| | | */ |
| | | public static final String FTPFILEPATH_MUBAN = "/mnt/data/ftp/muban/"; |
| | | /** |
| | | * 党员保存 |
| | | */ |
| | | public static final String FTPFILEPATH_IDCARD = "/mnt/data/ftp/idcard/"; |
| | | /** |
| | | * http访问路径 |
| | | */ |
| | | public static final String HTTP_URL = "http://image.panzhihua.nhys.cdnhxx.com/"; |
| | | } |
| | |
| | | /** |
| | | * 媒体类型工具类 |
| | | * |
| | | * @author ruoyi |
| | | * @author |
| | | */ |
| | | public class MimeTypeUtils |
| | | { |
New file |
| | |
| | | package com.dg.core.file; |
| | | |
| | | import com.jcraft.jsch.*; |
| | | import org.apache.commons.io.IOUtils; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | |
| | | import java.io.*; |
| | | import java.util.Properties; |
| | | import java.util.Vector; |
| | | |
| | | /** |
| | | * @version 1.0.0 |
| | | * @ClassName: SFTPUtil |
| | | * @Description: sftp连接工具类 |
| | | */ |
| | | public class SFTPUtil { |
| | | private transient Logger log = LoggerFactory.getLogger(this.getClass()); |
| | | |
| | | private ChannelSftp sftp; |
| | | |
| | | private Session session; |
| | | |
| | | // FTP 登录用户名 |
| | | private String userName; |
| | | // FTP 登录密码 |
| | | private String password; |
| | | // FTP 服务器地址IP地址 |
| | | private String host; |
| | | // FTP 端口 |
| | | private int port; |
| | | |
| | | /** |
| | | * 构造基于密码认证的sftp对象 |
| | | * |
| | | * @param userName |
| | | * @param password |
| | | * @param host |
| | | * @param port |
| | | */ |
| | | public SFTPUtil(String userName, String password, String host, int port) { |
| | | this.userName = userName; |
| | | this.password = password; |
| | | this.host = host; |
| | | this.port = port; |
| | | } |
| | | |
| | | public SFTPUtil() { |
| | | this.userName = FtpConstants.FTPUSERNAME; |
| | | this.password = FtpConstants.FTPPASSWORD; |
| | | this.host = FtpConstants.FTPHOST; |
| | | this.port = FtpConstants.FTPPORT; |
| | | } |
| | | |
| | | public static void main(String[] args) throws SftpException, IOException { |
| | | SFTPUtil sftp = new SFTPUtil("root", "evanN7F2K5M6", "47.104.148.185", 22); |
| | | sftp.login(); |
| | | File file = new File("F:\\settings.xml"); |
| | | InputStream is = new FileInputStream(file); |
| | | // 多级目录创建并上传 |
| | | sftp.uploadMore("/mnt/data/ftp/ss", "settings.xml", is); |
| | | sftp.logout(); |
| | | } |
| | | |
| | | /** |
| | | * 连接sftp服务器 |
| | | * |
| | | * @throws Exception |
| | | */ |
| | | public void login() { |
| | | try { |
| | | JSch jsch = new JSch(); |
| | | log.info("sftp connect by host:{} username:{}", host, userName); |
| | | |
| | | session = jsch.getSession(userName, host, port); |
| | | log.info("Session is build"); |
| | | if (password != null) { |
| | | session.setPassword(password); |
| | | } |
| | | Properties config = new Properties(); |
| | | config.put("StrictHostKeyChecking", "no"); |
| | | |
| | | session.setConfig(config); |
| | | session.connect(); |
| | | log.info("Session is connected"); |
| | | |
| | | Channel channel = session.openChannel("sftp"); |
| | | channel.connect(); |
| | | log.info("channel is connected"); |
| | | |
| | | sftp = (ChannelSftp)channel; |
| | | log.info(String.format("sftp server host:[%s] port:[%s] is connect successfull", host, port)); |
| | | } catch (JSchException e) { |
| | | log.error("Cannot connect to specified sftp server : {}:{} \n Exception message is: {}", host, port, |
| | | e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 关闭连接 server |
| | | */ |
| | | public void logout() { |
| | | if (sftp != null) { |
| | | if (sftp.isConnected()) { |
| | | sftp.disconnect(); |
| | | log.info("sftp is closed already"); |
| | | } |
| | | } |
| | | if (session != null) { |
| | | if (session.isConnected()) { |
| | | session.disconnect(); |
| | | log.info("sshSession is closed already"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 递归根据路径创建文件夹 |
| | | * |
| | | * @param dirs |
| | | * 根据 / 分隔后的数组文件夹名称 |
| | | * @param tempPath |
| | | * 拼接路径 |
| | | * @param length |
| | | * 文件夹的格式 |
| | | * @param index |
| | | * 数组下标 |
| | | * @return |
| | | */ |
| | | public void mkdirDir(String[] dirs, String tempPath, int length, int index) { |
| | | // 以"/a/b/c/d"为例按"/"分隔后,第0位是"";顾下标从1开始 |
| | | index++; |
| | | if (index < length) { |
| | | // 目录不存在,则创建文件夹 |
| | | tempPath += "/" + dirs[index]; |
| | | } |
| | | try { |
| | | log.info("检测目录[" + tempPath + "]"); |
| | | sftp.cd(tempPath); |
| | | if (index < length) { |
| | | mkdirDir(dirs, tempPath, length, index); |
| | | } |
| | | } catch (SftpException ex) { |
| | | log.warn("创建目录[" + tempPath + "]"); |
| | | try { |
| | | sftp.mkdir(tempPath); |
| | | sftp.cd(tempPath); |
| | | } catch (SftpException e) { |
| | | e.printStackTrace(); |
| | | log.error("创建目录[" + tempPath + "]失败,异常信息[" + e.getMessage() + "]"); |
| | | |
| | | } |
| | | log.info("进入目录[" + tempPath + "]"); |
| | | mkdirDir(dirs, tempPath, length, index); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 将输入流的数据上传到sftp作为文件(多层目录) |
| | | * |
| | | * @param directory |
| | | * 上传到该目录(多层目录) |
| | | * @param sftpFileName |
| | | * sftp端文件名 |
| | | * @param input |
| | | * 输入流 |
| | | * @throws SftpException |
| | | * @throws Exception |
| | | */ |
| | | public void uploadMore(String directory, String sftpFileName, InputStream input) throws SftpException { |
| | | try { |
| | | sftp.cd(directory); |
| | | } catch (SftpException e) { |
| | | // 目录不存在,则创建文件夹 |
| | | String[] dirs = directory.split("/"); |
| | | String tempPath = ""; |
| | | int index = 0; |
| | | mkdirDir(dirs, tempPath, dirs.length, index); |
| | | } |
| | | sftp.put(input, sftpFileName);// 上传文件 |
| | | } |
| | | |
| | | /** |
| | | * 将输入流的数据上传到sftp作为文件 |
| | | * |
| | | * @param directory |
| | | * 上传到该目录(单层目录) |
| | | * @param sftpFileName |
| | | * sftp端文件名 |
| | | * @param input |
| | | * 输入流 |
| | | * @throws SftpException |
| | | * @throws Exception |
| | | */ |
| | | public void upload(String directory, String sftpFileName, InputStream input) throws SftpException { |
| | | try { |
| | | sftp.cd(directory); |
| | | } catch (SftpException e) { |
| | | log.warn("directory is not exist"); |
| | | sftp.mkdir(directory); |
| | | sftp.cd(directory); |
| | | } |
| | | sftp.put(input, sftpFileName); |
| | | log.info("file:{} is upload successful", sftpFileName); |
| | | } |
| | | |
| | | /** |
| | | * 上传单个文件 |
| | | * |
| | | * @param directory |
| | | * 上传到sftp目录 |
| | | * @param uploadFile |
| | | * 要上传的文件,包括路径 |
| | | * @throws FileNotFoundException |
| | | * @throws SftpException |
| | | * @throws Exception |
| | | */ |
| | | public void upload(String directory, String uploadFile) throws FileNotFoundException, SftpException { |
| | | File file = new File(uploadFile); |
| | | upload(directory, file.getName(), new FileInputStream(file)); |
| | | } |
| | | |
| | | /** |
| | | * 将byte[]上传到sftp,作为文件。注意:从String生成byte[]是,要指定字符集。 |
| | | * |
| | | * @param directory |
| | | * 上传到sftp目录 |
| | | * @param sftpFileName |
| | | * 文件在sftp端的命名 |
| | | * @param byteArr |
| | | * 要上传的字节数组 |
| | | * @throws SftpException |
| | | * @throws Exception |
| | | */ |
| | | public void upload(String directory, String sftpFileName, byte[] byteArr) throws SftpException { |
| | | upload(directory, sftpFileName, new ByteArrayInputStream(byteArr)); |
| | | } |
| | | |
| | | /** |
| | | * 将字符串按照指定的字符编码上传到sftp |
| | | * |
| | | * @param directory |
| | | * 上传到sftp目录 |
| | | * @param sftpFileName |
| | | * 文件在sftp端的命名 |
| | | * @param dataStr |
| | | * 待上传的数据 |
| | | * @param charsetName |
| | | * sftp上的文件,按该字符编码保存 |
| | | * @throws UnsupportedEncodingException |
| | | * @throws SftpException |
| | | * @throws Exception |
| | | */ |
| | | public void upload(String directory, String sftpFileName, String dataStr, String charsetName) |
| | | throws UnsupportedEncodingException, SftpException { |
| | | upload(directory, sftpFileName, new ByteArrayInputStream(dataStr.getBytes(charsetName))); |
| | | } |
| | | |
| | | /** |
| | | * 下载文件 |
| | | * |
| | | * @param directory |
| | | * 下载目录 |
| | | * @param downloadFile |
| | | * 下载的文件 |
| | | * @param saveFile |
| | | * 存在本地的路径 |
| | | * @throws SftpException |
| | | * @throws FileNotFoundException |
| | | * @throws Exception |
| | | */ |
| | | public void download(String directory, String downloadFile, String saveFile) |
| | | throws SftpException, FileNotFoundException { |
| | | if (directory != null && !"".equals(directory)) { |
| | | sftp.cd(directory); |
| | | } |
| | | File file = new File(saveFile); |
| | | sftp.get(downloadFile, new FileOutputStream(file)); |
| | | log.info("file:{} is download successful", downloadFile); |
| | | } |
| | | |
| | | /** |
| | | * 下载文件 |
| | | * |
| | | * @param directory |
| | | * 下载目录 |
| | | * @param downloadFile |
| | | * 下载的文件名 |
| | | * @return 字节数组 |
| | | * @throws SftpException |
| | | * @throws IOException |
| | | * @throws Exception |
| | | */ |
| | | public byte[] download(String directory, String downloadFile) throws SftpException, IOException { |
| | | if (directory != null && !"".equals(directory)) { |
| | | sftp.cd(directory); |
| | | } |
| | | InputStream is = sftp.get(downloadFile); |
| | | byte[] fileData = IOUtils.toByteArray(is); |
| | | log.info("file:{} is download successful", downloadFile); |
| | | return fileData; |
| | | } |
| | | |
| | | /** |
| | | * 下载文件 |
| | | * |
| | | * @param directory |
| | | * 下载目录 |
| | | * @param downloadFile |
| | | * 下载的文件名 |
| | | * @return 字节数组 |
| | | * @throws SftpException |
| | | * @throws IOException |
| | | * @throws Exception |
| | | */ |
| | | public InputStream downloadInputStream(String directory, String downloadFile) throws SftpException, IOException { |
| | | if (directory != null && !"".equals(directory)) { |
| | | sftp.cd(directory); |
| | | } |
| | | InputStream is = sftp.get(downloadFile); |
| | | // byte[] fileData = IOUtils.toByteArray(is); |
| | | // log.info("file:{} is download successful", downloadFile); |
| | | return is; |
| | | } |
| | | |
| | | /** |
| | | * 删除文件 |
| | | * |
| | | * @param directory |
| | | * 要删除文件所在目录 |
| | | * @param deleteFile |
| | | * 要删除的文件 |
| | | * @throws SftpException |
| | | * @throws Exception |
| | | */ |
| | | public void delete(String directory, String deleteFile) throws SftpException { |
| | | sftp.cd(directory); |
| | | sftp.rm(deleteFile); |
| | | } |
| | | |
| | | /** |
| | | * 列出目录下的文件 |
| | | * |
| | | * @param directory |
| | | * 要列出的目录 |
| | | * @return |
| | | * @throws SftpException |
| | | */ |
| | | public Vector<?> listFiles(String directory) throws SftpException { |
| | | return sftp.ls(directory); |
| | | } |
| | | |
| | | /** |
| | | * 判断文件或者目录是否存在 |
| | | * |
| | | * @param path |
| | | * 目录或者文件的路径 |
| | | * @return 存在结果 |
| | | */ |
| | | public boolean isExistDir(String path) { |
| | | boolean isExist = false; |
| | | try { |
| | | SftpATTRS sftpATTRS = sftp.lstat(path); |
| | | isExist = true; |
| | | return sftpATTRS.isDir(); |
| | | } catch (Exception e) { |
| | | if (e.getMessage().toLowerCase().equals("no such file")) { |
| | | isExist = false; |
| | | } |
| | | } |
| | | return isExist; |
| | | |
| | | } |
| | | } |
| | |
| | | |
| | | import com.dg.core.Constant; |
| | | import com.dg.core.annotation.Authorization; |
| | | import com.dg.core.db.gen.entity.HuaChengSysUser; |
| | | import com.dg.core.db.gen.entity.SysUser; |
| | | import com.dg.core.manager.TokenManager; |
| | | import com.dg.core.service.IHuaChengSysUserService; |
| | | import org.apache.catalina.connector.ResponseFacade; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.lang.reflect.Method; |
| | | import java.nio.charset.StandardCharsets; |
| | | import java.text.SimpleDateFormat; |
| | | import java.time.ZoneId; |
| | | import java.util.Calendar; |
| | | import java.util.Date; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * 自定义拦截器,判断此次请求是否有权限 |
| | |
| | | @Autowired |
| | | private TokenManager manager; |
| | | |
| | | |
| | | @Autowired |
| | | com.dg.core.service.ISysUserService IUserService; |
| | | |
| | | /** |
| | | * 花城e+用户接口 |
| | | */ |
| | | @Autowired |
| | | IHuaChengSysUserService iHuaChengSysUserService; |
| | | |
| | | @Override |
| | | public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { |
| | |
| | | |
| | | //从header中得到token |
| | | String token = request.getHeader(Constant.AUTHORIZATION); |
| | | if (manager.checkToken(token)) { |
| | | //如果token验证成功,权限检查通过,将token对应的用户id存在request中,便于之后注入 |
| | | request.setAttribute(Constant.CURRENT_USER_ID, manager.getUserId(token)); |
| | | SysUser ss = IUserService.getUserById(manager.getUserId(token)); |
| | | //花城token |
| | | String HCtoken = request.getHeader(Constant.HCAUTHORIZATION); |
| | | |
| | | return true; |
| | | if(StringUtils.isEmpty(token)) |
| | | { |
| | | //花城e+ token |
| | | if (manager.checkHCToken(HCtoken)) { |
| | | //如果token验证成功,权限检查通过,将token对应的用户id存在request中,便于之后注入 |
| | | request.setAttribute(Constant.CURRENT_USER_ID, manager.getHCUserId(HCtoken)); |
| | | System.out.println("花城用户id:"+manager.getHCUserId(HCtoken)); |
| | | SysUser ss = IUserService.selectData(manager.getHCUserId(HCtoken)+""); |
| | | if(ss==null && ss.getUserId()<0) |
| | | { |
| | | HuaChengSysUser huaChengSysUser=iHuaChengSysUserService.selectData(manager.getHCUserId(HCtoken)+"","",""); |
| | | if(huaChengSysUser!=null && huaChengSysUser.getUserId()<0 ) |
| | | { |
| | | //本地没有此用户 新用户 |
| | | SysUser newSysUser=new SysUser(); |
| | | //默认 1系统后台用户 |
| | | newSysUser.setUserType("3"); |
| | | newSysUser.setPhonenumber(huaChengSysUser.getPhone()); |
| | | newSysUser.setUserId(huaChengSysUser.getUserId()); |
| | | newSysUser.setUserName(huaChengSysUser.getNickName()); |
| | | newSysUser.setSex(huaChengSysUser.getSex()); |
| | | newSysUser.setAvatar(huaChengSysUser.getImageUrl()); |
| | | newSysUser.setCreateTime(LocalDateTime.now()); |
| | | newSysUser.setUpdateTime(LocalDateTime.now()); |
| | | newSysUser.setOpenid(huaChengSysUser.getOpenid()); |
| | | IUserService.insertConfig(newSysUser); |
| | | } |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | } |
| | | else |
| | | { |
| | | if (manager.checkToken(token)) { |
| | | //如果token验证成功,权限检查通过,将token对应的用户id存在request中,便于之后注入 |
| | | request.setAttribute(Constant.CURRENT_USER_ID, manager.getUserId(token)); |
| | | // SysUser ss = IUserService.selectData(manager.getUserId(token)+""); |
| | | return true; |
| | | } |
| | | } |
| | | |
| | | //如果验证token失败,并且方法或类注明了Authorization,返回401错误 |
| | | if (method.getAnnotation(Authorization.class) != null || bean.getClass().getAnnotation(Authorization.class) != null) { |
| | | String reponse = "{\"result\": 449, \"message\": \"Overdue token\"}"; |
| | | response.setStatus(200); |
| | | response.setCharacterEncoding(StandardCharsets.UTF_8.toString()); |
| | | ResponseFacade facade = (ResponseFacade) response; |
| | | facade.setContentLength(reponse.getBytes(StandardCharsets.UTF_8).length); |
| | | facade.getWriter().write(reponse); |
| | | return false; |
| | | } |
| | | // if(!StringUtils.isEmpty(token)) |
| | | // { |
| | | //如果验证token失败,并且方法或类注明了Authorization,返回401错误 |
| | | if (method.getAnnotation(Authorization.class) != null || |
| | | bean.getClass().getAnnotation(Authorization.class) != null) |
| | | { |
| | | String reponse = "{\"result\": 449, \"message\": \"Overdue token\"}"; |
| | | response.setStatus(200); |
| | | response.setCharacterEncoding(StandardCharsets.UTF_8.toString()); |
| | | ResponseFacade facade = (ResponseFacade) response; |
| | | facade.setContentLength(reponse.getBytes(StandardCharsets.UTF_8).length); |
| | | facade.getWriter().write(reponse); |
| | | return false; |
| | | } |
| | | // } |
| | | return true; |
| | | } |
| | | } |
New file |
| | |
| | | package com.dg.core.manager; |
| | | |
| | | import com.dg.core.db.gen.entity.HuaChengSysUser; |
| | | import io.jsonwebtoken.Claims; |
| | | import io.jsonwebtoken.Jwts; |
| | | import io.jsonwebtoken.SignatureAlgorithm; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * token验证处理 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @Component |
| | | public class JWTTokenUtil implements Serializable { |
| | | /** |
| | | * 从数据声明生成令牌 |
| | | * |
| | | * @param claims |
| | | * 数据声明 |
| | | * @return 令牌 |
| | | */ |
| | | private static String generateToken(Map<String, Object> claims) { |
| | | Date expirationDate = new Date(System.currentTimeMillis() + TokenConstant.EXPIRETIME_LONG * 60 * 1000 * 72); |
| | | return Jwts.builder().setClaims(claims).setExpiration(expirationDate) |
| | | .signWith(SignatureAlgorithm.HS512, TokenConstant.SECRET).compact(); |
| | | } |
| | | |
| | | /** |
| | | * 生成刷新token |
| | | * |
| | | * @param claims |
| | | * tokenbody |
| | | * @return refreshtoken |
| | | */ |
| | | private static String generateTokenRefreshToken(Map<String, Object> claims) { |
| | | Date expirationDate = new Date(System.currentTimeMillis() + TokenConstant.EXPIRETIME_REFRESH * 60 * 60 * 1000); |
| | | return Jwts.builder().setClaims(claims).setExpiration(expirationDate) |
| | | .signWith(SignatureAlgorithm.HS512, TokenConstant.SECRET).compact(); |
| | | } |
| | | |
| | | /** |
| | | * 从令牌中获取数据声明 |
| | | * |
| | | * @param token |
| | | * 令牌 |
| | | * @return 数据声明 |
| | | */ |
| | | public static Claims getClaimsFromToken(String token) { |
| | | Claims claims; |
| | | try { |
| | | claims = Jwts.parser().setSigningKey(TokenConstant.SECRET).parseClaimsJws(token).getBody(); |
| | | } catch (Exception e) { |
| | | claims = null; |
| | | } |
| | | return claims; |
| | | } |
| | | |
| | | /** |
| | | * 生成令牌 |
| | | * |
| | | * @param loginUserInfoVO |
| | | * 用户 |
| | | * @return 令牌 |
| | | */ |
| | | public static String generateToken(HuaChengSysUser loginUserInfoVO) { |
| | | Map<String, Object> claims = new HashMap<>(2); |
| | | claims.put("sub", loginUserInfoVO.getUserId()); |
| | | claims.put("created", new Date()); |
| | | claims.put("type", loginUserInfoVO.getType()); |
| | | return generateToken(claims); |
| | | } |
| | | |
| | | /** |
| | | * 从令牌中获取用户名 |
| | | * |
| | | * @param token |
| | | * 令牌 |
| | | * @return 用户名 |
| | | */ |
| | | public static String getUsernameFromToken(String token) { |
| | | String username; |
| | | try { |
| | | Claims claims = getClaimsFromToken(token); |
| | | username = claims.getSubject(); |
| | | } catch (Exception e) { |
| | | username = null; |
| | | } |
| | | return username; |
| | | } |
| | | |
| | | /** |
| | | * 判断令牌是否过期 |
| | | * |
| | | * @param token |
| | | * 令牌 |
| | | * @return 是否过期 |
| | | */ |
| | | public static Boolean isTokenExpired(String token) { |
| | | try { |
| | | Claims claims = getClaimsFromToken(token); |
| | | Date expiration = claims.getExpiration(); |
| | | return expiration.before(new Date()); |
| | | } catch (Exception e) { |
| | | return true; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 刷新令牌 |
| | | * |
| | | * @param token |
| | | * 原令牌 |
| | | * @return 新令牌 |
| | | */ |
| | | public static String refreshToken(String token) { |
| | | String refreshedToken; |
| | | try { |
| | | Claims claims = getClaimsFromToken(token); |
| | | claims.put("created", new Date()); |
| | | refreshedToken = generateToken(claims); |
| | | } catch (Exception e) { |
| | | refreshedToken = null; |
| | | } |
| | | return refreshedToken; |
| | | } |
| | | |
| | | /** |
| | | * 验证令牌 |
| | | * |
| | | * @param token |
| | | * 令牌 |
| | | * @param loginUserInfoVO |
| | | * 用户 |
| | | * @return 是否有效 |
| | | */ |
| | | public static Boolean validateToken(String token, HuaChengSysUser loginUserInfoVO) { |
| | | String username = getUsernameFromToken(token); |
| | | return (username.equals(loginUserInfoVO.getUserId()) && !isTokenExpired(token)); |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | Claims claims = JWTTokenUtil.getClaimsFromToken( |
| | | "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOjIsInR5cGUiOjEsImV4cCI6MTYwNjM1NzkzOSwiY3JlYXRlZCI6MTYwNjM1NjEzOTEzN30.zIj31TLHk4B9F45OszrJWfOlhZL5CWviP2RgsFP6LZuci6MlPn0iVbekioP01DRsu59mWd5FMyhd9WLvMtfxMg"); |
| | | Boolean tokenExpired = JWTTokenUtil.isTokenExpired( |
| | | "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOjIsInR5cGUiOjEsImV4cCI6MTYwNjM2MDQzNSwiY3JlYXRlZCI6MTYwNjM1ODYzNTI3MX0.7R3SG6hu-sr_KiPpgepubl_1FdaooCNJ0URHWv6Jynr7m8JIar2kUAnhHfWOfHrNILQb5Q-nqxceXdavcuVOXg"); |
| | | System.out.println(claims); |
| | | } |
| | | |
| | | /** |
| | | * 生成刷新token |
| | | * |
| | | * @param loginUserInfoVO |
| | | * 登录用户基本信息 |
| | | * @return refreshtoken |
| | | */ |
| | | public static String generateRefeshToken(HuaChengSysUser loginUserInfoVO) { |
| | | Map<String, Object> claims = new HashMap<>(2); |
| | | claims.put("sub", loginUserInfoVO.getUserId()); |
| | | claims.put("created", new Date()); |
| | | claims.put("type", loginUserInfoVO.getType()); |
| | | return generateTokenRefreshToken(claims); |
| | | } |
| | | |
| | | } |
| | |
| | | package com.dg.core.manager; |
| | | |
| | | import com.dg.core.Constant; |
| | | import io.jsonwebtoken.Claims; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Qualifier; |
| | | import org.springframework.data.redis.core.RedisTemplate; |
| | | import org.springframework.data.redis.core.script.DigestUtils; |
| | | import org.springframework.data.redis.serializer.JdkSerializationRedisSerializer; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.util.ObjectUtils; |
| | | |
| | | import java.util.UUID; |
| | | import java.util.concurrent.TimeUnit; |
| | |
| | | * 通过Redis存储和验证token的实现类 |
| | | */ |
| | | @Component |
| | | public class RedisTokenManager implements TokenManager { |
| | | |
| | | public class RedisTokenManager implements TokenManager |
| | | { |
| | | private RedisTemplate<String, String> redis; |
| | | |
| | | @Qualifier("redisTemplate") |
| | |
| | | return token; |
| | | } |
| | | |
| | | |
| | | public boolean checkToken(String token) { |
| | | if (token == null) { |
| | | if (StringUtils.isEmpty(token)) { |
| | | return false; |
| | | } |
| | | String userId = redis.boundValueOps(token).get(); |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 验证花城token |
| | | * @param token |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean checkHCToken(String token) { |
| | | if (StringUtils.isEmpty(token)) { |
| | | return false; |
| | | } |
| | | // token解析 |
| | | Claims claims = JWTTokenUtil.getClaimsFromToken(token); |
| | | if (ObjectUtils.isEmpty(claims)) { |
| | | return false; |
| | | } |
| | | String userId = claims.getSubject(); |
| | | if (ObjectUtils.isEmpty(userId)) |
| | | { |
| | | return false; |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public long getUserId(String token) { |
| | | if (token == null) { |
| | |
| | | return Long.parseLong(userId); |
| | | } |
| | | |
| | | /** |
| | | * 获取花城e+的 UserId |
| | | * @param token |
| | | * @return |
| | | */ |
| | | @Override |
| | | public long getHCUserId(String token) { |
| | | if (token == null) { |
| | | return -1; |
| | | } |
| | | // token解析 |
| | | Claims claims = JWTTokenUtil.getClaimsFromToken(token); |
| | | if (ObjectUtils.isEmpty(claims)) { |
| | | return -1; |
| | | } |
| | | String userId = claims.getSubject(); |
| | | if (ObjectUtils.isEmpty(userId)) |
| | | { |
| | | return -1; |
| | | } |
| | | return Long.parseLong(userId); |
| | | } |
| | | |
| | | public void deleteToken(String token) { |
| | | redis.delete(token); |
| | | } |
New file |
| | |
| | | package com.dg.core.manager; |
| | | |
| | | /** |
| | | * @program: springcloud_k8s_panzhihuazhihuishequ |
| | | * @description: token |
| | | * @author: huang.hongfa weixin hhf9596 qq 959656820 |
| | | * @create: 2020-11-24 14:44 |
| | | **/ |
| | | public class TokenConstant { |
| | | |
| | | public static final String TOKEN_HEADER = "Authorization"; |
| | | public static final String TOKEN_LOGOUT = "token_logout"; |
| | | public static final String TOKEN_PRE = "Bearer "; |
| | | public static final String TOKEN_USERINFO = "token_userinfo"; |
| | | /** |
| | | * 30分钟 |
| | | */ |
| | | public static final int EXPIRETIME = 300; |
| | | public static final Long EXPIRETIME_LONG = 300L; |
| | | public static final String SECRET = "UTivpbn%n9O!KnnL"; |
| | | /** |
| | | * 24小时 |
| | | */ |
| | | public static final int EXPIRETIME_REFRESH = 24; |
| | | } |
| | |
| | | */ |
| | | public boolean checkToken(String token); |
| | | |
| | | /** |
| | | * 检查花城token是否有效 |
| | | * @param token |
| | | * @return |
| | | */ |
| | | public boolean checkHCToken(String token); |
| | | |
| | | public long getUserId(String token); |
| | | public long getHCUserId(String token); |
| | | |
| | | public void deleteToken(String token); |
| | | |
| | |
| | | Long currentUserId = (Long) webRequest.getAttribute(Constant.CURRENT_USER_ID, RequestAttributes.SCOPE_REQUEST); |
| | | if (currentUserId != null) { |
| | | //从数据库中查询并返回 |
| | | return userService.getUserById(currentUserId); |
| | | return userService.selectData(currentUserId+""); |
| | | } |
| | | throw new MissingServletRequestPartException(Constant.CURRENT_USER_ID); |
| | | return null; |
| | | // throw new MissingServletRequestPartException(Constant.CURRENT_USER_ID); |
| | | } |
| | | } |
New file |
| | |
| | | package com.dg.core.service; |
| | | |
| | | import com.dg.core.db.gen.entity.ClassifyAdministration; |
| | | import com.dg.core.db.gen.entity.Guidance; |
| | | import com.dg.core.db.gen.entity.GuidePlate; |
| | | import com.dg.core.db.gen.entity.OrganizationEntity; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | public interface HomeStatisticsService |
| | | { |
| | | /** |
| | | * 按办结量排序 |
| | | * @return |
| | | */ |
| | | List<GuidePlate> guidePlatePeople(); |
| | | |
| | | /** |
| | | *按评分排序 |
| | | * @return |
| | | */ |
| | | List<GuidePlate> score(); |
| | | |
| | | /** |
| | | * 按超时 |
| | | * @return |
| | | */ |
| | | List<GuidePlate> timeout(); |
| | | |
| | | /** |
| | | * 评分 |
| | | * @return |
| | | */ |
| | | Integer organizationScore(List<String> ids); |
| | | |
| | | /** |
| | | * 办结量 |
| | | * @return |
| | | */ |
| | | Integer organizationNum(List<String> ids); |
| | | /** |
| | | * 获取一级部门 |
| | | * @return |
| | | */ |
| | | List<OrganizationEntity> getDepartment(); |
| | | |
| | | /** |
| | | * 办事指南根据导办数量排序 |
| | | * @return |
| | | */ |
| | | List<Guidance> guidanceTransaction(); |
| | | |
| | | /** |
| | | * 办事指南根据浏览数量排序 |
| | | * @return |
| | | */ |
| | | List<Guidance> guidanceBrowse(); |
| | | |
| | | /** |
| | | * 导办人员统计数 |
| | | * @return |
| | | */ |
| | | Integer staffNum(); |
| | | |
| | | /** |
| | | * 办事指南数量统计 |
| | | * @return |
| | | */ |
| | | Integer countWork(); |
| | | |
| | | /** |
| | | * 获取统计数据 首页用 勿动 |
| | | */ |
| | | int countStatisticsNum(List<String> classifyIds); |
| | | |
| | | |
| | | /** |
| | | * 首页统计用 |
| | | * @param parentId |
| | | * @param classifyGrade |
| | | * @return |
| | | */ |
| | | public List<ClassifyAdministration> getClassify(@Param("parentId") String parentId, |
| | | @Param("classifyGrade") String classifyGrade); |
| | | |
| | | } |
| | |
| | | package com.dg.core.service; |
| | | |
| | | import com.dg.core.db.gen.entity.AreaCode2022; |
| | | import com.dg.core.db.gen.entity.OrganizationChartEntity; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | * @return |
| | | */ |
| | | List<AreaCode2022> getAreaCodeByTransactionId(Integer transactionId); |
| | | |
| | | /** |
| | | * 根据pcode获取所属地区 |
| | | * @return |
| | | */ |
| | | List<AreaCode2022> getListByPCode(String id); |
| | | } |
New file |
| | |
| | | package com.dg.core.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.db.gen.entity.AutomessageCommonProblem; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | public interface IAutomessageCommonProblemService { |
| | | |
| | | /** |
| | | * 获取常见问题列表(不分页) |
| | | * @return |
| | | */ |
| | | List<AutomessageCommonProblem> selectList(); |
| | | |
| | | /** |
| | | * 获取常见问题列表(分页) |
| | | * @param page |
| | | * @param state |
| | | * @return |
| | | */ |
| | | List<AutomessageCommonProblem> selectConfigList(IPage<AutomessageCommonProblem> page, Integer state, String title, String content); |
| | | |
| | | /** |
| | | * 获取常见问题列表(不分页查找) |
| | | * @return |
| | | */ |
| | | List<AutomessageCommonProblem> selectConfigList(String title, String content); |
| | | |
| | | |
| | | /** |
| | | * 获取常见问题列表统计数量 |
| | | * @return |
| | | */ |
| | | Integer countAutomessageCommonProblem( String title, String content); |
| | | |
| | | |
| | | /** |
| | | * 添加常见问题数据 |
| | | * @return |
| | | */ |
| | | ResultData add(AutomessageCommonProblem automessageCommonProblem); |
| | | |
| | | /** |
| | | * 修改常见问题数据 |
| | | * @return |
| | | */ |
| | | ResultData update(AutomessageCommonProblem automessageCommonProblem); |
| | | |
| | | /** |
| | | * 删除常见问题数据 |
| | | * @return |
| | | */ |
| | | ResultData delete(Integer id); |
| | | |
| | | |
| | | } |
| | |
| | | package com.dg.core.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.db.gen.entity.ClassifyAdministration; |
| | | import com.dg.core.db.gen.entity.TransactionEvent; |
| | | import org.springframework.data.repository.query.Param; |
| | |
| | | * @return |
| | | */ |
| | | List<ClassifyAdministration> selectRootList (IPage<ClassifyAdministration> page, Integer stat,String parentId,Integer departmentId); |
| | | |
| | | |
| | | /** |
| | | * 获取分类根据id 如果是二级id则获取的是办事指南 |
| | | * @return |
| | | */ |
| | | ResultData queryListById(Integer id); |
| | | |
| | | /** |
| | | * 根据上级id查询子分类 |
| | | * @param parentId |
| | | * @return |
| | | */ |
| | | List<String> selectParent(String parentId); |
| | | |
| | | |
| | | } |
| | |
| | | * @param Name |
| | | * @return |
| | | */ |
| | | public List<ElseAccessoryEntity> selectConfigList(IPage<ElseAccessoryEntity> page, Integer state, @Param("Name") String Name); |
| | | public List<ElseAccessoryEntity> selectConfigList(IPage<ElseAccessoryEntity> page, Integer state, |
| | | String Name,List<String> ids); |
| | | |
| | | /** |
| | | * 获取附件列表全部 |
| | | * @param Name |
| | | * @return |
| | | */ |
| | | public List<ElseAccessoryEntity> selectConfigList(String Name); |
| | | public List<ElseAccessoryEntity> selectConfigList(String Name,List<String> ids); |
| | | |
| | | |
| | | /** |
| | |
| | | * @param Name |
| | | * @return |
| | | */ |
| | | public int countNum(String Name); |
| | | public int countNum(String Name,List<String> ids); |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | |
| | | import com.dg.core.db.gen.entity.GuideEvolveEntity; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | */ |
| | | public int countNum(); |
| | | |
| | | /** |
| | | * 更新工单id为空的脏数据 |
| | | * @return |
| | | */ |
| | | int updateGuid(); |
| | | /** |
| | | * 首页统计用 |
| | | * @return |
| | | */ |
| | | int countStatisticsNum(String state,String isTimeout); |
| | | } |
| | |
| | | package com.dg.core.service; |
| | | |
| | | import com.dg.core.db.gen.entity.GuideRepairOrder; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.dg.core.db.gen.entity.*; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | public interface IGuideRepairOrderService { |
| | | |
| | |
| | | */ |
| | | public int updateConfig(GuideRepairOrder order); |
| | | |
| | | /** |
| | | * 获取个人中心工单数据 |
| | | * @param submitUserId |
| | | * @return |
| | | */ |
| | | List<GuideRepairOrder> selectBySubmitId(String submitUserId); |
| | | |
| | | /** |
| | | * 获取工单列表(分页) |
| | | * @param matterName |
| | | * @return |
| | | */ |
| | | List<GuideRepairOrder> selectConfigList(IPage<GuideRepairOrder> page, Integer state,String matterName,List<String> ids); |
| | | |
| | | |
| | | /** |
| | | * 获取工单列表(求和) |
| | | * @param matterName |
| | | * @return |
| | | */ |
| | | int countConfigList(String matterName,List<String> ids); |
| | | |
| | | |
| | | /** |
| | | * 很具用户id查询是否有对应工单 |
| | | * @return |
| | | */ |
| | | int countUser(String userId,String state); |
| | | |
| | | /** |
| | | * 根据进展类修改用户代办数量 |
| | | * @param order |
| | | * @return |
| | | */ |
| | | int updateSysUserOrderNum(GuideEvolveEntity order); |
| | | |
| | | /** |
| | | * 统计工单用 1 今天 2昨天 3本月 4本年度 String time |
| | | * @return |
| | | */ |
| | | int countStatisticsNum(String state,List<String> ids,String time,String isTimeout,String evaluateState,List<String> classifyIds); |
| | | |
| | | |
| | | List<CountListNum> countListNum(String state, |
| | | List<String> ids, |
| | | Integer time); |
| | | |
| | | /** |
| | | * 获取提工单提交交人员信息 |
| | | * @return |
| | | */ |
| | | SysUser getSubmitUser(GuideRepairOrder guideRepairOrder); |
| | | |
| | | } |
New file |
| | |
| | | package com.dg.core.service; |
| | | |
| | | import com.dg.core.db.gen.entity.HuaChengSysUser; |
| | | |
| | | import java.util.List; |
| | | |
| | | public interface IHuaChengSysUserService |
| | | { |
| | | public List<HuaChengSysUser> selectConfigList(); |
| | | |
| | | public HuaChengSysUser selectData(String userId,String account,String phone); |
| | | |
| | | public int selectNum(); |
| | | } |
| | |
| | | package com.dg.core.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.dg.core.db.gen.entity.OrganizationChartEntity; |
| | | |
| | | import java.util.List; |
| | |
| | | * 根据id查取消组织机构 |
| | | */ |
| | | OrganizationChartEntity selectConfigById(String id); |
| | | |
| | | /** |
| | | * 查询机构列表(分页) |
| | | */ |
| | | List<OrganizationChartEntity> queryList(IPage<OrganizationChartEntity> page, Integer state, String organizationName); |
| | | |
| | | |
| | | /** |
| | | * 统计数量(部门应用) |
| | | */ |
| | | int countList(String organizationName); |
| | | |
| | | /** |
| | | * 获取部门下子部门的全部id |
| | | * @param id |
| | | * @return |
| | | */ |
| | | List<String> getIds(String id); |
| | | |
| | | |
| | | /** |
| | | * 根据id 查询是否有子部门 |
| | | * @param parentId |
| | | * @param grade |
| | | * @return |
| | | */ |
| | | public List<OrganizationChartEntity> selectParentList(String parentId,String grade); |
| | | |
| | | } |
| | |
| | | * 获取模板列表 |
| | | * @return |
| | | */ |
| | | public List<ReplyTemplateEntity> selectConfigList(IPage<ReplyTemplateEntity> page, Integer state,String Name); |
| | | public List<ReplyTemplateEntity> selectConfigList(IPage<ReplyTemplateEntity> page, Integer state, |
| | | String Name,List<String> ids); |
| | | |
| | | /** |
| | | * 获取详情 |
| | |
| | | * 获取数量 |
| | | * @return |
| | | */ |
| | | public int countNum(String Name); |
| | | public int countNum(String Name,List<String> ids); |
| | | |
| | | } |
New file |
| | |
| | | package com.dg.core.service; |
| | | |
| | | import com.dg.core.db.gen.entity.RoleMenuEntity; |
| | | |
| | | import java.util.List; |
| | | |
| | | public interface IRoleMenuService |
| | | { |
| | | /** |
| | | * 根据角色获取菜单id |
| | | * @param roleId |
| | | * @return |
| | | */ |
| | | public List<RoleMenuEntity> selectConfigList(String roleId); |
| | | |
| | | /** |
| | | * 新增 |
| | | * @param entity |
| | | * @return |
| | | */ |
| | | public int insertConfig(RoleMenuEntity entity); |
| | | |
| | | /** |
| | | * 编辑 |
| | | * @param entity |
| | | * @return |
| | | */ |
| | | public int updateConfig(RoleMenuEntity entity); |
| | | |
| | | |
| | | /** |
| | | * 删除 |
| | | * @param Id |
| | | * @return |
| | | */ |
| | | public int deleteConfigById(String Id); |
| | | } |
| | |
| | | package com.dg.core.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.db.gen.entity.SysUser; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | public interface ISysUserService { |
| | | SysUser getUserById(Long id); |
| | | public interface ISysUserService |
| | | { |
| | | SysUser getUserByAccount(String account); |
| | | /** |
| | | * 查询聊天列表 |
| | |
| | | */ |
| | | public List<SysUser> selectConfigList(IPage<SysUser> page, Integer state,String userType); |
| | | |
| | | |
| | | SysUser selectData(String userId); |
| | | |
| | | /** |
| | | * 新增聊天记录 |
| | |
| | | */ |
| | | public int deleteConfigById(String id); |
| | | |
| | | |
| | | /** |
| | | * 获取数据库总条数(批量) |
| | | * |
| | |
| | | */ |
| | | public int selectNum(String userType); |
| | | |
| | | /** |
| | | * 发送验证码(如果没有该用户则新建用户) |
| | | * |
| | | * @return 结果 |
| | | */ |
| | | ResultData smsSend(SysUser user); |
| | | |
| | | /** |
| | | * 验证码登录 |
| | | * |
| | | * @return 结果 |
| | | */ |
| | | ResultData loginByAccount(String phonenumber, String code); |
| | | |
| | | /** |
| | | * 根据部门id及分类id获取导办用户 |
| | | * |
| | | * @return 结果 |
| | | */ |
| | | List<SysUser> selectListByDepartmentId(String departmentId,String classifyId); |
| | | |
| | | /** |
| | | * 通过手机号获取用户信息 |
| | | * |
| | | * @return 结果 |
| | | */ |
| | | ResultData loginByPhonenumber(String phonenumber); |
| | | |
| | | /** |
| | | * 查询用户列表(不分页) |
| | | * @param userType 用户类型 |
| | | * @return 结果 |
| | | */ |
| | | List<SysUser> queryList(Integer userType); |
| | | |
| | | |
| | | } |
| | |
| | | package com.dg.core.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.dg.core.db.gen.entity.SysUser; |
| | | import com.dg.core.db.gen.entity.TransactionEvent; |
| | | import com.dg.core.db.manual.pojo.QueryResults; |
| | | import com.dg.core.db.manual.pojo.RecommendResult; |
| | | import com.dg.core.db.manual.pojo.Search; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | * @param Id |
| | | * @return |
| | | */ |
| | | public TransactionEvent selectConfigData(String Id); |
| | | public TransactionEvent selectConfigData(String Id, SysUser sysUser); |
| | | |
| | | /** |
| | | * 导办事物列表 |
| | | * @return |
| | | */ |
| | | public List<TransactionEvent> selectConfigList(IPage<TransactionEvent> page, Integer state, |
| | | String matterAndUser, String classifyGrade); |
| | | String matterAndUser, String classifyGrade, |
| | | List<String> ids); |
| | | |
| | | /** |
| | | * 新增导办事务 |
| | |
| | | * 统计数量 |
| | | * @return |
| | | */ |
| | | public int countNum(String matterAndUser,String classifyGrade); |
| | | public int countNum(String matterAndUser,String classifyGrade,List<String> ids); |
| | | |
| | | /** |
| | | * 导办事务搜索 |
| | |
| | | * @return |
| | | */ |
| | | QueryResults queryMatterNameList(IPage<Search> page, Integer state,Integer recommendSize, String keyWord); |
| | | |
| | | |
| | | /** |
| | | * 导办事务搜索(无分页用于小程序) |
| | | * @param keyWord |
| | | * @return |
| | | */ |
| | | QueryResults queryMatterNameList(String keyWord); |
| | | |
| | | /** |
| | | * 导办事务搜索统计数量 |
| | |
| | | int countNumByMatterName(String matterName); |
| | | |
| | | /** |
| | | * 根据分离查询导办事务 |
| | | * 根据分类id查询导办事务 |
| | | * @param classifyId |
| | | * @return |
| | | */ |
| | | List<TransactionEvent> queryByClassifyIdList(String classifyId,Integer departmentId); |
| | | |
| | | |
| | | /** |
| | | * 根据分类id查询导办事务(分页) |
| | | * @param classifyId |
| | | * @return |
| | | */ |
| | | List<TransactionEvent> queryByClassifyIdList(IPage<TransactionEvent> page, Integer state,String classifyId,Integer departmentId); |
| | | |
| | | /** |
| | | * 根据查询时间查询导办事务 |
| | |
| | | * @return |
| | | */ |
| | | RecommendResult smartConsulting(String keyWord); |
| | | |
| | | |
| | | /** |
| | | * 根据部门判断是否有事项名称重复 |
| | | */ |
| | | String selectDataIfExist(@Param("departmentId") String departmentId, |
| | | @Param("matterName") String matterName); |
| | | |
| | | |
| | | /** |
| | | * 根据办事分类获取办事指南 |
| | | */ |
| | | List<String> selectclassifyId(String classifyId); |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | |
| | | @Service |
| | |
| | | |
| | | @Override |
| | | public List<AreaCode2022> getAreaCodeByTransactionId(Integer transactionId){ |
| | | // HashMap<Object, Object> objectObjectHashMap = new HashMap<>(); |
| | | TransactionEvent transactionEvent = transactionEventMapper.selectOne(new QueryWrapper<TransactionEvent>().lambda(). |
| | | eq(TransactionEvent::getId, transactionId)); |
| | | OrganizationChartEntity organizationChartEntity = organizationChartMapper.selectOne(new QueryWrapper<OrganizationChartEntity>().lambda() |
| | |
| | | areaCodes.add(organizationChartEntity.getVillage()); |
| | | getAreaCodeIds(areaCodes,organizationChartEntity); |
| | | } |
| | | return baseMapper.selectByIdSet(areaCodes); |
| | | if (areaCodes.size()==0) |
| | | return null; |
| | | else |
| | | return baseMapper.selectByIdSet(areaCodes); |
| | | } |
| | | |
| | | |
| | | public List<String> getAreaCodeIds(List<String> areaCodes, OrganizationChartEntity organizationChartEntity){ |
| | | organizationChartEntity = organizationChartMapper.selectOne(new QueryWrapper<OrganizationChartEntity>().lambda() |
| | | List<OrganizationChartEntity> organizationChartEntitys= organizationChartMapper.selectList(new QueryWrapper<OrganizationChartEntity>().lambda() |
| | | .eq(OrganizationChartEntity::getParentId, organizationChartEntity.getId())); |
| | | if (organizationChartEntity!=null){ |
| | | if (organizationChartEntity.getCity()!=null) |
| | | areaCodes.add(organizationChartEntity.getCity()); |
| | | if (organizationChartEntity.getDistrict()!=null) |
| | | areaCodes.add(organizationChartEntity.getDistrict()); |
| | | if (organizationChartEntity.getVillage()!=null) |
| | | areaCodes.add(organizationChartEntity.getVillage()); |
| | | getAreaCodeIds(areaCodes,organizationChartEntity); |
| | | for (OrganizationChartEntity organizationChart:organizationChartEntitys) { |
| | | if (organizationChart.getCity()!=null) |
| | | areaCodes.add(organizationChart.getCity()); |
| | | if (organizationChart.getDistrict()!=null) |
| | | areaCodes.add(organizationChart.getDistrict()); |
| | | if (organizationChart.getVillage()!=null) |
| | | areaCodes.add(organizationChart.getVillage()); |
| | | getAreaCodeIds(areaCodes,organizationChart); |
| | | } |
| | | return areaCodes; |
| | | } |
| | | |
| | | @Override |
| | | public List<AreaCode2022> getListByPCode(String id){ |
| | | List<AreaCode2022> areaCode2022s = baseMapper.selectList(new QueryWrapper<AreaCode2022>().lambda().eq(AreaCode2022::getPcode, id)); |
| | | for (AreaCode2022 areaCode2022:areaCode2022s) { |
| | | if (areaCode2022.getLevel()!=3) |
| | | areaCode2022.setChild(this.getListByPCode(areaCode2022.getCode().toString())); |
| | | } |
| | | return areaCode2022s; |
| | | } |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.dg.core.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.db.gen.entity.AutomessageCommonProblem; |
| | | import com.dg.core.db.gen.mapper.AutomessageCommonProblemMapper; |
| | | import com.dg.core.service.IAutomessageCommonProblemService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | @Service |
| | | public class AutomessageCommonProblemServiceImpl extends ServiceImpl<AutomessageCommonProblemMapper, AutomessageCommonProblem> implements IAutomessageCommonProblemService { |
| | | |
| | | @Override |
| | | public List<AutomessageCommonProblem> selectList(){ |
| | | return baseMapper.selectList(new QueryWrapper<AutomessageCommonProblem>().lambda()); |
| | | } |
| | | |
| | | @Override |
| | | public List<AutomessageCommonProblem> selectConfigList(IPage<AutomessageCommonProblem> page, Integer state, String title, String content) { |
| | | return baseMapper.selectConfigList(page,state,title,content); |
| | | } |
| | | |
| | | @Override |
| | | public List<AutomessageCommonProblem> selectConfigList(String title, String content) { |
| | | return baseMapper.selectConfigList(title,content); |
| | | } |
| | | |
| | | @Override |
| | | public Integer countAutomessageCommonProblem( String title, String content){ |
| | | return baseMapper.countConfigList(title,content); |
| | | } |
| | | |
| | | @Override |
| | | public ResultData add(AutomessageCommonProblem automessageCommonProblem){ |
| | | if (automessageCommonProblem.getContent()==null){ |
| | | return ResultData.error("常见问题不能空"); |
| | | } |
| | | if (automessageCommonProblem.getTitle()==null){ |
| | | return ResultData.error("回答内容题不能空"); |
| | | } |
| | | automessageCommonProblem.setCreateTime(LocalDateTime.now()); |
| | | automessageCommonProblem.setUpdateTime(LocalDateTime.now()); |
| | | int insert = baseMapper.insert(automessageCommonProblem); |
| | | if (insert>0){ |
| | | return ResultData.success(); |
| | | } |
| | | else { |
| | | return ResultData.error("添加失败"); |
| | | } |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public ResultData update(AutomessageCommonProblem automessageCommonProblem){ |
| | | if (automessageCommonProblem.getContent()==null){ |
| | | return ResultData.error("常见问题不能空"); |
| | | } |
| | | if (automessageCommonProblem.getTitle()==null){ |
| | | return ResultData.error("回答内容题不能空"); |
| | | } |
| | | automessageCommonProblem.setUpdateTime(LocalDateTime.now()); |
| | | int i = baseMapper.updateById(automessageCommonProblem); |
| | | if (i>0){ |
| | | return ResultData.success(); |
| | | } |
| | | else { |
| | | return ResultData.error("修改失败"); |
| | | } |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public ResultData delete(Integer id){ |
| | | int i = baseMapper.deleteById(id); |
| | | if (i>0){ |
| | | return ResultData.success(); |
| | | } |
| | | else { |
| | | return ResultData.error("删除失败"); |
| | | } |
| | | } |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.db.gen.entity.ClassifyAdministration; |
| | | import com.dg.core.db.gen.entity.TransactionEvent; |
| | | import com.dg.core.db.gen.mapper.ClassifyAdministrationMapper; |
| | | import com.dg.core.db.gen.mapper.TransactionEventMapper; |
| | | import com.dg.core.service.IClassifyAdministrationService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | @Service |
| | | public class ClassifyAdministrationImpl extends ServiceImpl<ClassifyAdministrationMapper, ClassifyAdministration> |
| | | implements IClassifyAdministrationService |
| | | { |
| | | |
| | | |
| | | @Resource |
| | | private TransactionEventMapper transactionEventMapper; |
| | | |
| | | @Override |
| | | public List<ClassifyAdministration> selectConfigList(String classifyName, String classifyGrade) { |
| | |
| | | } |
| | | |
| | | @Override |
| | | public ResultData queryListById(Integer id){ |
| | | if (id.equals(0)){ |
| | | return ResultData.success(baseMapper.selectList(new QueryWrapper<ClassifyAdministration>().lambda() |
| | | .eq(ClassifyAdministration::getParentId,0))); |
| | | } |
| | | ClassifyAdministration classifyAdministration = baseMapper.selectOne(new QueryWrapper<ClassifyAdministration>().lambda() |
| | | .eq(ClassifyAdministration::getId, id)); |
| | | if (classifyAdministration.getClassifyGrade().equals("1")){ |
| | | return ResultData.success(baseMapper.selectList(new QueryWrapper<ClassifyAdministration>().lambda() |
| | | .eq(ClassifyAdministration::getParentId,classifyAdministration.getId()))); |
| | | }else if (classifyAdministration.getClassifyGrade().equals("2")){ |
| | | return ResultData.success(transactionEventMapper.queryByClassifyIdList(id.toString(),null)); |
| | | } |
| | | return ResultData.error(); |
| | | } |
| | | |
| | | @Override |
| | | public List<String> selectParent(String parentId) { |
| | | return baseMapper.selectParent(parentId); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public int insertConfig(ClassifyAdministration entity) { |
| | | return baseMapper.insertConfig(entity); |
| | | } |
| | |
| | | { |
| | | |
| | | @Override |
| | | public List<ElseAccessoryEntity> selectConfigList(IPage<ElseAccessoryEntity> page, Integer state, String Name) { |
| | | return baseMapper.selectConfigList(page,state,Name); |
| | | public List<ElseAccessoryEntity> selectConfigList(IPage<ElseAccessoryEntity> page, Integer state, |
| | | String Name,List<String> ids) { |
| | | return baseMapper.selectConfigList(page,state,Name, ids); |
| | | } |
| | | |
| | | @Override |
| | | public List<ElseAccessoryEntity> selectConfigList(String Name) { |
| | | return baseMapper.selectConfigList(Name); |
| | | public List<ElseAccessoryEntity> selectConfigList(String Name,List<String> ids) { |
| | | return baseMapper.selectConfigList(Name,ids); |
| | | } |
| | | |
| | | @Override |
| | |
| | | } |
| | | |
| | | @Override |
| | | public int countNum(String Name) { |
| | | return baseMapper.countNum(Name); |
| | | public int countNum(String Name,List<String> ids) { |
| | | return baseMapper.countNum(Name,ids); |
| | | } |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.dg.core.db.gen.entity.GuideEvolveEntity; |
| | | import com.dg.core.db.gen.entity.SysUser; |
| | | import com.dg.core.db.gen.mapper.ElseAccessoryMapper; |
| | | import com.dg.core.db.gen.mapper.GuideEvolveMapper; |
| | | import com.dg.core.db.gen.mapper.TransactionEventMapper; |
| | | import com.dg.core.service.IGuideEvolveService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | @Service |
| | | public class GuideEvolveImpl extends ServiceImpl<GuideEvolveMapper, GuideEvolveEntity> implements IGuideEvolveService |
| | | { |
| | | |
| | | |
| | | @Resource |
| | | private ElseAccessoryMapper elseAccessoryMapper; |
| | | |
| | | @Resource |
| | | private TransactionEventMapper transactionEventMapper; |
| | | |
| | | @Override |
| | | public List<GuideEvolveEntity> selectConfigList(String guideId) { |
| | | return baseMapper.selectConfigList(guideId); |
| | | List<GuideEvolveEntity> guideEvolveEntities = baseMapper.selectConfigList(guideId); |
| | | for (GuideEvolveEntity guideEvolveEntity: guideEvolveEntities) { |
| | | String[] split; |
| | | if (guideEvolveEntity.getAccessoryId()!=null){ |
| | | split = guideEvolveEntity.getAccessoryId().split(","); |
| | | guideEvolveEntity.setElseAccessoryEntities( elseAccessoryMapper.selectListByIds(split)); |
| | | } |
| | | if (guideEvolveEntity.getTransactionId()!=null){ |
| | | split=guideEvolveEntity.getTransactionId().split(","); |
| | | guideEvolveEntity.setTransactionEvents(transactionEventMapper.selectListByIds(split)); |
| | | } |
| | | } |
| | | return guideEvolveEntities; |
| | | } |
| | | |
| | | @Override |
| | |
| | | public int countNum() { |
| | | return baseMapper.countNum(); |
| | | } |
| | | |
| | | @Override |
| | | public int updateGuid() { |
| | | return baseMapper.updateGuid(); |
| | | } |
| | | |
| | | @Override |
| | | public int countStatisticsNum(String state, String isTimeout) { |
| | | return baseMapper.countStatisticsNum(state,isTimeout); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | package com.dg.core.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.dg.core.db.gen.entity.GuideRepairOrder; |
| | | import com.dg.core.db.gen.entity.GuideRepairOrderImage; |
| | | import com.dg.core.db.gen.entity.Slideshow; |
| | | import com.dg.core.db.gen.entity.TransactionEvent; |
| | | import com.dg.core.db.gen.mapper.GuideRepairOrderImageMapper; |
| | | import com.dg.core.db.gen.mapper.GuideRepairOrderMapper; |
| | | import com.dg.core.db.gen.mapper.TransactionEventMapper; |
| | | import com.dg.core.db.gen.entity.*; |
| | | import com.dg.core.db.gen.mapper.*; |
| | | import com.dg.core.service.IGuideRepairOrderService; |
| | | import com.dg.core.util.SmsUtil; |
| | | import com.dg.core.util.Snowflake; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.time.LocalDateTime; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | @Service |
| | | public class GuideRepairOrderServiceImpl extends ServiceImpl<GuideRepairOrderMapper, GuideRepairOrder> implements IGuideRepairOrderService { |
| | | public class GuideRepairOrderServiceImpl extends ServiceImpl<GuideRepairOrderMapper, GuideRepairOrder> |
| | | implements IGuideRepairOrderService { |
| | | |
| | | @Resource |
| | | private TransactionEventMapper transactionEventMapper; |
| | | |
| | | @Resource |
| | | private GuideRepairOrderImageMapper guideRepairOrderImageMapper; |
| | | |
| | | @Resource |
| | | private SysUserMapper sysUserMapper; |
| | | |
| | | @Resource |
| | | private OrganizationChartMapper organizationChartMapper; |
| | | |
| | | @Resource |
| | | private GuideEvolveMapper guideEvolveMapper; |
| | | |
| | | @Resource |
| | | SmsUtil smsUtil; |
| | | |
| | | @Override |
| | | public int addOrder(GuideRepairOrder guideRepairOrder){ |
| | |
| | | guideRepairOrder.setMatterName(transactionEvent.getMatterName()); |
| | | guideRepairOrder.setDepartmentId(transactionEvent.getDepartmentId()); |
| | | guideRepairOrder.setClassifyId(transactionEvent.getClassifyId()); |
| | | guideRepairOrder.setState("1"); |
| | | List<String> departmentIds=new ArrayList<>(); |
| | | Boolean isAdd=true;//是否能够新建工单 |
| | | List<GuideRepairOrder> guideRepairOrders = baseMapper.selectList(new QueryWrapper<GuideRepairOrder>().lambda() |
| | | .eq(GuideRepairOrder::getMatterId, guideRepairOrder.getMatterId()) |
| | | .eq(GuideRepairOrder::getConsultContent, guideRepairOrder.getConsultContent())); |
| | | if (guideRepairOrders.size()==0){ |
| | | isAdd=true; |
| | | }else { |
| | | for (GuideRepairOrder guideRepair:guideRepairOrders) { |
| | | if (guideRepair.getState().equals("1")||guideRepair.getState().equals("2")||guideRepair.getState().equals("6")||guideRepair.getState().equals("7")){ |
| | | isAdd=false; |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | if (isAdd) { |
| | | //自动分配业务代码开始 |
| | | List<OrganizationChartEntity> organizationChartEntities = organizationChartMapper.selectByCode(guideRepairOrder.getAreaCode()); |
| | | if (organizationChartEntities!=null){ |
| | | for (OrganizationChartEntity organizationChart:organizationChartEntities) { |
| | | departmentIds.add(organizationChart.getId().toString()); |
| | | } |
| | | List<SysUser> sysUsers = sysUserMapper.selectListByDepartmentId(departmentIds, "," + transactionEvent.getClassifyId(), transactionEvent.getClassifyId() + ",");//获取导半人员 |
| | | if (sysUsers.size()==0) {//如果此所属地区部门没有导半人员则看其下级地区有没有相关分类导办人员 |
| | | for (OrganizationChartEntity organizationChart:organizationChartEntities) { |
| | | //获取下级部门 |
| | | List<OrganizationChartEntity> organizationChartEntitiesUser = organizationChartMapper.selectList(new QueryWrapper<OrganizationChartEntity>().lambda() |
| | | .eq(OrganizationChartEntity::getParentId, organizationChart.getId().toString())); |
| | | if (organizationChartEntitiesUser!=null) |
| | | departmentIds=this.getDepartmentIds(organizationChartEntitiesUser,departmentIds); |
| | | } |
| | | sysUsers = sysUserMapper.selectListByDepartmentId(departmentIds, "," + transactionEvent.getClassifyId(), transactionEvent.getClassifyId() + ",");//获取导半人员 |
| | | if (sysUsers.size()==0){//如果其下级部门仍没有该分类的导半人员则查询所以该所属地区的导办人员 |
| | | sysUsers = sysUserMapper.selectListByDepartmentId(departmentIds,null,null);//获取导半人员 |
| | | if(sysUsers.size()==0)//如果该所属地区没有导办人员则为特殊单据需要手动分配 |
| | | guideRepairOrder.setState("1"); |
| | | } |
| | | } |
| | | if (sysUsers.size()>0){//系统分配导办人员 |
| | | SysUser sysUser = sysUsers.get(0);//因为sql用了升序排序所以第一条就是待办结最少的人员之一 |
| | | guideRepairOrder.setState("2"); |
| | | sysUser.setTransactionNum(sysUser.getTransactionNum()+1); |
| | | sysUserMapper.updateById(sysUser); |
| | | guideRepairOrder.setGuideUserId(sysUser.getUserId().toString()); |
| | | guideRepairOrder.setGuideDepartmentId(sysUser.getDepartmentId()); |
| | | //新增分配记录 |
| | | GuideEvolveEntity entity=new GuideEvolveEntity(); |
| | | entity.setCreateTime(LocalDateTime.now()); |
| | | entity.setUpdateTime(LocalDateTime.now()); |
| | | entity.setState("10"); |
| | | entity.setDepartmentalId(sysUser.getDepartmentId()); |
| | | entity.setToUserId(guideRepairOrder.getGuideUserId()+""); |
| | | entity.setFromUserId(guideRepairOrder.getSubmitUserId()); |
| | | entity.setFromDepartmentalId(guideRepairOrder.getGuideDepartmentId()); |
| | | entity.setGuidOrderNum(guideRepairOrder.getOrderNum()); |
| | | // smsUtil.sendSmsOvertime(sysUser.getPhonenumber(),guideRepairOrder.getMatterName()); |
| | | guideEvolveMapper.insertConfig(entity); |
| | | } |
| | | } |
| | | else{//如果该办事指南用户所选所属地区无导半部门则为特殊单据需要手动分配 |
| | | guideRepairOrder.setState("1"); |
| | | } |
| | | //自动分配业务代码结束 |
| | | guideRepairOrder.setCreateTime(LocalDateTime.now()); |
| | | guideRepairOrder.setUpdateTime(LocalDateTime.now()); |
| | | transactionEvent.setTransactionNum(transactionEvent.getTransactionNum()+1); |
| | | String[] images = guideRepairOrder.getImages().split(","); |
| | | for (String image: images) { |
| | | //保存图片地址 |
| | | if (guideRepairOrder.getImages()!=null){ |
| | | String[] images = guideRepairOrder.getImages().split(","); |
| | | for (String image: images) { |
| | | GuideRepairOrderImage guideRepairOrderImage = new GuideRepairOrderImage(); |
| | | guideRepairOrderImage.setId(Snowflake.getId()); |
| | | guideRepairOrderImage.setGuideRepairOrderId(guideRepairOrder.getOrderNum()); |
| | | guideRepairOrderImage.setUrl(image); |
| | | guideRepairOrderImage.setCreateTime(LocalDateTime.now()); |
| | | guideRepairOrderImage.setType(1); |
| | | guideRepairOrderImageMapper.insert(guideRepairOrderImage); |
| | | } |
| | | } |
| | | //保存视频地址 |
| | | if (guideRepairOrder.getVideo()!=null){ |
| | | if (guideRepairOrder.getOrderNum()!=null){ |
| | | GuideRepairOrderImage guideRepairOrderImage = new GuideRepairOrderImage(); |
| | | guideRepairOrderImage.setId(Snowflake.getId()); |
| | | guideRepairOrderImage.setGuideRepairOrderId(guideRepairOrder.getOrderNum()); |
| | | guideRepairOrderImage.setUrl(guideRepairOrder.getVideo()); |
| | | guideRepairOrderImage.setCreateTime(LocalDateTime.now()); |
| | | guideRepairOrderImage.setType(2); |
| | | guideRepairOrderImageMapper.insert(guideRepairOrderImage); |
| | | } |
| | | } |
| | | |
| | | int ans= baseMapper.insert(guideRepairOrder); |
| | | int i = transactionEventMapper.updateById(transactionEvent); |
| | | if (ans>0&&i>0) |
| | | return 1; |
| | | else |
| | | return 0; |
| | | } |
| | | else { |
| | | return 0; |
| | | } |
| | | } |
| | | |
| | | public List<String> getDepartmentIds( List<OrganizationChartEntity> organizationChartEntities,List<String> departmentIds){ |
| | | for (OrganizationChartEntity organizationChart:organizationChartEntities) { |
| | | departmentIds.add(organizationChart.getId().toString()); |
| | | List<OrganizationChartEntity> organizationChartEntitiesUser = organizationChartMapper.selectList(new QueryWrapper<OrganizationChartEntity>().lambda() |
| | | .eq(OrganizationChartEntity::getParentId, organizationChart.getId().toString())); |
| | | if (organizationChartEntitiesUser!=null) |
| | | departmentIds=this.getDepartmentIds(organizationChartEntitiesUser,departmentIds); |
| | | |
| | | } |
| | | return departmentIds; |
| | | } |
| | | |
| | | @Override |
| | |
| | | |
| | | @Override |
| | | public int updateConfig(GuideRepairOrder order) { |
| | | if ( order.getGuideUserId()!=null&&!order.getGuideUserId().equals("")) |
| | | { |
| | | SysUser sysUser = sysUserMapper.selectOne(new QueryWrapper<SysUser>().lambda().eq(SysUser::getUserId, order.getGuideUserId())); |
| | | order.setGuideUserPhone(sysUser.getPhonenumber()); |
| | | } |
| | | return baseMapper.updateConfig(order); |
| | | } |
| | | |
| | | @Override |
| | | public List<GuideRepairOrder> selectBySubmitId(String submitUserId) { |
| | | return baseMapper.selectBySubmitId(submitUserId); |
| | | } |
| | | |
| | | @Override |
| | | public List<GuideRepairOrder> selectConfigList(IPage<GuideRepairOrder> page, Integer state, String matterName,List<String> ids) { |
| | | return baseMapper.selectConfigList(page,state,matterName, ids); |
| | | } |
| | | |
| | | @Override |
| | | public int countConfigList(String matterName,List<String> ids) { |
| | | return baseMapper.countConfigList(matterName,ids); |
| | | } |
| | | |
| | | @Override |
| | | public int countUser(String userId, String state) { |
| | | return baseMapper.countUser(userId,state); |
| | | } |
| | | |
| | | @Override |
| | | public int updateSysUserOrderNum(GuideEvolveEntity order) { |
| | | if(order.getState().equals("13")){ |
| | | SysUser sysUser = sysUserMapper.selectOne(new QueryWrapper<SysUser>().lambda().eq(SysUser::getUserId, order.getToUserId())); |
| | | sysUser.setTransactionNum(sysUser.getTransactionNum()+1); |
| | | return sysUserMapper.updateById(sysUser); |
| | | }else if(order.getState().equals("12")){ |
| | | SysUser sysUserTo= sysUserMapper.selectOne(new QueryWrapper<SysUser>().lambda().eq(SysUser::getUserId, order.getToUserId())); |
| | | SysUser sysUserFrom= sysUserMapper.selectOne(new QueryWrapper<SysUser>().lambda().eq(SysUser::getUserId, order.getFromUserId())); |
| | | sysUserTo.setTransactionNum(sysUserTo.getTransactionNum()+1); |
| | | sysUserFrom.setTransactionNum(sysUserFrom.getTransactionNum()-1); |
| | | sysUserMapper.updateById(sysUserFrom); |
| | | return sysUserMapper.updateById(sysUserTo); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | /** |
| | | * 1 今天 2昨天 3本月 4本年度 String time |
| | | * @param state |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @Override |
| | | public int countStatisticsNum(String state,List<String> ids,String time, |
| | | String isTimeout,String evaluateState,List<String> classifyIds) { |
| | | return baseMapper.countStatisticsNum(state,ids,time,isTimeout,evaluateState,classifyIds); |
| | | } |
| | | |
| | | @Override |
| | | public List<CountListNum> countListNum(String state, List<String> ids, Integer time) { |
| | | return baseMapper.countListNum(state, ids,time); |
| | | } |
| | | |
| | | @Override |
| | | public SysUser getSubmitUser(GuideRepairOrder guideRepairOrder){ |
| | | return sysUserMapper.selectOne(new QueryWrapper<SysUser>().lambda().eq(SysUser::getUserId,guideRepairOrder.getSubmitUserId())); |
| | | } |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.dg.core.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.dg.core.db.gen.entity.ClassifyAdministration; |
| | | import com.dg.core.db.gen.entity.Guidance; |
| | | import com.dg.core.db.gen.entity.GuidePlate; |
| | | import com.dg.core.db.gen.entity.OrganizationEntity; |
| | | import com.dg.core.db.gen.mapper.HomeStatisticsMapper; |
| | | import com.dg.core.service.HomeStatisticsService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | @Service |
| | | public class HomeStatisticsImpl extends ServiceImpl<HomeStatisticsMapper, GuidePlate> |
| | | implements HomeStatisticsService |
| | | { |
| | | |
| | | @Override |
| | | public List<GuidePlate> guidePlatePeople() { |
| | | return baseMapper.guidePlatePeople(); |
| | | } |
| | | |
| | | @Override |
| | | public List<GuidePlate> score() { |
| | | return baseMapper.score(); |
| | | } |
| | | |
| | | @Override |
| | | public List<GuidePlate> timeout() { |
| | | return baseMapper.timeout(); |
| | | } |
| | | |
| | | @Override |
| | | public Integer organizationScore(List<String> ids) { |
| | | return baseMapper.organizationScore(ids); |
| | | } |
| | | |
| | | @Override |
| | | public Integer organizationNum(List<String> ids) { |
| | | return baseMapper.organizationNum(ids); |
| | | } |
| | | |
| | | @Override |
| | | public List<OrganizationEntity> getDepartment() { |
| | | return baseMapper.getDepartment(); |
| | | } |
| | | |
| | | @Override |
| | | public List<Guidance> guidanceTransaction() { |
| | | return baseMapper.guidanceTransaction(); |
| | | } |
| | | |
| | | @Override |
| | | public List<Guidance> guidanceBrowse() { |
| | | return baseMapper.guidanceBrowse(); |
| | | } |
| | | |
| | | @Override |
| | | public Integer staffNum() { |
| | | return baseMapper.staffNum(); |
| | | } |
| | | |
| | | @Override |
| | | public Integer countWork() { |
| | | return baseMapper.countWork(); |
| | | } |
| | | |
| | | @Override |
| | | public int countStatisticsNum(List<String> classifyIds) { |
| | | return baseMapper.countStatisticsNum(classifyIds); |
| | | } |
| | | |
| | | @Override |
| | | public List<ClassifyAdministration> getClassify(String parentId, String classifyGrade) { |
| | | return baseMapper.getClassify(parentId,classifyGrade); |
| | | } |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.dg.core.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.dg.core.db.gen.entity.HuaChengSysUser; |
| | | import com.dg.core.db.gen.mapper.HuaChengSysUserMapper; |
| | | import com.dg.core.service.IHuaChengSysUserService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Service |
| | | public class HuaChengSysUserImpl extends ServiceImpl<HuaChengSysUserMapper, HuaChengSysUser> implements IHuaChengSysUserService |
| | | { |
| | | |
| | | @Override |
| | | public List<HuaChengSysUser> selectConfigList() { |
| | | return baseMapper.selectConfigList(); |
| | | } |
| | | |
| | | @Override |
| | | public HuaChengSysUser selectData(String userId,String account,String phone) { |
| | | return baseMapper.selectData(userId,account,phone); |
| | | } |
| | | |
| | | @Override |
| | | public int selectNum() { |
| | | return baseMapper.selectNum(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.dg.core.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.dg.core.db.gen.entity.RoleMenuEntity; |
| | | import com.dg.core.db.gen.mapper.RoleMenuEntityMapper; |
| | | import com.dg.core.service.IRoleMenuService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Service |
| | | public class IRoleMenuImpl extends ServiceImpl<RoleMenuEntityMapper, RoleMenuEntity> implements IRoleMenuService { |
| | | |
| | | @Override |
| | | public List<RoleMenuEntity> selectConfigList(String roleId) { |
| | | return baseMapper.selectConfigList(roleId); |
| | | } |
| | | |
| | | @Override |
| | | public int insertConfig(RoleMenuEntity entity) { |
| | | return baseMapper.insertConfig(entity); |
| | | } |
| | | |
| | | @Override |
| | | public int updateConfig(RoleMenuEntity entity) { |
| | | return baseMapper.updateConfig(entity); |
| | | } |
| | | |
| | | @Override |
| | | public int deleteConfigById(String Id) { |
| | | return baseMapper.deleteConfigById(Id); |
| | | } |
| | | } |
| | |
| | | package com.dg.core.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.dg.core.db.gen.entity.OrganizationChartEntity; |
| | | import com.dg.core.db.gen.mapper.OrganizationChartMapper; |
| | | import com.dg.core.service.IOrganizationChartService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | @Service |
| | |
| | | public OrganizationChartEntity selectConfigById(String id) { |
| | | return baseMapper.selectConfigById(id); |
| | | } |
| | | |
| | | @Override |
| | | public List<OrganizationChartEntity> queryList(IPage<OrganizationChartEntity> page, Integer state, String organizationName) { |
| | | return baseMapper.queryList(page,state,organizationName); |
| | | } |
| | | |
| | | @Override |
| | | public int countList(String organizationName) { |
| | | return baseMapper.countList(organizationName); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public List<OrganizationChartEntity> selectParentList(String parentId, String grade) { |
| | | return baseMapper.selectConfigList(parentId,grade); |
| | | } |
| | | |
| | | /** |
| | | * 递归获取id 内部使用 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | |
| | | @Override |
| | | public List<String> getIds(String id) |
| | | { |
| | | List<String> ids=new ArrayList<>(); |
| | | List<OrganizationChartEntity> lists = baseMapper.selectConfigList(id,""); |
| | | if(lists.size()<1) |
| | | { |
| | | lists.add(baseMapper.selectConfigById(id)); |
| | | } |
| | | ids=disposestreetId(lists); |
| | | if(ids.size()<1) |
| | | { |
| | | return null; |
| | | } |
| | | ids.add(id); |
| | | return ids; |
| | | } |
| | | |
| | | |
| | | |
| | | //递归取id |
| | | private List<String> disposestreetId(List<OrganizationChartEntity> lists) |
| | | { |
| | | List<String> ids=new ArrayList<>(); |
| | | if(lists==null || lists.size()<1) |
| | | { |
| | | return ids; |
| | | } |
| | | |
| | | for (OrganizationChartEntity sysStreet:lists) |
| | | { |
| | | if(sysStreet!=null&&sysStreet.getId()!=null) |
| | | { |
| | | if(sysStreet.getChild()!=null && sysStreet.getChild().size()>0) |
| | | { |
| | | ids.addAll(disposestreetId(sysStreet.getChild())); |
| | | } |
| | | else |
| | | { |
| | | ids.add(sysStreet.getId()+""); |
| | | } |
| | | } |
| | | } |
| | | return ids; |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.dg.core.db.gen.entity.GuideEvolveEntity; |
| | | import com.dg.core.db.gen.entity.ReplyTemplateEntity; |
| | | import com.dg.core.db.gen.mapper.ElseAccessoryMapper; |
| | | import com.dg.core.db.gen.mapper.ReplyTemplateMapper; |
| | | import com.dg.core.db.gen.mapper.TransactionEventMapper; |
| | | import com.dg.core.service.IReplyTemplateService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | @Service |
| | | public class ReplyTemplateImpl extends ServiceImpl<ReplyTemplateMapper, ReplyTemplateEntity> implements IReplyTemplateService |
| | | { |
| | | |
| | | @Resource |
| | | private ElseAccessoryMapper elseAccessoryMapper; |
| | | |
| | | @Resource |
| | | private TransactionEventMapper transactionEventMapper; |
| | | |
| | | @Override |
| | | public List<ReplyTemplateEntity> selectConfigList(IPage<ReplyTemplateEntity> page, Integer state,String Name) { |
| | | return baseMapper.selectConfigList(page,state,Name); |
| | | public List<ReplyTemplateEntity> selectConfigList(IPage<ReplyTemplateEntity> page, |
| | | Integer state,String Name,List<String> ids) { |
| | | return baseMapper.selectConfigList(page,state,Name,ids); |
| | | } |
| | | |
| | | @Override |
| | | public ReplyTemplateEntity selectConfigData(String Id) { |
| | | return baseMapper.selectConfigData(Id); |
| | | ReplyTemplateEntity replyTemplateEntity = baseMapper.selectConfigData(Id); |
| | | if (replyTemplateEntity!=null) |
| | | { String[] split; |
| | | if (replyTemplateEntity.getAccessoryId()!=null){ |
| | | split = replyTemplateEntity.getAccessoryId().split(","); |
| | | replyTemplateEntity.setElseAccessoryEntityList( elseAccessoryMapper.selectListByIds(split)); |
| | | } |
| | | if (replyTemplateEntity.getGuidance()!=null){ |
| | | split=replyTemplateEntity.getGuidance().split(","); |
| | | replyTemplateEntity.setTransactionEventList(transactionEventMapper.selectListByIds(split)); |
| | | } |
| | | return replyTemplateEntity; |
| | | } |
| | | else { |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | @Override |
| | |
| | | } |
| | | |
| | | @Override |
| | | public int countNum(String Name) { |
| | | return baseMapper.countNum(Name); |
| | | public int countNum(String Name,List<String> ids) { |
| | | return baseMapper.countNum(Name,ids); |
| | | } |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.db.gen.entity.HuaChengSysUser; |
| | | import com.dg.core.db.gen.entity.OrganizationChartEntity; |
| | | import com.dg.core.db.gen.entity.SysUser; |
| | | import com.dg.core.db.gen.mapper.OrganizationChartMapper; |
| | | import com.dg.core.db.gen.mapper.SysUserMapper; |
| | | import com.dg.core.manager.TokenManager; |
| | | import com.dg.core.service.IHuaChengSysUserService; |
| | | import com.dg.core.service.ISysUserService; |
| | | import org.springframework.data.repository.query.Param; |
| | | import com.dg.core.util.SmsUtil; |
| | | import com.dg.core.util.Snowflake; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.data.redis.core.RedisTemplate; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.time.LocalDateTime; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @Service |
| | | public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements ISysUserService |
| | | { |
| | | |
| | | @Override |
| | | public SysUser getUserById(Long id) { |
| | | return baseMapper.selectById(id); |
| | | } |
| | | @Resource |
| | | SmsUtil smsUtil; |
| | | |
| | | @Resource |
| | | RedisTemplate<String, Object> redisTemplate; |
| | | |
| | | @Autowired |
| | | TokenManager tokenManager; |
| | | |
| | | @Resource |
| | | private OrganizationChartMapper organizationChartMapper; |
| | | |
| | | /** |
| | | * 花城e+用户接口 |
| | | */ |
| | | @Autowired |
| | | IHuaChengSysUserService iHuaChengSysUserService; |
| | | |
| | | @Override |
| | | public SysUser getUserByAccount(String account) { |
| | |
| | | } |
| | | |
| | | @Override |
| | | public ResultData smsSend(SysUser user){ |
| | | return smsUtil.sendSms(user.getPhonenumber()); |
| | | } |
| | | |
| | | @Override |
| | | public ResultData loginByAccount(String phonenumber, String code){ |
| | | String code1 = redisTemplate.opsForValue().get(phonenumber) + ""; |
| | | |
| | | SysUser sysUser = baseMapper.selectOne(new QueryWrapper<SysUser>().lambda().eq(SysUser::getPhonenumber, phonenumber)); |
| | | if (sysUser==null){ |
| | | //查询花城e+是否存在此用户 |
| | | HuaChengSysUser huaChengSysUser=iHuaChengSysUserService.selectData("","",phonenumber); |
| | | if(huaChengSysUser==null) |
| | | { |
| | | SysUser newUser = new SysUser(); |
| | | newUser.setUserId(Snowflake.getId()); |
| | | newUser.setLoginName(phonenumber); |
| | | newUser.setUserName(phonenumber.substring(0,3)+"xxxx"+phonenumber.substring(7,11)+"用户"); |
| | | newUser.setUserType("3"); |
| | | newUser.setPhonenumber(phonenumber); |
| | | newUser.setSex("1"); |
| | | newUser.setCreateTime(LocalDateTime.now()); |
| | | newUser.setUpdateTime(LocalDateTime.now()); |
| | | baseMapper.insertConfig(newUser); |
| | | } |
| | | else |
| | | { |
| | | SysUser newUser = new SysUser(); |
| | | newUser.setUserId(huaChengSysUser.getUserId()); |
| | | newUser.setLoginName(huaChengSysUser.getPhone()); |
| | | newUser.setUserName(huaChengSysUser.getNickName()); |
| | | newUser.setUserType("3"); |
| | | newUser.setPhonenumber(huaChengSysUser.getPhone()); |
| | | newUser.setSex(huaChengSysUser.getSex()); |
| | | newUser.setAvatar(huaChengSysUser.getImageUrl()); |
| | | newUser.setCreateTime(LocalDateTime.now()); |
| | | newUser.setUpdateTime(LocalDateTime.now()); |
| | | newUser.setOpenid(huaChengSysUser.getOpenid()); |
| | | baseMapper.insertConfig(newUser); |
| | | } |
| | | } |
| | | |
| | | if (code.equals(code1)) { |
| | | sysUser = baseMapper.selectOne(new QueryWrapper<SysUser>().lambda().eq(SysUser::getPhonenumber, phonenumber)); |
| | | if (sysUser!=null){ |
| | | String token = tokenManager.getTokenByUserId(sysUser.getUserId()); |
| | | // String token = tokenManager.createToken(user.getUserId(), user.getRoleId()); |
| | | System.out.println("token "+token); |
| | | if (token == null) { |
| | | //生成一个token,保存用户登录状态 |
| | | token = tokenManager.createToken(sysUser.getUserId(), sysUser.getUserId()); |
| | | } |
| | | |
| | | sysUser.setLoginDate(LocalDateTime.now()); |
| | | //更新登录时间 |
| | | this.updateConfig(sysUser); |
| | | |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("token", token); |
| | | map.put("userId", sysUser.getUserId()); |
| | | map.put("userName", sysUser.getUserName()); |
| | | |
| | | return ResultData.success(map); |
| | | } |
| | | else { |
| | | return ResultData.error("验证码错误"); |
| | | } |
| | | |
| | | } |
| | | return ResultData.error("验证码错误"); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public List<SysUser> selectListByDepartmentId(String departmentId, String classifyId) { |
| | | List<String> departmentIds=new ArrayList<>(); |
| | | departmentIds.add(departmentId); |
| | | List<OrganizationChartEntity> organizationChartEntities = organizationChartMapper.selectList(new QueryWrapper<OrganizationChartEntity>().lambda() |
| | | .eq(OrganizationChartEntity::getParentId, departmentId)); |
| | | if (organizationChartEntities!=null){ |
| | | for (OrganizationChartEntity organizationChart:organizationChartEntities) { |
| | | departmentIds.add(organizationChart.getId().toString()); |
| | | List<OrganizationChartEntity> organizationChartEntitiesUser = organizationChartMapper.selectList(new QueryWrapper<OrganizationChartEntity>().lambda() |
| | | .eq(OrganizationChartEntity::getParentId, organizationChart.getId().toString())); |
| | | if (organizationChartEntitiesUser!=null) |
| | | departmentIds=this.getDepartmentIds(organizationChartEntitiesUser,departmentIds); |
| | | } |
| | | } |
| | | if (classifyId==null) |
| | | return baseMapper.selectListByDepartmentId(departmentIds,null,null); |
| | | else |
| | | return baseMapper.selectListByDepartmentId(departmentIds,","+classifyId,classifyId+","); |
| | | } |
| | | |
| | | @Override |
| | | public ResultData loginByPhonenumber(String phonenumber) |
| | | { |
| | | SysUser sysUser = baseMapper.selectOne(new QueryWrapper<SysUser>().lambda().eq(SysUser::getPhonenumber, phonenumber)); |
| | | if (sysUser==null){ |
| | | //查询花城e+是否存在此用户 |
| | | HuaChengSysUser huaChengSysUser=iHuaChengSysUserService.selectData("","",phonenumber); |
| | | SysUser newUser = new SysUser(); |
| | | if(huaChengSysUser==null) |
| | | { |
| | | newUser.setUserId(Snowflake.getId()); |
| | | newUser.setLoginName(phonenumber); |
| | | newUser.setUserName(phonenumber.substring(0,3)+"xxxx"+phonenumber.substring(7,11)+"用户"); |
| | | newUser.setUserType("3"); |
| | | newUser.setPhonenumber(phonenumber); |
| | | newUser.setSex("1"); |
| | | newUser.setCreateTime(LocalDateTime.now()); |
| | | newUser.setUpdateTime(LocalDateTime.now()); |
| | | baseMapper.insertConfig(newUser); |
| | | } |
| | | else |
| | | { |
| | | newUser.setUserId(huaChengSysUser.getUserId()); |
| | | newUser.setLoginName(huaChengSysUser.getPhone()); |
| | | newUser.setUserName(huaChengSysUser.getNickName()); |
| | | newUser.setUserType("3"); |
| | | newUser.setPhonenumber(huaChengSysUser.getPhone()); |
| | | newUser.setSex(huaChengSysUser.getSex()); |
| | | newUser.setAvatar(huaChengSysUser.getImageUrl()); |
| | | newUser.setCreateTime(LocalDateTime.now()); |
| | | newUser.setUpdateTime(LocalDateTime.now()); |
| | | newUser.setOpenid(huaChengSysUser.getOpenid()); |
| | | baseMapper.insertConfig(newUser); |
| | | } |
| | | |
| | | String token = tokenManager.getTokenByUserId(newUser.getUserId()); |
| | | // String token = tokenManager.createToken(user.getUserId(), user.getRoleId()); |
| | | System.out.println("token " + token); |
| | | if (token == null) { |
| | | //生成一个token,保存用户登录状态 |
| | | token = tokenManager.createToken(newUser.getUserId(), newUser.getUserId()); |
| | | } |
| | | |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("token", token); |
| | | map.put("userId", newUser.getUserId()); |
| | | map.put("userName", newUser.getUserName()); |
| | | |
| | | return ResultData.success(map); |
| | | |
| | | } |
| | | else |
| | | { |
| | | String token = tokenManager.getTokenByUserId(sysUser.getUserId()); |
| | | // String token = tokenManager.createToken(user.getUserId(), user.getRoleId()); |
| | | System.out.println("token " + token); |
| | | if (token == null) { |
| | | //生成一个token,保存用户登录状态 |
| | | token = tokenManager.createToken(sysUser.getUserId(), sysUser.getUserId()); |
| | | } |
| | | |
| | | sysUser.setLoginDate(LocalDateTime.now()); |
| | | //更新登录时间 |
| | | this.updateConfig(sysUser); |
| | | |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("token", token); |
| | | map.put("userId", sysUser.getUserId()); |
| | | map.put("userName", sysUser.getUserName()); |
| | | |
| | | return ResultData.success(map); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public List<SysUser> queryList(Integer userType) { |
| | | return baseMapper.queryList(userType); |
| | | } |
| | | |
| | | public List<String> getDepartmentIds( List<OrganizationChartEntity> organizationChartEntities,List<String> departmentIds){ |
| | | for (OrganizationChartEntity organizationChart:organizationChartEntities) { |
| | | departmentIds.add(organizationChart.getId().toString()); |
| | | List<OrganizationChartEntity> organizationChartEntitiesUser = organizationChartMapper.selectList(new QueryWrapper<OrganizationChartEntity>().lambda() |
| | | .eq(OrganizationChartEntity::getParentId, organizationChart.getId().toString())); |
| | | if (organizationChartEntitiesUser!=null) |
| | | departmentIds=this.getDepartmentIds(organizationChartEntitiesUser,departmentIds); |
| | | |
| | | } |
| | | return departmentIds; |
| | | } |
| | | |
| | | @Override |
| | | public List<SysUser> selectConfigList(IPage<SysUser> page, Integer state,String userType) { |
| | | return baseMapper.selectConfigList(page, state,userType); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public SysUser selectData(String userId) { |
| | | return baseMapper.selectData(userId); |
| | | } |
| | | |
| | | |
| | | /** |
| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.dg.core.db.gen.entity.KeywordEntity; |
| | | import com.dg.core.db.gen.entity.OrganizationChartEntity; |
| | | import com.dg.core.db.gen.entity.SysUser; |
| | | import com.dg.core.db.gen.entity.TransactionEvent; |
| | | import com.dg.core.db.gen.entity.*; |
| | | import com.dg.core.db.gen.mapper.AutomessageTransactionEventInterviewMapper; |
| | | import com.dg.core.db.gen.mapper.KeywordMapper; |
| | | import com.dg.core.db.gen.mapper.OrganizationChartMapper; |
| | | import com.dg.core.db.gen.mapper.TransactionEventMapper; |
| | |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | |
| | | @Resource |
| | | private KeywordMapper keywordMapper; |
| | | |
| | | @Resource |
| | | private AutomessageTransactionEventInterviewMapper automessageTransactionEventInterviewMapper; |
| | | |
| | | @Override |
| | | public TransactionEvent selectConfigData(String Id) { |
| | | return baseMapper.selectConfigData(Id); |
| | | public TransactionEvent selectConfigData(String Id,SysUser sysUser) { |
| | | TransactionEvent transactionEvent = baseMapper.selectConfigData(Id); |
| | | //如果当前没有登录用户则不增加浏览次数 |
| | | if (sysUser!=null){ |
| | | LocalDateTime startTime = LocalDate.now().atTime(0, 0, 0); |
| | | LocalDateTime endTime = LocalDate.now().atTime(23, 59, 59); |
| | | AutomessageTransactionEventInterview automessageTransactionEventInterview = automessageTransactionEventInterviewMapper.selectOne(new QueryWrapper<AutomessageTransactionEventInterview>() |
| | | .lambda().eq(AutomessageTransactionEventInterview::getTransactionEventId, Id) |
| | | .eq(AutomessageTransactionEventInterview::getUserId, sysUser.getUserId()) |
| | | .orderByDesc(AutomessageTransactionEventInterview::getInterviewTime) |
| | | .last("limit 1")); |
| | | transactionEvent.setQueryTime(LocalDateTime.now()); |
| | | //判断上次访问时间是不是今天 如果是今天不增加浏览次数 |
| | | if (automessageTransactionEventInterview==null||(!(transactionEvent.getQueryTime().isAfter(startTime)&&transactionEvent.getQueryTime().isBefore(endTime)))) { |
| | | transactionEvent.setBrowseNum(transactionEvent.getBrowseNum()+1); |
| | | baseMapper.updateById(transactionEvent); |
| | | AutomessageTransactionEventInterview automessageTransactionEventInterviewNew = |
| | | new AutomessageTransactionEventInterview(); |
| | | automessageTransactionEventInterviewNew.setTransactionEventId(Integer.valueOf(Id)); |
| | | automessageTransactionEventInterviewNew.setUserId(new Long(sysUser.getUserId())); |
| | | automessageTransactionEventInterviewNew.setInterviewTime(LocalDateTime.now()); |
| | | automessageTransactionEventInterviewMapper.insert(automessageTransactionEventInterviewNew); |
| | | } |
| | | } |
| | | return transactionEvent; |
| | | } |
| | | |
| | | @Override |
| | | public List<TransactionEvent> selectConfigList(IPage<TransactionEvent> page, Integer state, |
| | | String matterAndUser, String classifyGrade) { |
| | | return baseMapper.selectConfigList(page, state, matterAndUser, classifyGrade); |
| | | String matterAndUser, String classifyGrade,List<String> ids) { |
| | | return baseMapper.selectConfigList(page, state, matterAndUser, classifyGrade,ids); |
| | | } |
| | | |
| | | @Override |
| | |
| | | } |
| | | |
| | | @Override |
| | | public int countNum(String matterAndUser,String classifyGrade) { |
| | | return baseMapper.countNum( matterAndUser, classifyGrade); |
| | | public int countNum(String matterAndUser,String classifyGrade,List<String> ids) { |
| | | return baseMapper.countNum( matterAndUser, classifyGrade, ids); |
| | | } |
| | | |
| | | @Override |
| | |
| | | return queryResults; |
| | | } |
| | | |
| | | @Override |
| | | public QueryResults queryMatterNameList(String keyWord) { |
| | | QueryResults queryResults = new QueryResults(); |
| | | List<Search> searches = baseMapper.selectSearchList(keyWord); |
| | | for (Search search:searches) { |
| | | search.setTransactionEventList(baseMapper.queryMatterNameList(keyWord,search.getClassifyId().toString())); |
| | | } |
| | | queryResults.setSearchList(searches); |
| | | List<Search> searchesAssociate = baseMapper.selectSearchAssociateDistinct(keyWord); |
| | | for (Search search:searchesAssociate) { |
| | | search.setTransactionEventList(baseMapper.queryMatterNameList(keyWord,search.getClassifyId().toString())); |
| | | } |
| | | queryResults.setTransactionEventList(searchesAssociate); |
| | | queryResults.setKeywordEntityList( keywordMapper.selectByName(keyWord)); |
| | | return queryResults; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public RecommendResult smartConsulting(String keyWord){ |
| | | RecommendResult recommendResult=new RecommendResult(); |
| | | List<KeywordEntity> keywordEntityList=new ArrayList<>(); |
| | | List<TransactionEvent> transactionEventEntities = baseMapper.queryMatterNameList(keyWord); |
| | | List<TransactionEvent> transactionEventEntities = baseMapper.queryMatterNameList(keyWord,null); |
| | | recommendResult.setTransactionEventList(transactionEventEntities); |
| | | for (TransactionEvent transactionEvent: transactionEventEntities) { |
| | | String[] associateNames = transactionEvent.getAssociateNames().split(","); |
| | | for (String associateName: associateNames) { |
| | | KeywordEntity keywordEntity = new KeywordEntity(); |
| | | keywordEntity.setName(associateName); |
| | | keywordEntityList.add(keywordEntity); |
| | | if (transactionEvent.getAssociateNames()!=null) { |
| | | String[] associateNames = transactionEvent.getAssociateNames().split(","); |
| | | for (String associateName : associateNames) { |
| | | KeywordEntity keywordEntity = new KeywordEntity(); |
| | | keywordEntity.setName(associateName); |
| | | keywordEntityList.add(keywordEntity); |
| | | } |
| | | } |
| | | |
| | | } |
| | | recommendResult.setKeywordEntityList(keywordEntityList); |
| | | List<OrganizationChartEntity> organizationChartEntities = organizationChartMapper.selectByKeyWord(keyWord); |
| | | recommendResult.setOrganizationChartEntityList(organizationChartEntities); |
| | | return recommendResult; |
| | | } |
| | | |
| | | @Override |
| | | public String selectDataIfExist(String departmentId, String matterName) { |
| | | return baseMapper.selectDataIfExist(departmentId,matterName); |
| | | } |
| | | |
| | | @Override |
| | | public List<String> selectclassifyId(String classifyId) { |
| | | return baseMapper.selectclassifyId(classifyId); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public int countNumByMatterName(String matterName) { |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<TransactionEvent> queryByClassifyIdList(IPage<TransactionEvent> page, Integer state,String classifyId,Integer departmentId) { |
| | | return baseMapper.queryByClassifyIdList(page,state,classifyId,departmentId); |
| | | } |
| | | |
| | | @Override |
| | | public List<TransactionEvent> queryByQueryTime() { |
| | | List<TransactionEvent> transactionEvents = baseMapper.selectList(new QueryWrapper<TransactionEvent>().lambda().orderByDesc(TransactionEvent::getQueryTime)); |
| | | return transactionEvents; |
New file |
| | |
| | | package com.dg.core.util; |
| | | |
| | | import com.aliyuncs.CommonRequest; |
| | | import com.aliyuncs.CommonResponse; |
| | | import com.aliyuncs.DefaultAcsClient; |
| | | import com.aliyuncs.IAcsClient; |
| | | import com.aliyuncs.exceptions.ClientException; |
| | | import com.aliyuncs.http.MethodType; |
| | | import com.aliyuncs.profile.DefaultProfile; |
| | | import com.dg.core.AliyunConfig; |
| | | import com.dg.core.ResultData; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.data.redis.core.RedisTemplate; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.HashMap; |
| | | import java.util.Random; |
| | | import java.util.concurrent.TimeUnit; |
| | | |
| | | /** |
| | | * 阿里云短信工具类 |
| | | */ |
| | | @Component |
| | | public class SmsUtil { |
| | | |
| | | private static final Logger LOGGER = LoggerFactory.getLogger(SmsUtil.class); |
| | | |
| | | // 注入阿里云配置 |
| | | @Resource |
| | | AliyunConfig aliyunConfig; |
| | | |
| | | // 注入redisTemplate |
| | | @Resource |
| | | RedisTemplate<String, Object> redisTemplate; |
| | | |
| | | /** |
| | | * 发送短信登录验证码 |
| | | * |
| | | * @param tel |
| | | * 电话 |
| | | */ |
| | | public ResultData<Object> sendSms(String tel) { |
| | | //cn-hangzhou 是阿里定义的签名固定值。填写阿里云申请短信签名的key和secret值 |
| | | DefaultProfile profile = DefaultProfile.getProfile("cn-hangzhou", aliyunConfig.getKey(), aliyunConfig.getScrect()); |
| | | /*阿里云提供的短信发送api的近期的相关代码,代码以最新的阿里api提供为准*/ |
| | | IAcsClient client = new DefaultAcsClient(profile); |
| | | CommonRequest request = new CommonRequest(); |
| | | request.setSysMethod(MethodType.POST); |
| | | request.setSysDomain("dysmsapi.aliyuncs.com"); |
| | | request.setSysVersion("2017-05-25"); |
| | | request.setSysAction("SendSms"); |
| | | request.putQueryParameter("RegionId", "cn-hangzhou"); |
| | | // 接收人电话 |
| | | request.putQueryParameter("PhoneNumbers", tel); |
| | | // 短信签名 |
| | | request.putQueryParameter("SignName", "集慧科技"); |
| | | // 短信模板 |
| | | request.putQueryParameter("TemplateCode", aliyunConfig.getTemplateCode()); |
| | | Random rd = new Random(); |
| | | int code = rd.nextInt(900000) + 100000; |
| | | // 短信内容 |
| | | request.putQueryParameter("TemplateParam", "{code:" + code + "}"); |
| | | // 获取短信发送的响应结果 |
| | | try { |
| | | CommonResponse rs = client.getCommonResponse(request); |
| | | LOGGER.debug(rs.getData().toString()); |
| | | // 把json格式的字符串装换成java的map的数据类型 |
| | | ObjectMapper mapper = new ObjectMapper(); |
| | | try { |
| | | HashMap<String, Object> m = mapper.readValue(rs.getData().toString(), HashMap.class); |
| | | if (m.get("Message").equals("OK")) { |
| | | redisTemplate.opsForValue().set(tel, code + "", 5, TimeUnit.MINUTES); |
| | | return ResultData.success("短信发送成功!"); |
| | | } |
| | | } catch (JsonProcessingException e) { |
| | | e.printStackTrace(); |
| | | return ResultData.error("短信发送失败"); |
| | | } |
| | | } catch (ClientException e) { |
| | | e.printStackTrace(); |
| | | return ResultData.error("短信发送失败"); |
| | | } |
| | | return ResultData.error("短信发送失败"); |
| | | } |
| | | |
| | | /** |
| | | * 发送工单超时短信 |
| | | * |
| | | * @param tel |
| | | * 电话 |
| | | * @param name |
| | | * 工单名 |
| | | */ |
| | | public ResultData<Object> sendSmsOvertime(String tel,String name) { |
| | | //cn-hangzhou 是阿里定义的签名固定值。填写阿里云申请短信签名的key和secret值 |
| | | DefaultProfile profile = DefaultProfile.getProfile("cn-hangzhou", aliyunConfig.getKey(), aliyunConfig.getScrect()); |
| | | /*阿里云提供的短信发送api的近期的相关代码,代码以最新的阿里api提供为准*/ |
| | | IAcsClient client = new DefaultAcsClient(profile); |
| | | CommonRequest request = new CommonRequest(); |
| | | request.setSysMethod(MethodType.POST); |
| | | request.setSysDomain("dysmsapi.aliyuncs.com"); |
| | | request.setSysVersion("2017-05-25"); |
| | | request.setSysAction("SendSms"); |
| | | request.putQueryParameter("RegionId", "cn-hangzhou"); |
| | | // 接收人电话 |
| | | request.putQueryParameter("PhoneNumbers", tel); |
| | | // 短信签名 |
| | | request.putQueryParameter("SignName", "集慧科技"); |
| | | // 短信模板 |
| | | request.putQueryParameter("TemplateCode", aliyunConfig.getTemplateCodeOvertime()); |
| | | Random rd = new Random(); |
| | | // 短信内容 |
| | | request.putQueryParameter("TemplateParam", "{name:'" + name + "'}"); |
| | | // 获取短信发送的响应结果 |
| | | try { |
| | | CommonResponse rs = client.getCommonResponse(request); |
| | | LOGGER.debug(rs.getData().toString()); |
| | | // 把json格式的字符串装换成java的map的数据类型 |
| | | ObjectMapper mapper = new ObjectMapper(); |
| | | try { |
| | | HashMap<String, Object> m = mapper.readValue(rs.getData().toString(), HashMap.class); |
| | | if (m.get("Message").equals("OK")) { |
| | | return ResultData.success("短信发送成功!"); |
| | | } |
| | | } catch (JsonProcessingException e) { |
| | | e.printStackTrace(); |
| | | return ResultData.error("短信发送失败"); |
| | | } |
| | | } catch (ClientException e) { |
| | | e.printStackTrace(); |
| | | return ResultData.error("短信发送失败"); |
| | | } |
| | | return ResultData.error("短信发送失败"); |
| | | } |
| | | |
| | | /** |
| | | * 发送工单完成短信 |
| | | * |
| | | * @param tel |
| | | * 电话 |
| | | * @param name |
| | | * 工单名 |
| | | */ |
| | | public ResultData<Object> sendSmsComplete(String tel,String name) { |
| | | //cn-hangzhou 是阿里定义的签名固定值。填写阿里云申请短信签名的key和secret值 |
| | | DefaultProfile profile = DefaultProfile.getProfile("cn-hangzhou", aliyunConfig.getKey(), aliyunConfig.getScrect()); |
| | | /*阿里云提供的短信发送api的近期的相关代码,代码以最新的阿里api提供为准*/ |
| | | IAcsClient client = new DefaultAcsClient(profile); |
| | | CommonRequest request = new CommonRequest(); |
| | | request.setSysMethod(MethodType.POST); |
| | | request.setSysDomain("dysmsapi.aliyuncs.com"); |
| | | request.setSysVersion("2017-05-25"); |
| | | request.setSysAction("SendSms"); |
| | | request.putQueryParameter("RegionId", "cn-hangzhou"); |
| | | // 接收人电话 |
| | | request.putQueryParameter("PhoneNumbers", tel); |
| | | // 短信签名 |
| | | request.putQueryParameter("SignName", "集慧科技"); |
| | | // 短信模板 |
| | | request.putQueryParameter("TemplateCode", aliyunConfig.getTemplateCodeComplete()); |
| | | Random rd = new Random(); |
| | | // 短信内容 |
| | | request.putQueryParameter("TemplateParam", "{name:'" + name + "'}"); |
| | | // 获取短信发送的响应结果 |
| | | try { |
| | | CommonResponse rs = client.getCommonResponse(request); |
| | | LOGGER.debug(rs.getData().toString()); |
| | | // 把json格式的字符串装换成java的map的数据类型 |
| | | ObjectMapper mapper = new ObjectMapper(); |
| | | try { |
| | | HashMap<String, Object> m = mapper.readValue(rs.getData().toString(), HashMap.class); |
| | | if (m.get("Message").equals("OK")) { |
| | | return ResultData.success("短信发送成功!"); |
| | | } |
| | | } catch (JsonProcessingException e) { |
| | | e.printStackTrace(); |
| | | return ResultData.error("短信发送失败"); |
| | | } |
| | | } catch (ClientException e) { |
| | | e.printStackTrace(); |
| | | return ResultData.error("短信发送失败"); |
| | | } |
| | | return ResultData.error("短信发送失败"); |
| | | } |
| | | } |
New file |
| | |
| | | package com.dg.core.util; |
| | | |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class TemplateParam { |
| | | |
| | | private String key; |
| | | private String value; |
| | | |
| | | public TemplateParam(String key, String value) { |
| | | this.key = key; |
| | | this.value = value; |
| | | } |
| | | public TemplateParam() { |
| | | |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.dg.core.util; |
| | | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.squareup.okhttp.OkHttpClient; |
| | | import com.squareup.okhttp.Request; |
| | | import com.squareup.okhttp.Response; |
| | | |
| | | import java.io.IOException; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * <p>TestDate 此类用于:</p> |
| | | * <p>@author:hujm</p> |
| | | * <p>@date:2021年04月22日 17:43</p> |
| | | * <p>@remark:</p> |
| | | */ |
| | | public class TestDate { |
| | | |
| | | public static void main(String[] args) { |
| | | System.out.println(getJjr(2021, 4)); |
| | | System.out.println(getMonthWekDay(2021, 4)); |
| | | System.out.println(JJR(2021, 4)); |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 获取周末和节假日 |
| | | * |
| | | * @param year |
| | | * @param month |
| | | * @return |
| | | */ |
| | | public static Set<String> JJR(int year, int month) { |
| | | //获取所有的周末 |
| | | Set<String> monthWekDay = getMonthWekDay(year, month); |
| | | //http://timor.tech/api/holiday api文档地址 |
| | | Map jjr = getJjr(year, month + 1); |
| | | Integer code = (Integer) jjr.get("code"); |
| | | if (code != 0) { |
| | | return monthWekDay; |
| | | } |
| | | Map<String, Map<String, Object>> holiday = (Map<String, Map<String, Object>>) jjr.get("holiday"); |
| | | Set<String> strings = holiday.keySet(); |
| | | for (String str : strings) { |
| | | Map<String, Object> stringObjectMap = holiday.get(str); |
| | | Integer wage = (Integer) stringObjectMap.get("wage"); |
| | | String date = (String) stringObjectMap.get("date"); |
| | | //筛选掉补班 |
| | | if (wage.equals(1)) { |
| | | monthWekDay.remove(date); |
| | | } else { |
| | | monthWekDay.add(date); |
| | | } |
| | | } |
| | | return monthWekDay; |
| | | } |
| | | |
| | | /** |
| | | * 获取节假日不含周末 |
| | | * |
| | | * @param year |
| | | * @param month |
| | | * @return |
| | | */ |
| | | private static Map getJjr(int year, int month) { |
| | | String url = "http://timor.tech/api/holiday/year/"; |
| | | OkHttpClient client = new OkHttpClient(); |
| | | Response response; |
| | | //解密数据 |
| | | String rsa = null; |
| | | Request request = new Request.Builder() |
| | | .url(url) |
| | | .get() |
| | | .addHeader("Content-Type", "application/x-www-form-urlencoded") |
| | | .build(); |
| | | try { |
| | | response = client.newCall(request).execute(); |
| | | rsa = response.body().string(); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return JSONObject.parseObject(rsa, Map.class); |
| | | } |
| | | |
| | | /** |
| | | * 获取周末 月从0开始 |
| | | * |
| | | * @param year |
| | | * @param mouth |
| | | * @return |
| | | */ |
| | | public static Set<String> getMonthWekDay(int year, int mouth) { |
| | | Set<String> dateList = new HashSet<>(); |
| | | SimpleDateFormat simdf = new SimpleDateFormat("yyyy-MM-dd"); |
| | | Calendar calendar = new GregorianCalendar(year, mouth, 1); |
| | | Calendar endCalendar = new GregorianCalendar(year, mouth, 1); |
| | | endCalendar.add(Calendar.MONTH, 1); |
| | | while (true) { |
| | | int weekday = calendar.get(Calendar.DAY_OF_WEEK); |
| | | if (weekday == 1 || weekday == 7) { |
| | | dateList.add(simdf.format(calendar.getTime())); |
| | | } |
| | | calendar.add(Calendar.DATE, 1); |
| | | if (calendar.getTimeInMillis() >= endCalendar.getTimeInMillis()) { |
| | | break; |
| | | } |
| | | } |
| | | return dateList; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.dg.core.util; |
| | | |
| | | import java.util.List; |
| | | |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | |
| | | @ApiModel("微信订阅消息请求参数") |
| | | @Data |
| | | public class WxSubscribeDTO { |
| | | |
| | | @ApiModelProperty("用户在小程序的openid") |
| | | private String touser; |
| | | |
| | | @ApiModelProperty("所需下发的订阅模板id") |
| | | private String template_id; |
| | | |
| | | @ApiModelProperty("点击模板卡片后的跳转页面,仅限本小程序内的页面。支持带参数,(示例index?foo=bar)。该字段不填则模板无跳转。") |
| | | private String page; |
| | | |
| | | @ApiModelProperty("模板内容,格式形如 { \"key1\": { \"value\": any }, \"key2\": { \"value\": any } }") |
| | | private Object data; |
| | | |
| | | @ApiModelProperty("跳转小程序类型:developer为开发版;trial为体验版;formal为正式版;默认为正式版") |
| | | private String miniprogram_state; |
| | | |
| | | @ApiModelProperty("进入小程序查看”的语言类型,支持zh_CN(简体中文)、en_US(英文)、zh_HK(繁体中文)、zh_TW(繁体中文),默认为zh_CN") |
| | | private String lang; |
| | | |
| | | private List<TemplateParam> templateParamList; |
| | | |
| | | public String toJSON() { |
| | | StringBuffer buffer = new StringBuffer(); |
| | | buffer.append("{"); |
| | | buffer.append(String.format("\"touser\":\"%s\"", this.touser)).append(","); |
| | | buffer.append(String.format("\"template_id\":\"%s\"", this.template_id)).append(","); |
| | | if (StringUtils.isNotEmpty(this.page)) { |
| | | buffer.append(String.format("\"page\":\"%s\"", this.page)).append(","); |
| | | } |
| | | if (StringUtils.isNotEmpty(this.miniprogram_state)) { |
| | | buffer.append(String.format("\"miniprogram_state\":\"%s\"", this.miniprogram_state)).append(","); |
| | | } |
| | | buffer.append("\"data\":{"); |
| | | TemplateParam param = null; |
| | | for (int i = 0; i < this.templateParamList.size(); i++) { |
| | | param = templateParamList.get(i); |
| | | // 判断是否追加逗号 |
| | | if (i < this.templateParamList.size() - 1) { |
| | | buffer.append(String.format("\"%s\": {\"value\":\"%s\"},", param.getKey(), param.getValue())); |
| | | } else { |
| | | buffer.append(String.format("\"%s\": {\"value\":\"%s\"}", param.getKey(), param.getValue())); |
| | | } |
| | | } |
| | | buffer.append("}"); |
| | | buffer.append("}"); |
| | | return buffer.toString(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.dg.core.util; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.dg.core.db.gen.entity.GuideRepairOrder; |
| | | import com.dg.core.db.manual.mapper.util.ConstantPropertiesUtil; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.http.HttpEntity; |
| | | import org.apache.http.HttpResponse; |
| | | import org.apache.http.client.methods.HttpGet; |
| | | import org.apache.http.client.methods.HttpPost; |
| | | import org.apache.http.entity.StringEntity; |
| | | import org.apache.http.impl.client.DefaultHttpClient; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.io.BufferedReader; |
| | | import java.io.IOException; |
| | | import java.io.InputStreamReader; |
| | | import java.util.*; |
| | | |
| | | @Slf4j |
| | | @Component |
| | | public class WxUtil { |
| | | |
| | | private static String ACCESS_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential"; |
| | | |
| | | /** |
| | | * 获取花城token,(ps:0=token获取失败) |
| | | * |
| | | * @return |
| | | */ |
| | | public String getBatteryCarAccessToken() throws Exception { |
| | | String accessToken = "0"; |
| | | try { |
| | | // 此处APP_ID APP_SECRET 在微信小程序后端可见 |
| | | // String accessTokenUrl = String.format(TEMP_URL, APP_ID, APP_SECRET); |
| | | String accessTokenUrl = ACCESS_TOKEN_URL + "&appid=" + ConstantPropertiesUtil.WX_OPEN_APP_ID |
| | | + "&secret=" +ConstantPropertiesUtil.WX_OPEN_APP_SECRET; |
| | | String result = httpGet(accessTokenUrl, null, null); |
| | | Map<String, Object> resultMap = JSON.parseObject(result, Map.class); |
| | | if (resultMap.containsKey("access_token")) { |
| | | accessToken = resultMap.get("access_token").toString(); |
| | | } |
| | | } catch (IOException ioe) { |
| | | ioe.printStackTrace(); |
| | | } |
| | | return accessToken; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * http请求工具类,get请求 |
| | | * |
| | | * @param url |
| | | * @param params |
| | | * @param resonseCharSet |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | public static String httpGet(String url, Map<String, Object> params, String... resonseCharSet) throws Exception { |
| | | DefaultHttpClient defaultHttpClient = null; |
| | | BufferedReader bufferedReader = null; |
| | | try { |
| | | defaultHttpClient = new DefaultHttpClient(); |
| | | if (params != null) { |
| | | StringBuilder stringBuilder = new StringBuilder(); |
| | | Iterator<String> iterator = params.keySet().iterator(); |
| | | String key; |
| | | while (iterator.hasNext()) { |
| | | key = iterator.next(); |
| | | Object val = params.get(key); |
| | | if (val instanceof List) { |
| | | List v = (List) val; |
| | | for (Object o : v) { |
| | | stringBuilder.append(key).append("=").append(o.toString()).append("&"); |
| | | } |
| | | } else { |
| | | stringBuilder.append(key).append("=").append(val.toString()).append("&"); |
| | | } |
| | | } |
| | | stringBuilder.deleteCharAt(stringBuilder.length() - 1); |
| | | url = url + "?" + stringBuilder.toString(); |
| | | } |
| | | HttpGet httpGet = new HttpGet(url); |
| | | httpGet.setHeader("Content-Type", "application/json;charset=ut-8"); |
| | | HttpResponse httpResponse = defaultHttpClient.execute(httpGet); |
| | | if (httpResponse.getStatusLine().getStatusCode() != 200) { |
| | | String errorLog = "请求失败,errorCode:" + httpResponse.getStatusLine().getStatusCode(); |
| | | |
| | | throw new Exception(url + errorLog); |
| | | } |
| | | // 读取返回信息 |
| | | String charSet = "utf-8"; |
| | | if (resonseCharSet != null && resonseCharSet.length > 0) |
| | | charSet = resonseCharSet[0]; |
| | | String output; |
| | | bufferedReader = new BufferedReader(new InputStreamReader(httpResponse.getEntity().getContent(), charSet)); |
| | | |
| | | StringBuilder dataBuilder = new StringBuilder(); |
| | | while ((output = bufferedReader.readLine()) != null) { |
| | | dataBuilder.append(output); |
| | | } |
| | | return dataBuilder.toString(); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | throw e; |
| | | } finally { |
| | | if (defaultHttpClient != null) |
| | | defaultHttpClient.getConnectionManager().shutdown(); |
| | | if (bufferedReader != null) |
| | | bufferedReader.close(); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * http请求工具类,post请求 |
| | | * |
| | | * @param url url |
| | | * @param param 参数值 仅支持String |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | public static String httpPost(String url, String param) throws Exception { |
| | | DefaultHttpClient defaultHttpClient = null; |
| | | BufferedReader bufferedReader = null; |
| | | try { |
| | | defaultHttpClient = new DefaultHttpClient(); |
| | | HttpPost httpPost = new HttpPost(url); |
| | | httpPost.setHeader("Content-Type", "application/json;charset=ut-8"); |
| | | if (StringUtils.isNotBlank(param)) { |
| | | HttpEntity httpEntity = new StringEntity(param, "utf-8"); |
| | | httpPost.setEntity(httpEntity); |
| | | } |
| | | HttpResponse httpResponse = defaultHttpClient.execute(httpPost); |
| | | if (httpResponse.getStatusLine().getStatusCode() != 200) { |
| | | String errorLog = "请求失败,errorCode:" + httpResponse.getStatusLine().getStatusCode(); |
| | | throw new Exception(url + errorLog); |
| | | } |
| | | // 读取返回信息 |
| | | String output; |
| | | bufferedReader = new BufferedReader(new InputStreamReader(httpResponse.getEntity().getContent(), "utf-8")); |
| | | StringBuilder stringBuilder = new StringBuilder(); |
| | | while ((output = bufferedReader.readLine()) != null) { |
| | | stringBuilder.append(output); |
| | | } |
| | | return stringBuilder.toString(); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | throw e; |
| | | } finally { |
| | | if (defaultHttpClient != null) |
| | | defaultHttpClient.getConnectionManager().shutdown(); |
| | | if (bufferedReader != null) |
| | | bufferedReader.close(); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | public static String wxMessageModeSendUrl(String token, WxSubscribeDTO subscribeDTO) throws Exception { |
| | | String tmpurl = "https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=ACCESS_TOKEN"; |
| | | String url = tmpurl.replace("ACCESS_TOKEN", token); |
| | | return httpPost(url, subscribeDTO.toJSON()); |
| | | } |
| | | |
| | | /** |
| | | * 订阅消息推送 |
| | | * |
| | | * @param accessToken |
| | | * 获取会话token |
| | | * @return 消息推送结果 |
| | | */ |
| | | static void sendSubscribe(String accessToken, WxSubscribeDTO subscribeDTO) throws Exception { |
| | | String resultString = wxMessageModeSendUrl(accessToken, subscribeDTO); |
| | | JSONObject jsonResult = JSON.parseObject(resultString); |
| | | if (jsonResult != null) { |
| | | int errorCode = jsonResult.getIntValue("errcode"); |
| | | String errorMessage = jsonResult.getString("errmsg"); |
| | | if (errorCode == 0) { |
| | | System.out.println("订阅消息推送成功,openId:" + subscribeDTO.getTouser()); |
| | | } else { |
| | | System.out.println( |
| | | "订阅消息发送失败,错误码:" + errorCode + ",错误信息:" + errorMessage + "用户openid:" + subscribeDTO.getTouser()); |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 工单完成推送 |
| | | * |
| | | * @param openId |
| | | * 用户openid |
| | | * @param accessToken |
| | | * token会话标识 |
| | | */ |
| | | public void sendGuideRepairOrderComplete(String openId, String accessToken, String templateId, GuideRepairOrder guideRepairOrder){ |
| | | WxSubscribeDTO subscribeDTO = new WxSubscribeDTO(); |
| | | subscribeDTO.setTouser(openId); |
| | | subscribeDTO.setTemplate_id(templateId); |
| | | subscribeDTO.setMiniprogram_state("formal");//测试,部署正式版本时候需要更改为formal |
| | | List<TemplateParam> paras=new ArrayList<TemplateParam>(); |
| | | Calendar calendar = Calendar.getInstance(); |
| | | paras.add(new TemplateParam("thing1",guideRepairOrder.getMatterName()));//业务办理类型 |
| | | paras.add(new TemplateParam("thing3","已完成")); |
| | | paras.add(new TemplateParam("phrase8","待评价")); |
| | | calendar.setTime(new Date()); |
| | | paras.add(new TemplateParam("time4",calendar.get(Calendar.YEAR)+"年"+(calendar.get(Calendar.MONTH)+1)+"月"+calendar.get(Calendar.DATE)+"日"));//结束日期 |
| | | subscribeDTO.setTemplateParamList(paras); |
| | | try { |
| | | sendSubscribe(accessToken,subscribeDTO); |
| | | }catch (Exception e){ |
| | | System.out.println(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | } |
New file |
| | |
| | | #\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u01B6\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD |
| | | aliyun.key=LTAI4Frqq9fpJek6d3bC7Rn1 |
| | | aliyun.screct=wkyvU72m6JmCFepCzGVuSpsJOsbRV0 |
| | | aliyun.SignName=???? |
| | | aliyun.TemplateCode=SMS_254326275 |
| | | aliyun.TemplateCodeOvertime=SMS_254460011 |
| | | aliyun.TemplateCodeComplete=SMS_254875101 |
| | | |
| | | |
| | | |
| | | |
| | |
| | | spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver |
| | | spring.datasource.username=root |
| | | spring.datasource.password=nahanMysqlPwd&&RemoteRemote2019nahan |
| | | spring.datasource.url=jdbc:mysql://10.8.0.74:3306/flower_city_automessage?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&allowMultiQueries=true&serverTimezone=GMT%2B8 |
| | | #spring.datasource.url=jdbc:mysql://10.8.0.74:3306/flower_city_automessage?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&allowMultiQueries=true&serverTimezone=GMT%2B8 |
| | | #spring.datasource.url=jdbc:mysql://localhost:3306/flower_city_automessage?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&allowMultiQueries=true&serverTimezone=GMT%2B8 |
| | | #spring.datasource.url=jdbc:mysql://10.8.0.74:3306/huacheng_smart_life?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&allowMultiQueries=true&serverTimezone=GMT%2B8 |
| | | spring.datasource.url=jdbc:mysql://182.151.2.19:3306/huacheng_smart_life?allowMultiQueries=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8 |
| | | |
| | | server.port=8080 |
| | | |
| | | server.port=8187 |
| | | #server.port=8088 |
| | | |
| | | swagger.enabled=true |
| | |
| | | #Redis |
| | | spring.redis.host=127.0.0.1 |
| | | spring.redis.port=6379 |
| | | spring.redis.password=nahanRedisPwsIsVerySimple&& |
| | | |
| | | |
| | | |
| | | spring.mvc.pathmatch.matching-strategy=ant_path_matcher |
| | |
| | | spring.servlet.multipart.max-file-size=20MB |
| | | spring.servlet.multipart.max-request-size=50MB |
| | | |
| | | # ?????? |
| | | # ???? ??? Windows??D:/ruoyi/uploadPath?Linux?? /home/ruoyi/uploadPath? |
| | | #profile=E:/java/flower_city_automessage/flower_citys/files |
| | | profile=D:/tupianshuju |
| | | |
| | | |
| | | wx.open.app_id=wx118de8a734d269f0 |
| | | wx.open.app_id=wx118de8a734d269f0 |
| | | wx.open.app_secret=0264342daefde5cd70a6adada09ee5b1 |
| | | wx.open.redirect_url=http://yq.cdnhxx.com:8080/ucenter/wx/callback |
| | | yygh.baseUrl=http://localhost:8080 |
| | | |
| | | |
| | | |
| | | ftp.username=root |
| | | ftp.password=6-gj!bx@TNb!Dwpjd]1h1Kvqmc |
| | | ftp.host=182.151.31.48 |
| | | ftp.port=22 |
| | | ftp.url=http://test.panzhihua.nhys.cdnhxx.com/ |
| | | |
| | | |
| | | |
| | | |
| | |
| | | |
| | | <sql id="selectAgreement"> |
| | | select id,agreement, |
| | | (select user_name from sys_user where user_id=a.update_user_id)updateUserName, |
| | | (select user_name from automessage_sys_user where user_id=a.update_user_id)updateUserName, |
| | | update_user_id,create_time, |
| | | (select user_name from sys_user where user_id=a.create_user_id)createUserName, |
| | | create_user_id,agreement_content FROM agreement a |
| | | (select user_name from automessage_sys_user where user_id=a.create_user_id)createUserName, |
| | | create_user_id,agreement_content FROM automessage_agreement a |
| | | </sql> |
| | | |
| | | <select id="selectConfigList" resultMap="AgreementResult"> |
| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectAreaCode"> |
| | | select code,name,level,pcode FROM area_code_2022 |
| | | select code,name,level,pcode FROM automessage_area_code_2022 |
| | | </sql> |
| | | |
| | | <select id="selectByIdSet" resultMap="AreaCodeResult"> |
| | |
| | | <foreach collection="list" item="id" index="index" open="(" close=")" separator=","> |
| | | #{id} |
| | | </foreach> |
| | | order by level |
| | | </select> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.dg.core.db.gen.mapper.AutomessageCommonProblemMapper"> |
| | | <resultMap type="com.dg.core.db.gen.entity.AutomessageCommonProblem" id="AutomessageCommonProblemResult"> |
| | | <id property="id" column="id" /> |
| | | <id property="title" column="title" /> |
| | | <id property="content" column="content" /> |
| | | <id property="createTime" column="create_time" /> |
| | | <id property="updateTime" column="update_time" /> |
| | | <id property="updateUserId" column="update_user_id" /> |
| | | <id property="createUserId" column="create_user_id" /> |
| | | |
| | | </resultMap> |
| | | |
| | | <sql id="selectAutomessageCommonProblemResul"> |
| | | SELECT |
| | | id, |
| | | title, |
| | | content, |
| | | create_time, |
| | | update_time, |
| | | (select user_name from automessage_sys_user where user_id=a.update_user_id)updateUserName, |
| | | update_user_id, |
| | | (select user_name from automessage_sys_user where user_id=a.create_user_id)createUserName, |
| | | create_user_id |
| | | FROM |
| | | automessage_common_problem a |
| | | </sql> |
| | | |
| | | <select id="selectConfigList" resultMap="AutomessageCommonProblemResult"> |
| | | <include refid="selectAutomessageCommonProblemResul" /> |
| | | <where> |
| | | <if test="title!=null and title!=''"> |
| | | and title like concat('%', #{title}, '%') |
| | | </if> |
| | | <if test="content!=null and content!=''"> |
| | | and content like concat('%', #{content}, '%') |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="countConfigList" resultType="integer"> |
| | | select count(*) from automessage_common_problem |
| | | <where> |
| | | <if test="title!=null and title!=''"> |
| | | and title like concat('%', #{title}, '%') |
| | | </if> |
| | | <if test="content!=null and content!=''"> |
| | | and content like concat('%', #{content}, '%') |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.dg.core.db.gen.mapper.AutomessageTransactionEventInterviewMapper"> |
| | | |
| | | </mapper> |
| | |
| | | create_time, |
| | | update_time, |
| | | parent_id, |
| | | (select ca.classify_name from classify_administration as ca where ca.id= classify_administration.parent_id) as parentName, |
| | | (select ca.classify_name from automessage_classify_administration as ca where ca.id= automessage_classify_administration.parent_id) as parentName, |
| | | classify_name, |
| | | classify_icon |
| | | FROM |
| | | classify_administration |
| | | automessage_classify_administration |
| | | </sql> |
| | | |
| | | <select id="selectConfigList" resultMap="ClassifyAdministrationEntityResult"> |
| | |
| | | parent_id=#{parentId} |
| | | <if test="departmentId!=null"> |
| | | and id in ( |
| | | select classify_id from transaction_event where department_id=#{departmentId} UNION |
| | | select parent_id from classify_administration where id in (select classify_id FROM transaction_event where department_id=#{departmentId}) ) |
| | | select classify_id from automessage_transaction_event where department_id=#{departmentId} UNION |
| | | select parent_id from automessage_classify_administration where id in (select classify_id FROM automessage_transaction_event where department_id=#{departmentId}) ) |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <insert id="insertConfig" parameterType="com.dg.core.db.gen.entity.ClassifyAdministration"> |
| | | insert into classify_administration ( |
| | | insert into automessage_classify_administration ( |
| | | <if test="id != null">id,</if> |
| | | <if test="classifyGrade != null and classifyGrade != '' ">classify_grade,</if> |
| | | <if test="parentId != null">parent_id,</if> |
| | |
| | | </insert> |
| | | |
| | | <update id="updateConfig" parameterType="com.dg.core.db.gen.entity.ClassifyAdministration"> |
| | | update classify_administration |
| | | update automessage_classify_administration |
| | | <set> |
| | | <if test="id != null">id=#{id},</if> |
| | | <if test="classifyGrade != null and classifyGrade != '' ">classify_grade=#{classifyGrade},</if> |
| | |
| | | </update> |
| | | |
| | | <delete id="deleteConfigById" parameterType="String"> |
| | | delete from classify_administration where id= #{id} |
| | | delete from automessage_classify_administration where id= #{id} |
| | | </delete> |
| | | |
| | | <select id="countNum" resultType="integer"> |
| | | select count(id) from classify_administration |
| | | select count(id) from automessage_classify_administration |
| | | <where> |
| | | <if test="classifyName != null and classifyName != ''"> |
| | | AND classify_name like concat('%', #{classifyName}, '%') |
| | |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | |
| | | |
| | | <select id="selectParent" resultType="string"> |
| | | select id from automessage_classify_administration |
| | | <where> |
| | | <if test="parentId != null and parentId != ''"> |
| | | AND parent_id = #{parentId} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | |
| | | |
| | | </mapper> |
| | |
| | | SELECT |
| | | id, |
| | | department_id, |
| | | (select organization_name from organization_chart where organization_chart.id=else_accessory.department_id) as departmentName, |
| | | (select organization_name from automessage_organization_chart where automessage_organization_chart.id=automessage_else_accessory.department_id) as departmentName, |
| | | create_time, |
| | | update_time, |
| | | url, |
| | | name |
| | | FROM |
| | | else_accessory |
| | | automessage_else_accessory |
| | | </sql> |
| | | |
| | | <select id="selectConfigList" resultMap="ElseAccessoryEntityResult"> |
| | | <include refid="selectElseAccessoryEntityVo"/> |
| | | <where> |
| | | <if test="Name != null and Name != ''"> |
| | | AND else_accessory.name like concat('%', #{Name}, '%') |
| | | AND automessage_else_accessory.name like concat('%', #{Name}, '%') |
| | | </if> |
| | | <if test="ids != null"> |
| | | and department_id IN |
| | | <foreach collection="ids" item="param" open="(" close=")" separator=","> |
| | | #{param} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | order by create_time desc |
| | | </select> |
| | | |
| | | <select id="selectListByIds" resultMap="ElseAccessoryEntityResult"> |
| | | <include refid="selectElseAccessoryEntityVo"/> |
| | | WHERE id IN |
| | | <foreach collection="array" item="id" index="index" open="(" close=")" separator=","> |
| | | #{id} |
| | | </foreach> |
| | | order by create_time desc |
| | | </select> |
| | | |
| | | |
| | | <insert id="insertConfig" parameterType="com.dg.core.db.gen.entity.ElseAccessoryEntity"> |
| | | insert into else_accessory ( |
| | | insert into automessage_else_accessory ( |
| | | <if test="id != null">id,</if> |
| | | <if test="departmentId != null and departmentId != '' ">department_id,</if> |
| | | <if test="name != null and name != '' ">name,</if> |
| | |
| | | </insert> |
| | | |
| | | <update id="updateConfig" parameterType="com.dg.core.db.gen.entity.ElseAccessoryEntity"> |
| | | update else_accessory |
| | | update automessage_else_accessory |
| | | <set> |
| | | <if test="id != null">id=#{id},</if> |
| | | <if test="departmentId != null and departmentId != '' ">department_id=#{departmentId},</if> |
| | |
| | | </update> |
| | | |
| | | <delete id="deleteConfigById" parameterType="string"> |
| | | delete from else_accessory where id= #{Id} |
| | | delete from automessage_else_accessory where id= #{Id} |
| | | </delete> |
| | | |
| | | <select id="countNum" resultType="integer"> |
| | | select count(id) from else_accessory |
| | | select count(id) from automessage_else_accessory |
| | | <where> |
| | | <if test="Name != null and Name != ''"> |
| | | AND else_accessory.name like concat('%', #{Name}, '%') |
| | | AND automessage_else_accessory.name like concat('%', #{Name}, '%') |
| | | </if> |
| | | <if test="ids != null"> |
| | | and department_id IN |
| | | <foreach collection="ids" item="param" open="(" close=")" separator=","> |
| | | #{param} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | <id property="createTime" column="create_time" /> |
| | | <id property="updateTime" column="update_time" /> |
| | | <id property="fromDepartmentalId" column="from_departmental_id" /> |
| | | <id property="videoUrl" column="video_url" /> |
| | | <id property="pictureUrl" column="picture_url" /> |
| | | <id property="guideOrderNum" column="guide_order_num" /> |
| | | <id property="isTimeout" column="is_timeout" /> |
| | | |
| | | </resultMap> |
| | | |
| | |
| | | SELECT |
| | | id, |
| | | departmental_id, |
| | | (select user_name from automessage_sys_user where a.to_user_id=user_id)toUserName, |
| | | (select user_name from automessage_sys_user where a.from_user_id=user_id)fromUserName, |
| | | to_user_id, |
| | | from_user_id, |
| | | state, |
| | |
| | | accessory_name, |
| | | accessory_url, |
| | | from_departmental_id, |
| | | video_url, |
| | | picture_url, |
| | | create_time, |
| | | update_time |
| | | update_time, |
| | | guide_order_num, |
| | | is_timeout |
| | | FROM |
| | | guide_evolve |
| | | automessage_guide_evolve a |
| | | </sql> |
| | | |
| | | <select id="selectConfigList" resultMap="GuideEvolveResult"> |
| | |
| | | |
| | | |
| | | <insert id="insertConfig" parameterType="com.dg.core.db.gen.entity.GuideEvolveEntity"> |
| | | insert into guide_evolve ( |
| | | <if test="id != null">id,</if> |
| | | insert into automessage_guide_evolve ( |
| | | <if test="departmentalId != null and departmentalId != '' ">departmental_id,</if> |
| | | <if test="toUserId != null and toUserId != '' ">to_user_id,</if> |
| | | <if test="fromUserId != null and fromUserId != '' ">from_user_id,</if> |
| | |
| | | <if test="accessoryName != null and accessoryName != '' ">accessory_name,</if> |
| | | <if test="accessoryUrl != null and accessoryUrl != '' ">accessory_url,</if> |
| | | <if test="fromDepartmentalId != null and fromDepartmentalId != '' ">from_departmental_id,</if> |
| | | <if test="videoUrl != null and videoUrl != '' ">video_url,</if> |
| | | <if test="pictureUrl != null and pictureUrl != '' ">picture_url,</if> |
| | | <if test="guidOrderNum != null and guidOrderNum != '' ">guide_order_num,</if> |
| | | <if test="isTimeout != null and isTimeout != '' ">is_timeout,</if> |
| | | update_time, |
| | | create_time |
| | | )values( |
| | |
| | | <if test="accessoryName != null and accessoryName != '' ">#{accessoryName},</if> |
| | | <if test="accessoryUrl != null and accessoryUrl != '' ">#{accessoryUrl},</if> |
| | | <if test="fromDepartmentalId != null and fromDepartmentalId != '' ">#{fromDepartmentalId},</if> |
| | | <if test="videoUrl != null and videoUrl != '' ">#{videoUrl},</if> |
| | | <if test="pictureUrl != null and pictureUrl != '' ">#{pictureUrl},</if> |
| | | <if test="guidOrderNum != null and guidOrderNum != '' ">#{guidOrderNum},</if> |
| | | <if test="isTimeout != null and isTimeout != '' ">#{isTimeout},</if> |
| | | sysdate(), |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | | |
| | | <update id="updateConfig" parameterType="com.dg.core.db.gen.entity.GuideEvolveEntity"> |
| | | update guide_evolve |
| | | update automessage_guide_evolve |
| | | <set> |
| | | <if test="departmentalId != null and departmentalId != '' ">departmental_id=#{departmentalId},</if> |
| | | <if test="toUserId != null and toUserId != '' ">to_user_id=#{toUserId},</if> |
| | |
| | | <if test="accessoryName != null and accessoryName != '' ">accessory_name=#{accessoryName},</if> |
| | | <if test="accessoryUrl != null and accessoryUrl != '' ">accessory_url=#{accessoryUrl},</if> |
| | | <if test="fromDepartmentalId != null and fromDepartmentalId != '' ">from_departmental_id=#{fromDepartmentalId},</if> |
| | | <if test="videoUrl != null and videoUrl != '' ">video_url=#{videoUrl},</if> |
| | | <if test="pictureUrl != null and pictureUrl != '' ">picture_url=#{pictureUrl},</if> |
| | | <if test="isTimeout != null and isTimeout != '' ">is_timeout=#{isTimeout},</if> |
| | | update_time=sysdate() |
| | | </set> |
| | | where id= #{Id} |
| | | </update> |
| | | |
| | | <update id="updateGuid" parameterType="com.dg.core.db.gen.entity.GuideEvolveEntity"> |
| | | UPDATE automessage_guide_evolve |
| | | SET guide_id = (SELECT id from automessage_guide_repair_order where order_num=automessage_guide_evolve.guide_order_num ) |
| | | WHERE guide_id IS NULL |
| | | </update> |
| | | |
| | | <delete id="deleteConfigById" parameterType="string"> |
| | | delete from guide_evolve where id= #{Id} |
| | | delete from automessage_guide_evolve where id= #{Id} |
| | | </delete> |
| | | |
| | | <select id="countNum" resultType="integer"> |
| | | select count(id) from guide_evolve |
| | | select count(id) from automessage_guide_evolve |
| | | </select> |
| | | |
| | | <!-- 首页统计使用 勿动 --> |
| | | <select id="countStatisticsNum" resultType="integer"> |
| | | select count(id) from automessage_guide_evolve |
| | | <where> |
| | | <if test="state != null and state != ''"> |
| | | and automessage_guide_evolve.state=#{state} |
| | | </if> |
| | | <if test="isTimeout != null and isTimeout != ''"> |
| | | and automessage_guide_evolve.is_timeout=#{isTimeout} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </mapper> |
| | | |
| | | |
| | |
| | | <id property="evaluateContent" column="evaluate_content" /> |
| | | <id property="suggest" column="suggest" /> |
| | | <id property="evaluateState" column="evaluate_state" /> |
| | | <id property="serviceState" column="service_state" /> |
| | | <id property="images" column="images" /> |
| | | <id property="video" column="video" /> |
| | | <id property="isTimeout" column="is_timeout" /> |
| | | <id property="submitType" column="submit_type" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectGuideRepairOrderVo"> |
| | |
| | | id, |
| | | order_num, |
| | | matter_id, |
| | | submit_type, |
| | | matter_name, |
| | | (select organization_name from automessage_organization_chart where a.department_id=id)organizationName, |
| | | concat( |
| | | (select classify_name from automessage_classify_administration where id=(select parent_id from automessage_classify_administration where id=a.classify_id)), |
| | | '-',(select classify_name from automessage_classify_administration where id=a.classify_id) |
| | | ) sumClassifyName, |
| | | department_id, |
| | | classify_id, |
| | | consult_content, |
| | | concat(consult_user_name,consult_user_phone) consultUser, |
| | | consult_user_name, |
| | | concat((select user_name from automessage_sys_user where a.submit_user_id=user_id ), submit_user_phone) submitUser, |
| | | submit_user_id, |
| | | concat((select user_name from automessage_sys_user where a.guide_user_id=user_id ), guide_user_phone) guideUser, |
| | | guide_user_id, |
| | | (select organization_name from automessage_organization_chart where a.guide_department_id=id)guideDepartmentName, |
| | | guide_department_id, |
| | | state, |
| | | consult_user_phone, |
| | | submit_user_phone, |
| | | guide_user_phone, |
| | | (select name from automessage_area_code_2022 where code=a.area_code)areaName, |
| | | area_code, |
| | | detailed_address, |
| | | create_time, |
| | | update_time, |
| | | evaluate_content, |
| | | suggest, |
| | | evaluate_state |
| | | evaluate_state, |
| | | service_state, |
| | | video, |
| | | images, |
| | | is_timeout |
| | | FROM |
| | | guide_repair_order |
| | | automessage_guide_repair_order a |
| | | </sql> |
| | | |
| | | <select id="selectConfigList" resultMap="GuideRepairOrderResult"> |
| | | <include refid="selectGuideRepairOrderVo"/> |
| | | <where> |
| | | <if test="matterName != null and matterName != ''"> |
| | | AND matter_name like concat('%', #{matterName}, '%') |
| | | </if> |
| | | <if test="ids != null"> |
| | | and department_id IN |
| | | <foreach collection="ids" item="param" open="(" close=")" separator=","> |
| | | #{param} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | order by update_time desc , create_time desc |
| | | </select> |
| | | |
| | | <select id="countConfigList" resultType="integer"> |
| | | select count(id) from automessage_guide_repair_order |
| | | <where> |
| | | <if test="matterName != null and matterName != ''"> |
| | | AND matter_name like concat('%', #{matterName}, '%') |
| | | </if> |
| | | <if test="ids != null"> |
| | | and department_id IN |
| | | <foreach collection="ids" item="param" open="(" close=")" separator=","> |
| | | #{param} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectConfigData" resultMap="GuideRepairOrderResult"> |
| | | <include refid="selectGuideRepairOrderVo"/> |
| | |
| | | </select> |
| | | |
| | | |
| | | <select id="selectBySubmitId" resultMap="GuideRepairOrderResult"> |
| | | <include refid="selectGuideRepairOrderVo"/> |
| | | where submit_user_id=#{id} and ( state not in (3,5) or ( state in (3,5) and 60>datediff(now(),create_time) |
| | | )) order by create_time desc |
| | | </select> |
| | | |
| | | |
| | | |
| | | <update id="updateConfig" parameterType="com.dg.core.db.gen.entity.GuideRepairOrder"> |
| | | update guide_repair_order |
| | | update automessage_guide_repair_order |
| | | <set> |
| | | <if test="guideUserId != null and guideUserId != '' ">guide_user_id=#{guideUserId},</if> |
| | | <if test="guideDepartmentId != null and guideDepartmentId != '' ">guide_department_id=#{guideDepartmentId},</if> |
| | | <if test="state != null and state != '' ">state=#{state},</if> |
| | | <if test="guideUserPhone != null and guideUserPhone != '' ">guide_user_phone=#{guideUserPhone},</if> |
| | | <if test="evaluateState != null and evaluateState != '' ">evaluate_state=#{evaluateState},</if> |
| | | <if test="evaluateContent != null and evaluateContent != '' ">evaluate_content=#{evaluateContent},</if> |
| | | <if test="suggest != null and suggest != '' ">suggest=#{suggest},</if> |
| | | <if test="serviceState != null ">service_state=#{serviceState},</if> |
| | | <if test="isTimeout != null ">is_timeout=#{isTimeout},</if> |
| | | update_time=sysdate() |
| | | </set> |
| | | where id= #{Id} |
| | | where id= #{id} |
| | | </update> |
| | | |
| | | |
| | | <select id="countNum" resultType="integer"> |
| | | select count(id) from menu |
| | | select count(id) from automessage_guide_repair_order |
| | | </select> |
| | | |
| | | |
| | | <select id="countUser" resultType="integer"> |
| | | select count(id) from automessage_guide_repair_order |
| | | <where> |
| | | <if test="userId != null and userId != ''"> |
| | | AND guide_user_id=#{userId} |
| | | </if> |
| | | <if test="state != null and state != ''"> |
| | | AND automessage_guide_repair_order.state = #{state} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | <!-- 首页统计 勿动 --> |
| | | <select id="countStatisticsNum" parameterType="string" resultType="integer"> |
| | | select count(id) from automessage_guide_repair_order |
| | | <where> |
| | | <if test="state != null and state != ''"> |
| | | automessage_guide_repair_order.state=#{state} |
| | | </if> |
| | | <if test="isTimeout != null and isTimeout != ''"> |
| | | and is_timeout=#{isTimeout} |
| | | </if> |
| | | <if test="evaluateState != null and evaluateState != ''"> |
| | | and evaluate_state=#{evaluateState} |
| | | </if> |
| | | <if test="ids != null"> |
| | | and department_id IN |
| | | <foreach collection="ids" item="param" open="(" close=")" separator=","> |
| | | #{param} |
| | | </foreach> |
| | | </if> |
| | | <if test="classifyIds != null"> |
| | | and classify_id IN |
| | | <foreach collection="classifyIds" item="param" open="(" close=")" separator=","> |
| | | #{param} |
| | | </foreach> |
| | | </if> |
| | | <if test="time != null and time == 1 "> |
| | | and to_days(automessage_guide_repair_order.create_time) = to_days(now()) |
| | | </if> |
| | | <if test="time != null and time == 2 "> |
| | | and TO_DAYS(NOW()) - TO_DAYS(automessage_guide_repair_order.create_time) = 1 |
| | | </if> |
| | | <if test="time != null and time == 3 "> |
| | | and DATE_FORMAT( automessage_guide_repair_order.create_time, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' ) |
| | | </if> |
| | | <if test="time != null and time == 4 "> |
| | | and YEAR(automessage_guide_repair_order.create_time)=YEAR(NOW()) |
| | | </if> |
| | | </where> |
| | | </select> |
| | | <!-- 首页统计 勿动 --> |
| | | <select id="countListNum" resultType="com.dg.core.db.gen.entity.CountListNum"> |
| | | select create_time,count(id) as num from automessage_guide_repair_order |
| | | <where> |
| | | <if test="state != null and state != ''"> |
| | | automessage_guide_repair_order.state=#{state} |
| | | </if> |
| | | <if test="ids != null"> |
| | | and department_id IN |
| | | <foreach collection="ids" item="param" open="(" close=")" separator=","> |
| | | #{param} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | GROUP BY |
| | | date_format(create_time,'%y%m%d') |
| | | ORDER BY |
| | | create_time DESC |
| | | LIMIT #{time} |
| | | </select> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.dg.core.db.gen.mapper.HomeStatisticsMapper"> |
| | | |
| | | <!-- 按办结量排序 --> |
| | | <select id="guidePlatePeople" resultType="com.dg.core.db.gen.entity.GuidePlate"> |
| | | SELECT |
| | | user_name as userName, |
| | | (SELECT organization_name FROM automessage_organization_chart WHERE automessage_organization_chart.id=department_id) as departmentNmae, |
| | | (select count(id) from automessage_guide_repair_order WHERE automessage_guide_repair_order.guide_user_id=automessage_sys_user.user_id) as num |
| | | FROM automessage_sys_user WHERE user_type=2 ORDER BY |
| | | num DESC |
| | | LIMIT 10 |
| | | </select> |
| | | |
| | | <!-- 按评分排序 --> |
| | | <select id="score" resultType="com.dg.core.db.gen.entity.GuidePlate"> |
| | | SELECT |
| | | user_name, |
| | | (SELECT organization_name FROM automessage_organization_chart WHERE automessage_organization_chart.id=department_id) as departmentNmae, |
| | | ((select sum(IF(evaluate_state='1',10,IF(evaluate_state='2',5,0))) from automessage_guide_repair_order WHERE automessage_guide_repair_order.guide_user_id=automessage_sys_user.user_id)/(select count(id) from automessage_guide_repair_order WHERE automessage_guide_repair_order.guide_user_id=automessage_sys_user.user_id)) as num |
| | | FROM automessage_sys_user WHERE user_type=2 ORDER BY |
| | | num DESC |
| | | LIMIT 10 |
| | | </select> |
| | | |
| | | <!-- 按超时 --> |
| | | <select id="timeout" resultType="com.dg.core.db.gen.entity.GuidePlate"> |
| | | SELECT |
| | | user_name as userName, |
| | | (SELECT organization_name FROM automessage_organization_chart WHERE automessage_organization_chart.id=department_id) as departmentNmae, |
| | | (select count(id) from automessage_guide_repair_order WHERE automessage_guide_repair_order.guide_user_id=automessage_sys_user.user_id and automessage_guide_repair_order.is_timeout=2 |
| | | ) as num |
| | | FROM automessage_sys_user WHERE user_type=2 ORDER BY |
| | | num DESC |
| | | LIMIT 10 |
| | | </select> |
| | | |
| | | |
| | | <!-- 导办人员统计数 --> |
| | | <select id="staffNum" resultType="integer"> |
| | | SELECT count(id) |
| | | FROM automessage_sys_user WHERE user_type=2 |
| | | </select> |
| | | |
| | | <!-- 获取一级组织 --> |
| | | <select id="getDepartment" resultType="com.dg.core.db.gen.entity.OrganizationEntity"> |
| | | SELECT |
| | | organization_name as departmentNmae, |
| | | id |
| | | FROM automessage_organization_chart |
| | | WHERE grade=1 |
| | | </select> |
| | | |
| | | |
| | | <!-- 组织排行榜 按评价 --> |
| | | <select id="organizationScore" resultType="integer"> |
| | | SELECT sum(IF(evaluate_state='1',10,IF(evaluate_state='2',5,0))) |
| | | FROM automessage_guide_repair_order |
| | | WHERE department_id in |
| | | <foreach collection="ids" item="param" open="(" close=")" separator=","> |
| | | #{param} |
| | | </foreach> |
| | | </select> |
| | | |
| | | |
| | | |
| | | <!-- 组织排行榜 按办结量 --> |
| | | <select id="organizationNum" resultType="integer"> |
| | | SELECT count(id) FROM automessage_guide_repair_order WHERE department_id in |
| | | <foreach collection="ids" item="param" open="(" close=")" separator=","> |
| | | #{param} |
| | | </foreach> |
| | | </select> |
| | | |
| | | <!-- 办事指南 根据导办数量排序 --> |
| | | <select id="guidanceTransaction" resultType="com.dg.core.db.gen.entity.Guidance"> |
| | | SELECT matter_name as name ,transaction_num as num from |
| | | automessage_transaction_event ORDER BY |
| | | num DESC |
| | | LIMIT 10 |
| | | </select> |
| | | |
| | | <!-- 办事指南 根据导办数量排序 --> |
| | | <select id="guidanceBrowse" resultType="com.dg.core.db.gen.entity.Guidance"> |
| | | SELECT matter_name as name ,browse_num as num from |
| | | automessage_transaction_event ORDER BY |
| | | num DESC |
| | | LIMIT 10 |
| | | </select> |
| | | |
| | | |
| | | <!-- 办事指南 统计数量 --> |
| | | <select id="countWork" resultType="integer"> |
| | | SELECT count(id) from automessage_transaction_event |
| | | </select> |
| | | |
| | | |
| | | |
| | | <!-- 首页统计 勿动 --> |
| | | <select id="countStatisticsNum" resultType="integer"> |
| | | select count(id) from automessage_transaction_event |
| | | <where> |
| | | <if test="classifyIds != null"> |
| | | and classify_id IN |
| | | <foreach collection="classifyIds" item="param" open="(" close=")" separator=","> |
| | | #{param} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | <!-- 首页统计用 勿动 --> |
| | | <select id="getClassify" parameterType="string" resultType="com.dg.core.db.gen.entity.ClassifyAdministration"> |
| | | select id,classify_name from automessage_classify_administration |
| | | <where> |
| | | <if test="parentId != null and parentId != ''"> |
| | | AND parent_id=#{parentId} |
| | | </if> |
| | | <if test="classifyGrade != null and classifyGrade != ''"> |
| | | AND classify_grade = #{classifyGrade} |
| | | </if> |
| | | </where> |
| | | |
| | | </select> |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.dg.core.db.gen.mapper.HuaChengSysUserMapper"> |
| | | |
| | | <resultMap type="com.dg.core.db.gen.entity.HuaChengSysUser" id="SysUserResult"> |
| | | <id property="userId" column="user_id" /> |
| | | <id property="account" column="account" /> |
| | | <id property="password" column="password" /> |
| | | <id property="openid" column="openid" /> |
| | | <id property="sessionKey" column="session_key" /> |
| | | <id property="unionid" column="unionid" /> |
| | | <id property="phone" column="phone" /> |
| | | <id property="nickName" column="nick_name" /> |
| | | <id property="name" column="name" /> |
| | | <id property="communityId" column="community_id" /> |
| | | <id property="sex" column="sex" /> |
| | | <id property="idCard" column="id_card" /> |
| | | <id property="birthday" column="birthday" /> |
| | | <id property="imageUrl" column="image_url" /> |
| | | <id property="type" column="type" /> |
| | | <id property="job" column="job" /> |
| | | <id property="isVolunteer" column="is_volunteer" /> |
| | | <id property="isPartymember" column="is_partymember" /> |
| | | <id property="status" column="status" /> |
| | | <id property="createAt" column="create_at" /> |
| | | <id property="lastLoginTime" column="last_login_time" /> |
| | | <id property="tags" column="tags" /> |
| | | <id property="familyId" column="family_id" /> |
| | | <id property="faceUrl" column="face_url" /> |
| | | <id property="faceState" column="face_state" /> |
| | | <id property="rejectReson" column="reject_reson" /> |
| | | <id property="areaId" column="area_id" /> |
| | | <id property="cardPhotoFront" column="card_photo_front" /> |
| | | <id property="cardPhotoBack" column="card_photo_back" /> |
| | | <id property="familyBook" column="family_book" /> |
| | | <id property="continuousLandingDays" column="continuous_landing_days" /> |
| | | <id property="isTips" column="is_tips" /> |
| | | <id property="workStatus" column="work_status" /> |
| | | <id property="workStartTime" column="work_start_time" /> |
| | | <id property="workEndTime" column="work_end_time" /> |
| | | <id property="bigAgeTips" column="big_age_tips" /> |
| | | <id property="plaintextPassword" column="plaintext_password" /> |
| | | <id property="streetId" column="street_id" /> |
| | | <id property="relationName" column="relation_name" /> |
| | | <id property="appId" column="app_id" /> |
| | | <id property="isAccept" column="is_accept" /> |
| | | <id property="bindingCheckUnitId" column="binding_check_unit_id" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSysUserVo"> |
| | | SELECT |
| | | user_id, |
| | | account, |
| | | password, |
| | | openid, |
| | | session_key, |
| | | unionid, |
| | | phone, |
| | | nick_name, |
| | | name, |
| | | community_id, |
| | | sex, |
| | | id_card, |
| | | birthday, |
| | | image_url, |
| | | type, |
| | | job, |
| | | is_volunteer, |
| | | is_partymember, |
| | | status, |
| | | create_at, |
| | | last_login_time, |
| | | tags, |
| | | family_id, |
| | | face_url, |
| | | face_state, |
| | | reject_reson, |
| | | area_id, |
| | | card_photo_front, |
| | | card_photo_back, |
| | | family_book, |
| | | continuous_landing_days, |
| | | is_tips, |
| | | work_status, |
| | | work_start_time, |
| | | work_end_time, |
| | | big_age_tips, |
| | | plaintext_password, |
| | | street_id, |
| | | relation_name, |
| | | app_id, |
| | | is_accept, |
| | | binding_check_unit_id |
| | | FROM |
| | | sys_user |
| | | </sql> |
| | | |
| | | |
| | | <select id="selectNum" resultType="integer"> |
| | | select count(user_id) from sys_user |
| | | </select> |
| | | |
| | | <select id="selectConfigList" resultMap="SysUserResult"> |
| | | <include refid="selectSysUserVo"/> |
| | | </select> |
| | | |
| | | <select id="selectData" parameterType="string" resultMap="SysUserResult"> |
| | | <include refid="selectSysUserVo"/> |
| | | <where> |
| | | app_id='wx118de8a734d269f0' |
| | | <if test="userId!=null and userId!=''"> |
| | | and user_id=#{userId} |
| | | </if> |
| | | <if test="account!=null and account!=''"> |
| | | and account=#{account} |
| | | </if> |
| | | <if test="phone!=null and phone!=''"> |
| | | and phone=#{phone} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | update_time, |
| | | transaction_id |
| | | FROM |
| | | keyword |
| | | automessage_keyword |
| | | </sql> |
| | | |
| | | <select id="selectConfigList" resultMap="KeywordEntityResult"> |
| | |
| | | <include refid="selectKeywordEntityVo"/> |
| | | <where> |
| | | <if test="Id != null and Id != ''"> |
| | | AND keyword.id=#{Id} |
| | | AND automessage_keyword.id=#{Id} |
| | | </if> |
| | | <if test="name != null and name != ''"> |
| | | AND keyword.name=#{name} |
| | | AND automessage_keyword.name=#{name} |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | </select> |
| | | |
| | | <insert id="insertConfig" parameterType="com.dg.core.db.gen.entity.KeywordEntity"> |
| | | insert into keyword ( |
| | | insert into automessage_keyword ( |
| | | <if test="id != null">id,</if> |
| | | <if test="name != null and name != '' ">name,</if> |
| | | <if test="transactionId != null and transactionId !='' ">transaction_id,</if> |
| | |
| | | </insert> |
| | | |
| | | <update id="updateConfig" parameterType="com.dg.core.db.gen.entity.KeywordEntity"> |
| | | update keyword |
| | | update automessage_keyword |
| | | <set> |
| | | <if test="id != null">id=#{id},</if> |
| | | <if test="name != null and name != '' ">name=#{name},</if> |
| | |
| | | </update> |
| | | |
| | | <delete id="deleteConfigById" parameterType="string"> |
| | | delete from keyword where id= #{Id} |
| | | delete from automessage_keyword where id= #{Id} |
| | | </delete> |
| | | |
| | | <select id="countNum" resultType="integer"> |
| | | select count(id) from keyword |
| | | select count(id) from automessage_keyword |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | parent_id, |
| | | remark |
| | | FROM |
| | | menu |
| | | automessage_menu |
| | | </sql> |
| | | |
| | | <select id="selectConfigList" resultMap="MenuEntityResult"> |
| | |
| | | |
| | | |
| | | <insert id="insertConfig" parameterType="com.dg.core.db.gen.entity.MenuEntity"> |
| | | insert into menu ( |
| | | insert into automessage_menu ( |
| | | <if test="id != null">id,</if> |
| | | <if test="title != null and title != '' ">title,</if> |
| | | <if test="parentId != null">parent_id,</if> |
| | |
| | | </insert> |
| | | |
| | | <update id="updateConfig" parameterType="com.dg.core.db.gen.entity.MenuEntity"> |
| | | update menu |
| | | update automessage_menu |
| | | <set> |
| | | <if test="id != null">id=#{id},</if> |
| | | <if test="title != null and title != '' ">title=#{title},</if> |
| | |
| | | </update> |
| | | |
| | | <delete id="deleteConfigById" parameterType="Long"> |
| | | delete from menu where id= #{Id} |
| | | delete from automessage_menu where id= #{Id} |
| | | </delete> |
| | | |
| | | <select id="countNum" resultType="integer"> |
| | | select count(id) from menu |
| | | select count(id) from automessage_menu |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | <id property="resume" column="resume" /> |
| | | <id property="contactNumber" column="contact_number" /> |
| | | <id property="departmentalApplication" column="departmental_application" /> |
| | | <id property="updateUserId" column="update_user_id" /> |
| | | <id property="areaList" column="area_list" /> |
| | | |
| | | |
| | | </resultMap> |
| | | |
| | |
| | | create_time, |
| | | update_time, |
| | | parent_id, |
| | | (select organization_name from organization_chart as oc where oc.id=organization_chart.parent_id) as parentName, |
| | | update_user_id, |
| | | (select user_name from automessage_sys_user where user_id=automessage_organization_chart.update_user_id) as updateUserName, |
| | | (select organization_name from automessage_organization_chart as oc where oc.id=automessage_organization_chart.parent_id) as parentName, |
| | | city, |
| | | district, |
| | | village, |
| | | (select name from automessage_area_code_2022 where city=automessage_area_code_2022.code) as cityName, |
| | | (select name from automessage_area_code_2022 where district=automessage_area_code_2022.code) as districtName, |
| | | (select name from automessage_area_code_2022 where village=automessage_area_code_2022.code) as villageName, |
| | | detailed_address, |
| | | grade, |
| | | resume,contact_number |
| | | area_list |
| | | FROM |
| | | organization_chart |
| | | automessage_organization_chart |
| | | </sql> |
| | | |
| | | <select id="selectConfigById" resultMap="OrganizationChartResult"> |
| | | <include refid="selectOrganizationChartVo"/> |
| | | where id= #{id} |
| | | </select> |
| | | |
| | | <select id="queryList" resultMap="OrganizationChartResult"> |
| | | <include refid="selectOrganizationChartVo"/> |
| | | <where> |
| | | <if test="organizationName != null and organizationName != ''"> |
| | | AND organization_name like concat('%', #{organizationName}, '%') |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="countList" resultType="integer"> |
| | | select count(id) from automessage_organization_chart |
| | | <where> |
| | | <if test="organizationName != null and organizationName != ''"> |
| | | AND organization_name like concat('%', #{organizationName}, '%') |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectConfigList" resultMap="OrganizationChartResult"> |
| | |
| | | <if test="grade != null and grade != ''"> |
| | | AND grade=#{grade} |
| | | </if> |
| | | |
| | | </where> |
| | | |
| | | |
| | | </select> |
| | | |
| | | <select id="selectByKeyWord" resultMap="OrganizationChartResult"> |
| | |
| | | or resume like concat('%', #{keyWord}, '%') or #{keyWord} like concat('%', resume, '%') |
| | | </select> |
| | | |
| | | |
| | | <select id="selectByCode" resultMap="OrganizationChartResult"> |
| | | <include refid="selectOrganizationChartVo"/> |
| | | <where> |
| | | city=#{areaCode} or district= #{areaCode} or village=#{areaCode} |
| | | </where> |
| | | </select> |
| | | |
| | | <insert id="insertConfig" parameterType="com.dg.core.db.gen.entity.OrganizationChartEntity"> |
| | | insert into organization_chart ( |
| | | insert into automessage_organization_chart ( |
| | | <if test="id != null">id,</if> |
| | | <if test="organizationName != null and organizationName != '' ">organization_name,</if> |
| | | <if test="parentId != null">parent_id,</if> |
| | |
| | | <if test="village != null and village != '' ">village,</if> |
| | | <if test="detailedAddress != null and detailedAddress != '' ">detailed_address,</if> |
| | | <if test="grade != null and grade != '' ">grade,</if> |
| | | <if test="areaList != null and areaList != '' ">area_list,</if> |
| | | <if test="contactNumber != null and contactNumber != '' ">contact_number,</if> |
| | | <if test="departmentalApplication != null and departmentalApplication != '' ">departmental_application,</if> |
| | | <if test="updateUserId != null and updateUserId != '' ">update_user_id,</if> |
| | | <if test="resume != null and resume != '' ">resume,</if> |
| | | update_time, |
| | | create_time |
| | | )values( |
| | |
| | | <if test="village != null and village != '' ">#{village},</if> |
| | | <if test="detailedAddress != null and detailedAddress != '' ">#{detailedAddress},</if> |
| | | <if test="grade != null and grade != '' ">#{grade},</if> |
| | | <if test="areaList != null and areaList != '' ">#{areaList},</if> |
| | | <if test="contactNumber != null and contactNumber != '' ">#{contactNumber},</if> |
| | | <if test="departmentalApplication != null and departmentalApplication != '' ">#{departmentalApplication},</if> |
| | | <if test="updateUserId != null and updateUserId != '' ">#{updateUserId},</if> |
| | | <if test="resume != null and resume != '' ">#{resume},</if> |
| | | sysdate(), |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | | |
| | | <update id="updateConfig" parameterType="com.dg.core.db.gen.entity.OrganizationChartEntity"> |
| | | update organization_chart |
| | | update automessage_organization_chart |
| | | <set> |
| | | <if test="id != null">id=#{id},</if> |
| | | <if test="organizationName != null and organizationName != '' ">organization_name=#{organizationName},</if> |
| | |
| | | <if test="village != null and village != '' ">village=#{village},</if> |
| | | <if test="detailedAddress != null and detailedAddress != '' ">detailed_address=#{detailedAddress},</if> |
| | | <if test="grade != null and grade != '' ">grade=#{grade},</if> |
| | | <if test="departmentalApplication != null and departmentalApplication != '' ">departmental_application=#{departmentalApplication},</if> |
| | | <if test="updateUserId != null">update_user_id=#{updateUserId},</if> |
| | | <if test="areaList != null and areaList != '' ">area_list=#{areaList},</if> |
| | | <if test="contactNumber != null and contactNumber != '' ">contact_number=#{contactNumber},</if> |
| | | <if test="departmentalApplication != null and departmentalApplication != '' ">departmental_application=#{departmentalApplication},</if> |
| | | <if test="updateUserId != null and updateUserId != '' ">update_user_id=#{updateUserId},</if> |
| | | <if test="resume != null and resume != '' ">resume=#{resume},</if> |
| | | update_time=sysdate() |
| | | </set> |
| | | where id= #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteConfigById" parameterType="string"> |
| | | delete from organization_chart where id= #{Id} |
| | | delete from automessage_organization_chart where id= #{Id} |
| | | </delete> |
| | | |
| | | <select id="countNum" resultType="integer"> |
| | | select count(id) from organization_chart |
| | | select count(id) from automessage_organization_chart |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | department_id, |
| | | create_user_id, |
| | | accessory_id, |
| | | (select organization_name from organization_chart where organization_chart.id=reply_template.department_id) as departmentName, |
| | | (select user_name from sys_user where sys_user.user_id=reply_template.create_user_id) as createUser, |
| | | (select organization_name from automessage_organization_chart where automessage_organization_chart.id=automessage_reply_template.department_id) as departmentName, |
| | | (select user_name from automessage_sys_user where automessage_sys_user.user_id=automessage_reply_template.create_user_id) as createUser, |
| | | guidance |
| | | FROM |
| | | reply_template |
| | | automessage_reply_template |
| | | </sql> |
| | | |
| | | <select id="selectConfigList" resultMap="ReplyTemplateResult"> |
| | |
| | | <where> |
| | | <if test="Name != null and Name != ''"> |
| | | AND name=#{Name} |
| | | </if> |
| | | <if test="ids != null"> |
| | | and department_id IN |
| | | <foreach collection="ids" item="param" open="(" close=")" separator=","> |
| | | #{param} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | |
| | |
| | | |
| | | |
| | | <insert id="insertConfig" parameterType="com.dg.core.db.gen.entity.ReplyTemplateEntity"> |
| | | insert into reply_template ( |
| | | insert into automessage_reply_template ( |
| | | <if test="id != null">id,</if> |
| | | <if test="name != null and name != '' ">name,</if> |
| | | <if test="handleState != null and handleState != '' ">handle_state,</if> |
| | |
| | | </insert> |
| | | |
| | | <update id="updateConfig" parameterType="com.dg.core.db.gen.entity.ReplyTemplateEntity"> |
| | | update reply_template |
| | | update automessage_reply_template |
| | | <set> |
| | | <if test="id != null">id=#{id},</if> |
| | | <if test="name != null and name != '' ">name=#{name},</if> |
| | |
| | | </update> |
| | | |
| | | <delete id="deleteConfigById" parameterType="string"> |
| | | delete from reply_template where id= #{Id} |
| | | delete from automessage_reply_template where id= #{Id} |
| | | </delete> |
| | | |
| | | <select id="countNum" parameterType="string" resultType="integer"> |
| | | select count(id) from reply_template |
| | | select count(id) from automessage_reply_template |
| | | <where> |
| | | <if test="Name != null and Name != ''"> |
| | | AND name=#{Name} |
| | | </if> |
| | | <if test="ids != null"> |
| | | and department_id IN |
| | | <foreach collection="ids" item="param" open="(" close=")" separator=","> |
| | | #{param} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | create_user_id, |
| | | update_user_id |
| | | FROM |
| | | role_management |
| | | automessage_role_management |
| | | </sql> |
| | | |
| | | <select id="selectConfigList" resultMap="RoleManagementEntityResult"> |
| | |
| | | </select> |
| | | |
| | | <insert id="insertConfig" parameterType="com.dg.core.db.gen.entity.RoleManagementEntity"> |
| | | insert into role_management ( |
| | | insert into automessage_role_management ( |
| | | <if test="id != null">id,</if> |
| | | <if test="roleName != null and roleName != '' ">role_name,</if> |
| | | <if test="permission != null">permission,</if> |
| | |
| | | </insert> |
| | | |
| | | <update id="updateConfig" parameterType="com.dg.core.db.gen.entity.RoleManagementEntity"> |
| | | update role_management |
| | | update automessage_role_management |
| | | <set> |
| | | <if test="id != null">id=#{id},</if> |
| | | <if test="roleName != null and roleName != '' ">role_name=#{roleName},</if> |
| | |
| | | </update> |
| | | |
| | | <delete id="deleteConfigById" parameterType="string"> |
| | | delete from role_management where id= #{Id} |
| | | delete from automessage_role_management where id= #{Id} |
| | | </delete> |
| | | |
| | | <select id="countNum" resultType="integer"> |
| | | select count(id) from role_management |
| | | select count(id) from automessage_role_management |
| | | </select> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.dg.core.db.gen.mapper.RoleMenuEntityMapper"> |
| | | |
| | | <resultMap type="com.dg.core.db.gen.entity.RoleMenuEntity" id="RoleMenuEntityResult"> |
| | | <id property="id" column="id" /> |
| | | <id property="roleId" column="role_id" /> |
| | | <id property="menuId" column="menu_id" /> |
| | | <id property="createTime" column="create_time" /> |
| | | <id property="updateTime" column="update_time" /> |
| | | |
| | | </resultMap> |
| | | |
| | | <sql id="selectRoleManagementEntityVo"> |
| | | SELECT |
| | | id, |
| | | role_id, |
| | | menu_id, |
| | | create_time, |
| | | update_time |
| | | FROM |
| | | automessage_role_menu |
| | | </sql> |
| | | |
| | | <select id="selectConfigList" parameterType="string" resultMap="RoleMenuEntityResult"> |
| | | <include refid="selectRoleManagementEntityVo"/> |
| | | <where> |
| | | <if test="roleId!=null and roleId!=''"> |
| | | and role_id=#{roleId} |
| | | </if> |
| | | |
| | | </where> |
| | | </select> |
| | | |
| | | <insert id="insertConfig" parameterType="com.dg.core.db.gen.entity.RoleManagementEntity"> |
| | | insert into automessage_role_menu ( |
| | | <if test="id != null">id,</if> |
| | | <if test="roleId != null and roleId != '' ">role_id,</if> |
| | | <if test="menuId != null and menuId != '' ">menu_id,</if> |
| | | update_time, |
| | | create_time |
| | | )values( |
| | | <if test="id != null">#{id},</if> |
| | | <if test="roleId != null and roleId != '' ">#{roleId},</if> |
| | | <if test="menuId != null and menuId != '' ">#{menuId},</if> |
| | | sysdate(), |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | | |
| | | <update id="updateConfig" parameterType="com.dg.core.db.gen.entity.RoleManagementEntity"> |
| | | update automessage_role_menu |
| | | <set> |
| | | <if test="id != null">id=#{id},</if> |
| | | <if test="roleId != null and roleId != '' ">role_id=#{roleId},</if> |
| | | <if test="menuId != null and menuId != '' ">menu_id=#{menuId},</if> |
| | | update_time=sysdate() |
| | | </set> |
| | | where id= #{Id} |
| | | </update> |
| | | |
| | | <delete id="deleteConfigById" parameterType="string"> |
| | | delete from automessage_role_menu where id= #{Id} |
| | | </delete> |
| | | |
| | | <select id="countNum" resultType="integer"> |
| | | select count(id) from automessage_role_menu |
| | | </select> |
| | | |
| | | </mapper> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | |
| | | <?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.dg.core.db.gen.mapper.SysUserMapper"> |
| | | |
| | | <resultMap type="com.dg.core.db.gen.entity.SysUser" id="SysUserResult"> |
| | | <id property="id" column="id" /> |
| | | <id property="userId" column="user_id" /> |
| | | <result property="loginName" column="login_name" /> |
| | | <result property="userName" column="user_name" /> |
| | |
| | | <result property="departmentId" column="department_id" /> |
| | | <result property="stairId" column="stair_id" /> |
| | | <result property="secondLevelId" column="second_level_id" /> |
| | | |
| | | |
| | | <result property="departmentName" column="department_name" /> |
| | | <result property="departmentArea" column="department_area" /> |
| | | <result property="leisureState" column="leisure_state" /> |
| | |
| | | <result property="masterNames" column="master_names" /> |
| | | <result property="transactionIds" column="transaction_ids" /> |
| | | <result property="transactionNames" column="transaction_names" /> |
| | | |
| | | |
| | | |
| | | <result property="openid" column="openid" /> |
| | | <result property="transactionNum" column="transaction_num" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSysUserVo"> |
| | | SELECT |
| | | id, |
| | | user_id, |
| | | login_name, |
| | | user_name, |
| | |
| | | phonenumber, |
| | | sex, |
| | | avatar, |
| | | password, |
| | | salt, |
| | | status, |
| | | del_flag, |
| | |
| | | create_time, |
| | | update_by, |
| | | update_time, |
| | | remark, |
| | | role_ids, |
| | | data_permission, |
| | | department_id, |
| | | stair_id, |
| | | second_level_id, |
| | | (select organization_name from organization_chart where sys_user.department_id=organization_chart.id) as department_name, |
| | | department_area, |
| | | leisure_state, |
| | | master_ids, |
| | | master_names, |
| | | transaction_ids, |
| | | transaction_names, |
| | | remark |
| | | openid, |
| | | transaction_num, |
| | | (select organization_name from automessage_organization_chart where automessage_sys_user.department_id=automessage_organization_chart.id) as department_name |
| | | FROM |
| | | sys_user |
| | | automessage_sys_user |
| | | </sql> |
| | | |
| | | |
| | | <select id="selectNum" resultType="integer"> |
| | | select count(user_id) from sys_user |
| | | <select id="selectNum" parameterType="string" resultType="integer"> |
| | | select count(user_id) from automessage_sys_user |
| | | <where> |
| | | <if test="userType != null and userType != ''"> |
| | | AND user_type=#{userType} |
| | | </if> |
| | | |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="queryList" resultMap="SysUserResult"> |
| | | <include refid="selectSysUserVo"/> |
| | | <where> |
| | | user_type=#{userType} |
| | | </where> |
| | | ORDER BY department_id |
| | | </select> |
| | | |
| | | <select id="selectConfigList" parameterType="string" resultMap="SysUserResult"> |
| | |
| | | </select> |
| | | |
| | | |
| | | <select id="selectData" parameterType="string" resultMap="SysUserResult"> |
| | | <include refid="selectSysUserVo"/> |
| | | <where> |
| | | <if test="userId!=null and userId!='' "> |
| | | user_id= #{userId} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | <select id="selectListByDepartmentId" resultMap="SysUserResult"> |
| | | <include refid="selectSysUserVo"/> |
| | | <where> |
| | | user_type=2 and status=0 |
| | | <if test="list!=null"> |
| | | and department_id in |
| | | <foreach collection="list" item="id" index="index" open="(" close=")" separator=","> |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | | <if test="classifyIdFront!=null and classifyIdFront!='' and classifyIdAfter!=null and classifyIdAfter!=''"> |
| | | and (master_ids like concat('%',#{classifyIdFront}, '%') or master_ids like concat('%',#{classifyIdAfter}, '%')) |
| | | </if> |
| | | |
| | | </where> |
| | | order by transaction_num |
| | | </select> |
| | | |
| | | |
| | | <insert id="insertConfig" parameterType="com.dg.core.db.gen.entity.SysUser"> |
| | | insert into sys_user ( |
| | | insert into automessage_sys_user ( |
| | | create_time |
| | | <if test="userId != null and userId != '' ">,user_id</if> |
| | | <if test="loginName != null and loginName != '' ">,login_name</if> |
| | |
| | | <if test="masterNames != null and masterNames != '' ">,master_names</if> |
| | | <if test="transactionIds != null and transactionIds != '' ">,transaction_ids</if> |
| | | <if test="transactionNames != null and transactionNames != '' ">,transaction_names</if> |
| | | <if test="openid != null and openid != '' ">,openid</if> |
| | | )values( |
| | | sysdate() |
| | | <if test="userId != null and userId != '' ">,#{userId}</if> |
| | |
| | | <if test="masterNames != null and masterNames != '' ">,#{masterNames}</if> |
| | | <if test="transactionIds != null and transactionIds != '' ">,#{transactionIds}</if> |
| | | <if test="transactionNames != null and transactionNames != '' ">,#{transactionNames}</if> |
| | | <if test="openid != null and openid != '' ">,#{openid}</if> |
| | | ) |
| | | </insert> |
| | | |
| | | <update id="updateConfig" parameterType="com.dg.core.db.gen.entity.SysUser"> |
| | | update sys_user |
| | | update automessage_sys_user |
| | | <set> |
| | | <if test="userId != null and userId != '' ">user_id=#{userId}</if> |
| | | <if test="loginName != null and loginName != '' ">,login_name=#{loginName}</if> |
| | |
| | | <if test="masterNames != null and masterNames != '' ">,master_names=#{masterNames}</if> |
| | | <if test="transactionIds != null and transactionIds != '' ">,transaction_ids=#{transactionIds}</if> |
| | | <if test="transactionNames != null and transactionNames != '' ">,transaction_names=#{transactionNames}</if> |
| | | <if test="openid != null and openid != '' ">,openid=#{openid}</if> |
| | | ,update_time=sysdate() |
| | | </set> |
| | | where user_id= #{userId} |
| | | </update> |
| | | |
| | | <delete id="deleteConfigById" parameterType="string"> |
| | | delete from sys_user where user_id= #{id} |
| | | delete from automessage_sys_user where user_id= #{id} |
| | | </delete> |
| | | |
| | | |
| | | |
| | | |
| | | </mapper> |
| | |
| | | <id property="commonProblem" column="common_problem" /> |
| | | <id property="commonProblemUrl" column="common_problem_url" /> |
| | | <id property="commonProblemName" column="common_problem_name" /> |
| | | <id property="operationalGuidelineVideoName" column="operational_guideline_video_name" /> |
| | | <id property="operationalGuidelineName" column="operational_guideline_name" /> |
| | | |
| | | </resultMap> |
| | | |
| | |
| | | common_problem_url, |
| | | common_problem_name, |
| | | operational_guideline_video_url, |
| | | operational_guideline_video_name, |
| | | operational_guideline_name, |
| | | (IF((select classify_grade from automessage_classify_administration where automessage_classify_administration.id=automessage_transaction_event.classify_id)='2', |
| | | (select classify_name from automessage_classify_administration where automessage_classify_administration.id=(select parent_id from |
| | | automessage_classify_administration where automessage_classify_administration.id=automessage_transaction_event.classify_id)), |
| | | (select classify_name from automessage_classify_administration where automessage_classify_administration.id=automessage_transaction_event.classify_id))) as classifyName, |
| | | (select organization_name from automessage_organization_chart where automessage_organization_chart.id=automessage_transaction_event.department_id) as departmentName, |
| | | concat( |
| | | (select classify_name from classify_administration where id=(select parent_id from classify_administration where id=transaction_event.classify_id)), |
| | | '>',(select classify_name from classify_administration where id=transaction_event.classify_id) |
| | | (select classify_name from automessage_classify_administration where id=(select parent_id from automessage_classify_administration where id=automessage_transaction_event.classify_id)), |
| | | '>',(select classify_name from automessage_classify_administration where id=automessage_transaction_event.classify_id) |
| | | ) sumClassifyName |
| | | FROM |
| | | transaction_event |
| | | automessage_transaction_event |
| | | </sql> |
| | | |
| | | <sql id="selectTransactionEventList"> |
| | |
| | | department_id, |
| | | department_area, |
| | | classify_id, |
| | | (select classify_grade from classify_administration where classify_administration.id=transaction_event.classify_id) as classifyName, |
| | | (IF((select classify_grade from automessage_classify_administration where automessage_classify_administration.id=automessage_transaction_event.classify_id)='2', |
| | | (select classify_name from automessage_classify_administration where automessage_classify_administration.id=(select parent_id from |
| | | automessage_classify_administration where automessage_classify_administration.id=automessage_transaction_event.classify_id)), |
| | | (select classify_name from automessage_classify_administration where automessage_classify_administration.id=automessage_transaction_event.classify_id))) as classifyName, |
| | | (select organization_name from automessage_organization_chart where automessage_organization_chart.id=automessage_transaction_event.department_id) as departmentName, |
| | | matter_name, |
| | | associate_ids, |
| | | associate_names, |
| | |
| | | create_time, |
| | | update_time |
| | | FROM |
| | | transaction_event |
| | | automessage_transaction_event |
| | | </sql> |
| | | |
| | | <select id="selectConfigData" parameterType="string" resultMap="TransactionEventEntityResult"> |
| | |
| | | AND associate_names like concat('%', #{matterAndUser}, '%') or matter_name like concat('%', #{matterAndUser}, '%') |
| | | </if> |
| | | <if test="classifyGrade != null and classifyGrade != ''"> |
| | | AND (select classify_grade from classify_administration where classify_administration.id=classify_id) = #{classifyGrade} |
| | | AND (select classify_grade from automessage_classify_administration where automessage_classify_administration.id=classify_id) = #{classifyGrade} |
| | | </if> |
| | | <if test="ids != null"> |
| | | and department_id IN |
| | | <foreach collection="ids" item="param" open="(" close=")" separator=","> |
| | | #{param} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | order by create_time desc |
| | | </select> |
| | | |
| | | <select id="selectListByIds" resultMap="TransactionEventEntityResult"> |
| | | <include refid="selectTransactionEventList"/> |
| | | WHERE id IN |
| | | <foreach collection="array" item="id" index="index" open="(" close=")" separator=","> |
| | | #{id} |
| | | </foreach> |
| | | order by create_time desc |
| | | </select> |
| | | |
| | | <insert id="insertConfig" parameterType="com.dg.core.db.gen.entity.TransactionEvent"> |
| | | insert into transaction_event ( |
| | | insert into automessage_transaction_event ( |
| | | <if test="id != null">id,</if> |
| | | <if test="departmentId != null and departmentId != '' ">department_id,</if> |
| | | <if test="departmentArea != null">department_area,</if> |
| | |
| | | <if test="commonProblem != null and commonProblem != '' ">common_problem,</if> |
| | | <if test="commonProblemUrl != null and commonProblemUrl != '' ">common_problem_url,</if> |
| | | <if test="commonProblemName != null and commonProblemName != '' ">common_problem_name,</if> |
| | | <if test="operationalGuidelineVideoName != null and operationalGuidelineVideoName != '' ">operational_guideline_video_name,</if> |
| | | <if test="operationalGuidelineName != null and operationalGuidelineName != '' ">operational_guideline_name,</if> |
| | | update_time, |
| | | create_time |
| | | )values( |
| | |
| | | <if test="commonProblem != null and commonProblem != '' ">#{commonProblem},</if> |
| | | <if test="commonProblemUrl != null and commonProblemUrl != '' ">#{commonProblemUrl},</if> |
| | | <if test="commonProblemName != null and commonProblemName != '' ">#{commonProblemName},</if> |
| | | <if test="operationalGuidelineVideoName != null and operationalGuidelineVideoName != '' ">#{operationalGuidelineVideoName},</if> |
| | | <if test="operationalGuidelineName != null and operationalGuidelineName != '' ">#{operationalGuidelineName},</if> |
| | | sysdate(), |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | | |
| | | <update id="updateConfig" parameterType="com.dg.core.db.gen.entity.TransactionEvent"> |
| | | update transaction_event |
| | | update automessage_transaction_event |
| | | <set> |
| | | <if test="id != null">id=#{id},</if> |
| | | <if test="departmentId != null and departmentId != '' ">department_id=#{departmentId},</if> |
| | |
| | | <if test="associateIds != null and associateIds != '' ">associate_ids=#{associateIds},</if> |
| | | <if test="transactionNum != null ">transaction_num=#{transactionNum},</if> |
| | | <if test="browseNum != null ">browse_num=#{browseNum},</if> |
| | | <if test="basicInformation != null and basicInformation != '' ">basic_information=#{basicInformation},</if> |
| | | <if test="acceptConditions != null and acceptConditions != '' ">accept_conditions=#{acceptConditions},</if> |
| | | <if test="applicationMaterial != null and applicationMaterial != '' ">application_material=#{applicationMaterial},</if> |
| | | <if test="handlingProcedures != null and handlingProcedures != '' ">handling_procedures=#{handlingProcedures},</if> |
| | | <if test="rates != null and rates != '' ">rates=#{rates},</if> |
| | | <if test="basicInformation != null">basic_information=#{basicInformation},</if> |
| | | <if test="acceptConditions != null ">accept_conditions=#{acceptConditions},</if> |
| | | <if test="applicationMaterial != null ">application_material=#{applicationMaterial},</if> |
| | | <if test="handlingProcedures != null ">handling_procedures=#{handlingProcedures},</if> |
| | | <if test="rates != null ">rates=#{rates},</if> |
| | | <if test="associateNames != null and associateNames != '' ">associate_names=#{associateNames},</if> |
| | | <if test="queryTime != null">query_time=#{queryTime},</if> |
| | | <if test="basicInformationUrl != null and basicInformationUrl != '' ">basic_information_url=#{basicInformationUrl},</if> |
| | | <if test="acceptConditionsUrl != null and acceptConditionsUrl != '' ">accept_conditions_url=#{acceptConditionsUrl},</if> |
| | | <if test="applicationMaterialUrl != null and applicationMaterialUrl != '' ">application_material_url=#{applicationMaterialUrl},</if> |
| | | <if test="handlingProceduresUrl != null and handlingProceduresUrl != '' ">handling_procedures_url=#{handlingProceduresUrl},</if> |
| | | <if test="ratesUrl != null and ratesUrl != '' ">rates_url=#{ratesUrl},</if> |
| | | <if test="basicInformationFileName != null and basicInformationFileName != '' ">basic_information_file_name=#{basicInformationFileName},</if> |
| | | <if test="acceptConditionsFileName != null and acceptConditionsFileName != '' ">accept_conditions_file_name=#{acceptConditionsFileName},</if> |
| | | <if test="applicationMaterialFileName != null and applicationMaterialFileName != '' ">application_material_file_name=#{applicationMaterialFileName},</if> |
| | | <if test="handlingProceduresFileName != null and handlingProceduresFileName != '' ">handling_procedures_file_name=#{handlingProceduresFileName},</if> |
| | | <if test="ratesFileName != null and ratesFileName != '' ">rates_file_name=#{ratesFileName},</if> |
| | | <if test="operationalGuidelineUrl != null and operationalGuidelineUrl != '' ">operational_guideline_url=#{operationalGuidelineUrl},</if> |
| | | <if test="basicInformationUrl != null">basic_information_url=#{basicInformationUrl},</if> |
| | | <if test="acceptConditionsUrl != null ">accept_conditions_url=#{acceptConditionsUrl},</if> |
| | | <if test="applicationMaterialUrl != null ">application_material_url=#{applicationMaterialUrl},</if> |
| | | <if test="handlingProceduresUrl != null ">handling_procedures_url=#{handlingProceduresUrl},</if> |
| | | <if test="ratesUrl != null ">rates_url=#{ratesUrl},</if> |
| | | <if test="basicInformationFileName != null ">basic_information_file_name=#{basicInformationFileName},</if> |
| | | <if test="acceptConditionsFileName != null ">accept_conditions_file_name=#{acceptConditionsFileName},</if> |
| | | <if test="applicationMaterialFileName != null ">application_material_file_name=#{applicationMaterialFileName},</if> |
| | | <if test="handlingProceduresFileName != null ">handling_procedures_file_name=#{handlingProceduresFileName},</if> |
| | | <if test="ratesFileName != null ">rates_file_name=#{ratesFileName},</if> |
| | | <if test="operationalGuidelineUrl != null">operational_guideline_url=#{operationalGuidelineUrl},</if> |
| | | <if test="setGist != null and setGist != '' ">set_gist=#{setGist},</if> |
| | | <if test="setGistUrl != null and setGistUrl != '' ">set_gist_url=#{setGistUrl},</if> |
| | | <if test="setGistName != null and setGistName != '' ">set_gist_name=#{setGistName},</if> |
| | | <if test="commonProblem != null and commonProblem != '' ">common_problem=#{commonProblem},</if> |
| | | <if test="commonProblemUrl != null and commonProblemUrl != '' ">common_problem_url=#{commonProblemUrl},</if> |
| | | <if test="commonProblemName != null and commonProblemName != '' ">common_problem_name=#{commonProblemName},</if> |
| | | <if test="operationalGuidelineVideoUrl != null and operationalGuidelineVideoUrl != '' ">operational_guideline_video_url=#{operationalGuidelineVideoUrl},</if> |
| | | <if test="operationalGuidelineVideoUrl != null ">operational_guideline_video_url=#{operationalGuidelineVideoUrl},</if> |
| | | <if test="operationalGuidelineVideoName != null and operationalGuidelineVideoName != '' ">operational_guideline_video_name=#{operationalGuidelineVideoName},</if> |
| | | <if test="operationalGuidelineName != null and operationalGuidelineName != '' ">operational_guideline_name=#{operationalGuidelineName},</if> |
| | | update_time=sysdate() |
| | | </set> |
| | | where id= #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteConfigById" parameterType="string"> |
| | | delete from transaction_event where id= #{Id} |
| | | delete from automessage_transaction_event where id= #{Id} |
| | | </delete> |
| | | |
| | | <select id="countNum" resultType="integer"> |
| | | select count(id) from transaction_event |
| | | select count(id) from automessage_transaction_event |
| | | <where> |
| | | <if test="matterAndUser != null and matterAndUser != ''"> |
| | | AND associate_names like concat('%', #{matterAndUser}, '%') or matter_name like concat('%', #{matterAndUser}, '%') |
| | | </if> |
| | | <if test="classifyGrade != null and classifyGrade != ''"> |
| | | AND (select classify_grade from classify_administration where classify_grade.id=classify_id) = #{classifyGrade} |
| | | </if> |
| | | <if test="ids != null"> |
| | | and department_id IN |
| | | <foreach collection="ids" item="param" open="(" close=")" separator=","> |
| | | #{param} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | <if test="matterName != null and matterName != ''"> |
| | | AND (matter_name like concat('%', #{matterName}, '%') or #{matterName} like concat('%', matter_name, '%')) |
| | | </if> |
| | | <if test="classifyId != null and classifyId != ''"> |
| | | and (classify_id= #{classifyId} or classify_id in (select id FROM automessage_classify_administration where parent_id =#{classifyId} )) |
| | | </if> |
| | | |
| | | </where> |
| | | order by create_time desc |
| | | </select> |
| | | |
| | | <select id="sumTransactionNum" resultMap="TransactionEventEntityResult"> |
| | | select sum(transaction_num)sumTransactionNum,count(*) counttransaction FROM transaction_event |
| | | select sum(transaction_num)sumTransactionNum,count(*) counttransaction FROM automessage_transaction_event |
| | | </select> |
| | | |
| | | <select id="queryByClassifyIdList" resultMap="TransactionEventEntityResult"> |
| | | <include refid="selectTransactionEventEntityVo"/> |
| | | where (classify_id= #{classifyId} or classify_id in (select id FROM classify_administration where parent_id =#{classifyId} )) |
| | | where (classify_id= #{classifyId} or classify_id in (select id FROM automessage_classify_administration where parent_id =#{classifyId} )) |
| | | <if test="departmentId!=null"> |
| | | and department_id=#{departmentId} |
| | | </if> |
| | |
| | | </select> |
| | | |
| | | <select id="countNumByClassifyIdList" resultType="integer"> |
| | | select count(id) from transaction_event |
| | | where (classify_id= #{classifyId} or classify_id in (select id FROM classify_administration where parent_id =#{classifyId} )) |
| | | select count(id) from automessage_transaction_event |
| | | where (classify_id= #{classifyId} or classify_id in (select id FROM automessage_classify_administration where parent_id =#{classifyId} )) |
| | | <if test="departmentId!=null"> |
| | | and department_id=#{departmentId} |
| | | </if> |
| | |
| | | |
| | | |
| | | <update id="updateConfigByMatterName" parameterType="com.dg.core.db.gen.entity.TransactionEvent"> |
| | | update transaction_event |
| | | update automessage_transaction_event |
| | | <set> |
| | | browse_num=browse_num+1,query_time=sysdate() |
| | | </set> |
| | |
| | | </update> |
| | | |
| | | <select id="countNumByMatterName" resultType="integer"> |
| | | select count(id) from transaction_event |
| | | select count(id) from automessage_transaction_event |
| | | <where> |
| | | <if test="matterName != null and matterName != ''"> |
| | | AND matter_name like concat('%', #{matterName}, '%') |
| | |
| | | </select> |
| | | |
| | | <select id="selectSearch" resultType="com.dg.core.db.manual.pojo.Search"> |
| | | select title,content,views FROM( |
| | | select organization_name title,resume content,null views from organization_chart UNION |
| | | select matter_name title,concat((select classify_name from classify_administration |
| | | where id=(select parent_id from classify_administration where id=transaction_event.classify_id)), |
| | | '>',(select classify_name from classify_administration where id=transaction_event.classify_id)) content, |
| | | transaction_num views from transaction_event |
| | | ) k |
| | | select id,title,content,views, type FROM( |
| | | select id,organization_name title,resume content,null views,1 type from automessage_organization_chart UNION |
| | | select id,matter_name title,concat((select classify_name from automessage_classify_administration |
| | | where id=(select parent_id from automessage_classify_administration where id=automessage_transaction_event.classify_id)), |
| | | '>',(select classify_name from automessage_classify_administration where id=automessage_transaction_event.classify_id)) content, |
| | | transaction_num views,2 type from automessage_transaction_event |
| | | ) k |
| | | where k.title like concat('%',#{keyWord}, '%') or k.content like concat('%', #{keyWord}, '%') |
| | | </select> |
| | | |
| | | <select id="selectSearchAssociate" resultType="com.dg.core.db.manual.pojo.Search"> |
| | | select matter_name title,concat((select classify_name from classify_administration |
| | | where id=(select parent_id from classify_administration where id=transaction_event.classify_id)), |
| | | '>',(select classify_name from classify_administration where id=transaction_event.classify_id)) content, |
| | | transaction_num views from transaction_event where associate_names like concat('%',#{keyWord}, '%') |
| | | <select id="selectSearchList" resultType="com.dg.core.db.manual.pojo.Search"> |
| | | select distinct classify_id, content, type FROM( |
| | | select id,classify_name title,ifnull(concat((select classify_name from automessage_classify_administration where c.parent_id=id),'/',classify_name),classify_name) content,id classify_id,4 type from automessage_classify_administration c UNION |
| | | |
| | | select id,matter_name title,concat((select classify_name from automessage_classify_administration |
| | | where id=(select parent_id from automessage_classify_administration where id=automessage_transaction_event.classify_id)), |
| | | '/',(select classify_name from automessage_classify_administration where id=automessage_transaction_event.classify_id)) content,classify_id, |
| | | 2 type from automessage_transaction_event |
| | | ) k |
| | | where k.title like concat('%',#{keyWord}, '%') |
| | | </select> |
| | | |
| | | <select id="selectSearchAssociate" resultType="com.dg.core.db.manual.pojo.Search"> |
| | | select id,matter_name title,concat((select classify_name from automessage_classify_administration |
| | | where id=(select parent_id from automessage_classify_administration where id=automessage_transaction_event.classify_id)), |
| | | '>',(select classify_name from automessage_classify_administration where id=automessage_transaction_event.classify_id)) content, |
| | | transaction_num views ,3 type from automessage_transaction_event where associate_names like concat('%',#{keyWord}, '%') |
| | | </select> |
| | | |
| | | <select id="selectSearchAssociateDistinct" resultType="com.dg.core.db.manual.pojo.Search" > |
| | | select distinct classify_id, |
| | | (select ifnull(concat((select classify_name from automessage_classify_administration where c.parent_id=id),'/',classify_name),classify_name) content from automessage_classify_administration c where c.id=t.classify_id) content, |
| | | 3 type from automessage_transaction_event t where associate_names like concat('%',#{keyWord}, '%') |
| | | </select> |
| | | |
| | | |
| | | |
| | | <select id="selectDataIfExist" resultType="string"> |
| | | select id from automessage_transaction_event |
| | | where department_id=#{departmentId} |
| | | and matter_name=#{matterName} |
| | | </select> |
| | | |
| | | <select id="selectclassifyId" resultType="string"> |
| | | select id from automessage_transaction_event |
| | | where classify_id=#{classifyId} |
| | | </select> |
| | | |
| | | |
| | | |
| | | </mapper> |
| | |
| | | <file url="file://$PROJECT_DIR$/applets" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/applets/src/main/java" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/applets/src/main/resources" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/applets/src/main/resources/lib" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/applets_backstage" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/applets_backstage/src/main/java" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/applets_backstage/src/main/resources" charset="UTF-8" /> |
| | |
| | | <file url="file://$PROJECT_DIR$/auth/src/main/resources/bootstrap.yml" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/common" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/common/src/main/java" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/common/src/main/resources" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/community_backstage" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/community_backstage/src/main/java" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/community_backstage/src/main/resources" charset="UTF-8" /> |
| | |
| | | <file url="file://$PROJECT_DIR$/eureka_server/src/main/java" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/eureka_server/src/main/resources" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/grid_app" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/grid_app/src/main/java" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/grid_app/src/main/resources" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/grid_backstage" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/grid_backstage/src/main/java" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/grid_backstage/src/main/resources" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/service_api" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/service_api/src/main/java" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/service_api/src/main/resources" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/service_community" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/service_community/src/main/java" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/service_community/src/main/resources" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/service_grid" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/service_grid/src/main/java" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/service_grid/src/main/resources" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/service_partybuilding" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/service_partybuilding/src/main/java" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/service_partybuilding/src/main/resources" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/service_property" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/service_property/src/main/java" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/service_property/src/main/resources" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/service_user" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/service_user/src/main/java" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/service_user/src/main/resources" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/shop_backstage" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/shop_backstage/src/main/java" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/shop_backstage/src/main/resources" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/src/main/resources" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/timejob" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/timejob/src/main/java" charset="UTF-8" /> |
| | | <file url="file://$PROJECT_DIR$/timejob/src/main/resources" charset="UTF-8" /> |
New file |
| | |
| | | package com.panzhihua.applets.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.common.*; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.common.ComBatteryCommodityActivityVo; |
| | | import com.panzhihua.common.model.vos.common.ComBatteryCommodityOrderBargainVo; |
| | | import com.panzhihua.common.model.vos.common.ComBatteryCommodityOrderCollageTeamVo; |
| | | import com.panzhihua.common.service.community.ComBatteryCommodityActivityFeign; |
| | | import com.panzhihua.common.service.community.ComBatteryCommodityOrderCollageTeamFeign; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * title: 电动车商城-商家活动表(ComBatteryCommodityActivity) 表控制层 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 电动车商城-商家活动表 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 13:17:38 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"电动车商城-活动管理"}) |
| | | @RestController |
| | | @RequestMapping("/comBatteryCommodityActivity") |
| | | public class ComBatteryCommodityActivityApi extends BaseController { |
| | | |
| | | @Resource |
| | | private ComBatteryCommodityActivityFeign comBatteryCommodityActivityService; |
| | | @Resource |
| | | private ComBatteryCommodityOrderCollageTeamFeign orderCollageTeamService; |
| | | |
| | | /** |
| | | * description queryByPage 分页查询 |
| | | * |
| | | * @param comBatteryCommodityActivity 请求参数 |
| | | * @return 分页查询返回参数 |
| | | * @author lyq |
| | | * @date 2022-03-29 13:17:38 |
| | | */ |
| | | @ApiOperation(value = "分页查询活动列表",response = ComBatteryCommodityActivityVo.class) |
| | | @PostMapping("/page") |
| | | public R queryByPage(@RequestBody PageComBatteryCommodityActivityDto comBatteryCommodityActivity) { |
| | | comBatteryCommodityActivity.setIsApplets(1); |
| | | if(comBatteryCommodityActivity.getIsUser().equals(1)){ |
| | | comBatteryCommodityActivity.setUserId(this.getUserId()); |
| | | } |
| | | return this.comBatteryCommodityActivityService.queryByPage(comBatteryCommodityActivity); |
| | | } |
| | | |
| | | /** |
| | | * description detailById 查询详情 |
| | | * |
| | | * @param id 主键id |
| | | * @return 详情数据 |
| | | * @author lyq |
| | | * @date 2022-03-29 13:17:38 |
| | | */ |
| | | @ApiOperation(value = "查询活动详情",response = ComBatteryCommodityActivityVo.class) |
| | | @GetMapping("/detail") |
| | | public R detailById(@RequestParam("id") Long id) { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfoSureNoLogin(); |
| | | Long userId = 0L; |
| | | if(loginUserInfo != null){ |
| | | userId = loginUserInfo.getUserId(); |
| | | } |
| | | return this.comBatteryCommodityActivityService.detailById(id,userId); |
| | | } |
| | | |
| | | /** |
| | | * description queryByPage 查询列表 |
| | | * |
| | | * @param comBatteryCommodityActivity 请求参数 |
| | | * @return 列表数据 |
| | | * @author lyq |
| | | * @date 2022-03-29 13:17:38 |
| | | */ |
| | | @ApiOperation(value = "查询活动列表",response = ComBatteryCommodityActivityVo.class) |
| | | @PostMapping("/list") |
| | | public R queryByList(@RequestBody PageComBatteryCommodityActivityDto comBatteryCommodityActivity) { |
| | | comBatteryCommodityActivity.setIsApplets(1); |
| | | return this.comBatteryCommodityActivityService.queryByList(comBatteryCommodityActivity); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询拼团团队列表",response = ComBatteryCommodityOrderCollageTeamVo.class) |
| | | @PostMapping("/assorted/dough") |
| | | public R queryByAssortedDoughList(@RequestBody PageComBatteryCommodityOrderCollageTeamDto orderCollageTeamDto) { |
| | | orderCollageTeamDto.setStatus(1); |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfoSureNoLogin(); |
| | | if(loginUserInfo != null){ |
| | | orderCollageTeamDto.setUserId(loginUserInfo.getUserId()); |
| | | } |
| | | return this.orderCollageTeamService.queryByPage(orderCollageTeamDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询拼团团队详情",response = ComBatteryCommodityOrderCollageTeamVo.class) |
| | | @GetMapping("/assorted/dough/detail") |
| | | public R queryByAssortedDoughDetail(@RequestParam("id") Long id) { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfoSureNoLogin(); |
| | | Long userId = 0L; |
| | | if(loginUserInfo != null){ |
| | | userId = loginUserInfo.getUserId(); |
| | | } |
| | | return this.orderCollageTeamService.detailById(id,userId); |
| | | } |
| | | |
| | | /** |
| | | * 创建拼团订单 |
| | | * @param orderDto 请求参数 |
| | | * @return 创建订单结果 |
| | | */ |
| | | @ApiOperation(value = "创建拼团订单") |
| | | @PostMapping("/start/fight") |
| | | public R startFight(@RequestBody StartFightOrderDto orderDto){ |
| | | orderDto.setUserId(this.getUserId()); |
| | | return this.comBatteryCommodityActivityService.startFight(orderDto); |
| | | } |
| | | |
| | | /** |
| | | * 创建砍价订单 |
| | | * @param orderDto 请求参数 |
| | | * @return 创建订单结果 |
| | | */ |
| | | @ApiOperation(value = "创建砍价订单") |
| | | @PostMapping("/start/bargain") |
| | | public R startBargain(@RequestBody StartBargainOrderDto orderDto){ |
| | | orderDto.setUserId(this.getUserId()); |
| | | return this.comBatteryCommodityActivityService.startBargain(orderDto); |
| | | } |
| | | |
| | | /** |
| | | * 帮好友砍价 |
| | | * @param orderDto 请求参数 |
| | | * @return 创建订单结果 |
| | | */ |
| | | @ApiOperation(value = "帮好友砍价") |
| | | @PostMapping("/start/user/bargain") |
| | | public R startUserBargain(@RequestBody StartUserBargainOrderDto orderDto){ |
| | | orderDto.setUserId(this.getUserId()); |
| | | return this.comBatteryCommodityActivityService.startUserBargain(orderDto); |
| | | } |
| | | |
| | | /** |
| | | * 查询砍价记录详情 |
| | | * @param id 砍价记录id |
| | | * @return 创建订单结果 |
| | | */ |
| | | @ApiOperation(value = "查询砍价记录详情",response = ComBatteryCommodityOrderBargainVo.class) |
| | | @GetMapping("/user/bargain") |
| | | public R getUserBargain(@RequestParam("id") Long id){ |
| | | return this.comBatteryCommodityActivityService.getUserBargain(id); |
| | | } |
| | | |
| | | /** |
| | | * 创建秒杀订单 |
| | | * @param orderDto 请求参数 |
| | | * @return 创建订单结果 |
| | | */ |
| | | @ApiOperation(value = "创建秒杀订单") |
| | | @PostMapping("/start/seckill") |
| | | public R startSeckill(@RequestBody StartSeckillOrderDto orderDto){ |
| | | orderDto.setUserId(this.getUserId()); |
| | | return this.comBatteryCommodityActivityService.startSeckill(orderDto); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.applets.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.common.AddComBatteryCommodityDto; |
| | | import com.panzhihua.common.model.dtos.common.EditComBatteryCommodityDto; |
| | | import com.panzhihua.common.model.dtos.common.PageComBatteryCommodityDto; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.common.ComBatteryCommodityVo; |
| | | import com.panzhihua.common.service.community.ComBatteryCommodityFeign; |
| | | import com.panzhihua.common.service.community.ComBatteryCommoditySpecsFeign; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * title: 电动车商城-商品表(ComBatteryCommodity) 表控制层 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 电动车商城-商品表 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-28 14:59:58 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"电动车商城-商品管理"}) |
| | | @RestController |
| | | @RequestMapping("/comBatteryCommodity") |
| | | public class ComBatteryCommodityApi extends BaseController { |
| | | |
| | | @Resource |
| | | private ComBatteryCommodityFeign comBatteryCommodityService; |
| | | @Resource |
| | | private ComBatteryCommoditySpecsFeign comBatteryCommoditySpecsService; |
| | | |
| | | /** |
| | | * description queryByPage 分页查询 |
| | | * |
| | | * @param comBatteryCommodity 请求参数 |
| | | * @return 分页查询返回参数 |
| | | * @author lyq |
| | | * @date 2022-03-28 14:59:58 |
| | | */ |
| | | @ApiOperation(value = "分页查询商品列表",response = ComBatteryCommodityVo.class) |
| | | @PostMapping("/page") |
| | | public R queryByPage(@RequestBody PageComBatteryCommodityDto comBatteryCommodity) { |
| | | return this.comBatteryCommodityService.queryByPage(comBatteryCommodity); |
| | | } |
| | | |
| | | /** |
| | | * description detailById 查询详情 |
| | | * |
| | | * @param id 主键id |
| | | * @return 详情数据 |
| | | * @author lyq |
| | | * @date 2022-03-28 14:59:58 |
| | | */ |
| | | @ApiOperation(value = "查询商品详情",response = ComBatteryCommodityVo.class) |
| | | @GetMapping("/detail") |
| | | public R detailById(@RequestParam("id") Long id) { |
| | | return this.comBatteryCommodityService.detailById(id); |
| | | } |
| | | |
| | | /** |
| | | * description queryByPage 查询列表 |
| | | * |
| | | * @param comBatteryCommodity 请求参数 |
| | | * @return 列表数据 |
| | | * @author lyq |
| | | * @date 2022-03-28 14:59:58 |
| | | */ |
| | | @ApiOperation(value = "查询商品列表",response = ComBatteryCommodityVo.class) |
| | | @PostMapping("/list") |
| | | public R queryByList(@RequestBody PageComBatteryCommodityDto comBatteryCommodity) { |
| | | comBatteryCommodity.setStoreId(this.getCommunityId()); |
| | | return this.comBatteryCommodityService.queryByList(comBatteryCommodity); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询商品规格详情",response = ComBatteryCommodityVo.class) |
| | | @GetMapping("/specs/detail") |
| | | public R specsDetailById(@RequestParam("id") Long id) { |
| | | return this.comBatteryCommoditySpecsService.detailById(id); |
| | | } |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.applets.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.common.EditOrderAddressDto; |
| | | import com.panzhihua.common.model.dtos.common.EditOrderLogisticsDto; |
| | | import com.panzhihua.common.model.dtos.common.PageComBatteryCommodityOrderDto; |
| | | import com.panzhihua.common.model.dtos.common.UserCreateOrderDto; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.common.ComBatteryCommodityOrderVo; |
| | | import com.panzhihua.common.service.community.ComBatteryCommodityOrderFeign; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * title: 电动车商城-订单表(ComBatteryCommodityOrder) 表控制层 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 电动车商城-订单表 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 16:05:04 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"电动车商城-订单管理"}) |
| | | @RestController |
| | | @RequestMapping("/comBatteryCommodityOrder") |
| | | public class ComBatteryCommodityOrderApi extends BaseController { |
| | | |
| | | @Resource |
| | | private ComBatteryCommodityOrderFeign comBatteryCommodityOrderService; |
| | | |
| | | /** |
| | | * description queryByPage 分页查询 |
| | | * |
| | | * @param comBatteryCommodityOrder 请求参数 |
| | | * @return 分页查询返回参数 |
| | | * @author lyq |
| | | * @date 2022-03-29 16:05:04 |
| | | */ |
| | | @ApiOperation(value = "分页查询订单列表",response = ComBatteryCommodityOrderVo.class) |
| | | @PostMapping("/page") |
| | | public R queryByPage(@RequestBody PageComBatteryCommodityOrderDto comBatteryCommodityOrder) { |
| | | comBatteryCommodityOrder.setUserId(this.getUserId()); |
| | | comBatteryCommodityOrder.setIsApplets(1); |
| | | return this.comBatteryCommodityOrderService.queryByPage(comBatteryCommodityOrder); |
| | | } |
| | | |
| | | /** |
| | | * description detailById 查询详情 |
| | | * |
| | | * @param id 主键id |
| | | * @return 详情数据 |
| | | * @author lyq |
| | | * @date 2022-03-29 16:05:04 |
| | | */ |
| | | @ApiOperation(value = "查询订单详情",response = ComBatteryCommodityOrderVo.class) |
| | | @GetMapping("/detail") |
| | | public R detailById(@RequestParam("id") Long id) { |
| | | return this.comBatteryCommodityOrderService.detailById(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "创建订单") |
| | | @PostMapping("/create") |
| | | public R appletsOrderCreate(@RequestBody UserCreateOrderDto createOrderDto) { |
| | | createOrderDto.setUserId(this.getUserId()); |
| | | return this.comBatteryCommodityOrderService.appletsOrderCreate(createOrderDto); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "用户确认收货") |
| | | @GetMapping("/receiving") |
| | | public R appletsOrderReceiving(@RequestParam("id") Long id){ |
| | | return this.comBatteryCommodityOrderService.appletsOrderReceiving(id,this.getUserId()); |
| | | } |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.applets.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.common.EditComBatteryStoreDto; |
| | | import com.panzhihua.common.model.dtos.common.PageComBatteryStoreDto; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.common.ComBatteryStoreVo; |
| | | import com.panzhihua.common.service.community.ComBatteryStoreFeign; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * title: 电动车商城-商家表(ComBatteryStore) 表控制层 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 电动车商城-商家表 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-28 13:44:43 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"电动车商城-商家管理"}) |
| | | @RestController |
| | | @RequestMapping("/comBatteryStore") |
| | | public class ComBatteryStoreApi extends BaseController { |
| | | |
| | | @Resource |
| | | private ComBatteryStoreFeign comBatteryStoreService; |
| | | |
| | | @ApiOperation(value = "分页查询商家列表",response = ComBatteryStoreVo.class) |
| | | @PostMapping("/page") |
| | | public R queryByPage(@RequestBody PageComBatteryStoreDto comBatteryStore) { |
| | | return this.comBatteryStoreService.queryByPage(comBatteryStore); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询商家详情",response = ComBatteryStoreVo.class) |
| | | @GetMapping("/detail") |
| | | public R detailById(@RequestParam("id") Long id) { |
| | | return this.comBatteryStoreService.detailById(id); |
| | | } |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.applets.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.common.AddComBatteryStoreClassDto; |
| | | import com.panzhihua.common.model.dtos.common.EditComBatteryStoreClassDto; |
| | | import com.panzhihua.common.model.dtos.common.PageComBatteryStoreClassDto; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.common.ComBatteryStoreClassVo; |
| | | import com.panzhihua.common.service.community.ComBatteryStoreClassFeign; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * title: 电动车商城-商家分类表(ComBatteryStoreClass) 表控制层 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 电动车商城-商家分类表 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 11:01:55 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"电动车商城-商家分类管理"}) |
| | | @RestController |
| | | @RequestMapping("/comBatteryStoreClass") |
| | | public class ComBatteryStoreClassApi extends BaseController { |
| | | |
| | | @Resource |
| | | private ComBatteryStoreClassFeign comBatteryStoreClassService; |
| | | |
| | | /** |
| | | * description queryByPage 分页查询 |
| | | * |
| | | * @param comBatteryStoreClass 请求参数 |
| | | * @return 分页查询返回参数 |
| | | * @author lyq |
| | | * @date 2022-03-29 11:01:55 |
| | | */ |
| | | @ApiOperation(value = "分页查询商家分类列表",response = ComBatteryStoreClassVo.class) |
| | | @PostMapping("/page") |
| | | public R queryByPage(@RequestBody PageComBatteryStoreClassDto comBatteryStoreClass) { |
| | | comBatteryStoreClass.setStatus(1); |
| | | return this.comBatteryStoreClassService.queryByPage(comBatteryStoreClass); |
| | | } |
| | | |
| | | /** |
| | | * description detailById 查询详情 |
| | | * |
| | | * @param id 主键id |
| | | * @return 详情数据 |
| | | * @author lyq |
| | | * @date 2022-03-29 11:01:55 |
| | | */ |
| | | @ApiOperation(value = "查询商家分类详情",response = ComBatteryStoreClassVo.class) |
| | | @GetMapping("/detail") |
| | | public R detailById(@RequestParam("id") Long id) { |
| | | return this.comBatteryStoreClassService.detailById(id); |
| | | } |
| | | |
| | | /** |
| | | * description queryByPage 查询列表 |
| | | * |
| | | * @param comBatteryStoreClass 请求参数 |
| | | * @return 列表数据 |
| | | * @author lyq |
| | | * @date 2022-03-29 11:01:55 |
| | | */ |
| | | @ApiOperation(value = "查询商家分类列表",response = ComBatteryStoreClassVo.class) |
| | | @PostMapping("/list") |
| | | public R queryByList(@RequestBody PageComBatteryStoreClassDto comBatteryStoreClass) { |
| | | comBatteryStoreClass.setStatus(1); |
| | | return this.comBatteryStoreClassService.queryByAppletsList(comBatteryStoreClass); |
| | | } |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.applets.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.common.AddComBatteryUserAddressDto; |
| | | import com.panzhihua.common.model.dtos.common.EditComBatteryUserAddressDto; |
| | | import com.panzhihua.common.model.dtos.common.PageComBatteryUserAddressDto; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.common.ComBatteryUserAddressVo; |
| | | import com.panzhihua.common.service.community.ComBatteryUserAddressFeign; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * title: 电动车商城-用户收货地址表(ComBatteryUserAddress) 表控制层 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 电动车商城-用户收货地址表 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 13:18:19 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"电动车商城-用户收货地址管理"}) |
| | | @RestController |
| | | @RequestMapping("/comBatteryUserAddress") |
| | | public class ComBatteryUserAddressApi extends BaseController { |
| | | |
| | | @Resource |
| | | private ComBatteryUserAddressFeign comBatteryUserAddressService; |
| | | |
| | | /** |
| | | * description queryByPage 分页查询 |
| | | * |
| | | * @param comBatteryUserAddress 请求参数 |
| | | * @return 分页查询返回参数 |
| | | * @author lyq |
| | | * @date 2022-03-29 13:18:19 |
| | | */ |
| | | @ApiOperation(value = "分页查询用户收货地址列表",response = ComBatteryUserAddressVo.class) |
| | | @PostMapping("/page") |
| | | public R queryByPage(@RequestBody PageComBatteryUserAddressDto comBatteryUserAddress) { |
| | | comBatteryUserAddress.setUserId(this.getUserId()); |
| | | return this.comBatteryUserAddressService.queryByPage(comBatteryUserAddress); |
| | | } |
| | | |
| | | /** |
| | | * description add 新增数据 |
| | | * |
| | | * @param comBatteryUserAddress 请求参数 |
| | | * @return 新增结果 |
| | | * @author lyq |
| | | * @date 2022-03-29 13:18:19 |
| | | */ |
| | | @ApiOperation(value = "新增用户收货地址") |
| | | @PostMapping("/add") |
| | | public R add(@RequestBody AddComBatteryUserAddressDto comBatteryUserAddress) { |
| | | comBatteryUserAddress.setUserId(this.getUserId()); |
| | | return this.comBatteryUserAddressService.insert(comBatteryUserAddress); |
| | | } |
| | | |
| | | /** |
| | | * description edit 编辑数据 |
| | | * |
| | | * @param comBatteryUserAddress 请求参数 |
| | | * @return 编辑结果 |
| | | * @author lyq |
| | | * @date 2022-03-29 13:18:19 |
| | | */ |
| | | @ApiOperation(value = "编辑用户收货地址") |
| | | @PutMapping("/edit") |
| | | public R edit(@RequestBody EditComBatteryUserAddressDto comBatteryUserAddress) { |
| | | comBatteryUserAddress.setUserId(this.getUserId()); |
| | | return this.comBatteryUserAddressService.update(comBatteryUserAddress); |
| | | } |
| | | |
| | | /** |
| | | * description deleteById 删除数据 |
| | | * |
| | | * @param id 主键id |
| | | * @return 删除结果 |
| | | * @author lyq |
| | | * @date 2022-03-29 13:18:19 |
| | | */ |
| | | @ApiOperation(value = "删除用户收货地址") |
| | | @GetMapping("/delete") |
| | | public R deleteById(@RequestParam("id") Long id) { |
| | | return this.comBatteryUserAddressService.deleteById(id); |
| | | } |
| | | |
| | | /** |
| | | * description detailById 查询详情 |
| | | * |
| | | * @param id 主键id |
| | | * @return 详情数据 |
| | | * @author lyq |
| | | * @date 2022-03-29 13:18:19 |
| | | */ |
| | | @ApiOperation(value = "查询用户收货地址详情",response = ComBatteryUserAddressVo.class) |
| | | @GetMapping("/detail") |
| | | public R detailById(@RequestParam("id") Long id) { |
| | | return this.comBatteryUserAddressService.detailById(id); |
| | | } |
| | | |
| | | /** |
| | | * description queryByPage 查询列表 |
| | | * |
| | | * @param comBatteryUserAddress 请求参数 |
| | | * @return 列表数据 |
| | | * @author lyq |
| | | * @date 2022-03-29 13:18:19 |
| | | */ |
| | | @ApiOperation(value = "查询用户收货地址列表",response = ComBatteryUserAddressVo.class) |
| | | @PostMapping("/list") |
| | | public R queryByList(@RequestBody PageComBatteryUserAddressDto comBatteryUserAddress) { |
| | | comBatteryUserAddress.setUserId(this.getUserId()); |
| | | return this.comBatteryUserAddressService.queryByList(comBatteryUserAddress); |
| | | } |
| | | |
| | | /** |
| | | * 查询用户默认收货地址 |
| | | * @return 用户默认收货地址 |
| | | */ |
| | | @ApiOperation(value = "查询用户默认收货地址",response = ComBatteryUserAddressVo.class) |
| | | @GetMapping("/default/address") |
| | | public R getDefaultAddress() { |
| | | return this.comBatteryUserAddressService.getDefaultAddress(this.getUserId()); |
| | | } |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.applets.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.common.AddComChangeCarBrandDto; |
| | | import com.panzhihua.common.model.dtos.common.EditComChangeCarBrandDto; |
| | | import com.panzhihua.common.model.dtos.common.PageComChangeCarBrandDto; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.common.ComChangeCarBrandVo; |
| | | import com.panzhihua.common.service.community.ComChangeCarBrandFeign; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * title: 换新车-品牌表(ComChangeCarBrand) 表控制层 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 换新车-品牌表 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-07 13:37:22 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"换新车-品牌管理"}) |
| | | @RestController |
| | | @RequestMapping("/comChangeCarBrand") |
| | | public class ComChangeCarBrandApi extends BaseController { |
| | | |
| | | @Resource |
| | | private ComChangeCarBrandFeign comChangeCarBrandService; |
| | | |
| | | /** |
| | | * description queryByPage 分页查询 |
| | | * |
| | | * @param comChangeCarBrand 请求参数 |
| | | * @return 分页查询返回参数 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:37:22 |
| | | */ |
| | | @ApiOperation(value = "分页查询品牌列表",response = ComChangeCarBrandVo.class) |
| | | @PostMapping("/page") |
| | | public R queryByPage(@RequestBody PageComChangeCarBrandDto comChangeCarBrand) { |
| | | comChangeCarBrand.setStatus(1); |
| | | return this.comChangeCarBrandService.queryByPage(comChangeCarBrand); |
| | | } |
| | | |
| | | /** |
| | | * description detailById 查询详情 |
| | | * |
| | | * @param id 主键id |
| | | * @return 详情数据 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:37:22 |
| | | */ |
| | | @ApiOperation(value = "查询品牌详情",response = ComChangeCarBrandVo.class) |
| | | @GetMapping("/detail") |
| | | public R detailById(@RequestParam("id") Long id) { |
| | | return this.comChangeCarBrandService.detailById(id); |
| | | } |
| | | |
| | | /** |
| | | * description queryByPage 查询列表 |
| | | * |
| | | * @param comChangeCarBrand 请求参数 |
| | | * @return 列表数据 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:37:22 |
| | | */ |
| | | @ApiOperation(value = "查询品牌列表",response = ComChangeCarBrandVo.class) |
| | | @PostMapping("/list") |
| | | public R queryByList(@RequestBody PageComChangeCarBrandDto comChangeCarBrand) { |
| | | return this.comChangeCarBrandService.queryByList(comChangeCarBrand); |
| | | } |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.applets.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.common.AddComChangeCarInquiryDto; |
| | | import com.panzhihua.common.model.dtos.common.EditComChangeCarInquiryDto; |
| | | import com.panzhihua.common.model.dtos.common.PageComChangeCarInquiryDto; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.common.ComChangeCarInquiryVo; |
| | | import com.panzhihua.common.service.community.ComChangeCarInquiryFeign; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * title: 换新车-分期询价表(ComChangeCarInquiry) 表控制层 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 换新车-分期询价表 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-07 13:39:06 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"换新车-分期询价管理"}) |
| | | @RestController |
| | | @RequestMapping("/comChangeCarInquiry") |
| | | public class ComChangeCarInquiryApi extends BaseController { |
| | | |
| | | @Resource |
| | | private ComChangeCarInquiryFeign comChangeCarInquiryService; |
| | | |
| | | /** |
| | | * description add 新增数据 |
| | | * |
| | | * @param comChangeCarInquiry 请求参数 |
| | | * @return 新增结果 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:39:06 |
| | | */ |
| | | @ApiOperation(value = "新增分期询价") |
| | | @PostMapping("/add") |
| | | public R add(@RequestBody AddComChangeCarInquiryDto comChangeCarInquiry) { |
| | | comChangeCarInquiry.setCreateAt(new Date()); |
| | | comChangeCarInquiry.setCreateBy(this.getUserId()); |
| | | comChangeCarInquiry.setUserId(this.getUserId()); |
| | | return this.comChangeCarInquiryService.insert(comChangeCarInquiry); |
| | | } |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.applets.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.common.*; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.common.ComChangeCarModelSpecsVo; |
| | | import com.panzhihua.common.model.vos.common.ComChangeCarModelVo; |
| | | import com.panzhihua.common.service.community.ComChangeCarModelFeign; |
| | | import com.panzhihua.common.service.community.ComChangeCarModelRelationFeign; |
| | | import com.panzhihua.common.service.community.ComChangeCarModelSpecsFeign; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * title: 换新车-车型管理表(ComChangeCarModel) 表控制层 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 换新车-车型管理表 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-07 13:41:54 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"换新车-车型管理"}) |
| | | @RestController |
| | | @RequestMapping("/comChangeCarModel") |
| | | public class ComChangeCarModelApi extends BaseController { |
| | | |
| | | @Resource |
| | | private ComChangeCarModelFeign comChangeCarModelService; |
| | | @Resource |
| | | private ComChangeCarModelSpecsFeign carModelSpecsService; |
| | | @Resource |
| | | private ComChangeCarModelRelationFeign carModelRelationService; |
| | | |
| | | /** |
| | | * description queryByPage 分页查询 |
| | | * |
| | | * @param comChangeCarModelRelation 请求参数 |
| | | * @return 分页查询返回参数 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:41:54 |
| | | */ |
| | | @ApiOperation(value = "分页查询车型管理列表",response = ComChangeCarModelVo.class) |
| | | @PostMapping("/page") |
| | | public R queryByPage(@RequestBody PageComChangeCarModelRelationDto comChangeCarModelRelation) { |
| | | return this.carModelRelationService.queryByAppletsPage(comChangeCarModelRelation); |
| | | } |
| | | |
| | | /** |
| | | * description detailById 查询详情 |
| | | * |
| | | * @param id 主键id |
| | | * @return 详情数据 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:41:54 |
| | | */ |
| | | @ApiOperation(value = "查询车型管理详情",response = ComChangeCarModelVo.class) |
| | | @GetMapping("/detail") |
| | | public R detailById(@RequestParam("id") Long id) { |
| | | return this.comChangeCarModelService.detailById(id); |
| | | } |
| | | |
| | | /** |
| | | * description queryByPage 查询列表 |
| | | * |
| | | * @param comChangeCarModel 请求参数 |
| | | * @return 列表数据 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:41:54 |
| | | */ |
| | | @ApiOperation(value = "查询车型管理列表",response = ComChangeCarModelVo.class) |
| | | @PostMapping("/list") |
| | | public R queryByList(@RequestBody PageComChangeCarModelDto comChangeCarModel) { |
| | | return this.comChangeCarModelService.queryByList(comChangeCarModel); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询规格管理级联列表",response = ComChangeCarModelSpecsVo.class) |
| | | @PostMapping("/specs/list") |
| | | public R getSpecsList(@RequestBody PageComChangeCarModelSpecsDto comChangeCarModel) { |
| | | return this.carModelSpecsService.queryByList(comChangeCarModel); |
| | | } |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.applets.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.common.AddComChangeCarModelSpecsChildrenDto; |
| | | import com.panzhihua.common.model.dtos.common.EditComChangeCarModelSpecsChildrenDto; |
| | | import com.panzhihua.common.model.dtos.common.PageComChangeCarModelSpecsChildrenDto; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.common.ComChangeCarModelSpecsChildrenVo; |
| | | import com.panzhihua.common.service.community.ComChangeCarModelSpecsChildrenFeign; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * title: 换新车-车型子规格表(ComChangeCarModelSpecsChildren) 表控制层 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 换新车-车型子规格表 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:33 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"换新车-车型规格下子规格管理"}) |
| | | @RestController |
| | | @RequestMapping("/comChangeCarModelSpecsChildren") |
| | | public class ComChangeCarModelSpecsChildrenApi extends BaseController { |
| | | |
| | | @Resource |
| | | private ComChangeCarModelSpecsChildrenFeign comChangeCarModelSpecsChildrenService; |
| | | |
| | | /** |
| | | * description queryByPage 查询列表 |
| | | * |
| | | * @param comChangeCarModelSpecsChildren 请求参数 |
| | | * @return 列表数据 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:33 |
| | | */ |
| | | @ApiOperation(value = "查询车型规格下子规格管理列表",response = ComChangeCarModelSpecsChildrenVo.class) |
| | | @PostMapping("/list") |
| | | public R queryByList(@RequestBody PageComChangeCarModelSpecsChildrenDto comChangeCarModelSpecsChildren) { |
| | | return this.comChangeCarModelSpecsChildrenService.queryByList(comChangeCarModelSpecsChildren); |
| | | } |
| | | |
| | | } |
| | | |
| | |
| | | package com.panzhihua.applets.api; |
| | | |
| | | import cn.hutool.core.date.DateUtil; |
| | | import com.panzhihua.applets.model.dtos.IDTO; |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.property.CommonPage; |
| | | import com.panzhihua.common.model.vos.R; |
| | |
| | | * @return 单条数据 |
| | | */ |
| | | @ApiOperation("详情接口") |
| | | @PostMapping("/detail") |
| | | public R selectDetail(@RequestBody IDTO idto) { |
| | | return this.propertyService.comPropertyRepairSelectOne(idto.getId()); |
| | | } |
| | | |
| | | /** |
| | | * 通过主键查询单条数据 |
| | | * |
| | | * @param id 主键 |
| | | * @return 单条数据 |
| | | */ |
| | | @ApiOperation("详情接口") |
| | | @GetMapping("/{id}") |
| | | public R selectOne(@PathVariable("id") Long id) { |
| | | return this.propertyService.comPropertyRepairSelectOne(id); |
New file |
| | |
| | | package com.panzhihua.applets.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.sanshuo.*; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("sanshuo") |
| | | @Api(tags = "三说会堂小程序接口") |
| | | public class ComSanShuoApi extends BaseController { |
| | | |
| | | @Resource |
| | | private CommunityService communityService; |
| | | |
| | | @ApiOperation(value = "小程序获取可选择行业分中心列表",response = ComSanShuoIndustryCenterVO.class ) |
| | | @GetMapping("/industryCenter/appletsList") |
| | | public R industryCenterAppList(){ |
| | | return communityService.industryCenterAppList(); |
| | | } |
| | | |
| | | @ApiOperation(value = "小程序获取可选择行专家列表",response = ComSanshuoExpertVO.class ) |
| | | @GetMapping("/expert/appletsList") |
| | | public R expertAppList(@RequestParam (value = "type",required = false)Integer type,@RequestParam(value = "id",required = false)Long id){ |
| | | return communityService.expertAppList(type,id); |
| | | } |
| | | |
| | | @ApiOperation(value = "专家风采",response = ExpertShowVO.class) |
| | | @GetMapping("/expert/expertShow") |
| | | public R expertShow(){ |
| | | return communityService.expertShow(); |
| | | } |
| | | |
| | | @ApiOperation("专家详情") |
| | | @GetMapping("/expert/{id}") |
| | | public R expertDetail(@PathVariable("id")Long id){ |
| | | return communityService.expertDetail(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "事件类型列表",response = ComMediaTypeVO.class) |
| | | @GetMapping("/mediateType/list") |
| | | public R mediateTypeList(){ |
| | | return communityService.eventAppList(); |
| | | } |
| | | |
| | | @ApiOperation(value = "业务中心详情",response = ComSanShuoIndustryCenterVO.class) |
| | | @GetMapping("/industryCenter/detail") |
| | | public R industryCenterDetail(@RequestParam("id") Long id){ |
| | | return communityService.industryCenterDetail(id); |
| | | } |
| | | |
| | | @GetMapping("/expert/expertShowList") |
| | | @ApiOperation(value = "专家风采列表",response = ComSanshuoExpertVO.class) |
| | | public R expertShowList(@RequestParam(value = "level",required = false) @ApiParam("对应的level,1三说会堂2行业分中心3街道4社区")Integer level, |
| | | @RequestParam(value = "id",required = false) @ApiParam("id,level=1不传2行业分中心id 3街道id 4社区id")Long id){ |
| | | return communityService.expertShowList(level,id); |
| | | } |
| | | } |
New file |
| | |
| | | package com.panzhihua.applets.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.sanshuo.*; |
| | | import com.panzhihua.common.service.community.CommunitySanShuoService; |
| | | import com.panzhihua.common.utlis.CopyUtil; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.validation.BindingResult; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.validation.Valid; |
| | | import java.util.HashMap; |
| | | |
| | | /** |
| | | * ClassName ComEventController |
| | | * Description 三说会堂事件表控制层 |
| | | * |
| | | * @author manailin |
| | | * @date 2022-09-07 11:23:51 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"三说会堂事件表控制层"}) |
| | | @RestController |
| | | @RequestMapping("/sanshuo/comEvent") |
| | | public class ComSanShuoEventController extends BaseController { |
| | | |
| | | @Resource |
| | | private CommunitySanShuoService comEventService; |
| | | |
| | | |
| | | /** |
| | | * description 新增三说会堂事件表 |
| | | * |
| | | * @param comSanRequestVO 对象 |
| | | * @return R 新增结果对象 |
| | | * @author manailin |
| | | * @date 2022-09-07 11:23:51 |
| | | */ |
| | | @ApiOperation("新增三说会堂事件表") |
| | | @PostMapping("/add") |
| | | public R insertComEvent(@RequestBody @Valid ComSanRequestVO comSanRequestVO, @ApiIgnore BindingResult results) { |
| | | if (results.hasErrors()) { |
| | | return R.fail(results.getFieldError().getDefaultMessage()); |
| | | } |
| | | return comEventService.insertComEvent(comSanRequestVO); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * description 根据ID获取三说会堂事件表信息 |
| | | * |
| | | * @param id 主键id |
| | | * @return R<ComEvent> comEvent 对象 |
| | | * @author manailin |
| | | * @date 2022-09-07 11:23:51 |
| | | */ |
| | | @ApiOperation("根据ID获取三说会堂事件详情信息,返回事件信息和图片信息") |
| | | @GetMapping("/detail/{id}") |
| | | public R<HashMap> detail(@PathVariable(value = "id") String id) { |
| | | if (StringUtils.isEmpty(id)) { |
| | | throw new RuntimeException("参数不能为空"); |
| | | } |
| | | return comEventService.detail(id); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * description page 三说会堂事件表分页列表数据 |
| | | * |
| | | * @param comEventPageRequestVO 对象 |
| | | * @return PageResult<List < ComEvent>> 三说会堂事件表分页列表数据 |
| | | * @author manailin |
| | | * @date 2022-09-07 11:23:51 |
| | | */ |
| | | @ApiOperation(value = "三说会堂事件表分页列表数据", notes = "三说会堂事件表分页列表数据") |
| | | @PostMapping("/page") |
| | | public R page(@RequestBody ComEventPageRequestVO comEventPageRequestVO) { |
| | | ComEventVO comEventVO = CopyUtil.copyProperties(comEventPageRequestVO, ComEventVO.class); |
| | | comEventPageRequestVO.setCreateBy(getUserId()); |
| | | return comEventService.page(comEventVO, comEventVO.getPageNo(), comEventVO.getPageSize()); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * description 修改三说会堂事件表状态 |
| | | * |
| | | * @param id 主键id |
| | | * @return Result 修改成功和失败 |
| | | * @author manailin |
| | | * @date 2022-09-07 11:23:51 |
| | | */ |
| | | @ApiOperation("取消申请") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long"), |
| | | }) |
| | | @PutMapping("/cancelRequest") |
| | | public R cancelRequest(@RequestParam("id") Long id) { |
| | | return comEventService.cancelRequest(id); |
| | | } |
| | | |
| | | /** |
| | | * description 修改三说会堂事件表状态 |
| | | * |
| | | * @param id 主键id |
| | | * @return Result 修改成功和失败 |
| | | * @author manailin |
| | | * @date 2022-09-07 11:23:51 |
| | | */ |
| | | @ApiOperation("专家受理") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "事件ID", required = true, dataType = "Long"), |
| | | @ApiImplicitParam(name = "specterId", value = "专家ID", required = true, dataType = "Long"), |
| | | }) |
| | | @PutMapping("/accept/Request") |
| | | public R acceptRequest( Long id, Long specterId) { |
| | | return comEventService.acceptRequest(id, specterId); |
| | | } |
| | | |
| | | /** |
| | | * description 修改三说会堂事件表状态 |
| | | * |
| | | * @param id 主键id |
| | | * @return Result 修改成功和失败 |
| | | * @author manailin |
| | | * @date 2022-09-07 11:23:51 |
| | | */ |
| | | @ApiOperation("专家不受理,转其他专家处理") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long"), |
| | | }) |
| | | @PutMapping("/reject/Request") |
| | | public R rejectRequest(@RequestParam("id") Long id) { |
| | | return comEventService.rejectRequest(id); |
| | | } |
| | | |
| | | /** |
| | | * description 专家调解处理 |
| | | * |
| | | * @param comEventConciliationVO 主键id |
| | | * @return Result 修改成功和失败 |
| | | * @author manailin |
| | | * @date 2022-09-07 11:23:51 |
| | | */ |
| | | @ApiOperation("专家调解处理") |
| | | @PutMapping("/conciliation/Request") |
| | | public R conciliationRequest(@RequestBody ComEventConciliationVO comEventConciliationVO) { |
| | | return comEventService.conciliationRequest(comEventConciliationVO); |
| | | } |
| | | |
| | | /** |
| | | * description 专家归档 |
| | | * |
| | | * @param comEventArchiveVO 归档对象 |
| | | * @return Result 修改成功和失败 |
| | | * @author manailin |
| | | * @date 2022-09-07 11:23:51 |
| | | */ |
| | | @ApiOperation("事件专家归档") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long"), |
| | | @ApiImplicitParam(name = "result", value = "归档结论", required = true, dataType = "String"), |
| | | }) |
| | | @PutMapping("/archive/Request") |
| | | public R archiveRequest(@RequestBody ComEventArchiveVO comEventArchiveVO) { |
| | | return comEventService.archiveRequest(comEventArchiveVO); |
| | | } |
| | | } |
| | |
| | | |
| | | @ApiOperation(value = "首页广告banner", response = ComOpsAdvVO.class) |
| | | @GetMapping("listadvertisement/noToken") |
| | | public R listAdvertisement() { |
| | | return communityService.listAdvertisement(); |
| | | public R listAdvertisement(@RequestParam(value = "type",required = false,defaultValue = "1") Integer type) { |
| | | return communityService.listAdvertisement(type); |
| | | } |
| | | |
| | | @ApiOperation(value = "分页通知列表", response = SysUserNoticeVO.class) |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.constants.Constants; |
| | | import com.panzhihua.common.utlis.RSAUtils; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | @ApiOperation("天府通办登录") |
| | | @PostMapping("tfLogin") |
| | | public R tfLogin(@RequestBody UuLoginVO uuLoginVO){ |
| | | try { |
| | | uuLoginVO.setMobile(RSAUtils.decrypt(uuLoginVO.getMobile(), Constants.PRIVATE_KEY)); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | return R.fail(); |
| | | } |
| | | userService.tfLogin(uuLoginVO); |
| | | R r=tokenService.tfLogin(uuLoginVO.getMobile(),"Huacheng@123","wx118de8a734d269f0"); |
| | | return r; |
| | |
| | | import com.umf.api.service.UmfService; |
| | | import com.umf.api.service.UmfServiceImpl; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import com.panzhihua.common.service.community.ComBatteryCommodityOrderFeign; |
| | | import org.json.XML; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | @RequestMapping("/wx/") |
| | | public class WxCallbackApi { |
| | | |
| | | private static final String SUCCESS="SUCCESS"; |
| | | |
| | | @Resource |
| | | private CommunityService communityService; |
| | | @Resource |
| | |
| | | private String file; |
| | | @Resource |
| | | private UserService userService; |
| | | @Resource |
| | | private ComBatteryCommodityOrderFeign commodityOrderFeign; |
| | | |
| | | |
| | | @PostMapping("wxNotify") |
| | | public void payCallback(HttpServletRequest request, HttpServletResponse response) { |
| | |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 电动车商城商品购买支付回调 |
| | | * @param request 请求参数 |
| | | * @param response 返回参数 |
| | | */ |
| | | @PostMapping("/batteryPayNotify") |
| | | public void batteryPayNotify(HttpServletRequest request, HttpServletResponse response) { |
| | | log.info("钱包充值微信支付回调start"); |
| | | String inputLine = ""; |
| | | String notityXml = ""; |
| | | try { |
| | | while ((inputLine = request.getReader().readLine()) != null) { |
| | | notityXml += inputLine; |
| | | } |
| | | // 关闭流 |
| | | request.getReader().close(); |
| | | log.info("钱包充值微信回调内容信息:" + notityXml); |
| | | // 解析成Json |
| | | org.json.JSONObject xmlJson = XML.toJSONObject(notityXml); |
| | | if (StringUtils.isNotEmpty(xmlJson.toString())) { |
| | | JSONObject resultData = JSON.parseObject(xmlJson.get("xml").toString()); |
| | | // 成功支付订单 |
| | | if (SUCCESS.equals(resultData.getString("result_code")) && SUCCESS.equals(resultData.getString("result_code"))){ |
| | | WxPayNotifyOrderDTO notifyOrderDTO = getWxNotify(resultData); |
| | | |
| | | // 根据订单号修改订单信息 |
| | | commodityOrderFeign.batteryPayNotify(notifyOrderDTO); |
| | | // 给微信服务器返回 成功标示 否则会一直询问 咱们服务器 是否回调成功 |
| | | PrintWriter writer = response.getWriter(); |
| | | // 返回 |
| | | writer.print(getWxSuccessString()); |
| | | } else {// 未成功支付订单 |
| | | // 给微信服务器返回 成功标示 否则会一直询问 咱们服务器 是否回调成功 |
| | | PrintWriter writer = response.getWriter(); |
| | | // 返回 |
| | | writer.print(getWxFailString()); |
| | | } |
| | | } |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | @PostMapping("/batteryActivityPayNotify") |
| | | public void batteryActivityPayNotify(HttpServletRequest request, HttpServletResponse response) { |
| | | log.info("购买活动商品微信支付回调start"); |
| | | String inputLine = ""; |
| | | String notityXml = ""; |
| | | try { |
| | | while ((inputLine = request.getReader().readLine()) != null) { |
| | | notityXml += inputLine; |
| | | } |
| | | // 关闭流 |
| | | request.getReader().close(); |
| | | log.info("购买活动商品微信回调内容信息:" + notityXml); |
| | | // 解析成Json |
| | | org.json.JSONObject xmlJson = XML.toJSONObject(notityXml); |
| | | if (StringUtils.isNotEmpty(xmlJson.toString())) { |
| | | JSONObject resultData = JSON.parseObject(xmlJson.get("xml").toString()); |
| | | // 成功支付订单 |
| | | if (SUCCESS.equals(resultData.getString("result_code")) && SUCCESS.equals(resultData.getString("result_code"))){ |
| | | WxPayNotifyOrderDTO notifyOrderDTO = getWxNotify(resultData); |
| | | |
| | | // 根据订单号修改订单信息 |
| | | commodityOrderFeign.batteryActivityPayNotify(notifyOrderDTO); |
| | | // 给微信服务器返回 成功标示 否则会一直询问 咱们服务器 是否回调成功 |
| | | PrintWriter writer = response.getWriter(); |
| | | // 返回 |
| | | writer.print(getWxSuccessString()); |
| | | } else {// 未成功支付订单 |
| | | // 给微信服务器返回 成功标示 否则会一直询问 咱们服务器 是否回调成功 |
| | | PrintWriter writer = response.getWriter(); |
| | | // 返回 |
| | | writer.print(getWxFailString()); |
| | | } |
| | | } |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 将微信支付回调的请求参数转义为对象 |
| | | * @param resultData 微信支付回调请求参数 |
| | | * @return 转义为支付请求参数 |
| | | */ |
| | | private WxPayNotifyOrderDTO getWxNotify(JSONObject resultData){ |
| | | WxPayNotifyOrderDTO notifyOrderDTO = new WxPayNotifyOrderDTO(); |
| | | notifyOrderDTO.setResult(resultData.toJSONString()); |
| | | // 订单号 |
| | | String orderTradeNo = resultData.getString("out_trade_no"); |
| | | notifyOrderDTO.setOrderTradeNo(orderTradeNo); |
| | | // 微信支付订单号 |
| | | String wxTradeNo = resultData.getString("transaction_id"); |
| | | notifyOrderDTO.setWxTradeNo(wxTradeNo); |
| | | // 订单金额 |
| | | String totalFee = resultData.getString("total_fee"); |
| | | notifyOrderDTO.setTotalFee(totalFee); |
| | | // 支付完成时间 |
| | | String payTime = resultData.getString("time_end"); |
| | | notifyOrderDTO.setPayTime(payTime); |
| | | // 现金支付金额 |
| | | String cashFee = resultData.getString("cash_fee"); |
| | | notifyOrderDTO.setCashFee(cashFee); |
| | | //附加数据 |
| | | String attach = resultData.getString("attach"); |
| | | notifyOrderDTO.setAttach(attach); |
| | | return notifyOrderDTO; |
| | | } |
| | | |
| | | /** |
| | | * 封装微信成功返回值 |
| | | * @return 成功返回值 |
| | | */ |
| | | private String getWxSuccessString(){ |
| | | StringBuffer buffer = new StringBuffer(); |
| | | buffer.append("<xml>"); |
| | | buffer.append("<return_code>SUCCESS</return_code>"); |
| | | buffer.append("<return_msg>OK</return_msg>"); |
| | | buffer.append("</xml>"); |
| | | return buffer.toString(); |
| | | } |
| | | |
| | | /** |
| | | * 封装微信失败返回值 |
| | | * @return 失败返回值 |
| | | */ |
| | | private String getWxFailString(){ |
| | | StringBuffer buffer = new StringBuffer(); |
| | | buffer.append("<xml>"); |
| | | buffer.append("<return_code>FAIL</return_code>"); |
| | | buffer.append("<return_msg>FAIL</return_msg>"); |
| | | buffer.append("</xml>"); |
| | | return buffer.toString(); |
| | | } |
| | | |
| | | @GetMapping("/settle") |
| | | public R settle(String settleDate){ |
| | | return R.ok(umfPayUtil.settle(settleDate)); |
New file |
| | |
| | | package com.panzhihua.applets.config; |
| | | |
| | | |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.fasterxml.jackson.databind.module.SimpleModule; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | import org.springframework.context.annotation.Primary; |
| | | import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder; |
| | | |
| | | @Configuration |
| | | public class JacksonConfig { |
| | | |
| | | @Bean |
| | | @Primary |
| | | @ConditionalOnMissingBean(ObjectMapper.class) |
| | | public ObjectMapper jacksonObjectMapper(Jackson2ObjectMapperBuilder builder) |
| | | { |
| | | ObjectMapper objectMapper = builder.createXmlMapper(false).build(); |
| | | |
| | | // 全局配置序列化返回 JSON 处理 |
| | | SimpleModule simpleModule = new SimpleModule(); |
| | | //JSON Long ==> String |
| | | simpleModule.addSerializer(Long.class, ToStringSerializer.instance); |
| | | objectMapper.registerModule(simpleModule); |
| | | return objectMapper; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.panzhihua.applets.model.dtos; |
| | | |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class IDTO { |
| | | private Long id; |
| | | } |
New file |
| | |
| | | package com.panzhihua.applets_backstage.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.common.AddComBatteryCommodityActivityDto; |
| | | import com.panzhihua.common.model.dtos.common.EditComBatteryCommodityActivityDto; |
| | | import com.panzhihua.common.model.dtos.common.PageComBatteryCommodityActivityDto; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.common.ComBatteryCommodityActivityVo; |
| | | import com.panzhihua.common.service.community.ComBatteryCommodityActivityFeign; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * title: 电动车商城-商家活动表(ComBatteryCommodityActivity) 表控制层 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 电动车商城-商家活动表 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 13:17:38 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"电动车商城-活动管理"}) |
| | | @RestController |
| | | @RequestMapping("/comBatteryCommodityActivity") |
| | | public class ComBatteryCommodityActivityApi extends BaseController { |
| | | |
| | | @Resource |
| | | private ComBatteryCommodityActivityFeign comBatteryCommodityActivityService; |
| | | |
| | | /** |
| | | * description queryByPage 分页查询 |
| | | * |
| | | * @param comBatteryCommodityActivity 请求参数 |
| | | * @return 分页查询返回参数 |
| | | * @author lyq |
| | | * @date 2022-03-29 13:17:38 |
| | | */ |
| | | @ApiOperation(value = "分页查询活动列表",response = ComBatteryCommodityActivityVo.class) |
| | | @PostMapping("/page") |
| | | public R queryByPage(@RequestBody PageComBatteryCommodityActivityDto comBatteryCommodityActivity) { |
| | | return this.comBatteryCommodityActivityService.queryByPage(comBatteryCommodityActivity); |
| | | } |
| | | |
| | | /** |
| | | * description deleteById 删除数据 |
| | | * |
| | | * @param id 主键id |
| | | * @return 删除结果 |
| | | * @author lyq |
| | | * @date 2022-03-29 13:17:38 |
| | | */ |
| | | @ApiOperation(value = "删除活动") |
| | | @GetMapping("/delete") |
| | | public R deleteById(@RequestParam("id") Long id) { |
| | | return this.comBatteryCommodityActivityService.deleteById(id); |
| | | } |
| | | |
| | | /** |
| | | * description detailById 查询详情 |
| | | * |
| | | * @param id 主键id |
| | | * @return 详情数据 |
| | | * @author lyq |
| | | * @date 2022-03-29 13:17:38 |
| | | */ |
| | | @ApiOperation(value = "查询活动详情",response = ComBatteryCommodityActivityVo.class) |
| | | @GetMapping("/detail") |
| | | public R detailById(@RequestParam("id") Long id) { |
| | | return this.comBatteryCommodityActivityService.detailById(id,0L); |
| | | } |
| | | |
| | | /** |
| | | * description queryByPage 查询列表 |
| | | * |
| | | * @param comBatteryCommodityActivity 请求参数 |
| | | * @return 列表数据 |
| | | * @author lyq |
| | | * @date 2022-03-29 13:17:38 |
| | | */ |
| | | @ApiOperation(value = "查询活动列表",response = ComBatteryCommodityActivityVo.class) |
| | | @PostMapping("/list") |
| | | public R queryByList(@RequestBody PageComBatteryCommodityActivityDto comBatteryCommodityActivity) { |
| | | return this.comBatteryCommodityActivityService.queryByList(comBatteryCommodityActivity); |
| | | } |
| | | |
| | | /** |
| | | * 修改活动状态 |
| | | * @param id 活动id |
| | | * @param status 状态 |
| | | * @return 修改结果 |
| | | */ |
| | | @ApiOperation(value = "修改活动状态") |
| | | @GetMapping("/updateStatus") |
| | | public R updateStatus(@RequestParam("id") Long id,@RequestParam("status") Integer status) { |
| | | return this.comBatteryCommodityActivityService.updateStatus(id,status); |
| | | } |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.applets_backstage.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.common.AddComBatteryCommodityDto; |
| | | import com.panzhihua.common.model.dtos.common.EditComBatteryCommodityDto; |
| | | import com.panzhihua.common.model.dtos.common.PageComBatteryCommodityDto; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.common.ComBatteryCommodityVo; |
| | | import com.panzhihua.common.service.community.ComBatteryCommodityFeign; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * title: 电动车商城-商品表(ComBatteryCommodity) 表控制层 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 电动车商城-商品表 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-28 14:59:58 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"电动车商城-商品管理"}) |
| | | @RestController |
| | | @RequestMapping("/comBatteryCommodity") |
| | | public class ComBatteryCommodityApi extends BaseController { |
| | | |
| | | @Resource |
| | | private ComBatteryCommodityFeign comBatteryCommodityService; |
| | | |
| | | /** |
| | | * description queryByPage 分页查询 |
| | | * |
| | | * @param comBatteryCommodity 请求参数 |
| | | * @return 分页查询返回参数 |
| | | * @author lyq |
| | | * @date 2022-03-28 14:59:58 |
| | | */ |
| | | @ApiOperation(value = "分页查询商品列表",response = ComBatteryCommodityVo.class) |
| | | @PostMapping("/page") |
| | | public R queryByPage(@RequestBody PageComBatteryCommodityDto comBatteryCommodity) { |
| | | return this.comBatteryCommodityService.queryByPage(comBatteryCommodity); |
| | | } |
| | | |
| | | /** |
| | | * description deleteById 删除数据 |
| | | * |
| | | * @param id 主键id |
| | | * @return 删除结果 |
| | | * @author lyq |
| | | * @date 2022-03-28 14:59:58 |
| | | */ |
| | | @ApiOperation(value = "删除商品") |
| | | @GetMapping("/delete") |
| | | public R deleteById(@RequestParam("id") Long id) { |
| | | return this.comBatteryCommodityService.deleteById(id); |
| | | } |
| | | |
| | | /** |
| | | * description detailById 查询详情 |
| | | * |
| | | * @param id 主键id |
| | | * @return 详情数据 |
| | | * @author lyq |
| | | * @date 2022-03-28 14:59:58 |
| | | */ |
| | | @ApiOperation(value = "查询商品详情",response = ComBatteryCommodityVo.class) |
| | | @GetMapping("/detail") |
| | | public R detailById(@RequestParam("id") Long id) { |
| | | return this.comBatteryCommodityService.detailById(id); |
| | | } |
| | | |
| | | /** |
| | | * description queryByPage 查询列表 |
| | | * |
| | | * @param comBatteryCommodity 请求参数 |
| | | * @return 列表数据 |
| | | * @author lyq |
| | | * @date 2022-03-28 14:59:58 |
| | | */ |
| | | @ApiOperation(value = "查询商品列表",response = ComBatteryCommodityVo.class) |
| | | @PostMapping("/list") |
| | | public R queryByList(@RequestBody PageComBatteryCommodityDto comBatteryCommodity) { |
| | | return this.comBatteryCommodityService.queryByList(comBatteryCommodity); |
| | | } |
| | | |
| | | /** |
| | | * 修改商品状态 |
| | | * @param id 商品id |
| | | * @param status 商品状态 |
| | | * @return 修改结果 |
| | | */ |
| | | @ApiOperation(value = "修改商品状态") |
| | | @GetMapping("/updateStatus") |
| | | public R updateStatus(@RequestParam("id") Long id,@RequestParam("status") Integer status) { |
| | | return this.comBatteryCommodityService.updateStatus(id,status); |
| | | } |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.applets_backstage.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.common.EditOrderAddressDto; |
| | | import com.panzhihua.common.model.dtos.common.PageComBatteryCommodityOrderDto; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.common.ComBatteryCommodityOrderVo; |
| | | import com.panzhihua.common.service.community.ComBatteryCommodityOrderFeign; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * title: 电动车商城-订单表(ComBatteryCommodityOrder) 表控制层 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 电动车商城-订单表 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 16:05:04 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"电动车商城-订单管理"}) |
| | | @RestController |
| | | @RequestMapping("/comBatteryCommodityOrder") |
| | | public class ComBatteryCommodityOrderApi extends BaseController { |
| | | |
| | | @Resource |
| | | private ComBatteryCommodityOrderFeign comBatteryCommodityOrderService; |
| | | |
| | | /** |
| | | * description queryByPage 分页查询 |
| | | * |
| | | * @param comBatteryCommodityOrder 请求参数 |
| | | * @return 分页查询返回参数 |
| | | * @author lyq |
| | | * @date 2022-03-29 16:05:04 |
| | | */ |
| | | @ApiOperation(value = "分页查询订单列表",response = ComBatteryCommodityOrderVo.class) |
| | | @PostMapping("/page") |
| | | public R queryByPage(@RequestBody PageComBatteryCommodityOrderDto comBatteryCommodityOrder) { |
| | | comBatteryCommodityOrder.setIsAdmin(1); |
| | | return this.comBatteryCommodityOrderService.queryByPage(comBatteryCommodityOrder); |
| | | } |
| | | |
| | | /** |
| | | * description detailById 查询详情 |
| | | * |
| | | * @param id 主键id |
| | | * @return 详情数据 |
| | | * @author lyq |
| | | * @date 2022-03-29 16:05:04 |
| | | */ |
| | | @ApiOperation(value = "查询订单详情",response = ComBatteryCommodityOrderVo.class) |
| | | @GetMapping("/detail") |
| | | public R detailById(@RequestParam("id") Long id) { |
| | | return this.comBatteryCommodityOrderService.detailById(id); |
| | | } |
| | | |
| | | /** |
| | | * description queryByPage 查询列表 |
| | | * |
| | | * @param comBatteryCommodityOrder 请求参数 |
| | | * @return 列表数据 |
| | | * @author lyq |
| | | * @date 2022-03-29 16:05:04 |
| | | */ |
| | | @ApiOperation(value = "查询订单列表",response = ComBatteryCommodityOrderVo.class) |
| | | @PostMapping("/list") |
| | | public R queryByList(@RequestBody PageComBatteryCommodityOrderDto comBatteryCommodityOrder) { |
| | | return this.comBatteryCommodityOrderService.queryByList(comBatteryCommodityOrder); |
| | | } |
| | | |
| | | @ApiOperation(value = "修改订单收货地址") |
| | | @PutMapping("/update/address") |
| | | public R updateOrderAddress(@RequestBody EditOrderAddressDto editOrderAddressDto) { |
| | | return this.comBatteryCommodityOrderService.updateOrderAddress(editOrderAddressDto); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.applets_backstage.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.common.AddComBatteryStoreDto; |
| | | import com.panzhihua.common.model.dtos.common.EditComBatteryStoreDto; |
| | | import com.panzhihua.common.model.dtos.common.PageComBatteryStoreDto; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.common.ComBatteryStoreVo; |
| | | import com.panzhihua.common.service.community.ComBatteryStoreFeign; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * title: 电动车商城-商家表(ComBatteryStore) 表控制层 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 电动车商城-商家表 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-28 13:44:43 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"电动车商城-商家管理"}) |
| | | @RestController |
| | | @RequestMapping("/comBatteryStore") |
| | | public class ComBatteryStoreApi extends BaseController { |
| | | |
| | | @Resource |
| | | private ComBatteryStoreFeign comBatteryStoreService; |
| | | |
| | | /** |
| | | * description queryByPage 分页查询 |
| | | * |
| | | * @param comBatteryStore 请求参数 |
| | | * @return 分页查询返回参数 |
| | | * @author lyq |
| | | * @date 2022-03-28 13:44:43 |
| | | */ |
| | | @ApiOperation(value = "分页查询商家列表",response = ComBatteryStoreVo.class) |
| | | @PostMapping("/page") |
| | | public R queryByPage(@RequestBody PageComBatteryStoreDto comBatteryStore) { |
| | | return this.comBatteryStoreService.queryByPage(comBatteryStore); |
| | | } |
| | | |
| | | /** |
| | | * description add 新增数据 |
| | | * |
| | | * @param comBatteryStore 请求参数 |
| | | * @return 新增结果 |
| | | * @author lyq |
| | | * @date 2022-03-28 13:44:43 |
| | | */ |
| | | @ApiOperation(value = "新增商家") |
| | | @PostMapping("/add") |
| | | public R add(@RequestBody AddComBatteryStoreDto comBatteryStore) { |
| | | comBatteryStore.setCreateAt(new Date()); |
| | | comBatteryStore.setCreateBy(this.getUserId()); |
| | | return this.comBatteryStoreService.insert(comBatteryStore); |
| | | } |
| | | |
| | | /** |
| | | * description edit 编辑数据 |
| | | * |
| | | * @param comBatteryStore 请求参数 |
| | | * @return 编辑结果 |
| | | * @author lyq |
| | | * @date 2022-03-28 13:44:43 |
| | | */ |
| | | @ApiOperation(value = "修改商家") |
| | | @PutMapping("/edit") |
| | | public R edit(@RequestBody EditComBatteryStoreDto comBatteryStore) { |
| | | comBatteryStore.setUpdateAt(new Date()); |
| | | comBatteryStore.setUpdateBy(this.getUserId()); |
| | | return this.comBatteryStoreService.update(comBatteryStore); |
| | | } |
| | | |
| | | /** |
| | | * description deleteById 删除数据 |
| | | * |
| | | * @param id 主键id |
| | | * @return 删除结果 |
| | | * @author lyq |
| | | * @date 2022-03-28 13:44:43 |
| | | */ |
| | | @ApiOperation(value = "删除商家") |
| | | @GetMapping("/delete") |
| | | public R deleteById(@RequestParam("id") Long id) { |
| | | return this.comBatteryStoreService.deleteById(id); |
| | | } |
| | | |
| | | /** |
| | | * description detailById 查询详情 |
| | | * |
| | | * @param id 主键id |
| | | * @return 详情数据 |
| | | * @author lyq |
| | | * @date 2022-03-28 13:44:43 |
| | | */ |
| | | @ApiOperation(value = "查询商家详情",response = ComBatteryStoreVo.class) |
| | | @GetMapping("/detail") |
| | | public R detailById(@RequestParam("id") Long id) { |
| | | return this.comBatteryStoreService.detailById(id); |
| | | } |
| | | |
| | | /** |
| | | * description queryByPage 查询列表 |
| | | * |
| | | * @param comBatteryStore 请求参数 |
| | | * @return 列表数据 |
| | | * @author lyq |
| | | * @date 2022-03-28 13:44:43 |
| | | */ |
| | | @ApiOperation(value = "查询商家列表",response = ComBatteryStoreVo.class) |
| | | @PostMapping("/list") |
| | | public R queryByList(@RequestBody PageComBatteryStoreDto comBatteryStore) { |
| | | return this.comBatteryStoreService.queryByList(comBatteryStore); |
| | | } |
| | | |
| | | /** |
| | | * 修改电动车商家后台用户密码 |
| | | * @param storeId 商家后台用户id |
| | | * @param passWord 用户需要修改的密码 |
| | | * @return 重置密码结果 |
| | | */ |
| | | @ApiOperation(value = "修改商家密码") |
| | | @GetMapping("/resetPassword") |
| | | public R resetPassword(@RequestParam("storeId") Long storeId,@RequestParam("passWord") String passWord) { |
| | | return this.comBatteryStoreService.resetPassword(storeId,passWord); |
| | | } |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.applets_backstage.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.common.AddComChangeCarBrandDto; |
| | | import com.panzhihua.common.model.dtos.common.EditComChangeCarBrandDto; |
| | | import com.panzhihua.common.model.dtos.common.PageComChangeCarBrandDto; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.common.ComChangeCarBrandVo; |
| | | import com.panzhihua.common.service.community.ComChangeCarBrandFeign; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * title: 换新车-品牌表(ComChangeCarBrand) 表控制层 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 换新车-品牌表 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-07 13:37:22 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"换新车-品牌管理"}) |
| | | @RestController |
| | | @RequestMapping("/comChangeCarBrand") |
| | | public class ComChangeCarBrandApi extends BaseController { |
| | | |
| | | @Resource |
| | | private ComChangeCarBrandFeign comChangeCarBrandService; |
| | | |
| | | /** |
| | | * description queryByPage 分页查询 |
| | | * |
| | | * @param comChangeCarBrand 请求参数 |
| | | * @return 分页查询返回参数 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:37:22 |
| | | */ |
| | | @ApiOperation(value = "分页查询品牌列表",response = ComChangeCarBrandVo.class) |
| | | @PostMapping("/page") |
| | | public R queryByPage(@RequestBody PageComChangeCarBrandDto comChangeCarBrand) { |
| | | return this.comChangeCarBrandService.queryByPage(comChangeCarBrand); |
| | | } |
| | | |
| | | /** |
| | | * description add 新增数据 |
| | | * |
| | | * @param comChangeCarBrand 请求参数 |
| | | * @return 新增结果 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:37:22 |
| | | */ |
| | | @ApiOperation(value = "新增品牌") |
| | | @PostMapping("/add") |
| | | public R add(@RequestBody AddComChangeCarBrandDto comChangeCarBrand) { |
| | | Date nowDate = new Date(); |
| | | comChangeCarBrand.setCreateAt(nowDate); |
| | | comChangeCarBrand.setCreateBy(this.getUserId()); |
| | | comChangeCarBrand.setUpdateAt(nowDate); |
| | | comChangeCarBrand.setUpdateBy(this.getUserId()); |
| | | return this.comChangeCarBrandService.insert(comChangeCarBrand); |
| | | } |
| | | |
| | | /** |
| | | * description edit 编辑数据 |
| | | * |
| | | * @param comChangeCarBrand 请求参数 |
| | | * @return 编辑结果 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:37:22 |
| | | */ |
| | | @ApiOperation(value = "编辑品牌") |
| | | @PutMapping("/edit") |
| | | public R edit(@RequestBody EditComChangeCarBrandDto comChangeCarBrand) { |
| | | comChangeCarBrand.setUpdateAt(new Date()); |
| | | comChangeCarBrand.setUpdateBy(this.getUserId()); |
| | | return this.comChangeCarBrandService.update(comChangeCarBrand); |
| | | } |
| | | |
| | | /** |
| | | * description deleteById 删除数据 |
| | | * |
| | | * @param id 主键id |
| | | * @return 删除结果 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:37:22 |
| | | */ |
| | | @ApiOperation(value = "删除品牌") |
| | | @GetMapping("/delete") |
| | | public R deleteById(@RequestParam("id") Long id) { |
| | | return this.comChangeCarBrandService.deleteById(id); |
| | | } |
| | | |
| | | /** |
| | | * description detailById 查询详情 |
| | | * |
| | | * @param id 主键id |
| | | * @return 详情数据 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:37:22 |
| | | */ |
| | | @ApiOperation(value = "查询品牌详情",response = ComChangeCarBrandVo.class) |
| | | @GetMapping("/detail") |
| | | public R detailById(@RequestParam("id") Long id) { |
| | | return this.comChangeCarBrandService.detailById(id); |
| | | } |
| | | |
| | | /** |
| | | * description queryByPage 查询列表 |
| | | * |
| | | * @param comChangeCarBrand 请求参数 |
| | | * @return 列表数据 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:37:22 |
| | | */ |
| | | @ApiOperation(value = "查询品牌列表",response = ComChangeCarBrandVo.class) |
| | | @PostMapping("/list") |
| | | public R queryByList(@RequestBody PageComChangeCarBrandDto comChangeCarBrand) { |
| | | return this.comChangeCarBrandService.queryByList(comChangeCarBrand); |
| | | } |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.applets_backstage.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.common.AddComChangeCarInquiryDto; |
| | | import com.panzhihua.common.model.dtos.common.EditComChangeCarInquiryDto; |
| | | import com.panzhihua.common.model.dtos.common.PageComChangeCarInquiryDto; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.common.ComChangeCarInquiryVo; |
| | | import com.panzhihua.common.service.community.ComChangeCarInquiryFeign; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * title: 换新车-分期询价表(ComChangeCarInquiry) 表控制层 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 换新车-分期询价表 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-07 13:39:06 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"换新车-分期询价管理"}) |
| | | @RestController |
| | | @RequestMapping("/comChangeCarInquiry") |
| | | public class ComChangeCarInquiryApi extends BaseController { |
| | | |
| | | @Resource |
| | | private ComChangeCarInquiryFeign comChangeCarInquiryService; |
| | | |
| | | /** |
| | | * description queryByPage 分页查询 |
| | | * |
| | | * @param comChangeCarInquiry 请求参数 |
| | | * @return 分页查询返回参数 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:39:06 |
| | | */ |
| | | @ApiOperation(value = "分页查询分期询价列表",response = ComChangeCarInquiryVo.class) |
| | | @PostMapping("/page") |
| | | public R queryByPage(@RequestBody PageComChangeCarInquiryDto comChangeCarInquiry) { |
| | | return this.comChangeCarInquiryService.queryByPage(comChangeCarInquiry); |
| | | } |
| | | |
| | | /** |
| | | * description detailById 查询详情 |
| | | * |
| | | * @param id 主键id |
| | | * @return 详情数据 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:39:06 |
| | | */ |
| | | @ApiOperation(value = "查询分期询价详情",response = ComChangeCarInquiryVo.class) |
| | | @GetMapping("/detail") |
| | | public R detailById(@RequestParam("id") Long id) { |
| | | return this.comChangeCarInquiryService.detailById(id); |
| | | } |
| | | |
| | | /** |
| | | * description queryByPage 查询列表 |
| | | * |
| | | * @param comChangeCarInquiry 请求参数 |
| | | * @return 列表数据 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:39:06 |
| | | */ |
| | | @ApiOperation(value = "查询分期询价列表",response = ComChangeCarInquiryVo.class) |
| | | @PostMapping("/list") |
| | | public R queryByList(@RequestBody PageComChangeCarInquiryDto comChangeCarInquiry) { |
| | | return this.comChangeCarInquiryService.queryByList(comChangeCarInquiry); |
| | | } |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.applets_backstage.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.common.AddComChangeCarModelDto; |
| | | import com.panzhihua.common.model.dtos.common.EditComChangeCarModelDto; |
| | | import com.panzhihua.common.model.dtos.common.PageComChangeCarModelDto; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.common.ComChangeCarModelVo; |
| | | import com.panzhihua.common.service.community.ComChangeCarModelFeign; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * title: 换新车-车型管理表(ComChangeCarModel) 表控制层 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 换新车-车型管理表 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-07 13:41:54 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"换新车-车型管理"}) |
| | | @RestController |
| | | @RequestMapping("/comChangeCarModel") |
| | | public class ComChangeCarModelApi extends BaseController { |
| | | |
| | | @Resource |
| | | private ComChangeCarModelFeign comChangeCarModelService; |
| | | |
| | | /** |
| | | * description queryByPage 分页查询 |
| | | * |
| | | * @param comChangeCarModel 请求参数 |
| | | * @return 分页查询返回参数 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:41:54 |
| | | */ |
| | | @ApiOperation(value = "分页查询车型管理列表",response = ComChangeCarModelVo.class) |
| | | @PostMapping("/page") |
| | | public R queryByPage(@RequestBody PageComChangeCarModelDto comChangeCarModel) { |
| | | return this.comChangeCarModelService.queryByPage(comChangeCarModel); |
| | | } |
| | | |
| | | /** |
| | | * description add 新增数据 |
| | | * |
| | | * @param comChangeCarModel 请求参数 |
| | | * @return 新增结果 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:41:54 |
| | | */ |
| | | @ApiOperation(value = "新增车型管理") |
| | | @PostMapping("/add") |
| | | public R add(@RequestBody AddComChangeCarModelDto comChangeCarModel) { |
| | | Date nowDate = new Date(); |
| | | comChangeCarModel.setCreateAt(nowDate); |
| | | comChangeCarModel.setCreateBy(this.getUserId()); |
| | | comChangeCarModel.setUpdateAt(nowDate); |
| | | comChangeCarModel.setUpdateBy(this.getUserId()); |
| | | return this.comChangeCarModelService.insert(comChangeCarModel); |
| | | } |
| | | |
| | | /** |
| | | * description edit 编辑数据 |
| | | * |
| | | * @param comChangeCarModel 请求参数 |
| | | * @return 编辑结果 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:41:54 |
| | | */ |
| | | @ApiOperation(value = "修改车型管理") |
| | | @PutMapping("/edit") |
| | | public R edit(@RequestBody EditComChangeCarModelDto comChangeCarModel) { |
| | | comChangeCarModel.setUpdateAt(new Date()); |
| | | comChangeCarModel.setUpdateBy(this.getUserId()); |
| | | return this.comChangeCarModelService.update(comChangeCarModel); |
| | | } |
| | | |
| | | /** |
| | | * description deleteById 删除数据 |
| | | * |
| | | * @param id 主键id |
| | | * @return 删除结果 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:41:54 |
| | | */ |
| | | @ApiOperation(value = "删除车型管理") |
| | | @GetMapping("/delete") |
| | | public R deleteById(@RequestParam("id") Long id) { |
| | | return this.comChangeCarModelService.deleteById(id); |
| | | } |
| | | |
| | | /** |
| | | * description detailById 查询详情 |
| | | * |
| | | * @param id 主键id |
| | | * @return 详情数据 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:41:54 |
| | | */ |
| | | @ApiOperation(value = "查询车型管理详情",response = ComChangeCarModelVo.class) |
| | | @GetMapping("/detail") |
| | | public R detailById(@RequestParam("id") Long id) { |
| | | return this.comChangeCarModelService.detailById(id); |
| | | } |
| | | |
| | | /** |
| | | * description queryByPage 查询列表 |
| | | * |
| | | * @param comChangeCarModel 请求参数 |
| | | * @return 列表数据 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:41:54 |
| | | */ |
| | | @ApiOperation(value = "查询车型管理列表",response = ComChangeCarModelVo.class) |
| | | @PostMapping("/list") |
| | | public R queryByList(@RequestBody PageComChangeCarModelDto comChangeCarModel) { |
| | | return this.comChangeCarModelService.queryByList(comChangeCarModel); |
| | | } |
| | | |
| | | /** |
| | | * 修改车型状态 |
| | | * @param id 车型id |
| | | * @param status 车型状态 |
| | | * @return 修改结果 |
| | | */ |
| | | @ApiOperation(value = "修改车型管理状态") |
| | | @GetMapping("/updateStatus") |
| | | public R updateStatus(@RequestParam("id") Long id,@RequestParam("status") Integer status) { |
| | | return this.comChangeCarModelService.updateStatus(id,status); |
| | | } |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.applets_backstage.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.common.AddComChangeCarModelRelationDto; |
| | | import com.panzhihua.common.model.dtos.common.EditComChangeCarModelRelationDto; |
| | | import com.panzhihua.common.model.dtos.common.PageComChangeCarModelRelationDto; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.common.ComChangeCarModelRelationVo; |
| | | import com.panzhihua.common.service.community.ComChangeCarModelRelationFeign; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * title: 换新车-车型与规格关联表(ComChangeCarModelRelation) 表控制层 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 换新车-车型与规格关联表 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:29 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"换新车-车型与规格关联管理"}) |
| | | @RestController |
| | | @RequestMapping("/comChangeCarModelRelation") |
| | | public class ComChangeCarModelRelationApi extends BaseController { |
| | | |
| | | @Resource |
| | | private ComChangeCarModelRelationFeign comChangeCarModelRelationService; |
| | | |
| | | /** |
| | | * description queryByPage 分页查询 |
| | | * |
| | | * @param comChangeCarModelRelation 请求参数 |
| | | * @return 分页查询返回参数 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:29 |
| | | */ |
| | | @ApiOperation(value = "分页查询车型与规格关联管理列表",response = ComChangeCarModelRelationVo.class) |
| | | @PostMapping("/page") |
| | | public R queryByPage(@RequestBody PageComChangeCarModelRelationDto comChangeCarModelRelation) { |
| | | return this.comChangeCarModelRelationService.queryByPage(comChangeCarModelRelation); |
| | | } |
| | | |
| | | /** |
| | | * description add 新增数据 |
| | | * |
| | | * @param comChangeCarModelRelation 请求参数 |
| | | * @return 新增结果 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:29 |
| | | */ |
| | | @ApiOperation(value = "新增车型与规格关联") |
| | | @PostMapping("/add") |
| | | public R add(@RequestBody AddComChangeCarModelRelationDto comChangeCarModelRelation) { |
| | | return this.comChangeCarModelRelationService.insert(comChangeCarModelRelation); |
| | | } |
| | | |
| | | /** |
| | | * description edit 编辑数据 |
| | | * |
| | | * @param comChangeCarModelRelation 请求参数 |
| | | * @return 编辑结果 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:29 |
| | | */ |
| | | @ApiOperation(value = "编辑车型与规格关联") |
| | | @PutMapping("/edit") |
| | | public R edit(@RequestBody EditComChangeCarModelRelationDto comChangeCarModelRelation) { |
| | | return this.comChangeCarModelRelationService.update(comChangeCarModelRelation); |
| | | } |
| | | |
| | | /** |
| | | * description deleteById 删除数据 |
| | | * |
| | | * @param id 主键id |
| | | * @return 删除结果 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:29 |
| | | */ |
| | | @ApiOperation(value = "删除车型与规格关联") |
| | | @GetMapping("/delete") |
| | | public R deleteById(@RequestParam("id") Long id) { |
| | | return this.comChangeCarModelRelationService.deleteById(id); |
| | | } |
| | | |
| | | /** |
| | | * description detailById 查询详情 |
| | | * |
| | | * @param id 主键id |
| | | * @return 详情数据 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:29 |
| | | */ |
| | | @ApiOperation(value = "查询车型与规格关联详情",response = ComChangeCarModelRelationVo.class) |
| | | @GetMapping("/detail") |
| | | public R detailById(@RequestParam("id") Long id) { |
| | | return this.comChangeCarModelRelationService.detailById(id); |
| | | } |
| | | |
| | | /** |
| | | * description queryByPage 查询列表 |
| | | * |
| | | * @param comChangeCarModelRelation 请求参数 |
| | | * @return 列表数据 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:29 |
| | | */ |
| | | @ApiOperation(value = "查询车型与规格关联管理列表",response = ComChangeCarModelRelationVo.class) |
| | | @PostMapping("/list") |
| | | public R queryByList(@RequestBody PageComChangeCarModelRelationDto comChangeCarModelRelation) { |
| | | return this.comChangeCarModelRelationService.queryByList(comChangeCarModelRelation); |
| | | } |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.applets_backstage.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.common.AddComChangeCarModelSpecsDto; |
| | | import com.panzhihua.common.model.dtos.common.EditComChangeCarModelSpecsDto; |
| | | import com.panzhihua.common.model.dtos.common.PageComChangeCarModelSpecsDto; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.common.ComChangeCarModelSpecsVo; |
| | | import com.panzhihua.common.service.community.ComChangeCarModelSpecsFeign; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * title: 换新车-车型规格表(ComChangeCarModelSpecs) 表控制层 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 换新车-车型规格表 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:31 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"换新车-车型规格管理"}) |
| | | @RestController |
| | | @RequestMapping("/comChangeCarModelSpecs") |
| | | public class ComChangeCarModelSpecsApi extends BaseController { |
| | | |
| | | @Resource |
| | | private ComChangeCarModelSpecsFeign comChangeCarModelSpecsService; |
| | | |
| | | /** |
| | | * description queryByPage 分页查询 |
| | | * |
| | | * @param comChangeCarModelSpecs 请求参数 |
| | | * @return 分页查询返回参数 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:31 |
| | | */ |
| | | @ApiOperation(value = "分页查询车型规格管理列表",response = ComChangeCarModelSpecsVo.class) |
| | | @PostMapping("/page") |
| | | public R queryByPage(@RequestBody PageComChangeCarModelSpecsDto comChangeCarModelSpecs) { |
| | | return this.comChangeCarModelSpecsService.queryByPage(comChangeCarModelSpecs); |
| | | } |
| | | |
| | | /** |
| | | * description add 新增数据 |
| | | * |
| | | * @param comChangeCarModelSpecs 请求参数 |
| | | * @return 新增结果 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:31 |
| | | */ |
| | | @ApiOperation(value = "新增车型规格") |
| | | @PostMapping("/add") |
| | | public R add(@RequestBody AddComChangeCarModelSpecsDto comChangeCarModelSpecs) { |
| | | Date nowDate = new Date(); |
| | | comChangeCarModelSpecs.setCreateAt(nowDate); |
| | | comChangeCarModelSpecs.setCreateBy(this.getUserId()); |
| | | comChangeCarModelSpecs.setUpdateAt(nowDate); |
| | | comChangeCarModelSpecs.setUpdateBy(this.getUserId()); |
| | | return this.comChangeCarModelSpecsService.insert(comChangeCarModelSpecs); |
| | | } |
| | | |
| | | /** |
| | | * description edit 编辑数据 |
| | | * |
| | | * @param comChangeCarModelSpecs 请求参数 |
| | | * @return 编辑结果 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:31 |
| | | */ |
| | | @ApiOperation(value = "编辑车型规格") |
| | | @PutMapping("/edit") |
| | | public R edit(@RequestBody EditComChangeCarModelSpecsDto comChangeCarModelSpecs) { |
| | | comChangeCarModelSpecs.setUpdateAt(new Date()); |
| | | comChangeCarModelSpecs.setUpdateBy(this.getUserId()); |
| | | return this.comChangeCarModelSpecsService.update(comChangeCarModelSpecs); |
| | | } |
| | | |
| | | /** |
| | | * description deleteById 删除数据 |
| | | * |
| | | * @param id 主键id |
| | | * @return 删除结果 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:31 |
| | | */ |
| | | @ApiOperation(value = "删除车型规格") |
| | | @GetMapping("/delete") |
| | | public R deleteById(@RequestParam("id") Long id) { |
| | | return this.comChangeCarModelSpecsService.deleteById(id); |
| | | } |
| | | |
| | | /** |
| | | * description detailById 查询详情 |
| | | * |
| | | * @param id 主键id |
| | | * @return 详情数据 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:31 |
| | | */ |
| | | @ApiOperation(value = "查询车型规格管理详情",response = ComChangeCarModelSpecsVo.class) |
| | | @GetMapping("/detail") |
| | | public R detailById(@RequestParam("id") Long id) { |
| | | return this.comChangeCarModelSpecsService.detailById(id); |
| | | } |
| | | |
| | | /** |
| | | * description queryByPage 查询列表 |
| | | * |
| | | * @param comChangeCarModelSpecs 请求参数 |
| | | * @return 列表数据 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:31 |
| | | */ |
| | | @ApiOperation(value = "查询车型规格管理列表",response = ComChangeCarModelSpecsVo.class) |
| | | @PostMapping("/list") |
| | | public R queryByList(@RequestBody PageComChangeCarModelSpecsDto comChangeCarModelSpecs) { |
| | | return this.comChangeCarModelSpecsService.queryByList(comChangeCarModelSpecs); |
| | | } |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.applets_backstage.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.common.AddComChangeCarModelSpecsChildrenDto; |
| | | import com.panzhihua.common.model.dtos.common.EditComChangeCarModelSpecsChildrenDto; |
| | | import com.panzhihua.common.model.dtos.common.PageComChangeCarModelSpecsChildrenDto; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.common.ComChangeCarModelSpecsChildrenVo; |
| | | import com.panzhihua.common.service.community.ComChangeCarModelSpecsChildrenFeign; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * title: 换新车-车型子规格表(ComChangeCarModelSpecsChildren) 表控制层 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 换新车-车型子规格表 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:33 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"换新车-车型规格下子规格管理"}) |
| | | @RestController |
| | | @RequestMapping("/comChangeCarModelSpecsChildren") |
| | | public class ComChangeCarModelSpecsChildrenApi extends BaseController { |
| | | |
| | | @Resource |
| | | private ComChangeCarModelSpecsChildrenFeign comChangeCarModelSpecsChildrenService; |
| | | |
| | | /** |
| | | * description queryByPage 分页查询 |
| | | * |
| | | * @param comChangeCarModelSpecsChildren 请求参数 |
| | | * @return 分页查询返回参数 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:33 |
| | | */ |
| | | @ApiOperation(value = "分页查询车型规格下子规格管理列表",response = ComChangeCarModelSpecsChildrenVo.class) |
| | | @PostMapping("/page") |
| | | public R queryByPage(@RequestBody PageComChangeCarModelSpecsChildrenDto comChangeCarModelSpecsChildren) { |
| | | return this.comChangeCarModelSpecsChildrenService.queryByPage(comChangeCarModelSpecsChildren); |
| | | } |
| | | |
| | | /** |
| | | * description add 新增数据 |
| | | * |
| | | * @param comChangeCarModelSpecsChildren 请求参数 |
| | | * @return 新增结果 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:33 |
| | | */ |
| | | @ApiOperation(value = "新增车型规格下子规格",response = ComChangeCarModelSpecsChildrenVo.class) |
| | | @PostMapping("/add") |
| | | public R add(@RequestBody AddComChangeCarModelSpecsChildrenDto comChangeCarModelSpecsChildren) { |
| | | return this.comChangeCarModelSpecsChildrenService.insert(comChangeCarModelSpecsChildren); |
| | | } |
| | | |
| | | /** |
| | | * description edit 编辑数据 |
| | | * |
| | | * @param comChangeCarModelSpecsChildren 请求参数 |
| | | * @return 编辑结果 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:33 |
| | | */ |
| | | @ApiOperation(value = "编辑车型规格下子规格",response = ComChangeCarModelSpecsChildrenVo.class) |
| | | @PutMapping("/edit") |
| | | public R edit(@RequestBody EditComChangeCarModelSpecsChildrenDto comChangeCarModelSpecsChildren) { |
| | | return this.comChangeCarModelSpecsChildrenService.update(comChangeCarModelSpecsChildren); |
| | | } |
| | | |
| | | /** |
| | | * description deleteById 删除数据 |
| | | * |
| | | * @param id 主键id |
| | | * @return 删除结果 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:33 |
| | | */ |
| | | @ApiOperation(value = "删除车型规格下子规格",response = ComChangeCarModelSpecsChildrenVo.class) |
| | | @GetMapping("/delete") |
| | | public R deleteById(@RequestParam("id") Long id) { |
| | | return this.comChangeCarModelSpecsChildrenService.deleteById(id); |
| | | } |
| | | |
| | | /** |
| | | * description detailById 查询详情 |
| | | * |
| | | * @param id 主键id |
| | | * @return 详情数据 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:33 |
| | | */ |
| | | @ApiOperation(value = "查询车型规格下子规格详情",response = ComChangeCarModelSpecsChildrenVo.class) |
| | | @GetMapping("/detail") |
| | | public R detailById(@RequestParam("id") Long id) { |
| | | return this.comChangeCarModelSpecsChildrenService.detailById(id); |
| | | } |
| | | |
| | | /** |
| | | * description queryByPage 查询列表 |
| | | * |
| | | * @param comChangeCarModelSpecsChildren 请求参数 |
| | | * @return 列表数据 |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:33 |
| | | */ |
| | | @ApiOperation(value = "查询车型规格下子规格管理列表",response = ComChangeCarModelSpecsChildrenVo.class) |
| | | @PostMapping("/list") |
| | | public R queryByList(@RequestBody PageComChangeCarModelSpecsChildrenDto comChangeCarModelSpecsChildren) { |
| | | return this.comChangeCarModelSpecsChildrenService.queryByList(comChangeCarModelSpecsChildren); |
| | | } |
| | | |
| | | } |
| | | |
| | |
| | | return communityService.detailCommunity(id); |
| | | } |
| | | |
| | | @ApiOperation("删除社区") |
| | | @DeleteMapping("/remove/{id}") |
| | | public R removeCommunity(@PathVariable("id")Long id){ |
| | | return communityService.removeCommunity(id); |
| | | } |
| | | |
| | | @ApiOperation("重置密码") |
| | | @PostMapping("/repass") |
| | | public R repass(@RequestBody ComActVO comActVO){ |
| | | return communityService.repassCommunity(comActVO); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.community.PageComStreetDTO; |
| | |
| | | return communityService.delectStreat(Ids); |
| | | } |
| | | |
| | | @ApiOperation("修改街道") |
| | | @PostMapping("/update") |
| | | public R update(@RequestBody ComStreetVO comStreetVO){ |
| | | return communityService.updateStreet(comStreetVO); |
| | | } |
| | | |
| | | @DeleteMapping("/remove/{id}") |
| | | @ApiOperation("删除街道") |
| | | public R remove(@PathVariable("id") Long id){ |
| | | return communityService.removeStreet(id); |
| | | } |
| | | |
| | | @ApiOperation("重置密码") |
| | | @PostMapping("repass") |
| | | public R repass(@RequestBody ComStreetVO comStreetVO){ |
| | | return communityService.repassStreet(comStreetVO); |
| | | } |
| | | |
| | | } |
| | |
| | | LoginReturnVO loginReturnVO=loginService.tfLogin(account,password,appid); |
| | | return R.ok(loginReturnVO); |
| | | } |
| | | |
| | | /** |
| | | * 电动车商城后台用户登录 |
| | | * |
| | | * @param account |
| | | * 账户 |
| | | * @param password |
| | | * 密码 |
| | | * @return 登录结果 |
| | | */ |
| | | @PostMapping("/loginBatteryUser") |
| | | public R loginBatteryUser(@RequestParam("account") String account, @RequestParam("password") String password,@RequestParam("appid")String appid) { |
| | | LoginReturnVO loginReturnVO = loginService.loginBatteryUser(account, password,appid); |
| | | return R.ok(loginReturnVO); |
| | | } |
| | | } |
| | |
| | | import javax.crypto.NoSuchPaddingException; |
| | | |
| | | import com.panzhihua.auth.config.MyAESUtil; |
| | | import com.panzhihua.common.constants.Constants; |
| | | import com.panzhihua.common.model.helper.AESUtil; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.common.utlis.AES; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.data.redis.core.RedisTemplate; |
| | |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.service.user.UserService; |
| | | |
| | | import static java.util.Objects.nonNull; |
| | | |
| | | /** |
| | | * @program: springcloud_k8s_panzhihuazhihuishequ |
| | | * @description: 登录认证 |
| | |
| | | private UserService userService; |
| | | @Resource |
| | | private RedisTemplate redisTemplate; |
| | | @Resource |
| | | private CommunityService communityService; |
| | | |
| | | private static String LOGIN_FAIL="LOGIN_FAIL_"; |
| | | |
| | |
| | | } |
| | | // 维护最后登录时间 |
| | | userService.putUserLastLoginTime(loginUserInfoVO.getUserId()); |
| | | //是否为专家登陆 |
| | | if (nonNull(loginUserInfoVO.getPhone())){ |
| | | R r1 = communityService.isExpert(loginUserInfoVO.getPhone()); |
| | | if (r1.getCode()== Constants.SUCCESS){ |
| | | loginUserInfoVO.setType(13); |
| | | } |
| | | } |
| | | return new UsernamePasswordAuthenticationToken(loginUserInfoVO, password, grantedAuthorityList); |
| | | } |
| | | else { |
| | |
| | | } |
| | | // 维护最后登录时间 |
| | | userService.putUserLastLoginTime(loginUserInfoVO.getUserId()); |
| | | //是否为专家登陆 |
| | | if (nonNull(loginUserInfoVO.getPhone())){ |
| | | R r1 = communityService.isExpert(loginUserInfoVO.getPhone()); |
| | | if (r1.getCode()== Constants.SUCCESS){ |
| | | loginUserInfoVO.setType(13); |
| | | } |
| | | } |
| | | return new UsernamePasswordAuthenticationToken(loginUserInfoVO, password, grantedAuthorityList); |
| | | |
| | | } |
| | |
| | | |
| | | import com.panzhihua.common.model.vos.LoginReturnVO; |
| | | import com.panzhihua.common.model.vos.LoginReturnsVO; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | /** |
| | | * @program: springcloud_k8s_panzhihuazhihuishequ |
| | |
| | | * @return 登录结果 |
| | | */ |
| | | LoginReturnVO tfLogin(String account, String password,String appid); |
| | | |
| | | /** |
| | | * 电动车商城后台用户登录 |
| | | * |
| | | * @param account |
| | | * 账户 |
| | | * @param password |
| | | * 密码 |
| | | * @return 登录结果 |
| | | */ |
| | | LoginReturnVO loginBatteryUser(String account, String password,String appid); |
| | | } |
| | |
| | | import org.springframework.web.context.request.RequestAttributes; |
| | | import org.springframework.web.context.request.RequestContextHolder; |
| | | import org.springframework.web.context.request.ServletRequestAttributes; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import static java.util.Objects.nonNull; |
| | | |
| | |
| | | loginReturnVO.setRefreshToken(refeshToken); |
| | | return loginReturnVO; |
| | | } |
| | | |
| | | /** |
| | | * 电动车商城后台用户登录 |
| | | * |
| | | * @param account |
| | | * 账户 |
| | | * @param password |
| | | * 密码 |
| | | * @return 登录结果 |
| | | */ |
| | | @Override |
| | | public LoginReturnVO loginBatteryUser(String account, String password,String appid) { |
| | | Authentication authentication = authenticationManager.authenticate(new UsernamePasswordAuthenticationToken(account + "_20"+"_"+appid, password)); |
| | | LoginUserInfoVO loginUser = (LoginUserInfoVO)authentication.getPrincipal(); |
| | | String token = JWTTokenUtil.generateToken(loginUser); |
| | | String refeshToken = JWTTokenUtil.generateRefeshToken(loginUser); |
| | | LoginReturnVO loginReturnVO = new LoginReturnVO(); |
| | | loginReturnVO.setToken(token); |
| | | loginReturnVO.setRefreshToken(refeshToken); |
| | | return loginReturnVO; |
| | | } |
| | | } |
| | |
| | | <artifactId>javase</artifactId> |
| | | <version>3.1.0</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.jsoup</groupId> |
| | | <artifactId>jsoup</artifactId> |
| | | <version>1.13.1</version> |
| | | <scope>compile</scope> |
| | | </dependency> |
| | | |
| | | </dependencies> |
| | | |
| | |
| | | /** |
| | | * 党建包名 |
| | | */ |
| | | public static final String SERVICE_PARTYBUILDING = "partybuilding"; |
| | | public static final String SERVICE_PARTYBUILDING = "huacheng-partybuilding"; |
| | | /** |
| | | * service_community包 |
| | | */ |
| | | public static final String SERVICE_COMMUNITY = "community"; |
| | | public static final String SERVICE_COMMUNITY = "huacheng-community"; |
| | | |
| | | /** |
| | | * 操作类型 |
| | |
| | | public static final String QUERY="query"; |
| | | public static final String DELETE="delete"; |
| | | public static final String VILLAGE="村"; |
| | | |
| | | /** |
| | | * 天府通办解密私钥 |
| | | * */ |
| | | public static final String PRIVATE_KEY="MIICeAIBADANBgkqhkiG9w0BAQEFAASCAmIwggJeAgEAAoGBAJJuFUH/4m9H5hCCzxtd9BxpjWlG9gbejqiJpV0XJKaU1V7xDBJasswxPY7Zc15RoxWClPoKPwKrbWKm49dgBJebJq5xd4sLCSbboxRkKxpRiJHMZ4LJjYa5h9Ei9RyfoUzqGHqH4UrDy3m3IwPiP19cIBqoU50shyQf92ZpcGZhAgMBAAECgYEAiadU8pODoUs82x6tZbPALQmJN4PO+wwznfqv6sA74yGdKECAMazz0oMjtGt1SiCCqFD2jcweCftvvELZg3mvNg1V0vRQRD1ZCA8HDp8DXm20d11K3+RX39tR4KgyyM3HsSEhkUDujMxKIpYjyiB5iEtV7Ja9bZ2fROszq+mUIqUCQQDQQf6vWRMLBqfnDcU77vuDGOhXbjkF2ytLxLW3fbKaW3GWvC3n93zPM+mcvWSXgkl448+jFjpMktm1Vn+w+YX3AkEAs/+bbRbod6AcVbLu8C5E44qDRoRpu+LF7Cphp8tlSAIRjm2yGP5acMWGRUtH9MF2QJYPF0PgDzdmUSVqWnCAZwJBALnSuRri4wAKn1SmT+ALfLZcSiyBODZGeppv2ijw6qWahH8YR+ncRaxoyMFHqPMbmM1akJIXqktbGREaLnPOIb8CQQCdJycJaL3Qa98xR4dr9cm5rF6PO96g5w6M8jfO6ztjUkMHymh7f99wpFRlvaN2Y06edyV315ARWPohEPy5N44zAkBlLuDHLm1TkTTAfdlL5r2OcdjpaJYloTdn05Mp3+J+w1zTX8k6Mz8lFZtLUcoMeTfQ9rm/+u2KwxS8NljtSZWH"; |
| | | } |
| | |
| | | */ |
| | | public class PayCpmstant { |
| | | |
| | | // 微信支付统一下单url地址 |
| | | /** |
| | | * 微信支付统一下单url地址 |
| | | */ |
| | | public static final String UNIFIEDORDER_URL = "https://api.mch.weixin.qq.com/pay/unifiedorder"; |
| | | // 微信支付默认编码格式 |
| | | /** |
| | | * 微信支付默认编码格式 |
| | | */ |
| | | public static final String DEFAULT_ENCODING = "UTF-8"; |
| | | // 微信支付返回支付成功CODE |
| | | /** |
| | | * 微信支付返回支付成功CODE |
| | | */ |
| | | public static final String RETURN_CODE = "SUCCESS"; |
| | | // 微信支付返回支付成功MSG |
| | | /** |
| | | * 微信支付返回支付成功MSG |
| | | */ |
| | | public static final String RETURN_MSG = "OK"; |
| | | // 微信支付默认加密格式 |
| | | /** |
| | | * 微信支付默认加密格式 |
| | | */ |
| | | public static final String SIGN_TYPE = "MD5"; |
| | | |
| | | /** |
| | | * 电动车商城购买商品支付回调地址 |
| | | */ |
| | | public static final String BATTERY_STORE_PAY_NOTIFY_URL = "/api/huacheng-applets/wx/batteryPayNotify"; |
| | | /** |
| | | * 电动车商城活动订单支付回调地址 |
| | | */ |
| | | public static final String BATTERY_STORE_ACTIVITY_PAY_NOTIFY_URL = "/api/huacheng-applets/wx/batteryActivityPayNotify"; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.constants; |
| | | |
| | | /** |
| | | * 字典表key |
| | | * |
| | | * @author xyh |
| | | * @date 2021/6/11 15:53 |
| | | */ |
| | | public class ReturnMsgConstants { |
| | | |
| | | /** |
| | | * 数据已经存在 |
| | | */ |
| | | public static final String DATA_EXIST = "数据已经存在!"; |
| | | /** |
| | | * 数据不存在 |
| | | */ |
| | | public static final String DATA_NOT_EXIST = "数据不存在!"; |
| | | /** |
| | | * 保存成功 |
| | | */ |
| | | public static final String SAVE_SUCCESS = "保存成功"; |
| | | /** |
| | | * 保存失败 |
| | | */ |
| | | public static final String SAVE_FALSE = "保存失败"; |
| | | /** |
| | | * 更新成功 |
| | | */ |
| | | public static final String UPDATE_SUCCESS = "更新成功"; |
| | | /** |
| | | * 更新失败 |
| | | */ |
| | | public static final String UPDATE_FALSE = "更新失败"; |
| | | |
| | | } |
| | | |
| | |
| | | public static final String NEWS_ID = "news_media_id:"; |
| | | |
| | | public static final String NEWS_LIST = "news_list:"; |
| | | public static final String SANSHUO_INDUSTRY_CENTER_ROLE="103"; |
| | | public static final String SANSHUO_EXPERT_ROLE="102"; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.enums; |
| | | |
| | | import lombok.Getter; |
| | | |
| | | /** |
| | | * 事件状态 |
| | | * |
| | | * @author 1待处理2待验证3专家已受理4专家未受理,拒绝5调解中6已结案归档7调解取消8 已删除 |
| | | */ |
| | | @Getter |
| | | public enum SanShuoEventStatusEnum { |
| | | UNDO(1, "待处理"), VALID(2, "待验证"), ACCEPT(3, "专家已受理"), REJECT(4, "专家未受理,拒绝5"), conciliation(5, "调解中"), OVER(6, "已结案归档"), CANCEL(7, "调解取消"), DELETE(8, "已删除"); |
| | | |
| | | private final Integer code; |
| | | private final String name; |
| | | |
| | | SanShuoEventStatusEnum(Integer code, String name) { |
| | | this.code = code; |
| | | this.name = name; |
| | | } |
| | | |
| | | public static int getCodeByName(String name) { |
| | | for (SanShuoEventStatusEnum item : SanShuoEventStatusEnum.values()) { |
| | | if (item.name.equals(name)) { |
| | | return item.getCode(); |
| | | } |
| | | } |
| | | return UNDO.getCode(); |
| | | } |
| | | |
| | | public static String getCnDescByName(Integer code) { |
| | | for (SanShuoEventStatusEnum item : SanShuoEventStatusEnum.values()) { |
| | | if (item.code.equals(code)) { |
| | | return item.getName(); |
| | | } |
| | | } |
| | | return "未知"; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 新增电动车商城-商家活动表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 新增电动车商城-商家活动表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 13:17:41 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增电动车商城-商家活动表请求参数") |
| | | public class AddComBatteryCommodityActivityDto { |
| | | |
| | | |
| | | /** |
| | | * 活动名称 |
| | | */ |
| | | @ApiModelProperty(value = "活动名称") |
| | | private String name; |
| | | |
| | | /** |
| | | * 活动类型(1.拼团活动 2.砍价活动 3.限时秒杀) |
| | | */ |
| | | @ApiModelProperty(value = "活动类型(1.拼团活动 2.砍价活动 3.限时秒杀)") |
| | | private Integer type; |
| | | |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @ApiModelProperty(value = "商品id") |
| | | private Long commodityId; |
| | | |
| | | /** |
| | | * 商家id |
| | | */ |
| | | @ApiModelProperty(value = "商家id") |
| | | private Long storeId; |
| | | |
| | | /** |
| | | * 状态(1.进行中 2.已下架 3.已结束) |
| | | */ |
| | | @ApiModelProperty(value = "状态(1.进行中 2.已下架 3.已结束)") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | |
| | | /** |
| | | * 活动价格 |
| | | */ |
| | | @ApiModelProperty(value = "活动价格") |
| | | private BigDecimal price; |
| | | |
| | | /** |
| | | * 活动截止时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "活动截止时间") |
| | | private Date endTime; |
| | | |
| | | /** |
| | | * 拼团总团数 |
| | | */ |
| | | @ApiModelProperty(value = "拼团总团数") |
| | | private Integer collageNum; |
| | | |
| | | /** |
| | | * 拼团人数 |
| | | */ |
| | | @ApiModelProperty(value = "拼团人数") |
| | | private Integer collagePeopleNum; |
| | | |
| | | /** |
| | | * 活动图片 |
| | | */ |
| | | @ApiModelProperty(value = "活动图片") |
| | | private String images; |
| | | |
| | | /** |
| | | * 活动商品总数 |
| | | */ |
| | | @ApiModelProperty(value = "活动商品总数") |
| | | private Integer commodityNum; |
| | | |
| | | /** |
| | | * 活动规则 |
| | | */ |
| | | @ApiModelProperty(value = "活动规则") |
| | | private String rule; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | |
| | | /** |
| | | * 更新时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "更新时间") |
| | | private Date updateAt; |
| | | |
| | | /** |
| | | * 更新人id |
| | | */ |
| | | @ApiModelProperty(value = "更新人id") |
| | | private Long updateBy; |
| | | |
| | | /** |
| | | * 商品规格id |
| | | */ |
| | | @ApiModelProperty(value = "商品规格id") |
| | | private Long specsId; |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 新增电动车商城-商品表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 新增电动车商城-商品表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-28 14:59:59 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增电动车商城-商品表请求参数") |
| | | public class AddComBatteryCommodityDto { |
| | | |
| | | |
| | | /** |
| | | * 商品名称 |
| | | */ |
| | | @ApiModelProperty(value = "商品名称") |
| | | private String name; |
| | | |
| | | /** |
| | | * 商品编号 |
| | | */ |
| | | @ApiModelProperty(value = "商品编号") |
| | | private String code; |
| | | |
| | | /** |
| | | * 商品价格 |
| | | */ |
| | | @ApiModelProperty(value = "商品价格") |
| | | private BigDecimal price; |
| | | |
| | | /** |
| | | * 商家id |
| | | */ |
| | | @ApiModelProperty(value = "商家id") |
| | | private Long storeId; |
| | | |
| | | /** |
| | | * 状态(1.上架 2.下架) |
| | | */ |
| | | @ApiModelProperty(value = "状态(1.上架 2.下架)") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * 商品分类id |
| | | */ |
| | | @ApiModelProperty(value = "商品分类id") |
| | | private Long classId; |
| | | |
| | | /** |
| | | * 商品简介 |
| | | */ |
| | | @ApiModelProperty(value = "商品简介") |
| | | private String introduce; |
| | | |
| | | /** |
| | | * 邮费 |
| | | */ |
| | | @ApiModelProperty(value = "邮费") |
| | | private BigDecimal postage; |
| | | |
| | | /** |
| | | * 商品图片 |
| | | */ |
| | | @ApiModelProperty(value = "商品图片") |
| | | private String images; |
| | | |
| | | /** |
| | | * 商品详情 |
| | | */ |
| | | @ApiModelProperty(value = "商品详情") |
| | | private String detail; |
| | | |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | |
| | | /** |
| | | * 更新时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "更新时间") |
| | | private Date updateAt; |
| | | |
| | | /** |
| | | * 更新人id |
| | | */ |
| | | @ApiModelProperty(value = "更新人id") |
| | | private Long updateBy; |
| | | |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 新增电动车商城-砍价订单记录表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 新增电动车商城-砍价订单记录表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 16:06:36 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增电动车商城-砍价订单记录表请求参数") |
| | | public class AddComBatteryCommodityOrderBargainDto { |
| | | |
| | | |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @ApiModelProperty(value = "商品id") |
| | | private Long commodityId; |
| | | |
| | | /** |
| | | * 活动id |
| | | */ |
| | | @ApiModelProperty(value = "活动id") |
| | | private Long activityId; |
| | | |
| | | /** |
| | | * 订单id |
| | | */ |
| | | @ApiModelProperty(value = "订单id") |
| | | private Long orderId; |
| | | |
| | | /** |
| | | * 订单号 |
| | | */ |
| | | @ApiModelProperty(value = "订单号") |
| | | private String orderNo; |
| | | |
| | | /** |
| | | * 商品原价 |
| | | */ |
| | | @ApiModelProperty(value = "商品原价") |
| | | private BigDecimal originalPrice; |
| | | |
| | | /** |
| | | * 目标价格 |
| | | */ |
| | | @ApiModelProperty(value = "目标价格") |
| | | private BigDecimal targetPrice; |
| | | |
| | | /** |
| | | * 当前价格 |
| | | */ |
| | | @ApiModelProperty(value = "当前价格") |
| | | private BigDecimal currentPrice; |
| | | |
| | | /** |
| | | * 当前已砍价次数 |
| | | */ |
| | | @ApiModelProperty(value = "当前已砍价次数") |
| | | private Integer count; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 新增电动车商城-订单砍价记录表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 新增电动车商城-订单砍价记录表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 16:06:48 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增电动车商城-订单砍价记录表请求参数") |
| | | public class AddComBatteryCommodityOrderBargainRecordDto { |
| | | |
| | | |
| | | /** |
| | | * 砍价记录id |
| | | */ |
| | | @ApiModelProperty(value = "砍价记录id") |
| | | private Long bargainId; |
| | | |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | |
| | | /** |
| | | * 砍价金额 |
| | | */ |
| | | @ApiModelProperty(value = "砍价金额") |
| | | private BigDecimal amount; |
| | | |
| | | /** |
| | | * 原砍价用户id |
| | | */ |
| | | @ApiModelProperty(value = "原砍价用户id") |
| | | private Long oldUserId; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 新增电动车商城-拼团订单团队表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 新增电动车商城-拼团订单团队表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 16:06:58 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增电动车商城-拼团订单团队表请求参数") |
| | | public class AddComBatteryCommodityOrderCollageTeamDto { |
| | | |
| | | |
| | | /** |
| | | * 活动id |
| | | */ |
| | | @ApiModelProperty(value = "活动id") |
| | | private Long activityId; |
| | | |
| | | /** |
| | | * 订单id |
| | | */ |
| | | @ApiModelProperty(value = "订单id") |
| | | private Long orderId; |
| | | |
| | | /** |
| | | * 订单号 |
| | | */ |
| | | @ApiModelProperty(value = "订单号") |
| | | private String orderNo; |
| | | |
| | | /** |
| | | * 开团用户id |
| | | */ |
| | | @ApiModelProperty(value = "开团用户id") |
| | | private Long userId; |
| | | |
| | | /** |
| | | * 状态(1.等待拼团 2.拼团成功 3.拼团失败 4.已退款) |
| | | */ |
| | | @ApiModelProperty(value = "状态(1.等待拼团 2.拼团成功 3.拼团失败 4.已退款)") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 新增电动车商城-拼团活动团队人员表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 新增电动车商城-拼团活动团队人员表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 16:07:10 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增电动车商城-拼团活动团队人员表请求参数") |
| | | public class AddComBatteryCommodityOrderCollageTeamPeopleDto { |
| | | |
| | | |
| | | /** |
| | | * 拼团团队id |
| | | */ |
| | | @ApiModelProperty(value = "拼团团队id") |
| | | private Long teamId; |
| | | |
| | | /** |
| | | * 团长id |
| | | */ |
| | | @ApiModelProperty(value = "团长id") |
| | | private Long headUserId; |
| | | |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | |
| | | /** |
| | | * 参团类型(1.开团 2.参与拼团) |
| | | */ |
| | | @ApiModelProperty(value = "参团类型(1.开团 2.参与拼团)") |
| | | private Integer type; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 新增电动车商城-订单表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 新增电动车商城-订单表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 13:18:45 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增电动车商城-订单表请求参数") |
| | | public class AddComBatteryCommodityOrderDto { |
| | | |
| | | |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | |
| | | /** |
| | | * 商家id |
| | | */ |
| | | @ApiModelProperty(value = "商家id") |
| | | private Long storeId; |
| | | |
| | | /** |
| | | * 收货地址id |
| | | */ |
| | | @ApiModelProperty(value = "收货地址id") |
| | | private Long addressId; |
| | | |
| | | /** |
| | | * 活动id |
| | | */ |
| | | @ApiModelProperty(value = "活动id") |
| | | private Long activityId; |
| | | |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @ApiModelProperty(value = "商品id") |
| | | private Long commodityId; |
| | | |
| | | /** |
| | | * 商品规格id |
| | | */ |
| | | @ApiModelProperty(value = "商品规格id") |
| | | private Long specsId; |
| | | |
| | | /** |
| | | * 订单号 |
| | | */ |
| | | @ApiModelProperty(value = "订单号") |
| | | private String orderNo; |
| | | |
| | | /** |
| | | * 活动状态(1.拼团活动 2.砍价活动 3.限时秒杀) |
| | | */ |
| | | @ApiModelProperty(value = "活动状态(1.拼团活动 2.砍价活动 3.限时秒杀)") |
| | | private Integer activityType; |
| | | |
| | | /** |
| | | * 订单状态(1.待付款 2.待发货 3.待收货 4.已完成 5.待拼团 6.待砍价 7.已退款 8.已关闭) |
| | | */ |
| | | @ApiModelProperty(value = "订单状态(1.待付款 2.待发货 3.待收货 4.已完成 5.待拼团 6.待砍价 7.已退款 8.已关闭)") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * 拼团状态(1.拼团中 2.拼团成功 3.拼团失败) |
| | | */ |
| | | @ApiModelProperty(value = "拼团状态(1.拼团中 2.拼团成功 3.拼团失败)") |
| | | private Integer collageStatus; |
| | | |
| | | /** |
| | | * 砍价状态(1.砍价中 2.砍价成功 3.砍价失败) |
| | | */ |
| | | @ApiModelProperty(value = "砍价状态(1.砍价中 2.砍价成功 3.砍价失败)") |
| | | private Integer bargainStatus; |
| | | |
| | | /** |
| | | * 支付状态(1.未支付 2.已支付) |
| | | */ |
| | | @ApiModelProperty(value = "支付状态(1.未支付 2.已支付)") |
| | | private Integer payStatus; |
| | | |
| | | /** |
| | | * 是否已删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否已删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | |
| | | /** |
| | | * 支付方式(1.微信支付) |
| | | */ |
| | | @ApiModelProperty(value = "支付方式(1.微信支付)") |
| | | private Integer payType; |
| | | |
| | | /** |
| | | * 购买商品数量 |
| | | */ |
| | | @ApiModelProperty(value = "购买商品数量") |
| | | private Integer count; |
| | | |
| | | /** |
| | | * 商品单价 |
| | | */ |
| | | @ApiModelProperty(value = "商品单价") |
| | | private BigDecimal price; |
| | | |
| | | /** |
| | | * 订单金额 |
| | | */ |
| | | @ApiModelProperty(value = "订单金额") |
| | | private BigDecimal amount; |
| | | |
| | | /** |
| | | * 运费 |
| | | */ |
| | | @ApiModelProperty(value = "运费") |
| | | private BigDecimal freight; |
| | | |
| | | /** |
| | | * 物流单号 |
| | | */ |
| | | @ApiModelProperty(value = "物流单号") |
| | | private String logisticsNo; |
| | | |
| | | /** |
| | | * 物流公司 |
| | | */ |
| | | @ApiModelProperty(value = "物流公司") |
| | | private String logisticsCompany; |
| | | |
| | | /** |
| | | * 订单最终金额 |
| | | */ |
| | | @ApiModelProperty(value = "订单最终金额") |
| | | private BigDecimal finalAmount; |
| | | |
| | | /** |
| | | * 支付单号 |
| | | */ |
| | | @ApiModelProperty(value = "支付单号") |
| | | private String payNo; |
| | | |
| | | /** |
| | | * 支付总金额 |
| | | */ |
| | | @ApiModelProperty(value = "支付总金额") |
| | | private BigDecimal payAmount; |
| | | |
| | | /** |
| | | * 订单备注 |
| | | */ |
| | | @ApiModelProperty(value = "订单备注") |
| | | private String remark; |
| | | |
| | | /** |
| | | * 发货时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "发货时间") |
| | | private Date deliveryTime; |
| | | |
| | | /** |
| | | * 收货时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "收货时间") |
| | | private Date receivingTime; |
| | | |
| | | /** |
| | | * 下单时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "下单时间") |
| | | private Date createAt; |
| | | |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | |
| | | /** |
| | | * 修改人id |
| | | */ |
| | | @ApiModelProperty(value = "修改人id") |
| | | private Long updateBy; |
| | | |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 新增电动车商城-商品规格表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 新增电动车商城-商品规格表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-28 15:16:22 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增电动车商城-商品规格表请求参数") |
| | | public class AddComBatteryCommoditySpecsDto { |
| | | |
| | | |
| | | /** |
| | | * 商家id |
| | | */ |
| | | @ApiModelProperty(value = "商家id") |
| | | private Long storeId; |
| | | |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @ApiModelProperty(value = "商品id") |
| | | private Long commodityId; |
| | | |
| | | /** |
| | | * 规格名称 |
| | | */ |
| | | @ApiModelProperty(value = "规格名称") |
| | | private String name; |
| | | |
| | | /** |
| | | * 规格库存数量 |
| | | */ |
| | | @ApiModelProperty(value = "规格库存数量") |
| | | private Integer stock; |
| | | |
| | | /** |
| | | * 规格价格 |
| | | */ |
| | | @ApiModelProperty(value = "规格价格") |
| | | private BigDecimal price; |
| | | |
| | | /** |
| | | * 规格图片 |
| | | */ |
| | | @ApiModelProperty(value = "规格图片") |
| | | private String images; |
| | | |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | |
| | | /** |
| | | * 更新时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "更新时间") |
| | | private Date updateAt; |
| | | |
| | | /** |
| | | * 更新人id |
| | | */ |
| | | @ApiModelProperty(value = "更新人id") |
| | | private Long updateBy; |
| | | |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 新增电动车商城-商家分类表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 新增电动车商城-商家分类表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 11:01:57 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增电动车商城-商家分类表请求参数") |
| | | public class AddComBatteryStoreClassDto { |
| | | |
| | | |
| | | /** |
| | | * 分类名称 |
| | | */ |
| | | @ApiModelProperty(value = "分类名称") |
| | | private String name; |
| | | |
| | | /** |
| | | * 商家id |
| | | */ |
| | | @ApiModelProperty(value = "商家id") |
| | | private Long storeId; |
| | | |
| | | /** |
| | | * 状态(1.启用 2.禁用) |
| | | */ |
| | | @ApiModelProperty(value = "状态(1.启用 2.禁用)") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | |
| | | /** |
| | | * 更新时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "更新时间") |
| | | private Date updateAt; |
| | | |
| | | /** |
| | | * 更新人id |
| | | */ |
| | | @ApiModelProperty(value = "更新人id") |
| | | private Long updateBy; |
| | | |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 新增电动车商城-商家表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 新增电动车商城-商家表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-28 13:44:59 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增电动车商城-商家表请求参数") |
| | | public class AddComBatteryStoreDto { |
| | | |
| | | |
| | | /** |
| | | * 商家名称 |
| | | */ |
| | | @ApiModelProperty(value = "商家名称") |
| | | private String name; |
| | | |
| | | /** |
| | | * 注册手机 |
| | | */ |
| | | @ApiModelProperty(value = "注册手机") |
| | | private String regPhone; |
| | | |
| | | /** |
| | | * 联系电话 |
| | | */ |
| | | @ApiModelProperty(value = "联系电话") |
| | | private String phone; |
| | | |
| | | /** |
| | | * 商家账号 |
| | | */ |
| | | @ApiModelProperty(value = "商家账号") |
| | | private String account; |
| | | |
| | | /** |
| | | * 商家密码 |
| | | */ |
| | | @ApiModelProperty(value = "商家密码") |
| | | private String password; |
| | | |
| | | /** |
| | | * 状态(1.启用 2.禁用) |
| | | */ |
| | | @ApiModelProperty(value = "状态(1.启用 2.禁用)") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | |
| | | /** |
| | | * 商家logo |
| | | */ |
| | | @ApiModelProperty(value = "商家logo") |
| | | private String logo; |
| | | |
| | | /** |
| | | * 商家简介 |
| | | */ |
| | | @ApiModelProperty(value = "商家简介") |
| | | private String introduction; |
| | | |
| | | /** |
| | | * 商家地址 |
| | | */ |
| | | @ApiModelProperty(value = "商家地址") |
| | | private String address; |
| | | |
| | | /** |
| | | * 详细地址 |
| | | */ |
| | | @ApiModelProperty(value = "详细地址") |
| | | private String detailAddress; |
| | | |
| | | /** |
| | | * 经度 |
| | | */ |
| | | @ApiModelProperty(value = "经度") |
| | | private String longitude; |
| | | |
| | | /** |
| | | * 纬度 |
| | | */ |
| | | @ApiModelProperty(value = "纬度") |
| | | private String latitude; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | |
| | | /** |
| | | * 更新时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "更新时间") |
| | | private Date updateAt; |
| | | |
| | | /** |
| | | * 更新人id |
| | | */ |
| | | @ApiModelProperty(value = "更新人id") |
| | | private Long updateBy; |
| | | |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 新增电动车商城-微信交易流水表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 新增电动车商城-微信交易流水表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-01 13:18:50 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增电动车商城-微信交易流水表请求参数") |
| | | public class AddComBatteryTradeOrderDto { |
| | | |
| | | |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | |
| | | /** |
| | | * 用户openid |
| | | */ |
| | | @ApiModelProperty(value = "用户openid") |
| | | private String openId; |
| | | |
| | | /** |
| | | * 订单号 |
| | | */ |
| | | @ApiModelProperty(value = "订单号") |
| | | private String orderNo; |
| | | |
| | | /** |
| | | * 订单状态(1.待支付 2.已支付 3.申请退款 4.已退款 5.已关闭) |
| | | */ |
| | | @ApiModelProperty(value = "订单状态(1.待支付 2.已支付 3.申请退款 4.已退款 5.已关闭)") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * 支付类型(1.微信 ) |
| | | */ |
| | | @ApiModelProperty(value = "支付类型(1.微信 )") |
| | | private Integer payType; |
| | | |
| | | /** |
| | | * 订单支付状态(1.待支付 2.已支付) |
| | | */ |
| | | @ApiModelProperty(value = "订单支付状态(1.待支付 2.已支付)") |
| | | private Integer payStatus; |
| | | |
| | | /** |
| | | * 订单金额 |
| | | */ |
| | | @ApiModelProperty(value = "订单金额") |
| | | private BigDecimal orderAmount; |
| | | |
| | | /** |
| | | * 实际支付金额 |
| | | */ |
| | | @ApiModelProperty(value = "实际支付金额") |
| | | private BigDecimal payAmount; |
| | | |
| | | /** |
| | | * 支付单号 |
| | | */ |
| | | @ApiModelProperty(value = "支付单号") |
| | | private String payNo; |
| | | |
| | | /** |
| | | * 支付时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "支付时间") |
| | | private Date payTime; |
| | | |
| | | /** |
| | | * 交易类型(1.电动车商城购买商品) |
| | | */ |
| | | @ApiModelProperty(value = "交易类型(1.电动车商城购买商品)") |
| | | private Integer tradeType; |
| | | |
| | | /** |
| | | * 交易业务订单id |
| | | */ |
| | | @ApiModelProperty(value = "交易业务订单id") |
| | | private Long tradeOrderId; |
| | | |
| | | /** |
| | | * 交易业务订单号 |
| | | */ |
| | | @ApiModelProperty(value = "交易业务订单号") |
| | | private String tradeOrderNo; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | |
| | | /** |
| | | * 创建人 |
| | | */ |
| | | @ApiModelProperty(value = "创建人") |
| | | private Long createBy; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 新增电动车商城-用户收货地址表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 新增电动车商城-用户收货地址表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 13:18:20 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增电动车商城-用户收货地址表请求参数") |
| | | public class AddComBatteryUserAddressDto { |
| | | |
| | | |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | /** |
| | | * 姓名 |
| | | */ |
| | | @ApiModelProperty(value = "姓名") |
| | | private String name; |
| | | |
| | | /** |
| | | * 手机号 |
| | | */ |
| | | @ApiModelProperty(value = "手机号") |
| | | private String phone; |
| | | |
| | | /** |
| | | * 详细地址 |
| | | */ |
| | | @ApiModelProperty(value = "详细地址") |
| | | private String address; |
| | | |
| | | /** |
| | | * 是否是默认地址(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否是默认地址(1.是 2.否)") |
| | | private Integer isDefault; |
| | | |
| | | /** |
| | | * 省份行政区划代码 |
| | | */ |
| | | @ApiModelProperty(value = "省份行政区划代码") |
| | | private String provinceAdcode; |
| | | |
| | | /** |
| | | * 省份名称 |
| | | */ |
| | | @ApiModelProperty(value = "省份名称") |
| | | private String provinceName; |
| | | |
| | | /** |
| | | * 城市行政区划代码 |
| | | */ |
| | | @ApiModelProperty(value = "城市行政区划代码") |
| | | private String cityAdcode; |
| | | |
| | | /** |
| | | * 城市名称 |
| | | */ |
| | | @ApiModelProperty(value = "城市名称") |
| | | private String cityName; |
| | | |
| | | /** |
| | | * 区县行政区划代码 |
| | | */ |
| | | @ApiModelProperty(value = "区县行政区划代码") |
| | | private String districtAdcode; |
| | | |
| | | /** |
| | | * 区县名称 |
| | | */ |
| | | @ApiModelProperty(value = "区县名称") |
| | | private String districtName; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | |
| | | /** |
| | | * 修改人id |
| | | */ |
| | | @ApiModelProperty(value = "修改人id") |
| | | private Long updateBy; |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 新增换新车-品牌表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 新增换新车-品牌表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-07 13:37:25 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增换新车-品牌表请求参数") |
| | | public class AddComChangeCarBrandDto { |
| | | |
| | | |
| | | /** |
| | | * 品牌编号 |
| | | */ |
| | | @ApiModelProperty(value = "品牌编号") |
| | | private String code; |
| | | |
| | | /** |
| | | * 品牌名称 |
| | | */ |
| | | @ApiModelProperty(value = "品牌名称") |
| | | private String name; |
| | | |
| | | /** |
| | | * 状态(1.启用 2.禁用) |
| | | */ |
| | | @ApiModelProperty(value = "状态(1.启用 2.禁用)") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * 品牌logo |
| | | */ |
| | | @ApiModelProperty(value = "品牌logo") |
| | | private String logo; |
| | | |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | |
| | | /** |
| | | * 修改人id |
| | | */ |
| | | @ApiModelProperty(value = "修改人id") |
| | | private Long updateBy; |
| | | |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 新增换新车-分期询价表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 新增换新车-分期询价表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-07 13:39:07 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增换新车-分期询价表请求参数") |
| | | public class AddComChangeCarInquiryDto { |
| | | |
| | | |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty(value = "用户id",hidden = true) |
| | | private Long userId; |
| | | |
| | | /** |
| | | * 用户称呼 |
| | | */ |
| | | @ApiModelProperty(value = "用户称呼") |
| | | private String name; |
| | | |
| | | /** |
| | | * 用户手机号 |
| | | */ |
| | | @ApiModelProperty(value = "用户手机号") |
| | | private String phone; |
| | | |
| | | /** |
| | | * 类型(1.分期 2.询价) |
| | | */ |
| | | @ApiModelProperty(value = "类型(1.分期 2.询价)") |
| | | private Integer type; |
| | | |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)",hidden = true) |
| | | private Integer isDel; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间",hidden = true) |
| | | private Date createAt; |
| | | |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id",hidden = true) |
| | | private Long createBy; |
| | | |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 新增换新车-车型管理表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 新增换新车-车型管理表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-07 13:41:56 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增换新车-车型管理表请求参数") |
| | | public class AddComChangeCarModelDto { |
| | | |
| | | |
| | | /** |
| | | * 车型名称 |
| | | */ |
| | | @ApiModelProperty(value = "车型名称") |
| | | private String name; |
| | | |
| | | /** |
| | | * 图片url,多张以,隔开 |
| | | */ |
| | | @ApiModelProperty(value = "图片url,多张以,隔开") |
| | | private String images; |
| | | |
| | | /** |
| | | * 最低价格 |
| | | */ |
| | | @ApiModelProperty(value = "最低价格") |
| | | private BigDecimal minPrice; |
| | | |
| | | /** |
| | | * 品牌id |
| | | */ |
| | | @ApiModelProperty(value = "品牌id") |
| | | private Long brandId; |
| | | |
| | | /** |
| | | * 车辆详情 |
| | | */ |
| | | @ApiModelProperty(value = "车辆详情") |
| | | private String detail; |
| | | |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | |
| | | /** |
| | | * 状态(1.上架 2.下架) |
| | | */ |
| | | @ApiModelProperty(value = "状态(1.上架 2.下架)") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | |
| | | /** |
| | | * 修改人id |
| | | */ |
| | | @ApiModelProperty(value = "修改人id") |
| | | private Long updateBy; |
| | | |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 新增换新车-车型与规格关联表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 新增换新车-车型与规格关联表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:30 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增换新车-车型与规格关联表请求参数") |
| | | public class AddComChangeCarModelRelationDto { |
| | | |
| | | |
| | | /** |
| | | * 车型id |
| | | */ |
| | | @ApiModelProperty(value = "车型id") |
| | | private Long modelId; |
| | | |
| | | /** |
| | | * 车型规格id |
| | | */ |
| | | @ApiModelProperty(value = "车型规格id") |
| | | private Long modelSpecsId; |
| | | |
| | | /** |
| | | * 车型子规格id |
| | | */ |
| | | @ApiModelProperty(value = "车型子规格id") |
| | | private Long modelSpecsChildrenId; |
| | | |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 新增换新车-车型子规格表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 新增换新车-车型子规格表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:34 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增换新车-车型子规格表请求参数") |
| | | public class AddComChangeCarModelSpecsChildrenDto { |
| | | |
| | | |
| | | /** |
| | | * 主规格id |
| | | */ |
| | | @ApiModelProperty(value = "主规格id") |
| | | private Long specsId; |
| | | |
| | | /** |
| | | * 子规格名称 |
| | | */ |
| | | @ApiModelProperty(value = "子规格名称") |
| | | private String name; |
| | | |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 新增换新车-车型规格表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 新增换新车-车型规格表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:32 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增换新车-车型规格表请求参数") |
| | | public class AddComChangeCarModelSpecsDto { |
| | | |
| | | |
| | | /** |
| | | * 规格编号 |
| | | */ |
| | | @ApiModelProperty(value = "规格编号") |
| | | private String code; |
| | | |
| | | /** |
| | | * 规格名称 |
| | | */ |
| | | @ApiModelProperty(value = "规格名称") |
| | | private String name; |
| | | |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | |
| | | /** |
| | | * 修改人id |
| | | */ |
| | | @ApiModelProperty(value = "修改人id") |
| | | private Long updateBy; |
| | | |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 新增用户表 后台用户+小程序用户请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 新增用户表 后台用户+小程序用户请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-28 14:28:10 |
| | | */ |
| | | @Data |
| | | @ApiModel("新增用户表 后台用户+小程序用户请求参数") |
| | | public class AddSysUserDto { |
| | | |
| | | /** |
| | | * 主键 |
| | | */ |
| | | @ApiModelProperty(value = "主键") |
| | | private Long userId; |
| | | |
| | | /** |
| | | * 登录账户 |
| | | */ |
| | | @ApiModelProperty(value = "登录账户") |
| | | private String account; |
| | | |
| | | /** |
| | | * 登录密码 |
| | | */ |
| | | @ApiModelProperty(value = "登录密码") |
| | | private String password; |
| | | |
| | | /** |
| | | * 微信小程序唯一标识 |
| | | */ |
| | | @ApiModelProperty(value = "微信小程序唯一标识") |
| | | private String openid; |
| | | |
| | | /** |
| | | * 会话密钥 |
| | | */ |
| | | @ApiModelProperty(value = "会话密钥") |
| | | private String sessionKey; |
| | | |
| | | /** |
| | | * 用户在开放平台的唯一标识符 |
| | | */ |
| | | @ApiModelProperty(value = "用户在开放平台的唯一标识符") |
| | | private String unionid; |
| | | |
| | | /** |
| | | * 手机号 |
| | | */ |
| | | @ApiModelProperty(value = "手机号") |
| | | private String phone; |
| | | |
| | | /** |
| | | * 昵称 |
| | | */ |
| | | @ApiModelProperty(value = "昵称") |
| | | private String nickName; |
| | | |
| | | /** |
| | | * 真实名字 |
| | | */ |
| | | @ApiModelProperty(value = "真实名字") |
| | | private String name; |
| | | |
| | | /** |
| | | * 社区ID |
| | | */ |
| | | @ApiModelProperty(value = "社区ID") |
| | | private Long communityId; |
| | | |
| | | /** |
| | | * 性别 1 男 2 女 |
| | | */ |
| | | @ApiModelProperty(value = "性别 1 男 2 女") |
| | | private Integer sex; |
| | | |
| | | /** |
| | | * 身份证号 |
| | | */ |
| | | @ApiModelProperty(value = "身份证号") |
| | | private String idCard; |
| | | |
| | | /** |
| | | * 生日 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "生日") |
| | | private Date birthday; |
| | | |
| | | /** |
| | | * 头像 |
| | | */ |
| | | @ApiModelProperty(value = "头像") |
| | | private String imageUrl; |
| | | |
| | | /** |
| | | * 用户类型 1 小程序 2 运营平台 3 社区平台 5 商家后台 6 网格综治APP 7 网格综治后台 8大屏 9城管后台 10一键报警app |
| | | */ |
| | | @ApiModelProperty(value = "用户类型 1 小程序 2 运营平台 3 社区平台 5 商家后台 6 网格综治APP 7 网格综治后台 8大屏 9城管后台 10一键报警app") |
| | | private Integer type; |
| | | |
| | | /** |
| | | * 职业 |
| | | */ |
| | | @ApiModelProperty(value = "职业") |
| | | private String job; |
| | | |
| | | /** |
| | | * 是否志愿者 0 否 1 是 |
| | | */ |
| | | @ApiModelProperty(value = "是否志愿者 0 否 1 是") |
| | | private Integer isVolunteer; |
| | | |
| | | /** |
| | | * 是否党员 0 否 1 是 |
| | | */ |
| | | @ApiModelProperty(value = "是否党员 0 否 1 是") |
| | | private Integer isPartymember; |
| | | |
| | | /** |
| | | * 1 启用 2 禁用 |
| | | */ |
| | | @ApiModelProperty(value = "1 启用 2 禁用") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | |
| | | /** |
| | | * 最后登录时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "最后登录时间") |
| | | private Date lastLoginTime; |
| | | |
| | | /** |
| | | * 标签多个用,隔开 |
| | | */ |
| | | @ApiModelProperty(value = "标签多个用,隔开") |
| | | private String tags; |
| | | |
| | | /** |
| | | * 家庭id |
| | | */ |
| | | @ApiModelProperty(value = "家庭id") |
| | | private Long familyId; |
| | | |
| | | /** |
| | | * 人脸采集照片url |
| | | */ |
| | | @ApiModelProperty(value = "人脸采集照片url") |
| | | private String faceUrl; |
| | | |
| | | /** |
| | | * 人脸采集审核状态 0 待审核 1 审核通过 2驳回 |
| | | */ |
| | | @ApiModelProperty(value = "人脸采集审核状态 0 待审核 1 审核通过 2驳回") |
| | | private Integer faceState; |
| | | |
| | | /** |
| | | * 驳回原因 |
| | | */ |
| | | @ApiModelProperty(value = "驳回原因") |
| | | private String rejectReson; |
| | | |
| | | /** |
| | | * 小区id |
| | | */ |
| | | @ApiModelProperty(value = "小区id") |
| | | private Long areaId; |
| | | |
| | | /** |
| | | * 证件照(人相面)照片 |
| | | */ |
| | | @ApiModelProperty(value = "证件照(人相面)照片") |
| | | private String cardPhotoFront; |
| | | |
| | | /** |
| | | * 证件照(国徽面)照片 |
| | | */ |
| | | @ApiModelProperty(value = "证件照(国徽面)照片") |
| | | private String cardPhotoBack; |
| | | |
| | | /** |
| | | * 户口本 |
| | | */ |
| | | @ApiModelProperty(value = "户口本") |
| | | private String familyBook; |
| | | |
| | | /** |
| | | * 连续登陆天数 每天凌晨定时任务更新 |
| | | */ |
| | | @ApiModelProperty(value = "连续登陆天数 每天凌晨定时任务更新") |
| | | private Integer continuousLandingDays; |
| | | |
| | | /** |
| | | * 小程序首页是否显示公告(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "小程序首页是否显示公告(1.是 2.否)") |
| | | private Integer isTips; |
| | | |
| | | /** |
| | | * 网格员工作状态(1.在岗 2.脱岗 3.已下班) |
| | | */ |
| | | @ApiModelProperty(value = "网格员工作状态(1.在岗 2.脱岗 3.已下班)") |
| | | private Integer workStatus; |
| | | |
| | | /** |
| | | * 网格员上班开始时间 |
| | | */ |
| | | @ApiModelProperty(value = "网格员上班开始时间") |
| | | private Integer workStartTime; |
| | | |
| | | /** |
| | | * 网格员上班结束时间 |
| | | */ |
| | | @ApiModelProperty(value = "网格员上班结束时间") |
| | | private Integer workEndTime; |
| | | |
| | | /** |
| | | * 高龄认证显示提示(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "高龄认证显示提示(1.是 2.否)") |
| | | private Integer bigAgeTips; |
| | | |
| | | /** |
| | | * 明文密码 |
| | | */ |
| | | @ApiModelProperty(value = "明文密码") |
| | | private String plaintextPassword; |
| | | |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 编辑电动车商城-商家活动表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 编辑电动车商城-商家活动表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 13:17:41 |
| | | */ |
| | | @Data |
| | | @ApiModel("编辑电动车商城-商家活动表请求参数") |
| | | public class EditComBatteryCommodityActivityDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 活动名称 |
| | | */ |
| | | @ApiModelProperty(value = "活动名称") |
| | | private String name; |
| | | /** |
| | | * 活动类型(1.拼团活动 2.砍价活动 3.限时秒杀) |
| | | */ |
| | | @ApiModelProperty(value = "活动类型(1.拼团活动 2.砍价活动 3.限时秒杀)") |
| | | private Integer type; |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @ApiModelProperty(value = "商品id") |
| | | private Long commodityId; |
| | | /** |
| | | * 商家id |
| | | */ |
| | | @ApiModelProperty(value = "商家id") |
| | | private Long storeId; |
| | | /** |
| | | * 状态(1.进行中 2.已下架 3.已结束) |
| | | */ |
| | | @ApiModelProperty(value = "状态(1.进行中 2.已下架 3.已结束)") |
| | | private Integer status; |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | /** |
| | | * 活动价格 |
| | | */ |
| | | @ApiModelProperty(value = "活动价格") |
| | | private BigDecimal price; |
| | | /** |
| | | * 活动截止时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "活动截止时间") |
| | | private Date endTime; |
| | | /** |
| | | * 拼团总团数 |
| | | */ |
| | | @ApiModelProperty(value = "拼团总团数") |
| | | private Integer collageNum; |
| | | /** |
| | | * 拼团人数 |
| | | */ |
| | | @ApiModelProperty(value = "拼团人数") |
| | | private Integer collagePeopleNum; |
| | | /** |
| | | * 活动图片 |
| | | */ |
| | | @ApiModelProperty(value = "活动图片") |
| | | private String images; |
| | | /** |
| | | * 活动商品总数 |
| | | */ |
| | | @ApiModelProperty(value = "活动商品总数") |
| | | private Integer commodityNum; |
| | | /** |
| | | * 活动规则 |
| | | */ |
| | | @ApiModelProperty(value = "活动规则") |
| | | private String rule; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | /** |
| | | * 更新时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "更新时间") |
| | | private Date updateAt; |
| | | /** |
| | | * 更新人id |
| | | */ |
| | | @ApiModelProperty(value = "更新人id") |
| | | private Long updateBy; |
| | | |
| | | /** |
| | | * 商品规格id |
| | | */ |
| | | @ApiModelProperty(value = "商品规格id") |
| | | private Long specsId; |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 编辑电动车商城-商品表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 编辑电动车商城-商品表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-28 14:59:59 |
| | | */ |
| | | @Data |
| | | @ApiModel("编辑电动车商城-商品表请求参数") |
| | | public class EditComBatteryCommodityDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 商品名称 |
| | | */ |
| | | @ApiModelProperty(value = "商品名称") |
| | | private String name; |
| | | /** |
| | | * 商品编号 |
| | | */ |
| | | @ApiModelProperty(value = "商品编号") |
| | | private String code; |
| | | /** |
| | | * 商品价格 |
| | | */ |
| | | @ApiModelProperty(value = "商品价格") |
| | | private BigDecimal price; |
| | | /** |
| | | * 商家id |
| | | */ |
| | | @ApiModelProperty(value = "商家id") |
| | | private Long storeId; |
| | | /** |
| | | * 状态(1.上架 2.下架) |
| | | */ |
| | | @ApiModelProperty(value = "状态(1.上架 2.下架)") |
| | | private Integer status; |
| | | /** |
| | | * 商品分类id |
| | | */ |
| | | @ApiModelProperty(value = "商品分类id") |
| | | private Long classId; |
| | | /** |
| | | * 商品简介 |
| | | */ |
| | | @ApiModelProperty(value = "商品简介") |
| | | private String introduce; |
| | | /** |
| | | * 邮费 |
| | | */ |
| | | @ApiModelProperty(value = "邮费") |
| | | private BigDecimal postage; |
| | | /** |
| | | * 商品图片 |
| | | */ |
| | | @ApiModelProperty(value = "商品图片") |
| | | private String images; |
| | | /** |
| | | * 商品详情 |
| | | */ |
| | | @ApiModelProperty(value = "商品详情") |
| | | private String detail; |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | /** |
| | | * 更新时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "更新时间") |
| | | private Date updateAt; |
| | | /** |
| | | * 更新人id |
| | | */ |
| | | @ApiModelProperty(value = "更新人id") |
| | | private Long updateBy; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 编辑电动车商城-砍价订单记录表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 编辑电动车商城-砍价订单记录表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 16:06:37 |
| | | */ |
| | | @Data |
| | | @ApiModel("编辑电动车商城-砍价订单记录表请求参数") |
| | | public class EditComBatteryCommodityOrderBargainDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @ApiModelProperty(value = "商品id") |
| | | private Long commodityId; |
| | | /** |
| | | * 活动id |
| | | */ |
| | | @ApiModelProperty(value = "活动id") |
| | | private Long activityId; |
| | | /** |
| | | * 订单id |
| | | */ |
| | | @ApiModelProperty(value = "订单id") |
| | | private Long orderId; |
| | | /** |
| | | * 订单号 |
| | | */ |
| | | @ApiModelProperty(value = "订单号") |
| | | private String orderNo; |
| | | /** |
| | | * 商品原价 |
| | | */ |
| | | @ApiModelProperty(value = "商品原价") |
| | | private BigDecimal originalPrice; |
| | | /** |
| | | * 目标价格 |
| | | */ |
| | | @ApiModelProperty(value = "目标价格") |
| | | private BigDecimal targetPrice; |
| | | /** |
| | | * 当前价格 |
| | | */ |
| | | @ApiModelProperty(value = "当前价格") |
| | | private BigDecimal currentPrice; |
| | | /** |
| | | * 当前已砍价次数 |
| | | */ |
| | | @ApiModelProperty(value = "当前已砍价次数") |
| | | private Integer count; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 编辑电动车商城-订单砍价记录表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 编辑电动车商城-订单砍价记录表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 16:06:48 |
| | | */ |
| | | @Data |
| | | @ApiModel("编辑电动车商城-订单砍价记录表请求参数") |
| | | public class EditComBatteryCommodityOrderBargainRecordDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 砍价记录id |
| | | */ |
| | | @ApiModelProperty(value = "砍价记录id") |
| | | private Long bargainId; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | /** |
| | | * 砍价金额 |
| | | */ |
| | | @ApiModelProperty(value = "砍价金额") |
| | | private BigDecimal amount; |
| | | /** |
| | | * 原砍价用户id |
| | | */ |
| | | @ApiModelProperty(value = "原砍价用户id") |
| | | private Long oldUserId; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 编辑电动车商城-拼团订单团队表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 编辑电动车商城-拼团订单团队表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 16:06:59 |
| | | */ |
| | | @Data |
| | | @ApiModel("编辑电动车商城-拼团订单团队表请求参数") |
| | | public class EditComBatteryCommodityOrderCollageTeamDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 活动id |
| | | */ |
| | | @ApiModelProperty(value = "活动id") |
| | | private Long activityId; |
| | | /** |
| | | * 订单id |
| | | */ |
| | | @ApiModelProperty(value = "订单id") |
| | | private Long orderId; |
| | | /** |
| | | * 订单号 |
| | | */ |
| | | @ApiModelProperty(value = "订单号") |
| | | private String orderNo; |
| | | /** |
| | | * 开团用户id |
| | | */ |
| | | @ApiModelProperty(value = "开团用户id") |
| | | private Long userId; |
| | | /** |
| | | * 状态(1.等待拼团 2.拼团成功 3.拼团失败 4.已退款) |
| | | */ |
| | | @ApiModelProperty(value = "状态(1.等待拼团 2.拼团成功 3.拼团失败 4.已退款)") |
| | | private Integer status; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 编辑电动车商城-拼团活动团队人员表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 编辑电动车商城-拼团活动团队人员表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 16:07:11 |
| | | */ |
| | | @Data |
| | | @ApiModel("编辑电动车商城-拼团活动团队人员表请求参数") |
| | | public class EditComBatteryCommodityOrderCollageTeamPeopleDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 拼团团队id |
| | | */ |
| | | @ApiModelProperty(value = "拼团团队id") |
| | | private Long teamId; |
| | | /** |
| | | * 团长id |
| | | */ |
| | | @ApiModelProperty(value = "团长id") |
| | | private Long headUserId; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | /** |
| | | * 参团类型(1.开团 2.参与拼团) |
| | | */ |
| | | @ApiModelProperty(value = "参团类型(1.开团 2.参与拼团)") |
| | | private Integer type; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 编辑电动车商城-订单表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 编辑电动车商城-订单表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 13:18:46 |
| | | */ |
| | | @Data |
| | | @ApiModel("编辑电动车商城-订单表请求参数") |
| | | public class EditComBatteryCommodityOrderDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | /** |
| | | * 商家id |
| | | */ |
| | | @ApiModelProperty(value = "商家id") |
| | | private Long storeId; |
| | | /** |
| | | * 收货地址id |
| | | */ |
| | | @ApiModelProperty(value = "收货地址id") |
| | | private Long addressId; |
| | | /** |
| | | * 活动id |
| | | */ |
| | | @ApiModelProperty(value = "活动id") |
| | | private Long activityId; |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @ApiModelProperty(value = "商品id") |
| | | private Long commodityId; |
| | | /** |
| | | * 商品规格id |
| | | */ |
| | | @ApiModelProperty(value = "商品规格id") |
| | | private Long specsId; |
| | | /** |
| | | * 订单号 |
| | | */ |
| | | @ApiModelProperty(value = "订单号") |
| | | private String orderNo; |
| | | /** |
| | | * 活动状态(1.拼团活动 2.砍价活动 3.限时秒杀) |
| | | */ |
| | | @ApiModelProperty(value = "活动状态(1.拼团活动 2.砍价活动 3.限时秒杀)") |
| | | private Integer activityType; |
| | | /** |
| | | * 订单状态(1.待付款 2.待发货 3.待收货 4.已完成 5.待拼团 6.待砍价 7.已退款 8.已关闭) |
| | | */ |
| | | @ApiModelProperty(value = "订单状态(1.待付款 2.待发货 3.待收货 4.已完成 5.待拼团 6.待砍价 7.已退款 8.已关闭)") |
| | | private Integer status; |
| | | /** |
| | | * 拼团状态(1.拼团中 2.拼团成功 3.拼团失败) |
| | | */ |
| | | @ApiModelProperty(value = "拼团状态(1.拼团中 2.拼团成功 3.拼团失败)") |
| | | private Integer collageStatus; |
| | | /** |
| | | * 砍价状态(1.砍价中 2.砍价成功 3.砍价失败) |
| | | */ |
| | | @ApiModelProperty(value = "砍价状态(1.砍价中 2.砍价成功 3.砍价失败)") |
| | | private Integer bargainStatus; |
| | | /** |
| | | * 支付状态(1.未支付 2.已支付) |
| | | */ |
| | | @ApiModelProperty(value = "支付状态(1.未支付 2.已支付)") |
| | | private Integer payStatus; |
| | | /** |
| | | * 是否已删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否已删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | /** |
| | | * 支付方式(1.微信支付) |
| | | */ |
| | | @ApiModelProperty(value = "支付方式(1.微信支付)") |
| | | private Integer payType; |
| | | /** |
| | | * 购买商品数量 |
| | | */ |
| | | @ApiModelProperty(value = "购买商品数量") |
| | | private Integer count; |
| | | /** |
| | | * 商品单价 |
| | | */ |
| | | @ApiModelProperty(value = "商品单价") |
| | | private BigDecimal price; |
| | | /** |
| | | * 订单金额 |
| | | */ |
| | | @ApiModelProperty(value = "订单金额") |
| | | private BigDecimal amount; |
| | | /** |
| | | * 运费 |
| | | */ |
| | | @ApiModelProperty(value = "运费") |
| | | private BigDecimal freight; |
| | | /** |
| | | * 物流单号 |
| | | */ |
| | | @ApiModelProperty(value = "物流单号") |
| | | private String logisticsNo; |
| | | /** |
| | | * 物流公司 |
| | | */ |
| | | @ApiModelProperty(value = "物流公司") |
| | | private String logisticsCompany; |
| | | /** |
| | | * 订单最终金额 |
| | | */ |
| | | @ApiModelProperty(value = "订单最终金额") |
| | | private BigDecimal finalAmount; |
| | | /** |
| | | * 支付单号 |
| | | */ |
| | | @ApiModelProperty(value = "支付单号") |
| | | private String payNo; |
| | | /** |
| | | * 支付总金额 |
| | | */ |
| | | @ApiModelProperty(value = "支付总金额") |
| | | private BigDecimal payAmount; |
| | | /** |
| | | * 订单备注 |
| | | */ |
| | | @ApiModelProperty(value = "订单备注") |
| | | private String remark; |
| | | /** |
| | | * 发货时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "发货时间") |
| | | private Date deliveryTime; |
| | | /** |
| | | * 收货时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "收货时间") |
| | | private Date receivingTime; |
| | | /** |
| | | * 下单时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "下单时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | /** |
| | | * 修改人id |
| | | */ |
| | | @ApiModelProperty(value = "修改人id") |
| | | private Long updateBy; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 编辑电动车商城-商品规格表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 编辑电动车商城-商品规格表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-28 15:16:22 |
| | | */ |
| | | @Data |
| | | @ApiModel("编辑电动车商城-商品规格表请求参数") |
| | | public class EditComBatteryCommoditySpecsDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 商家id |
| | | */ |
| | | @ApiModelProperty(value = "商家id") |
| | | private Long storeId; |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @ApiModelProperty(value = "商品id") |
| | | private Long commodityId; |
| | | /** |
| | | * 规格名称 |
| | | */ |
| | | @ApiModelProperty(value = "规格名称") |
| | | private String name; |
| | | /** |
| | | * 规格库存数量 |
| | | */ |
| | | @ApiModelProperty(value = "规格库存数量") |
| | | private Integer stock; |
| | | /** |
| | | * 规格价格 |
| | | */ |
| | | @ApiModelProperty(value = "规格价格") |
| | | private BigDecimal price; |
| | | /** |
| | | * 规格图片 |
| | | */ |
| | | @ApiModelProperty(value = "规格图片") |
| | | private String images; |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | /** |
| | | * 更新时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "更新时间") |
| | | private Date updateAt; |
| | | /** |
| | | * 更新人id |
| | | */ |
| | | @ApiModelProperty(value = "更新人id") |
| | | private Long updateBy; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 编辑电动车商城-商家分类表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 编辑电动车商城-商家分类表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 11:01:57 |
| | | */ |
| | | @Data |
| | | @ApiModel("编辑电动车商城-商家分类表请求参数") |
| | | public class EditComBatteryStoreClassDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 分类名称 |
| | | */ |
| | | @ApiModelProperty(value = "分类名称") |
| | | private String name; |
| | | /** |
| | | * 商家id |
| | | */ |
| | | @ApiModelProperty(value = "商家id") |
| | | private Long storeId; |
| | | /** |
| | | * 状态(1.启用 2.禁用) |
| | | */ |
| | | @ApiModelProperty(value = "状态(1.启用 2.禁用)") |
| | | private Integer status; |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | /** |
| | | * 更新时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "更新时间") |
| | | private Date updateAt; |
| | | /** |
| | | * 更新人id |
| | | */ |
| | | @ApiModelProperty(value = "更新人id") |
| | | private Long updateBy; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 编辑电动车商城-商家表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 编辑电动车商城-商家表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-28 13:44:59 |
| | | */ |
| | | @Data |
| | | @ApiModel("编辑电动车商城-商家表请求参数") |
| | | public class EditComBatteryStoreDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 商家名称 |
| | | */ |
| | | @ApiModelProperty(value = "商家名称") |
| | | private String name; |
| | | /** |
| | | * 注册手机 |
| | | */ |
| | | @ApiModelProperty(value = "注册手机") |
| | | private String regPhone; |
| | | /** |
| | | * 联系电话 |
| | | */ |
| | | @ApiModelProperty(value = "联系电话") |
| | | private String phone; |
| | | /** |
| | | * 商家账号 |
| | | */ |
| | | @ApiModelProperty(value = "商家账号") |
| | | private String account; |
| | | /** |
| | | * 状态(1.启用 2.禁用) |
| | | */ |
| | | @ApiModelProperty(value = "状态(1.启用 2.禁用)") |
| | | private Integer status; |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | /** |
| | | * 商家logo |
| | | */ |
| | | @ApiModelProperty(value = "商家logo") |
| | | private String logo; |
| | | /** |
| | | * 商家简介 |
| | | */ |
| | | @ApiModelProperty(value = "商家简介") |
| | | private String introduction; |
| | | /** |
| | | * 商家地址 |
| | | */ |
| | | @ApiModelProperty(value = "商家地址") |
| | | private String address; |
| | | /** |
| | | * 详细地址 |
| | | */ |
| | | @ApiModelProperty(value = "详细地址") |
| | | private String detailAddress; |
| | | /** |
| | | * 经度 |
| | | */ |
| | | @ApiModelProperty(value = "经度") |
| | | private String longitude; |
| | | /** |
| | | * 纬度 |
| | | */ |
| | | @ApiModelProperty(value = "纬度") |
| | | private String latitude; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | /** |
| | | * 更新时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "更新时间") |
| | | private Date updateAt; |
| | | /** |
| | | * 更新人id |
| | | */ |
| | | @ApiModelProperty(value = "更新人id") |
| | | private Long updateBy; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 编辑电动车商城-微信交易流水表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 编辑电动车商城-微信交易流水表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-01 13:18:51 |
| | | */ |
| | | @Data |
| | | @ApiModel("编辑电动车商城-微信交易流水表请求参数") |
| | | public class EditComBatteryTradeOrderDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | /** |
| | | * 用户openid |
| | | */ |
| | | @ApiModelProperty(value = "用户openid") |
| | | private String openId; |
| | | /** |
| | | * 订单号 |
| | | */ |
| | | @ApiModelProperty(value = "订单号") |
| | | private String orderNo; |
| | | /** |
| | | * 订单状态(1.待支付 2.已支付 3.申请退款 4.已退款 5.已关闭) |
| | | */ |
| | | @ApiModelProperty(value = "订单状态(1.待支付 2.已支付 3.申请退款 4.已退款 5.已关闭)") |
| | | private Integer status; |
| | | /** |
| | | * 支付类型(1.微信 ) |
| | | */ |
| | | @ApiModelProperty(value = "支付类型(1.微信 )") |
| | | private Integer payType; |
| | | /** |
| | | * 订单支付状态(1.待支付 2.已支付) |
| | | */ |
| | | @ApiModelProperty(value = "订单支付状态(1.待支付 2.已支付)") |
| | | private Integer payStatus; |
| | | /** |
| | | * 订单金额 |
| | | */ |
| | | @ApiModelProperty(value = "订单金额") |
| | | private BigDecimal orderAmount; |
| | | /** |
| | | * 实际支付金额 |
| | | */ |
| | | @ApiModelProperty(value = "实际支付金额") |
| | | private BigDecimal payAmount; |
| | | /** |
| | | * 支付单号 |
| | | */ |
| | | @ApiModelProperty(value = "支付单号") |
| | | private String payNo; |
| | | /** |
| | | * 支付时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "支付时间") |
| | | private Date payTime; |
| | | /** |
| | | * 交易类型(1.电动车商城购买商品) |
| | | */ |
| | | @ApiModelProperty(value = "交易类型(1.电动车商城购买商品)") |
| | | private Integer tradeType; |
| | | /** |
| | | * 交易业务订单id |
| | | */ |
| | | @ApiModelProperty(value = "交易业务订单id") |
| | | private Long tradeOrderId; |
| | | /** |
| | | * 交易业务订单号 |
| | | */ |
| | | @ApiModelProperty(value = "交易业务订单号") |
| | | private String tradeOrderNo; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人 |
| | | */ |
| | | @ApiModelProperty(value = "创建人") |
| | | private Long createBy; |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 编辑电动车商城-用户收货地址表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 编辑电动车商城-用户收货地址表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 13:18:21 |
| | | */ |
| | | @Data |
| | | @ApiModel("编辑电动车商城-用户收货地址表请求参数") |
| | | public class EditComBatteryUserAddressDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | /** |
| | | * 姓名 |
| | | */ |
| | | @ApiModelProperty(value = "姓名") |
| | | private String name; |
| | | /** |
| | | * 手机号 |
| | | */ |
| | | @ApiModelProperty(value = "手机号") |
| | | private String phone; |
| | | /** |
| | | * 详细地址 |
| | | */ |
| | | @ApiModelProperty(value = "详细地址") |
| | | private String address; |
| | | /** |
| | | * 是否是默认地址(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否是默认地址(1.是 2.否)") |
| | | private Integer isDefault; |
| | | /** |
| | | * 省份行政区划代码 |
| | | */ |
| | | @ApiModelProperty(value = "省份行政区划代码") |
| | | private String provinceAdcode; |
| | | /** |
| | | * 省份名称 |
| | | */ |
| | | @ApiModelProperty(value = "省份名称") |
| | | private String provinceName; |
| | | /** |
| | | * 城市行政区划代码 |
| | | */ |
| | | @ApiModelProperty(value = "城市行政区划代码") |
| | | private String cityAdcode; |
| | | /** |
| | | * 城市名称 |
| | | */ |
| | | @ApiModelProperty(value = "城市名称") |
| | | private String cityName; |
| | | /** |
| | | * 区县行政区划代码 |
| | | */ |
| | | @ApiModelProperty(value = "区县行政区划代码") |
| | | private String districtAdcode; |
| | | /** |
| | | * 区县名称 |
| | | */ |
| | | @ApiModelProperty(value = "区县名称") |
| | | private String districtName; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | /** |
| | | * 修改人id |
| | | */ |
| | | @ApiModelProperty(value = "修改人id") |
| | | private Long updateBy; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 编辑换新车-品牌表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 编辑换新车-品牌表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-07 13:37:25 |
| | | */ |
| | | @Data |
| | | @ApiModel("编辑换新车-品牌表请求参数") |
| | | public class EditComChangeCarBrandDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 品牌编号 |
| | | */ |
| | | @ApiModelProperty(value = "品牌编号") |
| | | private String code; |
| | | /** |
| | | * 品牌名称 |
| | | */ |
| | | @ApiModelProperty(value = "品牌名称") |
| | | private String name; |
| | | /** |
| | | * 状态(1.启用 2.禁用) |
| | | */ |
| | | @ApiModelProperty(value = "状态(1.启用 2.禁用)") |
| | | private Integer status; |
| | | /** |
| | | * 品牌logo |
| | | */ |
| | | @ApiModelProperty(value = "品牌logo") |
| | | private String logo; |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | /** |
| | | * 修改人id |
| | | */ |
| | | @ApiModelProperty(value = "修改人id") |
| | | private Long updateBy; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 编辑换新车-分期询价表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 编辑换新车-分期询价表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-07 13:39:07 |
| | | */ |
| | | @Data |
| | | @ApiModel("编辑换新车-分期询价表请求参数") |
| | | public class EditComChangeCarInquiryDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | /** |
| | | * 用户称呼 |
| | | */ |
| | | @ApiModelProperty(value = "用户称呼") |
| | | private String name; |
| | | /** |
| | | * 用户手机号 |
| | | */ |
| | | @ApiModelProperty(value = "用户手机号") |
| | | private String phone; |
| | | /** |
| | | * 类型(1.分期 2.询价) |
| | | */ |
| | | @ApiModelProperty(value = "类型(1.分期 2.询价)") |
| | | private Integer type; |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 编辑换新车-车型管理表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 编辑换新车-车型管理表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-07 13:41:56 |
| | | */ |
| | | @Data |
| | | @ApiModel("编辑换新车-车型管理表请求参数") |
| | | public class EditComChangeCarModelDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 车型名称 |
| | | */ |
| | | @ApiModelProperty(value = "车型名称") |
| | | private String name; |
| | | /** |
| | | * 图片url,多张以,隔开 |
| | | */ |
| | | @ApiModelProperty(value = "图片url,多张以,隔开") |
| | | private String images; |
| | | /** |
| | | * 最低价格 |
| | | */ |
| | | @ApiModelProperty(value = "最低价格") |
| | | private BigDecimal minPrice; |
| | | /** |
| | | * 品牌id |
| | | */ |
| | | @ApiModelProperty(value = "品牌id") |
| | | private Long brandId; |
| | | /** |
| | | * 车辆详情 |
| | | */ |
| | | @ApiModelProperty(value = "车辆详情") |
| | | private String detail; |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | /** |
| | | * 状态(1.上架 2.下架) |
| | | */ |
| | | @ApiModelProperty(value = "状态(1.上架 2.下架)") |
| | | private Integer status; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | /** |
| | | * 修改人id |
| | | */ |
| | | @ApiModelProperty(value = "修改人id") |
| | | private Long updateBy; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 编辑换新车-车型与规格关联表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 编辑换新车-车型与规格关联表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:30 |
| | | */ |
| | | @Data |
| | | @ApiModel("编辑换新车-车型与规格关联表请求参数") |
| | | public class EditComChangeCarModelRelationDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 车型id |
| | | */ |
| | | @ApiModelProperty(value = "车型id") |
| | | private Long modelId; |
| | | /** |
| | | * 车型规格id |
| | | */ |
| | | @ApiModelProperty(value = "车型规格id") |
| | | private Long modelSpecsId; |
| | | /** |
| | | * 车型子规格id |
| | | */ |
| | | @ApiModelProperty(value = "车型子规格id") |
| | | private Long modelSpecsChildrenId; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 编辑换新车-车型子规格表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 编辑换新车-车型子规格表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:35 |
| | | */ |
| | | @Data |
| | | @ApiModel("编辑换新车-车型子规格表请求参数") |
| | | public class EditComChangeCarModelSpecsChildrenDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 主规格id |
| | | */ |
| | | @ApiModelProperty(value = "主规格id") |
| | | private Long specsId; |
| | | /** |
| | | * 子规格名称 |
| | | */ |
| | | @ApiModelProperty(value = "子规格名称") |
| | | private String name; |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 编辑换新车-车型规格表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 编辑换新车-车型规格表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:32 |
| | | */ |
| | | @Data |
| | | @ApiModel("编辑换新车-车型规格表请求参数") |
| | | public class EditComChangeCarModelSpecsDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 规格编号 |
| | | */ |
| | | @ApiModelProperty(value = "规格编号") |
| | | private String code; |
| | | /** |
| | | * 规格名称 |
| | | */ |
| | | @ApiModelProperty(value = "规格名称") |
| | | private String name; |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | /** |
| | | * 修改人id |
| | | */ |
| | | @ApiModelProperty(value = "修改人id") |
| | | private Long updateBy; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 修改订单收货地址请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 修改订单收货地址请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 13:18:45 |
| | | */ |
| | | @Data |
| | | @ApiModel("修改订单收货地址请求参数") |
| | | public class EditOrderAddressDto { |
| | | |
| | | @ApiModelProperty(value = "订单id") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty(value = "收件人姓名") |
| | | private String receivingName; |
| | | |
| | | @ApiModelProperty(value = "收件人联系方式") |
| | | private String receivingPhone; |
| | | |
| | | @ApiModelProperty(value = "收货地区") |
| | | private String receivingRegion; |
| | | |
| | | @ApiModelProperty(value = "收货地区Code") |
| | | private String receivingRegionCode; |
| | | |
| | | @ApiModelProperty(value = "收货详细地址") |
| | | private String receivingAddress; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 修改订单物流信息请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 修改订单物流信息请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 13:18:45 |
| | | */ |
| | | @Data |
| | | @ApiModel("修改订单物流信息请求参数") |
| | | public class EditOrderLogisticsDto { |
| | | |
| | | @ApiModelProperty(value = "订单id") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty(value = "物流单号") |
| | | private String logisticsNo; |
| | | |
| | | @ApiModelProperty(value = "物流公司") |
| | | private String logisticsCompany; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 编辑用户表 后台用户+小程序用户请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 编辑用户表 后台用户+小程序用户请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-28 14:28:10 |
| | | */ |
| | | @Data |
| | | @ApiModel("编辑用户表 后台用户+小程序用户请求参数") |
| | | public class EditSysUserDto { |
| | | |
| | | /** |
| | | * 主键 |
| | | */ |
| | | @ApiModelProperty(value = "主键") |
| | | private Long userId; |
| | | /** |
| | | * 登录账户 |
| | | */ |
| | | @ApiModelProperty(value = "登录账户") |
| | | private String account; |
| | | /** |
| | | * 登录密码 |
| | | */ |
| | | @ApiModelProperty(value = "登录密码") |
| | | private String password; |
| | | /** |
| | | * 微信小程序唯一标识 |
| | | */ |
| | | @ApiModelProperty(value = "微信小程序唯一标识") |
| | | private String openid; |
| | | /** |
| | | * 会话密钥 |
| | | */ |
| | | @ApiModelProperty(value = "会话密钥") |
| | | private String sessionKey; |
| | | /** |
| | | * 用户在开放平台的唯一标识符 |
| | | */ |
| | | @ApiModelProperty(value = "用户在开放平台的唯一标识符") |
| | | private String unionid; |
| | | /** |
| | | * 手机号 |
| | | */ |
| | | @ApiModelProperty(value = "手机号") |
| | | private String phone; |
| | | /** |
| | | * 昵称 |
| | | */ |
| | | @ApiModelProperty(value = "昵称") |
| | | private String nickName; |
| | | /** |
| | | * 真实名字 |
| | | */ |
| | | @ApiModelProperty(value = "真实名字") |
| | | private String name; |
| | | /** |
| | | * 社区ID |
| | | */ |
| | | @ApiModelProperty(value = "社区ID") |
| | | private Long communityId; |
| | | /** |
| | | * 性别 1 男 2 女 |
| | | */ |
| | | @ApiModelProperty(value = "性别 1 男 2 女") |
| | | private Integer sex; |
| | | /** |
| | | * 身份证号 |
| | | */ |
| | | @ApiModelProperty(value = "身份证号") |
| | | private String idCard; |
| | | /** |
| | | * 生日 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "生日") |
| | | private Date birthday; |
| | | /** |
| | | * 头像 |
| | | */ |
| | | @ApiModelProperty(value = "头像") |
| | | private String imageUrl; |
| | | /** |
| | | * 用户类型 1 小程序 2 运营平台 3 社区平台 5 商家后台 6 网格综治APP 7 网格综治后台 8大屏 9城管后台 10一键报警app |
| | | */ |
| | | @ApiModelProperty(value = "用户类型 1 小程序 2 运营平台 3 社区平台 5 商家后台 6 网格综治APP 7 网格综治后台 8大屏 9城管后台 10一键报警app") |
| | | private Integer type; |
| | | /** |
| | | * 职业 |
| | | */ |
| | | @ApiModelProperty(value = "职业") |
| | | private String job; |
| | | /** |
| | | * 是否志愿者 0 否 1 是 |
| | | */ |
| | | @ApiModelProperty(value = "是否志愿者 0 否 1 是") |
| | | private Integer isVolunteer; |
| | | /** |
| | | * 是否党员 0 否 1 是 |
| | | */ |
| | | @ApiModelProperty(value = "是否党员 0 否 1 是") |
| | | private Integer isPartymember; |
| | | /** |
| | | * 1 启用 2 禁用 |
| | | */ |
| | | @ApiModelProperty(value = "1 启用 2 禁用") |
| | | private Integer status; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 最后登录时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "最后登录时间") |
| | | private Date lastLoginTime; |
| | | /** |
| | | * 标签多个用,隔开 |
| | | */ |
| | | @ApiModelProperty(value = "标签多个用,隔开") |
| | | private String tags; |
| | | /** |
| | | * 家庭id |
| | | */ |
| | | @ApiModelProperty(value = "家庭id") |
| | | private Long familyId; |
| | | /** |
| | | * 人脸采集照片url |
| | | */ |
| | | @ApiModelProperty(value = "人脸采集照片url") |
| | | private String faceUrl; |
| | | /** |
| | | * 人脸采集审核状态 0 待审核 1 审核通过 2驳回 |
| | | */ |
| | | @ApiModelProperty(value = "人脸采集审核状态 0 待审核 1 审核通过 2驳回") |
| | | private Integer faceState; |
| | | /** |
| | | * 驳回原因 |
| | | */ |
| | | @ApiModelProperty(value = "驳回原因") |
| | | private String rejectReson; |
| | | /** |
| | | * 小区id |
| | | */ |
| | | @ApiModelProperty(value = "小区id") |
| | | private Long areaId; |
| | | /** |
| | | * 证件照(人相面)照片 |
| | | */ |
| | | @ApiModelProperty(value = "证件照(人相面)照片") |
| | | private String cardPhotoFront; |
| | | /** |
| | | * 证件照(国徽面)照片 |
| | | */ |
| | | @ApiModelProperty(value = "证件照(国徽面)照片") |
| | | private String cardPhotoBack; |
| | | /** |
| | | * 户口本 |
| | | */ |
| | | @ApiModelProperty(value = "户口本") |
| | | private String familyBook; |
| | | /** |
| | | * 连续登陆天数 每天凌晨定时任务更新 |
| | | */ |
| | | @ApiModelProperty(value = "连续登陆天数 每天凌晨定时任务更新") |
| | | private Integer continuousLandingDays; |
| | | /** |
| | | * 小程序首页是否显示公告(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "小程序首页是否显示公告(1.是 2.否)") |
| | | private Integer isTips; |
| | | /** |
| | | * 网格员工作状态(1.在岗 2.脱岗 3.已下班) |
| | | */ |
| | | @ApiModelProperty(value = "网格员工作状态(1.在岗 2.脱岗 3.已下班)") |
| | | private Integer workStatus; |
| | | /** |
| | | * 网格员上班开始时间 |
| | | */ |
| | | @ApiModelProperty(value = "网格员上班开始时间") |
| | | private Integer workStartTime; |
| | | /** |
| | | * 网格员上班结束时间 |
| | | */ |
| | | @ApiModelProperty(value = "网格员上班结束时间") |
| | | private Integer workEndTime; |
| | | /** |
| | | * 高龄认证显示提示(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "高龄认证显示提示(1.是 2.否)") |
| | | private Integer bigAgeTips; |
| | | /** |
| | | * 明文密码 |
| | | */ |
| | | @ApiModelProperty(value = "明文密码") |
| | | private String plaintextPassword; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author lyq |
| | | * 后台订单发货请求参数 |
| | | */ |
| | | @Data |
| | | @ApiModel("后台订单发货请求参数") |
| | | public class OrderDeliverAdminDto { |
| | | |
| | | @ApiModelProperty(value = "订单id") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty(value = "操作用户id",hidden = true) |
| | | private Long userId; |
| | | |
| | | @ApiModelProperty(value = "物流公司") |
| | | private String logisticsCompany; |
| | | |
| | | @ApiModelProperty(value = "物流单号") |
| | | private String logisticsNo; |
| | | |
| | | @ApiModelProperty(value = "操作类型(1.发货 2.修改物流信息)") |
| | | private Integer type; |
| | | |
| | | /** |
| | | * 操作类型(1.发货 2.修改物流信息) |
| | | */ |
| | | public interface Type{ |
| | | int FH = 1; |
| | | int XGWL = 2; |
| | | } |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 分页查询电动车商城-商家活动表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 分页查询电动车商城-商家活动表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 13:17:40 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询电动车商城-商家活动表请求参数") |
| | | public class PageComBatteryCommodityActivityDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 活动名称 |
| | | */ |
| | | @ApiModelProperty(value = "活动名称") |
| | | private String name; |
| | | /** |
| | | * 活动类型(1.拼团活动 2.砍价活动 3.限时秒杀) |
| | | */ |
| | | @ApiModelProperty(value = "活动类型(1.拼团活动 2.砍价活动 3.限时秒杀)") |
| | | private Integer type; |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @ApiModelProperty(value = "商品id") |
| | | private Long commodityId; |
| | | /** |
| | | * 商家id |
| | | */ |
| | | @ApiModelProperty(value = "商家id") |
| | | private Long storeId; |
| | | /** |
| | | * 状态(1.进行中 2.已下架 3.已结束) |
| | | */ |
| | | @ApiModelProperty(value = "状态(1.进行中 2.已下架 3.已结束)") |
| | | private Integer status; |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | /** |
| | | * 活动价格 |
| | | */ |
| | | @ApiModelProperty(value = "活动价格") |
| | | private BigDecimal price; |
| | | /** |
| | | * 活动截止时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "活动截止时间") |
| | | private Date endTime; |
| | | /** |
| | | * 拼团总团数 |
| | | */ |
| | | @ApiModelProperty(value = "拼团总团数") |
| | | private Integer collageNum; |
| | | /** |
| | | * 拼团人数 |
| | | */ |
| | | @ApiModelProperty(value = "拼团人数") |
| | | private Integer collagePeopleNum; |
| | | /** |
| | | * 活动图片 |
| | | */ |
| | | @ApiModelProperty(value = "活动图片") |
| | | private String images; |
| | | /** |
| | | * 活动商品总数 |
| | | */ |
| | | @ApiModelProperty(value = "活动商品总数") |
| | | private Integer commodityNum; |
| | | /** |
| | | * 活动规则 |
| | | */ |
| | | @ApiModelProperty(value = "活动规则") |
| | | private String rule; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | /** |
| | | * 更新时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "更新时间") |
| | | private Date updateAt; |
| | | /** |
| | | * 更新人id |
| | | */ |
| | | @ApiModelProperty(value = "更新人id") |
| | | private Long updateBy; |
| | | |
| | | @ApiModelProperty(value = "分页每页数量", example = "10") |
| | | private Long pageSize = 10L; |
| | | |
| | | @ApiModelProperty(value = "分页当前记录数", example = "1") |
| | | private Long pageNum = 1L; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | @ApiModelProperty(value = "用户id",hidden = true) |
| | | private Long userId; |
| | | |
| | | @ApiModelProperty(value = "是否是查询自己参与的活动(1.是 2.否)") |
| | | private Integer isUser = 2; |
| | | |
| | | @ApiModelProperty(value = "是否是小程序(1.是 2.否)") |
| | | private Integer isApplets; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 分页查询电动车商城-商品表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 分页查询电动车商城-商品表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-28 14:59:59 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询电动车商城-商品表请求参数") |
| | | public class PageComBatteryCommodityDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 商品名称 |
| | | */ |
| | | @ApiModelProperty(value = "商品名称") |
| | | private String name; |
| | | /** |
| | | * 商品编号 |
| | | */ |
| | | @ApiModelProperty(value = "商品编号") |
| | | private String code; |
| | | /** |
| | | * 商品价格 |
| | | */ |
| | | @ApiModelProperty(value = "商品价格") |
| | | private BigDecimal price; |
| | | /** |
| | | * 商家id |
| | | */ |
| | | @ApiModelProperty(value = "商家id") |
| | | private Long storeId; |
| | | /** |
| | | * 状态(1.上架 2.下架) |
| | | */ |
| | | @ApiModelProperty(value = "状态(1.上架 2.下架)") |
| | | private Integer status; |
| | | /** |
| | | * 商品分类id |
| | | */ |
| | | @ApiModelProperty(value = "商品分类id") |
| | | private Long classId; |
| | | /** |
| | | * 商品简介 |
| | | */ |
| | | @ApiModelProperty(value = "商品简介") |
| | | private String introduce; |
| | | /** |
| | | * 邮费 |
| | | */ |
| | | @ApiModelProperty(value = "邮费") |
| | | private BigDecimal postage; |
| | | /** |
| | | * 商品图片 |
| | | */ |
| | | @ApiModelProperty(value = "商品图片") |
| | | private String images; |
| | | /** |
| | | * 商品详情 |
| | | */ |
| | | @ApiModelProperty(value = "商品详情") |
| | | private String detail; |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | /** |
| | | * 更新时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "更新时间") |
| | | private Date updateAt; |
| | | /** |
| | | * 更新人id |
| | | */ |
| | | @ApiModelProperty(value = "更新人id") |
| | | private Long updateBy; |
| | | |
| | | @ApiModelProperty(value = "分页每页数量", example = "10") |
| | | private Long pageSize = 10L; |
| | | |
| | | @ApiModelProperty(value = "分页当前记录数", example = "1") |
| | | private Long pageNum = 1L; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 分页查询电动车商城-砍价订单记录表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 分页查询电动车商城-砍价订单记录表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 16:06:36 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询电动车商城-砍价订单记录表请求参数") |
| | | public class PageComBatteryCommodityOrderBargainDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @ApiModelProperty(value = "商品id") |
| | | private Long commodityId; |
| | | /** |
| | | * 活动id |
| | | */ |
| | | @ApiModelProperty(value = "活动id") |
| | | private Long activityId; |
| | | /** |
| | | * 订单id |
| | | */ |
| | | @ApiModelProperty(value = "订单id") |
| | | private Long orderId; |
| | | /** |
| | | * 订单号 |
| | | */ |
| | | @ApiModelProperty(value = "订单号") |
| | | private String orderNo; |
| | | /** |
| | | * 商品原价 |
| | | */ |
| | | @ApiModelProperty(value = "商品原价") |
| | | private BigDecimal originalPrice; |
| | | /** |
| | | * 目标价格 |
| | | */ |
| | | @ApiModelProperty(value = "目标价格") |
| | | private BigDecimal targetPrice; |
| | | /** |
| | | * 当前价格 |
| | | */ |
| | | @ApiModelProperty(value = "当前价格") |
| | | private BigDecimal currentPrice; |
| | | /** |
| | | * 当前已砍价次数 |
| | | */ |
| | | @ApiModelProperty(value = "当前已砍价次数") |
| | | private Integer count; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | |
| | | @ApiModelProperty(value = "分页每页数量", example = "10") |
| | | private Long pageSize = 10L; |
| | | |
| | | @ApiModelProperty(value = "分页当前记录数", example = "1") |
| | | private Long pageNum = 1L; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 分页查询电动车商城-订单砍价记录表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 分页查询电动车商城-订单砍价记录表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 16:06:47 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询电动车商城-订单砍价记录表请求参数") |
| | | public class PageComBatteryCommodityOrderBargainRecordDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 砍价记录id |
| | | */ |
| | | @ApiModelProperty(value = "砍价记录id") |
| | | private Long bargainId; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | /** |
| | | * 砍价金额 |
| | | */ |
| | | @ApiModelProperty(value = "砍价金额") |
| | | private BigDecimal amount; |
| | | /** |
| | | * 原砍价用户id |
| | | */ |
| | | @ApiModelProperty(value = "原砍价用户id") |
| | | private Long oldUserId; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | |
| | | @ApiModelProperty(value = "分页每页数量", example = "10") |
| | | private Long pageSize = 10L; |
| | | |
| | | @ApiModelProperty(value = "分页当前记录数", example = "1") |
| | | private Long pageNum = 1L; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 分页查询电动车商城-拼团订单团队表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 分页查询电动车商城-拼团订单团队表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 16:06:58 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询电动车商城-拼团订单团队表请求参数") |
| | | public class PageComBatteryCommodityOrderCollageTeamDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 活动id |
| | | */ |
| | | @ApiModelProperty(value = "活动id") |
| | | private Long activityId; |
| | | /** |
| | | * 订单id |
| | | */ |
| | | @ApiModelProperty(value = "订单id") |
| | | private Long orderId; |
| | | /** |
| | | * 订单号 |
| | | */ |
| | | @ApiModelProperty(value = "订单号") |
| | | private String orderNo; |
| | | /** |
| | | * 开团用户id |
| | | */ |
| | | @ApiModelProperty(value = "开团用户id") |
| | | private Long userId; |
| | | /** |
| | | * 状态(1.等待拼团 2.拼团成功 3.拼团失败 4.已退款) |
| | | */ |
| | | @ApiModelProperty(value = "状态(1.等待拼团 2.拼团成功 3.拼团失败 4.已退款)") |
| | | private Integer status; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | |
| | | @ApiModelProperty(value = "分页每页数量", example = "10") |
| | | private Long pageSize = 10L; |
| | | |
| | | @ApiModelProperty(value = "分页当前记录数", example = "1") |
| | | private Long pageNum = 1L; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 分页查询电动车商城-拼团活动团队人员表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 分页查询电动车商城-拼团活动团队人员表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 16:07:10 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询电动车商城-拼团活动团队人员表请求参数") |
| | | public class PageComBatteryCommodityOrderCollageTeamPeopleDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 拼团团队id |
| | | */ |
| | | @ApiModelProperty(value = "拼团团队id") |
| | | private Long teamId; |
| | | /** |
| | | * 团长id |
| | | */ |
| | | @ApiModelProperty(value = "团长id") |
| | | private Long headUserId; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | /** |
| | | * 参团类型(1.开团 2.参与拼团) |
| | | */ |
| | | @ApiModelProperty(value = "参团类型(1.开团 2.参与拼团)") |
| | | private Integer type; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | |
| | | @ApiModelProperty(value = "分页每页数量", example = "10") |
| | | private Long pageSize = 10L; |
| | | |
| | | @ApiModelProperty(value = "分页当前记录数", example = "1") |
| | | private Long pageNum = 1L; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 分页查询电动车商城-订单表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 分页查询电动车商城-订单表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 13:18:45 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询电动车商城-订单表请求参数") |
| | | public class PageComBatteryCommodityOrderDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | /** |
| | | * 商家id |
| | | */ |
| | | @ApiModelProperty(value = "商家id") |
| | | private Long storeId; |
| | | /** |
| | | * 收货地址id |
| | | */ |
| | | @ApiModelProperty(value = "收货地址id") |
| | | private Long addressId; |
| | | /** |
| | | * 活动id |
| | | */ |
| | | @ApiModelProperty(value = "活动id") |
| | | private Long activityId; |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @ApiModelProperty(value = "商品id") |
| | | private Long commodityId; |
| | | /** |
| | | * 商品规格id |
| | | */ |
| | | @ApiModelProperty(value = "商品规格id") |
| | | private Long specsId; |
| | | /** |
| | | * 订单号 |
| | | */ |
| | | @ApiModelProperty(value = "订单号") |
| | | private String orderNo; |
| | | /** |
| | | * 活动状态(1.拼团活动 2.砍价活动 3.限时秒杀) |
| | | */ |
| | | @ApiModelProperty(value = "活动状态(1.拼团活动 2.砍价活动 3.限时秒杀)") |
| | | private Integer activityType; |
| | | /** |
| | | * 订单状态(1.待付款 2.待发货 3.待收货 4.已完成 5.待拼团 6.待砍价 7.已退款 8.已关闭) |
| | | */ |
| | | @ApiModelProperty(value = "订单状态(1.待付款 2.待发货 3.待收货 4.已完成 5.待拼团 6.待砍价 7.已退款 8.已关闭)") |
| | | private Integer status; |
| | | /** |
| | | * 拼团状态(1.拼团中 2.拼团成功 3.拼团失败) |
| | | */ |
| | | @ApiModelProperty(value = "拼团状态(1.拼团中 2.拼团成功 3.拼团失败)") |
| | | private Integer collageStatus; |
| | | /** |
| | | * 砍价状态(1.砍价中 2.砍价成功 3.砍价失败) |
| | | */ |
| | | @ApiModelProperty(value = "砍价状态(1.砍价中 2.砍价成功 3.砍价失败)") |
| | | private Integer bargainStatus; |
| | | /** |
| | | * 支付状态(1.未支付 2.已支付) |
| | | */ |
| | | @ApiModelProperty(value = "支付状态(1.未支付 2.已支付)") |
| | | private Integer payStatus; |
| | | /** |
| | | * 是否已删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否已删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | /** |
| | | * 支付方式(1.微信支付) |
| | | */ |
| | | @ApiModelProperty(value = "支付方式(1.微信支付)") |
| | | private Integer payType; |
| | | /** |
| | | * 购买商品数量 |
| | | */ |
| | | @ApiModelProperty(value = "购买商品数量") |
| | | private Integer count; |
| | | /** |
| | | * 商品单价 |
| | | */ |
| | | @ApiModelProperty(value = "商品单价") |
| | | private BigDecimal price; |
| | | /** |
| | | * 订单金额 |
| | | */ |
| | | @ApiModelProperty(value = "订单金额") |
| | | private BigDecimal amount; |
| | | /** |
| | | * 运费 |
| | | */ |
| | | @ApiModelProperty(value = "运费") |
| | | private BigDecimal freight; |
| | | /** |
| | | * 物流单号 |
| | | */ |
| | | @ApiModelProperty(value = "物流单号") |
| | | private String logisticsNo; |
| | | /** |
| | | * 物流公司 |
| | | */ |
| | | @ApiModelProperty(value = "物流公司") |
| | | private String logisticsCompany; |
| | | /** |
| | | * 订单最终金额 |
| | | */ |
| | | @ApiModelProperty(value = "订单最终金额") |
| | | private BigDecimal finalAmount; |
| | | /** |
| | | * 支付单号 |
| | | */ |
| | | @ApiModelProperty(value = "支付单号") |
| | | private String payNo; |
| | | /** |
| | | * 支付总金额 |
| | | */ |
| | | @ApiModelProperty(value = "支付总金额") |
| | | private BigDecimal payAmount; |
| | | /** |
| | | * 订单备注 |
| | | */ |
| | | @ApiModelProperty(value = "订单备注") |
| | | private String remark; |
| | | /** |
| | | * 发货时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "发货时间") |
| | | private Date deliveryTime; |
| | | /** |
| | | * 收货时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "收货时间") |
| | | private Date receivingTime; |
| | | /** |
| | | * 下单时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "下单时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | /** |
| | | * 修改人id |
| | | */ |
| | | @ApiModelProperty(value = "修改人id") |
| | | private Long updateBy; |
| | | |
| | | @ApiModelProperty(value = "分页每页数量", example = "10") |
| | | private Long pageSize = 10L; |
| | | |
| | | @ApiModelProperty(value = "分页当前记录数", example = "1") |
| | | private Long pageNum = 1L; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | @ApiModelProperty(value = "下单时间开始查询") |
| | | private String startTime; |
| | | |
| | | @ApiModelProperty(value = "下单时间结束查询") |
| | | private String endTime; |
| | | |
| | | @ApiModelProperty(value = "是否是小程序查询(1.是 2.否)",hidden = true) |
| | | private Integer isApplets; |
| | | |
| | | @ApiModelProperty(value = "是否是后台查询(1.是 2.否)",hidden = true) |
| | | private Integer isAdmin; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 分页查询电动车商城-商品规格表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 分页查询电动车商城-商品规格表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-28 15:16:22 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询电动车商城-商品规格表请求参数") |
| | | public class PageComBatteryCommoditySpecsDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 商家id |
| | | */ |
| | | @ApiModelProperty(value = "商家id") |
| | | private Long storeId; |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @ApiModelProperty(value = "商品id") |
| | | private Long commodityId; |
| | | /** |
| | | * 规格名称 |
| | | */ |
| | | @ApiModelProperty(value = "规格名称") |
| | | private String name; |
| | | /** |
| | | * 规格库存数量 |
| | | */ |
| | | @ApiModelProperty(value = "规格库存数量") |
| | | private Integer stock; |
| | | /** |
| | | * 规格价格 |
| | | */ |
| | | @ApiModelProperty(value = "规格价格") |
| | | private BigDecimal price; |
| | | /** |
| | | * 规格图片 |
| | | */ |
| | | @ApiModelProperty(value = "规格图片") |
| | | private String images; |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | /** |
| | | * 更新时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "更新时间") |
| | | private Date updateAt; |
| | | /** |
| | | * 更新人id |
| | | */ |
| | | @ApiModelProperty(value = "更新人id") |
| | | private Long updateBy; |
| | | |
| | | @ApiModelProperty(value = "分页每页数量", example = "10") |
| | | private Long pageSize = 10L; |
| | | |
| | | @ApiModelProperty(value = "分页当前记录数", example = "1") |
| | | private Long pageNum = 1L; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | @ApiModelProperty(value = "商品状态(1.上架 2.下架)") |
| | | private Integer status; |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 分页查询电动车商城-商家分类表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 分页查询电动车商城-商家分类表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 11:01:57 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询电动车商城-商家分类表请求参数") |
| | | public class PageComBatteryStoreClassDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 分类名称 |
| | | */ |
| | | @ApiModelProperty(value = "分类名称") |
| | | private String name; |
| | | /** |
| | | * 商家id |
| | | */ |
| | | @ApiModelProperty(value = "商家id") |
| | | private Long storeId; |
| | | /** |
| | | * 状态(1.启用 2.禁用) |
| | | */ |
| | | @ApiModelProperty(value = "状态(1.启用 2.禁用)") |
| | | private Integer status; |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | /** |
| | | * 更新时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "更新时间") |
| | | private Date updateAt; |
| | | /** |
| | | * 更新人id |
| | | */ |
| | | @ApiModelProperty(value = "更新人id") |
| | | private Long updateBy; |
| | | |
| | | @ApiModelProperty(value = "分页每页数量", example = "10") |
| | | private Long pageSize = 10L; |
| | | |
| | | @ApiModelProperty(value = "分页当前记录数", example = "1") |
| | | private Long pageNum = 1L; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 分页查询电动车商城-商家表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 分页查询电动车商城-商家表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-28 13:44:45 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询电动车商城-商家表请求参数") |
| | | public class PageComBatteryStoreDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 商家名称 |
| | | */ |
| | | @ApiModelProperty(value = "商家名称") |
| | | private String name; |
| | | /** |
| | | * 注册手机 |
| | | */ |
| | | @ApiModelProperty(value = "注册手机") |
| | | private String regPhone; |
| | | /** |
| | | * 联系电话 |
| | | */ |
| | | @ApiModelProperty(value = "联系电话") |
| | | private String phone; |
| | | /** |
| | | * 商家账号 |
| | | */ |
| | | @ApiModelProperty(value = "商家账号") |
| | | private String account; |
| | | /** |
| | | * 状态(1.启用 2.禁用) |
| | | */ |
| | | @ApiModelProperty(value = "状态(1.启用 2.禁用)") |
| | | private Integer status; |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | /** |
| | | * 商家logo |
| | | */ |
| | | @ApiModelProperty(value = "商家logo") |
| | | private String logo; |
| | | /** |
| | | * 商家简介 |
| | | */ |
| | | @ApiModelProperty(value = "商家简介") |
| | | private String introduction; |
| | | /** |
| | | * 商家地址 |
| | | */ |
| | | @ApiModelProperty(value = "商家地址") |
| | | private String address; |
| | | /** |
| | | * 详细地址 |
| | | */ |
| | | @ApiModelProperty(value = "详细地址") |
| | | private String detailAddress; |
| | | /** |
| | | * 经度 |
| | | */ |
| | | @ApiModelProperty(value = "经度") |
| | | private String longitude; |
| | | /** |
| | | * 纬度 |
| | | */ |
| | | @ApiModelProperty(value = "纬度") |
| | | private String latitude; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | /** |
| | | * 更新时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "更新时间") |
| | | private Date updateAt; |
| | | /** |
| | | * 更新人id |
| | | */ |
| | | @ApiModelProperty(value = "更新人id") |
| | | private Long updateBy; |
| | | |
| | | @ApiModelProperty(value = "分页每页数量", example = "10") |
| | | private Long pageSize = 10L; |
| | | |
| | | @ApiModelProperty(value = "分页当前记录数", example = "1") |
| | | private Long pageNum = 1L; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 分页查询电动车商城-微信交易流水表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 分页查询电动车商城-微信交易流水表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-01 13:18:50 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询电动车商城-微信交易流水表请求参数") |
| | | public class PageComBatteryTradeOrderDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | /** |
| | | * 用户openid |
| | | */ |
| | | @ApiModelProperty(value = "用户openid") |
| | | private String openId; |
| | | /** |
| | | * 订单号 |
| | | */ |
| | | @ApiModelProperty(value = "订单号") |
| | | private String orderNo; |
| | | /** |
| | | * 订单状态(1.待支付 2.已支付 3.申请退款 4.已退款 5.已关闭) |
| | | */ |
| | | @ApiModelProperty(value = "订单状态(1.待支付 2.已支付 3.申请退款 4.已退款 5.已关闭)") |
| | | private Integer status; |
| | | /** |
| | | * 支付类型(1.微信 ) |
| | | */ |
| | | @ApiModelProperty(value = "支付类型(1.微信 )") |
| | | private Integer payType; |
| | | /** |
| | | * 订单支付状态(1.待支付 2.已支付) |
| | | */ |
| | | @ApiModelProperty(value = "订单支付状态(1.待支付 2.已支付)") |
| | | private Integer payStatus; |
| | | /** |
| | | * 订单金额 |
| | | */ |
| | | @ApiModelProperty(value = "订单金额") |
| | | private BigDecimal orderAmount; |
| | | /** |
| | | * 实际支付金额 |
| | | */ |
| | | @ApiModelProperty(value = "实际支付金额") |
| | | private BigDecimal payAmount; |
| | | /** |
| | | * 支付单号 |
| | | */ |
| | | @ApiModelProperty(value = "支付单号") |
| | | private String payNo; |
| | | /** |
| | | * 支付时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "支付时间") |
| | | private Date payTime; |
| | | /** |
| | | * 交易类型(1.电动车商城购买商品) |
| | | */ |
| | | @ApiModelProperty(value = "交易类型(1.电动车商城购买商品)") |
| | | private Integer tradeType; |
| | | /** |
| | | * 交易业务订单id |
| | | */ |
| | | @ApiModelProperty(value = "交易业务订单id") |
| | | private Long tradeOrderId; |
| | | /** |
| | | * 交易业务订单号 |
| | | */ |
| | | @ApiModelProperty(value = "交易业务订单号") |
| | | private String tradeOrderNo; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人 |
| | | */ |
| | | @ApiModelProperty(value = "创建人") |
| | | private Long createBy; |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | |
| | | @ApiModelProperty(value = "分页每页数量", example = "10") |
| | | private Long pageSize = 10L; |
| | | |
| | | @ApiModelProperty(value = "分页当前记录数", example = "1") |
| | | private Long pageNum = 1L; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 分页查询电动车商城-用户收货地址表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 分页查询电动车商城-用户收货地址表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-29 13:18:20 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询电动车商城-用户收货地址表请求参数") |
| | | public class PageComBatteryUserAddressDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | /** |
| | | * 姓名 |
| | | */ |
| | | @ApiModelProperty(value = "姓名") |
| | | private String name; |
| | | /** |
| | | * 手机号 |
| | | */ |
| | | @ApiModelProperty(value = "手机号") |
| | | private String phone; |
| | | /** |
| | | * 详细地址 |
| | | */ |
| | | @ApiModelProperty(value = "详细地址") |
| | | private String address; |
| | | /** |
| | | * 是否是默认地址(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否是默认地址(1.是 2.否)") |
| | | private Integer isDefault; |
| | | /** |
| | | * 省份行政区划代码 |
| | | */ |
| | | @ApiModelProperty(value = "省份行政区划代码") |
| | | private String provinceAdcode; |
| | | /** |
| | | * 省份名称 |
| | | */ |
| | | @ApiModelProperty(value = "省份名称") |
| | | private String provinceName; |
| | | /** |
| | | * 城市行政区划代码 |
| | | */ |
| | | @ApiModelProperty(value = "城市行政区划代码") |
| | | private String cityAdcode; |
| | | /** |
| | | * 城市名称 |
| | | */ |
| | | @ApiModelProperty(value = "城市名称") |
| | | private String cityName; |
| | | /** |
| | | * 区县行政区划代码 |
| | | */ |
| | | @ApiModelProperty(value = "区县行政区划代码") |
| | | private String districtAdcode; |
| | | /** |
| | | * 区县名称 |
| | | */ |
| | | @ApiModelProperty(value = "区县名称") |
| | | private String districtName; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | /** |
| | | * 修改人id |
| | | */ |
| | | @ApiModelProperty(value = "修改人id") |
| | | private Long updateBy; |
| | | |
| | | @ApiModelProperty(value = "分页每页数量", example = "10") |
| | | private Long pageSize = 10L; |
| | | |
| | | @ApiModelProperty(value = "分页当前记录数", example = "1") |
| | | private Long pageNum = 1L; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 分页查询换新车-品牌表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 分页查询换新车-品牌表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-07 13:37:25 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询换新车-品牌表请求参数") |
| | | public class PageComChangeCarBrandDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 品牌编号 |
| | | */ |
| | | @ApiModelProperty(value = "品牌编号") |
| | | private String code; |
| | | /** |
| | | * 品牌名称 |
| | | */ |
| | | @ApiModelProperty(value = "品牌名称") |
| | | private String name; |
| | | /** |
| | | * 状态(1.启用 2.禁用) |
| | | */ |
| | | @ApiModelProperty(value = "状态(1.启用 2.禁用)") |
| | | private Integer status; |
| | | /** |
| | | * 品牌logo |
| | | */ |
| | | @ApiModelProperty(value = "品牌logo") |
| | | private String logo; |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | /** |
| | | * 修改人id |
| | | */ |
| | | @ApiModelProperty(value = "修改人id") |
| | | private Long updateBy; |
| | | |
| | | @ApiModelProperty(value = "分页每页数量", example = "10") |
| | | private Long pageSize = 10L; |
| | | |
| | | @ApiModelProperty(value = "分页当前记录数", example = "1") |
| | | private Long pageNum = 1L; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | @ApiModelProperty(value = "是否是小程序请求(1.是 2.否)") |
| | | private Integer isApplets = 2; |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 分页查询换新车-分期询价表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 分页查询换新车-分期询价表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-07 13:39:07 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询换新车-分期询价表请求参数") |
| | | public class PageComChangeCarInquiryDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | /** |
| | | * 用户称呼 |
| | | */ |
| | | @ApiModelProperty(value = "用户称呼") |
| | | private String name; |
| | | /** |
| | | * 用户手机号 |
| | | */ |
| | | @ApiModelProperty(value = "用户手机号") |
| | | private String phone; |
| | | /** |
| | | * 类型(1.分期 2.询价) |
| | | */ |
| | | @ApiModelProperty(value = "类型(1.分期 2.询价)") |
| | | private Integer type; |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | |
| | | @ApiModelProperty(value = "分页每页数量", example = "10") |
| | | private Long pageSize = 10L; |
| | | |
| | | @ApiModelProperty(value = "分页当前记录数", example = "1") |
| | | private Long pageNum = 1L; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 分页查询换新车-车型管理表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 分页查询换新车-车型管理表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-07 13:41:56 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询换新车-车型管理表请求参数") |
| | | public class PageComChangeCarModelDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 车型名称 |
| | | */ |
| | | @ApiModelProperty(value = "车型名称") |
| | | private String name; |
| | | /** |
| | | * 图片url,多张以,隔开 |
| | | */ |
| | | @ApiModelProperty(value = "图片url,多张以,隔开") |
| | | private String images; |
| | | /** |
| | | * 最低价格 |
| | | */ |
| | | @ApiModelProperty(value = "最低价格") |
| | | private BigDecimal minPrice; |
| | | /** |
| | | * 品牌id |
| | | */ |
| | | @ApiModelProperty(value = "品牌id") |
| | | private Long brandId; |
| | | /** |
| | | * 车辆详情 |
| | | */ |
| | | @ApiModelProperty(value = "车辆详情") |
| | | private String detail; |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | /** |
| | | * 状态(1.上架 2.下架) |
| | | */ |
| | | @ApiModelProperty(value = "状态(1.上架 2.下架)") |
| | | private Integer status; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | /** |
| | | * 修改人id |
| | | */ |
| | | @ApiModelProperty(value = "修改人id") |
| | | private Long updateBy; |
| | | |
| | | @ApiModelProperty(value = "分页每页数量", example = "10") |
| | | private Long pageSize = 10L; |
| | | |
| | | @ApiModelProperty(value = "分页当前记录数", example = "1") |
| | | private Long pageNum = 1L; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * title: 分页查询换新车-车型与规格关联表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 分页查询换新车-车型与规格关联表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:30 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询换新车-车型与规格关联表请求参数") |
| | | public class PageComChangeCarModelRelationDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 车型id |
| | | */ |
| | | @ApiModelProperty(value = "车型id") |
| | | private Long modelId; |
| | | /** |
| | | * 车型规格id |
| | | */ |
| | | @ApiModelProperty(value = "车型规格id") |
| | | private Long modelSpecsId; |
| | | /** |
| | | * 车型子规格id |
| | | */ |
| | | @ApiModelProperty(value = "车型子规格id") |
| | | private Long modelSpecsChildrenId; |
| | | |
| | | @ApiModelProperty(value = "分页每页数量", example = "10") |
| | | private Long pageSize = 10L; |
| | | |
| | | @ApiModelProperty(value = "分页当前记录数", example = "1") |
| | | private Long pageNum = 1L; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | @ApiModelProperty(value = "价格排序(1.升序 2.降序)") |
| | | private Integer priceSort; |
| | | |
| | | @ApiModelProperty(value = "品牌id筛选参数") |
| | | private List<Long> brandIds; |
| | | |
| | | @ApiModelProperty(value = "子规格id筛选参数") |
| | | private List<Long> specsChildrenIds; |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 分页查询换新车-车型子规格表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 分页查询换新车-车型子规格表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:34 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询换新车-车型子规格表请求参数") |
| | | public class PageComChangeCarModelSpecsChildrenDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 主规格id |
| | | */ |
| | | @ApiModelProperty(value = "主规格id") |
| | | private Long specsId; |
| | | /** |
| | | * 子规格名称 |
| | | */ |
| | | @ApiModelProperty(value = "子规格名称") |
| | | private String name; |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | |
| | | @ApiModelProperty(value = "分页每页数量", example = "10") |
| | | private Long pageSize = 10L; |
| | | |
| | | @ApiModelProperty(value = "分页当前记录数", example = "1") |
| | | private Long pageNum = 1L; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 分页查询换新车-车型规格表请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 分页查询换新车-车型规格表请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-04-07 13:55:32 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询换新车-车型规格表请求参数") |
| | | public class PageComChangeCarModelSpecsDto { |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty(value = "主键id") |
| | | private Long id; |
| | | /** |
| | | * 规格编号 |
| | | */ |
| | | @ApiModelProperty(value = "规格编号") |
| | | private String code; |
| | | /** |
| | | * 规格名称 |
| | | */ |
| | | @ApiModelProperty(value = "规格名称") |
| | | private String name; |
| | | /** |
| | | * 是否删除(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "是否删除(1.是 2.否)") |
| | | private Integer isDel; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 创建人id |
| | | */ |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Long createBy; |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "修改时间") |
| | | private Date updateAt; |
| | | /** |
| | | * 修改人id |
| | | */ |
| | | @ApiModelProperty(value = "修改人id") |
| | | private Long updateBy; |
| | | |
| | | @ApiModelProperty(value = "分页每页数量", example = "10") |
| | | private Long pageSize = 10L; |
| | | |
| | | @ApiModelProperty(value = "分页当前记录数", example = "1") |
| | | private Long pageNum = 1L; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * title: 分页查询用户表 后台用户+小程序用户请求参数 |
| | | * <p> |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * <p> |
| | | * description: 分页查询用户表 后台用户+小程序用户请求参数 |
| | | * |
| | | * @author lyq |
| | | * @date 2022-03-28 14:28:10 |
| | | */ |
| | | @Data |
| | | @ApiModel("分页查询用户表 后台用户+小程序用户请求参数") |
| | | public class PageSysUserDto { |
| | | |
| | | /** |
| | | * 主键 |
| | | */ |
| | | @ApiModelProperty(value = "主键") |
| | | private Long userId; |
| | | /** |
| | | * 登录账户 |
| | | */ |
| | | @ApiModelProperty(value = "登录账户") |
| | | private String account; |
| | | /** |
| | | * 登录密码 |
| | | */ |
| | | @ApiModelProperty(value = "登录密码") |
| | | private String password; |
| | | /** |
| | | * 微信小程序唯一标识 |
| | | */ |
| | | @ApiModelProperty(value = "微信小程序唯一标识") |
| | | private String openid; |
| | | /** |
| | | * 会话密钥 |
| | | */ |
| | | @ApiModelProperty(value = "会话密钥") |
| | | private String sessionKey; |
| | | /** |
| | | * 用户在开放平台的唯一标识符 |
| | | */ |
| | | @ApiModelProperty(value = "用户在开放平台的唯一标识符") |
| | | private String unionid; |
| | | /** |
| | | * 手机号 |
| | | */ |
| | | @ApiModelProperty(value = "手机号") |
| | | private String phone; |
| | | /** |
| | | * 昵称 |
| | | */ |
| | | @ApiModelProperty(value = "昵称") |
| | | private String nickName; |
| | | /** |
| | | * 真实名字 |
| | | */ |
| | | @ApiModelProperty(value = "真实名字") |
| | | private String name; |
| | | /** |
| | | * 社区ID |
| | | */ |
| | | @ApiModelProperty(value = "社区ID") |
| | | private Long communityId; |
| | | /** |
| | | * 性别 1 男 2 女 |
| | | */ |
| | | @ApiModelProperty(value = "性别 1 男 2 女") |
| | | private Integer sex; |
| | | /** |
| | | * 身份证号 |
| | | */ |
| | | @ApiModelProperty(value = "身份证号") |
| | | private String idCard; |
| | | /** |
| | | * 生日 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "生日") |
| | | private Date birthday; |
| | | /** |
| | | * 头像 |
| | | */ |
| | | @ApiModelProperty(value = "头像") |
| | | private String imageUrl; |
| | | /** |
| | | * 用户类型 1 小程序 2 运营平台 3 社区平台 5 商家后台 6 网格综治APP 7 网格综治后台 8大屏 9城管后台 10一键报警app |
| | | */ |
| | | @ApiModelProperty(value = "用户类型 1 小程序 2 运营平台 3 社区平台 5 商家后台 6 网格综治APP 7 网格综治后台 8大屏 9城管后台 10一键报警app") |
| | | private Integer type; |
| | | /** |
| | | * 职业 |
| | | */ |
| | | @ApiModelProperty(value = "职业") |
| | | private String job; |
| | | /** |
| | | * 是否志愿者 0 否 1 是 |
| | | */ |
| | | @ApiModelProperty(value = "是否志愿者 0 否 1 是") |
| | | private Integer isVolunteer; |
| | | /** |
| | | * 是否党员 0 否 1 是 |
| | | */ |
| | | @ApiModelProperty(value = "是否党员 0 否 1 是") |
| | | private Integer isPartymember; |
| | | /** |
| | | * 1 启用 2 禁用 |
| | | */ |
| | | @ApiModelProperty(value = "1 启用 2 禁用") |
| | | private Integer status; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createAt; |
| | | /** |
| | | * 最后登录时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "最后登录时间") |
| | | private Date lastLoginTime; |
| | | /** |
| | | * 标签多个用,隔开 |
| | | */ |
| | | @ApiModelProperty(value = "标签多个用,隔开") |
| | | private String tags; |
| | | /** |
| | | * 家庭id |
| | | */ |
| | | @ApiModelProperty(value = "家庭id") |
| | | private Long familyId; |
| | | /** |
| | | * 人脸采集照片url |
| | | */ |
| | | @ApiModelProperty(value = "人脸采集照片url") |
| | | private String faceUrl; |
| | | /** |
| | | * 人脸采集审核状态 0 待审核 1 审核通过 2驳回 |
| | | */ |
| | | @ApiModelProperty(value = "人脸采集审核状态 0 待审核 1 审核通过 2驳回") |
| | | private Integer faceState; |
| | | /** |
| | | * 驳回原因 |
| | | */ |
| | | @ApiModelProperty(value = "驳回原因") |
| | | private String rejectReson; |
| | | /** |
| | | * 小区id |
| | | */ |
| | | @ApiModelProperty(value = "小区id") |
| | | private Long areaId; |
| | | /** |
| | | * 证件照(人相面)照片 |
| | | */ |
| | | @ApiModelProperty(value = "证件照(人相面)照片") |
| | | private String cardPhotoFront; |
| | | /** |
| | | * 证件照(国徽面)照片 |
| | | */ |
| | | @ApiModelProperty(value = "证件照(国徽面)照片") |
| | | private String cardPhotoBack; |
| | | /** |
| | | * 户口本 |
| | | */ |
| | | @ApiModelProperty(value = "户口本") |
| | | private String familyBook; |
| | | /** |
| | | * 连续登陆天数 每天凌晨定时任务更新 |
| | | */ |
| | | @ApiModelProperty(value = "连续登陆天数 每天凌晨定时任务更新") |
| | | private Integer continuousLandingDays; |
| | | /** |
| | | * 小程序首页是否显示公告(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "小程序首页是否显示公告(1.是 2.否)") |
| | | private Integer isTips; |
| | | /** |
| | | * 网格员工作状态(1.在岗 2.脱岗 3.已下班) |
| | | */ |
| | | @ApiModelProperty(value = "网格员工作状态(1.在岗 2.脱岗 3.已下班)") |
| | | private Integer workStatus; |
| | | /** |
| | | * 网格员上班开始时间 |
| | | */ |
| | | @ApiModelProperty(value = "网格员上班开始时间") |
| | | private Integer workStartTime; |
| | | /** |
| | | * 网格员上班结束时间 |
| | | */ |
| | | @ApiModelProperty(value = "网格员上班结束时间") |
| | | private Integer workEndTime; |
| | | /** |
| | | * 高龄认证显示提示(1.是 2.否) |
| | | */ |
| | | @ApiModelProperty(value = "高龄认证显示提示(1.是 2.否)") |
| | | private Integer bigAgeTips; |
| | | /** |
| | | * 明文密码 |
| | | */ |
| | | @ApiModelProperty(value = "明文密码") |
| | | private String plaintextPassword; |
| | | |
| | | @ApiModelProperty(value = "分页每页数量", example = "10") |
| | | private Long pageSize = 10L; |
| | | |
| | | @ApiModelProperty(value = "分页当前记录数", example = "1") |
| | | private Long pageNum = 1L; |
| | | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author lyq |
| | | * 发起砍价订单请求参数 |
| | | */ |
| | | @Data |
| | | @ApiModel("发起砍价订单请求参数") |
| | | public class StartBargainOrderDto { |
| | | |
| | | @ApiModelProperty(value = "用户id",hidden = true) |
| | | private Long userId; |
| | | |
| | | @ApiModelProperty(value = "用户openId",hidden = true) |
| | | private String openId; |
| | | |
| | | @ApiModelProperty(value = "商品id") |
| | | private Long commodityId; |
| | | |
| | | @ApiModelProperty(value = "活动id") |
| | | private Long activityId; |
| | | |
| | | @ApiModelProperty(value = "用户收货地址id") |
| | | private Long addressId; |
| | | |
| | | @ApiModelProperty(value = "购买商品数量") |
| | | private Integer count; |
| | | |
| | | @ApiModelProperty(value = "订单备注") |
| | | private String remark; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author lyq |
| | | * 发起拼团订单请求参数 |
| | | */ |
| | | @Data |
| | | @ApiModel("发起拼团订单请求参数") |
| | | public class StartFightOrderDto { |
| | | |
| | | @ApiModelProperty(value = "用户id",hidden = true) |
| | | private Long userId; |
| | | |
| | | @ApiModelProperty(value = "用户openId",hidden = true) |
| | | private String openId; |
| | | |
| | | @ApiModelProperty(value = "商品id") |
| | | private Long commodityId; |
| | | |
| | | @ApiModelProperty(value = "活动id") |
| | | private Long activityId; |
| | | |
| | | @ApiModelProperty(value = "用户收货地址id") |
| | | private Long addressId; |
| | | |
| | | @ApiModelProperty(value = "购买商品数量") |
| | | private Integer count; |
| | | |
| | | @ApiModelProperty(value = "订单备注") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty(value = "拼团类型(1.开团 2.参团)") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty(value = "拼团团队id") |
| | | private Long teamId; |
| | | |
| | | /** |
| | | * 拼团类型(1.开团 2.参团) |
| | | */ |
| | | public interface Type{ |
| | | int KT = 1; |
| | | int PT = 2; |
| | | } |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author lyq |
| | | * 发起秒杀订单请求参数 |
| | | */ |
| | | @Data |
| | | @ApiModel("发起秒杀订单请求参数") |
| | | public class StartSeckillOrderDto { |
| | | |
| | | @ApiModelProperty(value = "用户id",hidden = true) |
| | | private Long userId; |
| | | |
| | | @ApiModelProperty(value = "用户openId",hidden = true) |
| | | private String openId; |
| | | |
| | | @ApiModelProperty(value = "商品id") |
| | | private Long commodityId; |
| | | |
| | | @ApiModelProperty(value = "活动id") |
| | | private Long activityId; |
| | | |
| | | @ApiModelProperty(value = "用户收货地址id") |
| | | private Long addressId; |
| | | |
| | | @ApiModelProperty(value = "购买商品数量") |
| | | private Integer count; |
| | | |
| | | @ApiModelProperty(value = "订单备注") |
| | | private String remark; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author lyq |
| | | * 帮好友砍价请求参数 |
| | | */ |
| | | @Data |
| | | @ApiModel("帮好友砍价请求参数") |
| | | public class StartUserBargainOrderDto { |
| | | |
| | | @ApiModelProperty(value = "用户id",hidden = true) |
| | | private Long userId; |
| | | |
| | | @ApiModelProperty(value = "原用户砍价记录id") |
| | | private Long bargainId; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.common; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author lyq |
| | | * 订单创建请求参数 |
| | | */ |
| | | @Data |
| | | @ApiModel("订单创建请求参数") |
| | | public class UserCreateOrderDto { |
| | | |
| | | @ApiModelProperty(value = "用户id",hidden = true) |
| | | private Long userId; |
| | | |
| | | @ApiModelProperty(value = "用户openId",hidden = true) |
| | | private String openId; |
| | | |
| | | @ApiModelProperty(value = "商品id") |
| | | private Long commodityId; |
| | | |
| | | @ApiModelProperty(value = "商品规格id") |
| | | private Long specsId; |
| | | |
| | | @ApiModelProperty(value = "用户收货地址id") |
| | | private Long addressId; |
| | | |
| | | @ApiModelProperty(value = "购买商品数量") |
| | | private Integer count; |
| | | |
| | | @ApiModelProperty(value = "订单备注") |
| | | private String remark; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.sanshuo; |
| | | |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | @ApiModel("创建事件类型入参") |
| | | public class ComMediateTypeDTO { |
| | | /** |
| | | * 主键 |
| | | */ |
| | | @ApiModelProperty("id,修改时传") |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 类型名称 |
| | | */ |
| | | @ApiModelProperty("类型名称") |
| | | private String name; |
| | | |
| | | /** |
| | | * code码 |
| | | */ |
| | | @ApiModelProperty("code码") |
| | | private String code; |
| | | |
| | | /** |
| | | * 父id((根节点为0)) |
| | | */ |
| | | @ApiModelProperty("父id((根节点为0))") |
| | | private Long parentId; |
| | | |
| | | /** |
| | | * 路径(格式 : `pid1`pid2`id` ) |
| | | */ |
| | | @ApiModelProperty("路径(格式 : `pid1`pid2`id` )") |
| | | private String pathId; |
| | | |
| | | /** |
| | | * 所在层级 |
| | | */ |
| | | @ApiModelProperty("所在层级") |
| | | private Integer levelIndex; |
| | | |
| | | /** |
| | | * 排序 |
| | | */ |
| | | @ApiModelProperty("排序") |
| | | private Integer sort; |
| | | |
| | | /** |
| | | * 启用状态(0:停用,1:启用) |
| | | */ |
| | | @ApiModelProperty("启用状态(false:停用,true:启用)") |
| | | private Boolean enabled; |
| | | |
| | | /** |
| | | * 备注说明 |
| | | */ |
| | | @ApiModelProperty("备注说明") |
| | | private String remarks; |
| | | |
| | | /** |
| | | * 创建者 |
| | | */ |
| | | @ApiModelProperty("创建者") |
| | | private Long createUser; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @ApiModelProperty("创建时间") |
| | | private Date createDate; |
| | | |
| | | /** |
| | | * 修改者 |
| | | */ |
| | | @ApiModelProperty("修改者") |
| | | private Long modifyUser; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty("修改时间") |
| | | private Date modifyDate; |
| | | |
| | | /** |
| | | * 删除标识(0:未删除,1:已删除) |
| | | */ |
| | | @ApiModelProperty("false:未删除,true:已删除") |
| | | private Boolean deleteFlag; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community.sanshuo; |
| | | |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | @ApiModel("业务中心入参") |
| | | public class ComSanShuoIndustryCenterDTO { |
| | | /** |
| | | * id |
| | | */ |
| | | @ApiModelProperty("id,修改时传") |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 行业分中心名称 |
| | | */ |
| | | @ApiModelProperty("行业分中心名称") |
| | | private String name; |
| | | |
| | | /** |
| | | * 调解室电话 |
| | | */ |
| | | @ApiModelProperty("调解室电话") |
| | | private String phone; |
| | | |
| | | /** |
| | | * 登录账号 |
| | | */ |
| | | @ApiModelProperty("登录账号") |
| | | private String account; |
| | | |
| | | /** |
| | | * 创建人 |
| | | */ |
| | | @ApiModelProperty("创建人") |
| | | private String createBy; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @ApiModelProperty("创建时间") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty("修改时间") |
| | | private Date updateTime; |
| | | |
| | | /** |
| | | * 状态0禁用1启用 |
| | | */ |
| | | @ApiModelProperty("状态0禁用1启用") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * 0删除1正常 |
| | | */ |
| | | @ApiModelProperty("0删除1正常") |
| | | private Integer delFlag; |
| | | |
| | | /** |
| | | * 所属街道id |
| | | */ |
| | | @ApiModelProperty("所属街道id") |
| | | private Long streetId; |
| | | |
| | | @ApiModelProperty("密码") |
| | | private String password; |
| | | |
| | | /** |
| | | * 所属社区id |
| | | */ |
| | | @ApiModelProperty("所属社区id") |
| | | private Long communityId; |
| | | } |
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/sanshuo/ComSanshuoEventDTO.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/sanshuo/ComSanshuoExpertDTO.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/sanshuo/IndexDateDTO.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/shop/WxPayNotifyOrderDTO.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/LoginUserInfoVO.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/common/ComBatteryActivityTeamVo.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/common/ComBatteryCommodityActivityVo.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/common/ComBatteryCommodityOrderBargainRecordVo.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/common/ComBatteryCommodityOrderBargainVo.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/common/ComBatteryCommodityOrderCollageTeamPeopleVo.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/common/ComBatteryCommodityOrderCollageTeamVo.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/common/ComBatteryCommodityOrderVo.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/common/ComBatteryCommoditySpecsVo.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/common/ComBatteryCommodityVo.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/common/ComBatteryStoreClassVo.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/common/ComBatteryStoreVo.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/common/ComBatteryTradeOrderVo.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/common/ComBatteryUserAddressVo.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/common/ComChangeCarBrandVo.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/common/ComChangeCarInquiryVo.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/common/ComChangeCarModelRelationVo.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/common/ComChangeCarModelSpecsChildrenVo.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/common/ComChangeCarModelSpecsVo.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/common/ComChangeCarModelVo.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/common/SysUserVo.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComActVO.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/ComStreetVO.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/partybuilding/PagePartyOrganizationVO.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComEventArchiveVO.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComEventCalculateVO.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComEventConciliationVO.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComEventDetailVO.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComEventPageRequestVO.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComEventRequestImageVO.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComEventResourceVO.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComEventTransferRecordVO.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComEventVO.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComMediaTypeVO.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComSanRequestVO.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComSanShuoEventVO.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComSanShuoIndustryCenterVO.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ComSanshuoExpertVO.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/EventRateVO.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ExpertRangeVO.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/ExpertShowVO.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/IndexDateVO.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/sanshuo/MediateTypeVO.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/shop/PageShopStoreVO.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/auth/TokenService.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/ComBatteryCommodityActivityFeign.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/ComBatteryCommodityFeign.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/ComBatteryCommodityOrderBargainFeign.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/ComBatteryCommodityOrderBargainRecordFeign.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/ComBatteryCommodityOrderCollageTeamFeign.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/ComBatteryCommodityOrderCollageTeamPeopleFeign.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/ComBatteryCommodityOrderFeign.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/ComBatteryCommoditySpecsFeign.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/ComBatteryStoreClassFeign.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/ComBatteryStoreFeign.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/ComBatteryUserAddressFeign.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/ComChangeCarBrandFeign.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/ComChangeCarInquiryFeign.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/ComChangeCarModelFeign.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/ComChangeCarModelRelationFeign.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/ComChangeCarModelSpecsChildrenFeign.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/ComChangeCarModelSpecsFeign.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunitySanShuoService.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/user/UserService.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/utlis/MathUtils.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/utlis/RSAUtils.java
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/utlis/WxPayUtils.java
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/ComBatteryCommodityActivityApi.java
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/ComBatteryCommodityApi.java
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/ComBatteryCommodityOrderApi.java
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/ComBatteryCommoditySpecsApi.java
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/ComBatteryStoreApi.java
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/ComBatteryStoreClassApi.java
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/ComSanShuoApi.java
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/ComSanShuoEventController.java
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/CommunityConvenientApi.java
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/CommunityPartyBuildingApi.java
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/CommunityPartyBuildingWestApi.java
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/LoginApi.java
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/config/JacksonConfig.java
springcloud_k8s_panzhihuazhihuishequ/grid_app/grid_app.iml (deleted)
springcloud_k8s_panzhihuazhihuishequ/grid_backstage/grid_backstage.iml (deleted)
springcloud_k8s_panzhihuazhihuishequ/grid_backstage/src/main/java/com/panzhihua/grid_backstage/api/ComSanShuoApi.java
springcloud_k8s_panzhihuazhihuishequ/grid_backstage/src/main/java/com/panzhihua/grid_backstage/api/ComSanShuoEventController.java
springcloud_k8s_panzhihuazhihuishequ/grid_backstage/src/main/java/com/panzhihua/grid_backstage/api/CommonApi.java
springcloud_k8s_panzhihuazhihuishequ/grid_backstage/src/main/java/com/panzhihua/grid_backstage/config/JacksonConfig.java
springcloud_k8s_panzhihuazhihuishequ/service_api/service_api.iml (deleted)
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/AdvertisementApi.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComActActivityCodeApi.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComBatteryCommodityActivityController.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComBatteryCommodityController.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComBatteryCommodityOrderBargainController.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComBatteryCommodityOrderBargainRecordController.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComBatteryCommodityOrderCollageTeamController.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComBatteryCommodityOrderCollageTeamPeopleController.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComBatteryCommodityOrderController.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComBatteryCommoditySpecsController.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComBatteryStoreClassController.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComBatteryStoreController.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComBatteryUserAddressController.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComChangeCarBrandController.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComChangeCarInquiryController.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComChangeCarModelController.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComChangeCarModelRelationController.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComChangeCarModelSpecsChildrenController.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComChangeCarModelSpecsController.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventApi.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventController.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventResourceController.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventTransferRecordController.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoExpertApi.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoIndustryCenterApi.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/StreetApi.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDAO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComBatteryCommodityActivityMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComBatteryCommodityMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComBatteryCommodityOrderBargainMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComBatteryCommodityOrderBargainRecordMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComBatteryCommodityOrderCollageTeamMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComBatteryCommodityOrderCollageTeamPeopleMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComBatteryCommodityOrderMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComBatteryCommoditySpecsMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComBatteryStoreClassMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComBatteryStoreMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComBatteryTradeOrderMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComBatteryUserAddressMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComChangeCarBrandMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComChangeCarInquiryMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComChangeCarModelMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComChangeCarModelRelationMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComChangeCarModelSpecsChildrenMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComChangeCarModelSpecsMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComEventMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComEventResourceMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComEventTransferRecordMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMediateTypeDao.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComSanshuoEventDao.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComSanshuoExpertDao.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComSanshuoIndustryCenterDao.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/SysUserMapper.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComBatteryCommodity.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComBatteryCommodityActivity.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComBatteryCommodityOrder.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComBatteryCommodityOrderBargain.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComBatteryCommodityOrderBargainRecord.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComBatteryCommodityOrderCollageTeam.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComBatteryCommodityOrderCollageTeamPeople.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComBatteryCommoditySpecs.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComBatteryStore.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComBatteryStoreClass.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComBatteryTradeOrder.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComBatteryUserAddress.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComChangeCarBrand.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComChangeCarInquiry.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComChangeCarModel.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComChangeCarModelRelation.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComChangeCarModelSpecs.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComChangeCarModelSpecsChildren.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComEvent.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComEventResource.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComEventTransferRecord.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComMediateType.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComSanshuoEvent.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComSanshuoExpert.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/ComSanshuoIndustryCenter.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/entity/SysUser.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActDO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComStreetDO.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/schedule/AcidSchedule.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComBatteryCommodityActivityService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComBatteryCommodityOrderBargainRecordService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComBatteryCommodityOrderBargainService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComBatteryCommodityOrderCollageTeamPeopleService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComBatteryCommodityOrderCollageTeamService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComBatteryCommodityOrderService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComBatteryCommodityService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComBatteryCommoditySpecsService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComBatteryStoreClassService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComBatteryStoreService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComBatteryTradeOrderService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComBatteryUserAddressService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComChangeCarBrandService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComChangeCarInquiryService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComChangeCarModelRelationService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComChangeCarModelService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComChangeCarModelSpecsChildrenService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComChangeCarModelSpecsService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComOpsAdvService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComSanShuoEventService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComSanShuoExpertService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComSanShuoIndustryCenterService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComStreetService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/CommediateTypeService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/IComEventResourceService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/IComEventService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/IComEventTransferRecordService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/SysUserService.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActNeighborCircleServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComBatteryCommodityActivityServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComBatteryCommodityOrderBargainRecordServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComBatteryCommodityOrderBargainServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComBatteryCommodityOrderCollageTeamPeopleServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComBatteryCommodityOrderCollageTeamServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComBatteryCommodityOrderServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComBatteryCommodityServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComBatteryCommoditySpecsServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComBatteryStoreClassServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComBatteryStoreServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComBatteryTradeOrderServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComBatteryUserAddressServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComChangeCarBrandServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComChangeCarInquiryServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComChangeCarModelRelationServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComChangeCarModelServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComChangeCarModelSpecsChildrenServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComChangeCarModelSpecsServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComEventResourceServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComEventServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComEventTransferRecordServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComOpsAdvServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSanShuoEventServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSanShuoExpertServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComSanShuoIndustryCenterServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComShopOrderServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComStreetServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/CommediateTypeServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ConvenientMerchantServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/RentingHourseOrderServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/SysUserServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActIntegralUserDOMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComBatteryCommodityActivityMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComBatteryCommodityMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComBatteryCommodityOrderBargainMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComBatteryCommodityOrderBargainRecordMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComBatteryCommodityOrderCollageTeamMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComBatteryCommodityOrderCollageTeamPeopleMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComBatteryCommodityOrderMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComBatteryCommoditySpecsMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComBatteryStoreClassMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComBatteryStoreMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComBatteryTradeOrderMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComBatteryUserAddressMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComChangeCarBrandMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComChangeCarInquiryMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComChangeCarModelMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComChangeCarModelRelationMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComChangeCarModelSpecsChildrenMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComChangeCarModelSpecsMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComEventMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComEventResourceMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComEventTransferRecordMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComMediaTypeMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComPropertyMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComSanshuoEventDao.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComSanshuoExpertDao.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComSanshuoIndustryCenterDao.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/SysUserMapper.xml
springcloud_k8s_panzhihuazhihuishequ/service_community/src/test/java/com/panzhihua/service_community/service/impl/ComEventServiceImplTest.java
springcloud_k8s_panzhihuazhihuishequ/service_grid/service_grid.iml (deleted)
springcloud_k8s_panzhihuazhihuishequ/service_property/service_property.iml (deleted)
springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/api/ComPropertyRepairApi.java
springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/config/WebSocketClient.java
springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/service/impl/ComPropertyRepairServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/UserApi.java
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/dao/UserDao.java
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/UserService.java
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/resources/mapper/UserDao.xml
springcloud_k8s_panzhihuazhihuishequ/shop_backstage/src/main/java/com/panzhihua/shop_backstage/api/MicroCommercialStreetApi.java
springcloud_k8s_panzhihuazhihuishequ/timejob/src/main/java/com/panzhihua/timejob/jobhandler/BatteryJobHandler.java
springcloud_k8s_panzhihuazhihuishequ/zuul/src/main/java/com/panzhihua/zuul/filters/JWTAuthenticationTokenFilter.java |