|
@@ -69,11 +69,14 @@ public class GetDeviceInfoController {
|
|
|
*/
|
|
|
@PostMapping("/getEnableTemplateList")
|
|
|
public R<List<TemplateLibrary>> getEnableTemplateList(@RequestBody BaseParam param) {
|
|
|
- MerchantUser one = merchantUserService.getOne(new LambdaQueryWrapper<MerchantUser>().eq(MerchantUser::getMerchantCode,param.getName()),false);
|
|
|
+ MerchantUser one = merchantUserService.getOne(new LambdaQueryWrapper<MerchantUser>().eq(MerchantUser::getMerchantCode, param.getName()), false);
|
|
|
List<TemplateLibrary> templateIPage = templateLibraryService.list(new LambdaQueryWrapper<TemplateLibrary>()
|
|
|
.eq(TemplateLibrary::getStatus, 0)
|
|
|
.eq(TemplateLibrary::getDelFlag, 0)
|
|
|
- .eq(TemplateLibrary::getMerchantId,one.getId()));
|
|
|
+ .isNull(TemplateLibrary::getMerchantId)
|
|
|
+ .or()
|
|
|
+ .eq(TemplateLibrary::getMerchantId, one.getId()));
|
|
|
+
|
|
|
return R.ok(templateIPage);
|
|
|
}
|
|
|
|