| | |
| | | import com.matrix.core.pojo.AjaxResult; |
| | | import com.matrix.core.tools.WebUtil; |
| | | import com.matrix.system.common.bean.SysUsers; |
| | | import com.matrix.system.common.constance.AppConstance; |
| | | import com.matrix.system.common.tools.DataAuthUtil; |
| | | import com.matrix.system.hive.dao.SysBeauticianStateDao; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | public @ResponseBody |
| | | AjaxResult showList( @RequestParam Map<String , Object> param) { |
| | | SysUsers sysUsers = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); |
| | | if(!AppConstance.ZONGDIAN.equals(sysUsers.getShopName())){ |
| | | param.put("shopId",sysUsers.getShopId()); |
| | | if(!DataAuthUtil.hasAllShopAuth()){ |
| | | param.put("shopId", sysUsers.getShopId()); |
| | | } |
| | | |
| | | return AjaxResult.buildSuccessInstance(beauticianStateDao.selectItemDetail(param), |
| | | beauticianStateDao.selectItemDetailTotal(param)); |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = "/exportShowList") |
| | | public void exportShowList( @RequestParam Map<String , Object> param, HttpServletResponse response) throws Exception { |
| | | SysUsers sysUsers = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); |
| | | String title = "项目服务明细"; |
| | | String[] header = {"门店", "预约时间","划扣时间","服务单号","服务名称","分类","客户名","次数","划扣单价","提成","美疗师","来源"}; |
| | | String[] column = {"SHOP_NAME", "yy_time", "consume_time", "SERVICE_NO", "PROJ_NAME", "TYPE_NAME", "VIP_NAME", "COUNT", "PRICE", "extract", "su_name", "SOURCE"}; |
| | | |
| | | if(!DataAuthUtil.hasAllShopAuth()){ |
| | | param.put("shopId", sysUsers.getShopId()); |
| | | } |
| | | List<Map<String, Object>> dataList = beauticianStateDao.selectItemDetail(param); |
| | | OrderStatisticsAction.exportExcel(title, header,column, dataList, response); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 项目服务明细统计 |
| | |
| | | public @ResponseBody |
| | | AjaxResult summaryItemDetail( @RequestParam Map<String , Object> param) { |
| | | SysUsers sysUsers = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); |
| | | if(!AppConstance.ZONGDIAN.equals(sysUsers.getShopName())){ |
| | | param.put("shopId",sysUsers.getShopId()); |
| | | if(!DataAuthUtil.hasAllShopAuth()){ |
| | | param.put("shopId", sysUsers.getShopId()); |
| | | } |
| | | return AjaxResult.buildSuccessInstance(beauticianStateDao.summaryItemDetail(param), |
| | | beauticianStateDao.summaryItemDetailTotal(param)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/exportSummaryItemDetail") |
| | | public void exportSummaryItemDetail( @RequestParam Map<String , Object> param, HttpServletResponse response) throws Exception { |
| | | SysUsers sysUsers = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); |
| | | String title = "项目服务明细统计"; |
| | | String[] header = {"门店", "服务名称","分类","总次数","消耗金额"}; |
| | | String[] column = {"SHOP_NAME", "PROJ_NAME", "TYPE_NAME", "COUNT", "PRICE"}; |
| | | |
| | | if(!DataAuthUtil.hasAllShopAuth()){ |
| | | param.put("shopId", sysUsers.getShopId()); |
| | | } |
| | | List<Map<String, Object>> dataList = beauticianStateDao.summaryItemDetail(param); |
| | | OrderStatisticsAction.exportExcel(title, header,column, dataList, response); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | import com.matrix.core.pojo.AjaxResult; |
| | | import com.matrix.core.tools.WebUtil; |
| | | import com.matrix.system.common.bean.SysUsers; |
| | | import com.matrix.system.common.constance.AppConstance; |
| | | import com.matrix.system.common.tools.DataAuthUtil; |
| | | import com.matrix.system.hive.dao.MoneyCardUseDao; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | public @ResponseBody |
| | | AjaxResult showList( @RequestParam Map<String , Object> param) { |
| | | SysUsers sysUsers = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); |
| | | if(!AppConstance.ZONGDIAN.equals(sysUsers.getShopName())){ |
| | | param.put("shopId",sysUsers.getShopId()); |
| | | if(!DataAuthUtil.hasAllShopAuth()){ |
| | | param.put("shopId", sysUsers.getShopId()); |
| | | } |
| | | return AjaxResult.buildSuccessInstance(moneyCardUseDao.selectItemDetail(param), |
| | | moneyCardUseDao.selectItemDetailTotal(param)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/exportShowList") |
| | | public void exportShowList( @RequestParam Map<String , Object> param, HttpServletResponse response) throws Exception { |
| | | SysUsers sysUsers = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); |
| | | String title = "客户充值卡明细"; |
| | | String[] header = {"客户名", "充值卡名称","到期日期","剩余本金","剩余赠送金额","是否使用完成","是否为会籍卡","备注","来源","订单号"}; |
| | | String[] column = {"VIP_NAME", "card_name","FAIL_TIME","real_money","gift_money","isOver","is_vip_car","remark","SOURCE","ORDER_NO"}; |
| | | |
| | | if(!DataAuthUtil.hasAllShopAuth()){ |
| | | param.put("shopId", sysUsers.getShopId()); |
| | | } |
| | | List<Map<String, Object>> dataList = moneyCardUseDao.selectItemDetail(param); |
| | | OrderStatisticsAction.exportExcel(title, header,column, dataList, response); |
| | | } |
| | | |
| | | /** |
| | |
| | | public @ResponseBody |
| | | AjaxResult summaryItemDetail( @RequestParam Map<String , Object> param) { |
| | | SysUsers sysUsers = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); |
| | | if(!AppConstance.ZONGDIAN.equals(sysUsers.getShopName())){ |
| | | param.put("shopId",sysUsers.getShopId()); |
| | | if(!DataAuthUtil.hasAllShopAuth()){ |
| | | param.put("shopId", sysUsers.getShopId()); |
| | | } |
| | | return AjaxResult.buildSuccessInstance(moneyCardUseDao.summaryItemDetail(param), |
| | | moneyCardUseDao.summaryItemDetailTotal(param)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/exportSummaryItemDetail") |
| | | public void exportSummaryItemDetail( @RequestParam Map<String , Object> param, HttpServletResponse response) throws Exception { |
| | | SysUsers sysUsers = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); |
| | | String title = "客户充值卡统计"; |
| | | String[] header = {"充值卡名称", "剩余总本金", "剩余总赠送金额"}; |
| | | String[] column = {"card_name", "real_money", "gift_money"}; |
| | | |
| | | if(!DataAuthUtil.hasAllShopAuth()){ |
| | | param.put("shopId", sysUsers.getShopId()); |
| | | } |
| | | List<Map<String, Object>> dataList = moneyCardUseDao.summaryItemDetail(param); |
| | | OrderStatisticsAction.exportExcel(title, header,column, dataList, response); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | url:basePath+"/admin/moneyCardUseStatistics/showList" |
| | | }); |
| | | }); |
| | | |
| | | |
| | | function exportExcel(){ |
| | | var select_begin = $("#select_begin").val(); |
| | | var select_end = $("#select_end").val(); |
| | | var select_id = $("#select_id").val(); |
| | | var goodsName = $("#goodsName").val(); |
| | | var guwen = $("#goodsName").val(); |
| | | window.location.href=basePath+"/form/furnsale/exportFurn?startTime="+select_begin+"&endTime="+select_end+"&goodsName="+goodsName+"&shopId="+select_id+"&guwen="+guwen; |
| | | var param=MForm.toUrlParam("#serchform"); |
| | | window.location.href=basePath+"/admin/moneyCardUseStatistics/exportShowList?"+param; |
| | | } |
| | | |
| | | |
| | |
| | | url:basePath+"/admin/moneyCardUseStatistics/summaryItemDetail" |
| | | }); |
| | | }); |
| | | |
| | | function exportExcel(){ |
| | | var select_begin = $("#select_begin").val(); |
| | | var select_end = $("#select_end").val(); |
| | | var select_id = $("#select_id").val(); |
| | | var goodsName = $("#goodsName").val(); |
| | | var guwen = $("#goodsName").val(); |
| | | window.location.href=basePath+"/form/furnsale/exportFurn?startTime="+select_begin+"&endTime="+select_end+"&goodsName="+goodsName+"&shopId="+select_id+"&guwen="+guwen; |
| | | } |
| | | |
| | | function exportExcel(){ |
| | | var param=MForm.toUrlParam("#serchform"); |
| | | window.location.href=basePath+"/admin/moneyCardUseStatistics/exportSummaryItemDetail?"+param; |
| | | } |
| | | |
| | | |
| | | function initFunctionList() { |
| | |
| | | sortOrder:"desc" |
| | | }); |
| | | }); |
| | | |
| | | function exportExcel(){ |
| | | var select_begin = $("#select_begin").val(); |
| | | var select_end = $("#select_end").val(); |
| | | var select_id = $("#select_id").val(); |
| | | var goodsName = $("#goodsName").val(); |
| | | var guwen = $("#goodsName").val(); |
| | | window.location.href=basePath+"/form/furnsale/exportFurn?startTime="+select_begin+"&endTime="+select_end+"&goodsName="+goodsName+"&shopId="+select_id+"&guwen="+guwen; |
| | | } |
| | | |
| | | function exportExcel(){ |
| | | var param=MForm.toUrlParam("#serchform"); |
| | | window.location.href=basePath+"/admin/serviceStatistics/exportShowList?"+param; |
| | | } |
| | | |
| | | |
| | | |
| | | function initFunctionList() { |
| | |
| | | url:basePath+"/admin/serviceStatistics/summaryItemDetail" |
| | | }); |
| | | }); |
| | | |
| | | function exportExcel(){ |
| | | var select_begin = $("#select_begin").val(); |
| | | var select_end = $("#select_end").val(); |
| | | var select_id = $("#select_id").val(); |
| | | var goodsName = $("#goodsName").val(); |
| | | var guwen = $("#goodsName").val(); |
| | | window.location.href=basePath+"/form/furnsale/exportFurn?startTime="+select_begin+"&endTime="+select_end+"&goodsName="+goodsName+"&shopId="+select_id+"&guwen="+guwen; |
| | | } |
| | | |
| | | function exportExcel(){ |
| | | var param=MForm.toUrlParam("#serchform"); |
| | | window.location.href=basePath+"/admin/serviceStatistics/exportSummaryItemDetail?"+param; |
| | | } |
| | | |
| | | |
| | | function initFunctionList() { |
| | |
| | | url:basePath+"/admin/moneyCardUseStatistics/showList" |
| | | }); |
| | | }); |
| | | |
| | | |
| | | function exportExcel(){ |
| | | var select_begin = $("#select_begin").val(); |
| | | var select_end = $("#select_end").val(); |
| | | var select_id = $("#select_id").val(); |
| | | var goodsName = $("#goodsName").val(); |
| | | var guwen = $("#goodsName").val(); |
| | | window.location.href=basePath+"/form/furnsale/exportFurn?startTime="+select_begin+"&endTime="+select_end+"&goodsName="+goodsName+"&shopId="+select_id+"&guwen="+guwen; |
| | | var param=MForm.toUrlParam("#serchform"); |
| | | window.location.href=basePath+"/admin/moneyCardUseStatistics/exportShowList?"+param; |
| | | } |
| | | |
| | | |
| | | function initFunctionList() { |
| | | |
| | | function initFunctionList() { |
| | | $.AjaxProxy({ |
| | | a: false, |
| | | c: false, |
| | |
| | | url:basePath+"/admin/moneyCardUseStatistics/summaryItemDetail" |
| | | }); |
| | | }); |
| | | |
| | | function exportExcel(){ |
| | | var select_begin = $("#select_begin").val(); |
| | | var select_end = $("#select_end").val(); |
| | | var select_id = $("#select_id").val(); |
| | | var goodsName = $("#goodsName").val(); |
| | | var guwen = $("#goodsName").val(); |
| | | window.location.href=basePath+"/form/furnsale/exportFurn?startTime="+select_begin+"&endTime="+select_end+"&goodsName="+goodsName+"&shopId="+select_id+"&guwen="+guwen; |
| | | } |
| | | |
| | | function exportExcel(){ |
| | | var param=MForm.toUrlParam("#serchform"); |
| | | window.location.href=basePath+"/admin/moneyCardUseStatistics/exportSummaryItemDetail?"+param; |
| | | } |
| | | |
| | | |
| | | |
| | | function initFunctionList() { |
| | |
| | | sortOrder:"desc" |
| | | }); |
| | | }); |
| | | |
| | | function exportExcel(){ |
| | | var select_begin = $("#select_begin").val(); |
| | | var select_end = $("#select_end").val(); |
| | | var select_id = $("#select_id").val(); |
| | | var goodsName = $("#goodsName").val(); |
| | | var guwen = $("#goodsName").val(); |
| | | window.location.href=basePath+"/form/furnsale/exportFurn?startTime="+select_begin+"&endTime="+select_end+"&goodsName="+goodsName+"&shopId="+select_id+"&guwen="+guwen; |
| | | } |
| | | |
| | | |
| | | function exportExcel(){ |
| | | var param=MForm.toUrlParam("#serchform"); |
| | | window.location.href=basePath+"/admin/serviceStatistics/exportShowList?"+param; |
| | | } |
| | | |
| | | |
| | | function initFunctionList() { |
| | |
| | | url:basePath+"/admin/serviceStatistics/summaryItemDetail" |
| | | }); |
| | | }); |
| | | |
| | | function exportExcel(){ |
| | | var select_begin = $("#select_begin").val(); |
| | | var select_end = $("#select_end").val(); |
| | | var select_id = $("#select_id").val(); |
| | | var goodsName = $("#goodsName").val(); |
| | | var guwen = $("#goodsName").val(); |
| | | window.location.href=basePath+"/form/furnsale/exportFurn?startTime="+select_begin+"&endTime="+select_end+"&goodsName="+goodsName+"&shopId="+select_id+"&guwen="+guwen; |
| | | } |
| | | |
| | | function exportExcel(){ |
| | | var param=MForm.toUrlParam("#serchform"); |
| | | window.location.href=basePath+"/admin/serviceStatistics/exportSummaryItemDetail?"+param; |
| | | } |
| | | |
| | | function initFunctionList() { |
| | | $.AjaxProxy({ |