首页查询接口优化, 新增订单取消日统计更新,统计历史数据自测调试
parent
9ee7bca346
commit
d794181b28
|
|
@ -13,6 +13,9 @@ import com.cowr.ssjygl.prepay.prepaydetail.PrepayDetailService;
|
|||
import com.jfinal.aop.Before;
|
||||
import org.apache.poi.ss.usermodel.Workbook;
|
||||
|
||||
import static com.cowr.common.utils.DateTimeUtil.TM_TIME;
|
||||
import static com.cowr.common.utils.DateTimeUtil.now;
|
||||
|
||||
public class PrepayController extends BaseController {
|
||||
public void find() {
|
||||
String name = get("name");
|
||||
|
|
@ -53,8 +56,8 @@ public class PrepayController extends BaseController {
|
|||
}
|
||||
|
||||
Integer supermarket_id = getInt("supermarket_id");
|
||||
String stm = get("stm");
|
||||
String etm = get("etm");
|
||||
String stm = get("stm", now().minusDays(TM_TIME) + " 00:00:00");
|
||||
String etm = get("etm",now() + " 23:59:59");
|
||||
String truck_license = get("truck_license");
|
||||
Integer invoice_type = getInt("invoice_type");
|
||||
if (export == 0) {
|
||||
|
|
@ -81,8 +84,8 @@ public class PrepayController extends BaseController {
|
|||
customer_id = tokenuser.getEntityId();
|
||||
}
|
||||
|
||||
String stm = get("stm");
|
||||
String etm = get("etm");
|
||||
String stm = get("stm", now().minusDays(TM_TIME) + " 00:00:00");
|
||||
String etm = get("etm",now() + " 23:59:59");
|
||||
|
||||
if (export == 0) {
|
||||
renderJson(Result.success(PrepayService.me.flow(customer_id, customer_type_id, stm, etm)));
|
||||
|
|
@ -111,8 +114,8 @@ public class PrepayController extends BaseController {
|
|||
customer_id = tokenuser.getEntityId();
|
||||
}
|
||||
|
||||
String stm = get("stm");
|
||||
String etm = get("etm");
|
||||
String stm = get("stm", now().minusDays(TM_TIME) + " 00:00:00");
|
||||
String etm = get("etm",now() + " 23:59:59");
|
||||
|
||||
if (export == 0) {
|
||||
renderJson(Result.object(PrepayDetailService.me.list(customer_id, customer_type_id, stm, etm)));
|
||||
|
|
@ -121,4 +124,5 @@ public class PrepayController extends BaseController {
|
|||
render(new ExcelRender("付费详情_" + System.currentTimeMillis() + ".xlsx", wb));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -267,4 +267,13 @@ public class SysuserController extends Controller {
|
|||
|
||||
renderJson(SysuserSyncService.me.register(sysuser, customer, receiver));
|
||||
}
|
||||
|
||||
/**
|
||||
* 客户登录状态
|
||||
*/
|
||||
@Clear(AuthInterceptor.class)
|
||||
public void getOnlineNumber() {
|
||||
|
||||
renderJson(SysuserSyncService.me.getOnlineNumber());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue