| | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.yeshi.fanli.entity.SystemEnum; |
| | | import com.yeshi.fanli.entity.accept.AdminAcceptData; |
| | | import com.yeshi.fanli.service.inter.user.UserInfoService; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestMethod; |
| | |
| | | @Resource |
| | | private CommonOrderCountService commonOrderCountService; |
| | | |
| | | @Resource |
| | | private UserInfoService userInfoService; |
| | | |
| | | /** |
| | | * 方法说明: 通过提现请求 可jsonP方式 |
| | | * |
| | |
| | | * @param request |
| | | */ |
| | | @RequestMapping(value = "passExtractJP") |
| | | public void passExtractJP(AdminAcceptData acceptData,String callback, Long id, String code, PrintWriter out, HttpServletRequest request) { |
| | | public void passExtractJP(AdminAcceptData acceptData, String callback, Long id, String code, PrintWriter out, HttpServletRequest request) { |
| | | |
| | | /* 检验是否登陆 */ |
| | | AdminUser admin = (AdminUser) request.getSession().getAttribute(Constant.SESSION_ADMIN); |
| | |
| | | * @author mawurui createTime 2018年3月14日 下午3:15:55 |
| | | */ |
| | | @RequestMapping(value = "rejectExtractJP") |
| | | public void rejectExtractJP(AdminAcceptData acceptData,String callback, Long id, String code, String reason, PrintWriter out, |
| | | public void rejectExtractJP(AdminAcceptData acceptData, String callback, Long id, String code, String reason, PrintWriter out, |
| | | HttpServletRequest request) { |
| | | /* 检验是否登陆 */ |
| | | AdminUser admin = (AdminUser) request.getSession().getAttribute(Constant.SESSION_ADMIN); |
| | |
| | | * @param out |
| | | */ |
| | | @RequestMapping(value = "getFinishRecordList") |
| | | public void getFinishRecordList(AdminAcceptData acceptData,String callback, Integer pageIndex, String key, String startTime, String endTime, |
| | | public void getFinishRecordList(AdminAcceptData acceptData, String callback, Integer pageIndex, String key, String startTime, String endTime, |
| | | PrintWriter out) { |
| | | |
| | | try { |
| | |
| | | * @param request |
| | | */ |
| | | @RequestMapping(value = "getMyAuditedList") |
| | | public void getMyAuditedList(AdminAcceptData acceptData,String callback, Integer pageIndex, String key, String timeSlot, Integer state, |
| | | public void getMyAuditedList(AdminAcceptData acceptData, String callback, Integer pageIndex, String key, String timeSlot, Integer state, |
| | | PrintWriter out, HttpServletRequest request) { |
| | | |
| | | try { |
| | |
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("请登录")); |
| | | return; |
| | | } |
| | | SystemEnum system = userInfoService.getUserSystem(uid); |
| | | acceptData.setSystem(system); |
| | | |
| | | |
| | | // 查询同店铺商品,同商品订单超过一定数量的 |
| | | List<Integer> typeList = new ArrayList<>(); |
| | | typeList.add(HongBaoV2.TYPE_ZIGOU); |
| | |
| | | * @param out |
| | | */ |
| | | @RequestMapping(value = "getMyAuditedCount") |
| | | public void getMyAuditedCount(AdminAcceptData acceptData,String callback, HttpServletRequest request, PrintWriter out) { |
| | | public void getMyAuditedCount(AdminAcceptData acceptData, String callback, HttpServletRequest request, PrintWriter out) { |
| | | |
| | | AdminUser admin = (AdminUser) request.getSession().getAttribute(Constant.SESSION_ADMIN); |
| | | |
| | |
| | | * @param out |
| | | */ |
| | | @RequestMapping(value = "getIaskInfo") |
| | | public void getIaskInfo(AdminAcceptData acceptData,String callback, Long extractId, HttpServletRequest request, PrintWriter out) { |
| | | public void getIaskInfo(AdminAcceptData acceptData, String callback, Long extractId, HttpServletRequest request, PrintWriter out) { |
| | | try { |
| | | |
| | | String surplusTime = ""; |
| | |
| | | * @param out |
| | | */ |
| | | @RequestMapping(value = "getByUidList") |
| | | public void getByUidList(AdminAcceptData acceptData,String callback, Integer pageIndex, Long uid, HttpServletRequest request, |
| | | public void getByUidList(AdminAcceptData acceptData, String callback, Integer pageIndex, Long uid, HttpServletRequest request, |
| | | PrintWriter out) { |
| | | try { |
| | | if (uid == null) { |
| | |
| | | * @param out |
| | | */ |
| | | @RequestMapping(value = "countByUid") |
| | | public void countByUid(AdminAcceptData acceptData,String callback, Long uid, HttpServletRequest request, PrintWriter out) { |
| | | public void countByUid(AdminAcceptData acceptData, String callback, Long uid, HttpServletRequest request, PrintWriter out) { |
| | | |
| | | try { |
| | | |
| | |
| | | * @param out |
| | | */ |
| | | @RequestMapping(value = "checkMoney") |
| | | public void checkMoney(AdminAcceptData acceptData,String callback, String uid, PrintWriter out) { |
| | | public void checkMoney(AdminAcceptData acceptData, String callback, String uid, PrintWriter out) { |
| | | |
| | | if (StringUtil.isNullOrEmpty(uid)) { |
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("UID不能为空")); |
| | |
| | | * @param out |
| | | */ |
| | | @RequestMapping(value = "downAutoExtractTxt") |
| | | public void downAutoExtractTxt(AdminAcceptData acceptData,String callback, HttpServletResponse response, PrintWriter out) { |
| | | public void downAutoExtractTxt(AdminAcceptData acceptData, String callback, HttpServletResponse response, PrintWriter out) { |
| | | try { |
| | | List<String> list = extractService.getAutoExtractOpenIds(); |
| | | if (list == null || list.size() <= 1) { |
| | |
| | | * @param out |
| | | */ |
| | | @RequestMapping(value = "uploadExcel", method = RequestMethod.POST) |
| | | public void uploadExcel(AdminAcceptData acceptData,@RequestParam("file") CommonsMultipartFile file, PrintWriter out) { |
| | | public void uploadExcel(AdminAcceptData acceptData, @RequestParam("file") CommonsMultipartFile file, PrintWriter out) { |
| | | if (file == null) { |
| | | out.print(JsonUtil.loadFalseResult("上传文件不能为空!")); |
| | | return; |
| | |
| | | * @param out |
| | | */ |
| | | @RequestMapping(value = "preAutoUser") |
| | | public void preAutoUser(AdminAcceptData acceptData,String callback, Integer pageIndex, PrintWriter out) { |
| | | public void preAutoUser(AdminAcceptData acceptData, String callback, Integer pageIndex, PrintWriter out) { |
| | | try { |
| | | List<UserInfo> list = extractService.preAutoUser(); |
| | | if (list == null || list.isEmpty()) { |