Commit a21933ab by jiang'yun

修改

parent 6384027d
......@@ -278,6 +278,11 @@
<artifactId>poi-tl</artifactId>
<version>1.12.1</version>
</dependency>
<dependency>
<groupId>io.github.draco1023</groupId>
<artifactId>poi-tl-ext</artifactId>
<version>0.4.23-poi5</version>
</dependency>
<!-- 处理 Base64 解码 -->
<dependency>
......
......@@ -41,7 +41,7 @@ public class SjSggyZjyCljlController extends BaseController
@GetMapping("/list")
public TableDataInfo list(SjSggyZjyCljl sjSggyZjyCljl)
{
startPage();
// startPage();
List<SjSggyZjyCljl> list = sjSggyZjyCljlService.selectSjSggyZjyCljlList(sjSggyZjyCljl);
return getDataTable(list);
}
......
package com.zjsgfa.project.zjsgfa.service.impl;
import java.util.List;
import cn.hutool.core.codec.Base64;
import com.zjsgfa.common.utils.DateUtils;
import com.zjsgfa.common.utils.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zjsgfa.project.zjsgfa.mapper.SjZysxMapper;
......@@ -53,6 +56,9 @@ public class SjZysxServiceImpl implements ISjZysxService
@Override
public int insertSjZysx(SjZysx sjZysx)
{
if(StringUtils.isNotEmpty(sjZysx.getZysx())){
sjZysx.setZysx(new String(Base64.decode(sjZysx.getZysx())));
}
return sjZysxMapper.insertSjZysx(sjZysx);
}
......@@ -65,6 +71,13 @@ public class SjZysxServiceImpl implements ISjZysxService
@Override
public int updateSjZysx(SjZysx sjZysx)
{
String lb = sjZysx.getLb();
if("喷漏卡塌".equals(lb) || "特殊岩性风险".equals(lb)){
if(StringUtils.isNotEmpty(sjZysx.getZysx())){
sjZysx.setZysx(new String(Base64.decode(sjZysx.getZysx())));
}
}
sjZysx.setUpdateTime(DateUtils.getNowDate());
return sjZysxMapper.updateSjZysx(sjZysx);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment