pref_mail@163.com
1 year ago
19 changed files with 723 additions and 7 deletions
@ -0,0 +1,39 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.aftersales.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import lombok.Data; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.tenant.mp.TenantEntity; |
||||
|
||||
/** |
||||
* 异常工单商场对应客服 实体类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-12-23 |
||||
*/ |
||||
@Data |
||||
@TableName("logpm_aftersales_customer_mall") |
||||
@ApiModel(value = "AftersalesCustomerMall对象", description = "异常工单商场对应客服") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class AftersalesCustomerMallEntity extends TenantEntity { |
||||
|
||||
|
||||
} |
@ -0,0 +1,49 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.aftersales.feign; |
||||
|
||||
import org.springblade.core.mp.support.BladePage; |
||||
import com.logpm.aftersales.entity.AftersalesCustomerMallEntity; |
||||
import org.springframework.cloud.openfeign.FeignClient; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.RequestParam; |
||||
|
||||
/** |
||||
* 异常工单商场对应客服 Feign接口类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-12-23 |
||||
*/ |
||||
@FeignClient( |
||||
value = "blade-aftersales" |
||||
) |
||||
public interface IAftersalesCustomerMallClient { |
||||
|
||||
String API_PREFIX = "/client"; |
||||
String TOP = API_PREFIX + "/top"; |
||||
|
||||
/** |
||||
* 获取异常工单商场对应客服列表 |
||||
* |
||||
* @param current 页号 |
||||
* @param size 页数 |
||||
* @return BladePage |
||||
*/ |
||||
@GetMapping(TOP) |
||||
BladePage<AftersalesCustomerMallEntity> top(@RequestParam("current") Integer current, @RequestParam("size") Integer size); |
||||
|
||||
} |
@ -0,0 +1,35 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.aftersales.vo; |
||||
|
||||
import com.logpm.aftersales.entity.AftersalesCustomerMallEntity; |
||||
import org.springblade.core.tool.node.INode; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
|
||||
/** |
||||
* 异常工单商场对应客服 视图实体类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-12-23 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class AftersalesCustomerMallVO extends AftersalesCustomerMallEntity { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
@ -0,0 +1,151 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.aftersales.controller; |
||||
|
||||
import io.swagger.annotations.Api; |
||||
import io.swagger.annotations.ApiOperation; |
||||
import io.swagger.annotations.ApiParam; |
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
||||
import lombok.AllArgsConstructor; |
||||
import javax.validation.Valid; |
||||
|
||||
import org.springblade.core.secure.BladeUser; |
||||
import org.springblade.core.mp.support.Condition; |
||||
import org.springblade.core.mp.support.Query; |
||||
import org.springblade.core.tool.api.R; |
||||
import org.springblade.core.tool.utils.Func; |
||||
import org.springframework.web.bind.annotation.*; |
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import com.logpm.aftersales.entity.AftersalesCustomerMallEntity; |
||||
import com.logpm.aftersales.vo.AftersalesCustomerMallVO; |
||||
import com.logpm.aftersales.excel.AftersalesCustomerMallExcel; |
||||
import com.logpm.aftersales.wrapper.AftersalesCustomerMallWrapper; |
||||
import com.logpm.aftersales.service.IAftersalesCustomerMallService; |
||||
import org.springblade.core.boot.ctrl.BladeController; |
||||
import org.springblade.core.tool.utils.DateUtil; |
||||
import org.springblade.core.excel.util.ExcelUtil; |
||||
import org.springblade.core.tool.constant.BladeConstant; |
||||
import springfox.documentation.annotations.ApiIgnore; |
||||
import java.util.Map; |
||||
import java.util.List; |
||||
import javax.servlet.http.HttpServletResponse; |
||||
|
||||
/** |
||||
* 异常工单商场对应客服 控制器 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-12-23 |
||||
*/ |
||||
@RestController |
||||
@AllArgsConstructor |
||||
@RequestMapping("blade-aftersales/aftersalesCustomerMall") |
||||
@Api(value = "异常工单商场对应客服", tags = "异常工单商场对应客服接口") |
||||
public class AftersalesCustomerMallController extends BladeController { |
||||
|
||||
private final IAftersalesCustomerMallService aftersalesCustomerMallService; |
||||
|
||||
/** |
||||
* 异常工单商场对应客服 详情 |
||||
*/ |
||||
@GetMapping("/detail") |
||||
@ApiOperationSupport(order = 1) |
||||
@ApiOperation(value = "详情", notes = "传入aftersalesCustomerMall") |
||||
public R<AftersalesCustomerMallVO> detail(AftersalesCustomerMallEntity aftersalesCustomerMall) { |
||||
AftersalesCustomerMallEntity detail = aftersalesCustomerMallService.getOne(Condition.getQueryWrapper(aftersalesCustomerMall)); |
||||
return R.data(AftersalesCustomerMallWrapper.build().entityVO(detail)); |
||||
} |
||||
/** |
||||
* 异常工单商场对应客服 分页 |
||||
*/ |
||||
@GetMapping("/list") |
||||
@ApiOperationSupport(order = 2) |
||||
@ApiOperation(value = "分页", notes = "传入aftersalesCustomerMall") |
||||
public R<IPage<AftersalesCustomerMallVO>> list(@ApiIgnore @RequestParam Map<String, Object> aftersalesCustomerMall, Query query) { |
||||
IPage<AftersalesCustomerMallEntity> pages = aftersalesCustomerMallService.page(Condition.getPage(query), Condition.getQueryWrapper(aftersalesCustomerMall, AftersalesCustomerMallEntity.class)); |
||||
return R.data(AftersalesCustomerMallWrapper.build().pageVO(pages)); |
||||
} |
||||
|
||||
/** |
||||
* 异常工单商场对应客服 自定义分页 |
||||
*/ |
||||
@GetMapping("/page") |
||||
@ApiOperationSupport(order = 3) |
||||
@ApiOperation(value = "分页", notes = "传入aftersalesCustomerMall") |
||||
public R<IPage<AftersalesCustomerMallVO>> page(AftersalesCustomerMallVO aftersalesCustomerMall, Query query) { |
||||
IPage<AftersalesCustomerMallVO> pages = aftersalesCustomerMallService.selectAftersalesCustomerMallPage(Condition.getPage(query), aftersalesCustomerMall); |
||||
return R.data(pages); |
||||
} |
||||
|
||||
/** |
||||
* 异常工单商场对应客服 新增 |
||||
*/ |
||||
@PostMapping("/save") |
||||
@ApiOperationSupport(order = 4) |
||||
@ApiOperation(value = "新增", notes = "传入aftersalesCustomerMall") |
||||
public R save(@Valid @RequestBody AftersalesCustomerMallEntity aftersalesCustomerMall) { |
||||
return R.status(aftersalesCustomerMallService.save(aftersalesCustomerMall)); |
||||
} |
||||
|
||||
/** |
||||
* 异常工单商场对应客服 修改 |
||||
*/ |
||||
@PostMapping("/update") |
||||
@ApiOperationSupport(order = 5) |
||||
@ApiOperation(value = "修改", notes = "传入aftersalesCustomerMall") |
||||
public R update(@Valid @RequestBody AftersalesCustomerMallEntity aftersalesCustomerMall) { |
||||
return R.status(aftersalesCustomerMallService.updateById(aftersalesCustomerMall)); |
||||
} |
||||
|
||||
/** |
||||
* 异常工单商场对应客服 新增或修改 |
||||
*/ |
||||
@PostMapping("/submit") |
||||
@ApiOperationSupport(order = 6) |
||||
@ApiOperation(value = "新增或修改", notes = "传入aftersalesCustomerMall") |
||||
public R submit(@Valid @RequestBody AftersalesCustomerMallEntity aftersalesCustomerMall) { |
||||
return R.status(aftersalesCustomerMallService.saveOrUpdate(aftersalesCustomerMall)); |
||||
} |
||||
|
||||
/** |
||||
* 异常工单商场对应客服 删除 |
||||
*/ |
||||
@PostMapping("/remove") |
||||
@ApiOperationSupport(order = 7) |
||||
@ApiOperation(value = "逻辑删除", notes = "传入ids") |
||||
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
||||
return R.status(aftersalesCustomerMallService.deleteLogic(Func.toLongList(ids))); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* 导出数据 |
||||
*/ |
||||
@GetMapping("/export-aftersalesCustomerMall") |
||||
@ApiOperationSupport(order = 9) |
||||
@ApiOperation(value = "导出数据", notes = "传入aftersalesCustomerMall") |
||||
public void exportAftersalesCustomerMall(@ApiIgnore @RequestParam Map<String, Object> aftersalesCustomerMall, BladeUser bladeUser, HttpServletResponse response) { |
||||
QueryWrapper<AftersalesCustomerMallEntity> queryWrapper = Condition.getQueryWrapper(aftersalesCustomerMall, AftersalesCustomerMallEntity.class); |
||||
//if (!AuthUtil.isAdministrator()) {
|
||||
// queryWrapper.lambda().eq(AftersalesCustomerMall::getTenantId, bladeUser.getTenantId());
|
||||
//}
|
||||
queryWrapper.lambda().eq(AftersalesCustomerMallEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED); |
||||
List<AftersalesCustomerMallExcel> list = aftersalesCustomerMallService.exportAftersalesCustomerMall(queryWrapper); |
||||
ExcelUtil.export(response, "异常工单商场对应客服数据" + DateUtil.time(), "异常工单商场对应客服数据表", list, AftersalesCustomerMallExcel.class); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,34 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.aftersales.dto; |
||||
|
||||
import com.logpm.aftersales.entity.AftersalesCustomerMallEntity; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
|
||||
/** |
||||
* 异常工单商场对应客服 数据传输对象实体类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-12-23 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class AftersalesCustomerMallDTO extends AftersalesCustomerMallEntity { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
@ -0,0 +1,44 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.aftersales.excel; |
||||
|
||||
|
||||
import lombok.Data; |
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty; |
||||
import com.alibaba.excel.annotation.write.style.ColumnWidth; |
||||
import com.alibaba.excel.annotation.write.style.ContentRowHeight; |
||||
import com.alibaba.excel.annotation.write.style.HeadRowHeight; |
||||
import java.io.Serializable; |
||||
|
||||
|
||||
/** |
||||
* 异常工单商场对应客服 Excel实体类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-12-23 |
||||
*/ |
||||
@Data |
||||
@ColumnWidth(25) |
||||
@HeadRowHeight(20) |
||||
@ContentRowHeight(18) |
||||
public class AftersalesCustomerMallExcel implements Serializable { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
|
||||
} |
@ -0,0 +1,53 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.aftersales.feign; |
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import lombok.AllArgsConstructor; |
||||
import org.springblade.core.mp.support.BladePage; |
||||
import org.springblade.core.mp.support.Condition; |
||||
import org.springblade.core.mp.support.Query; |
||||
import com.logpm.aftersales.entity.AftersalesCustomerMallEntity; |
||||
import com.logpm.aftersales.service.IAftersalesCustomerMallService; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.RestController; |
||||
import springfox.documentation.annotations.ApiIgnore; |
||||
|
||||
/** |
||||
* 异常工单商场对应客服 Feign实现类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-12-23 |
||||
*/ |
||||
@ApiIgnore() |
||||
@RestController |
||||
@AllArgsConstructor |
||||
public class AftersalesCustomerMallClient implements IAftersalesCustomerMallClient { |
||||
|
||||
private final IAftersalesCustomerMallService aftersalesCustomerMallService; |
||||
|
||||
@Override |
||||
@GetMapping(TOP) |
||||
public BladePage<AftersalesCustomerMallEntity> top(Integer current, Integer size) { |
||||
Query query = new Query(); |
||||
query.setCurrent(current); |
||||
query.setSize(size); |
||||
IPage<AftersalesCustomerMallEntity> page = aftersalesCustomerMallService.page(Condition.getPage(query)); |
||||
return BladePage.of(page); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,54 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.aftersales.mapper; |
||||
|
||||
import com.logpm.aftersales.entity.AftersalesCustomerMallEntity; |
||||
import com.logpm.aftersales.vo.AftersalesCustomerMallVO; |
||||
import com.logpm.aftersales.excel.AftersalesCustomerMallExcel; |
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.apache.ibatis.annotations.Param; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 异常工单商场对应客服 Mapper 接口 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-12-23 |
||||
*/ |
||||
public interface AftersalesCustomerMallMapper extends BaseMapper<AftersalesCustomerMallEntity> { |
||||
|
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page |
||||
* @param aftersalesCustomerMall |
||||
* @return |
||||
*/ |
||||
List<AftersalesCustomerMallVO> selectAftersalesCustomerMallPage(IPage page, AftersalesCustomerMallVO aftersalesCustomerMall); |
||||
|
||||
|
||||
/** |
||||
* 获取导出数据 |
||||
* |
||||
* @param queryWrapper |
||||
* @return |
||||
*/ |
||||
List<AftersalesCustomerMallExcel> exportAftersalesCustomerMall(@Param("ew") Wrapper<AftersalesCustomerMallEntity> queryWrapper); |
||||
|
||||
} |
@ -0,0 +1,19 @@
|
||||
<?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.logpm.aftersales.mapper.AftersalesCustomerMallMapper"> |
||||
|
||||
<!-- 通用查询映射结果 --> |
||||
<resultMap id="aftersalesCustomerMallResultMap" type="com.logpm.aftersales.entity.AftersalesCustomerMallEntity"> |
||||
</resultMap> |
||||
|
||||
|
||||
<select id="selectAftersalesCustomerMallPage" resultMap="aftersalesCustomerMallResultMap"> |
||||
select * from logpm_aftersales_customer_mall where is_deleted = 0 |
||||
</select> |
||||
|
||||
|
||||
<select id="exportAftersalesCustomerMall" resultType="com.logpm.aftersales.excel.AftersalesCustomerMallExcel"> |
||||
SELECT * FROM logpm_aftersales_customer_mall ${ew.customSqlSegment} |
||||
</select> |
||||
|
||||
</mapper> |
@ -0,0 +1,52 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.aftersales.service; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.logpm.aftersales.entity.AftersalesCustomerMallEntity; |
||||
import com.logpm.aftersales.vo.AftersalesCustomerMallVO; |
||||
import com.logpm.aftersales.excel.AftersalesCustomerMallExcel; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.springblade.core.mp.base.BaseService; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 异常工单商场对应客服 服务类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-12-23 |
||||
*/ |
||||
public interface IAftersalesCustomerMallService extends BaseService<AftersalesCustomerMallEntity> { |
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page |
||||
* @param aftersalesCustomerMall |
||||
* @return |
||||
*/ |
||||
IPage<AftersalesCustomerMallVO> selectAftersalesCustomerMallPage(IPage<AftersalesCustomerMallVO> page, AftersalesCustomerMallVO aftersalesCustomerMall); |
||||
|
||||
|
||||
/** |
||||
* 导出数据 |
||||
* |
||||
* @param queryWrapper |
||||
* @return |
||||
*/ |
||||
List<AftersalesCustomerMallExcel> exportAftersalesCustomerMall(Wrapper<AftersalesCustomerMallEntity> queryWrapper); |
||||
|
||||
} |
@ -0,0 +1,57 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.aftersales.service.impl; |
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import com.logpm.aftersales.entity.AftersalesCustomerMallEntity; |
||||
import com.logpm.aftersales.excel.AftersalesCustomerMallExcel; |
||||
import com.logpm.aftersales.mapper.AftersalesCustomerMallMapper; |
||||
import com.logpm.aftersales.service.IAftersalesCustomerMallService; |
||||
import com.logpm.aftersales.vo.AftersalesCustomerMallVO; |
||||
|
||||
import org.springblade.core.mp.base.BaseServiceImpl; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 异常工单商场对应客服 服务实现类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-12-23 |
||||
*/ |
||||
@Service |
||||
public class AftersalesCustomerMallServiceImpl extends BaseServiceImpl<AftersalesCustomerMallMapper, AftersalesCustomerMallEntity> implements IAftersalesCustomerMallService { |
||||
|
||||
@Override |
||||
public IPage<AftersalesCustomerMallVO> selectAftersalesCustomerMallPage(IPage<AftersalesCustomerMallVO> page, AftersalesCustomerMallVO aftersalesCustomerMall) { |
||||
return page.setRecords(baseMapper.selectAftersalesCustomerMallPage(page, aftersalesCustomerMall)); |
||||
} |
||||
|
||||
|
||||
@Override |
||||
public List<AftersalesCustomerMallExcel> exportAftersalesCustomerMall(Wrapper<AftersalesCustomerMallEntity> queryWrapper) { |
||||
List<AftersalesCustomerMallExcel> aftersalesCustomerMallList = baseMapper.exportAftersalesCustomerMall(queryWrapper); |
||||
//aftersalesCustomerMallList.forEach(aftersalesCustomerMall -> {
|
||||
// aftersalesCustomerMall.setTypeName(DictCache.getValue(DictEnum.YES_NO, AftersalesCustomerMall.getType()));
|
||||
//});
|
||||
return aftersalesCustomerMallList; |
||||
} |
||||
|
||||
} |
@ -0,0 +1,50 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.aftersales.wrapper; |
||||
|
||||
import org.springblade.core.mp.support.BaseEntityWrapper; |
||||
import org.springblade.core.tool.utils.BeanUtil; |
||||
import com.logpm.aftersales.entity.AftersalesCustomerMallEntity; |
||||
import com.logpm.aftersales.vo.AftersalesCustomerMallVO; |
||||
import java.util.Objects; |
||||
|
||||
/** |
||||
* 异常工单商场对应客服 包装类,返回视图层所需的字段 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-12-23 |
||||
*/ |
||||
public class AftersalesCustomerMallWrapper extends BaseEntityWrapper<AftersalesCustomerMallEntity, AftersalesCustomerMallVO> { |
||||
|
||||
public static AftersalesCustomerMallWrapper build() { |
||||
return new AftersalesCustomerMallWrapper(); |
||||
} |
||||
|
||||
@Override |
||||
public AftersalesCustomerMallVO entityVO(AftersalesCustomerMallEntity aftersalesCustomerMall) { |
||||
AftersalesCustomerMallVO aftersalesCustomerMallVO = Objects.requireNonNull(BeanUtil.copy(aftersalesCustomerMall, AftersalesCustomerMallVO.class)); |
||||
|
||||
//User createUser = UserCache.getUser(aftersalesCustomerMall.getCreateUser());
|
||||
//User updateUser = UserCache.getUser(aftersalesCustomerMall.getUpdateUser());
|
||||
//aftersalesCustomerMallVO.setCreateUserName(createUser.getName());
|
||||
//aftersalesCustomerMallVO.setUpdateUserName(updateUser.getName());
|
||||
|
||||
return aftersalesCustomerMallVO; |
||||
} |
||||
|
||||
|
||||
} |
Loading…
Reference in new issue