|
|
@@ -30,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;
|
|
|
@@ -39,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;
|
|
|
@@ -127,6 +129,9 @@ public class CommonController extends AppBaseController {
|
|
|
@Autowired
|
|
|
private IFsProjectAddressConfigService projectAddressConfigService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private FsWechatTemplateMapper fsWechatTemplateMapper;
|
|
|
+
|
|
|
// @ApiOperation("批量推送订单")
|
|
|
// @GetMapping("pushOms")
|
|
|
// public R pushOms(String startTime) throws Exception
|
|
|
@@ -589,7 +594,6 @@ public class CommonController extends AppBaseController {
|
|
|
|
|
|
@ApiOperation("获取微信模板")
|
|
|
@GetMapping("/getWeixinTemps")
|
|
|
- @Cacheable(value= "temps")
|
|
|
public R getWeixinTemps(
|
|
|
){
|
|
|
List<String> temp=wechatTemplateService.selectFsWechatTemplateIds();
|
|
|
@@ -597,23 +601,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);
|
|
|
-
|
|
|
}
|
|
|
|
|
|
|