206 changed files with 6658 additions and 253 deletions
@ -0,0 +1,42 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.commons.tools.dto.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* epmet-user端调用gov-org端的入参 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class CustomerGridFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
/** |
||||
|
* 网格Id |
||||
|
*/ |
||||
|
@NotBlank(message = "网格ID不能为空", groups = {Grid.class}) |
||||
|
private String gridId; |
||||
|
|
||||
|
public interface Grid{} |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,29 @@ |
|||||
|
package com.epmet.commons.tools.feign; |
||||
|
|
||||
|
import com.epmet.commons.tools.constant.ServiceConstant; |
||||
|
import com.epmet.commons.tools.dto.form.CustomerGridFormDTO; |
||||
|
import com.epmet.commons.tools.feign.fallback.CommonGovOrgFeignClientFallBackFactory; |
||||
|
import com.epmet.commons.tools.redis.common.bean.GridInfoCache; |
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2022/3/17 1:42 下午 |
||||
|
* @DESC |
||||
|
*/ |
||||
|
@FeignClient(name = ServiceConstant.GOV_ORG_SERVER, fallbackFactory = CommonGovOrgFeignClientFallBackFactory.class) |
||||
|
public interface CommonGovOrgFeignClient { |
||||
|
|
||||
|
/** |
||||
|
* @Description 查询网格信息 |
||||
|
* @param customerGridFormDTO |
||||
|
* @author zxc |
||||
|
* @date 2021/11/5 2:54 下午 |
||||
|
*/ |
||||
|
@PostMapping("/gov/org/grid/getbaseinfo") |
||||
|
Result<GridInfoCache> getGridInfo(@RequestBody CustomerGridFormDTO customerGridFormDTO); |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,24 @@ |
|||||
|
package com.epmet.commons.tools.feign.fallback; |
||||
|
|
||||
|
import com.epmet.commons.tools.exception.ExceptionUtils; |
||||
|
import com.epmet.commons.tools.feign.CommonGovOrgFeignClient; |
||||
|
import feign.hystrix.FallbackFactory; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2022/3/17 1:46 下午 |
||||
|
* @DESC |
||||
|
*/ |
||||
|
@Slf4j |
||||
|
@Component |
||||
|
public class CommonGovOrgFeignClientFallBackFactory implements FallbackFactory<CommonGovOrgFeignClient> { |
||||
|
private CommonGovOrgFeignClientFallback fallback = new CommonGovOrgFeignClientFallback(); |
||||
|
@Override |
||||
|
public CommonGovOrgFeignClient create(Throwable cause) { |
||||
|
log.error(String.format("FeignClient调用发生异常,异常信息:%s", ExceptionUtils.getThrowableErrorStackTrace(cause))); |
||||
|
return fallback; |
||||
|
} |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package com.epmet.commons.tools.feign.fallback; |
||||
|
|
||||
|
import com.epmet.commons.tools.constant.ServiceConstant; |
||||
|
import com.epmet.commons.tools.dto.form.CustomerGridFormDTO; |
||||
|
import com.epmet.commons.tools.feign.CommonGovOrgFeignClient; |
||||
|
import com.epmet.commons.tools.redis.common.bean.GridInfoCache; |
||||
|
import com.epmet.commons.tools.utils.ModuleUtils; |
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
/** |
||||
|
* 调用政府端权限 |
||||
|
* @Author wxz |
||||
|
* @Description |
||||
|
* @Date 2020/4/24 11:17 |
||||
|
**/ |
||||
|
@Component |
||||
|
public class CommonGovOrgFeignClientFallback implements CommonGovOrgFeignClient { |
||||
|
|
||||
|
@Override |
||||
|
public Result<GridInfoCache> getGridInfo(CustomerGridFormDTO customerGridFormDTO) { |
||||
|
return ModuleUtils.feignConError(ServiceConstant.GOV_ORG_SERVER, "getGridInfo", customerGridFormDTO); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
@ -0,0 +1,183 @@ |
|||||
|
package com.epmet.commons.tools.utils; |
||||
|
|
||||
|
|
||||
|
import com.google.zxing.BarcodeFormat; |
||||
|
import com.google.zxing.EncodeHintType; |
||||
|
import com.google.zxing.MultiFormatWriter; |
||||
|
import com.google.zxing.WriterException; |
||||
|
import com.google.zxing.client.j2se.MatrixToImageConfig; |
||||
|
import com.google.zxing.client.j2se.MatrixToImageWriter; |
||||
|
import com.google.zxing.common.BitMatrix; |
||||
|
import com.google.zxing.common.CharacterSetECI; |
||||
|
import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel; |
||||
|
|
||||
|
import javax.imageio.ImageIO; |
||||
|
import java.awt.*; |
||||
|
import java.awt.image.BufferedImage; |
||||
|
import java.io.ByteArrayOutputStream; |
||||
|
import java.io.File; |
||||
|
import java.io.IOException; |
||||
|
import java.util.HashMap; |
||||
|
|
||||
|
/** |
||||
|
* Date: 2021/08/27 16:01 |
||||
|
* Description:二维码生成工具类 |
||||
|
*/ |
||||
|
public class BarcodeUtils { |
||||
|
/** |
||||
|
* 二维码颜色 默认是黑色 |
||||
|
*/ |
||||
|
private static final Color QRCOLOR = Color.black; |
||||
|
/** |
||||
|
* 背景颜色 |
||||
|
*/ |
||||
|
private static final Color BGWHITE = Color.white; |
||||
|
public static final int WIDTH = 360; |
||||
|
public static final int HEIGHT = 512; |
||||
|
public static final int MARGIN = 2; |
||||
|
public static final int FONTSIZE = 20; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* // 二维码生成
|
||||
|
* |
||||
|
* @param contents 说明 |
||||
|
* @return BufferedImage |
||||
|
* @throws Exception |
||||
|
*/ |
||||
|
public static BufferedImage drawQRImage(String pressText, String contents) throws Exception { |
||||
|
BufferedImage qRImage = null; |
||||
|
if (contents == null || "".equals(contents)) { |
||||
|
throw new Exception("content说明不能为空"); |
||||
|
} |
||||
|
// 二维码参数设置
|
||||
|
HashMap<EncodeHintType, Object> hints = new HashMap<>(); |
||||
|
hints.put(EncodeHintType.CHARACTER_SET, CharacterSetECI.UTF8); // 编码设置
|
||||
|
hints.put(EncodeHintType.ERROR_CORRECTION, ErrorCorrectionLevel.H); // 安全等级,最高h
|
||||
|
hints.put(EncodeHintType.MARGIN, MARGIN); // 设置margin=0-10
|
||||
|
|
||||
|
// 二维码图片的生成
|
||||
|
BarcodeFormat format = BarcodeFormat.QR_CODE; |
||||
|
// 创建矩阵容器
|
||||
|
BitMatrix matrix = null; |
||||
|
try { |
||||
|
matrix = new MultiFormatWriter().encode(contents, format, WIDTH, HEIGHT, hints); |
||||
|
} catch (WriterException e) { |
||||
|
e.printStackTrace(); |
||||
|
} |
||||
|
|
||||
|
// 设置矩阵转为图片的参数
|
||||
|
MatrixToImageConfig toImageConfig = new MatrixToImageConfig(QRCOLOR.getRGB(), BGWHITE.getRGB()); |
||||
|
|
||||
|
// 矩阵转换图像
|
||||
|
qRImage = MatrixToImageWriter.toBufferedImage(matrix, toImageConfig); |
||||
|
return pressText(pressText, qRImage); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param pressText 二维码下方插入文字 |
||||
|
* @param image 需要添加文字的图片 |
||||
|
* @为图片添加文字 |
||||
|
*/ |
||||
|
private static BufferedImage pressText(String pressText, BufferedImage image) throws Exception { |
||||
|
|
||||
|
BufferedImage outImage = new BufferedImage(WIDTH, HEIGHT, BufferedImage.TYPE_INT_RGB); |
||||
|
//计算文字开始的位置
|
||||
|
//x开始的位置:(图片宽度-字体大小*字的个数)/2
|
||||
|
int startX = (WIDTH - (FONTSIZE * pressText.length())) / 2; |
||||
|
//y开始的位置:图片高度-(图片高度-图片宽度)/2
|
||||
|
int startY = HEIGHT - (HEIGHT - WIDTH) / 2 + FONTSIZE; |
||||
|
|
||||
|
int imageW = outImage.getWidth(); |
||||
|
int imageH = outImage.getHeight(); |
||||
|
Graphics2D g = outImage.createGraphics(); |
||||
|
g.drawImage(image, 0, 0, imageW, imageH, null); |
||||
|
g.setColor(QRCOLOR); |
||||
|
g.setFont(new Font("Noto Sans SC Light", Font.BOLD, FONTSIZE)); |
||||
|
g.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON); |
||||
|
g.setBackground(Color.white); |
||||
|
// 获取文字数量 按照字节展示
|
||||
|
int size = pressText.getBytes("GBK").length; |
||||
|
// 获取一行最多能容纳多少文字 按照文字字节展示
|
||||
|
int maxSize = (WIDTH / FONTSIZE - 2) * 2; |
||||
|
if (size > maxSize) { |
||||
|
int v = size % maxSize; |
||||
|
for (int a = 0; a < (size / maxSize); a++) { |
||||
|
String s = outStringByByte(pressText, maxSize); |
||||
|
g.drawString(s, (WIDTH - (FONTSIZE * (WIDTH / FONTSIZE - 2))) / 2, startY); |
||||
|
pressText = pressText.substring(s.length(), pressText.length()); |
||||
|
startY = startY + 35; |
||||
|
} |
||||
|
if (v != 0) { |
||||
|
g.drawString(pressText, (WIDTH - (FONTSIZE * v)) / 2, startY); |
||||
|
} |
||||
|
} else { |
||||
|
g.drawString(pressText, (WIDTH - ((pressText.getBytes("GBK").length) / 2) * FONTSIZE) / 2, startY); |
||||
|
} |
||||
|
|
||||
|
g.dispose(); |
||||
|
return outImage; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 保存二维码图片到本地 |
||||
|
* |
||||
|
* @param contents |
||||
|
* @throws Exception |
||||
|
*/ |
||||
|
public static void createImg(String pressText, String contents, String filename, String filePath) throws Exception { |
||||
|
BufferedImage qRImageWithLogo = drawQRImage(pressText, contents); |
||||
|
// 写入返回
|
||||
|
ByteArrayOutputStream baos = new ByteArrayOutputStream(); |
||||
|
ImageIO.write(qRImageWithLogo, "jpg", baos); |
||||
|
//图片类型
|
||||
|
String imageType = "jpg"; |
||||
|
//生成二维码存放文件
|
||||
|
File file = new File(filePath + filename + ".jpg"); |
||||
|
if (!file.exists()) { |
||||
|
file.mkdirs(); |
||||
|
} |
||||
|
ImageIO.write(qRImageWithLogo, imageType, file); |
||||
|
baos.close(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
private static String outStringByByte(String str, int len) throws IOException { |
||||
|
byte[] btf = str.getBytes("GBK"); |
||||
|
int count = 0; |
||||
|
|
||||
|
for (int j = len - 1; j >= 0; j--) { |
||||
|
if (btf[j] < 0) { |
||||
|
count++; |
||||
|
} else { |
||||
|
break; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
if (count % 2 == 0) { |
||||
|
return new String(btf, 0, len, "GBK"); |
||||
|
} else { |
||||
|
return new String(btf, 0, len - 1, "GBK"); |
||||
|
} |
||||
|
} |
||||
|
/*public static void main(String[] args) { |
||||
|
try { |
||||
|
BufferedImage image = BarcodeUtils.drawQRImage("小崽子社区中国国歌过过过过过所多对方水电费是的发生的", "https://epmet-cloud.elinkservice.cn/epmet-oper-gov/#/caiji/b058eb82d65d922fec9dc84f0348fc6a?name=%E5%B0%8F%E5%AF%A8%E5%AD%90%E7%A4%BE%E5%8C%BA&customerId=3fdd0380deff5b30f45376cdf995d1c1&type=community&userId=72d331139a5012b6bba18b40029a2755&123123123111"); |
||||
|
//BufferedImage image = BarcodeUtils.drawQRImage("小崽子社区", "erId=72d331139a5012b6bba18b40029a2755&123123123111");
|
||||
|
//BufferedImage image2 = BarcodeUtils.getQRCode("小崽子社区", "https://epmet-cloud.elinkservice.cn/epmet-oper-gov/#/caiji/b058eb82d65d922fec9dc84f0348fc6a?name=%E5%B0%8F%E5%AF%A8%E5%AD%90%E7%A4%BE%E5%8C%BA&customerId=3fdd0380deff5b30f45376cdf995d1c1&type=community&userId=72d331139a5012b6bba18b40029a2755&123123123111");
|
||||
|
//BufferedImage 转 InputStream
|
||||
|
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); |
||||
|
ImageOutputStream imageOutput = ImageIO.createImageOutputStream(byteArrayOutputStream); |
||||
|
ImageIO.write(image, "png", imageOutput); |
||||
|
InputStream inputStream = new ByteArrayInputStream(byteArrayOutputStream.toByteArray()); |
||||
|
String s = "/Users/liujianjun/Downloads/t.png"; |
||||
|
File file= new File(s); |
||||
|
FileUtils.copyInputStreamToFile(inputStream, file); |
||||
|
} catch (Exception e) { |
||||
|
e.printStackTrace(); |
||||
|
} |
||||
|
}*/ |
||||
|
|
||||
|
} |
||||
|
|
||||
Binary file not shown.
Binary file not shown.
@ -0,0 +1,34 @@ |
|||||
|
package com.epmet.dto.form; |
||||
|
|
||||
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
||||
|
import lombok.Data; |
||||
|
import org.springframework.format.annotation.DateTimeFormat; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
/** |
||||
|
* @Author sun |
||||
|
* @Description 书记日志-待提醒弹框-提醒内容列表-接口入参 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class MemosToRemindFormDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 4859779755214502427L; |
||||
|
public interface MemoAttr extends CustomerClientShowGroup {} |
||||
|
/** |
||||
|
* 待提醒业务Id |
||||
|
*/ |
||||
|
@NotBlank(message = "待提醒业务Id不能为空", groups = { MemoAttr.class }) |
||||
|
private String memoId; |
||||
|
/** |
||||
|
* 到期提醒时间,不传值默认查询当前时间之前的数据(yyyy-MM-dd) |
||||
|
*/ |
||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||
|
private String remindTime; |
||||
|
|
||||
|
//token中用户Id
|
||||
|
private String userId; |
||||
|
|
||||
|
} |
||||
|
|
||||
@ -0,0 +1,42 @@ |
|||||
|
package com.epmet.dto.result; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import lombok.AllArgsConstructor; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
/** |
||||
|
* @Author sun |
||||
|
* @Description 书记日志-待提醒弹框-提醒内容列表-接口返参 |
||||
|
**/ |
||||
|
@Data |
||||
|
@AllArgsConstructor |
||||
|
public class MemosToRemindResultDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 4769136806332933579L; |
||||
|
|
||||
|
/** |
||||
|
* 对应业务数据Id |
||||
|
*/ |
||||
|
private String memoId; |
||||
|
/** |
||||
|
* 业务类型 人员关怀:concern;难点堵点:difficulty;工作日志:work_diary |
||||
|
*/ |
||||
|
private String type; |
||||
|
/** |
||||
|
* 业务类型 人员关怀:concern;难点堵点:difficulty;工作日志:work_diary |
||||
|
*/ |
||||
|
private String typeName; |
||||
|
/** |
||||
|
* 提醒内容 |
||||
|
*/ |
||||
|
private String content; |
||||
|
/** |
||||
|
* 提醒时间(日期类型) |
||||
|
*/ |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") |
||||
|
private String remindTime; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,15 @@ |
|||||
|
package com.epmet.dto.form; |
||||
|
|
||||
|
import com.epmet.commons.tools.validator.group.AddGroup; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
|
||||
|
@Data |
||||
|
public class AbandonGridFormDTO implements Serializable { |
||||
|
@NotBlank(message = "网格id不能为空",groups = AddGroup.class) |
||||
|
private String gridId; |
||||
|
private String userId; |
||||
|
} |
||||
@ -0,0 +1,29 @@ |
|||||
|
package com.epmet.dto.form; |
||||
|
|
||||
|
import com.epmet.commons.tools.validator.group.Group; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2022/3/18 15:43 |
||||
|
* @DESC |
||||
|
*/ |
||||
|
@Data |
||||
|
public class CreateQrCodeFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = -6801094057381407439L; |
||||
|
|
||||
|
public interface CreateQrCodeForm{} |
||||
|
|
||||
|
@NotBlank(message = "id不能为空",groups = CreateQrCodeForm.class) |
||||
|
private String id; |
||||
|
|
||||
|
/** |
||||
|
* community:社区,neighborHood:小区 |
||||
|
*/ |
||||
|
@NotBlank(message = "type不能为空",groups = CreateQrCodeForm.class) |
||||
|
private String type; |
||||
|
} |
||||
@ -0,0 +1,20 @@ |
|||||
|
package com.epmet.dto.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2022/3/21 15:11 |
||||
|
* @DESC |
||||
|
*/ |
||||
|
@Data |
||||
|
public class CommunityListResultDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 4336149113821131764L; |
||||
|
|
||||
|
private String orgId; |
||||
|
|
||||
|
private String orgName; |
||||
|
} |
||||
@ -0,0 +1,23 @@ |
|||||
|
package com.epmet.dto.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2022/3/15 10:43 上午 |
||||
|
* @DESC |
||||
|
*/ |
||||
|
@Data |
||||
|
public class DelPartyServiceCenterResultDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = -2238226229442700788L; |
||||
|
|
||||
|
private String date; |
||||
|
private String matterId; |
||||
|
private String timeId; |
||||
|
private String startTime; |
||||
|
private String endTime; |
||||
|
private String centerName; |
||||
|
} |
||||
@ -0,0 +1,19 @@ |
|||||
|
package com.epmet.dto.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2022/3/25 10:46 |
||||
|
* @DESC |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ExistHouseInfoResultDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = -6350975846409029631L; |
||||
|
|
||||
|
private String name; |
||||
|
private String houseId; |
||||
|
} |
||||
Binary file not shown.
@ -0,0 +1,3 @@ |
|||||
|
alter table customer_grid |
||||
|
add column ABANDON_FLAG TINYINT(1) NOT NULL default '0' |
||||
|
comment '弃用:1;正常使用:0' after SYNC_FLAG; |
||||
@ -0,0 +1,4 @@ |
|||||
|
ALTER TABLE `epmet_gov_org`.`ic_house` |
||||
|
MODIFY COLUMN `OWNER_NAME` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '房主姓名' AFTER `RENT_FLAG`, |
||||
|
MODIFY COLUMN `OWNER_PHONE` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '房主电话' AFTER `OWNER_NAME`, |
||||
|
MODIFY COLUMN `OWNER_ID_CARD` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '房主身份证号' AFTER `OWNER_PHONE`; |
||||
@ -0,0 +1,115 @@ |
|||||
|
package com.epmet.dto; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 备忘录-附件表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-03-15 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class MemoAttachmentDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
@JsonIgnore |
||||
|
private String id; |
||||
|
|
||||
|
/** |
||||
|
* 客户ID |
||||
|
*/ |
||||
|
@JsonIgnore |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* REMIND_MSG.ID 业务(工作日志、难点堵点、人员关怀)表Id |
||||
|
*/ |
||||
|
@JsonIgnore |
||||
|
private String remindMsgId; |
||||
|
|
||||
|
/** |
||||
|
* 文件名 |
||||
|
*/ |
||||
|
private String fileName; |
||||
|
|
||||
|
/** |
||||
|
* 附件名(uuid随机生成) |
||||
|
*/ |
||||
|
private String attachmentName; |
||||
|
|
||||
|
/** |
||||
|
* 文件大小,单位b |
||||
|
*/ |
||||
|
private Integer attachmentSize; |
||||
|
|
||||
|
/** |
||||
|
* 文件格式(JPG、PNG、PDF、JPEG、BMP、MP4、WMA、M4A、MP3、DOC、DOCX、XLS) |
||||
|
*/ |
||||
|
private String attachmentFormat; |
||||
|
|
||||
|
/** |
||||
|
* 附件类型((图片 - image、 视频 - video、 语音 - voice、 文档 - doc)) |
||||
|
*/ |
||||
|
private String attachmentType; |
||||
|
|
||||
|
/** |
||||
|
* 附件地址 |
||||
|
*/ |
||||
|
private String attachmentUrl; |
||||
|
|
||||
|
/** |
||||
|
* 语音或视频时长,秒 |
||||
|
*/ |
||||
|
private Integer duration; |
||||
|
|
||||
|
/** |
||||
|
* 排序字段 |
||||
|
*/ |
||||
|
@JsonIgnore |
||||
|
private Integer sort; |
||||
|
|
||||
|
/** |
||||
|
* 删除标记 0:未删除,1:已删除 |
||||
|
*/ |
||||
|
@JsonIgnore |
||||
|
private String delFlag; |
||||
|
|
||||
|
/** |
||||
|
* 乐观锁 |
||||
|
*/ |
||||
|
@JsonIgnore |
||||
|
private Integer revision; |
||||
|
|
||||
|
/** |
||||
|
* 创建人 |
||||
|
*/ |
||||
|
@JsonIgnore |
||||
|
private String createdBy; |
||||
|
|
||||
|
/** |
||||
|
* 创建时间 |
||||
|
*/ |
||||
|
private Date createdTime; |
||||
|
|
||||
|
/** |
||||
|
* 更新人 |
||||
|
*/ |
||||
|
@JsonIgnore |
||||
|
private String updatedBy; |
||||
|
|
||||
|
/** |
||||
|
* 更新时间 |
||||
|
*/ |
||||
|
@JsonIgnore |
||||
|
private Date updatedTime; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,80 @@ |
|||||
|
package com.epmet.dto; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 备忘录-属性表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-03-15 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class MemoAttrDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 唯一标识 |
||||
|
*/ |
||||
|
private String id; |
||||
|
|
||||
|
/** |
||||
|
* 客户ID |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 提醒时间 |
||||
|
*/ |
||||
|
private Date remindTime; |
||||
|
|
||||
|
/** |
||||
|
* 业务类型 人员关怀:concern;难点堵点:difficulty;工作日志:work_diary |
||||
|
*/ |
||||
|
private String type; |
||||
|
|
||||
|
/** |
||||
|
* 阅读标记1 已读;0未读 |
||||
|
*/ |
||||
|
private Integer readFlag; |
||||
|
|
||||
|
/** |
||||
|
* 接收人ID |
||||
|
*/ |
||||
|
private String receiver; |
||||
|
|
||||
|
/** |
||||
|
* 删除标识:0.未删除 1.已删除 |
||||
|
*/ |
||||
|
private String delFlag; |
||||
|
|
||||
|
/** |
||||
|
* 乐观锁 |
||||
|
*/ |
||||
|
private Integer revision; |
||||
|
|
||||
|
/** |
||||
|
* 创建人 |
||||
|
*/ |
||||
|
private String createdBy; |
||||
|
|
||||
|
/** |
||||
|
* 创建时间 |
||||
|
*/ |
||||
|
private Date createdTime; |
||||
|
|
||||
|
/** |
||||
|
* 更新人 |
||||
|
*/ |
||||
|
private String updatedBy; |
||||
|
|
||||
|
/** |
||||
|
* 更新时间 |
||||
|
*/ |
||||
|
private Date updatedTime; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,120 @@ |
|||||
|
package com.epmet.dto; |
||||
|
|
||||
|
import com.epmet.commons.tools.validator.group.AddGroup; |
||||
|
import com.epmet.commons.tools.validator.group.UpdateGroup; |
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 备忘录-人文关怀 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-03-15 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class MemoConcernDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 唯一标识(同memo_attr表Id) |
||||
|
*/ |
||||
|
@NotBlank(message = "ID不能为空", groups = { UpdateGroup.class }) |
||||
|
private String id; |
||||
|
|
||||
|
/** |
||||
|
* 客户ID |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 关怀类型 |
||||
|
*/ |
||||
|
private String concernType; |
||||
|
|
||||
|
/** |
||||
|
* 关怀对象 |
||||
|
*/ |
||||
|
@NotBlank(message = "关怀人员不能为空", groups = { AddGroup.class, UpdateGroup.class }) |
||||
|
private String resiName; |
||||
|
|
||||
|
/** |
||||
|
* 关怀对象电话 |
||||
|
*/ |
||||
|
private String phone; |
||||
|
|
||||
|
/** |
||||
|
* 关怀对象地址 |
||||
|
*/ |
||||
|
private String address; |
||||
|
|
||||
|
/** |
||||
|
* 关怀事项 |
||||
|
*/ |
||||
|
@NotBlank(message = "关怀事项不能为空", groups = { AddGroup.class, UpdateGroup.class }) |
||||
|
private String content; |
||||
|
|
||||
|
/** |
||||
|
* 预计关怀时间 |
||||
|
*/ |
||||
|
@JsonFormat(pattern="yyyy-MM-dd HH:mm") |
||||
|
private Date scheduledTime; |
||||
|
|
||||
|
/** |
||||
|
* 实际执行时间(预留字段) |
||||
|
*/ |
||||
|
@JsonFormat(pattern="yyyy-MM-dd HH:mm") |
||||
|
private Date actualTime; |
||||
|
|
||||
|
/** |
||||
|
* 状态 0未完成 1已完成 |
||||
|
*/ |
||||
|
private Integer status; |
||||
|
|
||||
|
/** |
||||
|
* 提醒时间 |
||||
|
*/ |
||||
|
@JsonFormat(pattern="yyyy-MM-dd HH:mm") |
||||
|
private Date remindTime; |
||||
|
|
||||
|
/** |
||||
|
* 删除标识:0.未删除 1.已删除 |
||||
|
*/ |
||||
|
private String delFlag; |
||||
|
|
||||
|
/** |
||||
|
* 乐观锁 |
||||
|
*/ |
||||
|
private Integer revision; |
||||
|
|
||||
|
/** |
||||
|
* 操作人 |
||||
|
*/ |
||||
|
private String createdBy; |
||||
|
|
||||
|
/** |
||||
|
* 创建时间 |
||||
|
*/ |
||||
|
@JsonFormat(pattern="yyyy-MM-dd HH:mm") |
||||
|
private Date createdTime; |
||||
|
|
||||
|
/** |
||||
|
* 更新人 |
||||
|
*/ |
||||
|
private String updatedBy; |
||||
|
|
||||
|
/** |
||||
|
* 更新时间 |
||||
|
*/ |
||||
|
private Date updatedTime; |
||||
|
/** |
||||
|
* 附件 |
||||
|
*/ |
||||
|
private List<MemoAttachmentDTO> attachmentList; |
||||
|
} |
||||
@ -0,0 +1,91 @@ |
|||||
|
package com.epmet.dto; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 备忘录-难点读点 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-03-15 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class MemoDifficultyDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 唯一标识(同memo_attr表Id) |
||||
|
*/ |
||||
|
private String id; |
||||
|
|
||||
|
/** |
||||
|
* 客户ID |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 内容 |
||||
|
*/ |
||||
|
private String content; |
||||
|
|
||||
|
/** |
||||
|
* 解决方式 |
||||
|
*/ |
||||
|
private String resolveWay; |
||||
|
|
||||
|
/** |
||||
|
* 备注 |
||||
|
*/ |
||||
|
private String remark; |
||||
|
|
||||
|
/** |
||||
|
* 预计处理时间 |
||||
|
*/ |
||||
|
@JsonFormat(pattern="yyyy-MM-dd HH:mm") |
||||
|
private Date scheduledTime; |
||||
|
|
||||
|
/** |
||||
|
* 提醒时间 |
||||
|
*/ |
||||
|
@JsonFormat(pattern="yyyy-MM-dd HH:mm") |
||||
|
private Date remindTime; |
||||
|
|
||||
|
/** |
||||
|
* 删除标识:0.未删除 1.已删除 |
||||
|
*/ |
||||
|
private String delFlag; |
||||
|
|
||||
|
/** |
||||
|
* 乐观锁 |
||||
|
*/ |
||||
|
private Integer revision; |
||||
|
|
||||
|
/** |
||||
|
* 创建人 |
||||
|
*/ |
||||
|
private String createdBy; |
||||
|
|
||||
|
/** |
||||
|
* 创建时间 |
||||
|
*/ |
||||
|
@JsonFormat(pattern="yyyy-MM-dd HH:mm") |
||||
|
private Date createdTime; |
||||
|
|
||||
|
/** |
||||
|
* 更新人 |
||||
|
*/ |
||||
|
private String updatedBy; |
||||
|
|
||||
|
/** |
||||
|
* 更新时间 |
||||
|
*/ |
||||
|
private Date updatedTime; |
||||
|
|
||||
|
private List<MemoAttachmentDTO> attachmentList; |
||||
|
} |
||||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue