fix:涉密场所添加字段

pg_adapter
wangxy 6 months ago
parent 13e8a74e0e
commit 8848e08e14

@ -56,7 +56,9 @@ public class TdPlaceManager {
public boolean deletedPlaceByids(String ids) { public boolean deletedPlaceByids(String ids) {
List<String> list = Arrays.asList(Convert.toStrArray(ids)); List<String> list = Arrays.asList(Convert.toStrArray(ids));
return placeService.removeByIds(list); return placeService.lambdaUpdate()
.in(TdPlace::getId,list)
.set(TdPlace::getState,"0").update();
} }
public List<TdPlace> selectList() { public List<TdPlace> selectList() {

@ -31,6 +31,7 @@
<if test="placeName!=null and placeName!=''"> <if test="placeName!=null and placeName!=''">
AND place_name LIKE concat('%',#{placeName},'%') AND place_name LIKE concat('%',#{placeName},'%')
</if> </if>
AND state !='0'
</trim> </trim>
ORDER BY create_time DESC ORDER BY create_time DESC
</select> </select>

Loading…
Cancel
Save