This commit is contained in:
linfso 2024-04-25 00:50:09 +08:00
parent 68afbf2f92
commit 07ba0e3679

View File

@ -64,7 +64,7 @@ public class EmisStaffController extends BaseController
SysPost sysPost = new SysPost();
sysPost.setPostCode(postCode);
List<SysPost> listPost = postService.selectPostList(sysPost);
if(!CollectionUtil.isNotEmpty(listPost)) {
if(!CollectionUtil.isNotEmpty(listPost) && listPost.size() >0) {
postIds = new Long[]{listPost.get(0).getPostId()};
}
}