Commit ad93e0b3 by 徐高华

导购换门店改成通知

parent b7bc6785
...@@ -135,7 +135,7 @@ public class HaobanCommonMQApiServiceImpl implements HaobanCommonMQApiService { ...@@ -135,7 +135,7 @@ public class HaobanCommonMQApiServiceImpl implements HaobanCommonMQApiService {
String clerkId = map.get("clerkId") ; String clerkId = map.get("clerkId") ;
String source = map.get("source") ; String source = map.get("source") ;
if(null != source) { if(null != source) {
this.memberOpenCardBusinessService.memberClerkByQywx(enterpriseId, memberId, clerkId , 1); this.memberOpenCardBusinessService.memberClerkByQywx(enterpriseId, memberId, clerkId , Integer.valueOf(source));
}else { }else {
this.memberOpenCardBusinessService.memberClerkByQywx(enterpriseId, memberId, clerkId); this.memberOpenCardBusinessService.memberClerkByQywx(enterpriseId, memberId, clerkId);
} }
......
...@@ -480,7 +480,8 @@ public class QywxOpenController { ...@@ -480,7 +480,8 @@ public class QywxOpenController {
File excelFile = File.createTempFile("tmp", null); File excelFile = File.createTempFile("tmp", null);
FileUtils.copyInputStreamToFile(file.getInputStream(), excelFile); FileUtils.copyInputStreamToFile(file.getInputStream(), excelFile);
EnterpriseDTO en = this.enterpriseService.getEnterpriseById(enterpriseId) ; EnterpriseDTO en = this.enterpriseService.getEnterpriseById(enterpriseId) ;
CloudFileInfo uploadInfo = CloudFileUtil.uploadTempFile(excelFile, "xlsx", CloudFileTypeEnum.FILE, en.getFactoryCode() , CloudFileBusinessOptEnum.TASK_CENTER, 365L) ; String fileName = file.getOriginalFilename();
CloudFileInfo uploadInfo = CloudFileUtil.uploadTempFile(excelFile, fileName.substring(fileName.lastIndexOf(".") + 1), CloudFileTypeEnum.FILE, en.getFactoryCode() , CloudFileBusinessOptEnum.TASK_CENTER, 365L) ;
log.info("上传返回的实体信息为:{}",uploadInfo); log.info("上传返回的实体信息为:{}",uploadInfo);
String sourceUrl = null ; String sourceUrl = null ;
if (uploadInfo != null) { if (uploadInfo != null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment