|
@@ -18,8 +18,7 @@ import java.util.List;
|
|
|
public class WorkProvider {
|
|
|
|
|
|
public String search(AgePageDto param, String userId){
|
|
|
- StringBuffer sql = new StringBuffer("select * from tb_work where is_delete = 0 and status > 0");
|
|
|
-
|
|
|
+ StringBuffer sql = new StringBuffer("select * from tb_work where is_delete = 0");
|
|
|
if(StrUtil.isNotBlank(userId)){
|
|
|
sql.append(" and ( user_id = '").append(RegexUtil.escapeChar(userId)).append("' )");
|
|
|
}
|
|
@@ -49,6 +48,8 @@ public class WorkProvider {
|
|
|
List<String> snCodes = param.getSnCodes();
|
|
|
if (ArrayUtil.isNotEmpty(snCodes)){
|
|
|
sql.append(" and ( sn_code in (").append(StringUtils.join(snCodes, ",")).append(") )");
|
|
|
+ }else {
|
|
|
+ sql.append(" and status > 0");
|
|
|
}
|
|
|
|
|
|
|