From 19962d419bed90116fd1480bb861f11101f5f2c4 Mon Sep 17 00:00:00 2001 From: xd <844539747@qq.com> Date: Wed, 19 Jun 2024 16:03:28 +0800 Subject: [PATCH 1/5] '123' --- .../web/controller/quot/QuotController.java | 2 ++ .../statisticsQuot/statisticsQuot/index.vue | 20 ++++++++++++------- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quot/QuotController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quot/QuotController.java index ba11e8d..34d48a3 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quot/QuotController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quot/QuotController.java @@ -392,6 +392,8 @@ public class QuotController extends BaseController if(Integer.valueOf(count)>=Integer.valueOf(quotCommitCount)){ return error("当前报价量已达极限,无法继续提供报价单"); } + + // 提交报价时间限制 } String quot_id = quot.getQuotId(); diff --git a/ruoyi-ui/src/views/statisticsQuot/statisticsQuot/index.vue b/ruoyi-ui/src/views/statisticsQuot/statisticsQuot/index.vue index 8289cd3..0d4ce2d 100644 --- a/ruoyi-ui/src/views/statisticsQuot/statisticsQuot/index.vue +++ b/ruoyi-ui/src/views/statisticsQuot/statisticsQuot/index.vue @@ -52,13 +52,15 @@ - 总条数:{{sumQuotMaterialsCount}} + 总条数:{{sumQuotMaterialsCount}} - 总价:{{sumQuotTotalPrice}} + 总价:{{sumQuotTotalPrice}} + + + 总单量:{{sumQuotCount}} - @@ -77,13 +79,13 @@ {{ parseTime(scope.row.quotQuotationDate) }} + - @@ -107,7 +109,7 @@ export default { // 报价表格数据 quotList: [], // 表格高度设置 - tableHeight: window.innerHeight - 240, //表格动态高度 + tableHeight: window.innerHeight - 280, //表格动态高度 screenHeight: window.innerHeight, //内容区域高度 // 查询参数 queryParams: { @@ -151,15 +153,19 @@ export default { }, // 总价 sumQuotTotalPrice() { - const quotTotalPrice = this.quotList.reduce((sum, row) => sum + parseFloat(row.quotTotalPrice==null?0:row.quotTotalPrice), 0); + const quotTotalPrice = this.quotList.reduce((sum, row) => sum + parseFloat((isNaN(row.quotTotalPrice)||row.quotTotalPrice==null)?0:row.quotTotalPrice), 0); return toDecimal(quotTotalPrice); }, + // 总单量 + sumQuotCount() { + return this.quotList.length; + } }, watch: { // 监听screenHeight从而改变table的高度 screenHeight(val) { this.screenHeight = val - this.tableHeight = this.screenHeight - 260 + this.tableHeight = this.screenHeight - 280 } }, mounted: function() { From ecd5881b1054a222963b9764b865b489918c5971 Mon Sep 17 00:00:00 2001 From: xd <844539747@qq.com> Date: Wed, 19 Jun 2024 17:06:26 +0800 Subject: [PATCH 2/5] '123123123' --- .../web/controller/quot/QuotController.java | 132 +++++++++++------- .../com/ruoyi/common/utils/DateUtils.java | 77 +++++++++- 2 files changed, 155 insertions(+), 54 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quot/QuotController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quot/QuotController.java index 34d48a3..74b8de6 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quot/QuotController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quot/QuotController.java @@ -1,7 +1,9 @@ package com.ruoyi.web.controller.quot; import java.math.BigDecimal; +import java.text.SimpleDateFormat; import java.util.ArrayList; +import java.util.Date; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletResponse; @@ -375,68 +377,92 @@ public class QuotController extends BaseController @PostMapping("/commitQuot") public AjaxResult commitQuot(@RequestBody Quot quot) { - // 获取用户角色 --判断是否是核价组角色 - Boolean hjRoleFlag = false; - List roles = SecurityUtils.getLoginUser().getUser().getRoles(); - for(SysRole sysRole:roles){ - String roleKey = sysRole.getRoleKey(); - if("PRICE_VERIFICATION".equals(roleKey) || "QUOT".equals(roleKey)){ - hjRoleFlag = true; - break; + try{ + // 获取用户角色 --判断是否是核价组角色 + Boolean hjRoleFlag = false; + List roles = SecurityUtils.getLoginUser().getUser().getRoles(); + for(SysRole sysRole:roles){ + String roleKey = sysRole.getRoleKey(); + if("PRICE_VERIFICATION".equals(roleKey) || "QUOT".equals(roleKey)){ + hjRoleFlag = true; + break; + } } - } - if(!hjRoleFlag){ - // 每天限制提交200条 - String quotCommitCount = configService.selectConfigByKey("quot.commit.count"); - String count = quotService.selectQuotListCount(); - if(Integer.valueOf(count)>=Integer.valueOf(quotCommitCount)){ - return error("当前报价量已达极限,无法继续提供报价单"); + if(!hjRoleFlag){ + // 每天限制提交200条 + String quotCommitCount = configService.selectConfigByKey("quot.commit.count"); + String count = quotService.selectQuotListCount(); + if(Integer.valueOf(count)>=Integer.valueOf(quotCommitCount)){ + return error("当前报价量已达极限,无法继续提供报价单"); + } + + // 提交报价时间限制 + String commitQuotTime = configService.selectConfigByKey("quot.allow.commitQuotTime"); + if(commitQuotTime.indexOf("-")<0){ + return error("提交报价时间限制系统参数错误,格式不规范"); + } + String startTime = commitQuotTime.split("-")[0]; + String endTime = commitQuotTime.split("-")[1]; + if(!DateUtils.isMatch(startTime) || !DateUtils.isMatch(endTime)){ + return error("提交报价时间限制系统参数错误,格式不规范"); + } + + //当前时间 + Date date = new Date(); + String currentTime = new SimpleDateFormat("HH:mm:ss").format(date); + Date nowTime = new SimpleDateFormat("HH:mm:ss").parse(currentTime); + Date startTimeD = new SimpleDateFormat("HH:mm:ss").parse(startTime); + Date endTimeE = new SimpleDateFormat("HH:mm:ss").parse(endTime); + Boolean flag = DateUtils.isEffectiveDate(nowTime,startTimeD,endTimeE); + if(!flag){ + return error("已超过提交报价限制时间【"+commitQuotTime+"】,无法继续提交"); + } } - // 提交报价时间限制 - } + String quot_id = quot.getQuotId(); - String quot_id = quot.getQuotId(); + quot.setUpdateBy(getUsername()); + quot.setQuotApprovalStatus("1");//报价单 状态设置为 协助中 + quot.setQuotInquiryDate(DateUtils.getNowDate());//报价单 询价日期设置为 当前日期 - quot.setUpdateBy(getUsername()); - quot.setQuotApprovalStatus("1");//报价单 状态设置为 协助中 - quot.setQuotInquiryDate(DateUtils.getNowDate());//报价单 询价日期设置为 当前日期 - - // 校验 是否已有重复报价单(客户+项目名) - Boolean flag = false; - if(!hjRoleFlag){ - flag = quotService.checkExistQuot(getUsername(),quot.getQuotCustomerBm(),quot.getQuotProject()); - }else{ - flag = quotService.checkExistQuot(quot.getQuotSalesmanCode(),quot.getQuotCustomerBm(),quot.getQuotProject()); - } - if(flag){ - return error("存在相同客户且项目名称一致的报价单,无法提交"); - } - - if(StringUtils.isEmpty(quot_id)){ - quot.setQuotId(UUID.fastUUID().toString()); - //quot.setQuotCode(IdUtils.createNo("BJD_",0)); - String quotCode = quotService.getCode("BJD"); - quot.setQuotCode(quotCode); - - if(hjRoleFlag){ - quot.setCreateBy(quot.getQuotSalesmanCode()); + // 校验 是否已有重复报价单(客户+项目名) + Boolean flag = false; + if(!hjRoleFlag){ + flag = quotService.checkExistQuot(getUsername(),quot.getQuotCustomerBm(),quot.getQuotProject()); }else{ - quot.setCreateBy(getUsername()); + flag = quotService.checkExistQuot(quot.getQuotSalesmanCode(),quot.getQuotCustomerBm(),quot.getQuotProject()); } - //quot.setQuotSalesmanCode(getUsername()); - quotService.insertQuot(quot); - //sendNoticeToBjz(quot); - return success(); - }else{ - if(hjRoleFlag){ - quot.setUpdateBy(quot.getQuotSalesmanCode()); + if(flag){ + return error("存在相同客户且项目名称一致的报价单,无法提交"); + } + + if(StringUtils.isEmpty(quot_id)){ + quot.setQuotId(UUID.fastUUID().toString()); + //quot.setQuotCode(IdUtils.createNo("BJD_",0)); + String quotCode = quotService.getCode("BJD"); + quot.setQuotCode(quotCode); + + if(hjRoleFlag){ + quot.setCreateBy(quot.getQuotSalesmanCode()); + }else{ + quot.setCreateBy(getUsername()); + } + //quot.setQuotSalesmanCode(getUsername()); + quotService.insertQuot(quot); + //sendNoticeToBjz(quot); + return success(); }else{ - quot.setUpdateBy(getUsername()); + if(hjRoleFlag){ + quot.setUpdateBy(quot.getQuotSalesmanCode()); + }else{ + quot.setUpdateBy(getUsername()); + } + quotService.updateQuot(quot); + //sendNoticeToBjz(quot); + return success(); } - quotService.updateQuot(quot); - //sendNoticeToBjz(quot); - return success(); + }catch (Exception e){ + return error("系统异常"); } } diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/DateUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/DateUtils.java index 5905cb3..8fd8124 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/utils/DateUtils.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/DateUtils.java @@ -5,7 +5,11 @@ import java.text.ParseException; import java.text.SimpleDateFormat; import java.time.*; import java.time.temporal.ChronoUnit; +import java.util.Calendar; import java.util.Date; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + import org.apache.commons.lang3.time.DateFormatUtils; /** @@ -204,8 +208,79 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils return Integer.parseInt(String.valueOf(secondsLeft)); } + /** + * 判断当前时间是否在[startTime, endTime]区间,注意时间格式要一致 + * + * @param nowTime 当前时间 + * @param startTime 开始时间 + * @param endTime 结束时间 + * @return + */ + public static boolean isEffectiveDate(Date nowTime, Date startTime, Date endTime) { + if (nowTime.getTime() == startTime.getTime() + || nowTime.getTime() == endTime.getTime()) { + return true; + } + + Calendar date = Calendar.getInstance(); + date.setTime(nowTime); + + Calendar begin = Calendar.getInstance(); + begin.setTime(startTime); + + Calendar end = Calendar.getInstance(); + end.setTime(endTime); + + if (date.after(begin) && date.before(end)) { + return true; + } else { + return false; + } + } + + /** + * 是否满足时分秒时间格式 + * @param inputString + * @return + */ + public static boolean isMatch(String inputString) { + String timeRegex = "^([01]?[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$"; + Pattern pattern = Pattern.compile(timeRegex); + Matcher matcher = pattern.matcher(inputString); + return matcher.matches(); + } + public static void main(String[] args) { - System.out.println(secondsUntilMidnight()); + + try{ + String format = "HH:mm:ss"; + + Date date = new Date(); + String currentTime = new SimpleDateFormat(format).format(date); + + Date nowTime = new SimpleDateFormat(format).parse(currentTime); + Date startTime = new SimpleDateFormat(format).parse("7:00:00"); + Date endTime = new SimpleDateFormat(format).parse("19:00:00"); + System.out.println(isEffectiveDate(nowTime, startTime, endTime)); + + + String inputString = "7:34:56"; + String timeRegex = "^([01]?[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$"; + + Pattern pattern = Pattern.compile(timeRegex); + Matcher matcher = pattern.matcher(inputString); + + if (matcher.matches()) { + System.out.println("输入的字符串是时分秒格式"); + } else { + System.out.println("输入的字符串不是时分秒格式"); + } + + }catch (Exception e){ + e.printStackTrace(); + } + + } } From 3d6351b34d4a04018e0c950dfa369b5e477508d7 Mon Sep 17 00:00:00 2001 From: xd Date: Wed, 19 Jun 2024 21:57:22 +0800 Subject: [PATCH 3/5] 123456 --- ABAP_AS_WITH_POOL.jcoDestination | 20 ++----------------- .../web/controller/quot/QuotController.java | 4 ++-- .../controller/redBook/RedBookController.java | 5 +++++ ruoyi-ui/src/views/redBook/productSelect.vue | 2 ++ 4 files changed, 11 insertions(+), 20 deletions(-) diff --git a/ABAP_AS_WITH_POOL.jcoDestination b/ABAP_AS_WITH_POOL.jcoDestination index 3de8c5c..dd2d83b 100644 --- a/ABAP_AS_WITH_POOL.jcoDestination +++ b/ABAP_AS_WITH_POOL.jcoDestination @@ -1,13 +1,5 @@ #for tests only ! -<<<<<<< HEAD -#Wed Jun 19 10:12:57 CST 2024 -======= -<<<<<<< HEAD -#Wed Jun 19 09:11:03 CST 2024 -======= -#Mon Jun 17 15:48:27 CST 2024 ->>>>>>> 1efe171bc013909adaa8e3300a0b9ce6c2e24d85 ->>>>>>> d63db1c95090eda2578290808925b20b3608a764 +#Wed Jun 19 20:15:41 CST 2024 jco.destination.pool_capacity=10 jco.client.lang=ZH jco.client.ashost=172.19.0.125 @@ -15,13 +7,5 @@ jco.client.saprouter= jco.client.user=RFC jco.client.sysnr=00 jco.destination.peak_limit=10 -<<<<<<< HEAD -jco.client.passwd=dbTq!8PGYoMxt}M?DFv(:oQQUwH:qM9KKr$k^CHW9U;kE9uK -======= -<<<<<<< HEAD -jco.client.passwd=g}=[!8cY+]^Y:h6_:E9``X=J#eA[=IM/|(0EB`M)]I1i?/qD -======= -jco.client.passwd=654321 ->>>>>>> 1efe171bc013909adaa8e3300a0b9ce6c2e24d85 ->>>>>>> d63db1c95090eda2578290808925b20b3608a764 +jco.client.passwd=fO[y6l4?vRT=RiyZx5)29/4S?-@n6ptS-pq0DsUMXTA4CDTk jco.client.client=800 diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quot/QuotController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quot/QuotController.java index 74b8de6..faf2eac 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quot/QuotController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quot/QuotController.java @@ -399,12 +399,12 @@ public class QuotController extends BaseController // 提交报价时间限制 String commitQuotTime = configService.selectConfigByKey("quot.allow.commitQuotTime"); if(commitQuotTime.indexOf("-")<0){ - return error("提交报价时间限制系统参数错误,格式不规范"); + return error("提交报价时间限制系统参数错误-格式不规范,请联系管理员"); } String startTime = commitQuotTime.split("-")[0]; String endTime = commitQuotTime.split("-")[1]; if(!DateUtils.isMatch(startTime) || !DateUtils.isMatch(endTime)){ - return error("提交报价时间限制系统参数错误,格式不规范"); + return error("提交报价时间限制系统参数错误-格式不规范,请联系管理员"); } //当前时间 diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/redBook/RedBookController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/redBook/RedBookController.java index e94836d..f130ed0 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/redBook/RedBookController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/redBook/RedBookController.java @@ -283,6 +283,11 @@ public class RedBookController extends BaseController List list = quot.getSelectedResultData(); + File directory = new File("xjQuotFile/"); + // 如果文件夹不存在,则创建文件夹 + if (!directory.exists()) { + directory.mkdir(); + } excelFile = new File("xjQuotFile/"+xjquot.getQuotCode()+".xls"); File file = excelUtil.exportXjQuotExcel(response,excelFile,xjquot,list); MultipartFile multipartFile = convert(file); diff --git a/ruoyi-ui/src/views/redBook/productSelect.vue b/ruoyi-ui/src/views/redBook/productSelect.vue index 52f16b6..6bc2aa8 100644 --- a/ruoyi-ui/src/views/redBook/productSelect.vue +++ b/ruoyi-ui/src/views/redBook/productSelect.vue @@ -782,9 +782,11 @@ // 生成询价单 handleMadeXjQuotClick() { + this.madeQuotDis = true; this.form.selectedResultData = this.selectedResultData; madeXjQuot(this.form).then(response => { this.$modal.msgSuccess("生成询价单成功,单号:"+response.data.quotCode); + this.madeQuotDis = false; }); }, From e035ed5ddb694e34379c0aff79bf4f3abd164c5d Mon Sep 17 00:00:00 2001 From: xd <844539747@qq.com> Date: Thu, 20 Jun 2024 11:10:06 +0800 Subject: [PATCH 4/5] '123' --- ABAP_AS_WITH_POOL.jcoDestination | 4 +-- .../web/controller/quot/QuotController.java | 20 +++++++++++ .../src/main/resources/application-druid.yml | 12 +++---- .../main/java/com/ruoyi/quot/domain/Quot.java | 5 +++ .../java/com/ruoyi/quot/domain/SysOaQuot.java | 13 +++++++ .../main/resources/mapper/quot/QuotMapper.xml | 17 +++++++-- ruoyi-ui/src/views/quot/quot/index.vue | 36 ++++++++++++++++--- ruoyi-ui/src/views/redBook/productSelect.vue | 2 +- 8 files changed, 92 insertions(+), 17 deletions(-) diff --git a/ABAP_AS_WITH_POOL.jcoDestination b/ABAP_AS_WITH_POOL.jcoDestination index dd2d83b..565b979 100644 --- a/ABAP_AS_WITH_POOL.jcoDestination +++ b/ABAP_AS_WITH_POOL.jcoDestination @@ -1,5 +1,5 @@ #for tests only ! -#Wed Jun 19 20:15:41 CST 2024 +#Thu Jun 20 11:01:14 CST 2024 jco.destination.pool_capacity=10 jco.client.lang=ZH jco.client.ashost=172.19.0.125 @@ -7,5 +7,5 @@ jco.client.saprouter= jco.client.user=RFC jco.client.sysnr=00 jco.destination.peak_limit=10 -jco.client.passwd=fO[y6l4?vRT=RiyZx5)29/4S?-@n6ptS-pq0DsUMXTA4CDTk +jco.client.passwd=w7hAeYb,##Zc}g(emH-GJL;?*-*mA;_enm-`{=LFKC[%7:pE jco.client.client=800 diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quot/QuotController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quot/QuotController.java index faf2eac..f78c391 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quot/QuotController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quot/QuotController.java @@ -743,6 +743,26 @@ public class QuotController extends BaseController sysOaQuot.setQuotLvPrice(quot.getQuotLvPrice()); sysOaQuot.setQuotTongPrice(quot.getQuotTongPrice()); sysOaQuot.setQuotMatpriceDiff(quot.getQuotMatpriceDiff()); + sysOaQuot.setQuotMatpriceDiff2(quot.getQuotMatpriceDiff2()); + + // 上传反馈清单 + QuotFile quotFile = new QuotFile(); + quotFile.setRelationId(quot.getQuotId()); + quotFile.setFileType("quotFkFile"); + List fileList = quotFileService.selectQuotFileList(quotFile); + String fileString = ""; + if(fileList!=null&&fileList.size()>0){ + for(QuotFile f:fileList){ + String fileUrl = f.getFileUrl(); + if(StringUtils.isEmpty(fileString)){ + fileString = fileString+fileUrl; + }else{ + fileString = fileString+","+fileUrl; + } + } + } + sysOaQuot.setQuotFkFile(fileString); + sysOaQuot.setCreateTime(DateUtils.getNowDate()); sysOaQuot.setIsFinish("0");// 报价已提交OA审批中 sysOaQuot.setMaterials(quot.getQuotMaterialList()); diff --git a/ruoyi-admin/src/main/resources/application-druid.yml b/ruoyi-admin/src/main/resources/application-druid.yml index 91d30d0..e8b56b2 100644 --- a/ruoyi-admin/src/main/resources/application-druid.yml +++ b/ruoyi-admin/src/main/resources/application-druid.yml @@ -53,14 +53,14 @@ spring: url: jdbc:sqlserver://192.168.9.99:1433;DatabaseName=jn_storage username: sa password: Itcenter110- - order: + #order: # 从数据源开关/默认关闭 - enabled: true - driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver + #enabled: true + #driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver # 正式数据库 - url: jdbc:sqlserver://192.168.9.2:1433;DatabaseName=jn_web - username: sa - password: it12345 + #url: jdbc:sqlserver://192.168.9.2:1433;DatabaseName=jn_web + #username: sa + #password: it12345 # OA数据库数据源 oa: # 从数据源开关/默认关闭 diff --git a/ruoyi-system/src/main/java/com/ruoyi/quot/domain/Quot.java b/ruoyi-system/src/main/java/com/ruoyi/quot/domain/Quot.java index c14c84c..eba39fd 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/quot/domain/Quot.java +++ b/ruoyi-system/src/main/java/com/ruoyi/quot/domain/Quot.java @@ -93,6 +93,8 @@ public class Quot extends BaseEntity /** 整单料价价差率 */ private String quotMatpriceDiff; + /** 整单料价价差率2 */ + private String quotMatpriceDiff2; /** 是否打印 */ private String quotPrint; @@ -305,6 +307,9 @@ public class Quot extends BaseEntity public String getQuotMatpriceDiff() { return quotMatpriceDiff; } public void setQuotMatpriceDiff(String quotMatpriceDiff) { this.quotMatpriceDiff = quotMatpriceDiff; } + public String getQuotMatpriceDiff2() { return quotMatpriceDiff2; } + + public void setQuotMatpriceDiff2(String quotMatpriceDiff2) { this.quotMatpriceDiff2 = quotMatpriceDiff2; } public String getQuotPrint() { return quotPrint; } public void setQuotPrint(String quotPrint) { this.quotPrint = quotPrint; } diff --git a/ruoyi-system/src/main/java/com/ruoyi/quot/domain/SysOaQuot.java b/ruoyi-system/src/main/java/com/ruoyi/quot/domain/SysOaQuot.java index 2373c32..670e2d5 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/quot/domain/SysOaQuot.java +++ b/ruoyi-system/src/main/java/com/ruoyi/quot/domain/SysOaQuot.java @@ -60,6 +60,11 @@ public class SysOaQuot extends BaseEntity /** 整单料价价差率 */ private String quotMatpriceDiff; + /** 整单料价价差率2 */ + private String quotMatpriceDiff2; + + /** 询价单-询价清单地址 */ + private String quotFkFile; /** OA审批状态 */ private String state; @@ -191,6 +196,14 @@ public class SysOaQuot extends BaseEntity this.quotMatpriceDiff = quotMatpriceDiff; } + public String getQuotMatpriceDiff2() { return quotMatpriceDiff2; } + + public void setQuotMatpriceDiff2(String quotMatpriceDiff2) { this.quotMatpriceDiff2 = quotMatpriceDiff2; } + + public String getQuotFkFile() { return quotFkFile; } + + public void setQuotFkFile(String quotFkFile) { this.quotFkFile = quotFkFile; } + public String getState() { return state; } public void setState(String state) { this.state = state; } diff --git a/ruoyi-system/src/main/resources/mapper/quot/QuotMapper.xml b/ruoyi-system/src/main/resources/mapper/quot/QuotMapper.xml index 7ba2bb2..ae99598 100644 --- a/ruoyi-system/src/main/resources/mapper/quot/QuotMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/quot/QuotMapper.xml @@ -33,6 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + @@ -113,7 +114,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" a.quot_phone, a.quot_inquiry_date, a.quot_project, a.quot_quotation_date, a.quot_quotation_from, a.quot_quotation_require, a.quot_feedback_explanation, a.quot_quantity, a.quot_total_price, a.quot_check_user_name, u2.nick_name quot_check_user_nickname, a.quot_approval_status,a.quot_materials_count, - a.quot_lv_price,a.quot_tong_price,a.quot_matprice_diff,a.quot_print,a.quot_print_user_name,u3.nick_name quot_print_user_nickName, + a.quot_lv_price,a.quot_tong_price,a.quot_matprice_diff,a.quot_matprice_diff2,a.quot_print,a.quot_print_user_name,u3.nick_name quot_print_user_nickName, a.create_by, a.create_time, a.update_by, a.update_time, u.nick_name create_name, a.quot_jsxz_standard,a.quot_jsxz_approval_status,a.quot_jsxz_chapter, @@ -143,10 +144,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and quot_salesman_name like concat('%', #{quotSalesmanName}, '%') and quot_print = #{quotPrint} and quot_approval_status = #{quotApprovalStatus} + and quot_oa_approval_status = #{quotOAApprovalStatus} ${params.dataScope} - order by a.quot_inquiry_date desc +