修改话费

new-dev
袁野 1 year ago
parent aa41b9197e
commit 71b0b145ef
  1. 4
      hai-bweb/src/main/resources/dev/config.properties
  2. 7
      hai-cweb/src/main/java/com/cweb/controller/BsMsgController.java
  3. 3
      hai-cweb/src/main/java/com/cweb/controller/HighMerchantStoreController.java
  4. 44
      hai-order/src/main/java/com/web/controller/business/OrderStatisticController.java
  5. 8
      hai-service/src/main/java/com/hai/dao/HighOrderMapperExt.java
  6. 11
      hai-service/src/main/java/com/hai/service/HighOrderService.java
  7. 5
      hai-service/src/main/java/com/hai/service/impl/HighOrderServiceImpl.java
  8. 1
      v1/src/main/java/com/v1/config/AuthConfig.java
  9. 10
      v1/src/main/java/com/v1/config/SysConfig.java
  10. 89
      v1/src/main/java/com/v1/controller/business/FileUploadController.java
  11. 2
      v1/src/main/resources/dev/config.properties
  12. 7
      v1/src/main/resources/pre/config.properties
  13. 2
      v1/src/main/resources/prod/config.properties

@ -1,5 +1,5 @@
#fileUrl=/home/project/hsg/filesystem fileUrl=/home/project/hsg/filesystem
fileUrl=/Volumes/work/code/filesystem/ #fileUrl=/Volumes/work/code/filesystem/
cmsPath=/home/project/hsg/filesystem/cmsPath cmsPath=/home/project/hsg/filesystem/cmsPath
agentQrCode=/home/project/hsg/filesystem/agentQrCode agentQrCode=/home/project/hsg/filesystem/agentQrCode
agentQrCodeWxUrl=https://hsgcs.dctpay.com/wx/?action=ic&id= agentQrCodeWxUrl=https://hsgcs.dctpay.com/wx/?action=ic&id=

@ -1,17 +1,12 @@
package com.cweb.controller; package com.cweb.controller;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hai.common.exception.ErrorCode;
import com.hai.common.exception.ErrorHelp;
import com.hai.common.exception.SysCode;
import com.hai.common.security.SessionObject; import com.hai.common.security.SessionObject;
import com.hai.common.security.UserCenter; import com.hai.common.security.UserCenter;
import com.hai.common.utils.ResponseMsgUtil; import com.hai.common.utils.ResponseMsgUtil;
import com.hai.entity.BsMsg; import com.hai.entity.BsMsg;
import com.hai.model.HighUserModel; import com.hai.model.HighUserModel;
import com.hai.model.ResponseData; import com.hai.model.ResponseData;
import com.hai.model.UserInfoModel;
import com.hai.service.BsMsgService; import com.hai.service.BsMsgService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;

@ -41,9 +41,6 @@ public class HighMerchantStoreController {
private static Logger log = LoggerFactory.getLogger(HighMerchantStoreController.class); private static Logger log = LoggerFactory.getLogger(HighMerchantStoreController.class);
@Autowired
private UserCenter userCenter;
@Resource @Resource
private HighCouponService highCouponService; private HighCouponService highCouponService;

@ -0,0 +1,44 @@
package com.web.controller.business;
import com.alibaba.excel.EasyExcel;
import com.hai.common.utils.ResponseMsgUtil;
import com.hai.model.HighOrderModel;
import com.hai.model.ResponseData;
import com.hai.service.HighOrderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.annotation.Resource;
import java.util.List;
@Controller
@RequestMapping(value = "orderStatistic")
@Api(value = "订单统计业务")
public class OrderStatisticController {
private static Logger log = LoggerFactory.getLogger(OrderStatisticController.class);
@Resource
private HighOrderService highOrderService;
@RequestMapping(value = "/hltCardNoTopUpStatistic", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "汇联通工会卡充值统计")
public ResponseData hltCardNoTopUpStatistic() {
try {
return ResponseMsgUtil.success(highOrderService.hltCardNoTopUpStatistic());
} catch (Exception e) {
log.error("HighOrderController --> getUserOrderList() error!", e);
return ResponseMsgUtil.exception(e);
}
}
}

@ -1277,4 +1277,12 @@ public interface HighOrderMapperExt {
@Result(column="ext_6", property="ext6", jdbcType=JdbcType.VARCHAR) @Result(column="ext_6", property="ext6", jdbcType=JdbcType.VARCHAR)
}) })
List<HighOrder> phoneErrorOrder(); List<HighOrder> phoneErrorOrder();
@Select({
"<script> " +
" select SUM(pay_real_price) as sum , count(high_order.id) as count from high_order where order_status in (2 , 3) and product_type =8 and pay_type = 2 and total_price in (50 , 150 ,100 ,200);" +
"</script>"
})
Map<String, Object> HltCardNoTopUpStatistic();
} }

@ -457,6 +457,17 @@ public interface HighOrderService {
*/ */
Map<String, Object> countGasOrder(Map<String, Object> param) throws Exception; Map<String, Object> countGasOrder(Map<String, Object> param) throws Exception;
/**
* @Author Sum1Dream
* @Name HltCardNoTopUpStatistic
* @Description // 获取工会卡充值统计
* @Date 17:40 2023/6/26
* @Param [param]
* @Return java.util.Map<java.lang.String, java.lang.Object>
*/
Map<String, Object> hltCardNoTopUpStatistic();
/** /**
* 查询加油站订单列表 * 查询加油站订单列表
* @param orderNo * @param orderNo

@ -1350,6 +1350,11 @@ public class HighOrderServiceImpl implements HighOrderService {
return highOrderMapperExt.countGasStoreOrder(param); return highOrderMapperExt.countGasStoreOrder(param);
} }
@Override
public Map<String, Object> hltCardNoTopUpStatistic() {
return highOrderMapperExt.HltCardNoTopUpStatistic();
}
@Override @Override
public GasOrderModel getGasOrderDetail(String orderNo) { public GasOrderModel getGasOrderDetail(String orderNo) {
Map<String, Object> param = new HashMap<>(); Map<String, Object> param = new HashMap<>();

@ -96,6 +96,7 @@ public class AuthConfig implements WebMvcConfigurer {
.excludePathPatterns("/selfOilStation/*") .excludePathPatterns("/selfOilStation/*")
.excludePathPatterns("/order/*") .excludePathPatterns("/order/*")
.excludePathPatterns("/wxMsg/*") .excludePathPatterns("/wxMsg/*")
.excludePathPatterns("/fileUpload/*")
.excludePathPatterns("/orderRebate/*") .excludePathPatterns("/orderRebate/*")
.excludePathPatterns("/refuelOnline/*") .excludePathPatterns("/refuelOnline/*")
; ;

@ -15,6 +15,8 @@ public class SysConfig {
private String wxAppId; private String wxAppId;
private String wxAppSecret; private String wxAppSecret;
private String fileUrl;
public String getWxH5AppId() { public String getWxH5AppId() {
return wxH5AppId; return wxH5AppId;
} }
@ -46,4 +48,12 @@ public class SysConfig {
public void setWxAppSecret(String wxAppSecret) { public void setWxAppSecret(String wxAppSecret) {
this.wxAppSecret = wxAppSecret; this.wxAppSecret = wxAppSecret;
} }
public String getFileUrl() {
return fileUrl;
}
public void setFileUrl(String fileUrl) {
this.fileUrl = fileUrl;
}
} }

@ -0,0 +1,89 @@
package com.v1.controller.business;
import com.hai.common.utils.DateUtil;
import com.hai.common.utils.ResponseMsgUtil;
import com.hai.config.CommonConfig;
import com.hai.model.ResponseData;
import com.hai.service.FileUploadService;
import com.v1.config.SysConst;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.FileOutputStream;
import java.util.*;
@RestController
@RequestMapping(value="/fileUpload")
@Api(value="文件上传")
public class FileUploadController {
private static Logger log = LoggerFactory.getLogger(FileUploadController.class);
@Resource
private FileUploadService fileUploadService;
@RequestMapping(value="/uploadfile",method = RequestMethod.POST)
@ResponseBody
@ApiOperation(value = "文件上传")
public ResponseData uploadFile(@RequestParam(value = "files" , required = false) MultipartFile files,
HttpServletRequest request,
HttpServletResponse response) throws Exception {
try {
response.setHeader("Access-Control-Allow-Origin", "*");
CommonsMultipartResolver multipartResolver = new CommonsMultipartResolver(
request.getSession().getServletContext());
// 判断 request 是否有文件上传,即多部分请求
List<String> fileNames = new ArrayList<String>();
if (multipartResolver.isMultipart(request)) {
// 转换成多部分request
MultipartHttpServletRequest multiRequest = (MultipartHttpServletRequest) request;
Iterator<String> iterator = multiRequest.getFileNames();
while (iterator.hasNext()) {
MultipartFile file = multiRequest.getFile(iterator.next());
if (file != null) {
FileOutputStream out = null;
try {
String fileType = file.getOriginalFilename()
.substring(file.getOriginalFilename().lastIndexOf(".") + 1);
String fileName = file.getOriginalFilename().substring(0, file.getOriginalFilename().lastIndexOf(".")) + System.currentTimeMillis() + "." + fileType;
String childPath = DateUtil.date2String(new Date(), "yyyyMM");
String destDirName = SysConst.getSysConfig().getFileUrl() + File.separator + childPath;
File dir = new File(destDirName);
if (!dir.exists()) {
dir.mkdirs();
}
out = new FileOutputStream(destDirName + File.separator + fileName);
out.write(file.getBytes());
out.flush();
fileNames.add(childPath + "/" + fileName);
} catch (Exception e) {
log.error(e.getMessage(), e);
} finally {
if (out != null) {
out.close();
}
}
}
}
}
return ResponseMsgUtil.success(fileNames);
} catch (Exception e) {
log.error(e.getMessage(), e);
return ResponseMsgUtil.exception(e);
}
}
}

@ -3,3 +3,5 @@ wxH5AppSecret=0e606fc1378d35e359fcf3f15570b2c5
wxAppId=wx8d49e2f83025229d wxAppId=wx8d49e2f83025229d
wxAppSecret=d8d6dcaef77d3b659258a01b5ddba5df wxAppSecret=d8d6dcaef77d3b659258a01b5ddba5df
fileUrl=/home/project/hsg/filesystem

@ -0,0 +1,7 @@
wxH5AppId=wxa075e8509802f826
wxH5AppSecret=0e606fc1378d35e359fcf3f15570b2c5
wxAppId=wx8d49e2f83025229d
wxAppSecret=d8d6dcaef77d3b659258a01b5ddba5df
fileUrl=/home/project/hsg/filesystem

@ -3,3 +3,5 @@ wxH5AppSecret=0e606fc1378d35e359fcf3f15570b2c5
wxAppId=wx8d49e2f83025229d wxAppId=wx8d49e2f83025229d
wxAppSecret=d8d6dcaef77d3b659258a01b5ddba5df wxAppSecret=d8d6dcaef77d3b659258a01b5ddba5df
fileUrl=/home/project/hsg/filesystem

Loading…
Cancel
Save