| | |
| | | import com.stylefeng.guns.core.base.controller.BaseController; |
| | | import com.stylefeng.guns.core.beetl.ShiroExtUtil; |
| | | import com.stylefeng.guns.core.common.constant.factory.PageFactory; |
| | | import com.stylefeng.guns.core.shiro.ShiroKit; |
| | | import com.stylefeng.guns.core.util.DateUtil; |
| | | import com.stylefeng.guns.core.util.ExcelUtil; |
| | | import com.stylefeng.guns.core.util.ToolUtil; |
| | |
| | | import org.springframework.ui.Model; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.OutputStream; |
| | | import java.math.BigDecimal; |
| | | import java.math.RoundingMode; |
| | | import java.text.DateFormat; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | |
| | | |
| | | @Autowired |
| | | private ITOrderLogisticsService orderLogisticsService; |
| | | |
| | | |
| | | @Autowired |
| | | private ITSysWithdrawalPoundageService withdrawalPoundageService; |
| | | |
| | | |
| | | @Autowired |
| | | private ITTimeoutAppealService timeoutAppealService; |
| | | |
| | | |
| | | @Autowired |
| | | private ITReassignService reassignService; |
| | | |
| | | |
| | | |
| | | @Resource |
| | | private ShiroExtUtil shiroExtUtil; |
| | | |
| | | |
| | | /** |
| | | * 跳转订单收益明细 |
| | | */ |
| | |
| | | public String index() { |
| | | return PREFIX + "orderRevenueDetails.html"; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 跳转到奖励收益明细 |
| | | */ |
| | |
| | | */ |
| | | @RequestMapping(value = "/detail/{driverId}") |
| | | public String detail(@PathVariable Integer driverId, Model model){ |
| | | Map<String, Object> map = driverService.selectMap(new EntityWrapper<TDriver>().eq("id", driverId).eq("companyId", ShiroExtUtil.getUser().getObjectId())); |
| | | Map<String, Object> map = driverService.selectMap(new EntityWrapper<TDriver>().eq("id", driverId).eq("companyId", shiroExtUtil.getUser().getObjectId())); |
| | | |
| | | double activityIncome; |
| | | Wrapper wrapper1 = new EntityWrapper<Income>().eq("userType",2).eq("objectId",driverId).eq("type",1); |
| | |
| | | @ResponseBody |
| | | public Object list(String driverName, String driverPhone, String startTime, String endTime) { |
| | | Page<Map<String, Object>> page = new PageFactory<Map<String, Object>>().defaultPage(); |
| | | Wrapper wrapper = new EntityWrapper<TDriver>().eq("companyId", ShiroExtUtil.getUser().getObjectId()).orderBy("id", false); |
| | | |
| | | Wrapper wrapper = new EntityWrapper<TDriver>().eq("companyId", shiroExtUtil.getUser().getObjectId()).orderBy("id", false); |
| | | |
| | | if (ToolUtil.isNotEmpty(driverName)) { |
| | | wrapper.like("name", driverName); |
| | | } |
| | | if (ToolUtil.isNotEmpty(driverPhone)) { |
| | | wrapper.like("phone", driverPhone); |
| | | } |
| | | |
| | | |
| | | List<Map<String, Object>> list = driverService.selectMapsPage(page, wrapper).getRecords(); |
| | | |
| | | |
| | | for (Map<String, Object> map : list) { |
| | | |
| | | /// 活动收益 |