|
@@ -279,7 +279,7 @@ public class WorkServiceImpl extends IBaseStrServiceImpl<WorkEntity, String> imp
|
|
|
@Override
|
|
|
public boolean getUserWorkCountBySceneCodes(List<String> sceneCodes) {
|
|
|
for (String sceneCode : sceneCodes) {
|
|
|
- String format = StrUtil.format("SELECT count(1) FROM tb_dir WHERE is_delete=0 and status={} and ( id = {} or find_in_set('{}' , scene_codes ))",
|
|
|
+ String format = StrUtil.format("SELECT count(1) FROM tb_work WHERE is_delete=0 and status={} and ( id = {} or find_in_set('{}' , scene_codes ))",
|
|
|
1, this.getUserNameForToken(),sceneCode);
|
|
|
Integer count = entityMapper.getCountStr(format);
|
|
|
if (count > 0){
|