Sfoglia il codice sorgente

1、任务系数只在存货大类为集成灶时取,其他品类取默认1;
2、任务系数按季/年取,若没有取到则默认1
3、价格系数列表查询排除删除状态的数据,接口:2025020710553803

shenjingwei 3 mesi fa
parent
commit
234c8278a3
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/custom/beans/enterprise/Enterprise.java

+ 1 - 1
src/custom/beans/enterprise/Enterprise.java

@@ -203,7 +203,7 @@ public class Enterprise extends BaseClass {
     public static BigDecimal getRWPriceRate(DBConnect dbConnect, long sa_agentsid) throws YosException {
         int year = getYear();
         int quarter = getQuarterOfYear();
-        Rows rows = dbConnect.runSqlQuery("select pricerate from sa_quarterpricenum where ifnull(pricerate,0)>0 and sa_agentsid=" + sa_agentsid + " and year=" + year + " and quarter<=" + quarter + " order by quarter desc limit 1");
+        Rows rows = dbConnect.runSqlQuery("select pricerate from sa_quarterpricenum where status='已更新' and ifnull(pricerate,0)>0 and sa_agentsid=" + sa_agentsid + " and year=" + year + " and quarter<=" + quarter + " order by quarter desc limit 1");
         if (rows.isNotEmpty()) {
             return rows.get(0).getBigDecimal("pricerate");
         } else {