|
@@ -288,7 +288,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_work WHERE is_delete=0 and status={} and ( user_id = '{}' or find_in_set('{}' , scene_codes ))",
|
|
|
+ String format = StrUtil.format("SELECT count(1) FROM tb_work WHERE is_delete=0 and status={} and user_id = '{}' and find_in_set('{}' , scene_codes ) ",
|
|
|
1, this.getUserNameForToken(),sceneCode);
|
|
|
Integer count = entityMapper.getCountStr(format);
|
|
|
if (count > 0){
|