正在显示
2 个修改的文件
包含
25 行增加
和
1 行删除
| @@ -340,6 +340,8 @@ public class TblTradePriceInquiryController { | @@ -340,6 +340,8 @@ public class TblTradePriceInquiryController { | ||
| 340 | */ | 340 | */ |
| 341 | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) | 341 | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| 342 | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { | 342 | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| 343 | + SimpleDateFormat sft = new SimpleDateFormat("yyyy-MM-dd"); | ||
| 344 | + | ||
| 343 | MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; | 345 | MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; |
| 344 | Iterator<String> fileNames = multipartRequest.getFileNames(); | 346 | Iterator<String> fileNames = multipartRequest.getFileNames(); |
| 345 | while (fileNames.hasNext()) { | 347 | while (fileNames.hasNext()) { |
| @@ -387,7 +389,7 @@ public class TblTradePriceInquiryController { | @@ -387,7 +389,7 @@ public class TblTradePriceInquiryController { | ||
| 387 | 389 | ||
| 388 | tblTradeBidSubInfo.setBidTotalPrice(new BigDecimal(cellTypeToString(row.getCell(10)))); // 总价(不含税,元) | 390 | tblTradeBidSubInfo.setBidTotalPrice(new BigDecimal(cellTypeToString(row.getCell(10)))); // 总价(不含税,元) |
| 389 | tblTradeBidSubService.updateById(tblTradeBidSubInfo); | 391 | tblTradeBidSubService.updateById(tblTradeBidSubInfo); |
| 390 | - | 392 | + TblTradeBidSub tblTradeBidSub = tblTradeBidSubService.getById(tblTradeBidSubInfo.getId()); |
| 391 | 393 | ||
| 392 | 394 | ||
| 393 | // TblTradeBidMaterialDetails materialInfo = new TblTradeBidMaterialDetails(); | 395 | // TblTradeBidMaterialDetails materialInfo = new TblTradeBidMaterialDetails(); |
| @@ -431,6 +433,15 @@ public class TblTradePriceInquiryController { | @@ -431,6 +433,15 @@ public class TblTradePriceInquiryController { | ||
| 431 | 433 | ||
| 432 | TblTradeBidMaterialDetails materialInfo = new TblTradeBidMaterialDetails(); | 434 | TblTradeBidMaterialDetails materialInfo = new TblTradeBidMaterialDetails(); |
| 433 | try { | 435 | try { |
| 436 | + QueryWrapper<TblTradeTenderInfo> infoQueryWrapper = new QueryWrapper<>(); | ||
| 437 | + infoQueryWrapper.eq("code", materialCode) | ||
| 438 | + .eq("xjbswjh", projectNumber); | ||
| 439 | + TblTradeTenderInfo tradeTenderInfo = tblTradeTenderInfoService.getOne(infoQueryWrapper); | ||
| 440 | + if (tradeTenderInfo != null) { | ||
| 441 | + | ||
| 442 | + String format = sft.format(tradeTenderInfo.getXqjhq()); | ||
| 443 | + materialInfo.setRequiredDeliveryTime(format); // 需求交货期 | ||
| 444 | + } | ||
| 434 | // 设置标段(包)名称,处理可能的空单元格 | 445 | // 设置标段(包)名称,处理可能的空单元格 |
| 435 | materialInfo.setPackageName(cellTypeToString(row.getCell(1))); | 446 | materialInfo.setPackageName(cellTypeToString(row.getCell(1))); |
| 436 | 447 |
jeecg-boot-erp/src/main/java/org/jeecg/modules/erp/trade/service/impl/TblTradeBidSubServiceImpl.java
| @@ -2,9 +2,11 @@ package org.jeecg.modules.erp.trade.service.impl; | @@ -2,9 +2,11 @@ package org.jeecg.modules.erp.trade.service.impl; | ||
| 2 | 2 | ||
| 3 | import cn.hutool.core.util.StrUtil; | 3 | import cn.hutool.core.util.StrUtil; |
| 4 | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; | 4 | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| 5 | +import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; | ||
| 5 | import com.baomidou.mybatisplus.core.metadata.IPage; | 6 | import com.baomidou.mybatisplus.core.metadata.IPage; |
| 6 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; | 7 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| 7 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | 8 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| 9 | +import org.apache.commons.lang3.StringUtils; | ||
| 8 | import org.jeecg.modules.erp.trade.entity.*; | 10 | import org.jeecg.modules.erp.trade.entity.*; |
| 9 | import org.jeecg.modules.erp.trade.mapper.TblTradeInquiryInfoMapper; | 11 | import org.jeecg.modules.erp.trade.mapper.TblTradeInquiryInfoMapper; |
| 10 | import org.jeecg.modules.erp.trade.mapper.TblTradeBidSubMapper; | 12 | import org.jeecg.modules.erp.trade.mapper.TblTradeBidSubMapper; |
| @@ -57,6 +59,17 @@ public class TblTradeBidSubServiceImpl extends ServiceImpl<TblTradeBidSubMapper, | @@ -57,6 +59,17 @@ public class TblTradeBidSubServiceImpl extends ServiceImpl<TblTradeBidSubMapper, | ||
| 57 | // 投标审核状态:0-询价中、1-询价完成、2-投标待审核、3-投标审核完成 | 59 | // 投标审核状态:0-询价中、1-询价完成、2-投标待审核、3-投标审核完成 |
| 58 | tblTradeBidSub.setStatus("2"); | 60 | tblTradeBidSub.setStatus("2"); |
| 59 | tblTradeBidSubMapper.updateById(tblTradeBidSub); | 61 | tblTradeBidSubMapper.updateById(tblTradeBidSub); |
| 62 | + // 修改综合管理的响应品牌,响应单价,税率 | ||
| 63 | + if (StringUtils.isNotBlank(tblTradeBidSub.getXjbswjh()) && StringUtils.isNotBlank(tblTradeBidSub.getWlbm())){ | ||
| 64 | + UpdateWrapper<TblTradeTenderInfo> updateWrapper = new UpdateWrapper<>(); | ||
| 65 | + updateWrapper.eq("xjbswjh", tblTradeBidSub.getXjbswjh()) | ||
| 66 | + .eq("code",tblTradeBidSub.getWlbm()); | ||
| 67 | + TblTradeTenderInfo tblTradeTenderInfo = new TblTradeTenderInfo(); | ||
| 68 | + tblTradeTenderInfo.setXypp(tblTradeBidSub.getXypp()); | ||
| 69 | + tblTradeTenderInfo.setXydj(tblTradeBidSub.getXydj()); | ||
| 70 | + tblTradeTenderInfo.setSl(tblTradeBidSub.getSl()); | ||
| 71 | + tblTradeTenderInfoMapper.update(tblTradeTenderInfo,updateWrapper); | ||
| 72 | + } | ||
| 60 | 73 | ||
| 61 | } | 74 | } |
| 62 | 75 |
-
请 注册 或 登录 后发表评论