|
|
@@ -8,6 +8,7 @@ import com.fs.app.param.TestMoneyParam;
|
|
|
import com.fs.app.utils.JwtUtils;
|
|
|
import com.fs.common.config.FSSysConfig;
|
|
|
import com.fs.common.core.domain.R;
|
|
|
+import com.fs.common.core.redis.RedisCache;
|
|
|
import com.fs.common.exception.file.OssException;
|
|
|
import com.fs.company.domain.CompanyMoneyLogs;
|
|
|
import com.fs.company.service.ICompanyMoneyLogsService;
|
|
|
@@ -29,6 +30,7 @@ import com.fs.store.domain.*;
|
|
|
import com.fs.store.dto.ExpressDataDTO;
|
|
|
import com.fs.store.dto.ExpressInfoDTO;
|
|
|
import com.fs.store.dto.ExpressNotifyDTO;
|
|
|
+import com.fs.store.mapper.FsWechatTemplateMapper;
|
|
|
import com.fs.store.param.SignParam;
|
|
|
import com.fs.store.service.*;
|
|
|
import com.fs.pay.service.IPayService;
|
|
|
@@ -38,6 +40,7 @@ import com.fs.system.oss.OSSFactory;
|
|
|
import com.fs.system.vo.DictVO;
|
|
|
import com.fs.system.service.ISysConfigService;
|
|
|
import com.fs.system.service.ISysDictDataService;
|
|
|
+import com.google.common.collect.Sets;
|
|
|
import com.hc.openapi.tool.util.Ids;
|
|
|
import com.tencentyun.TLSSigAPIv2;
|
|
|
import io.swagger.annotations.Api;
|
|
|
@@ -122,6 +125,10 @@ public class CommonController extends AppBaseController {
|
|
|
IFsStoreOrderService orderService;
|
|
|
@Autowired
|
|
|
IFsStorePaymentService paymentService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private FsWechatTemplateMapper fsWechatTemplateMapper;
|
|
|
+
|
|
|
// @ApiOperation("批量推送订单")
|
|
|
// @GetMapping("pushOms")
|
|
|
// public R pushOms(String startTime) throws Exception
|
|
|
@@ -584,7 +591,6 @@ public class CommonController extends AppBaseController {
|
|
|
|
|
|
@ApiOperation("获取微信模板")
|
|
|
@GetMapping("/getWeixinTemps")
|
|
|
- @Cacheable(value= "temps")
|
|
|
public R getWeixinTemps(
|
|
|
){
|
|
|
List<String> temp=wechatTemplateService.selectFsWechatTemplateIds();
|
|
|
@@ -592,23 +598,23 @@ public class CommonController extends AppBaseController {
|
|
|
|
|
|
}
|
|
|
|
|
|
+
|
|
|
@ApiOperation("获取微信模板")
|
|
|
@GetMapping("/getWeixinOrderTemps")
|
|
|
- @Cacheable(value= "orderTemps")
|
|
|
public R getWeixinOrderTemps(
|
|
|
){
|
|
|
- List<String> temp=wechatTemplateService.selectFsWechatTemplateIdsByKeys("delivery_success,finish_success,cancel_success");
|
|
|
+ Set<String> keys = Sets.newHashSet("delivery_success","finish_success","cancel_success");
|
|
|
+
|
|
|
+ List<String> temp=fsWechatTemplateMapper.selectFsWechatTemplateIdsByKeySet(keys);
|
|
|
return R.ok().put("temp",temp);
|
|
|
|
|
|
}
|
|
|
@ApiOperation("获取微信模板")
|
|
|
@GetMapping("/getWeixinPrescribeTemps")
|
|
|
- @Cacheable(value= "prescribetemps")
|
|
|
public R getWeixinPrescribeTemps(
|
|
|
){
|
|
|
List<String> temp=wechatTemplateService.selectFsWechatTemplateIdsByKeys("prescribe");
|
|
|
return R.ok().put("temp",temp);
|
|
|
-
|
|
|
}
|
|
|
|
|
|
|