| | |
| | | package com.stylefeng.guns.modular.system.controller; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.mapper.Wrapper; |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.stylefeng.guns.core.base.controller.BaseController; |
| | | import com.stylefeng.guns.core.common.constant.factory.PageFactory; |
| | | import com.stylefeng.guns.core.util.ToolUtil; |
| | | import com.stylefeng.guns.modular.system.model.*; |
| | | import com.stylefeng.guns.modular.system.service.*; |
| | | import com.stylefeng.guns.modular.system.vo.GrantMoneyVO; |
| | | import com.stylefeng.guns.modular.system.vo.GrantVO; |
| | | import com.stylefeng.guns.modular.system.vo.PlatformVO; |
| | | import com.stylefeng.guns.modular.system.vo.UseMoneyVO; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.math.BigDecimal; |
| | | import java.math.BigInteger; |
| | | import java.text.SimpleDateFormat; |
| | | import java.time.*; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.time.temporal.TemporalAdjusters; |
| | | import java.util.*; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | |
| | | public class TSubsidyController extends BaseController { |
| | | |
| | | private String PREFIX = "/system/subsidy/"; |
| | | |
| | | @RequestMapping("/grant") |
| | | public String index(Model model) { |
| | | return PREFIX + "grant.html"; |
| | | } |
| | | |
| | | @RequestMapping("/use") |
| | | public String watter(Model model) { |
| | | return PREFIX + "use.html"; |
| | | } |
| | | |
| | | @Autowired |
| | | private IIncomeService tIncomeService; |
| | | @Autowired |
| | |
| | | private ISysCouponRecordService sysCouponRecordService; |
| | | @Autowired |
| | | private IUserActivityDiscount1Service userActivityDiscount1Service; |
| | | |
| | | @Autowired |
| | | private ISysRedPacketRecordService sysRedPacketRecordService; |
| | | |
| | | public static void main(String[] args) { |
| | | String temp = "[{\"money\":14.46,\"id\":91},{\"money\":1,\"id\":90}]"; |
| | | JSONArray objects = JSONArray.parseArray(temp); |
| | |
| | | temp1 = temp1.add(new BigDecimal(string)); |
| | | } |
| | | System.err.println(temp1); |
| | | } |
| | | |
| | | @RequestMapping("/grant") |
| | | public String index(Model model) { |
| | | return PREFIX + "grant.html"; |
| | | } |
| | | |
| | | @RequestMapping("/use") |
| | | public String watter(Model model) { |
| | | return PREFIX + "use.html"; |
| | | } |
| | | |
| | | /** |
| | |
| | | return useMoneyVO; |
| | | } |
| | | |
| | | @Autowired |
| | | private ISysRedPacketRecordService sysRedPacketRecordService; |
| | | |
| | | /** |
| | | * 发放补贴统计 |
| | | */ |
| | |
| | | grantVO.setRemark("邀请用户注册"); |
| | | break; |
| | | case 3: |
| | | grantVO.setRemark("累计在线"); |
| | | grantVO.setRemark("在线时长奖励"); |
| | | break; |
| | | case 4: |
| | | grantVO.setRemark("订单量"); |
| | | grantVO.setRemark("累计接单奖励"); |
| | | break; |
| | | } |
| | | driver = driver.add(new BigDecimal(driverActivityHistory.getMoney().toString())); |