|
@@ -523,10 +523,10 @@ public class salestargetstatistics extends Controller {
|
|
|
if (content.containsKey("where")) {
|
|
if (content.containsKey("where")) {
|
|
|
JSONObject whereObject = content.getJSONObject("where");
|
|
JSONObject whereObject = content.getJSONObject("where");
|
|
|
if (whereObject.containsKey("begindate") && !"".equals(whereObject.getString("begindate"))) {
|
|
if (whereObject.containsKey("begindate") && !"".equals(whereObject.getString("begindate"))) {
|
|
|
- where.append(" and t2.checkdate >='").append(whereObject.getString("begindate")).append("' ");
|
|
|
|
|
|
|
+ where.append(" and t2.checkdate >='").append(whereObject.getString("begindate")).append("-01' ");
|
|
|
}
|
|
}
|
|
|
if (whereObject.containsKey("enddate") && !"".equals(whereObject.getString("enddate"))) {
|
|
if (whereObject.containsKey("enddate") && !"".equals(whereObject.getString("enddate"))) {
|
|
|
- where.append(" and t2.checkdate <='").append(whereObject.getString("enddate")).append(" 23:59:59' ");
|
|
|
|
|
|
|
+ where.append(" and t2.checkdate <'").append(getNextMonth(whereObject.getString("enddate"))).append("-01' ");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1488,7 +1488,7 @@ public class salestargetstatistics extends Controller {
|
|
|
sqlFactory = new SQLFactory(this, "首页医院金额");
|
|
sqlFactory = new SQLFactory(this, "首页医院金额");
|
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
|
sqlFactory.addParameter("start", startMonth + "-01");
|
|
sqlFactory.addParameter("start", startMonth + "-01");
|
|
|
- sqlFactory.addParameter("end", getNextMonth(endMonth) + "-01");
|
|
|
|
|
|
|
+ sqlFactory.addParameter("end", getNextMonth(endMonth) + "-01");
|
|
|
sqlFactory.addParameter("userid", userid);
|
|
sqlFactory.addParameter("userid", userid);
|
|
|
BigDecimal saleamount = dbConnect.runSqlQuery(sqlFactory).get(0).getBigDecimal("saleamount");
|
|
BigDecimal saleamount = dbConnect.runSqlQuery(sqlFactory).get(0).getBigDecimal("saleamount");
|
|
|
|
|
|