测试问题修改

This commit is contained in:
cwchen 2025-04-15 18:51:43 +08:00
parent ed4bf502ff
commit 10bbfc4745
5 changed files with 14 additions and 15 deletions

View File

@ -63,7 +63,7 @@ public class ProPullTask {
String localPath = SystemUtils.getUploadPath() + item.getOriginalFilePath(); String localPath = SystemUtils.getUploadPath() + item.getOriginalFilePath();
List<String> sb = new ArrayList<>(); List<String> sb = new ArrayList<>();
sb.add(item.getVioDate()); sb.add(item.getVioDate());
sb.add(item.getProName()); sb.add(item.getProName().replaceAll("(.{18})", "$1@@"));
if(item.getSourceTypeName().contains("-")){ if(item.getSourceTypeName().contains("-")){
String[] split = item.getSourceTypeName().split("-"); String[] split = item.getSourceTypeName().split("-");
sb.add(split[0]); sb.add(split[0]);

View File

@ -276,7 +276,7 @@ public class HighQualityWatermark {
if ("center".equalsIgnoreCase(position)) { if ("center".equalsIgnoreCase(position)) {
x = (imgWidth - lineWidth) / 2; x = (imgWidth - lineWidth) / 2;
} }
line = line.replaceAll("@@","");
g2d.drawString(line, x, currentY); g2d.drawString(line, x, currentY);
currentY += lineHeight; currentY += lineHeight;
} }
@ -348,8 +348,8 @@ public class HighQualityWatermark {
watermarkLines.add(proName.replaceAll("(.{18})", "$1@@")); watermarkLines.add(proName.replaceAll("(.{18})", "$1@@"));
watermarkLines.add("安全违章"); watermarkLines.add("安全违章");
watermarkLines.add("违章照片"); watermarkLines.add("违章照片");
String localPath = "C:\\Users\\10488\\Desktop\\新建文件夹 (2)\\2.png"; String localPath = "C:\\Users\\10488\\Desktop\\174470065630950048665.jpg";
String outPath = "C:\\Users\\10488\\Desktop\\output.png"; String outPath = "C:\\Users\\10488\\Desktop\\output.jpg";
// 添加高质量水印 // 添加高质量水印
addHighQualityWatermark(localPath, outPath, addHighQualityWatermark(localPath, outPath,
watermarkLines, "bottom-left", watermarkLines, "bottom-left",

View File

@ -498,16 +498,15 @@
A.dict_name AS sourceTypeName, A.dict_name AS sourceTypeName,
tcq.title, tcq.title,
tcq.pro_name AS proName tcq.pro_name AS proName
FROM tb_comprehensive_query tcq FROM sys_file_resource sfr
LEFT JOIN sys_file_resource sfr LEFT JOIN tb_comprehensive_query tcq ON tcq.id = sfr.source_id AND tcq.upload_type = sfr.upload_type AND tcq.is_active = '1'
ON tcq.id = sfr.source_id AND tcq.upload_type = sfr.upload_type AND sfr.is_active = '1' LEFT JOIN (SELECT sd.dict_value, sd.dict_name
LEFT JOIN (SELECT sd.dict_value, sd.dict_name FROM sys_distinct sd
FROM sys_distinct sd LEFT JOIN sys_distinct sd2 ON sd.p_id = sd2.id
LEFT JOIN sys_distinct sd2 ON sd.p_id = sd2.id WHERE sd2.dict_code = 'file_source_type'
WHERE sd2.dict_code = 'file_source_type' AND sd.del_flag = 0) A ON A.dict_value = sfr.source_type
AND sd.del_flag = 0) A ON A.dict_value = sfr.source_type
WHERE tcq.pro_id = #{proId} WHERE tcq.pro_id = #{proId}
AND tcq.is_active = '1' AND sfr.is_active = '1'
AND sfr.watermark_file_path IS NULL AND sfr.watermark_file_path IS NULL
</select> </select>

View File

@ -143,7 +143,7 @@
<select id="getNotHaveWatermarkPhoto" resultType="com.bonus.imgTool.system.vo.dto.FileStorageDto"> <select id="getNotHaveWatermarkPhoto" resultType="com.bonus.imgTool.system.vo.dto.FileStorageDto">
SELECT SELECT
sfr.id, sfr.id,
IFNULL(tcq.vio_date,"") as vioDate, DATE_FORMAT(sfr.create_time,'%Y-%m-%d') as vioDate,
IFNULL(tcq.pro_name,"") as proName, IFNULL(tcq.pro_name,"") as proName,
sd.dict_name AS sourceTypeName, sd.dict_name AS sourceTypeName,
sfr.original_file_path sfr.original_file_path

View File

@ -192,7 +192,7 @@ function initListData(list) {
$.each(list, function (index, item) { $.each(list, function (index, item) {
let html = "<div class='list-info'>" + let html = "<div class='list-info'>" +
" <div class='info-data layout'>" + " <div class='info-data layout'>" +
" <p>" + item.vioDate + "</p>" + " <p>" + (item.vioDate || '/') + "</p>" +
" <p class='img-color" + (item.uploadType) + "'>" + item.uploadTypeName + "</p>" + " <p class='img-color" + (item.uploadType) + "'>" + item.uploadTypeName + "</p>" +
" </div>" + " </div>" +
setBasicInfo(item) + setBasicInfo(item) +