Commit 503c2be2 by yangxiujun

fix:修改上传

1 parent 9562cedc
......@@ -141,11 +141,6 @@
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>3.17</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
......
......@@ -101,6 +101,11 @@ public class FileController {
throw new BusinessException("用户未登录");
}
FileRateDTO rate = orderCreateService.getsuccessRate(token);
if (rate != null && (rate.getSuccessCount() == rate.getTotalCount())){
//上传成功,删除上传的进度条
orderCreateService.delRate(token);
}
if (rate == null) {
rate = new FileRateDTO();
rate.setRate("100%");
......@@ -112,7 +117,7 @@ public class FileController {
/**
* 订单批量模版下载
*
* @param response
* @param
*/
@GetMapping(value = "/file/downOrder")
public ResponseEntity<byte[]> downOrderTemplate() {
......@@ -127,7 +132,7 @@ public class FileController {
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
EasyExcel.write(outputStream, OrderInfoExcelDTO.class)
//不设置字体 .registerWriteHandler(ExcelUtil.getDefaultWriteHandler())
.registerWriteHandler(ExcelUtil.getDefaultWriteHandler())
.registerConverter(new DateStringConverter())
.registerConverter(new BigDecimalStringConverter())
.sheet("工单列表").doWrite(arrayList);
......
......@@ -7,7 +7,7 @@ import com.dituhui.pea.pojo.saas.req.AdministrativeDistrictReq;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
@FeignClient(url = "${SaaS.url}", name = "saasService")
@FeignClient(url = "${SaaS.urlBack}", name = "saasService")
public interface ISaaSRemoteService {
@PostMapping("/v1/bsh/area/add")
......
......@@ -228,7 +228,7 @@ public class FendanServiceImpl implements FendanService {
@Override
public Result<OrgTeamInfo> fendanToGroupCapacity(OrderDTO.OrderCreateRequest request, Integer isDate, LocalDate targetDate, LocalTime startTime, LocalTime endTime) {
List<OrgGroupInfo> orgGroupTeamInfos = new ArrayList<>();
String peaBrand = fixBrand(request.getBrand());
String peaBrand = request.getBrand();
SkillInfoEntity skillInfo = skillInfoDao.getByBrandAndTypeAndSkill(peaBrand, request.getProductType(), request.getServiceType());
if (ObjectUtil.isNull(skillInfo)) {
return Result.failed(StatusCodeEnum.ORDER_SKILL_NOT_EXISTS);
......
......@@ -62,6 +62,7 @@ sentry:
exception-resolver-order: -2147483647
SaaS:
urlBack: http://119.3.39.114:8034
url: http://119.3.39.114:8100
ak: 216d013687ba46f5ad990e9380ec56c6
userAccount: 1YL+MfLj/Oy70Dvbvn3mYg==
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!